:root {
  /* Inks, very deep navy/indigo */
  --ink: #0a0620;
  --ink-2: #14103a;
  --ink-3: #4a5468;
  /* Light surfaces */
  --paper: #fafbff;
  --paper-2: #ffffff;
  --paper-warm: #f5f6fb;
  --paper-cool: #f0f3ff;
  --line: #e6e7f0;
  --rule: #c9cce0;
  /* Indigo/sky, primary brand palette */
  --indigo: #3843d0;
  --indigo-deep: #2832a0;
  --indigo-soft: #e7e9fb;
  --sky: #8ea1ff;
  --sky-deep: #5c6fe8;
  --sky-tint: #f0f3ff;
  /* Mango, the single warm accent: used sparingly on one key stat + status badges */
  --mango: #fc5f36;
  --mango-deep: #e04a22;
  --mango-ink: #c0381a; /* mango dark enough for small text on light (AA 5.49:1) */
  --marigold: #feaf31;
  --muted: #6b7388;
  /* How-It-Works step palette (learn / deliver / verify / pay).
     verify reuses --mango / --mango-deep, so it has no separate token. */
  --step-learn: #16006d;
  --step-deliver: #5d70d2;
  --step-pay: #1b998b;
  /* Teal accent family — frontline / platform theming */
  --teal: #0da89d;
  --teal-deep: #0b8a82;
  --teal-pressed: #117a6f;
  /* Text colors on dark surfaces - 3 semantic tiers, replaces a sprawl of
     ad-hoc rgba(255,255,255,X) values. */
  --on-dark-primary: rgba(255, 255, 255, 0.95);
  --on-dark-secondary: rgba(255, 255, 255, 0.78);
  --on-dark-muted: rgba(255, 255, 255, 0.55);
  /* Gradients, cooler now */
  --grad: linear-gradient(
    135deg,
    var(--indigo-deep) 0%,
    var(--indigo) 50%,
    var(--sky) 100%
  );
  --grad-text: linear-gradient(90deg, #1a1f3a 0%, #2a368a 55%, #3a4fa0 100%);
  --grad-text-on-dark: linear-gradient(90deg, #ffffff 0%, #c0ceee 100%);
  --sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
    Arial, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xs: 8px;
  /* ── Spacing scale — one consistent vertical rhythm ── */
  --space-2xs: 6px;
  --space-xs: 12px;
  --space-sm: 18px;
  --space-md: 28px;
  --space-lg: 44px;
  --space-xl: 68px;
  --space-2xl: 96px;
  /* Fluid section padding — generous breathing room that scales with the viewport */
  --section-pad: clamp(80px, 8.5vw, 128px);
  --sec-head-gap: clamp(40px, 4.2vw, 60px);
  /* ── Fluid type scale — unified display sizes (one step per role) ── */
  --fs-hero: clamp(40px, 5vw, 68px);
  --fs-statement: clamp(34px, 4.2vw, 54px);
  --fs-h2: clamp(30px, 3.4vw, 46px);
  --fs-h3: clamp(21px, 1.9vw, 27px);
  --fs-lede: clamp(17px, 1.2vw, 20px);
}
* {
  box-sizing: border-box;
}
.skip-link {
  position: absolute;
  top: -48px;
  left: 8px;
  z-index: 100;
  background: #fff;
  color: var(--indigo);
  padding: 10px 18px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition: top 150ms ease;
}
.skip-link:focus {
  top: 8px;
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}
/* Visually hidden but available to screen readers and the a11y tree. Used for
   section headings that the visual design omits, so the heading outline stays
   well-formed (no h1 → h3 skips). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* ── Keyboard-focus baseline ──
   Every interactive control gets a visible focus ring for keyboard users.
   Wrapped in :where() so its specificity is 0 — component-specific focus
   styles (header nav, compare toggle, skip link) still win. */
:where(
    a[href],
    button,
    [role='button'],
    [role='tab'],
    summary,
    input,
    select,
    textarea,
    [tabindex]
  ):focus-visible {
  outline: 2px solid var(--mango);
  outline-offset: 2px;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--indigo);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header, flat solid nav, dark navy on light body */
.site-header {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid rgba(142, 161, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  color: var(--paper);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  transition: color 180ms ease;
}
.site-header .logo:hover,
.site-header .logo:focus-visible {
  color: var(--indigo);
}
.logo svg {
  height: 30px;
  width: auto;
  display: block;
  transition: color 180ms ease;
}
/* Footer logo override (smaller, paper color) */
.foot-brand .logo svg {
  height: 26px;
}
/* Compare-table Connect logo (purple, on light bg) */
.compare-logo {
  height: 30px;
  width: auto;
  color: var(--indigo);
  display: block;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 400;
}
.site-header nav a {
  color: var(--on-dark-secondary);
  transition:
    color 0.15s,
    font-weight 0.15s;
  padding: 6px 0;
  position: relative;
  text-decoration: none;
  outline: none;
}
.site-header nav a:focus {
  outline: none;
}
.site-header nav a:focus-visible {
  outline: 2px solid var(--mango);
  outline-offset: 3px;
  border-radius: 2px;
}
.site-header nav a:not(.btn-primary):not(.btn-ghost):hover {
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
}
.site-header nav a:hover {
  color: var(--paper);
}
.site-header nav a.active {
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  border-bottom: none;
  outline: none;
}
.site-header nav a.btn-primary {
  background: var(--indigo);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition:
    transform 0.15s,
    box-shadow 0.2s,
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  border: 1px solid var(--indigo);
}
.site-header nav a.btn-primary:hover {
  background: var(--indigo-deep);
  color: #fff;
  border-color: var(--indigo-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(56, 67, 208, 0.32);
}
.site-header nav a.btn-ghost {
  background: transparent;
  color: var(--paper);
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.site-header nav a.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}
/* Groups Sign Up + Login with tighter spacing than the rest of the nav */
.site-header nav .nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mobile hamburger toggle (hidden on desktop; shown at <=980px via media query). */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}
.nav-toggle:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}
.nav-toggle-bar {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition:
    transform 0.2s ease,
    opacity 0.15s ease,
    top 0.2s ease;
}
.nav-toggle-bar:nth-child(1) {
  top: 14px;
}
.nav-toggle-bar:nth-child(2) {
  top: 21px;
}
.nav-toggle-bar:nth-child(3) {
  top: 28px;
}
body.nav-open .nav-toggle-bar:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
body.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle-bar:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* Mobile slide-down panel (hidden on desktop entirely; styles use higher
   specificity than `.site-header nav` so they win over the desktop nav rules). */
.site-header .mobile-nav {
  display: none;
}
.site-header .mobile-nav a {
  color: var(--paper);
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid rgba(142, 161, 255, 0.1);
  text-align: left;
}
.site-header .mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
}
.site-header .mobile-nav a.active {
  color: var(--paper);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
}
.site-header .mobile-nav a.mobile-nav-cta,
.site-header .mobile-nav a.mobile-nav-cta-secondary {
  margin: 12px 20px;
  border-radius: 999px;
  text-align: center;
  border-bottom: none;
  padding: 12px 18px;
  font-weight: 600;
}
.site-header .mobile-nav a.mobile-nav-cta {
  background: var(--indigo);
  color: #fff;
}
.site-header .mobile-nav a.mobile-nav-cta-secondary {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.4);
  margin-bottom: 0;
}

/* Backdrop: injected by JS, dims page behind the open mobile menu */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 49;
  cursor: default;
}
body.nav-open .nav-backdrop {
  display: block;
}

.page {
  display: none;
}
.page.active {
  display: block;
  /* Entrance lives on .active (not .page) so the animation re-applies each
     time a page is shown. It animates transform only — never opacity — so the
     page's resting opacity is always 1 and it can never be left invisible.
     The old version faded opacity from 0 on .page; on a re-shown page (notably
     the home page, active from first load) the browser would leave that
     animation parked at its 0% frame (opacity:0) instead of restarting it,
     so home rendered blank after navigating away and back. A stranded
     transform, by contrast, is just a harmless 6px offset. */
  animation: page-enter 0.3s ease-out;
}
@keyframes page-enter {
  from {
    transform: translateY(6px);
  }
  to {
    transform: none;
  }
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.wrap-narrow {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--indigo);
}
.eyebrow.on-dark {
  color: var(--on-dark-secondary);
}
.eyebrow.on-dark::before {
  background: rgba(142, 161, 255, 0.7);
}
.eyebrow.muted {
  color: var(--muted);
}
.eyebrow.muted::before {
  background: var(--muted);
}

/* Numeric stat displays - keep digits aligned across rows. */
.impact-section-block .imp-tile .n,
.all-programs-grid .prog-card .stat-strip .n,
.hero-dark .hero-stats-items .num,
.hero-stats .num,
.imp-num,
.scale-num {
  font-variant-numeric: tabular-nums;
}

/* Headings, light by default. Em accents are bold + gradient. */
h1,
h2 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.08;
  font-weight: 300;
  text-wrap: balance;
}
h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 400;
  text-wrap: balance;
}
h1 em,
h2 em,
h3 em {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}
/* Two-line headers */
.h-stack {
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.15s,
    box-shadow 0.2s,
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.btn-primary {
  background: var(--indigo);
  color: #fff;
  border-color: var(--indigo);
}
.btn-primary:hover {
  background: var(--indigo-deep);
  border-color: var(--indigo-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(56, 67, 208, 0.32);
}
.btn-indigo {
  background: var(--indigo);
  color: #fff;
  border-color: var(--indigo);
}
.btn-indigo:hover {
  background: var(--indigo-deep);
  border-color: var(--indigo-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(56, 67, 208, 0.32);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-ghost-on-dark {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.32);
}
.btn-ghost-on-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-white {
  background: #fff;
  color: var(--indigo);
  border-color: var(--rule);
}
.btn-white:hover {
  background: #fff;
  color: var(--indigo-deep);
  border-color: var(--indigo);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(10, 6, 32, 0.08);
}

.breadcrumb {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding: 28px 0 0;
}
.breadcrumb a {
  color: var(--indigo);
}
.breadcrumb a:hover {
  color: var(--mango-ink);
}
.breadcrumb .sep {
  padding: 0 8px;
  color: var(--rule);
}

/* HOME HERO, matches closing-cta (Talk to our team) dark gradient */
.hero-dark {
  position: relative;
  background: linear-gradient(
    180deg,
    var(--ink) 0%,
    var(--ink) 68%,
    #12163c 90%,
    #191f52 100%
  );
  color: rgba(238, 240, 255, 0.86);
  overflow: hidden;
  padding: 110px 0 40px;
  border-bottom: none;
}
.hero-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 55% 45% at 20% 22%,
    rgba(56, 67, 208, 0.1),
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}
.hero-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(142, 161, 255, 0.06) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(142, 161, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(
    ellipse at 50% 30%,
    rgba(0, 0, 0, 0.7),
    transparent 75%
  );
  -webkit-mask-image: radial-gradient(
    ellipse at 50% 30%,
    rgba(0, 0, 0, 0.7),
    transparent 75%
  );
  pointer-events: none;
  z-index: 0;
}
.hero-dark .wrap {
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

/* Hero product visual: a real verified-service record, shown not told */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
}
@media (max-width: 980px) {
  .hero-visual {
    margin: 0 auto;
    max-width: 400px;
  }
}
.hero-visual-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.hero-visual-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #19c37d;
  box-shadow: 0 0 0 4px rgba(25, 195, 125, 0.18);
}
.hero-proof-card {
  max-width: 480px;
}
.hero-proof-card .proof-photo {
  aspect-ratio: 16 / 10;
}

/* ── Verified-service record cards (THE PORTFOLIO section) ── */
.proof-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1080px;
  margin: 0 auto;
}
.proof-card {
  position: relative;
  z-index: 1;
  margin: 0;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 30px 70px -20px rgba(0, 0, 0, 0.55),
    0 4px 12px rgba(0, 0, 0, 0.18);
}
.proof-photo {
  position: relative;
  aspect-ratio: 16 / 11;
  background: var(--paper-warm);
}
.proof-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.proof-verified {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(13, 148, 86, 0.96);
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(13, 148, 86, 0.4);
}
.proof-verified svg {
  display: block;
}
.proof-body {
  padding: 16px 18px 18px;
}
.proof-title {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.proof-loc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.proof-loc svg {
  color: var(--indigo);
}
.proof-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.proof-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.proof-stat .pk {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.proof-stat .pv {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
@media (max-width: 860px) {
  .proof-cards {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
}

/* ── Portfolio at a glance: compact program tiles (home) ── */
.prog-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}
.prog-tile {
  display: block;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--ink);
  transition:
    border-color 0.15s,
    transform 0.15s,
    box-shadow 0.2s;
}
.prog-tile:hover {
  border-color: var(--indigo);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(56, 67, 208, 0.1);
}
.prog-tile-thumb.photo-block {
  height: 150px;
}
.prog-tile-thumb.photo-block::before,
.prog-tile-thumb.photo-block::after {
  display: none;
}
.prog-tile-body {
  padding: 14px 18px 16px;
}
.prog-tile-name {
  font-size: 18px;
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.01em;
}
@media (max-width: 860px) {
  .prog-tiles {
    grid-template-columns: repeat(2, 1fr);
    max-width: 560px;
  }
}
@media (max-width: 520px) {
  .prog-tiles {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}

/* ── Home featured testimonial (social proof) ── */
.home-quote-section {
  text-align: center;
}
.home-quote {
  margin: 0 auto;
  max-width: 820px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px);
  box-shadow: 0 24px 60px -34px rgba(10, 6, 32, 0.25);
}
.home-quote-text {
  margin: 18px 0 0;
  font-size: clamp(23px, 2.6vw, 33px);
  font-weight: 300;
  line-height: 1.26;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.home-quote-text em {
  font-style: normal;
  font-weight: 600;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.home-quote-by {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  text-align: left;
}
.home-quote-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.home-quote-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.home-quote-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
}
.home-quote-org {
  color: var(--ink-3);
  font-size: 13.5px;
}

.hero-photo--home {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}
.hero-photo-col {
  min-width: 0;
}
.hero-dark .hero-photo-frame {
  border-color: rgba(255, 255, 255, 0.12);
}
.hero-dark h1 {
  color: #fff;
  font-size: var(--fs-hero);
  max-width: 26ch;
  margin: 18px 0 22px;
  font-weight: 200;
  letter-spacing: -0.03em;
}
/* Circle photo at the top of the homepage hero */
.home-hero-photo {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 22px;
}
.home-hero-photo .photo-circle {
  width: clamp(120px, 14vw, 180px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-image: url("images/field-photos/kmc/kmc-3.bbd5816577ec.jpg"),
    linear-gradient(
      135deg,
      var(--step-deliver) 0%,
      var(--step-learn) 60%,
      var(--mango) 100%
    );
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.6);
}
.hero-dark h1 em {
  background: var(--grad-text-on-dark);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}
.hero-dark .lede {
  font-size: var(--fs-lede);
  color: var(--on-dark-primary);
  max-width: 52ch;
  line-height: 1.6;
  font-weight: 300;
}
.hero-dark .hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.hero-dark .hero-actions .btn-primary {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
}
.hero-dark .hero-actions .btn-primary:hover {
  background: var(--indigo-deep);
  border-color: var(--indigo-deep);
  color: #fff;
  box-shadow: 0 8px 24px rgba(56, 67, 208, 0.32);
}
.hero-dark .hero-actions .btn-ghost-on-dark {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.4);
}
.hero-dark .hero-actions .btn-ghost-on-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.7);
}
.hero-dark .micro {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-dark .micro .m-num {
  font-size: 30px;
  font-weight: 200;
  letter-spacing: -0.02em;
  background: var(--grad-text-on-dark);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.hero-dark .micro .m-l {
  margin-top: 8px;
  color: var(--on-dark-secondary);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.hero-video-frame {
  background: rgba(10, 6, 32, 0.5);
  border: 1px solid rgba(142, 161, 255, 0.32);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
}
.hero-video-frame .video-meta {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(142, 161, 255, 0.16);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--on-dark-primary);
}
.hero-video-frame .video-meta .vt {
  font-size: 13px;
  font-weight: 500;
}
.hero-video-frame .video-meta .vc {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--on-dark-muted);
}
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Light hero */
.hero {
  padding: 64px 0 80px;
}
.hero h1 {
  font-size: var(--fs-hero);
  margin: 18px 0 22px;
  max-width: 18ch;
  font-weight: 200;
}
.hero .lede {
  font-size: var(--fs-lede);
  color: var(--ink-3);
  max-width: 60ch;
  line-height: 1.6;
  font-weight: 300;
}
/* CTA row under the lede on a light hero (the dark hero has its own rule). */
.hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Insights hero: text block on the left, Connect mark centered on the right
   (nudged slightly in from the right edge). */
.insights-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}
.insights-hero .insights-hero-text {
  min-width: 0;
}
.insights-hero-mark {
  flex: none;
  width: 140px;
  height: auto;
  margin-right: 96px;
}
@media (max-width: 760px) {
  .insights-hero {
    gap: 28px;
  }
  .insights-hero-mark {
    width: 88px;
  }
}

/* Portfolio hero: light abstract "connected constellation" graphic (right column) */
.hero-art {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art-svg {
  width: 100%;
  max-width: 400px;
  height: auto;
}
@media (max-width: 900px) {
  .hero-art {
    display: none;
  }
}

/* Split hero: text left, photo right */
.hero--split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.hero-photo-wrap {
  min-width: 0;
}
.hero-photo-frame {
  position: relative;
  line-height: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.28);
  border: 3px solid rgba(0, 0, 0, 0.06);
}
.hero--split .hero-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
.hero--split .join-hero-illustration {
  width: clamp(144px, 17.6vw, 256px);
  height: auto;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
  margin: 0 auto;
}
.hero-photo-attr {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.68);
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  line-height: 1.5;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
/* Insights hero: 3-column (text | photo | video) */
@media (max-width: 900px) {
  .hero--split {
    grid-template-columns: 1fr;
  }
  .hero-photo-wrap {
    display: none;
  }
  .hero-video-col {
    display: none;
  }
}

/* Video column in Platform hero */
.hero-video-col {
  min-width: 0;
}
/* How-it-works hero: value prop left, demo video right */
.hero--video {
  grid-template-columns: 1fr 1fr;
}
.hero-demo-col {
  min-width: 0;
}
.hero--video .video-frame {
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.28);
}
/* Tighten the gap above the lede in this hero */
.hero--video h1 {
  margin-bottom: 8px;
}
.hero--video .lede {
  margin-top: 0;
}
@media (max-width: 900px) {
  .hero--video {
    grid-template-columns: 1fr;
  }
}

/* The Opportunity hero: "missing connection" concept graphic */
.gap-figure-col {
  min-width: 0;
  display: flex;
  justify-content: center;
}
.gap-figure {
  width: 100%;
  max-width: 540px;
  height: auto;
  display: block;
}
.gap-node-ring {
  fill: var(--paper-2);
  stroke: var(--indigo);
  stroke-width: 1.4;
  stroke-opacity: 0.45;
}
.gap-node-core {
  fill: var(--indigo);
}
/* Audience-coded nodes: funders = purple, frontline = green (matches the badges below) */
.gap-node-ring--funder {
  stroke: var(--step-deliver);
}
.gap-node-core--funder {
  fill: var(--step-deliver);
}
text.gap-node-label--funder {
  fill: #4050a8;
}
.gap-node-ring--frontline {
  stroke: var(--teal);
}
.gap-node-core--frontline {
  fill: var(--teal);
}
text.gap-node-label--frontline {
  fill: var(--teal-deep);
}
.gap-line {
  stroke: var(--indigo);
  stroke-width: 1.8;
  fill: none;
}
/* Audience-coded connection lines: funder side light purple, frontline side green */
.gap-line--funder {
  stroke: #aeb6ea;
}
.gap-line--frontline {
  stroke: var(--teal);
}
.gap-end {
  fill: var(--paper-2);
  stroke: var(--indigo);
  stroke-width: 1.6;
}
/* End dots take their line's colour */
.gap-end--funder {
  fill: #aeb6ea;
  stroke: #aeb6ea;
}
.gap-end--frontline {
  fill: var(--teal);
  stroke: var(--teal);
}
/* Audience-coded end boxes, styled like the badges in The Problem section */
.gap-box {
  stroke-width: 1.4;
}
.gap-box--funder {
  fill: rgba(93, 112, 210, 0.1);
  stroke: rgba(93, 112, 210, 0.45);
}
.gap-box--frontline {
  fill: rgba(13, 168, 157, 0.1);
  stroke: rgba(13, 168, 157, 0.45);
}
.gap-box-label {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.gap-box-label--funder {
  fill: #4050a8;
}
.gap-box-label--frontline {
  fill: var(--teal-deep);
}
.gap-bridge {
  stroke: var(--indigo);
  stroke-width: 1.6;
  stroke-dasharray: 2 5;
  fill: none;
  opacity: 0.3;
}
.gap-sat {
  fill: var(--sky-deep);
  opacity: 0.6;
}
.gap-hair {
  stroke: var(--indigo);
  stroke-width: 1;
  opacity: 0.22;
}
.gap-pill {
  fill: var(--paper-2);
  stroke: var(--line);
  stroke-width: 1;
}
.gap-pill-label {
  fill: var(--ink);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.gap-node-label {
  fill: var(--ink-2);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
/* Headline column gets the bulk of the width; the graphic column is wide enough
   to hold the two audience boxes side by side. Generous gutter keeps the small
   graphic from crowding the long headline. */
.hero--gap {
  grid-template-columns: 1.85fr 1fr;
  gap: 72px;
}
.hero--gap h1 {
  max-width: none;
}
/* Two audience boxes set side by side (left + right) with the fissure between
   them, echoing The Problem section below. */
.gap-fissure-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
  width: 100%;
}
.gap-flank {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 58px;
  padding: 14px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}
.gap-flank--funder {
  background: rgba(93, 112, 210, 0.1);
  border: 1.4px solid rgba(93, 112, 210, 0.45);
  color: #4050a8;
}
.gap-flank--frontline {
  background: rgba(13, 168, 157, 0.1);
  border: 1.4px solid rgba(13, 168, 157, 0.45);
  color: var(--teal-deep);
}
/* Vertical crack reads as the gap separating the left + right boxes */
.gap-fissure-row .os-problem-fissure {
  width: 40px;
  flex: 0 0 auto;
}
.gap-fissure-row .os-fissure-svg {
  height: 64px;
}
@media (max-width: 900px) {
  .hero--gap {
    grid-template-columns: 1fr;
  }
  .gap-figure-col {
    margin-top: 4px;
  }
  .gap-figure {
    max-width: 400px;
  }
  .gap-node-label {
    font-size: 19px;
  }
  .gap-pill-label {
    font-size: 12.5px;
  }
}

/* Programs page: two-column hero with map */
.prog-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.prog-hero-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  font-style: italic;
}
.prog-hero h1 {
  max-width: 17ch;
}
.prog-hero-map .where-map {
  max-width: 600px;
  margin: 0 auto;
}
/* Portfolio hero now leads with the live map as its right-column visual, so
   give the map column near-equal room to the headline/copy. Scoped to desktop;
   below 900px the base .hero--split rule stacks it to a single column. The
   media query is required so this higher-specificity rule doesn't override the
   mobile 1fr stack and squish the map. */
@media (min-width: 901px) {
  [data-page='/portfolio'] .hero--split {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }
}
.prog-map-caption {
  display: none;
}
@media (max-width: 900px) {
  .prog-hero {
    grid-template-columns: 1fr;
  }
}

/* Centered hero variant: single column, text centered, visual stacked below.
   .hero.hero--centered (two classes) overrides the display:grid of
   .hero--split / .hero--video / .prog-hero regardless of source order. */
.hero.hero--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
}
.hero--centered h1,
.hero--centered .lede {
  margin-left: auto;
  margin-right: auto;
}
.hero--centered .hero-demo-col,
.hero--centered .hero-photo-wrap,
.hero--centered .prog-hero-map {
  width: 100%;
  max-width: 720px;
}

