/* ==========================================================================
   Building Our Tech — Design System
   Titles:  League Spartan
   Body:    Hanken Grotesk (Google Fonts)
   WCAG 2.1 AA verified. Contrast ratios noted inline.
   ========================================================================== */

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  /* Brand palette */
  --silver-light:  #C5C6C9;
  --legacy-blue:   #0A3CFF;
  --midnight-tech: #0B1D4F;
  --horizon-blue:  #7B92D1;

  /* Neutrals */
  --white:      #FFFFFF;
  --off-white:  #F7F8FA;
  --mist:       #EDEFF4;

  /* Semantic roles — contrast measured against their intended background
     ------------------------------------------------------------------
     text-primary   on white        16.1:1  AAA
     text-body      on white        13.8:1  AAA
     text-muted     on white         7.7:1  AAA
     accent         on white         6.8:1  AA
     white          on accent        6.8:1  AA
     horizon-blue   on midnight      5.3:1  AA
     silver-light   NEVER as text on white (1.8:1) — borders/fills only
     ------------------------------------------------------------------ */
  --text-primary: var(--midnight-tech);
  --text-body:    #1A2B57;
  --text-muted:   #45527A;
  --text-invert:  var(--white);
  --accent:       var(--legacy-blue);
  --accent-hover: #0730CC;
  --surface:      var(--white);
  --surface-alt:  var(--off-white);
  --surface-dark: var(--midnight-tech);
  --hairline:     var(--silver-light);
  --hairline-soft:#E2E4E9;

  /* Type scale — fluid */
  --font-display: 'League Spartan', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', -apple-system,
               BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --fs-hero:  clamp(2.75rem, 1.4rem + 5.6vw, 6rem);
  --fs-h1:    clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
  --fs-h2:    clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
  --fs-h3:    clamp(1.375rem, 1.15rem + 1vw, 1.875rem);
  --fs-h4:    clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  --fs-lead:  clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem);
  --fs-body:  clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-small: 0.9375rem;
  --fs-eyebrow: 0.8125rem;

  /* Spacing — generous by design */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs:  0.75rem;
  --space-s:   1rem;
  --space-m:   1.5rem;
  --space-l:   2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: clamp(5rem, 3rem + 9vw, 10rem);

  --container: 1240px;
  --container-narrow: 780px;
  --radius: 4px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 2px rgba(11, 29, 79, 0.06);
  --shadow-md: 0 8px 30px rgba(11, 29, 79, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 29, 79, 0.12);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 320ms;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem; /* clears sticky header on anchor jump */
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ==========================================================================
   3. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; }
h4 { font-size: var(--fs-h4); line-height: 1.25; letter-spacing: -0.01em; }

p { text-wrap: pretty; }
p + p { margin-top: var(--space-s); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text-muted);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-m);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--accent);
  flex: none;
}
.eyebrow--invert { color: var(--horizon-blue); }
.eyebrow--invert::before { background: var(--horizon-blue); }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }

/* ==========================================================================
   4. Accessibility primitives
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-s);
  z-index: 999;
  background: var(--midnight-tech);
  color: var(--white);
  padding: var(--space-xs) var(--space-m);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: top 180ms var(--ease);
}
.skip-link:focus { top: var(--space-s); color: var(--white); }

/* Visible, high-contrast focus ring on every interactive element */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--legacy-blue);
  outline-offset: 3px;
  border-radius: 2px;
}
.surface-dark :where(a, button, input, textarea, select, summary):focus-visible {
  outline-color: var(--white);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   5. Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 0.5rem + 3vw, 3rem);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-3xl); }
.section--tight { padding-block: var(--space-2xl); }
.section-alt { background: var(--surface-alt); }
.surface-dark {
  background: var(--surface-dark);
  color: rgba(255, 255, 255, 0.86);
}
.surface-dark h1, .surface-dark h2,
.surface-dark h3, .surface-dark h4 { color: var(--white); }
.surface-dark .lead { color: rgba(255, 255, 255, 0.78); }
.surface-dark a { color: var(--horizon-blue); } /* 5.3:1 on midnight — AA */

.section-head { max-width: 62ch; margin-bottom: var(--space-xl); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head .lead { margin-top: var(--space-m); }

.grid { display: grid; gap: var(--space-l); }
@media (min-width: 700px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px)  { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   6. Buttons
   ========================================================================== */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--white);
  --btn-bd: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  min-height: 52px;             /* ≥44px touch target (WCAG 2.5.5) */
  padding: 0.875rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-bd);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.btn:hover {
  --btn-bg: var(--accent-hover);
  --btn-bd: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
}
.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--midnight-tech); --btn-bd: var(--midnight-tech); }
.btn--outline:hover { --btn-bg: var(--midnight-tech); --btn-fg: var(--white); --btn-bd: var(--midnight-tech); }

.btn--invert { --btn-bg: var(--white); --btn-fg: var(--midnight-tech); --btn-bd: var(--white); }
.btn--invert:hover { --btn-bg: var(--horizon-blue); --btn-fg: var(--midnight-tech); --btn-bd: var(--horizon-blue); color: var(--midnight-tech); }

.btn--ghost-invert { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255,255,255,0.5); }
.btn--ghost-invert:hover { --btn-bg: var(--white); --btn-fg: var(--midnight-tech); --btn-bd: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-s); }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  min-height: 44px;
}
.link-arrow .arrow { transition: transform var(--dur) var(--ease); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ==========================================================================
   7. Header / navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--hairline-soft);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  color: var(--midnight-tech);
  text-decoration: none;
  flex: none;
}
.brand:hover { color: var(--midnight-tech); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text .brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1px;
}

.primary-nav { display: none; }
@media (min-width: 1080px) { .primary-nav { display: block; } }

.nav-list { display: flex; align-items: center; gap: var(--space-3xs); list-style: none; padding: 0; margin: 0; }
.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 44px;          /* WCAG 2.5.5 target size */
  padding: 0.6rem 0.85rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius);
  white-space: nowrap;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-link:hover { color: var(--accent); background: var(--mist); }
