/* ============================================
   OpenPOWER Foundation - Main Stylesheet
   IBM design language: sharp lines, clean type
   ============================================ */

:root {
  /* Film grain — static SVG feTurbulence, GPU-tiled, zero JS/CPU cost.
     --grain:        full-opacity noise (control via CSS opacity on pseudo-element)
     --grain-subtle: 7% opacity baked in — use on background-image where CSS opacity isn't available */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-subtle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");

  /* OPF Blue palette — THREE approved brand blues only
     #278ab3  — darkest  (strong backgrounds, borders, buttons)
     #5c94b8  — mid/primary (main brand blue)
     #63abd2  — lightest (subtle accents, light backgrounds)
     All text must be white (#fff), grey, or black — never blue.  */
  --opf-blue-darkest: #278ab3;  /* darkest — dark sections, strong borders, primary buttons */
  --opf-blue: #5c94b8;          /* PRIMARY brand blue */
  --opf-blue-mid: #278ab3;      /* hover darkens to darkest */
  --opf-blue-accent: #63abd2;   /* lightest — borders, subtle accents */
  --opf-blue-light: #63abd2;    /* light accent */
  --opf-blue-pale: #63abd2;     /* palest — same lightest approved blue */

  --opf-grey: #677175;
  --opf-red: #C0392B;
  --opf-red-mid: #da1e28;
  --opf-dark: #000000;
  --opf-dark-mid: #161616;
  --opf-gray: #525252;
  --opf-gray-light: #8d8d8d;
  --opf-border: #e0e0e0;
  --opf-border-blue: #63abd2;   /* blue-tinted border */
  --opf-bg: #ffffff;
  --opf-bg-alt: #f4f4f4;
  --opf-bg-blue: #f0f6fb;       /* very pale blue section bg */
  --opf-text: #161616;
  --opf-text-light: #3d3d3d;

  --font-main: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --max-width: 1200px;
  --header-height: 72px;
  --transition: 0.15s ease;
  --radius: 0px;
  --radius-lg: 0px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--opf-text);
  background: var(--opf-bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:hover { color: #222; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---- LF Banner ---- */
.lf-banner {
  background: #fff;
  border-bottom: 1px solid var(--opf-border);
  padding: 8px 24px;
}
.lf-banner a {
  display: inline-flex;
  align-items: center;
}
.lf-banner img {
  height: 14px;
  width: auto;
  display: block;
}
.lf-banner a:hover { opacity: 0.8; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--opf-border);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-logo img { height: 56px; width: auto; display: block; }

/* Navigation */
.main-nav { flex: 1; }
.nav-list {
  display: flex;
  align-items: stretch;
  height: var(--header-height);
  gap: 0;
}
.nav-list > li {
  position: relative;
  display: flex;
  align-items: stretch;
}
.nav-list > li > a {
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 400;
  color: var(--opf-text);
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-list > li > a:hover {
  color: var(--opf-blue);
  border-bottom-color: var(--opf-blue);
  background: none;
}
.nav-list > li.active > a {
  color: #000;
  border-bottom-color: var(--opf-blue);
  font-weight: 600;
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--opf-border);
  border-top: 2px solid var(--opf-blue);
  min-width: 200px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  z-index: 200;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 11px 16px;
  font-size: 14px;
  color: var(--opf-text);
  border-left: 2px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}
.dropdown li a:hover {
  background: var(--opf-bg-alt);
  color: #000;
  border-left-color: var(--opf-blue);
}
.dropdown li a.active {
  color: #000;
  border-left-color: var(--opf-blue);
  font-weight: 600;
}
.dropdown-label {
  display: block;
  padding: 8px 16px 4px;
  font-size: 10px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--opf-gray-light);
  border-top: 1px solid var(--opf-border);
  margin-top: 2px;
}
.dropdown li:first-child .dropdown-label { border-top: none; margin-top: 0; }

/* ESI highlighted dropdown item */
.dropdown-esi > a {
  background: #e8f2f8 !important;
  color: var(--opf-blue-darkest) !important;
  border-left-color: var(--opf-blue) !important;
  font-weight: 600;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.dropdown-esi > a:hover {
  background: #d4e8f3 !important;
  color: var(--opf-blue-darkest) !important;
  border-left-color: var(--opf-blue-darkest) !important;
}
.esi-badge {
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: var(--opf-blue-darkest);
  color: #fff;
  padding: 2px 6px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}
.social-icons a {
  display: flex;
  align-items: center;
  color: var(--opf-gray);
  transition: color var(--transition);
}
.social-icons a:hover { color: var(--opf-blue-darkest); }
.social-icons svg { width: 18px; height: 18px; }

.btn-join {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--opf-blue);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-main);
  transition: background var(--transition);
  white-space: nowrap;
  border: none;
}
.btn-join:hover { background: var(--opf-blue-mid); color: #fff; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--opf-text);
  transition: var(--transition);
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 13px 32px;
  background: var(--opf-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-main);
  border: none;
  transition: background var(--transition);
  cursor: pointer;
}
.btn-primary:hover { background: var(--opf-blue-mid); color: #fff; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 13px 32px;
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-main);
  border: 1px solid rgba(255,255,255,0.5);
  transition: border-color var(--transition), background var(--transition);
}
.btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 13px 32px;
  background: transparent;
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-main);
  border: 1px solid var(--opf-blue);
  transition: background var(--transition), color var(--transition);
  margin-top: 32px;
}
.btn-outline:hover { background: var(--opf-blue); color: #fff; }

/* ---- Shared Section Layout ---- */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}
h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--opf-text);
  margin-bottom: 12px;
  line-height: 1.2;
}
h2 strong { font-weight: 600; }
.section-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--opf-text-light);
  margin-bottom: 36px;
  max-width: 640px;
  line-height: 1.75;
}