.section {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--line);
}
.section.warm {
  background: #eaeef8;
}
.section.cool {
  background: var(--paper-cool);
}
.section.no-border {
  border-top: none;
}
/* Dark CTA-style section background, matches the closing-cta treatment */
.section.dark {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  border-top: none;
}
.section.dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 55% 45% at 100% 100%,
    rgba(56, 67, 208, 0.1),
    transparent 65%
  );
  pointer-events: none;
}
.section.dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(
    ellipse at 50% 50%,
    rgba(0, 0, 0, 0.85),
    transparent 75%
  );
  -webkit-mask-image: radial-gradient(
    ellipse at 50% 50%,
    rgba(0, 0, 0, 0.85),
    transparent 75%
  );
  pointer-events: none;
}
.section.dark > .wrap {
  position: relative;
  z-index: 1;
}
.section.dark .eyebrow {
  color: var(--on-dark-muted);
  font-weight: 500;
}
.section.dark .eyebrow::before {
  background: rgba(142, 161, 255, 0.5);
}
.section.dark .sec-head h2 {
  color: #fff;
}
.section.dark .sec-head h2 em {
  background: var(--grad-text-on-dark);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section.dark .sec-head .sub,
.section.dark .sec-head p {
  color: var(--on-dark-secondary);
}
.section.dark .sec-head .sub a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}
.section.dark .sec-head .sub a:hover {
  text-decoration-color: #fff;
}
/* Last section before footer gets indigo so it reads distinctly from the dark footer */
#two-ways {
  background: var(--indigo);
}
#two-ways::before {
  background: radial-gradient(
    ellipse 55% 45% at 100% 100%,
    rgba(255, 255, 255, 0.12),
    transparent 65%
  );
}

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: var(--sec-head-gap);
}
.sec-head .label-group {
  max-width: 60ch;
}
.sec-head h2,
.sec-head h1 {
  font-size: var(--fs-h2);
  margin: 10px 0 0;
  font-weight: 300;
}
.sec-head .sub {
  color: var(--ink-3);
  margin-top: 18px;
  font-size: var(--fs-lede);
  line-height: 1.55;
  font-weight: 300;
}
.sec-head--centered {
  justify-content: center;
}
.sec-head--centered .label-group {
  text-align: center;
  max-width: 68ch;
}

/* Center every section heading site-wide. The exception is the individual
   program pages (data-page="/portfolio/<slug>"), which keep their original
   left-aligned headers for scannable, content-dense detail pages. The main
   /portfolio listing (no trailing slug) is included and gets centered. */
.page:not([data-page^='/portfolio/']) .sec-head {
  justify-content: center;
}
.page:not([data-page^='/portfolio/']) .sec-head .label-group {
  text-align: center;
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
}

/* Holistic visual on home */
.holistic-visual {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 24px 40px;
  overflow: hidden;
}
.holistic-visual svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Impact tiles, 3 columns × 2 rows */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.impact-tile {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.impact-tile:nth-child(3n) {
  border-right: none;
}
.impact-tile:nth-last-child(-n + 3) {
  border-bottom: none;
}
.impact-tile .n {
  font-size: clamp(34px, 3.4vw, 44px);
  line-height: 1;
  font-weight: 200;
  letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.impact-tile .l {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 12px;
  line-height: 1.4;
  font-weight: 400;
}

/* Tagged Impact rows (Scale + Impact) on home */
.impact-section-block {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.impact-section-block .imp-row {
  display: grid;
  grid-template-columns: 140px 1fr;
}
.impact-section-block .imp-row + .imp-row {
  border-top: 1px solid var(--line);
}
.impact-section-block .imp-label {
  background: var(--paper-cool);
  padding: 28px 22px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--line);
}
.impact-section-block .imp-label .row-tag {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--indigo);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.impact-section-block .imp-tiles {
  display: grid;
}
.impact-section-block .imp-tiles.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.impact-section-block .imp-tiles.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.impact-section-block .imp-tile {
  padding: 30px 24px;
  border-right: 1px solid var(--line);
}
.impact-section-block .imp-tile:last-child {
  border-right: none;
}
.impact-section-block .imp-tile .n {
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: 1;
  font-weight: 200;
  letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.impact-section-block .imp-tile .l {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 12px;
  line-height: 1.4;
  font-weight: 400;
}

/* Findings (3 boxes on home) */
.findings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.finding {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--ink);
  transition:
    border-color 0.15s,
    transform 0.15s,
    box-shadow 0.2s;
}
.finding:hover {
  border-color: var(--indigo);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(56, 67, 208, 0.1);
}
.finding .sector {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--indigo);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.finding .big-stat {
  font-size: 60px;
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.025em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 4px 0 0;
}
.finding .big-stat.warm {
  background: linear-gradient(90deg, var(--mango-deep) 0%, var(--mango) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.finding h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
  max-width: 32ch;
}
.finding p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
  font-weight: 400;
}
.finding .more {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--indigo);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
  margin-top: auto;
}

/* Programs cards (home) */
.prog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.prog-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--ink);
  display: block;
  transition:
    border-color 0.15s,
    transform 0.15s,
    box-shadow 0.2s;
}
.prog-card:hover {
  border-color: var(--indigo);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(56, 67, 208, 0.1);
}
.prog-card .body {
  padding: 28px 30px 30px;
}
.prog-card h3 {
  font-size: 24px;
  margin: 8px 0 12px;
  font-weight: 400;
}
.prog-card .countries {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.prog-card p {
  color: var(--ink-3);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 18px;
  font-weight: 400;
}
.prog-card .meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}
.prog-card .meta .more {
  color: var(--indigo);
  font-weight: 600;
}

/* Photo placeholder blocks (used on Programs and How It Works) */
.photo-block {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.photo-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.12) 0%,
      transparent 32%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 36%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 50%
    );
  pointer-events: none;
}
.photo-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.5;
}
.photo-block .photo-label {
  position: relative;
  z-index: 1;
  margin: 0 0 14px 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--on-dark-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(10, 6, 32, 0.4);
  padding: 5px 9px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
/* Program card illustrations (SVG, distinct per program) */
.ph-chc {
  background: #d7d9f6 url("images/field-photos/chc/chc-1.5592a757d6d5.jpg") center 30% /
    cover no-repeat;
}
.ph-kmc {
  background: #f5dedf url("images/field-photos/kmc/kmc-1.460f35446753.jpg") center/cover
    no-repeat;
}
/* Home portfolio tile variant: avoids repeating the hero proof-card photo */
.ph-kmc-alt {
  background: #f5dedf url("images/field-photos/kmc/kmc-2.bc5503e7f9f1.jpg") center/cover
    no-repeat;
}
.ph-ecd {
  background: #e1dbee url("images/field-photos/kmc/kmc-5.02181c9b138f.jpg") center/cover
    no-repeat;
}
.ph-readers {
  background: #ebdce6 url("images/field-photos/readers/readers-2.b3785263225d.jpg")
    center/cover no-repeat;
}
.ph-mbw {
  background: #dfe2f6 url("images/field-photos/kmc/kmc-4.aa980ac46c84.jpg") center/cover
    no-repeat;
}
.ph-chlorine {
  background: #ccecee url("images/program-graphics/chlorine-dispenser.07dbbd8d184c.svg")
    center/contain no-repeat;
}
.ph-mental {
  background: #fcefcc url("images/field-photos/mental/ipt-g-nama.99b4490acbc0.jpg") center
    62% / cover no-repeat;
}
.ph-nutrition {
  background: #d9ecd4 url("images/program-graphics/therapeutic-food.523ca9188b04.svg")
    center/contain no-repeat;
}
.ph-survey {
  background: #e9ecef url("images/program-graphics/survey-data-collection.09e6b84ccdae.svg")
    center/contain no-repeat;
}
.ph-environment {
  background: #dce6f0 url("images/program-graphics/building-sampling.40dea2650a75.svg")
    center/contain no-repeat;
}
.ph-new-idea {
  background: #e8eefa url("images/program-graphics/new-program-idea.d1e9f368e597.svg")
    center/contain no-repeat;
}
/* Suppress placeholder overlays + photo labels on program-card illustrations */
.all-programs-grid .photo-block::before,
.all-programs-grid .photo-block::after {
  display: none;
}
.all-programs-grid .photo-block .photo-label {
  display: none;
}
/* Field photos for How It Works */
.ph-field-1 {
  background: linear-gradient(
    135deg,
    var(--ink-2) 0%,
    #1e2660 50%,
    #b83820 100%
  );
}
.ph-field-2 {
  background: linear-gradient(135deg, #141840 0%, #1e2860 100%);
}
.ph-field-3 {
  background: linear-gradient(135deg, #1d254e 0%, #1e2660 70%, #c08010 100%);
}
.ph-field-4 {
  background: linear-gradient(135deg, var(--ink-2) 0%, #1c2258 100%);
}
.ph-field-5 {
  background: linear-gradient(135deg, #141840 0%, #202c6a 100%);
}
.ph-field-6 {
  background: linear-gradient(135deg, #1b2168 0%, #1e2660 50%, #b83820 100%);
}

/* All-programs grid (Programs page) */
.all-programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* Wider gutters so the 11-card grid reads as distinct, breathing tiles
     rather than a tight wall of cards (row gap a touch larger than column
     gap to separate the stacked rows). */
  gap: 34px 28px;
}
.all-programs-grid .prog-card {
  display: flex;
  flex-direction: column;
}
.all-programs-grid .prog-card.is-soon {
  opacity: 0.85;
}
.all-programs-grid .prog-card.is-soon .body {
  background: var(--paper-cool);
}
.all-programs-grid .prog-card .body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.all-programs-grid .prog-card p {
  flex-grow: 1;
}
.all-programs-grid .prog-card .meta {
  margin-top: auto;
}
.all-programs-grid .prog-card .stat-strip {
  display: flex;
  gap: 22px;
  padding: 8px 0;
  margin: 0 0 16px;
}
.all-programs-grid .prog-card .stat-strip .ps {
  flex: 1;
}
.all-programs-grid .prog-card .stat-strip .n {
  font-size: 22px;
  font-weight: 200;
  letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.all-programs-grid .prog-card .stat-strip .l {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
  font-weight: 600;
}
.all-programs-grid .badge-soon {
  display: inline-block;
  background: var(--mango);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

/* Final CTA, original (Insights only) */
.final-cta {
  text-align: center;
  padding: 96px 24px;
  color: #fff;
}
.final-cta .eyebrow {
  color: var(--on-dark-muted);
  justify-content: center;
  margin-bottom: 24px;
}
.final-cta .eyebrow::before {
  background: rgba(255, 255, 255, 0.4);
}
.final-cta h2 {
  color: #fff;
  font-size: var(--fs-statement);
  max-width: 22ch;
  margin: 0 auto 22px;
  font-weight: 300;
}
.final-cta h2 em {
  background: var(--grad-text-on-dark);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.final-cta p {
  color: var(--on-dark-secondary);
  max-width: 56ch;
  margin: 0 auto 32px;
  font-size: var(--fs-lede);
  font-weight: 300;
}
.final-cta .btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--indigo);
}
.final-cta .btn-primary:hover {
  background: var(--paper-cool);
  border-color: var(--paper-cool);
  color: var(--indigo-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.28);
}

/* Shared closing CTA, simplified, single button */
.closing-cta {
  position: relative;
  background: var(--indigo);
  color: #fff;
  overflow: hidden;
}
.closing-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 55% 45% at 100% 100%,
    rgba(56, 67, 208, 0.1),
    transparent 65%
  );
  pointer-events: none;
}
.closing-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(
    ellipse at 50% 50%,
    rgba(0, 0, 0, 0.85),
    transparent 75%
  );
  -webkit-mask-image: radial-gradient(
    ellipse at 50% 50%,
    rgba(0, 0, 0, 0.85),
    transparent 75%
  );
  pointer-events: none;
}
.closing-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 96px 32px;
  text-align: center;
}
.closing-cta .eyebrow {
  color: var(--on-dark-secondary);
  justify-content: center;
  margin-bottom: 24px;
}
.closing-cta .eyebrow::before {
  background: rgba(142, 161, 255, 0.7);
}
.closing-cta h2 {
  color: #fff;
  font-size: var(--fs-statement);
  max-width: 22ch;
  margin: 0 auto 22px;
  font-weight: 300;
}
.closing-cta h2 em {
  background: var(--grad-text-on-dark);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}
.closing-cta .lead {
  color: var(--on-dark-secondary);
  max-width: 60ch;
  margin: 0 auto 36px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
}
/* Primary buttons on indigo closing-cta need to be white so they're visible */
.closing-cta .btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--indigo);
}
.closing-cta .btn-primary:hover {
  background: var(--paper-cool);
  border-color: var(--paper-cool);
  color: var(--indigo-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.28);
}
.closing-cta-secondary {
  display: block;
  margin-top: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.closing-cta-secondary:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Footer */
footer.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 36px;
}
.foot-brand {
  text-align: left;
}
.foot-brand .logo {
  font-size: 22px;
  color: var(--paper);
  display: inline-block;
  margin-bottom: 14px;
}
.foot-brand p {
  font-size: 13.5px;
  max-width: 38ch;
  line-height: 1.6;
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
}
.foot-col .foot-col-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.38);
  margin: 0 0 14px;
  font-weight: 600;
}
.foot-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.foot-col li {
  font-size: 13.5px;
}
.foot-col a {
  color: rgba(255, 255, 255, 0.72);
  display: inline-block;
  padding: 4px 0;
  line-height: 24px;
}
.foot-col a:hover {
  color: #fff;
}
.foot-bottom {
  max-width: 1240px;
  margin: 48px auto 0;
  padding: 24px 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.foot-legal-links {
  display: flex;
  gap: 20px;
}
.foot-legal-links a {
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 500;
}
.foot-legal-links a:hover {
  color: #fff;
}
.foot-col-label + ul + .foot-col-label {
  margin-top: 28px;
}

/* HOW IT WORKS, Two-Sided Marketplace (stacked, horizontal internal) */
.two-sided-market {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 32px;
  position: relative;
}
.market-pair {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
}
.market-pair > .market-side,
.market-pair > .market-connector {
  width: 100%;
}
.market-pair > .market-side-funder {
  max-width: 1240px;
}
.market-pair > .market-side-platform {
  max-width: 1240px;
}
/* Connector between Funders (top) and Frontline Organizations (bottom): vertical arrows flanking the Connect logo + cycle copy */
.market-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0 14px;
}
.market-connector-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.market-arrow-v {
  width: 18px;
  height: 110px;
  color: var(--indigo);
  display: block;
  overflow: visible;
  flex: 0 0 auto;
}
.market-connector-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.market-arrow-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo);
  line-height: 1;
  flex: 0 0 auto;
}
.market-connector-side-label {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-3);
  text-align: center;
  max-width: 120px;
  flex: 0 0 120px;
}
@media (max-width: 768px) {
  .market-connector {
    padding: 24px 0 20px;
  }
  .market-connector-row {
    gap: 10px;
  }
  .market-arrow-v {
    height: 90px;
  }
  .market-arrow-label svg {
    width: 130px !important;
  }
  .market-connector-side-label {
    font-size: 10px;
    max-width: 80px;
    flex-basis: 80px;
  }
}
/* Small CTA inside each market-side-header */
.market-side-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--indigo);
  border-bottom: 1px dashed currentColor;
  padding-bottom: 2px;
  width: fit-content;
  transition:
    color 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.market-side-cta:hover {
  color: var(--indigo-deep);
  border-bottom-color: var(--indigo-deep);
  transform: translateX(2px);
}
.market-side-platform .market-side-cta {
  color: var(--step-pay);
}
.market-side-platform .market-side-cta:hover {
  color: var(--teal-pressed);
  border-bottom-color: var(--teal-pressed);
}
/* Legacy loop-back arrow, replaced by the new .market-loop element */
.market-cycle-arrow {
  display: none;
}
/* Loop arrow: visualises the cycle returning from Connect Platform back to Funders */
.market-loop {
  position: relative;
  margin-top: 4px;
  padding-top: 56px;
}
.market-loop-arrow {
  position: absolute;
  top: 0;
  left: 8px;
  right: 8px;
  height: 44px;
  border: 2px dashed var(--indigo);
  border-top: none;
  border-radius: 0 0 24px 24px;
  pointer-events: none;
}
.market-loop-arrow::before {
  /* Arrowhead at top-LEFT of the U, pointing UP into the Funders (purple) box */
  content: '';
  position: absolute;
  left: -1px;
  top: 0;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 10px solid var(--indigo);
  transform: translate(-50%, -100%);
}
.market-loop-arrow::after {
  /* Origin dot at top-RIGHT of the U, exiting the Connect Platform (teal) box */
  content: '';
  position: absolute;
  right: -1px;
  top: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--step-pay);
  transform: translate(50%, -50%);
}
.market-loop-content {
  text-align: center;
  padding: 0 16px;
}
.market-loop-title {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.market-loop-text {
  margin: 0 auto 8px;
  max-width: 76ch;
  text-align: center;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.market-loop-text:last-of-type {
  margin-bottom: 0;
}
@media (max-width: 980px) {
  .market-loop {
    padding-top: 16px;
  }
  .market-loop-arrow {
    display: none;
  }
}
@media (max-width: 1080px) {
  .two-sided-market {
    padding-right: 0;
  }
  .market-cycle-arrow {
    display: none;
  }
}
.market-side {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  column-gap: 40px;
  row-gap: 20px;
  align-items: center;
  position: relative;
}
@media (max-width: 860px) {
  .market-side {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    row-gap: 22px;
  }
}
.market-side-funder {
  border-top: 4px solid var(--indigo);
}
.market-side-platform {
  border-top: 4px solid var(--step-pay);
  padding-top: 70px;
  padding-bottom: 70px;
  row-gap: 40px;
}
.market-side-header .role-tag {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--indigo);
}
.market-side-platform .market-side-header .role-tag {
  color: var(--step-pay);
}
.market-side-header h3 {
  margin: 10px 0 0;
  font-size: 28px;
  font-weight: 300;
  line-height: 1.2;
}
.market-side-header h3 em {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  font-style: normal;
}
.market-side-platform .market-side-header h3 em {
  background: linear-gradient(
    90deg,
    var(--teal-pressed) 0%,
    var(--step-pay) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.picker-set {
  display: grid;
  grid-template-columns: 1fr 52px 1fr 52px 1fr;
  gap: 0;
  align-items: center;
}
.picker-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  padding-top: 22px;
  user-select: none;
}
.picker-list .picker-list-label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin: 0 0 10px;
}
.picker-scroll {
  height: 264px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.picker-scroll::-webkit-scrollbar {
  width: 6px;
}
.picker-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.picker-scroll::-webkit-scrollbar-thumb {
  background: var(--rule);
  border-radius: 3px;
}
.picker-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  transition:
    background 0.2s,
    color 0.2s;
}
.picker-item:hover {
  background: var(--indigo-soft);
  color: var(--indigo);
}
.picker-item.is-active {
  background: var(--indigo-soft);
  color: var(--indigo);
  font-weight: 600;
}
.picker-item-new {
  color: var(--indigo);
  font-weight: 600;
}
.picker-item-new:hover {
  color: var(--indigo-deep);
}
.picker-item-new.is-active {
  background: var(--indigo-soft);
  color: var(--indigo);
}

.platform-promise {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  column-gap: 32px;
  row-gap: 12px;
  align-items: start;
}
/* Lift icon+text into shared grid rows so all headings snap to the same line */
.promise-item {
  display: contents;
}
.promise-item:nth-child(1) .promise-icon {
  grid-area: 1 / 1;
}
.promise-item:nth-child(1) .promise-text {
  grid-area: 2 / 1;
}
.promise-item:nth-child(2) .promise-icon {
  grid-area: 1 / 2;
}
.promise-item:nth-child(2) .promise-text {
  grid-area: 2 / 2;
}
.promise-item:nth-child(3) .promise-icon {
  grid-area: 1 / 3;
}
.promise-item:nth-child(3) .promise-text {
  grid-area: 2 / 3;
}
@media (max-width: 768px) {
  .platform-promise {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .promise-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 18px;
    align-items: start;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }
  .promise-item:first-child {
    padding-top: 0;
  }
  .promise-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .promise-item:nth-child(1) .promise-icon,
  .promise-item:nth-child(2) .promise-icon,
  .promise-item:nth-child(3) .promise-icon,
  .promise-item:nth-child(1) .promise-text,
  .promise-item:nth-child(2) .promise-text,
  .promise-item:nth-child(3) .promise-text {
    grid-area: auto;
  }
}
.promise-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  background: rgba(27, 153, 139, 0.14);
  color: var(--step-pay);
  display: flex;
  align-items: center;
  justify-content: center;
}
.promise-icon svg {
  width: 22px;
  height: 22px;
}
/* Indigo variant for the funder feedback-loop box */
.market-side-funder .promise-icon {
  background: var(--indigo-soft);
  color: var(--indigo);
}
.market-side-funder .promise-stat {
  color: var(--indigo);
}
.promise-text h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--ink);
}
.promise-text p {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0 0 10px;
}
.promise-stat {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--step-pay);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.market-conclusion {
  text-align: center;
  margin-top: 24px;
}
.market-conclusion p {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 300;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.market-conclusion p em {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  font-style: normal;
}

/* HOW IT WORKS, combined cycle + step tabs panel */
.cycle-panel-combined {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 56px;
}
.cycle-panel-combined .cycle-svg-area {
  padding: 28px 36px 8px;
}
.cycle-panel-combined svg .cycle-node-group {
  cursor: pointer;
  transition: transform 0.2s;
}
.cycle-panel-combined svg .cycle-node-group:hover {
  transform: translateY(-3px) scale(1.03);
  transform-origin: center;
  transform-box: fill-box;
}

.progress-ring {
  stroke-dasharray: 175.9;
  stroke-dashoffset: 175.9;
  transform: rotate(-90deg);
  transform-origin: center;
  transform-box: fill-box;
  opacity: 0;
  pointer-events: none;
  transition: none;
}
.progress-ring.is-playing {
  opacity: 0.75;
  animation: ring-fill var(--ring-dur, 4s) linear forwards;
}
@keyframes ring-fill {
  from {
    stroke-dashoffset: 175.9;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* ===== Cycle Fullscreen ===== */
.cycle-fullscreen {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
}
.cycle-fullscreen > .wrap {
  padding-top: 40px;
  padding-bottom: 0;
}
.cycle-fs-head {
  text-align: center;
  margin-bottom: 28px;
}
.cycle-fs-head h2 {
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 300;
  margin: 8px auto 0;
  max-width: 24ch;
}
/* Body: left sidebar + content side by side */
.cycle-fs-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}
/* Vertical circle sidebar */
.cycle-fs-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 24px 20px 24px 28px;
  background: var(--paper-2);
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  width: 220px;
}
.cycle-nav-hint {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0.65;
  margin: 0 0 18px;
  line-height: 1.5;
}
.cycle-node-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  flex-shrink: 0;
}
.cycle-node-group:hover .cycle-fs-svg {
  transform: translateX(2px) scale(1.06);
}
.cycle-fs-svg {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.cycle-fs-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.15s;
  white-space: nowrap;
}
.cycle-node-group.active .cycle-fs-label {
  color: var(--ink);
}
/* Vertical connector between circles */
.cycle-fs-connector {
  width: 2px;
  flex: 1;
  min-height: 16px;
  max-height: 60px;
  opacity: 0.25;
  margin-left: 33px;
}
/* Step content area */
.cycle-fullscreen .step-detail-wrap {
  flex: 1;
  background: var(--paper);
  overflow: hidden;
}
/* 2-column layout: [phone] [heading → features → stats] */
.cycle-fullscreen .step-detail {
  grid-template-columns: 300px 1fr;
  grid-template-rows: auto auto;
  padding: 20px 32px 20px 24px;
  column-gap: 36px;
  row-gap: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  align-items: start;
}
.cycle-fullscreen .step-detail[data-step='verify'] {
  grid-template-columns: 430px 1fr;
}
/* Content column: stack features + stats vertically below heading */
.cycle-fullscreen .step-bottom {
  flex-direction: column;
  gap: 0;
  border-top: none;
  padding-top: 0;
}
.cycle-fullscreen .step-bottom .features,
.cycle-fullscreen .step-bottom .right {
  flex: none;
  width: 100%;
}
.cycle-fullscreen .step-detail .left {
  grid-column: 2;
  grid-row: 1;
  padding-bottom: 14px;
}
.cycle-fullscreen .step-detail .left h3 {
  font-size: 32px;
  max-width: none;
  margin-bottom: 12px;
}
.cycle-fullscreen .step-detail .left .lede {
  font-size: 17px;
  max-width: none;
  margin-bottom: 0;
  line-height: 1.55;
}
/* Features: compact chips */
.cycle-fullscreen .step-detail .features {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.cycle-fullscreen .step-detail .feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-template-columns: unset;
}
.cycle-fullscreen .step-detail .feature-list li {
  padding: 5px 14px;
  padding-left: 14px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}