.nav-link[aria-current="page"] { color: var(--accent); font-weight: 700; }
.nav-link .chev { transition: transform var(--dur) var(--ease); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 268px;
  background: var(--white);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2xs);
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.nav-item.is-open .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a {
  display: flex;
  align-items: center;
  min-height: 44px;          /* WCAG 2.5.5 target size */
  padding: 0.6rem 0.85rem;
  font-size: 0.9375rem;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius);
}
.submenu a:hover { background: var(--mist); color: var(--accent); }

.header-actions { display: none; gap: var(--space-2xs); align-items: center; }
@media (min-width: 1080px) { .header-actions { display: flex; } }
.header-actions .btn { min-height: 46px; padding: 0.6rem 1.25rem; font-size: 0.8125rem; }

/* Mobile toggle */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px; height: 48px;
  padding: 0 11px;
  background: none;
  border: 0;
  cursor: pointer;
}
@media (min-width: 1080px) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--midnight-tech);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 82px 0 0 0;
  z-index: 99;
  background: var(--white);
  padding: var(--space-m) 0 var(--space-2xl);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--dur) var(--ease), visibility var(--dur);
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }
@media (min-width: 1080px) { .mobile-nav { display: none; } }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav > .container > ul > li { border-bottom: 1px solid var(--hairline-soft); }
.mobile-nav a, .mobile-nav .m-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--space-s);
  padding: 1rem 0;
  min-height: 56px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.mobile-nav .m-toggle .chev { transition: transform var(--dur) var(--ease); flex: none; }
.mobile-nav .m-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mobile-nav .m-sub { display: none; padding: 0 0 var(--space-s) var(--space-s); }
.mobile-nav .m-sub.is-open { display: block; }
.mobile-nav .m-sub a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.625rem 0;
  min-height: 44px;
}
.mobile-nav .btn-row { margin-top: var(--space-l); }
.mobile-nav .btn { width: 100%; }
body.nav-open { overflow: hidden; }

/* ==========================================================================
   8. Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 2rem + 8vw, 8rem) var(--space-3xl);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-3xl); }
}

.hero h1 {
  font-size: var(--fs-hero);
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.hero h1 .accent { color: var(--accent); }
.hero .lead { margin-top: var(--space-m); max-width: 54ch; }
.hero .btn-row { margin-top: var(--space-xl); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: 0.45rem 0.9rem 0.45rem 0.5rem;
  margin-bottom: var(--space-l);
  background: var(--mist);
  border: 1px solid var(--hairline-soft);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}
.hero-badge b {
  background: var(--midnight-tech);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 100px;
}

/* Learn → Build → Scale visual */
.pathway {
  display: grid;
  gap: var(--space-s);
  padding: var(--space-l);
  background: var(--surface-alt);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
}
.pathway-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-m);
  padding: var(--space-m);
  background: var(--white);
  border: 1px solid var(--hairline-soft);
  border-left: 3px solid var(--horizon-blue);
  border-radius: var(--radius);
  transition: transform var(--dur) var(--ease), border-left-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.pathway-step:nth-child(2) { margin-left: clamp(0px, 3vw, 28px); }
.pathway-step:nth-child(3) { margin-left: clamp(0px, 6vw, 56px); }
.pathway-step:hover { transform: translateX(4px); border-left-color: var(--accent); box-shadow: var(--shadow-md); }
.pathway-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--horizon-blue);
  padding-top: 0.35rem;
  flex: none;
}
.pathway-step h3 { font-size: 1.25rem; margin-bottom: 0.2rem; }
.pathway-step p { font-size: var(--fs-small); color: var(--text-muted); line-height: 1.5; }

/* ==========================================================================
   9. Stats
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
.stat {
  background: var(--midnight-tech);
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem) clamp(1rem, 0.5rem + 2vw, 2rem);
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--white);
}
.stat-label {
  display: block;
  margin-top: var(--space-2xs);
  font-size: var(--fs-small);
  color: var(--horizon-blue); /* 5.3:1 on midnight — AA */
  line-height: 1.4;
}

/* ==========================================================================
   10. Cards
   ========================================================================== */
.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  background: var(--white);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--horizon-blue); }
.card h3 { margin-bottom: var(--space-xs); }
.card p { color: var(--text-muted); flex: 1; }
.card .link-arrow { margin-top: var(--space-m); align-self: flex-start; }

.card-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: var(--space-m);
  background: var(--mist);
  border-radius: var(--radius);
  color: var(--accent);
  flex: none;
}
.card:hover .card-icon { background: var(--legacy-blue); color: var(--white); }

.card-list { list-style: none; padding: 0; margin: var(--space-m) 0 0; display: grid; gap: var(--space-2xs); }
.card-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.card-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  background: var(--horizon-blue);
  border-radius: 50%;
}

/* ==========================================================================
   11. Testimonials
   ========================================================================== */
.quote-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--hairline-soft);
  border-top: 3px solid var(--legacy-blue);
  border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.quote-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.quote-mark {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 0.6;
  color: var(--horizon-blue);
  margin-bottom: var(--space-s);
}
.quote-card blockquote { margin: 0; flex: 1; font-size: 1.0625rem; line-height: 1.6; color: var(--text-body); }
.quote-card figcaption { margin-top: var(--space-m); padding-top: var(--space-m); border-top: 1px solid var(--hairline-soft); }
.quote-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; color: var(--text-primary); }
.quote-role { display: block; margin-top: 2px; font-size: 0.875rem; color: var(--text-muted); }

/* ==========================================================================
   12. FAQ (AEO)
   ========================================================================== */
.faq { display: grid; gap: var(--space-xs); }
.faq-item {
  background: var(--white);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq-item[open] { border-color: var(--horizon-blue); box-shadow: var(--shadow-md); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  padding: clamp(1.1rem, 0.9rem + 0.6vw, 1.5rem) clamp(1.25rem, 1rem + 1vw, 1.75rem);
  min-height: 64px;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-icon { flex: none; color: var(--accent); transition: transform var(--dur) var(--ease); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 clamp(1.25rem, 1rem + 1vw, 1.75rem) clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.faq-answer p { color: var(--text-muted); max-width: 70ch; }

/* ==========================================================================
   13. Partners
   ========================================================================== */
.partner-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 1rem + 5vw, 5rem);
}
.partner {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 0.9rem + 1vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.partner:hover { color: var(--midnight-tech); }

/* ==========================================================================
   14. Posts
   ========================================================================== */
.post-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--horizon-blue); }
.post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  margin-bottom: var(--space-s);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.post-meta time { color: var(--text-muted); font-family: var(--font-body); letter-spacing: 0; text-transform: none; font-weight: 500; font-size: 0.8125rem; }
.post-card h3 { font-size: 1.25rem; margin-bottom: var(--space-xs); }
.post-card p { color: var(--text-muted); font-size: var(--fs-small); flex: 1; }
.post-card .link-arrow { margin-top: var(--space-m); }