/* ---- Hero ---- */
.hero {
  background-color: var(--opf-blue);
  /* Grain sits in background-image, below the ::before/::after gradient layers.
     Using --grain-subtle (7% baked in) since we can't set opacity on bg-image layers. */
  background-image: var(--grain-subtle);
  background-repeat: repeat;
  background-size: 200px 200px;
  color: #fff;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid #111111;
  min-height: 520px;
}

/* POWER9 chip image — fills right 65% of hero */
.hero-chip-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 65%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  /* Desaturate toward OPF blue palette */
  filter: saturate(0.55) brightness(0.75) hue-rotate(180deg);
  mix-blend-mode: luminosity;
  opacity: 0.9;
}

/* Blue tint layer — sits above image, below gradient — uses new palette */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(26, 63, 152, 0.30) 50%,
    rgba(63, 111, 222, 0.20) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Left-to-right fade — text area stays solid black */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    #000000 0%,
    #000000 28%,
    rgba(0, 0, 0, 0.92) 38%,
    rgba(0, 0, 0, 0.65) 52%,
    rgba(0, 0, 0, 0.2) 72%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 24px;
  position: relative;
  z-index: 3;
}
.hero-content h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 24px;
}
.hero-content h1 strong { font-weight: 600; }
.hero-sub {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.92);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 520px;
}
.hero-tags { margin-bottom: 40px; }
.hero-tags span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
}
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  padding: 5px 14px;
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
  font-family: var(--font-main);
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero chip caption — subtle label over the image */
.hero-chip-label {
  position: absolute;
  bottom: 24px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  z-index: 4;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---- Project / feature cards hover ---- */
a[style*="background:#fff"]:hover,
a[style*="background: #fff"]:hover,
.feature-card:hover {
  background: #f4f4f4 !important;
}

/* ---- Stats Bar ---- */
.stats-bar {
  background: var(--opf-blue);
  color: #fff;
}
.stats-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
}
.stat-item {
  flex: 1;
  padding: 24px 20px;
  text-align: center;
}
.stat-number {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 300;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
  font-family: var(--font-main);
  letter-spacing: -0.01em;
}
.stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
  line-height: 1.5;
}
.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.15);
  margin: 20px 0;
}
@media (max-width: 768px) {
  .stats-bar-inner { flex-wrap: wrap; }
  .stat-item { flex: 1 1 50%; }
  .stat-divider { display: none; }
}
@media (max-width: 480px) {
  .stat-item { flex: 1 1 100%; border-top: 1px solid rgba(255,255,255,0.1); }
  .stat-item:first-child { border-top: none; }
}