.cycle-fullscreen .step-detail .feature-list li::before {
  display: none;
}
/* Stats below features: two numbers side by side */
.cycle-fullscreen .step-detail .right {
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  border-left: none;
  padding-left: 0;
  display: block;
}
.cycle-fullscreen .step-detail .right .step-block-label {
  display: block;
}
.cycle-fullscreen .step-detail .right .pillar-stats {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-top: 12px;
}
.cycle-fullscreen .step-detail .right .ps {
  background: transparent;
  border-left: none;
  padding: 0;
  border-radius: 0;
  flex: 1;
}
.cycle-fullscreen .step-detail .right .ps .n {
  font-size: 42px;
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1;
}
.cycle-fullscreen .step-detail .right .ps .l {
  font-size: 12px;
  margin-top: 6px;
  line-height: 1.4;
}
@media (max-width: 980px) {
  .cycle-fullscreen {
    min-height: auto;
  }
  .cycle-fs-body {
    flex-direction: column;
  }
  .cycle-fs-nav {
    width: 100%;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 16px 24px;
    overflow-x: auto;
  }
  .cycle-nav-hint {
    display: none;
  }
  .cycle-node-group {
    flex-direction: column;
    gap: 6px;
    min-width: 60px;
  }
  .cycle-fs-connector {
    width: auto;
    height: 2px;
    min-height: unset;
    max-height: unset;
    margin-left: 0;
    margin-top: 24px;
    flex: 1;
  }
  .cycle-fs-svg {
    width: 48px;
    height: 48px;
  }
  .cycle-fullscreen .step-detail {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

.step-detail-wrap {
  background: var(--paper-2);
  overflow: hidden;
}
.step-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.step-tab {
  padding: 20px 22px;
  font-family: var(--sans);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  border-right: 1px solid var(--line);
  color: var(--ink-3);
  transition:
    background 0.15s,
    color 0.15s;
  display: flex;
  align-items: center;
  gap: 14px;
}
.step-tab:last-child {
  border-right: none;
}
.step-bubble {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper-cool);
  color: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  flex-shrink: 0;
}
.step-tab .name {
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
}
.step-tab:hover {
  background: var(--paper-2);
}
.step-tab:hover .step-bubble {
  background: var(--indigo-soft);
}
.step-tab.active {
  background: var(--paper-2);
  border-bottom: 2px solid var(--indigo);
  margin-bottom: -1px;
}
.step-tab.active .step-bubble {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 4px 12px rgba(56, 67, 208, 0.25);
}
.step-tab.active .name {
  font-weight: 600;
  color: var(--indigo);
}

/* Per-step colors, Learn / Deliver / Verify / Pay */
.step-tab[data-step='learn'] .step-bubble {
  color: var(--step-learn);
}
.step-tab[data-step='learn']:hover .step-bubble {
  background: rgba(22, 0, 109, 0.1);
}
.step-tab[data-step='learn'].active .step-bubble {
  background: var(--step-learn);
  color: #fff;
  box-shadow: 0 4px 12px rgba(22, 0, 109, 0.3);
}
.step-tab[data-step='learn'].active .name {
  color: var(--step-learn);
}
.step-tab[data-step='learn'].active {
  border-bottom-color: var(--step-learn);
}

.step-tab[data-step='deliver'] .step-bubble {
  color: var(--step-deliver);
}
.step-tab[data-step='deliver']:hover .step-bubble {
  background: rgba(93, 112, 210, 0.12);
}
.step-tab[data-step='deliver'].active .step-bubble {
  background: var(--step-deliver);
  color: #fff;
  box-shadow: 0 4px 12px rgba(93, 112, 210, 0.3);
}
.step-tab[data-step='deliver'].active .name {
  color: var(--step-deliver);
}
.step-tab[data-step='deliver'].active {
  border-bottom-color: var(--step-deliver);
}

.step-tab[data-step='verify'] .step-bubble {
  color: var(--mango);
}
.step-tab[data-step='verify']:hover .step-bubble {
  background: rgba(252, 95, 54, 0.12);
}
.step-tab[data-step='verify'].active .step-bubble {
  background: var(--mango);
  color: #fff;
  box-shadow: 0 4px 12px rgba(252, 95, 54, 0.3);
}
.step-tab[data-step='verify'].active .name {
  color: var(--mango-ink);
}
.step-tab[data-step='verify'].active {
  border-bottom-color: var(--mango);
}

.step-tab[data-step='pay'] .step-bubble {
  color: var(--step-pay);
}
.step-tab[data-step='pay']:hover .step-bubble {
  background: rgba(27, 153, 139, 0.12);
}
.step-tab[data-step='pay'].active .step-bubble {
  background: var(--step-pay);
  color: #fff;
  box-shadow: 0 4px 12px rgba(27, 153, 139, 0.3);
}
.step-tab[data-step='pay'].active .name {
  color: var(--step-pay);
}
.step-tab[data-step='pay'].active {
  border-bottom-color: var(--step-pay);
}

/* Step detail accent colors per step */
.step-detail[data-step='learn'] .left h3 em,
.step-detail[data-step='learn'] .right .ps .n {
  background: linear-gradient(90deg, #0e0050 0%, var(--step-learn) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.step-detail[data-step='learn'] .left .pull {
  border-left-color: var(--step-learn);
}
.step-detail[data-step='learn'] .left .deeper {
  color: var(--step-learn);
  border-bottom-color: var(--step-learn);
}
.step-detail[data-step='learn'] .right .ps {
  border-left-color: var(--step-learn);
}

.step-detail[data-step='deliver'] .left h3 em,
.step-detail[data-step='deliver'] .right .ps .n {
  background: linear-gradient(90deg, #4258b8 0%, var(--step-deliver) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.step-detail[data-step='deliver'] .left .pull {
  border-left-color: var(--step-deliver);
}
.step-detail[data-step='deliver'] .left .deeper {
  color: var(--step-deliver);
  border-bottom-color: var(--step-deliver);
}
.step-detail[data-step='deliver'] .right .ps {
  border-left-color: var(--step-deliver);
}

.step-detail[data-step='verify'] .left h3 em,
.step-detail[data-step='verify'] .right .ps .n {
  background: linear-gradient(90deg, var(--mango-deep) 0%, var(--mango) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.step-detail[data-step='verify'] .left .pull {
  border-left-color: var(--mango);
}
.step-detail[data-step='verify'] .left .deeper {
  color: var(--mango-ink);
  border-bottom-color: var(--mango);
}
.step-detail[data-step='verify'] .right .ps {
  border-left-color: var(--mango);
}

.step-detail[data-step='pay'] .left h3 em,
.step-detail[data-step='pay'] .right .ps .n {
  background: linear-gradient(
    90deg,
    var(--teal-pressed) 0%,
    var(--step-pay) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.step-detail[data-step='pay'] .left .pull {
  border-left-color: var(--step-pay);
}
.step-detail[data-step='pay'] .left .deeper {
  color: var(--step-pay);
  border-bottom-color: var(--step-pay);
}
.step-detail[data-step='pay'] .right .ps {
  border-left-color: var(--step-pay);
}

.step-detail {
  display: none;
  padding: 44px 48px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.step-detail.active {
  display: grid;
}
.step-detail {
  grid-template-columns: 300px 1fr;
  grid-template-rows: auto auto;
  column-gap: 48px;
  row-gap: 32px;
  align-items: start;
}
.step-detail .step-media {
  width: 100%;
  aspect-ratio: 320 / 606;
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper-cool);
  border: 1px solid var(--line);
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
}
/* Verify uses a laptop-shaped (square-ish) dashboard gif, not a phone - give it a wider media column so the whole dashboard reads */
.step-detail[data-step='verify'] {
  grid-template-columns: 480px 1fr;
}
.step-detail[data-step='verify'] .step-media {
  aspect-ratio: 480 / 380;
}
.step-detail .step-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.step-detail .left {
  grid-column: 2;
  grid-row: 1;
}
.step-bottom {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.step-bottom .features,
.step-bottom .right {
  flex: 1;
}
@media (max-width: 980px) {
  .step-detail {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 24px;
  }
  .step-detail .step-media {
    grid-row: auto;
    grid-column: 1;
    max-width: 280px;
    margin: 0 auto;
  }
  .step-detail[data-step='verify'] .step-media {
    max-width: 100%;
  }
  .step-detail .left,
  .step-bottom {
    grid-column: 1;
    grid-row: auto;
  }
  .step-bottom {
    flex-direction: column;
    gap: 24px;
  }
}
.step-detail .left h3 {
  font-size: 32px;
  margin: 0 0 18px;
  font-weight: 300;
  max-width: 30ch;
}
.step-detail .left h3 em {
  font-weight: 600;
}
.step-detail .left .lede {
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 28px;
  font-weight: 300;
  max-width: 60ch;
}
.step-block-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--indigo);
  margin: 0 0 14px;
}
.step-detail .feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 10px;
}
.step-detail .feature-list li {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 400;
  position: relative;
  padding-left: 20px;
}
.step-detail .feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--indigo);
}
@media (max-width: 600px) {
  .step-detail .feature-list {
    grid-template-columns: 1fr;
  }
}
.step-detail[data-step='learn'] .step-block-label {
  color: var(--step-learn);
}
.step-detail[data-step='deliver'] .step-block-label {
  color: var(--step-deliver);
}
.step-detail[data-step='verify'] .step-block-label {
  color: var(--mango-ink);
}
.step-detail[data-step='pay'] .step-block-label {
  color: var(--step-pay);
}
.step-detail[data-step='learn'] .feature-list li::before {
  background: var(--step-learn);
}
.step-detail[data-step='deliver'] .feature-list li::before {
  background: var(--step-deliver);
}
.step-detail[data-step='verify'] .feature-list li::before {
  background: var(--mango);
}
.step-detail[data-step='pay'] .feature-list li::before {
  background: var(--step-pay);
}
.step-detail .left .pull {
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  border-left: 2px solid var(--indigo);
  padding: 4px 0 4px 18px;
  margin: 0 0 22px;
  max-width: 60ch;
}
.step-detail .left .deeper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--indigo);
  border-bottom: 1px solid var(--indigo);
  padding-bottom: 2px;
  font-weight: 600;
}
.step-detail .right .pillar-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.step-detail .right .ps {
  background: var(--paper-cool);
  border-left: 3px solid var(--indigo);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.step-detail .right .ps .n {
  font-size: 36px;
  font-weight: 200;
  letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.step-detail .right .ps .l {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 8px;
  font-weight: 400;
}
.numbers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.numbers-header .step-block-label {
  margin: 0;
}
.source-link {
  font-size: 12px;
  color: var(--ink-3);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  opacity: 0.55;
  transition: opacity 0.15s;
}
.source-link:hover {
  opacity: 1;
}

/* Per-step Insights subsection (inside step-detail) */
.step-detail .step-insights {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.step-insights-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 18px;
}
.step-insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.step-insight-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-insight-card .program-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--indigo);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.step-insight-card h5 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.005em;
}
.step-insight-card p {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0;
}
.step-insight-card .src {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  text-transform: none;
}

/* Per-step accent on insights label and program tag */
.step-detail[data-step='learn'] .step-insights-label,
.step-detail[data-step='learn'] .step-insight-card .program-tag {
  color: var(--step-learn);
}
.step-detail[data-step='deliver'] .step-insights-label,
.step-detail[data-step='deliver'] .step-insight-card .program-tag {
  color: var(--step-deliver);
}
.step-detail[data-step='verify'] .step-insights-label,
.step-detail[data-step='verify'] .step-insight-card .program-tag {
  color: var(--mango-ink);
}
.step-detail[data-step='pay'] .step-insights-label,
.step-detail[data-step='pay'] .step-insight-card .program-tag {
  color: var(--step-pay);
}

/* Photo gallery on How It Works */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid .photo-block {
  height: 240px;
  border-radius: var(--radius);
}
.gallery-grid .gallery-tall {
  grid-row: span 2;
  height: 496px;
}

/* INSIGHTS, two-axis filtering (Program × LDVP) */
.filter-block {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.filter-block:last-of-type {
  margin-bottom: 44px;
}
.filter-label {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 158px;
  padding-top: 9px;
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 auto;
}
.filter-pills .pill {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  min-height: 44px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-3);
  cursor: pointer;
  background: var(--paper-2);
  transition:
    color 0.15s,
    border-color 0.15s,
    background-color 0.15s;
}
.filter-pills .pill:hover {
  border-color: var(--indigo);
  color: var(--indigo);
}
.filter-pills .pill.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
/* Frontline Activity pill colors (cycle colors) — hover previews the tag color */
.filter-pills .pill[data-filter-value='learn']:hover,
.filter-pills .pill[data-filter-value='learn'].active {
  background: rgba(22, 0, 109, 0.09);
  color: var(--step-learn);
  border-color: var(--step-learn);
}
.filter-pills .pill[data-filter-value='deliver']:hover,
.filter-pills .pill[data-filter-value='deliver'].active {
  background: rgba(93, 112, 210, 0.12);
  color: #3b4faf;
  border-color: var(--step-deliver);
}
.filter-pills .pill[data-filter-value='verify']:hover,
.filter-pills .pill[data-filter-value='verify'].active {
  background: rgba(252, 95, 54, 0.12);
  color: var(--mango-ink);
  border-color: var(--mango);
}
.filter-pills .pill[data-filter-value='pay']:hover,
.filter-pills .pill[data-filter-value='pay'].active {
  background: rgba(27, 153, 139, 0.12);
  color: #0d7a6f;
  border-color: var(--step-pay);
}
/* Connect Program pill colors — hover previews the tag color */
.filter-pills .pill[data-filter-value='chc']:hover,
.filter-pills .pill[data-filter-value='chc'].active {
  background: rgba(45, 125, 70, 0.1);
  color: #2d7d46;
  border-color: #2d7d46;
}
.filter-pills .pill[data-filter-value='kmc']:hover,
.filter-pills .pill[data-filter-value='kmc'].active {
  background: rgba(181, 86, 58, 0.1);
  color: #b5563a;
  border-color: #b5563a;
}
.filter-pills .pill[data-filter-value='ecd']:hover,
.filter-pills .pill[data-filter-value='ecd'].active {
  background: rgba(123, 94, 167, 0.1);
  color: #7b5ea7;
  border-color: #7b5ea7;
}
.finding-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.finding-num {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  color: var(--indigo);
  letter-spacing: -0.02em;
  line-height: 1;
}
.finding-label {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  flex: 1;
}
.finding-src {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 4px;
}
.insight-row.is-hidden {
  display: none;
}
.prog-card.is-hidden {
  display: none;
}
.programs-section-divider.is-hidden {
  display: none;
}
[data-page='/programs'] .section,
[data-page='/insights'] .section {
  padding-top: 50px;
}

.insight-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.insight-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background 0.15s;
}
.insight-row > .body {
  padding-top: 0;
  grid-column: 2;
  grid-row: 1;
}
.insight-row > .body h3 {
  margin-top: 0;
}

/* Inline program/activity rows */
.insight-row .meta-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.insight-row .meta-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-shrink: 0;
  width: 54px;
}
/* Colored insight values */
.insight-tag {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--sans);
  letter-spacing: 0;
  line-height: 1.5;
}
/* Frontline Activity — colors match the cycle diagram */
.insight-tag.ldvp-learn {
  color: var(--step-learn);
}
.insight-tag.ldvp-deliver {
  color: #3b4faf;
}
.insight-tag.ldvp-verify {
  color: #c0381a;
}
.insight-tag.ldvp-pay {
  color: #0d7a6f;
}
/* Connect Program */
.insight-tag.prog-chc {
  color: #2d7d46;
}
.insight-tag.prog-kmc {
  color: #b5563a;
}
.insight-tag.prog-ecd {
  color: #7b5ea7;
}
.insight-row .meta-side .src-name {
  display: block;
  margin-top: 6px;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.5;
  font-weight: 400;
}
.insight-row:hover {
  background: var(--paper-2);
}
.insight-row .num {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--indigo);
  letter-spacing: 0.04em;
}
.insight-row .num .new {
  display: block;
  margin-top: 8px;
  font-size: 9.5px;
  color: var(--paper);
  background: var(--mango);
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.insight-row .tag {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--indigo);
  padding-top: 4px;
  font-weight: 600;
}
.insight-row .body h3 {
  font-size: 20px;
  margin: 0 0 10px;
  line-height: 1.3;
  font-weight: 500;
}
.insight-row .body p {
  color: var(--ink-3);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 12px;
  font-weight: 400;
}
.insight-row .body .source {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.insight-row .meta-side {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-2);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.5;
  border-right: 1px solid var(--line);
  padding-right: 20px;
  padding-top: 0;
  grid-column: 1;
  grid-row: 1;
}
.insight-row .meta-side b {
  color: var(--muted);
  display: block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 10px;
  margin: 14px 0 5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.insight-row .meta-side b:first-child {
  margin-top: 0;
}
.insight-row .meta-side br {
  display: none;
}
.insight-row .meta-side .tier-1 {
  color: var(--indigo);
  font-weight: 600;
}
.insight-row .meta-side .tier-2 {
  color: var(--indigo);
  font-weight: 600;
}

.methodology {
  margin-top: 24px;
  background: var(--paper-2);
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 40px 0 56px;
  width: 100%;
}
.methodology-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.methodology-source-callout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 168, 157, 0.08);
  border: 1px solid rgba(13, 168, 157, 0.2);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--teal-deep);
  line-height: 1.4;
}
.methodology-source-callout::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}
.methodology h3 {
  font-size: 18px;
  margin: 0 0 14px;
  font-weight: 500;
}
.methodology p {
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.65;
  margin: 0 0 12px;
}