/* ==========================================================================
   15. CTA band
   ========================================================================== */
.cta-band { position: relative; overflow: hidden; }
.cta-band .container { position: relative; z-index: 1; }
.cta-inner { text-align: center; max-width: 720px; margin-inline: auto; }
.cta-inner h2 { font-size: var(--fs-h1); }
.cta-inner .lead { margin-top: var(--space-m); }
.cta-inner .btn-row { margin-top: var(--space-xl); justify-content: center; }

/* ==========================================================================
   16. Forms
   ========================================================================== */
.form-grid { display: grid; gap: var(--space-m); }
@media (min-width: 640px) { .form-grid .field--half { grid-column: span 1; } .form-grid { grid-template-columns: repeat(2, 1fr); } .field--full { grid-column: 1 / -1; } }

.field label {
  display: block;
  margin-bottom: var(--space-3xs);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}
.field .req { color: var(--accent); }
.field .hint { display: block; margin-top: var(--space-3xs); font-size: 0.8125rem; color: var(--text-muted); font-weight: 400; font-family: var(--font-body); letter-spacing: 0; }

.field input, .field textarea, .field select {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: var(--text-body);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--horizon-blue); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 60, 255, 0.14);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B3261E; }
.field-error {
  display: none;
  margin-top: var(--space-3xs);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #B3261E; /* 6.4:1 on white — AA */
}
.field-error.is-visible { display: flex; align-items: center; gap: 0.3rem; }

.form-status {
  grid-column: 1 / -1;   /* error summary always spans the full form width */
  padding: var(--space-m);
  border-radius: var(--radius);
  font-weight: 500;
  border: 1px solid;
}
.form-status[data-state="success"] { background: #EAF3EC; border-color: #1E6B34; color: #14522A; }
.form-status[data-state="error"] { background: #FBEAE9; border-color: #B3261E; color: #8C1D18; }

/* ==========================================================================
   17. Footer
   ========================================================================== */
.site-footer { background: var(--midnight-tech); color: rgba(255, 255, 255, 0.72); }
.footer-top { padding-block: var(--space-2xl) var(--space-xl); }
.footer-grid { display: grid; gap: var(--space-xl); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-l); } }

.footer-brand .brand { color: var(--white); margin-bottom: var(--space-m); }
.footer-brand .brand-text .brand-sub { color: var(--horizon-blue); }
.footer-brand p { font-size: var(--fs-small); max-width: 38ch; line-height: 1.6; }
.footer-legal-note { margin-top: var(--space-m); font-size: 0.8125rem; color: rgba(255,255,255,0.6); }

.footer-col h2 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--horizon-blue);
  margin-bottom: var(--space-m);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3xs); }
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;          /* WCAG 2.5.5 target size */
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}
.footer-col a:hover { color: var(--white); text-decoration: underline; }

.social-row { display: flex; gap: var(--space-2xs); margin-top: var(--space-m); }
.social-link {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.82);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.social-link:hover { background: var(--white); border-color: var(--white); color: var(--midnight-tech); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: var(--space-m);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  font-size: 0.8125rem;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: var(--space-m); }
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;          /* WCAG 2.5.5 target size */
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--white); text-decoration: underline; }

/* ==========================================================================
   18. Page hero (interior pages)
   ========================================================================== */
.page-hero { padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(2.5rem, 2rem + 4vw, 5rem); background: var(--surface-alt); border-bottom: 1px solid var(--hairline-soft); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { margin-top: var(--space-m); max-width: 62ch; }

.breadcrumb { margin-bottom: var(--space-m); font-size: 0.875rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs); list-style: none; padding: 0; margin: 0; }
.breadcrumb li { display: flex; align-items: center; gap: var(--space-2xs); color: var(--text-muted); }
.breadcrumb li:not(:last-child)::after { content: '/'; color: var(--hairline); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--text-primary); font-weight: 600; }

/* Prose */
.prose > * + * { margin-top: var(--space-m); }
.prose h2 { margin-top: var(--space-xl); }
.prose h3 { margin-top: var(--space-l); }
.prose ul, .prose ol { padding-left: 1.25rem; display: grid; gap: var(--space-2xs); }
.prose li { color: var(--text-muted); }
.prose blockquote {
  margin: var(--space-l) 0;
  padding: var(--space-m) var(--space-l);
  border-left: 3px solid var(--legacy-blue);
  background: var(--surface-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-primary);
}