/* ---- Why Now / Cards ---- */
.why-now { background: var(--opf-bg-alt); border-top: 1px solid var(--opf-border); border-bottom: 1px solid var(--opf-border); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.card {
  background: #fff;
  padding: 24px 22px;
  border: 1px solid var(--opf-border);
  transition: background var(--transition);
}
.card:hover { background: #f4f4f4; }
.card-icon { font-size: 24px; margin-bottom: 20px; line-height: 1; }
.card-icon svg { width: 40px; height: 40px; fill: var(--opf-blue); display: block; }
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 12px; color: var(--opf-text); line-height: 1.4; }
.card p { font-size: 15px; color: var(--opf-text-light); line-height: 1.7; font-weight: 300; }

/* ---- Stack Section ---- */
.stack-section { background: #fff; border-bottom: 1px solid var(--opf-border); }
.stack-section .section-inner { text-align: center; }
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  margin-top: 48px;
  text-align: left;
  border-top: 1px solid var(--opf-border);
  border-left: 1px solid var(--opf-border);
}
.stack-item {
  padding: 28px 24px;
  border-right: 1px solid var(--opf-border);
  border-bottom: 1px solid var(--opf-border);
  border-top: 2px solid transparent;
  transition: border-top-color var(--transition);
}
.stack-item:hover { border-top-color: var(--opf-blue); }
.stack-icon { font-size: 28px; margin-bottom: 20px; }
.stack-item h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; color: var(--opf-text); }
.stack-item p { font-size: 15px; font-weight: 300; color: var(--opf-text-light); margin-bottom: 24px; line-height: 1.7; }
.stack-link { font-size: 14px; font-weight: 600; color: #333; display: inline-flex; align-items: center; gap: 4px; }
.stack-link:hover { color: #000; }

/* ---- Blog Section ---- */
.blog-section { background: var(--opf-bg-alt); border-top: 1px solid var(--opf-border); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--opf-border);
  overflow: hidden;
  transition: background var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { background: #f4f4f4; }
.blog-img-wrap { display: none; }
.blog-img-placeholder { display: none; }
.blog-content { padding: 28px 24px; flex: 1; display: flex; flex-direction: column; }
.blog-content h3 { font-size: 17px; font-weight: 600; margin-bottom: 12px; line-height: 1.4; flex: 1; }
.blog-content h3 a { color: var(--opf-text); }
.blog-content h3 a:hover { color: #000; }
.blog-meta { font-size: 13px; color: var(--opf-text-light); margin-bottom: 12px; font-family: var(--font-mono); }
.blog-author { font-weight: 500; }
.blog-excerpt { font-size: 15px; font-weight: 300; color: var(--opf-text-light); line-height: 1.7; }

/* ---- Member Highlights Section (homepage) ---- */
.member-highlights { background: #fff; border-top: 1px solid var(--opf-border); }
.platinum-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.platinum-highlight-card {
  background: #fff;
  border: 2px solid var(--opf-blue);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow var(--transition);
}
.platinum-highlight-card:hover { box-shadow: 0 4px 20px rgba(0,58,140,0.12); }
.platinum-highlight-card .tier-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--opf-blue);
  font-family: var(--font-mono);
  background: rgba(0,58,140,0.06);
  padding: 3px 8px;
  white-space: nowrap;
}
.platinum-highlight-card .member-label {
  font-size: 19px;
  font-weight: 700;
  color: var(--opf-text);
}
.silver-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 40px;
}
.silver-highlight-tile {
  background: var(--opf-bg-alt);
  border: 1px solid var(--opf-border);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--opf-text);
  line-height: 1.4;
  transition: background var(--transition), border-color var(--transition);
}
.silver-highlight-tile:hover { background: #f0f6fb; border-color: var(--opf-blue); color: #222; }
.member-highlights-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--opf-border);
  flex-wrap: wrap;
  gap: 16px;
}
.member-count-note {
  font-size: 14px;
  color: var(--opf-text-light);
  font-family: var(--font-mono);
}
@media (max-width: 600px) {
  .platinum-highlights { grid-template-columns: 1fr; }
  .silver-highlights { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Subscribe / LinkedIn CTA Section ---- */
.subscribe-section {
  background: var(--opf-blue);
  color: #fff;
  text-align: center;
}
.subscribe-section h2 { color: #fff; font-weight: 300; }
.subscribe-section p { color: rgba(255,255,255,0.75); margin-bottom: 32px; font-size: 17px; font-weight: 300; }
.subscribe-legal { font-size: 12px; color: rgba(255,255,255,0.5); max-width: 500px; margin: 0 auto; }
.subscribe-legal a { color: rgba(255,255,255,0.7); text-decoration: underline; }

.linkedin-cta { display: flex; justify-content: center; margin-bottom: 20px; }
.btn-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: #fff;
  color: var(--opf-blue);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-main);
  border: none;
  transition: background var(--transition), color var(--transition);
}
.btn-linkedin:hover { background: var(--opf-bg-alt); color: #222; }

/* ---- Members Highlights Section ---- */
.members-section { background: #fff; border-top: 1px solid var(--opf-border); }
.members-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1px;
  margin-top: 40px;
  background: var(--opf-border);
  border: 1px solid var(--opf-border);
}
.member-highlight {
  background: #fff;
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  text-align: center;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition);
}
.member-highlight:hover { border-bottom-color: var(--opf-blue); }
.member-highlight img { max-height: 50px; max-width: 140px; object-fit: contain; }
.member-highlight span { font-size: 13px; font-weight: 500; color: var(--opf-text); line-height: 1.3; }
.member-highlight.platinum span { color: #333; font-size: 14px; font-weight: 700; }
.member-highlight.academic { background: var(--opf-bg-alt); }
.member-highlight.academic span { color: var(--opf-text-light); }

/* ---- Footer ---- */
.site-footer { background: var(--opf-dark); color: #c6c6c6; }
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 36px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-logo { display: block; line-height: 0; }
.footer-logo img { display: block; }
.footer-social { display: flex; gap: 16px; margin-top: 20px; align-items: center; }
.footer-social a { color: #a0a0a0; transition: color var(--transition); }
.footer-social a:hover { color: #fff; }
.footer-social svg { width: 20px; height: 20px; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; font-weight: 400; color: #bdbdbd; transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px;
  border-top: 1px solid #393939;
  font-size: 12px;
  font-weight: 400;
  color: #a0a0a0;
  line-height: 1.8;
}
.footer-bottom a { color: #bdbdbd; }
.footer-bottom a:hover { color: #fff; }

/* ---- Page Hero (inner pages) ---- */
/* ---- Film grain on dark hero types (post pages, project charters) ---- */
.post-hero,
.charter-hero {
  position: relative;
  overflow: hidden;
}
.post-hero::after,
.charter-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
/* Keep hero inner content above grain layer */
.post-hero-inner,
.charter-hero-inner,
.post-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero {
  background: #fff;
  border-bottom: 1px solid var(--opf-border);
  padding: 44px 24px;
}
.page-hero-inner { max-width: var(--max-width); margin: 0 auto; }
.page-hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--opf-text);
  line-height: 1.15;
}
.page-hero p {
  font-size: 18px;
  font-weight: 300;
  color: var(--opf-text-light);
  max-width: 700px;
  line-height: 1.7;
}

/* ---- Three cols (about page) ---- */
.three-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--opf-border);
  border-left: 1px solid var(--opf-border);
}
.col-item {
  padding: 32px;
  border-right: 1px solid var(--opf-border);
  border-bottom: 1px solid var(--opf-border);
  background: #fff;
}
.col-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--opf-text);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--opf-blue);
}
.col-item ul { padding-left: 20px; list-style: disc; }
.col-item ul li { font-size: 15px; font-weight: 300; color: var(--opf-text-light); margin-bottom: 8px; line-height: 1.65; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-inner { gap: 40px; }
  .hero-chip-img { width: 100%; opacity: 0.35; }
  .hero::before {
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.85) 0%,
      rgba(0,0,0,0.6) 100%
    );
  }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav, .social-icons { display: none; }
  .mobile-menu-btn { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .section-inner { padding: 40px 20px; }
  .cards-grid { gap: 0; }
  .stack-grid { gap: 0; }
}

@media (max-width: 768px) {
  .main-nav.is-open {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #fff;
    z-index: 999;
    padding: 80px 24px 40px;
    overflow-y: auto;
  }
  .main-nav.is-open .nav-list {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    gap: 0;
  }
  .main-nav.is-open .nav-list > li { width: 100%; }
  .main-nav.is-open .nav-list > li > a {
    font-size: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--opf-border);
    border-left: none;
    width: 100%;
  }
  .main-nav.is-open .dropdown {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    border-top: none;
    padding-left: 16px;
  }
}