/* Sub-heading inside Impact so far */
.findings-head {
  margin-top: 64px;
  margin-bottom: 28px;
}
.findings-head .eyebrow {
  margin-bottom: 12px;
}
.findings-head h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 300;
  max-width: 30ch;
}
.findings-head h3 em {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* SIGN UP page */
.map-panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
}
.map-panel .map-bar {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.map-panel .map-bar .map-t {
  font-size: 14px;
  font-weight: 500;
}
.map-panel .map-bar .map-c {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.map-canvas {
  background: linear-gradient(
    135deg,
    var(--ink-2) 0%,
    #161c42 50%,
    #1c2258 100%
  );
  position: relative;
  overflow: hidden;
  padding: 32px;
  min-height: 500px;
}
.map-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(142, 161, 255, 0.06) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(142, 161, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.map-canvas svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
}
.map-legend {
  padding: 18px 24px;
  background: var(--paper-cool);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.map-legend .lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.map-legend .lg .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.map-legend .lg-active .dot {
  background: var(--mango);
}
.map-legend .lg-soon .dot {
  background: var(--indigo);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.story-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.story-card .photo-block {
  height: 180px;
}
.story-card .body {
  padding: 24px 26px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.story-card .org {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--indigo);
  font-weight: 600;
  margin-bottom: 4px;
}
.story-card .country {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 14px;
}
.story-card blockquote {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 14px;
  font-weight: 300;
  font-style: italic;
}
.story-card .attrib {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: auto;
}
.story-card .attrib b {
  color: var(--ink);
  font-weight: 600;
}

/* ===== Connect Model: Interactive stepper ===== */
.model-flow {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow:
    0 4px 32px -8px rgba(20, 16, 58, 0.12),
    0 1px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid #e4e7f0;
  position: relative;
}
/* Top-nav layout: nav bar on top, panels below */
.mf-layout {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}
/* Top nav */
.mf-nav {
  border-bottom: 1px solid #e4e7f0;
  display: flex;
  flex-direction: row;
  background: #f7f8fc;
  padding: 0;
  height: auto;
  box-sizing: border-box;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.mf-nav::-webkit-scrollbar {
  display: none;
}
.mf-ni {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 20px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  width: auto;
  text-align: center;
  transition:
    background 0.18s,
    border-color 0.18s;
  flex: 1;
  margin-bottom: -1px;
}
.mf-ni:hover {
  background: rgba(0, 0, 0, 0.03);
}
.mf-ni[aria-selected='true'] {
  background: rgba(13, 168, 157, 0.07);
  border-left-color: transparent;
  border-bottom-color: var(--teal);
}
.mf-ni-num {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 9px;
  border-radius: 20px;
  flex-shrink: 0;
  transition:
    background 0.18s,
    color 0.18s;
}
.mf-ni[aria-selected='true'] .mf-ni-num {
  background: rgba(13, 168, 157, 0.13);
  color: var(--teal-deep);
}
.mf-nav-arrow {
  display: flex;
  align-items: center;
  align-self: center;
  color: rgba(0, 0, 0, 0.18);
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
  padding: 0 2px;
}
.mf-ni-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
}
.mf-ni-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mf-ni[aria-selected='true'] .mf-ni-title {
  color: #0d1026;
}
.mf-ni-sub {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mf-ni-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: 0.22;
  transition: opacity 0.18s;
  flex-shrink: 0;
}
.mf-ni[aria-selected='true'] .mf-ni-dot {
  opacity: 1;
}
.mf-ni-dot--workers {
  background: var(--teal);
}
.mf-ni-dot--funders {
  background: var(--step-deliver);
}
.mf-ni-dot--both {
  background: #e88a00;
}
/* Right panels container */
.mf-panels {
  display: flex;
  flex-direction: column;
}
/* Individual panels — always visible, stacked vertically */
.mf-panel {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  border-top: 1px solid #e4e7f0;
}
/* Inner row for panels with side-by-side content */
.mf-panel-inner {
  display: flex;
  align-items: center;
  gap: 44px;
  padding: 40px 44px;
  flex: 1;
  box-sizing: border-box;
}
/* Callout: centered column */
.mf-panel--callout {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}
/* Cycle: centered column */
.mf-panel--cycle {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
}
/* Frontline Worker panel: step banner on top, then horizontal tabs + content below */
.mf-panel--flw {
  flex-direction: column;
  padding: 0;
  gap: 0;
  align-items: stretch;
}
/* Step banner: appears at top of each panel */
.mf-step-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 44px;
  background: var(--ink);
  border-bottom: none;
  box-sizing: border-box;
  flex-shrink: 0;
}
.mf-step-banner .mf-ni-num {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  flex-shrink: 0;
}
.mf-step-banner .mf-ni-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mf-step-banner .mf-ni-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--on-dark-primary);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.mf-step-banner .mf-ni-dot {
  display: none;
}

/* All three step banners share one solid dark fill (--ink, the same near-black as
   the site header) with white text and a translucent-white Step pill, for a
   uniform "header bar" look across the steps. */

/* Flow connectors between steps — minimal, neutral */
.mf-step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  background: #fbfbfd;
  border-top: 1px solid var(--line);
  position: relative;
}
.mf-step-connector svg {
  width: 18px;
  height: 18px;
  stroke: rgba(0, 0, 0, 0.18);
  fill: none;
  display: block;
}
/* Inner wrapper that holds the horizontal tabs+content for Frontline Worker step */
.mf-flw-inner {
  display: flex;
  flex-direction: row;
  flex: 1;
  height: 520px;
  overflow: hidden;
}
/* Frontline Worker inner tab bar (left vertical rail) */
.mf-flw-tabs {
  display: flex;
  flex-direction: column;
  border-top: none;
  border-right: 1px solid #e4e7f0;
  border-bottom: none;
  border-left: none;
  background: #f4f5fb;
  flex-shrink: 0;
  width: 200px;
  padding: 0;
}
.mf-flw-tab {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  width: 100%;
  padding: 20px 16px;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  margin-right: -1px;
  cursor: pointer;
  transition:
    background 0.18s,
    border-color 0.18s,
    color 0.18s;
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 0;
}
.mf-flw-tab:hover {
  background: rgba(0, 0, 0, 0.03);
  color: rgba(0, 0, 0, 0.65);
}
.mf-flw-tab[aria-selected='true'] {
  border-left-color: var(--indigo);
  color: #0d1026;
  background: rgba(0, 0, 0, 0.02);
}
.mf-flw-tab-num {
  display: none;
}
.mf-flw-tab-label {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
/* Colored circle icon in each tab */
.mf-flw-tab-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--tab-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.3;
  transition: opacity 0.2s;
}
.mf-flw-tab:hover .mf-flw-tab-icon {
  opacity: 0.55;
}
.mf-flw-tab[aria-selected='true'] .mf-flw-tab-icon {
  opacity: 1;
}
.mf-flw-tab-icon svg {
  width: 27px;
  height: 27px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}
/* Results tab static image */
.mf-results-img {
  width: 460px;
  max-width: 100%;
  border-radius: 12px;
  display: block;
}
/* Frontline Worker content area */
.mf-flw-content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* Frontline Worker sub-panels */
.mf-flw-panel {
  display: none;
  padding: 28px 36px 16px 32px;
  gap: 28px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.mf-flw-panel:not([hidden]) {
  display: flex;
}
/* Panel text and media blocks */
.mf-panel-text {
  flex: 1;
}
.mf-inline-quote {
  margin: 16px 0 0;
  padding: 13px 16px;
  border-left: 3px solid var(--step-pay);
  background: rgba(13, 168, 157, 0.06);
  border-radius: 0 6px 6px 0;
}
.mf-inline-quote blockquote {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.65);
  margin: 0 0 7px;
  font-style: italic;
}
.mf-inline-quote cite {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  font-style: normal;
}
.mf-panel-media {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
[data-flw-panel='2'] .mf-panel-media {
  align-items: flex-start;
}
/* Typography inside panels */
.mf-panel h3,
.mf-flw-panel h3 {
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 300;
  color: #0d1026;
  margin: 0 0 14px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.mf-panel h3 em,
.mf-flw-panel h3 em {
  /* No colour emphasis: the step headings read as one uniform light line.
     (Markup keeps <em> for semantics; it just inherits the heading ink.) */
  font-style: normal;
  color: inherit;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
}
.mf-panel p,
.mf-flw-panel p {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.7;
  margin: 0 0 20px;
  max-width: 50ch;
}
/* Slightly larger body text in LDVP sub-panels */
.mf-flw-panel .mf-panel-text p {
  font-size: 17px;
  max-width: none;
}
/* LDVP sub-tabs: looser spacing between the content blocks
   (heading → copy → features → stats) so each tab breathes more. */
.mf-flw-panel .mf-panel-text h3 {
  margin-bottom: 20px;
}
.mf-flw-panel .mf-panel-text > p {
  margin-bottom: 28px;
}
.mf-flw-panel .mf-panel-text .mf-features {
  margin-bottom: 28px;
}
.mf-panel--callout p,
.mf-panel--cycle p {
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}
/* Badges */
.mf-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 4px 11px 4px 9px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.mf-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.mf-badge--workers {
  background: rgba(13, 168, 157, 0.1);
  color: var(--teal-deep);
  border: 1px solid rgba(13, 168, 157, 0.22);
}
.mf-badge--funders {
  background: rgba(93, 112, 210, 0.1);
  color: #4050a8;
  border: 1px solid rgba(93, 112, 210, 0.2);
}
.mf-badge--both {
  background: rgba(232, 138, 0, 0.1);
  color: #9a5c00;
  border: 1px solid rgba(232, 138, 0, 0.18);
}
/* CTA */
.mf-cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--step-deliver);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.mf-cta:hover {
  color: #3843d0;
}
/* Feature tags */
.mf-features {
  margin-bottom: 20px;
}
.mf-features-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.mf-features ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mf-features ul li {
  font-size: 12px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 100px;
  padding: 3px 10px;
}
/* Stats */
.mf-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.mf-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mf-stat-n {
  font-size: 28px;
  font-weight: 200;
  color: #0d1026;
  letter-spacing: -0.02em;
  line-height: 1;
}
.mf-stat-l {
  font-size: 12px;
  color: var(--muted);
  max-width: 24ch;
  line-height: 1.45;
}
/* GIF media */
.mf-gif--phone {
  width: auto;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  /* No card framing: the clip's own (white/light) screen background blends
     into the white panel instead of reading as a floating white card. */
  border-radius: 0;
  box-shadow: none;
  flex-shrink: 0;
  display: block;
}
.mf-gif--screen {
  max-width: 440px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow:
    0 24px 60px -12px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(0, 0, 0, 0.07);
  display: block;
}
/* Two badge tags side by side */
.mf-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2px;
}
/* Results panel: text centered left, image pushed right */
#mf-p-2 .mf-panel-inner {
  gap: 28px;
}
#mf-p-2 .mf-panel-text {
  flex: 0 0 auto;
  max-width: 460px;
  text-align: center;
  align-self: center;
}
#mf-p-2 .mf-panel-media {
  margin-left: auto;
}
/* Verify gif in Results panel (landscape 1186×646) */
.mf-gif--verify-results {
  max-width: 520px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow:
    0 24px 60px -12px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(0, 0, 0, 0.07);
  display: block;
  flex-shrink: 0;
}
/* Verify gif in Verify sub-tab: landscape screen recording (1186×646) */
.mf-gif--verify {
  max-width: 460px;
  max-height: 300px;
  width: 100%;
  height: auto;
  /* No card framing: blend the white dashboard into the white panel. */
  border-radius: 0;
  box-shadow: none;
  display: block;
  flex-shrink: 0;
}
/* Cycle footer: full-width bottom bar */
.mf-cycle-footer {
  border-top: 1px solid #e8eaf0;
  padding: 13px 44px;
  background: rgba(248, 249, 253, 0.85);
  text-align: center;
  flex-shrink: 0;
}
.mf-cycle-footer p {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin: 0;
}
/* Callout stat */
.mf-callout-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}
.mf-callout-stat .mf-stat-n {
  font-size: 44px;
}
/* Two callout stats side by side */
.mf-callout-stats-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.mf-callout-stats-row .mf-callout-stat {
  flex: 1 1 150px;
  min-width: 0;
  margin-top: 0;
}
.mf-callout-stats-row .mf-stat-n {
  font-size: 34px;
}
/* Cycle icon */
.mf-cycle-icon {
  width: 44px;
  height: 44px;
  color: rgba(13, 168, 157, 0.55);
}
/* Picker panel */
.mf-picker-wrap {
  flex-shrink: 0;
}
/* Responsive: compact at 860px */
@media (max-width: 860px) {
  .mf-step-banner {
    padding: 14px 24px;
  }
  .mf-panel-inner {
    flex-direction: column;
    padding: 24px 28px;
    gap: 24px;
  }
  .mf-flw-inner {
    flex-direction: column;
    height: auto;
    min-height: 460px;
  }
  .mf-flw-tabs {
    flex-direction: row;
    width: auto;
    border-right: none;
    border-bottom: 1px solid #e4e7f0;
  }
  .mf-flw-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    border-left-width: 0;
    border-bottom: 3px solid transparent;
    margin: 0 0 -1px 0;
  }
  .mf-flw-tab[aria-selected='true'] {
    border-bottom-color: var(--indigo);
  }
  .mf-flw-tab-num {
    display: none;
  }
  .mf-flw-panel {
    flex-direction: column;
    padding: 20px 24px;
    gap: 20px;
    height: auto;
  }
  .mf-gif--phone {
    width: 260px;
    max-height: none;
  }
  .mf-results-img {
    width: 100%;
    max-width: 340px;
  }
  .mf-gif--screen {
    max-width: 100%;
  }
  .mf-panel p,
  .mf-flw-panel p {
    max-width: none;
  }
  .mf-gif--verify {
    max-width: 100%;
  }
  .mf-gif--verify-results {
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .mf-step-banner {
    padding: 12px 20px;
  }
  /* Let the step label wrap instead of running off-screen and being clipped
     by .model-flow's overflow:hidden at narrow phone widths. The base
     .mf-ni-info rule is flex:0 0 auto (won't shrink), so it must be relaxed
     here for the normal-white-space title to actually wrap. */
  .mf-step-banner .mf-ni-info {
    flex: 1 1 auto;
    min-width: 0;
  }
  .mf-step-banner .mf-ni-title {
    white-space: normal;
    line-height: 1.25;
  }
  .mf-panel-inner {
    padding: 20px;
  }
  .mf-flw-panel {
    padding: 20px;
  }
  .mf-gif--phone {
    width: 240px;
  }
}

/* ===== Interactive Marketplace Diagram ===== */
.mkt-interactive {
  background: linear-gradient(
    135deg,
    #0e0830 0%,
    var(--ink-2) 55%,
    #1b1450 100%
  );
  border-radius: 28px;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow:
    0 30px 60px -25px rgba(20, 16, 58, 0.45),
    0 12px 24px -12px rgba(56, 67, 208, 0.2);
  position: relative;
}
.mkt-interactive::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.055) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
.mkt-top,
.mkt-details {
  position: relative;
  z-index: 1;
}
.mkt-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}
.mkt-col {
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mkt-col--funders {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.mkt-col--workers {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}
.mkt-col-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mkt-col-title {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.mkt-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px 5px 10px;
  border-radius: 100px;
  width: fit-content;
}
.mkt-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.mkt-badge--funders {
  background: rgba(141, 161, 255, 0.14);
  color: #a8b6ff;
  border: 1px solid rgba(141, 161, 255, 0.22);
}
.mkt-badge--workers {
  background: rgba(13, 168, 157, 0.14);
  color: #11c4b8;
  border: 1px solid rgba(13, 168, 157, 0.22);
}
.mkt-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mkt-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
  font-family: inherit;
  text-align: left;
  line-height: 1.3;
}
.mkt-step:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.78);
}
.mkt-col--funders .mkt-step[aria-selected='true'] {
  background: rgba(141, 161, 255, 0.13);
  border-color: rgba(141, 161, 255, 0.32);
  color: #c5ceff;
}
.mkt-col--workers .mkt-step[aria-selected='true'] {
  background: rgba(13, 168, 157, 0.13);
  border-color: rgba(13, 168, 157, 0.32);
  color: #4fd8d2;
}
.mkt-step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  transition:
    background 160ms ease,
    color 160ms ease;
}
.mkt-col--funders .mkt-step[aria-selected='true'] .mkt-step-n {
  background: rgba(141, 161, 255, 0.28);
  color: #e0e5ff;
}
.mkt-col--workers .mkt-step[aria-selected='true'] .mkt-step-n {
  background: rgba(13, 168, 157, 0.28);
  color: #b0f5f2;
}
.mkt-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 28px;
  gap: 14px;
}
.mkt-hub-logo {
  width: 126px;
  height: auto;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.75);
}
.mkt-hub-flows {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.mkt-hub-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mkt-hub-flow--down {
  color: rgba(141, 161, 255, 0.55);
}
.mkt-hub-flow--down svg {
  color: rgba(141, 161, 255, 0.45);
}
.mkt-hub-flow--up {
  color: rgba(13, 168, 157, 0.55);
}
.mkt-hub-flow--up svg {
  color: rgba(13, 168, 157, 0.45);
}
.mkt-details {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.mkt-detail-pane {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 40px;
  animation: mktFadeUp 200ms ease both;
}
.mkt-detail-pane[hidden] {
  display: none;
}
@keyframes mktFadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.mkt-detail-pane[data-side='funders'] {
  background: linear-gradient(
    90deg,
    rgba(92, 111, 232, 0.1) 0%,
    rgba(92, 111, 232, 0.04) 100%
  );
}
.mkt-detail-pane[data-side='workers'] {
  background: linear-gradient(
    90deg,
    rgba(13, 168, 157, 0.08) 0%,
    rgba(13, 168, 157, 0.03) 100%
  );
}
.mkt-detail-img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  flex-shrink: 0;
}
.mkt-detail-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mkt-detail-icon svg {
  width: 56px;
  height: 56px;
}
.mkt-detail-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mkt-detail-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(141, 161, 255, 0.65);
}
.mkt-detail-pane[data-side='workers'] .mkt-detail-label {
  color: rgba(13, 168, 157, 0.75);
}
.mkt-detail-text h4 {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.mkt-detail-text p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.65;
  margin: 0;
  max-width: 56ch;
}

/* Enriched worker panels: GIF + text + features + stats */
.mkt-detail-pane--rich {
  align-items: flex-start;
}
.mkt-detail-gif {
  width: 120px;
  height: auto;
  border-radius: 10px;
  flex-shrink: 0;
}
.mkt-detail-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.mkt-detail-body .mkt-detail-text p {
  max-width: 48ch;
}
.mkt-detail-footer {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.mkt-detail-meta-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  margin-bottom: 8px;
}
.mkt-detail-features {
  flex: 1;
  min-width: 0;
}
.mkt-detail-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.mkt-detail-features ul li {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 3px 9px;
}
.mkt-detail-stats {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
  align-items: flex-start;
}
.mkt-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mkt-stat-n {
  font-size: 21px;
  font-weight: 700;
  color: #4fd8d2;
  letter-spacing: -0.02em;
  line-height: 1;
}
.mkt-stat-l {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
  max-width: 15ch;
}

@media (max-width: 860px) {
  .mkt-top {
    grid-template-columns: 1fr;
  }
  .mkt-col--funders {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .mkt-col--workers {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .mkt-hub {
    flex-direction: row;
    padding: 20px 24px;
    gap: 20px;
  }
  .mkt-hub-flows {
    flex-direction: row;
    align-items: center;
  }
  .mkt-detail-pane {
    flex-direction: column;
    padding: 28px 24px;
    gap: 20px;
  }
  .mkt-detail-img {
    width: 90px;
    height: 90px;
  }
  .mkt-detail-gif {
    width: 80px;
  }
  .mkt-detail-footer {
    flex-direction: column;
    gap: 14px;
  }
  .mkt-detail-stats {
    flex-wrap: wrap;
  }
}

.role-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.role-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition:
    border-color 0.15s,
    transform 0.15s,
    box-shadow 0.2s;
}
.role-card:hover {
  border-color: var(--indigo);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(56, 67, 208, 0.1);
}
.role-card.warm:hover {
  border-color: var(--mango);
  box-shadow: 0 16px 40px rgba(252, 95, 54, 0.1);
}
.role-card.funder:hover {
  border-color: var(--step-pay);
  box-shadow: 0 16px 40px rgba(27, 153, 139, 0.1);
}
.role-card .role-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--indigo-soft);
  color: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
}
.role-card.warm .role-icon {
  background: rgba(252, 95, 54, 0.12);
  color: var(--mango);
}
.role-card.funder .role-icon {
  background: rgba(27, 153, 139, 0.12);
  color: var(--step-pay);
}
.role-card .role-icon svg {
  width: 28px;
  height: 28px;
}
.role-card .role-tag {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--indigo);
  font-weight: 600;
}
.role-card.warm .role-tag {
  color: var(--mango);
}
.role-card.funder .role-tag {
  color: var(--step-pay);
}
.role-card h3 {
  font-size: 28px;
  font-weight: 300;
}
.role-card h3 em {
  font-weight: 600;
}
.role-card p {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.6;
  margin: 0;
}
.role-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.role-card li {
  font-size: 14px;
  color: var(--ink-2);
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.role-card li::before {
  content: '→';
  color: var(--indigo);
  font-weight: 600;
}
.role-card.warm li::before {
  color: var(--mango);
}
.role-card.funder li::before {
  color: var(--step-pay);
}
.role-card .role-action {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.role-card-band {
  margin: -32px -28px 20px -28px;
  padding: 14px 24px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  align-items: center;
}
.role-card-band--org {
  background: linear-gradient(135deg, #e8f5f4 0%, #c9eeec 100%);
}
.role-card-band--worker {
  background: linear-gradient(135deg, #eef0fb 0%, #dde0f7 100%);
}
.role-card-band-label {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-2);
}
.role-card--org:hover {
  border-color: var(--teal);
}
.role-card--worker:hover {
  border-color: var(--indigo);
}

/* ── Testimonials: light & warm treatment ──────────────────────
   Replaces the old near-black .section.dark. A warm off-white
   surface with soft marigold/sky glows, real program photos on
   each card, and a gentle hover lift instead of the harsh blue
   flip — so the section reads as friendly and human. */
.section--testimonials {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}
.section--testimonials > .wrap {
  position: relative;
  z-index: 1;
}

/* ── Testimonial cards: quote + attribution on a continuously scrolling
   marquee row. The track is duplicated and translated by JS for a seamless
   loop; it pauses on hover / focus, and falls back to a static, manually
   scrollable row when reduced motion is requested. */
.testimonial-carousel {
  position: relative;
  z-index: 1;
  width: 100%;
  /* Sit close under the hero, then leave a band of white below the row before
     the next (dark) section begins. */
  margin-top: -8px;
  margin-bottom: 96px;
  /* Clip the off-screen track horizontally while letting card shadows and
     the hover lift spill above / below the row. */
  overflow-x: clip;
  overflow-y: visible;
}
.testimonial-cards {
  display: flex;
  --tgap: 28px;
  gap: var(--tgap);
  width: max-content;
  padding: 12px 28px;
  will-change: transform;
}
/* Reduced-motion / no-JS fallback: a normal horizontally scrollable row. */
.testimonial-cards--static {
  width: auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 28px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transform: none !important;
}
.testimonial-cards--static::-webkit-scrollbar {
  display: none;
}
.tcard {
  /* Fixed-width cards so the marquee track has a stable, measurable width. */
  flex: 0 0 auto;
  width: clamp(320px, 24vw, 362px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 28px 26px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(10, 6, 32, 0.07);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background-color 0.28s ease;
}
.tcard-quote,
.tcard-quote strong,
.tcard-name,
.tcard-role,
.tcard-role a,
.tcard-attr,
.tcard-avatar {
  transition:
    color 0.28s ease,
    border-color 0.28s ease,
    background-color 0.28s ease;
}
/* Hover: a soft Connect-blue accent — gentle lift, blue border + shadow, and a
   barely-there indigo wash. Text stays dark; no full color flip. */
.tcard:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 67, 208, 0.5);
  background: #eef0f9; /* fallback for the indigo wash below */
  background: color-mix(in srgb, var(--indigo) 5%, var(--paper-warm));
  box-shadow: 0 16px 34px rgba(56, 67, 208, 0.16);
}
.tcard-quote {
  font-family: var(--sans);
  font-size: clamp(13px, 0.95vw, 15px);
  line-height: 1.6;
  font-weight: 300;
  color: var(--ink);
  margin: 0;
}
.tcard-quote strong {
  font-weight: 600;
  color: var(--indigo);
  font-size: 1.22em;
}
.tcard-attr {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.tcard-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(10, 6, 32, 0.06);
}
.tcard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}
.tcard-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tcard-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.tcard-role {
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-3);
}
.tcard-role a {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 768px) {
  .tcard {
    width: 62vw;
  }
}
@media (max-width: 600px) {
  .tcard {
    width: 68vw;
    padding: 22px 20px;
  }
}