/* Value pills */
.value-list { display: grid; gap: var(--space-m); list-style: none; padding: 0; }
@media (min-width: 800px) { .value-list { grid-template-columns: repeat(3, 1fr); } }
.value-list li {
  padding: var(--space-l);
  background: var(--white);
  border: 1px solid var(--hairline-soft);
  border-top: 3px solid var(--horizon-blue);
  border-radius: var(--radius-lg);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

/* Contact info block */
.contact-info { display: grid; gap: var(--space-l); }
.contact-item { display: flex; gap: var(--space-m); align-items: flex-start; }
.contact-item .card-icon { margin-bottom: 0; width: 48px; height: 48px; }
.contact-item h3 { font-size: 1.0625rem; margin-bottom: 0.15rem; }
.contact-item p, .contact-item a { font-size: var(--fs-small); color: var(--text-muted); }
.contact-item a { color: var(--accent); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 620ms var(--ease), transform 620ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Print */
@media print {
  .site-header, .mobile-nav, .cta-band, .site-footer, .skip-link { display: none !important; }
  body { color: #000; }
  a::after { content: ' (' attr(href) ')'; font-size: 0.8em; }
}

/* ==========================================================================
   19. Fact grid — program details (also reads well to answer engines)
   ========================================================================== */
.fact-grid {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--hairline-soft);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 640px) { .fact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .fact-grid { grid-template-columns: repeat(4, 1fr); } }
.fact { background: var(--white); padding: var(--space-m) var(--space-m) calc(var(--space-m) + 2px); }
.fact dt {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3xs);
}
.fact dd { margin: 0; font-size: 1.0625rem; font-weight: 500; color: var(--text-primary); line-height: 1.35; }
.fact dd small { display: block; margin-top: 2px; font-size: 0.8125rem; font-weight: 400; color: var(--text-muted); }

/* ==========================================================================
   20. Pricing
   ========================================================================== */
.price-grid { display: grid; gap: var(--space-m); }
@media (min-width: 700px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price {
  padding: var(--space-l);
  background: var(--white);
  border: 1px solid var(--hairline-soft);
  border-top: 3px solid var(--horizon-blue);
  border-radius: var(--radius-lg);
  text-align: center;
}
.price--highlight { border-top-color: var(--legacy-blue); box-shadow: var(--shadow-md); }
.price-amount {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.price-label { display: block; margin-top: var(--space-2xs); font-size: var(--fs-small); color: var(--text-muted); }

/* ==========================================================================
   21. Numbered stages
   ========================================================================== */
.stage-list { display: grid; gap: var(--space-m); list-style: none; padding: 0; margin: 0; counter-reset: stage; }
.stage {
  display: flex;
  gap: var(--space-m);
  padding: var(--space-l);
  background: var(--white);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.stage:hover { border-color: var(--horizon-blue); box-shadow: var(--shadow-md); }
.stage::before {
  counter-increment: stage;
  content: counter(stage, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--horizon-blue);
  padding-top: 0.3rem;
  flex: none;
}
.stage h3 { font-size: 1.1875rem; margin-bottom: var(--space-3xs); }
.stage p { color: var(--text-muted); font-size: var(--fs-small); }

/* Week-by-week curriculum */
.week-list { display: grid; gap: var(--space-xs); list-style: none; padding: 0; margin: 0; }
.week {
  display: grid;
  gap: var(--space-2xs);
  padding: var(--space-m) var(--space-l);
  background: var(--white);
  border: 1px solid var(--hairline-soft);
  border-left: 3px solid var(--legacy-blue);
  border-radius: var(--radius);
}
@media (min-width: 760px) { .week { grid-template-columns: 116px 1fr; gap: var(--space-l); align-items: baseline; } }
.week-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.week h3 { font-size: 1.0625rem; margin-bottom: var(--space-3xs); }
.week p, .week li { font-size: var(--fs-small); color: var(--text-muted); }
.week ul { margin: var(--space-2xs) 0 0; padding-left: 1.1rem; display: grid; gap: 2px; }

/* ==========================================================================
   22. Team & founders
   ========================================================================== */
.people-grid { display: grid; gap: var(--space-m); list-style: none; padding: 0; margin: 0; }
/* Two columns rather than three: these cards carry bios now, and three columns
   squeezed the prose to an unreadable width. align-items:start so a card without
   a bio hugs its content instead of stretching to match the one beside it —
   several people have no bio yet. */
@media (min-width: 780px) {
  .people-grid { grid-template-columns: repeat(2, 1fr); align-items: start; }
}
.person {
  padding: var(--space-l);
  background: var(--white);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--horizon-blue); }
.person-initials {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: var(--space-m);
  background: var(--midnight-tech);
  color: var(--white);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
}
.person h3 { font-size: 1.125rem; margin-bottom: 2px; }
.person .role { display: block; font-size: var(--fs-small); color: var(--text-muted); }
.person .venture { display: block; margin-top: var(--space-2xs); font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; color: var(--accent); }
.person .sector {
  display: inline-block;
  margin-top: var(--space-s);
  padding: 0.25rem 0.6rem;
  background: var(--mist);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}
.person p.bio { margin-top: var(--space-s); font-size: var(--fs-small); color: var(--text-muted); }

/* ==========================================================================
   23. Post index rows
   ========================================================================== */
.post-list { display: grid; gap: 0; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--hairline-soft); }
.post-row { border-bottom: 1px solid var(--hairline-soft); }
.post-row a {
  display: grid;
  gap: var(--space-2xs);
  padding: var(--space-m) 0;
  text-decoration: none;
  transition: padding var(--dur) var(--ease);
}
@media (min-width: 800px) {
  .post-row a { grid-template-columns: 132px 1fr auto; gap: var(--space-l); align-items: baseline; }
}
.post-row a:hover { padding-inline: var(--space-s); background: var(--surface-alt); }
.post-row time { font-size: 0.8125rem; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.post-row h3 { font-size: 1.125rem; line-height: 1.3; color: var(--text-primary); }
.post-row a:hover h3 { color: var(--accent); }
.post-row .go { color: var(--accent); font-size: 0.8125rem; font-weight: 700; font-family: var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }

/* ==========================================================================
   24. Article
   ========================================================================== */
.article-hero { padding-block: clamp(2.5rem, 2rem + 4vw, 5rem) var(--space-l); }
.article-hero h1 { max-width: 22ch; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2xs) var(--space-m);
  margin-top: var(--space-m);
  padding-top: var(--space-m);
  border-top: 1px solid var(--hairline-soft);
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.article-meta .by { font-weight: 600; color: var(--text-primary); }
.article-body { padding-bottom: var(--space-3xl); }
.article-body > * + * { margin-top: var(--space-m); }
.article-body h2 { margin-top: var(--space-xl); font-size: var(--fs-h3); }
.article-body h3 { margin-top: var(--space-l); font-size: var(--fs-h4); }
.article-body ul, .article-body ol { padding-left: 1.25rem; display: grid; gap: var(--space-2xs); }
.article-body li { color: var(--text-muted); }
.article-body li strong { color: var(--text-primary); }
.article-body blockquote {
  margin: var(--space-l) 0;
  padding: var(--space-m) var(--space-l);
  border-left: 3px solid var(--legacy-blue);
  background: var(--surface-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--text-primary);
}
.callout {
  padding: var(--space-l);
  background: var(--surface-alt);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
}
.callout h2, .callout h3 { margin-top: 0; }
.callout dl { margin: 0; display: grid; gap: var(--space-2xs); }
.callout dt { font-family: var(--font-display); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.callout dd { margin: 0 0 var(--space-2xs); color: var(--text-body); }

/* ==========================================================================
   25. Legal / long-form prose page
   ========================================================================== */
.legal { padding-bottom: var(--space-3xl); }
.legal > * + * { margin-top: var(--space-m); }
.legal h2 { margin-top: var(--space-xl); font-size: var(--fs-h3); }
.legal h3 { margin-top: var(--space-l); font-size: var(--fs-h4); }
.legal ul { padding-left: 1.25rem; display: grid; gap: var(--space-2xs); }
.legal li { color: var(--text-muted); }
.legal .updated { font-size: var(--fs-small); color: var(--text-muted); }

/* ==========================================================================
   26. Brand logo (imported from the live site)
   The source file is white-on-transparent, so it is filtered to Midnight on
   light surfaces and used as-is on dark ones.
   ========================================================================== */
.brand-logo {
  height: 46px;
  width: auto;
  flex: none;
  /* no filter: the header uses the blue file and the footer the white one */
}
.site-footer .brand-logo { height: 62px; }
@media (min-width: 1080px) { .brand-logo { height: 54px; } }

/* ==========================================================================
   27. Hero media
   ========================================================================== */
.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--mist);
  box-shadow: var(--shadow-lg);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(10, 60, 255, 0.10), rgba(11, 29, 79, 0.20));
  pointer-events: none;
}

/* Photo band — split layout.
   Previously this was a full-bleed letterbox: a 3.23:1 strip holding 3:2
   photographs, which threw away 54% of every image and cut through people's
   heads. The media panel now carries an explicit aspect ratio matched to the
   source material, so almost nothing is cropped. */
.photo-band {
  background: var(--midnight-tech);
  color: var(--white);
}
.band-grid { display: grid; }
@media (min-width: 900px) {
  .band-grid { grid-template-columns: 1.12fr 1fr; align-items: stretch; }
  .photo-band--flip .band-media { order: 2; }
}
.band-media {
  position: relative;
  aspect-ratio: 3 / 2;          /* matches the 1500x1000 sources exactly */
  background: var(--midnight-tech);
  overflow: hidden;
}
.band-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal, 50% 42%);   /* faces sit above center */
}
@media (min-width: 900px) {
  .band-media { aspect-ratio: auto; min-height: 340px; }
}
.band-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-s);
  padding: var(--space-xl) var(--space-l);
}
@media (min-width: 640px)  { .band-inner { padding: var(--space-2xl) var(--space-xl); } }
@media (min-width: 1240px) { .band-inner { padding: var(--space-3xl) var(--space-2xl); } }
.band-inner h2 { color: var(--white); }
.band-inner p {
  color: rgba(255, 255, 255, 0.88);   /* 11.4:1 on Midnight — AAA */
  font-size: var(--fs-lead);
  line-height: 1.5;
  max-width: 46ch;
}

/* ==========================================================================
   28. People photos
   ========================================================================== */
.person-photo {
  display: block;
  width: clamp(104px, 8vw + 60px, 140px);
  height: clamp(104px, 8vw + 60px, 140px);
  margin-bottom: var(--space-m);
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center 20%;
  background: var(--mist);
  border: 1px solid var(--hairline-soft);
}
.person:hover .person-photo { border-color: var(--horizon-blue); }

/* ==========================================================================
   29. Partner logos
   ========================================================================== */
.partner-logo {
  height: clamp(34px, 2vw + 22px, 52px);
  width: auto;
  max-width: 210px;
  object-fit: contain;
  opacity: 0.72;
  transition: opacity var(--dur) var(--ease);
}
a.partner:hover .partner-logo,
.partner-logo:hover { opacity: 1; }
/* Source files carry different amounts of built-in whitespace — these
   multipliers make the three marks read at the same optical weight. */
.partner-logo--jpm { height: clamp(62px, 3.8vw + 40px, 96px); max-width: 300px; }
.partner-logo--oc  { height: clamp(42px, 2.5vw + 27px, 64px); }
.partner-row a { display: inline-flex; align-items: center; min-height: 44px; }

/* ==========================================================================
   30. Article lead image
   ========================================================================== */
.article-lead {
  margin-top: var(--space-l);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--mist);
}
.article-lead img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article-lead figcaption {
  padding: var(--space-2xs) var(--space-s) var(--space-s);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Program page inline figure */
.figure-inline {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.figure-inline img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ==========================================================================
   31. Video — click-to-play facade
   Nothing loads from YouTube until the viewer presses play: the poster is
   served locally and the iframe is injected on activation. Faster first paint,
   and no third-party cookies set on arrival.
   ========================================================================== */
.video {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--midnight-tech);
  box-shadow: var(--shadow-md);
}
.video-frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  aspect-ratio: 16 / 9;
  background: var(--midnight-tech);
  cursor: pointer;
  color: var(--white);
  text-align: left;
  font: inherit;
}
.video-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease), opacity var(--dur) var(--ease);
}
.video-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 29, 79, 0.10) 40%, rgba(11, 29, 79, 0.80));
  transition: background var(--dur) var(--ease);
}
.video-frame:hover img,
.video-frame:focus-visible img { transform: scale(1.03); }
.video-frame:focus-visible {
  outline: 3px solid var(--legacy-blue);
  outline-offset: 3px;
}

.video-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 68px; height: 68px;
  background: var(--legacy-blue);
  border-radius: 50%;
  box-shadow: 0 8px 28px rgba(11, 29, 79, 0.42);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.video-frame:hover .video-play,
.video-frame:focus-visible .video-play { transform: translate(-50%, -50%) scale(1.09); }
.video-play svg { margin-left: 4px; }
@media (min-width: 760px) { .video-play { width: 84px; height: 84px; } }

.video-label {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  padding: var(--space-m) var(--space-m) var(--space-s);
}
.video-label .video-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.1875rem);
  line-height: 1.25;
  color: var(--white);
  text-wrap: balance;
}
.video-label .video-meta {
  display: block;
  margin-top: var(--space-3xs);
  font-size: 0.78125rem;
  color: rgba(255, 255, 255, 0.82);
}
.video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .video-frame img, .video-play { transition: none; }
  .video-frame:hover img { transform: none; }
}