/* Gateway to Opportunities section */
.gateway-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.gateway-section-header {
  text-align: center;
}
.gateway-section-header .eyebrow {
  justify-content: center;
}
.gateway-section-header h2 {
  margin: 12px 0 0;
  font-size: var(--fs-statement);
  line-height: 1.1;
}
.gateway-section-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.gateway-section-body > p {
  color: var(--ink-3);
  line-height: 1.7;
  font-size: 17px;
  max-width: 60ch;
  text-align: center;
}
.gateway-section-img {
  width: clamp(160px, 16vw, 220px);
  margin-top: 16px;
}
.gateway-section-img img {
  width: 100%;
  mix-blend-mode: multiply;
  display: block;
}
@media (max-width: 900px) {
  .gateway-section-header h2 {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }
  .gateway-section-body {
    gap: 16px;
  }
  .gateway-section-img {
    width: clamp(140px, 40vw, 200px);
  }
}

/* Home hero, tagged stat rows (Scale + Impact) on dark bg */
.hero-dark .hero-stats {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero-dark .hero-stats-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 32px;
  align-items: center;
}
.hero-dark .hero-stats-tag {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--indigo);
}
.hero-dark .hero-stats-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 768px) {
  .hero-dark .hero-stats-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}
.hero-dark .hero-stats-items .num {
  font-size: 30px;
  font-weight: 200;
  letter-spacing: -0.02em;
  background: var(--grad-text-on-dark);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.hero-dark .hero-stats-items .label {
  margin-top: 8px;
  color: var(--on-dark-secondary);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.3;
}
@media (max-width: 768px) {
  .hero-dark .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Country chips inside the dark hero stats (CHC page) */
.hero-dark .hero-stats-countries {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.hero-dark .hero-stats-countries > span {
  color: var(--on-dark-primary);
  font-size: 13px;
  line-height: 1.2;
  padding: 6px 12px;
  border: 1px solid rgba(142, 161, 255, 0.28);
  border-radius: 999px;
  background: rgba(142, 161, 255, 0.06);
}
.hero-dark .hero-stats-countries > span.paused {
  color: var(--on-dark-muted);
  border-style: dashed;
}
.hero-dark .hero-stats-countries > span.paused em {
  margin-left: 6px;
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

/* Hero + stats wrapper — hero stays uniformly dark; the stats band
   below breaks out onto its own distinct colour. */
.hero-stats-wrap {
  background: var(--ink);
}
.hero-stats-wrap .hero-dark {
  background: transparent;
}

/* Home stats band — its own vivid Connect-blue panel (mirrors the
   CommCare login page gradient), a clear colour break from the dark hero. */
.stats-teal {
  background: var(--ink);
  padding: clamp(36px, 4vw, 56px) 0;
  border-top: 1px solid rgba(142, 161, 255, 0.12);
  border-bottom: none;
}
.stats-teal .hero-stats {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.stats-teal .hero-stats-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 32px;
  align-items: center;
}
.stats-teal .hero-stats-tag {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}
.stats-teal .hero-stats-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
/* Single-line variant: all five metrics share one row (no Scale/Impact tags).
   Columns size to content and the leftover space is shared evenly between
   them, so a short metric (e.g. "13 Countries") doesn't leave a dead gap. */
.stats-teal .hero-stats-items--oneline {
  grid-template-columns: repeat(5, auto);
  justify-content: space-between;
  gap: 24px;
}
.stats-teal .hero-stats-items .num {
  font-size: clamp(32px, 2.6vw, 40px);
  font-weight: 300;
  letter-spacing: -0.025em;
  background: var(--grad-text-on-dark);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
/* Single key stat in solid white (resets the gradient text-clip so the colour shows) */
.stats-teal .hero-stats-items .num.num--accent {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
}
.stats-teal .hero-stats-items .label {
  margin-top: 8px;
  color: var(--on-dark-secondary);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.3;
}
@media (max-width: 768px) {
  .stats-teal .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .stats-teal .hero-stats-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

/* Hero with video (How It Works) */
.hero-with-video {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-with-video h1 {
  max-width: 18ch;
}

/* Child Health Campaign hero - 2-column layout (text + circular photo) */
.chc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 56px;
  align-items: start;
}
.chc-hero-text h1 {
  max-width: 16ch;
}
.chc-hero-photo {
  display: flex;
  justify-content: center;
  align-items: center;
}
.chc-hero-photo .photo-circle {
  width: clamp(280px, 34vw, 420px);
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  /* Layered: actual image (if present) over a gradient placeholder */
  background-image: url("images/field-photos/chc/chc-1.5592a757d6d5.jpg"),
    linear-gradient(
      135deg,
      var(--step-deliver) 0%,
      var(--step-learn) 60%,
      var(--mango) 100%
    );
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
  border: 3px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
}
/* Program detail heroes pin the photo to the far right of the grid, which
   reads as detached from the short headline. Nudge it inward a touch. */
[data-page^='/portfolio/'] .chc-hero-photo {
  margin-right: clamp(0px, 3vw, 48px);
}
/* Join the Network hero photo — rectangular frame with attribution overlay */
.photo-join-frame {
  position: relative;
  line-height: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px -16px rgba(0, 0, 0, 0.55);
}
.photo-join-img {
  width: 460px;
  height: 300px;
  object-fit: cover;
  display: block;
}
[data-page='/frontline-network'] .chc-hero-grid {
  align-items: center;
}
/* Program detail heroes: vertically center the photo against the text block
   (top-aligned left it sitting above the headline and feeling too high). */
[data-page^='/portfolio/'] .chc-hero-grid {
  align-items: center;
}
.photo-join-frame .hero-photo-attr {
  color: #fff;
}
@media (max-width: 900px) {
  .chc-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .chc-hero-photo {
    order: -1;
  }
  /* Stacked: photo is centered in a full-width column, so drop the
     right nudge that only makes sense in the two-column layout. */
  [data-page^='/portfolio/'] .chc-hero-photo {
    margin-right: 0;
  }
}

/* Child Health Campaign - Kenya video section: text left, video right */
.chc-kenya-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.chc-kenya-text h2 {
  max-width: 18ch;
}
.chc-kenya-text .sub {
  max-width: 52ch;
}
.chc-kenya-video {
  min-width: 0;
}
@media (max-width: 900px) {
  .chc-kenya-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* CHC stats band - dark like the hero but with tighter padding */
/* CHC stats band - light/cool variant (used after the services section) */
/* CHC "At A Glance" stats band - deep purple */
.stats-cool {
  background: linear-gradient(180deg, #2a1668 0%, #1e0f4d 100%);
  padding: 80px 0;
  color: var(--on-dark-primary);
}
.stats-cool .sec-head {
  margin-bottom: 40px;
}
.stats-cool h2 {
  color: #fff;
  font-size: var(--fs-h2);
  margin: 0;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.18;
}
.stats-cool h2 em {
  background: var(--grad-text-on-dark);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  font-style: normal;
}
.stats-cool .hero-stats {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.stats-cool .hero-stats-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 32px;
  align-items: center;
}
.stats-cool .hero-stats-tag {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--on-dark-muted);
  text-transform: uppercase;
}
.stats-cool .hero-stats-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.stats-cool .hero-stats-items:has(> div:nth-child(4)) {
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stats-cool .hero-stats-items > div .num {
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 200;
  letter-spacing: -0.02em;
  background: var(--grad-text-on-dark);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.stats-cool .hero-stats-items > div .label {
  margin-top: 8px;
  color: var(--on-dark-muted);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.stats-cool .hero-stats-countries {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.stats-cool .hero-stats-countries > span {
  color: var(--on-dark-primary);
  font-size: 13px;
  line-height: 1.2;
  padding: 6px 12px;
  border: 1px solid rgba(142, 161, 255, 0.3);
  border-radius: 999px;
  background: rgba(142, 161, 255, 0.06);
}
.stats-cool .hero-stats-countries > span.paused {
  color: var(--on-dark-muted);
  border-style: dashed;
}
.stats-cool .hero-stats-countries > span.paused em {
  margin-left: 6px;
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
@media (max-width: 768px) {
  .stats-cool .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .stats-cool .hero-stats-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* CHC hero: breadcrumb sits on the dark hero (not in a separate light strip) */
.hero-dark-chc {
  padding-top: 56px;
}
.hero-dark-chc .breadcrumb {
  color: var(--on-dark-muted);
  padding: 0 0 36px;
}
.hero-dark-chc .breadcrumb a {
  color: rgba(142, 161, 255, 0.85);
}
.hero-dark-chc .breadcrumb a:hover {
  color: var(--mango);
}
.hero-dark-chc .breadcrumb .sep {
  color: rgba(255, 255, 255, 0.3);
}

/* Home, "What's different" comparison table */
.compare-table {
  display: grid;
  grid-template-columns: minmax(96px, 132px) 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 32px;
  box-shadow: 0 4px 24px -8px rgba(20, 16, 58, 0.07);
}
.compare-header {
  background: var(--paper);
  padding: 18px 24px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.compare-header.area {
  background: var(--paper);
}
.compare-header.old {
  background: var(--paper);
  font-size: 16px;
  justify-content: center;
  text-align: center;
}
.compare-header.new {
  background: #d7dcfa;
  color: var(--indigo-deep);
  font-size: 16px;
  font-weight: 700;
  border-left: 3px solid var(--indigo);
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.compare-badge {
  display: inline-block;
  background: var(--indigo);
  color: white;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.6;
  flex-shrink: 0;
}
.compare-cell {
  background: white;
  padding: 22px 26px;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.62;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.15s ease;
}
.compare-cell:nth-last-child(-n + 3) {
  border-bottom: none;
}
.compare-cell.area {
  background: var(--paper);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 22px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
}
.area-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--muted);
  opacity: 0.55;
  transition: opacity 0.15s ease;
}
.compare-cell.area.row-hover {
  background: var(--paper-cool);
  color: var(--indigo);
}
.compare-cell.area.row-hover .area-icon {
  opacity: 0.9;
  color: var(--indigo);
}
.compare-cell.new.row-hover {
  background: #d2d8f8;
}
.compare-cell.old.row-hover {
  background: var(--paper);
}
.compare-cell.old {
  background: white;
  color: rgba(107, 115, 136, 0.85);
  font-weight: 350;
}
.compare-cell.new {
  background: #e0e4fb;
  color: var(--ink-2);
  font-weight: 400;
  border-left: 3px solid var(--indigo);
}
.compare-cell.new strong {
  color: var(--indigo);
  font-weight: 700;
}
.compare-cell.old strong {
  color: var(--ink-3);
  font-weight: 400;
}
.compare-cell.new::before,
.compare-cell.old::before {
  display: none;
}
.compare-table > .compare-header.new,
.compare-table > .compare-cell.new {
  box-shadow: none;
}

/* Scroll-reveal stagger for compare table rows */
@media (prefers-reduced-motion: no-preference) {
  .compare-animate .compare-cell {
    opacity: 0;
    transform: translateY(10px);
  }
  .compare-animate .compare-cell.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition:
      opacity 0.38s ease,
      transform 0.38s ease,
      background-color 0.15s ease;
  }
}

/* Mobile comparison toggle (hidden on desktop; shown in mobile @media below) */
.compare-why-cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.compare-why-cta--inline {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}
.compare-why-cta p {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0;
}
.compare-toggle {
  display: none;
}
.compare-toggle-btn {
  flex: 1 1 0;
  min-height: 44px;
  padding: 10px 16px;
  background: transparent;
  color: var(--muted);
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
.compare-toggle-btn.is-active {
  background: var(--paper-2);
  color: var(--indigo);
  font-weight: 600;
  box-shadow:
    0 1px 2px rgba(20, 16, 58, 0.06),
    0 4px 12px -6px rgba(20, 16, 58, 0.18);
}
.compare-toggle-btn:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

/* Versus list — stacked two-panel comparison (replaces compare-table) */
.versus-list {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.versus-col-labels {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 6px;
  padding: 0 4px 6px;
}
.versus-col-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 0 20px;
}
.versus-col-label.new {
  color: var(--indigo);
}
.versus-col-label.old {
  color: var(--muted);
}
.versus-item {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.versus-area-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 4px 6px;
}
.versus-area-label svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.65;
}
.versus-panels {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3px;
  border-radius: var(--radius);
  overflow: hidden;
}
.versus-new {
  background: var(--indigo-soft);
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.72;
  color: var(--ink-2);
}
.versus-new strong {
  font-weight: 600;
  color: var(--indigo);
}
.versus-old {
  background: var(--paper-warm);
  padding: 20px 24px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.72;
  color: var(--ink-3);
}
.versus-old strong {
  font-weight: 500;
  color: var(--ink-3);
}
@media (max-width: 600px) {
  .versus-col-labels {
    grid-template-columns: 1fr;
  }
  .versus-col-label.old {
    display: none;
  }
  .versus-panels {
    grid-template-columns: 1fr;
  }
  .versus-old {
    border-top: 1px solid var(--line);
  }
}

/* Home, "Explore" 2-card grid */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1140px;
  margin: 0 auto;
}
.explore-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  color: var(--ink);
  transition:
    border-color 0.15s,
    transform 0.15s,
    box-shadow 0.2s;
  overflow: hidden;
}
a.explore-card:hover {
  border-color: var(--indigo);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(56, 67, 208, 0.08);
}
.explore-card .explore-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--paper-3, #eee);
}
/* Colored title panels (replacing stock photos) */
.explore-panel {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  color: #fff;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.01em;
  line-height: 1.2;
  position: relative;
  overflow: hidden;
}
.explore-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse 60% 80% at 20% 100%,
      rgba(255, 255, 255, 0.18),
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 80% at 100% 0%,
      rgba(0, 0, 0, 0.18),
      transparent 60%
    );
  pointer-events: none;
}
.explore-panel span {
  position: relative;
  z-index: 1;
  max-width: 22ch;
}
.explore-panel.indigo {
  background-image: url("images/field-photos/chc/chc-1.5592a757d6d5.jpg"),
    linear-gradient(135deg, var(--indigo-deep) 0%, var(--indigo) 100%);
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}
.explore-panel.sky {
  background-image: url("images/field-photos/readers/readers-1.d1328f0c7ea3.jpg"),
    linear-gradient(135deg, var(--indigo-deep) 0%, var(--indigo) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}
.explore-panel.ink {
  background-image: url("images/field-photos/join-hero.bd78503bf464.jpg"),
    linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  background-size: 165%, cover;
  background-position:
    40% 22%,
    center;
  background-repeat: no-repeat;
}
.explore-card .explore-tag,
.explore-card h3,
.explore-card > p,
.explore-card .explore-link {
  margin-left: 32px;
  margin-right: 32px;
}
.explore-card .explore-tag {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--indigo);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 26px;
}
/* Small icon tile shown at the top of CHC service cards */
.service-icon {
  margin: 26px 32px 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--indigo-soft);
  color: var(--indigo);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
/* When a service icon precedes the explore-tag, tighten the gap */
.service-icon + .explore-tag {
  margin-top: 14px;
}
.explore-card h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  margin: 10px 32px 0;
  color: var(--ink);
}
.explore-card > p,
.explore-card-body {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.6;
  flex-grow: 1;
}
.explore-card .explore-link {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--mango);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
  margin-top: 20px;
}

/* Home — compact "The Opportunity" intro band (above the marketplace) */
.opportunity-band {
  padding: clamp(40px, 4.5vw, 60px) 0;
}
.opportunity-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.opportunity-inner .eyebrow {
  justify-content: center;
  margin-bottom: 14px;
}
.opportunity-inner h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
  margin: 0 0 14px;
}
.opportunity-inner p {
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1.6;
  max-width: 62ch;
  margin: 0 auto 18px;
}
.opportunity-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mango);
}
.opportunity-link .arr {
  display: inline-block;
  transition: transform 0.2s ease;
}
.opportunity-link:hover .arr {
  transform: translateX(4px);
}

/* Hover: ease the photo panel in (zoom) and slide the link arrow */
.explore-panel {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
a.explore-card:hover .explore-panel {
  transform: scale(1.06);
}
.explore-link .arr {
  display: inline-block;
  transition: transform 0.2s ease;
}
a.explore-card:hover .explore-link .arr {
  transform: translateX(5px);
}
@media (prefers-reduced-motion: reduce) {
  .explore-panel,
  a.explore-card:hover .explore-panel,
  .explore-link .arr {
    transition: none;
    transform: none;
  }
  /* Decorative entrance animations: show the final state, skip the motion.
     Both animate transform/opacity to their natural resting values, so
     disabling them leaves the element fully visible and correctly placed. */
  .page,
  .mkt-detail-pane {
    animation: none;
  }
}

/* Programs intro on home, heading + smaller video side by side */
.programs-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}
.programs-intro .label-group {
  max-width: 44ch;
}
.programs-intro h2 {
  font-size: var(--fs-h2);
  font-weight: 300;
  margin: 6px 0 0;
}
.programs-intro .sub {
  color: var(--ink-3);
  margin-top: 16px;
  font-size: var(--fs-lede);
  line-height: 1.55;
  font-weight: 300;
}

/* Programs + Locations panel (home) */
.programs-locations {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-bottom: 36px;
}
.pl-col {
  display: flex;
  flex-direction: column;
}
.pl-col .pl-col-label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin: 0 0 14px;
}
.programs-narrow {
  grid-template-columns: 1fr 1fr !important;
}
.locations-panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.location-row {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.location-row:last-child {
  border-bottom: none;
}
.location-row .country {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.location-row .country .sub {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 8px;
}
.location-row .count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--indigo);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.location-row .count.is-multi {
  color: var(--mango);
}

/* Tiny program tiles (home) */
.prog-mini-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.prog-mini {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink);
  transition:
    border-color 0.15s,
    transform 0.15s,
    box-shadow 0.2s;
  min-height: 140px;
  position: relative;
}
.prog-mini:hover {
  border-color: var(--indigo);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(56, 67, 208, 0.08);
}
.prog-mini .sector {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--indigo);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.prog-mini h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
}
.prog-mini.is-soon {
  background: var(--paper-cool);
}
.prog-mini .badge-soon {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--mango);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* Program jump-nav (Programs page top) */
.prog-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.prog-jump .pill {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-3);
  cursor: pointer;
  background: var(--paper-2);
  transition:
    color 0.15s,
    border-color 0.15s,
    background-color 0.15s;
  white-space: nowrap;
}
.prog-jump .pill:hover {
  border-color: var(--indigo);
  color: var(--indigo);
}
.prog-jump .pill.is-soon {
  background: var(--paper-cool);
  color: var(--muted);
}
.prog-jump .pill.is-soon:hover {
  border-color: var(--mango);
  color: var(--mango);
}
.prog-jump-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
/* Scroll-margin for jump-target program cards */
.all-programs-grid .prog-card[id] {
  scroll-margin-top: 96px;
}
/* Scroll-margin for the "Explore the Portfolio" hero CTA target */
#prog-explore {
  scroll-margin-top: 96px;
}

/* Programs page, split active vs coming-soon */
.all-programs-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.programs-section-divider {
  margin: 56px 0 32px;
  text-align: left;
}
.programs-section-divider .eyebrow {
  margin-bottom: 8px;
}
.programs-section-divider h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 400;
}
.programs-section-divider h3 em {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

/* Programs page: two labelled groups (active vs in development) so the
   card grid reads as two intentional sets rather than one long wall.
   Each group gets a quiet eyebrow label over a hairline rule. */
.programs-group + .programs-group {
  margin-top: 64px;
}
.programs-group-head {
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.programs-group-head .programs-group-label {
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .programs-group + .programs-group {
    margin-top: 48px;
  }
  .programs-group-head {
    margin-bottom: 22px;
  }
}

/* Light-page video frame */
.video-frame {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.video-frame .video-meta {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.video-frame .video-meta .vt {
  font-size: 14px;
  font-weight: 500;
}
.video-frame .video-meta .vc {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 980px) {
  .header-inner {
    padding: 16px 20px;
    gap: 14px;
  }
  .site-header nav {
    gap: 14px;
    font-size: 13px;
  }
  /* On mobile the desktop nav is hidden entirely and replaced by the hamburger + slide-down panel. */
  .site-header nav#primary-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-block;
  }
  .site-header .mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-top: 1px solid rgba(142, 161, 255, 0.08);
    padding: 8px 0 16px;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
  }
  .site-header .mobile-nav[hidden] {
    display: none;
  }
  body.nav-open {
    /* overflow:hidden covers non-iOS; JS sets position:fixed for iOS Safari */
    overflow: hidden;
  }
  .wrap {
    padding: 0 20px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-photo-col {
    display: none;
  }
  .impact-grid,
  .prog-grid,
  .findings-grid,
  .all-programs-grid,
  .stories-grid,
  .role-cta-grid {
    grid-template-columns: 1fr 1fr;
  }
  .explore-grid {
    grid-template-columns: 1fr;
  }
  .compare-toggle {
    display: flex;
    gap: 6px;
    margin-top: 32px;
    padding: 6px;
    background: var(--paper-warm);
    border: 1px solid var(--line);
    border-radius: 999px;
  }
  .compare-toggle + .compare-table {
    margin-top: 16px;
  }
  .compare-table {
    grid-template-columns: 1fr;
  }
  .compare-table .compare-header.area {
    display: none;
  }
  /* Mobile: show only the selected column (old or new); keep the row-label cells visible */
  .compare-table[data-mobile-show='new'] .compare-header.old,
  .compare-table[data-mobile-show='new'] .compare-cell.old {
    display: none;
  }
  .compare-table[data-mobile-show='old'] .compare-header.new,
  .compare-table[data-mobile-show='old'] .compare-cell.new {
    display: none;
  }
  /* Single background per selected column — area label cells match content cells */
  .compare-table[data-mobile-show='new'] .compare-cell.area {
    background: #e0e4fb;
  }
  .compare-table[data-mobile-show='old'] .compare-cell.area {
    background: white;
  }
  .impact-section-block .imp-row {
    grid-template-columns: 1fr;
  }
  .impact-section-block .imp-label {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 16px 22px;
  }
  .impact-section-block .imp-tiles.cols-3,
  .impact-section-block .imp-tiles.cols-4 {
    grid-template-columns: 1fr 1fr;
  }
  .all-programs-grid.cols-3 {
    grid-template-columns: 1fr 1fr;
  }
  .programs-intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .programs-locations {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-with-video {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .two-sided-market {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 18px;
  }
  .two-sided-market > .market-side-funder:not(.market-side-loop),
  .two-sided-market > .market-side-platform,
  .two-sided-market > .market-side-loop {
    grid-column: 1;
    grid-row: auto;
  }
  .market-pair {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 18px;
  }
  .market-side {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 28px;
  }
  .picker-set {
    grid-template-columns: 1fr;
  }
  .prog-mini-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .step-detail {
    grid-template-columns: 1fr;
    padding: 32px 28px;
    gap: 24px;
  }
  .step-tabs {
    grid-template-columns: 1fr 1fr;
  }
  .step-tab {
    border-bottom: 1px solid var(--line);
  }
  /* Filter bars: stack label above pills on mobile */
  .filter-block {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
  }
  .filter-block:last-of-type {
    margin-bottom: 28px;
  }
  .filter-label {
    padding-top: 0;
  }
  .filter-pills .pill {
    min-height: 36px;
    padding: 7px 14px;
    font-size: 12px;
  }

  /* Insight rows: single column, meta compact on top */
  .insight-row {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 20px 0;
  }
  .insight-row .meta-side {
    grid-column: auto;
    grid-row: auto;
    border-right: none;
    border-top: none;
    padding-right: 0;
    padding-top: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 16px;
    row-gap: 2px;
    margin-bottom: 12px;
  }
  .insight-row .meta-row {
    margin-bottom: 0;
  }
  .insight-row .meta-side > b,
  .insight-row .meta-side > .src-name {
    display: none;
  }
  .insight-row .body {
    grid-column: auto;
    grid-row: auto;
    border-top: 1px solid var(--line);
    padding-top: 14px;
  }
  .insight-row .body h3 {
    font-size: 17px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-grid .gallery-tall {
    grid-row: span 1;
    height: 240px;
  }
  .hero-dark {
    padding: 56px 0 72px;
  }
}
@media (max-width: 600px) {
  .impact-grid,
  .prog-grid,
  .findings-grid,
  .all-programs-grid,
  .stories-grid,
  .role-cta-grid,
  .explore-grid {
    grid-template-columns: 1fr;
  }
  .all-programs-grid.cols-3 {
    grid-template-columns: 1fr;
  }
  .prog-mini-grid {
    grid-template-columns: 1fr 1fr;
  }
  .step-tabs {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  /* Field-story hero photo block: full-bleed on small mobile so the dark image isn't framed by 20px white gutters from .wrap padding. */
  a.photo-block,
  a.photo-block > div:first-child {
    border-radius: 0 !important;
  }
  a.photo-block {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
  }
}

/* ============================================================
   Dossier — interactive tabbed "Inside a Visit" layout used on
   the three program pages. Five tabs across the top, one large
   content panel beneath that swaps on click.
   ============================================================ */
.dossier {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.dossier-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--paper-warm);
}
.dossier-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 22px;
  border: none;
  background: none;
  border-right: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
  font-family: inherit;
  color: var(--ink-3);
}
.dossier-tab:last-child {
  border-right: none;
}
.dossier-tab:hover {
  background: rgba(231, 233, 251, 0.5);
}
.dossier-tab.active {
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--indigo);
}
.dossier-tab .dt-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--indigo-soft);
  color: var(--indigo);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dossier-tab .dt-icon svg {
  width: 20px;
  height: 20px;
}
.dossier-tab .dt-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--indigo);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.dossier-tab .dt-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.dossier-panel {
  padding: 44px 48px;
  display: none;
  gap: 48px;
  grid-template-columns: 1.1fr 1.4fr;
  align-items: start;
}
.dossier-panel.active {
  display: grid;
}
.dossier-panel .dp-left .dp-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mango);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
  display: block;
}
.dossier-panel h4 {
  font-size: 28px;
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
.dossier-panel h4 em {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}
.dossier-panel .dp-right p {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-3);
  line-height: 1.65;
}
.dossier-panel .dp-meta {
  margin-top: 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 22px;
  font-size: 13px;
}
.dossier-panel .dp-meta dt {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--indigo);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding-top: 2px;
}
.dossier-panel .dp-meta dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}
@media (max-width: 900px) {
  .dossier-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .dossier-tab {
    border-bottom: 1px solid var(--line);
  }
  .dossier-tab:nth-child(2n) {
    border-right: none;
  }
  .dossier-tab:nth-last-child(-n + 1) {
    border-bottom: none;
  }
  .dossier-panel {
    padding: 28px 24px;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .dossier-panel h4 {
    font-size: 22px;
  }
}

/* ── Programs page: geographic section black band (map + country invite) ──── */
.prog-geo-section {
  background: var(--ink);
  padding: var(--section-pad) 0;
}
.prog-geo-note {
  margin-top: 14px;
  font-size: 13px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
}
[data-page='/portfolio'].active {
  display: flex;
  flex-direction: column;
}
/* The hero sits in a bare top-level .wrap. Under the flex column above, its
   `margin: 0 auto` would shrink it to content width and center it. Force full
   width so the hero text sits flush-left like the other pages. */
[data-page='/portfolio'].active > .wrap {
  width: 100%;
}
[data-page='/portfolio'] > .prog-geo-section {
  order: 2;
}
[data-page='/portfolio'] > .closing-cta {
  order: 3;
}
/* Tighten the gap between the portfolio hero and the "Filter by Area"
   section to match the Platform page's compact hero-to-content rhythm.
   The tall constellation SVG leaves extra grid-centering slack below the
   heading, so we also trim the hero's bottom padding. Scoped to >=861px;
   the hero art is hidden on mobile, so the default spacing reads fine there. */
@media (min-width: 861px) {
  [data-page='/portfolio'] .hero {
    padding-bottom: 44px;
  }
  [data-page='/portfolio'] #prog-explore {
    padding-top: 60px;
  }
}
.prog-geo-section .eyebrow {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
}
.prog-geo-section .prog-geo-text h2 {
  color: #ffffff;
  font-weight: 400;
}
.prog-geo-section .prog-geo-text h2 em {
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: #ffffff;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}
.prog-geo-section .prog-geo-text .sub {
  color: #ffffff;
  font-weight: 400;
  line-height: 1.65;
}

/* ── Programs page: geographic split layout ─────────────────────── */
.prog-geo-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.prog-geo-text h2 {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 300;
  margin: 6px 0 0;
}
.prog-geo-text h2 em {
  font-style: italic;
  color: var(--indigo);
}
.prog-geo-text .sub {
  color: var(--ink-3);
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 300;
}
.prog-geo-map .where-map {
  max-width: 504px;
  margin: 0 auto;
}
/* Invite-only variant of the black band (map moved to the hero): single
   centered column with just the "ask us about a country" prompt. */
.prog-geo-invite {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
@media (max-width: 768px) {
  .prog-geo-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── Where We Work: interactive map ─────────────────────────── */
.where-map {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--line);
  background: #f8fafc;
  min-height: 200px;
}
.where-map svg {
  display: block;
  width: 100%;
  height: auto;
}
.where-map svg .hl {
  cursor: pointer;
  transition:
    opacity 220ms ease,
    fill 220ms ease;
}
.where-map svg .hl:hover {
  fill: var(--indigo-deep) !important;
  opacity: 1 !important;
}
.where-map.is-hovering svg .hl:not(:hover) {
  opacity: 0.32 !important;
}

/* Tooltip card */
.where-card {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px -8px rgba(10, 6, 32, 0.18);
  pointer-events: none;
  z-index: 10;
  min-width: 200px;
  max-width: 268px;
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}
.where-card.is-visible {
  opacity: 1;
  transform: none;
}
.where-card-head {
  padding: 11px 16px 10px;
  border-bottom: 1px solid var(--line);
}
.where-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.where-card-programs {
  list-style: none;
  margin: 0;
  padding: 9px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.where-card-programs li {
  font-size: 11.5px;
  color: var(--ink-3);
  padding-left: 13px;
  position: relative;
  line-height: 1.5;
}
.where-card-programs li::before {
  content: '·';
  position: absolute;
  left: 2px;
  color: var(--indigo);
  font-weight: 900;
  font-size: 18px;
  line-height: 11px;
}
.where-card-note {
  margin: -4px 16px 9px;
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}
.where-card-mou {
  margin: 0 12px 11px;
  padding: 5px 10px;
  background: var(--indigo-soft);
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 600;
  color: var(--indigo-deep);
  display: flex;
  align-items: center;
  gap: 5px;
}
.where-card-mou::before {
  content: '✓';
  font-size: 10px;
  opacity: 0.7;
}
.where-map-chip {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2, var(--ink));
  pointer-events: none;
  opacity: 0.85;
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.18);
  transition:
    opacity 200ms ease,
    transform 200ms ease,
    color 200ms ease;
  z-index: 2;
}
.where-map-chip-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.where-map-chip-sub {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink-4, #94a3b8);
  line-height: 1.3;
}
.where-map.is-hovering .where-map-chip {
  opacity: 0;
  transform: translateY(-3px);
}
.where-map-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--indigo);
}
.where-map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
@media (max-width: 768px) {
  .where-map-chip {
    top: 10px;
    left: 10px;
    padding: 6px 10px;
    font-size: 10px;
  }
}

/* Light indigo-soft section background (Program Area in Action) */
.section-indigo-soft {
  background: var(--indigo-soft);
}

/* Stats plain text rows (replaces chip/tag style for countries & funders) */
.stats-cool .hero-stats-plain {
  color: var(--on-dark-secondary);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}
.stats-cool .stats-plain-link {
  color: var(--indigo);
  text-decoration: none;
  font-weight: 500;
}
.stats-cool .stats-plain-link:hover {
  text-decoration: underline;
}

/* Service tabs — CHC "Inside a Campaign" — horizontal top tabs */
.service-tabs {
  margin-top: 40px;
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(56, 67, 208, 0.06);
}
.service-tab-nav {
  display: flex;
  background: var(--paper-warm);
  border-bottom: 1.5px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.service-tab-nav::-webkit-scrollbar {
  display: none;
}
.service-tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 12px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1.5px;
  cursor: pointer;
  font-family: inherit;
  color: var(--muted);
  white-space: nowrap;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
  min-width: 90px;
  gap: 5px;
}
.service-tab-btn:hover {
  color: var(--ink-2);
  background: var(--paper-cool);
}
.stab-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 700;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.6;
}
.stab-name {
  font-size: 13.5px;
  font-weight: 600;
  color: inherit;
  line-height: 1.25;
  white-space: normal;
}
.service-tab-btn.is-active {
  color: white;
  background: var(--indigo);
  border-bottom-color: transparent;
}
.service-tab-btn.is-active .stab-num {
  opacity: 0.7;
}
.service-tab-panels {
  padding: 44px 48px 48px;
  min-height: 240px;
}
.service-tab-panel {
  display: none;
}
.service-tab-panel.is-active {
  display: block;
}
@media (prefers-reduced-motion: no-preference) {
  .service-tab-panel.is-active {
    animation: stab-fade-in 0.25s ease both;
  }
  @keyframes stab-fade-in {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
.stab-content {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 32px;
  align-items: start;
  max-width: 820px;
}
.stab-icon {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: var(--indigo-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stab-icon svg {
  width: 30px;
  height: 30px;
  color: var(--indigo);
}
.stab-body .explore-tag {
  display: inline-block;
  margin-bottom: 10px;
}
.stab-body h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.2;
}
.stab-body p {
  font-size: 15.5px;
  color: var(--ink-3);
  line-height: 1.75;
  margin: 0 0 14px;
}
.stab-source {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.06em;
}
.stab-source:hover {
  color: var(--indigo);
}
@media (max-width: 600px) {
  .service-tab-btn {
    padding: 12px 10px 14px;
    min-width: 72px;
  }
  .stab-name {
    font-size: 12px;
  }
  .stab-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .stab-icon {
    width: 52px;
    height: 52px;
  }
  .stab-icon svg {
    width: 24px;
    height: 24px;
  }
}

/* Subtle closing CTA variant (individual program pages) */
.closing-cta-subtle .closing-inner {
  padding: 56px 32px;
}
.closing-cta-subtle h2 {
  font-size: var(--fs-h2);
  margin-bottom: 16px;
}
.closing-cta-subtle .lead {
  font-size: 15.5px;
  margin-bottom: 28px;
}
.closing-cta-subtle .eyebrow {
  margin-bottom: 16px;
}

/* ============================================================
   Frontline Stories section (How It Works page)
   ============================================================ */
.frontline-stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.story-card-location {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin: 0;
}
.story-card-link {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  background: #0c0b1a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.18s ease;
}
.story-card-link:hover {
  border-color: rgba(255, 255, 255, 0.18);
}
.story-card-photo {
  height: 200px;
  flex-shrink: 0;
}
.story-card-photo--video {
  position: relative;
}
.story-card-photo--video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}
.story-card-strip {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
.story-card-title {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
  margin: 0;
}
.story-card-cta {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-top: auto;
  display: block;
}
@media (max-width: 860px) {
  .frontline-stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .frontline-stories-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   The Why page (/our-story)
   ============================================================ */

/* Hero - centered, editorial */
.os-hero {
  padding: 100px 0 112px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.os-hero-inner {
  max-width: 740px;
  margin: 0 auto;
}
.os-hero h1 {
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 200;
  margin: 0 auto;
}
.os-hero .lede {
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
}

/* Stats strip */
.os-stats-strip {
  background: var(--paper-cool);
  border-bottom: 1px solid var(--line);
  padding: 60px 0;
}
.os-stats-row {
  display: flex;
  align-items: flex-start;
}
.os-stat-item {
  flex: 1;
  padding: 0 40px;
}
.os-stat-item:first-child {
  padding-left: 0;
}
.os-stat-item:last-child {
  padding-right: 0;
}
.os-stats-sep {
  width: 1px;
  background: var(--line);
  align-self: stretch;
  min-height: 80px;
  flex-shrink: 0;
}
.os-stat-num {
  font-size: 52px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.os-stat-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.os-stat-src {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
a.os-stat-src {
  text-decoration: underline;
  text-underline-offset: 2px;
}
a.os-stat-src:hover {
  color: var(--indigo);
}
.os-svg-source {
  display: block;
  margin-top: 12px;
  text-align: center;
}

/* Centered narrative column */
.os-col {
  max-width: 700px;
  margin: 0 auto;
}

.os-prose {
  margin-top: 36px;
}
.os-prose p {
  font-size: 17px;
  color: var(--ink-3);
  line-height: 1.78;
  margin: 0 0 1.4em;
}
.os-prose p:last-child {
  margin-bottom: 0;
}

.os-answer {
  font-size: 21px;
  line-height: 1.68;
  color: var(--ink);
  font-weight: 300;
  margin: 0 0 40px;
}

/* Belief break */
.os-belief {
  background: #edeef9;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 80px 0;
}
.os-belief-inner {
  display: flex;
  align-items: center;
  gap: 64px;
}
.os-belief-text {
  flex: 1 1 0;
}
.os-belief-quote {
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 200;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.os-belief-sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-3);
  max-width: 44ch;
  margin: 0;
}
.os-belief-visual {
  flex: 0 0 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.os-belief-visual img {
  width: 100%;
  max-width: 280px;
  height: auto;
  mix-blend-mode: multiply;
}

/* Compact Steele investment block */
.os-invest-compact {
  background: var(--paper-cool);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.os-invest-compact-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.os-invest-compact-amount {
  font-size: 26px;
  font-weight: 700;
  color: var(--indigo);
  letter-spacing: -0.03em;
  line-height: 1;
}
.os-invest-compact-meta {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.os-invest-compact > p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-3);
  margin: 0 0 12px;
}
.os-invest-compact-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.os-invest-compact-link:hover {
  color: var(--indigo-deep);
}

/* Resources grid */
.os-resources-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
}

@media (max-width: 900px) {
  .os-belief-inner {
    flex-direction: column-reverse;
    gap: 40px;
  }
  .os-belief-visual {
    flex: 0 0 auto;
  }
  .os-stats-row {
    flex-direction: column;
    gap: 36px;
  }
  .os-stat-item {
    padding: 0;
  }
  .os-stats-sep {
    width: 40px;
    height: 1px;
    min-height: unset;
  }
}
@media (max-width: 600px) {
  .os-resources-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Origins page: additional element styles ---- */

/* "Not a lack of funding / workers / infrastructure" */
.os-three-lines {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
}
.os-three-line {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 300;
  line-height: 1.45;
  padding: 10px 0;
  letter-spacing: -0.01em;
}
.os-line-muted {
  color: var(--ink-3);
}
.os-line-accent {
  color: var(--ink);
  font-weight: 500;
}

/* Questions list in THE CHALLENGE */
.os-questions {
  list-style: disc;
  padding: 0 0 0 20px;
  margin: 20px 0 24px;
}
.os-questions li {
  font-size: 16px;
  color: var(--ink-3);
  line-height: 1.7;
  padding: 3px 0;
}

/* "Not verified delivery." punch line */
.os-not-delivery {
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 0;
  letter-spacing: -0.02em;
}

/* Check list — THE INSIGHT */
.os-check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.os-check-list li {
  font-size: 19px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.5;
  padding: 9px 0 9px 28px;
  position: relative;
}
.os-check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 17px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--indigo);
}

/* Numbered steps — CONNECT */
.os-how-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  counter-reset: how-step;
}
.os-how-list li {
  font-size: 16px;
  color: var(--ink-3);
  line-height: 1.65;
  padding: 12px 0 12px 44px;
  border-top: 1px solid var(--line);
  position: relative;
  counter-increment: how-step;
}
.os-how-list li:first-child {
  border-top: none;
}
.os-how-list li::before {
  content: counter(how-step);
  position: absolute;
  left: 0;
  top: 11px;
  width: 24px;
  height: 24px;
  background: var(--indigo-soft);
  color: var(--indigo);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 24px;
}

/* "Built around accountability." sign-off line */
.os-built-accent {
  font-size: 17px;
  font-weight: 600;
  font-style: italic;
  color: var(--indigo);
  margin: 4px 0 0;
}

/* Closing paragraph in BUILT TO SCALE */
.os-scale-close {
  margin-top: 28px;
}

/* ---- The Why: dark editorial hero ---- */
.os-hero-dark {
  background: linear-gradient(
    180deg,
    #000000 0%,
    #050310 86%,
    #0e0930 94%,
    #131630 100%
  );
  padding: 120px 0 100px;
  text-align: center;
}
.os-hero-dark .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.os-hero-dark h1 {
  font-size: var(--fs-hero);
  font-weight: 200;
  color: #fff;
  line-height: 1.13;
  letter-spacing: -0.03em;
  margin: 18px auto 28px;
  max-width: 860px;
}
.os-hero-dark h1 em {
  font-style: italic;
  color: #a5b4fc;
}
.os-hero-dark .lede {
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--fs-lede);
  line-height: 1.72;
  max-width: 52ch;
  margin: 0 auto;
}

/* ---- Tinted section background (Insight) ---- */
.os-tinted-section {
  background: #edeef9;
}

/* ---- Two-column split layout ---- */
.os-split {
  display: flex;
  align-items: center;
  gap: 72px;
}
.os-split-reverse {
  flex-direction: row-reverse;
}
.os-split-text {
  flex: 1 1 0;
  min-width: 0;
}
.os-split-visual {
  flex: 0 0 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.os-chart-figure {
  margin: 0;
  width: 100%;
}
.os-chart-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}
.os-chart-figure figcaption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}
.os-illo-img {
  width: 100%;
  max-width: 340px;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  margin: 0 auto;
}

/* ---- Compare section divider ---- */
.os-compare-section {
  border-top: 1px solid var(--line);
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .os-split,
  .os-split-reverse {
    flex-direction: column;
    gap: 44px;
  }
  .os-split-visual {
    flex: 0 0 auto;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }
  .os-hero-dark {
    padding: 80px 0 72px;
  }
}

abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

/* ========================================
   THE WHY v2: Story header (white, centered)
   ======================================== */
.os-story-header {
  background: #ffffff;
  padding: 100px 0 80px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.os-story-header .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.os-story-header h1 {
  font-size: var(--fs-hero);
  font-weight: 200;
  color: var(--ink);
  line-height: 1.13;
  letter-spacing: -0.03em;
  margin: 18px auto 28px;
  max-width: 840px;
}
.os-story-header h1 em {
  font-style: italic;
  color: var(--indigo);
  background: none;
  -webkit-text-fill-color: var(--indigo);
}
.os-story-header .lede {
  color: var(--ink-3);
  font-size: var(--fs-lede);
  line-height: 1.72;
  max-width: 52ch;
  margin: 0 auto;
}

/* Centered section variant */
.os-section-centered .os-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.os-section-centered h2,
.os-section-centered .os-prose,
.os-section-centered .os-not-delivery {
  text-align: center;
}

/* Challenge split: text left, graphic right */
.os-challenge-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.os-challenge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.os-challenge-text .eyebrow {
  justify-content: flex-start;
}
.os-challenge-text h2 {
  text-align: left;
}
.os-challenge-text .os-prose,
.os-challenge-text .os-not-delivery {
  text-align: left;
}
.os-challenge-lead {
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 20px;
}
.os-challenge-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* SVG illustration wrapper */
.os-challenge-svg-wrap {
  margin: 44px auto;
  max-width: 520px;
  width: 100%;
}
.os-challenge-text .os-challenge-svg-wrap {
  display: none; /* hidden when inside the text col — moved to visual col */
}
.os-challenge-visual .os-challenge-svg-wrap {
  margin: 0;
  max-width: 100%;
}

/* Compact stat cards for the frontline challenge column */
.os-stat-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.os-stat-card {
  background: #fff;
  border: 1.5px solid #d0d3e8;
  border-radius: 10px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  row-gap: 3px;
  align-items: center;
}
.os-stat-card .os-stat-num {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  min-width: 72px;
  font-size: 38px;
  margin-bottom: 0;
}
.os-stat-card .os-stat-desc {
  grid-column: 2;
  align-self: end;
  font-size: 15px;
  margin-bottom: 0;
  line-height: 1.45;
}
.os-stat-card .os-stat-src {
  grid-column: 2;
  align-self: start;
  font-size: 10px;
}

/* Stacked stats (vertical) for right-column use */
.os-stats-stack {
  flex-direction: column;
  gap: 28px;
}
.os-stats-stack .os-stat-item {
  padding: 0;
}
.os-stats-stack .os-stats-sep {
  width: 100%;
  height: 1px;
  min-height: 0;
  align-self: auto;
  flex-shrink: 0;
}

.os-challenge-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Funder questions card — right column of THE FUNDER CHALLENGE */
.os-funder-questions {
  background: var(--indigo-soft, #edeef9);
  border: 1.5px solid #c9cce0;
  border-radius: 12px;
  padding: 28px 32px;
  width: 100%;
}
.os-fq-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo, #4f46e5);
  font-family: var(--mono);
  margin: 0 0 16px;
}
.os-fq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.os-fq-list li {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink, #1a1d2e);
  line-height: 1.6;
  padding: 12px 0 12px 24px;
  border-bottom: 1px solid #c9cce0;
  position: relative;
}
.os-fq-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.os-fq-list li::before {
  content: '?';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--indigo, #4f46e5);
}
.os-fq-area {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 3px;
  opacity: 0.75;
}

@media (max-width: 768px) {
  .os-challenge-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .os-challenge-visual {
    order: -1;
  }
}

/* Accountability reveal beat */
.os-accountability-reveal {
  background: var(--ink);
  padding: 88px 24px;
  text-align: center;
}
.os-accountability-reveal .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.os-reveal-line {
  font-size: clamp(24px, 3.4vw, 44px);
  font-weight: 200;
  color: #ffffff;
  line-height: 1.28;
  letter-spacing: -0.025em;
  max-width: 580px;
  margin: 0 auto 6px;
}
.os-reveal-line em {
  font-style: italic;
  color: #a5b4fc;
}

/* Origin story section (The Why page) */
.os-origin {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
}
.os-origin h2 {
  font-size: var(--fs-h2);
  font-weight: 300;
  color: #ffffff;
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin: 6px 0 0;
}
.os-origin h2 em {
  font-style: italic;
  background: var(--grad-text-on-dark);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.os-origin .os-prose p {
  color: var(--on-dark-secondary);
}
.os-origin .os-prose a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}
.os-origin .os-prose a:hover {
  text-decoration-color: #fff;
}
.os-podcast-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.os-podcast-card img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
}
.os-podcast-card .os-article-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.os-podcast-card .os-article-source {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-secondary);
}
.os-podcast-card .os-article-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  font-style: italic;
  color: #ffffff;
}