/* Grid of videos */
.video-grid { display: grid; gap: var(--space-m); }
@media (min-width: 720px)  { .video-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px)  { .video-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .video-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.video-grid--3 .video-play { width: 56px; height: 56px; }

/* Feature layout: one large video beside copy */
.video-feature { display: grid; gap: var(--space-xl); align-items: center; }
@media (min-width: 900px) { .video-feature { grid-template-columns: 1.15fr 1fr; } }
.video-feature--reverse > .video { order: -1; }
@media (min-width: 900px) { .video-feature--reverse > .video { order: 0; } }

/* ==========================================================================
   32. Map
   ========================================================================== */
.map-embed {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline-soft);
  background: var(--mist);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 24vw + 160px, 440px);
  border: 0;
  filter: grayscale(0.28) contrast(1.03);
}
.map-note {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-m);
  align-items: baseline;
  margin-top: var(--space-s);
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* ==========================================================================
   33. Portrait figure — a slot built for portrait-orientation photographs.
   A wide split band is a landscape slot; putting a 2:3 photo in one crops
   about half of it away whatever the focal point. These get their own frame.
   ========================================================================== */
/* top-aligned: the portrait is much taller than the list beside it, and
   centring left the bullets floating in ~240px of dead space */
.split-portrait { display: grid; gap: var(--space-xl); align-items: start; }
@media (min-width: 860px) { .split-portrait { grid-template-columns: 1fr 0.72fr; } }
.figure-portrait {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--mist);
}
.figure-portrait img {
  display: block;
  width: 100%;
  /* 4:4.4 rather than 4:5 — close enough in height to the copy beside it that
     the column below the text does not read as a void, while still keeping
     about three quarters of the portrait */
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  object-position: var(--focal, 50% 30%);
}
.figure-portrait figcaption {
  padding: var(--space-s) var(--space-m);
  background: var(--white);
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid var(--hairline-soft);
}

/* ==========================================================================
   34. Immersive hero
   Full-bleed photograph carrying the headline and the impact figures. The
   scrim is two layers: a horizontal pass that darkens the text side without
   dulling the faces on the right, and a vertical pass that guarantees
   contrast under the stat row whatever the photograph is doing there.
   ========================================================================== */
.hero--immersive {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(460px, 50vw, 610px);
  overflow: hidden;
  background: var(--midnight-tech);
}
.hero--immersive > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal, 50% 56%);
}
.hero--immersive::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 29, 79, 0) 42%, rgba(11, 29, 79, 0.88) 100%),
    linear-gradient(100deg, rgba(11, 29, 79, 0.95) 0%, rgba(11, 29, 79, 0.86) 40%,
                    rgba(11, 29, 79, 0.55) 66%, rgba(11, 29, 79, 0.34) 100%);
}
@media (max-width: 760px) {
  .hero--immersive::after {
    background: linear-gradient(180deg, rgba(11, 29, 79, 0.74), rgba(11, 29, 79, 0.95));
  }
}
.hero--immersive .hero-inner { position: relative; z-index: 1; padding-block: var(--space-2xl); }
.hero--immersive h1 { color: var(--white); max-width: 17ch; }
.hero--immersive .lead { color: rgba(255, 255, 255, 0.9); max-width: 52ch; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-m) var(--space-l);
  margin-top: var(--space-xl);
  padding-top: var(--space-l);
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}
@media (min-width: 640px)  { .hero-stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1140px) { .hero-stats { grid-template-columns: repeat(6, 1fr); } }
.hero-stats b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 0.95rem + 1.15vw, 1.85rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
}
.hero-stats span {
  display: block;
  margin-top: 5px;
  font-size: 0.78125rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.82);   /* >= 9:1 on the scrimmed base */
}

/* ==========================================================================
   35. Faces on testimonials
   A quote reads differently when there is a person attached to it.
   ========================================================================== */
.quote-card figcaption {
  display: flex;
  align-items: center;
  gap: var(--space-s);
}
.quote-photo {
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  object-position: var(--focal, 50% 22%);
  background: var(--mist);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--hairline-soft);
}
.quote-card figcaption > div { min-width: 0; }

/* ==========================================================================
   36. Post card thumbnails
   The negative margin pulls the image to the card edge, cancelling the
   card's own padding.
   ========================================================================== */
.post-card { overflow: hidden; }
.post-thumb {
  display: block;
  margin: calc(-1 * clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem));
  margin-bottom: var(--space-m);
  background: var(--mist);
  overflow: hidden;
}
.post-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: var(--focal, 50% 42%);
  transition: transform var(--dur-slow) var(--ease);
}
.post-card:hover .post-thumb img { transform: scale(1.045); }
@media (prefers-reduced-motion: reduce) {
  .post-thumb img { transition: none; }
  .post-card:hover .post-thumb img { transform: none; }
}

/* ==========================================================================
   37. Instructor callout
   ========================================================================== */
.instructor {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  padding: var(--space-l);
  background: var(--surface-alt);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  max-width: 74ch;
}
@media (min-width: 560px) { .instructor { flex-direction: row; align-items: flex-start; gap: var(--space-l); } }
.instructor-photo {
  flex: none;
  width: 88px;
  height: 88px;
  /* squared, against the testimonial's circle */
  border-radius: var(--radius);
  object-fit: cover;
  object-position: var(--focal, 50% 22%);
  background: var(--mist);
  border: 1px solid var(--hairline-soft);
}
.instructor-body { min-width: 0; }
.instructor-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3xs);
}
.instructor-body h3 { font-size: 1.1875rem; margin-bottom: var(--space-2xs); }
.instructor-body p { color: var(--text-muted); font-size: var(--fs-small); margin: 0; }

/* Two instructors side by side */
.instructor-grid { display: grid; gap: var(--space-m); }
@media (min-width: 980px) { .instructor-grid { grid-template-columns: repeat(2, 1fr); } }
.instructor-grid .instructor { max-width: none; }
.instructor-role {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--accent);
  margin: 0 0 var(--space-2xs);
}
.instructor-body p.instructor-role + p { margin-top: 0; }

/* ==========================================================================
   38. Feature pull-quote
   A standalone testimonial sitting near an instructor card needs to read as a
   different kind of thing: someone speaking, not a credential. Dark ground,
   larger type, and the circular portrait the instructor card deliberately
   does not use. The homepage three-up grid keeps the plain .quote-card.
   ========================================================================== */
.quote-card--feature {
  position: relative;
  display: grid;
  gap: var(--space-l);
  background: var(--midnight-tech);
  border: 0;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  overflow: hidden;
}
/* Wide layout: attribution in a fixed column, quote running across the rest,
   echoing the label-plus-content rhythm of the curriculum weeks. */