/* Marketplace preview (The Why page) */
.os-market-preview {
  display: grid;
  grid-template-columns: 1fr 160px 1fr;
  column-gap: 20px;
  align-items: center;
  max-width: 880px;
  margin: 52px auto 0;
}
.os-market-preview-side {
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: left;
  align-self: stretch;
  box-sizing: border-box;
}
.os-market-preview-funder {
  background: var(--indigo-soft);
  border-color: rgba(56, 67, 208, 0.15);
}
/* Frontline side: green band to mirror the purple Funders side */
.os-market-preview-platform {
  background: rgba(13, 168, 157, 0.07);
  border-color: rgba(13, 168, 157, 0.2);
}

/* ── The Solution diagram: photo-topped marketplace cards ──
   Scoped to the --photos variant so the home-page diagram (which keeps its
   flanking images) is unaffected. The two photos that used to flank the
   diagram now sit inside their respective boxes. */
.os-market-preview--photos {
  align-items: stretch;
  /* Full wrap width (no 880px cap). The centre column is pinned to a fixed
     width so the two boxes never shift when the Connect logo is resized; the
     enlarged logo overflows symmetrically into the 24px gaps without touching
     the cards. */
  grid-template-columns: 1fr 140px 1fr;
  column-gap: 24px;
  max-width: none;
}
.os-market-preview--photos .os-market-preview-conn {
  /* Stretch to the full height of the boxes so the flow connector can sit at
     their bottom edge while the logo stays centred. */
  align-self: stretch;
  justify-content: flex-start;
  padding: 0;
}
/* The logo + framing arrows take the centred space; the flow connector below
   is pushed to the bottom of the column (= bottom of the boxes). */
.os-market-conn-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 38px;
}
.os-market-preview--photos .os-market-preview-logo {
  width: 168px;
}
.os-market-preview--photos .os-market-preview-side {
  overflow: hidden;
}
/* At the top of each card, the illustration sits to the LEFT of the heading. */
.os-market-card-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.os-market-card-head h3 {
  flex: 1;
  min-width: 0;
}
.os-market-side-img {
  /* These marketplace illustrations are transparent PNGs and aren't
     banner-shaped, so `contain` (not `cover`) shows each one in full; the
     card tint shows through the transparent area around it. */
  display: block;
  width: 124px;
  height: 124px;
  margin: 0;
  flex-shrink: 0;
  object-fit: contain;
}

/* ── "Everyone sees results" flow connector ──
   Sits inside the centre connector column, directly below the Connect logo:
   plain black label with a line + arrowhead reaching out to each side, showing
   that results flow to both Funders and the frontline. No button/pill shape. */
.os-market-conn-flow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
}
.os-market-conn-flow .ocf-line {
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  flex-shrink: 0;
}
.os-market-conn-flow .ocf-head {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  flex-shrink: 0;
}
/* Arrowheads point outward, toward each box. */
.os-market-conn-flow .ocf-head--left {
  border-right: 7px solid var(--ink);
}
.os-market-conn-flow .ocf-head--right {
  border-left: 7px solid var(--ink);
}
.os-market-conn-flow .ocf-label {
  flex-shrink: 0;
  /* Sized so the label breaks naturally as "Everyone sees" / "verified services delivered". */
  max-width: 104px;
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.2;
  color: var(--ink);
  text-align: center;
  white-space: normal;
}

/* ── The Opportunity challenge bands ──
   Section colors are role-coded: the Funder Challenge is purple, the Frontline
   Challenge is green. Each band stays in its own color family — no cross-tinting. */
.os-challenge-band--green {
  background: rgba(13, 168, 157, 0.07);
}
.os-challenge-band--purple {
  background: rgba(93, 112, 210, 0.07);
}
/* Funder questions card floats white on the purple band */
.os-challenge-band--purple .os-funder-questions {
  background: #fff;
  border-color: rgba(93, 112, 210, 0.28);
}
/* Frontline stat boxes (10c / 6M / 55%) float white on the green band */
.os-challenge-band--green .os-stat-card {
  background: #fff;
  border-color: rgba(13, 168, 157, 0.28);
}
/* Frontline (green) band: keep the eyebrow, heading accent, and link hovers
   green so no purple leaks into the green section. */
.os-challenge-band--green .eyebrow {
  color: var(--teal-deep);
}
.os-challenge-band--green .eyebrow::before {
  background: var(--teal-deep);
}
.os-challenge-band--green .os-challenge-text h2 em {
  background: linear-gradient(90deg, var(--teal-deep) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.os-challenge-band--green a.os-stat-src:hover {
  color: var(--teal-deep);
}

/* ── The Opportunity: merged problem section (two failures, one row of stats) ── */
/* .section.os-problem-band (not just .os-problem-band) so the hairline color
   beats the later `.section { border-top-color: var(--rule) }` rule. */
.section.os-problem-band {
  /* Opens the page: the intro (eyebrow + heading + sub) reads as a calm band
     before the stat cards. Top padding matches the other pages' hero
     (64px) so "THE PROBLEM" sits at the same height as e.g. "Connect
     Portfolio". Hairline + gradient still separate it from the same-ink
     sticky nav, settling into --ink as the cards begin. */
  padding-top: 64px;
  background: linear-gradient(180deg, #16123c 0, var(--ink) 460px);
  color: #fff;
  border-top: 1px solid rgba(142, 161, 255, 0.2);
}
.os-problem-split {
  margin-top: clamp(36px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
}
.os-problem-col {
  background: var(--indigo-soft);
  border: 1.5px solid rgba(56, 67, 208, 0.18);
  border-radius: 16px;
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
}
/* Keep the pill at its natural width instead of stretching across the column. */
.os-problem-col > .mf-badge {
  align-self: flex-start;
}
.os-problem-col--frontline {
  background: rgba(13, 168, 157, 0.08);
  border-color: rgba(13, 168, 157, 0.22);
}
.os-problem-col h3 {
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 16px;
  /* Reserve two lines so both headings end at the same height and the
     paragraphs below them start on the same baseline across both boxes. */
  min-height: 2.4em;
}
.os-problem-col--frontline h3 em {
  background: linear-gradient(90deg, var(--teal-deep) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.os-problem-col p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-3);
  font-weight: 400;
  /* Minimum breathing room above the stats divider; auto margin below adds
     the rest so the two boxes' dividers and stats bottom-align. */
  margin: 0 0 26px;
}
/* Stats embedded directly inside each problem box. margin-top: auto pins the
   block to the bottom of the (equal-height) box so the divider lines and the
   stat numbers line up across both columns regardless of paragraph length. */
.os-problem-col-stats {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgba(56, 67, 208, 0.16);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.os-problem-col--frontline .os-problem-col-stats {
  border-top-color: rgba(13, 168, 157, 0.22);
}
.os-problem-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 18px;
}
.os-problem-stat .os-stat-num {
  font-size: 40px;
  font-weight: 700;
  margin: 0;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.os-problem-col--funder .os-problem-stat .os-stat-num {
  color: #4050a8;
}
.os-problem-col--frontline .os-problem-stat .os-stat-num {
  color: var(--teal-deep);
}
.os-problem-stat .os-stat-qual {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 8px;
  vertical-align: middle;
}
.os-problem-stat .os-stat-unit {
  font-size: 0.46em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.os-problem-stat .os-stat-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.os-problem-stat .os-stat-desc {
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
  color: var(--ink-3);
}
.os-problem-stat .os-stat-src {
  margin: 0;
}
/* Fissure between the two problem boxes: a jagged crack interrupted by a
   broken-link chip, making the "never connected" gap visible between them. */
.os-problem-fissure {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
}
.os-fissure-svg {
  width: 46px;
  height: 280px;
  display: block;
}
.os-fissure-crack {
  stroke: var(--rule);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.os-fissure-chip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 1.5px solid #e7c3c0;
  color: #b91c1c;
  box-shadow: 0 2px 10px rgba(10, 6, 32, 0.07);
}
.os-fissure-chip svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 768px) {
  .os-problem-split {
    grid-template-columns: 1fr;
  }
  .os-problem-fissure {
    width: 100%;
    height: 54px;
  }
  .os-fissure-svg {
    display: none;
  }
}

/* ── THE PROBLEM band: dark treatment ── */
.os-problem-band .eyebrow {
  color: var(--on-dark-muted);
}
.os-problem-band .eyebrow::before {
  background: rgba(142, 161, 255, 0.5);
}
.os-problem-band .sec-head h2,
.os-problem-band .sec-head h1 {
  color: #fff;
}
.os-problem-band .sec-head h2 em,
.os-problem-band .sec-head h1 em {
  background: var(--grad-text-on-dark);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.os-problem-band .sec-head .sub {
  color: var(--on-dark-secondary);
}

/* The Opportunity intro: a full left-aligned hero on the purple band rather
   than a centered section head. Overrides the site-wide `.sec-head` centering
   (the extra .page in the selector clears that rule's specificity) and scales
   the headline up to hero size to match the other pages' page-opening heroes. */
.page .os-problem-band .sec-head.os-problem-head {
  justify-content: flex-start;
  text-align: left;
}
.page .os-problem-band .sec-head.os-problem-head .label-group {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}
.page .os-problem-band .sec-head.os-problem-head h1 {
  font-size: var(--fs-hero);
  font-weight: 200;
  line-height: 1.05;
  max-width: 34ch;
  margin-top: 16px;
}
/* Keep the supporting line readable even though the headline now runs wide. */
.page .os-problem-band .sec-head.os-problem-head .sub {
  max-width: 60ch;
}

/* Light cards on the dark band: the two problem boxes mirror the Solution
   section's marketplace cards (indigo-soft funder + faint-mint frontline), so
   their inner text/stats/badges use the light-context colours. */
.os-problem-band .os-problem-col--funder {
  background: var(--indigo-soft);
  border-color: rgba(56, 67, 208, 0.15);
}
.os-problem-band .os-problem-col--frontline {
  /* Opaque light mint so this reads as a light card on the dark band (mirroring
     the opaque indigo-soft funder card). The value matches the composited light
     green of the Solution section's frontline card below. A translucent fill
     here rendered murky-dark over the band and clashed with the dark heading. */
  background: #e9f5f8;
  border-color: #cbeaeb;
}
.os-problem-band .os-problem-col h3 {
  color: var(--ink);
}
.os-problem-band .os-problem-col--frontline h3 em {
  background: linear-gradient(90deg, var(--teal-deep) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.os-problem-band .os-problem-col p {
  color: var(--ink-3);
}
.os-problem-band .os-problem-col-stats {
  border-top-color: rgba(56, 67, 208, 0.16);
}
.os-problem-band .os-problem-col--frontline .os-problem-col-stats {
  border-top-color: rgba(13, 168, 157, 0.22);
}
.os-problem-band .os-problem-col--funder .os-problem-stat .os-stat-num {
  color: #4050a8;
}
.os-problem-band .os-problem-col--frontline .os-problem-stat .os-stat-num {
  color: var(--teal-deep);
}
.os-problem-band .os-problem-stat .os-stat-qual {
  color: var(--muted);
}
.os-problem-band .os-problem-stat .os-stat-desc {
  color: var(--ink-3);
}
.os-problem-band .os-stat-src {
  color: var(--muted);
}
.os-problem-band a.os-stat-src:hover {
  color: var(--indigo);
}

.os-problem-band .mf-badge--funders {
  background: rgba(93, 112, 210, 0.1);
  color: #4050a8;
  border-color: rgba(93, 112, 210, 0.2);
}
.os-problem-band .mf-badge--workers {
  background: rgba(13, 168, 157, 0.1);
  color: var(--teal-deep);
  border-color: rgba(13, 168, 157, 0.22);
}

.os-problem-band .os-fissure-crack {
  stroke: #fff;
}
.os-problem-band .os-fissure-chip {
  background: #fff;
  border-color: rgba(239, 68, 68, 0.55);
  color: #ff6b6b;
  box-shadow: none;
}

/* ======================================================
   Product Updates / Changelog page
   ====================================================== */

.cl-version {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--indigo);
  background: var(--indigo-soft);
  border-radius: 100px;
  padding: 3px 10px;
  align-self: flex-start;
}

.cl-version:empty {
  display: none;
}

.cl-date {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cl-footer-note {
  text-align: center;
  padding: 36px 0 80px;
  font-size: 15px;
  color: var(--ink-3);
}

.cl-footer-note a {
  color: var(--indigo);
  text-decoration: none;
  font-weight: 500;
}

.cl-footer-note a:hover {
  text-decoration: underline;
}

/* Tab layout ------------------------------------------ */
.cl-layout {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  margin-bottom: 64px;
  align-items: start;
}

.cl-sidebar {
  padding: 24px 16px 24px 0;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid var(--line);
}

.cl-tab {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 12px;
  background: none;
  border: none;
  border-radius: 8px;
  border-left: 3px solid transparent;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.cl-tab:hover {
  background: var(--paper-warm);
  border-left-color: var(--line);
}

.cl-tab.active {
  background: var(--indigo-soft);
  border-left-color: var(--indigo);
}

.cl-tab .cl-version {
  background: none;
  padding: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.cl-tab.active .cl-version {
  color: var(--indigo);
}

.cl-tab .cl-date {
  font-size: 10px;
  color: var(--muted);
}

.cl-content {
  border-left: none;
  padding: 0 0 0 36px;
}

.cl-panel {
  display: none;
  padding: 32px 0;
}

.cl-panel.active {
  display: block;
}

/* Tighten up Confluence-exported content */
.cl-panel h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--ink);
  line-height: 1.3;
}

.cl-panel h2:first-child {
  margin-top: 0;
}

.cl-panel h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--ink);
}

.cl-panel h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 14px 0 6px;
  color: var(--ink);
}

.cl-panel p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-3);
  margin: 0 0 10px;
}

.cl-panel p:empty,
.cl-panel p:last-child {
  margin-bottom: 0;
}

.cl-panel ul,
.cl-panel ol {
  padding-left: 20px;
  margin: 6px 0 12px;
}

.cl-panel li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-3);
  margin-bottom: 4px;
}

.cl-panel a {
  color: var(--indigo);
  text-decoration: none;
}

.cl-panel a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .cl-layout {
    grid-template-columns: 1fr;
  }

  .cl-sidebar {
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 16px 0 12px;
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
  }

  .cl-tab {
    flex-shrink: 0;
    border-left: none;
    border-bottom: 3px solid transparent;
    border-radius: 8px 8px 0 0;
    padding: 8px 12px;
  }

  .cl-tab.active {
    border-left: none;
    border-bottom-color: var(--indigo);
    background: var(--indigo-soft);
  }

  .cl-tab:hover {
    border-left: none;
  }

  .cl-content {
    padding: 0;
  }
}

/* ====================================================== */

.os-market-preview-side .role-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 3px 10px;
  margin-bottom: 12px;
  background: var(--indigo);
  color: #fff;
}
.os-market-preview-platform .role-tag {
  background: var(--ink-2);
}
.os-market-preview-side h3 {
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 400;
  margin: 0;
  line-height: 1.35;
  color: var(--ink);
}
.os-market-preview-side h3 em {
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
  /* The global `h3 em` rule clips a gradient to the text
     (`background-clip: text` + transparent text-fill). On these italic
     ems that clips the slanted glyph edges/descenders, so reset to a
     solid fill. */
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: var(--ink);
}
.os-market-preview-platform h3 em {
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}
.os-market-preview-items {
  list-style: none;
  padding: 0;
  margin: 0;
}
.os-market-preview-items li {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.6;
  padding: 11px 0 11px 22px;
  position: relative;
  border-top: 1px solid var(--line);
}
.os-market-preview-items li:first-child {
  border-top: none;
}
.os-market-preview-items li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--indigo);
}
/* Divider lines + bullet dots themed to each card, so they read clearly on
   the tinted backgrounds (indigo on the Funders card, teal on the green
   Frontline card). */
.os-market-preview-funder .os-market-preview-items li {
  border-top-color: rgba(56, 67, 208, 0.2);
}
.os-market-preview-platform .os-market-preview-items li {
  border-top-color: rgba(13, 168, 157, 0.28);
}
.os-market-preview-platform .os-market-preview-items li::before {
  background: var(--teal);
}
.os-market-preview-conn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}
/* Connector lines framing the Connect logo: a horizontal double-headed arrow
   above the wordmark and another below it, each reaching out toward the two
   boxes to show the Funders and Frontline sides are connected through Connect. */
.os-market-conn-arrow {
  position: relative;
  width: 150px;
  height: 2px;
  background: var(--indigo);
  flex-shrink: 0;
}
.os-market-conn-arrow::before,
.os-market-conn-arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
/* Left head points at the Funders box, right head at the Frontline box. */
.os-market-conn-arrow::before {
  left: -1px;
  border-right: 8px solid var(--indigo);
}
.os-market-conn-arrow::after {
  right: -1px;
  border-left: 8px solid var(--indigo);
}
/* The lower line is identical to the upper one (no vertical gradient). */
.os-market-conn-arrow-up {
  background: var(--indigo);
}
.os-market-preview-logo {
  width: 161px; /* 30% larger than the original 124px */
  height: auto;
  display: block;
  color: var(--indigo); /* Connect brand indigo (the logo's original color) */
}

@media (max-width: 800px) {
  .os-market-preview {
    grid-template-columns: 1fr;
    max-width: 420px;
    gap: 16px;
    margin: 40px auto 0;
  }
  /* Keep the centre column a vertical strip on mobile so the connector arrows,
     Connect logo, and the verified-results pill stack cleanly between the two
     stacked boxes. */
  .os-market-preview-conn {
    flex-direction: column;
    justify-content: center;
  }
  /* Stacked boxes → the connector arrows run vertically, pointing up at the
     box above and down at the box below (the horizontal desktop arrows would
     point sideways into empty space here). */
  .os-market-conn-arrow {
    width: 2px;
    height: 40px;
  }
  .os-market-conn-arrow::before {
    left: 50%;
    right: auto;
    top: -1px;
    transform: translate(-50%, 0);
    border: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 8px solid var(--indigo);
  }
  .os-market-conn-arrow::after {
    left: 50%;
    right: auto;
    top: auto;
    bottom: -1px;
    transform: translate(-50%, 0);
    border: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid var(--indigo);
  }
  .os-story-header {
    padding: 72px 0 56px;
  }
  .os-accountability-reveal {
    padding: 64px 24px;
  }
}

/* ─── Challenge sections: editorial photo treatment ─── */
.os-funder-visual-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.os-chal-photo-wrap {
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
}
.os-chal-photo-wrap img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.os-chal-photo-wrap--wide img {
  aspect-ratio: 16/9;
}
.os-chal-stats-below {
  display: flex;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.os-chal-stat-mini {
  flex: 1;
  padding: 16px 16px 0;
  border-left: 1px solid var(--line);
}
.os-chal-stat-mini:first-child {
  border-left: none;
  padding-left: 0;
}
.os-chal-stat-mini .os-stat-num {
  font-size: clamp(26px, 2.8vw, 36px);
  margin-bottom: 4px;
}

/* ─── Funder Challenge: Funding Chain Diagram ─── */
.os-fc-diagram {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--line, #e2e4ed);
  margin-bottom: 20px;
}
.os-fc-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  background: #fff;
  border-bottom: 1px solid var(--line, #e2e4ed);
  gap: 10px;
}
.os-fc-node:last-child {
  border-bottom: none;
}
.os-fc-node--funder {
  background: var(--indigo, #4f46e5);
}
.os-fc-node--community {
  background: #fff7f5;
}
.os-fc-role {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.os-fc-node--funder .os-fc-role {
  color: rgba(255, 255, 255, 0.85);
}
.os-fc-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.os-fc-badge--confirmed {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.95);
}
.os-fc-badge--reported {
  background: var(--indigo-soft, #edeef9);
  color: var(--indigo, #4f46e5);
}
.os-fc-badge--unknown {
  background: #fee2e2;
  color: #b91c1c;
}

/* ─── Frontline Challenge: photo caption ─── */
.os-chal-photo-caption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
  width: 100%;
}

/* ─── Connect Model: card hover lift ─── */
.os-market-preview-side {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}
.os-market-preview-side:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.13);
}

/* ─── Marketplace cards: bullet details always shown inline inside each card
   (funder = purple, frontline = green). No hover-popover; the list lives in
   the box itself so the text stays visible. ─── */

/* Shared CTA button group (used in closing-cta on multiple pages) */
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Video embed centering wrapper */
.video-center {
  max-width: 640px;
  margin: 0 auto;
}

/* ─── Marketplace: flanking images layout ─── */
.os-market-flanked {
  display: flex;
  align-items: stretch;
  gap: 24px;
  margin-top: 32px;
}
.os-market-flank-img {
  width: 141px;
  height: auto;
  flex-shrink: 0;
  border-radius: 8px;
  opacity: 0.88;
  align-self: center;
}
/* Funder-side illustration is near-square; match its height to the taller
   portrait frontline-worker image, letting width follow so it isn't cropped. */
.os-market-flanked > .os-market-flank-img:first-child {
  width: auto;
  height: 183px;
}
@media (max-width: 1200px) {
  .os-market-flank-img {
    display: none;
  }
}

/* Quiet founding/provenance note under the "Connect closes the gap" diagram */
.os-founding-note {
  max-width: 64ch;
  margin: 0 auto;
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 300;
}
.os-founding-note a {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(56, 67, 208, 0.35);
}
.os-founding-note a:hover {
  text-decoration-color: var(--indigo);
}

/* ─── Dark section: ensure h2 non-em text is white + em uses on-dark gradient ─── */
.section.dark h2 {
  color: #fff;
}
.section.dark h2 em {
  background: var(--grad-text-on-dark);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* ─── Founding note on dark background ─── */
.section.dark .os-founding-note {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.62);
}
.section.dark .os-founding-note a {
  color: rgba(142, 161, 255, 0.95);
  text-decoration-color: rgba(142, 161, 255, 0.45);
}
.section.dark .os-founding-note a:hover {
  text-decoration-color: rgba(142, 161, 255, 0.95);
}

/* ═══════════════════════════════════════════════════════════════
   DESIGN POLISH
   Visual depth, shadow hierarchy, border clarity.
   No copy or layout changes.
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Resting card shadows ────────────────────────────────── */
/* Cards that had no shadow at rest now lift slightly off the
   background, making the grid read as a collection of objects. */
.finding,
.prog-card,
.explore-card,
.story-card {
  box-shadow: 0 2px 10px rgba(20, 16, 58, 0.07);
}
/* Structural panels (two-sided market sides, holistic diagram,
   cycle tabs) get a matching lift + stronger border.             */
.market-side {
  border-color: var(--rule);
  box-shadow: 0 2px 14px rgba(20, 16, 58, 0.08);
}
.holistic-visual {
  border-color: var(--rule);
  box-shadow: 0 2px 12px rgba(20, 16, 58, 0.07);
}
.cycle-panel-combined {
  border-color: var(--rule);
  box-shadow: 0 2px 14px rgba(20, 16, 58, 0.07);
}

/* ── 2. Stronger hover shadows ──────────────────────────────── */
.finding:hover {
  box-shadow: 0 14px 36px rgba(56, 67, 208, 0.14);
}
.prog-card:hover {
  box-shadow: 0 14px 36px rgba(56, 67, 208, 0.13);
}
a.explore-card:hover {
  box-shadow: 0 18px 44px rgba(56, 67, 208, 0.14);
}

/* ── 3. Solid card footers (replace dashed) ─────────────────── */
/* Dashed separator lines inside cards read as incomplete.
   Solid --rule (#c9cce0) gives the same structure, more cleanly. */
.finding .more,
.prog-card .meta,
.explore-card .explore-link,
.step-insight-card .src {
  border-top: 1px solid var(--rule);
}
.role-card li {
  border-bottom: 1px solid var(--rule);
}

/* ── 4. Market diagram polish ───────────────────────────────── */
/* Loop-back arrow: dashed → subdued solid; feels intentional. */
.market-loop-arrow {
  border: 1.5px solid rgba(56, 67, 208, 0.3);
  border-top: none;
}
/* Side CTA underlines: dashed → solid for crisp text links.   */
.market-side-cta {
  border-bottom: 1px solid currentColor;
}

/* ── 5. Section dividers ────────────────────────────────────── */
/* Bump .section border-top from --line (#e6e7f0) to
   --rule (#c9cce0) for clearer page rhythm.                     */
.section {
  border-top-color: var(--rule);
}

/* ── 6. Impact & compare grids ──────────────────────────────── */
/* Strengthen internal grid lines from --line to --rule.         */
.impact-grid,
.impact-section-block {
  border-color: var(--rule);
}
.impact-tile {
  border-right-color: var(--rule);
  border-bottom-color: var(--rule);
}
.impact-section-block .imp-row + .imp-row {
  border-top-color: var(--rule);
}
.impact-section-block .imp-tile {
  border-right-color: var(--rule);
}
.impact-section-block .imp-label {
  border-right-color: var(--rule);
}
.compare-table {
  border-color: var(--rule);
  box-shadow: 0 8px 32px -8px rgba(20, 16, 58, 0.12);
}

/* ── 7. Stats-teal: Scale / Impact row divider ──────────────── */
/* No visual break existed between the two stat rows.            */
.stats-teal .hero-stats-row + .hero-stats-row {
  border-top: 1px solid rgba(142, 161, 255, 0.16);
  padding-top: 28px;
}

/* ── 8. CTA buttons: resting shadow ────────────────────────── */
/* Primary buttons gain a soft lift so they read as interactive
   objects at rest, not just coloured rectangles.                */
.btn-primary,
.btn-indigo {
  box-shadow: 0 2px 8px rgba(56, 67, 208, 0.22);
}

/* ── 9. Picker scrolls ──────────────────────────────────────── */
.picker-scroll {
  border-color: var(--rule);
}

/* ═══════════════════════════════════════════════════════════════
   SPACING POLISH
   Targeted rhythm fixes — no copy changes.
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Hero-dark: balance top/bottom padding ───────────────── */
/* 110px top / 40px bottom is top-heavy vs .hero's 64px/80px.
   96px top gives a gentler entry; 64px bottom gives breathing
   room before the first section divider.                        */
.hero-dark {
  padding: 60px 0 44px;
}

/* ── 3. Role card: align padding with card family ───────────── */
/* 40px 36px is noticeably looser than .finding (30px 28px) and
   .prog-card .body (28px 30px). 32px 28px keeps it slightly
   larger (befitting the three-column layout) but in family.    */
.role-card {
  padding: 32px 28px;
}

/* ── Photo strip (reusable, home + future pages) ─────────── */

/* ═══════════════════════════════════════════════════════════════
   PLATFORM PAGE ("How Connect Works") — desktop layout polish
   All rules scoped to ≥861px so the mobile/phone layout (gif sizes
   and spacing) stays exactly as-is.
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 861px) {
  /* — Breathing room around the model-flow section so the dense diagram
       isn't pinned tight against the hero above and the closing CTA below. — */
  [data-page='/platform'] .section.warm {
    padding: 84px 0 88px;
  }
  [data-page='/platform'] .section.warm .sec-head {
    margin-bottom: 40px;
  }
  [data-page='/platform'] .mf-step-banner {
    padding: 14px 44px;
  }
  [data-page='/platform'] .mf-panel-inner {
    padding: 36px 48px;
  }

  /* — Steps 1 & 3: taller white boxes for more breathing room.
       Content stays vertically centered within the added height. — */
  [data-page='/platform'] #mf-p-0 .mf-panel-inner,
  [data-page='/platform'] #mf-p-2 .mf-panel-inner {
    min-height: 580px;
  }
  /* Step 3's text/dashboard columns sat tighter than Step 1's; loosen the
     gap so the two columns breathe to match. */
  [data-page='/platform'] #mf-p-2 .mf-panel-inner {
    gap: 52px;
  }

  /* — Stat numbers: large but LIGHT, so they read as elegant figures
       rather than another bold element competing with the headers. — */
  [data-page='/platform'] .mf-stats .mf-stat-n {
    font-size: 36px;
    font-weight: 300;
  }
  [data-page='/platform'] .mf-stats .mf-stat-l {
    font-size: 13px;
  }
  [data-page='/platform'] .mf-callout-stat .mf-stat-n {
    font-weight: 300;
  }

  /* — Bigger feature pills (Step 2) — */
  [data-page='/platform'] .mf-features-label {
    font-size: 11px;
  }
  [data-page='/platform'] .mf-features ul {
    gap: 8px;
  }
  [data-page='/platform'] .mf-features ul li {
    font-size: 14px;
    padding: 6px 14px;
  }

  /* — Step 1: narrower picker tables; the left text gets the freed room.
       Tighter rows let the 9-item Amount list show fully with no scroll
       or empty space; Program/Country match that height. — */
  [data-page='/platform'] .mf-panel--picker .mf-panel-inner {
    gap: 56px;
  }
  [data-page='/platform'] .picker-set {
    grid-template-columns: 1fr 24px 1fr 24px 1fr;
  }
  [data-page='/platform'] .picker-arrow {
    padding-top: 18px;
  }
  [data-page='/platform'] .picker-item {
    padding: 8px 11px;
    font-size: 12px;
  }
  [data-page='/platform'] .picker-scroll {
    height: 304px;
  }

  /* — Stability: give the Step-2 box a definite height instead of the
       original `flex:1 + height:520px` combo, which left the height to a
       fragile height:100% / min-height:auto feedback loop that could blow
       the phone gif up on some reflows. 549px = the flush phone clip scaled
       about 15% smaller (was 646px), so the box shrinks with it. The clip
       still bleeds flush to the box's right/top/bottom edges; the text (453px
       tallest) fits easily and sits vertically centered beside it. */
  [data-page='/platform'] .mf-flw-inner {
    flex: 0 0 auto;
    height: 549px;
    min-height: 0; /* keep min-content:auto from overriding the definite height */
  }
  /* Phone clip bleeds flush to the box edges (right/top/bottom); the text
     column carries its own padding so only the clip goes edge-to-edge. */
  [data-page='/platform'] .mf-flw-panel--phone {
    padding: 0 0 0 32px;
  }
  [data-page='/platform'] .mf-flw-panel--phone .mf-panel-text {
    align-self: center; /* vertically center the left text beside the phone */
    padding: 0;
    text-align: center; /* center the heading, copy, label, and stat text */
  }
  /* Center the flex rows too (text-align alone won't move them) */
  [data-page='/platform'] .mf-flw-panel--phone .mf-features ul {
    justify-content: center;
  }
  [data-page='/platform'] .mf-flw-panel--phone .mf-stats {
    justify-content: center;
  }
  [data-page='/platform'] .mf-flw-panel--phone .mf-gif--phone {
    max-height: 549px;
  }

  /* — Step 2 / Verify tab: gif sits BELOW the text, but the box stays the
       SAME fixed 650px height as Learn/Deliver/Pay (no size jump on click).
       The media flexes to fill whatever height is left under the text, and
       the landscape gif scales to fit that space. — */
  [data-page='/platform'] .mf-flw-panel[data-flw-panel='2'] {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 36px 16px 32px;
    gap: 16px; /* tighter text→media gap so the gif gets more room */
  }
  [data-page='/platform'] .mf-flw-panel[data-flw-panel='2'] .mf-panel-text {
    flex: 0 0 auto;
    width: 100%;
    max-width: 680px;
  }
  /* Trim the text column's internal spacing on the Verify tab: every px
     saved here becomes height the landscape gif can grow into. */
  [data-page='/platform'] .mf-flw-panel[data-flw-panel='2'] .mf-panel-text h3 {
    margin-bottom: 12px;
  }
  [data-page='/platform']
    .mf-flw-panel[data-flw-panel='2']
    .mf-panel-text
    > p:first-of-type {
    margin-bottom: 16px;
  }
  [data-page='/platform'] .mf-flw-panel[data-flw-panel='2'] .mf-features {
    margin-bottom: 16px;
  }
  [data-page='/platform'] .mf-flw-panel[data-flw-panel='2'] .mf-features ul {
    justify-content: center;
  }
  [data-page='/platform'] .mf-flw-panel[data-flw-panel='2'] .mf-panel-media {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    margin: 0;
    align-items: center;
    justify-content: center;
  }
  [data-page='/platform'] .mf-flw-panel[data-flw-panel='2'] .mf-gif--verify {
    max-width: 680px;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PLATFORM PAGE — Step 2 LDVP tabs: clean, static states.
   The tabs read as a simple vertical set: clear hover, a quiet divider
   between each, and a subtle "next step is brighter" nudge — no looping
   motion. The active state lives in the base rules.
   ═══════════════════════════════════════════════════════════════ */

/* Each step reads as its own item on the vertical rail. */
@media (min-width: 861px) {
  [data-page='/platform'] .mf-flw-tabs .mf-flw-tab + .mf-flw-tab {
    border-top: 1px solid rgba(0, 0, 0, 0.07);
  }
}

/* Clear "this is clickable" hover */
[data-page='/platform'] .mf-flw-tab:hover {
  background: rgba(56, 67, 208, 0.06);
  color: #0d1026;
}
[data-page='/platform'] .mf-flw-tab:hover .mf-flw-tab-icon {
  opacity: 0.72;
}

/* The next step is the call to action: its icon sits a touch brighter than the
   other inactive icons as a quiet, static nudge to click — no looping motion. */
[data-page='/platform']
  .mf-flw-tab[aria-selected='true']
  + .mf-flw-tab
  .mf-flw-tab-icon {
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════════
   PLATFORM PAGE — Step 2 panels: colorful/readable feature pills,
   centered stats, and clear spacing between the overview, features,
   and stats blocks. Applies at all widths (content styling, not the
   phone gif sizing).
   ═══════════════════════════════════════════════════════════════ */

/* Each step gets its own accent so the feature pills read as colorful
   and tie back to that step's icon. */
[data-page='/platform'] .mf-flw-panel[data-flw-panel='0'] {
  --feat-text: #332a9e;
  --feat-bg: rgba(50, 42, 158, 0.09);
  --feat-bd: rgba(50, 42, 158, 0.26);
}
[data-page='/platform'] .mf-flw-panel[data-flw-panel='1'] {
  --feat-text: #3d4fad;
  --feat-bg: rgba(93, 112, 210, 0.12);
  --feat-bd: rgba(93, 112, 210, 0.32);
}
[data-page='/platform'] .mf-flw-panel[data-flw-panel='2'] {
  --feat-text: #cf3a28;
  --feat-bg: rgba(228, 68, 52, 0.1);
  --feat-bd: rgba(228, 68, 52, 0.28);
}
[data-page='/platform'] .mf-flw-panel[data-flw-panel='3'] {
  --feat-text: var(--teal-deep);
  --feat-bg: rgba(13, 168, 157, 0.12);
  --feat-bd: rgba(13, 168, 157, 0.32);
}

/* Soft, borderless feature chips — the colour comes from the text and a
   light tint only, so they read as quiet tags, not outlined buttons. */
[data-page='/platform'] .mf-flw-panel .mf-features ul li {
  color: var(--feat-text);
  background: var(--feat-bg);
  border: none;
  font-weight: 500;
}
/* The "Features" label stays a quiet neutral (base style); the chips
   carry the step colour, so the label needn't repeat it. */

/* Center the stats and give the three blocks room to breathe */
[data-page='/platform'] .mf-flw-panel .mf-panel-text > p:first-of-type {
  margin-bottom: 24px;
}
[data-page='/platform'] .mf-flw-panel .mf-features {
  margin: 0 0 24px;
}
[data-page='/platform'] .mf-flw-panel .mf-stats {
  justify-content: center;
  margin-top: 0;
}
[data-page='/platform'] .mf-flw-panel .mf-stat {
  align-items: center;
  text-align: center;
}
/* Results panel (Step 3): center the 22% / 1.5M+ stats to match the other steps */
[data-page='/platform'] .mf-panel--results .mf-stats {
  justify-content: center;
}
[data-page='/platform'] .mf-panel--results .mf-stat {
  align-items: center;
  text-align: center;
}

/* ── Home — tighten the gap above the marketplace "See how it works" CTA ── */
[data-page='/'] .section.no-border .sec-head--centered {
  margin-bottom: 26px;
}
[data-page='/'] .compare-why-cta {
  margin-top: 4px;
}

/* ── THE PORTFOLIO: give the CTA breathing room from the proof card
   (the marketplace CTA stays tight via the .no-border rule above). ── */
[data-page='/'] .section.warm .compare-why-cta {
  margin-top: 36px;
}

/* ── THE OPPORTUNITY (/the-opportunity) — the "Explore the Connect Platform" CTA
   now sits between the SOLUTION heading and the marketplace diagram. Tighten the
   gap above the button: the heading's 60px margin-bottom dominated (it collapses
   over the CTA's own margin-top), so pull both in. ── */
[data-page='/the-opportunity'] .section.no-border .sec-head--centered {
  margin-bottom: 26px;
}
[data-page='/the-opportunity'] .section.no-border .compare-why-cta {
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   THE ORIGINS OF CONNECT  (/the-opportunity)
   Founding story + Devex feature + funders, sits above the closing CTA.
   ═══════════════════════════════════════════════════════════════ */
/* Darker, narrower band — steps down from the warm section above toward
   the dark closing CTA below. Keeps dark text; white press card pops. */
.section.os-origins {
  background: #d7ddee;
  padding: clamp(60px, 6vw, 96px) 0;
}
.os-origins .wrap {
  max-width: 1080px;
}
.os-origins-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.os-origins-story {
  align-self: center;
}
.os-origins-story .eyebrow {
  margin-bottom: 16px;
}
.os-origins-story h2 {
  font-size: var(--fs-h2);
  font-weight: 300;
  margin: 0 0 20px;
}
.os-origins-story p {
  color: var(--ink-3);
  font-size: var(--fs-lede);
  line-height: 1.6;
  font-weight: 300;
  max-width: 54ch;
  margin: 0;
}
.os-origins-story p a {
  color: var(--indigo);
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(56, 67, 208, 0.35);
}
.os-origins-story p a:hover {
  text-decoration-color: var(--indigo);
}

/* Devex press feature card */
.os-press-card {
  display: flex;
}
.os-press-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 30px 32px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--indigo);
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(10, 6, 32, 0.04);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-left-color 0.2s ease;
}
.os-press-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgba(10, 6, 32, 0.28);
  border-left-color: var(--indigo-deep);
}
.os-press-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.os-press-source {
  margin-top: 4px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
}
.os-press-headline {
  margin: 16px 0 0;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 300;
  color: var(--ink-2);
}
.os-press-meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-3);
}
.os-press-cta {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--indigo);
}
.os-press-link:hover .os-press-cta {
  color: var(--indigo-deep);
}

/* Funders & investors row */
.os-funders {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 20px 32px;
  flex-wrap: wrap;
}
.os-funders-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.os-funders-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.os-funders-list a {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}
.os-funders-list a:hover {
  border-color: var(--indigo);
  color: var(--indigo);
  background: var(--indigo-soft);
  transform: translateY(-2px);
}

@media (max-width: 860px) {
  .os-origins-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .os-funders {
    margin-top: 36px;
  }
}