@media (min-width: 860px) {
  .quote-card--feature {
    /* one row, two columns: the quote and its mark share a cell, so the tall
       attribution column can no longer stretch them apart */
    grid-template-columns: 272px 1fr;
    column-gap: var(--space-2xl);
    align-items: center;
  }
  .quote-card--feature .quote-body { grid-column: 2; grid-row: 1; }
  .quote-card--feature figcaption  { grid-column: 1; grid-row: 1; }
  .quote-card--feature figcaption {
    grid-column: 1;
    grid-row: 1 / span 2;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-s);
    margin: 0;
    padding: 0 var(--space-xl) 0 0;
    border-top: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }
  .quote-card--feature .quote-photo { width: 104px; height: 104px; }
}
.quote-card--feature::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--legacy-blue), var(--horizon-blue));
}
.quote-card--feature .quote-mark {
  font-size: clamp(2.25rem, 1.7rem + 1.8vw, 3rem);
  line-height: 0.8;
  color: var(--horizon-blue);
  opacity: 0.9;
  margin: 0 0 var(--space-3xs);
}
.quote-card--feature blockquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.125rem, 0.9rem + 1.15vw, 1.75rem);
  line-height: 1.34;
  letter-spacing: -0.015em;
  color: var(--white);
  text-wrap: pretty;
  max-width: 30ch;
}
.quote-card--feature figcaption {
  margin-top: 0;                 /* the grid row gap already separates these */
  padding-top: var(--space-m);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.quote-card--feature .quote-photo {
  width: 62px;
  height: 62px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: none;
}
.quote-card--feature .quote-name { color: var(--white); font-size: 1.125rem; }
.quote-card--feature .quote-role { color: rgba(255, 255, 255, 0.78); }
.quote-card--feature .link-arrow { color: var(--horizon-blue); margin-top: var(--space-2xs); }
.quote-card--feature .link-arrow:hover { color: var(--white); }

/* ==========================================================================
   39. Approach + instructor split
   The narrative on the left, who delivers it on the right — the instructor
   card no longer floats alone with dead space beside it.
   ========================================================================== */
.teach-split {
  display: grid;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  align-items: center;
}
@media (min-width: 940px) {
  .teach-split { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
}
.teach-split .section-head { margin-bottom: 0; }
.teach-split .instructor { max-width: none; }

/* ==========================================================================
   40. Gala
   ========================================================================== */
@media (min-width: 700px)  { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* Sponsorship menu */
.tier-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--hairline-soft); }
.tier-table { width: 100%; border-collapse: collapse; min-width: 620px; background: var(--white); }
.tier-table th, .tier-table td { padding: var(--space-s) var(--space-m); text-align: left; }
.tier-table thead th {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--midnight-tech);
  white-space: nowrap;
}
.tier-table tbody tr { border-top: 1px solid var(--hairline-soft); }
.tier-table tbody tr:hover { background: var(--surface-alt); }
.tier-table .tier-name { font-family: var(--font-display); font-weight: 700; color: var(--text-primary); }
.tier-table .tier-price { font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem; color: var(--accent); white-space: nowrap; }
.tier-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tier-badge--exclusive { background: var(--midnight-tech); color: var(--white); }
.tier-badge--premier  { background: #e7ecfb; color: #17347f; }   /* 7.4:1 */
.tier-badge--open     { background: var(--mist); color: var(--text-muted); }

/* Tier detail cards */
.tier-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-l);
  background: var(--white);
  border: 1px solid var(--hairline-soft);
  border-top: 3px solid var(--horizon-blue);
  border-radius: var(--radius-lg);
}
.tier-card--flagship { border-top-color: var(--legacy-blue); box-shadow: var(--shadow-md); }
.tier-card .tier-avail {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2xs);
}
.tier-card h3 { font-size: 1.1875rem; margin-bottom: var(--space-3xs); }
.tier-card .tier-amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-s);
}
.tier-card p { color: var(--text-muted); font-size: var(--fs-small); }
.tier-card ul { list-style: none; padding: 0; margin: var(--space-m) 0 0; display: grid; gap: var(--space-2xs); }
.tier-card li { position: relative; padding-left: 1.4rem; font-size: var(--fs-small); color: var(--text-body); }
.tier-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.52em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--legacy-blue);
}

/* Audience chips */
.chip-list { display: flex; flex-wrap: wrap; gap: var(--space-2xs); list-style: none; padding: 0; margin: 0; }
.chip-list li {
  padding: 0.45rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--hairline-soft);
  border-radius: 100px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-body);
}

/* Giving-level cards */
.give-grid { display: grid; gap: var(--space-m); }
@media (min-width: 700px)  { .give-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .give-grid { grid-template-columns: repeat(4, 1fr); } }
.give {
  padding: var(--space-l);
  background: var(--surface-alt);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
}
.give b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--legacy-blue);
  margin-bottom: var(--space-2xs);
}
.give h3 { font-size: 1rem; margin-bottom: var(--space-3xs); }
.give p { font-size: var(--fs-small); color: var(--text-muted); }

/* Contact pair */
.gala-contacts { display: grid; gap: var(--space-m); margin-top: var(--space-l); }
@media (min-width: 560px) { .gala-contacts { grid-template-columns: repeat(2, 1fr); } }
.gala-contact {
  padding: var(--space-m) var(--space-l);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}
.gala-contact b { display: block; font-family: var(--font-display); font-size: 1.0625rem; color: var(--white); }
.gala-contact span { display: block; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.75); margin-top: 2px; }
.gala-contact a { display: inline-block; margin-top: var(--space-2xs); color: var(--horizon-blue); font-size: var(--fs-small); }
.gala-contact a:hover { color: var(--white); }

/* ==========================================================================
   41. Community wall
   Organizations BOT has worked alongside over ten years. Deliberately NOT a
   sponsor or funder list — those are separate and live in .partner-row. Set as
   a credits wall: no ranking implied, holds any number of names.
   ========================================================================== */
.community-wall {
  columns: 2;
  column-gap: var(--space-xl);
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 560px)  { .community-wall { columns: 2; } }
@media (min-width: 860px)  { .community-wall { columns: 3; } }
@media (min-width: 1120px) { .community-wall { columns: 4; } }
.community-wall li {
  break-inside: avoid;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: var(--fs-small);
  line-height: 1.35;
  color: var(--text-body);
}
.community-wall li span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.wall-note {
  margin-top: var(--space-l);
  font-size: var(--fs-small);
  color: var(--text-muted);
  max-width: 68ch;
}


/* ==========================================================================
   42. Funding partners
   Distinct from the community wall: these organizations funded the work.
   ========================================================================== */
.funding-split { display: grid; gap: var(--space-xl); }
@media (min-width: 760px) { .funding-split { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); } }
.funding-group h3 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: var(--space-2xs);
  border-bottom: 2px solid var(--legacy-blue);
  margin-bottom: var(--space-m);
}
.funding-group--past h3 { color: var(--text-muted); border-bottom-color: var(--hairline); }
.funding-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2xs); }
.funding-group li {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.1875rem);
  line-height: 1.35;
  color: var(--text-primary);
}
.funding-group--past li { font-weight: 500; color: var(--text-body); }


/* ==========================================================================
   43. Milestone timeline
   Dark section: a decade retrospective wants weight, and it breaks the
   light/dark section rhythm at a natural point in the page.
   ========================================================================== */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--legacy-blue), var(--horizon-blue) 60%, rgba(123,146,209,0.25));
}
@media (min-width: 860px) { .timeline::before { left: 148px; } }

.timeline-item { position: relative; padding: 0 0 var(--space-l) 34px; }
@media (min-width: 860px) {
  .timeline-item {
    display: grid;
    grid-template-columns: 148px 1fr;
    gap: var(--space-xl);
    padding-left: 0;
    padding-bottom: var(--space-l);
  }
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--midnight-tech);
  border: 3px solid var(--horizon-blue);
  z-index: 1;
}
@media (min-width: 860px) { .timeline-item::before { left: 141px; } }

.timeline-date {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--horizon-blue);   /* 5.3:1 on Midnight */
  margin-bottom: var(--space-3xs);
}
@media (min-width: 860px) {
  /* clear the rail: the dot sits at 141px, so the right-aligned date has to
     stop short of it or the last character is overlapped */
  .timeline-date { text-align: right; margin-bottom: 0; padding-top: 2px; padding-right: 30px; }
}
.timeline-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--fs-small);
  line-height: 1.5;
  max-width: 62ch;
}
.timeline-item--marker::before { background: var(--legacy-blue); border-color: var(--white); width: 20px; height: 20px; left: -2px; top: 4px; }
@media (min-width: 860px) { .timeline-item--marker::before { left: 139px; } }
.timeline-item--marker .timeline-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
  color: var(--white);
}

/* ==========================================================================
   44. Newsletter
   Its own surface on purpose. The donate CTA above and the footer below are
   both Midnight; without a distinct band the three read as one slab and
   nothing tells a reader there is anything past the donate ask.
   ========================================================================== */
.newsletter-strip {
  background: linear-gradient(118deg, var(--legacy-blue) 0%, #0730c9 62%, #0a2196 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
}
/* a soft highlight so the band has some depth rather than reading flat */
.newsletter-strip::after {
  content: '';
  position: absolute;
  top: -40%; right: -6%;
  width: 46%; height: 180%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.16), transparent 70%);
  pointer-events: none;
}
.newsletter { position: relative; z-index: 1; padding-block: clamp(2.25rem, 1.7rem + 2.6vw, 3.5rem); }
.newsletter-inner { display: grid; gap: var(--space-l); align-items: center; }
@media (min-width: 880px) { .newsletter-inner { grid-template-columns: 1.15fr 1fr; gap: var(--space-2xl); } }
.newsletter h2 {
  font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.125rem);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: var(--space-2xs);
}
.newsletter p { color: rgba(255, 255, 255, 0.92); font-size: var(--fs-small); max-width: 52ch; }
.newsletter-actions { display: flex; flex-wrap: wrap; gap: var(--space-s); }
@media (min-width: 880px) { .newsletter-actions { justify-content: flex-end; } }

/* Standalone band for content pages — same color language */
.newsletter-band {
  background: linear-gradient(118deg, var(--legacy-blue) 0%, #0730c9 62%, #0a2196 100%);
  border-radius: var(--radius-lg);
  padding-inline: clamp(1.5rem, 1rem + 2.4vw, 3rem);
  position: relative;
  overflow: hidden;
}
.newsletter-band .newsletter { padding-block: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); }

/* The footer nav needs to start clearly, now that the strip precedes it */
.site-footer .footer-top { padding-block: var(--space-2xl) var(--space-xl); }

/* Bios on the team cards */
.person .bio + .bio { margin-top: var(--space-s); }
.person .bio { line-height: 1.55; }
.person-initials {
  width: clamp(104px, 8vw + 60px, 140px);
  height: clamp(104px, 8vw + 60px, 140px);
  font-size: 1.75rem;
}

/* LinkedIn link on team cards */
.person-linkedin {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
  margin-top: var(--space-m);
  padding: 0.3rem 0.7rem 0.3rem 0.55rem;
  border: 1px solid var(--hairline-soft);
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-decoration: none;
  min-height: 32px;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.person-linkedin:hover {
  background: var(--surface-alt);
  border-color: var(--horizon-blue);
}

/* ==========================================================================
   45. Collapsible team bios
   Keeps every card the same height regardless of bio length. Built on
   <details> so it works with the keyboard and without JavaScript, matching
   the FAQ pattern.
   ========================================================================== */
.person-bio { margin-top: var(--space-m); }
.person-bio summary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  min-height: 32px;
}
.person-bio summary::-webkit-details-marker { display: none; }
.person-bio summary:hover { color: var(--midnight-tech); }
.person-bio summary:focus-visible {
  outline: 3px solid var(--legacy-blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm, 6px);
}
/* label swaps with state, so the control always says what it will do next */
.person-bio .person-bio-label::before { content: 'Read more'; }
.person-bio[open] .person-bio-label::before { content: 'Read less'; }
.person-bio summary .chev { transition: transform var(--dur) var(--ease); }
.person-bio[open] summary .chev { transform: rotate(180deg); }
.person-bio-body { padding-top: var(--space-s); }
.person-bio-body .bio + .bio { margin-top: var(--space-s); }
@media (prefers-reduced-motion: reduce) {
  .person-bio summary .chev { transition: none; }
}

