/* ──────────────────────────────────────────────
   Midnight Space — editorial multi-page system
   Inspired by Visit Red Sea: light, serif-led,
   photo-forward, pill controls, floating cards.
   ────────────────────────────────────────────── */

:root {
  /* ── Layer 1 · primitives ──────────────────────────────────────────
     Raw hex values. Never use these in component styles directly —
     reach for the semantic tokens below. */
  --c-paper-50: #f5f1ea;       /* warm paper */
  --c-aqua-50:  #eef5f5;       /* pale sky aqua */
  --c-white:    #ffffff;

  --c-ink-900:  #0a1428;       /* deepest midnight ink (body text on light) */
  --c-ink-700:  #1d2942;
  --c-ink-500:  #5a6377;
  --c-ink-300:  #8a93a8;

  --c-ocean-900: #0b3a4a;      /* deep ocean teal — links, primary marks */
  --c-ocean-700: #1d6b73;      /* lighter ocean — italics, live-data accents */
  --c-ocean-500: #0e3a4a;
  --c-ocean-300: #062235;

  --c-space-900: #050a18;      /* deepest space — bottom of every dark gradient */
  --c-space-700: #08172a;      /* mid space */
  --c-space-500: #0a1f33;      /* upper space */
  --c-space-300: #1a3344;      /* warm-dark — atmosphere glow */
  --c-space-100: #051a2a;      /* between space and ocean */

  --c-cyan:      #7cd8e0;      /* the LIVE accent — reserved for live data */
  --c-cyan-mid:  #1d6b73;      /* darker cyan, same hue */
  --c-gold:      #b8895a;      /* warm secondary, very sparingly */

  /* ── Layer 2 · semantic — dark-cosmic-editorial dominant ───────────
     Surfaces flipped to deep space. The old light layer is preserved
     under --paper-* tokens for the rare light-section exception.
     Cyan is still reserved for live data (BRAND.md rule). */
  --bg:          var(--c-space-700);         /* page ground */
  --bg-warm:     var(--c-space-900);         /* heavier warm-dark for editorial sections */
  --surface:     var(--c-space-500);         /* lifted dark for cards-as-surface */
  --ink:         #ffffff;                     /* on-dark body text base */
  --ink-2:       rgba(255, 255, 255, .82);   /* paragraphs */
  --muted:       rgba(255, 255, 255, .68);   /* secondary copy */
  --faint:       rgba(255, 255, 255, .45);   /* labels, metadata */
  --accent:      var(--c-cyan-mid);          /* ocean-700 — readable on dark */
  --accent-2:    var(--c-cyan);              /* cyan — display italic + emphasis */
  --accent-soft: rgba(124, 216, 224, 0.10);
  --accent-line: rgba(124, 216, 224, 0.32);
  --gold:        var(--c-gold);
  --live:        var(--c-cyan);              /* anything truly live uses this */
  --live-soft:   rgba(124, 216, 224, 0.12);
  --live-line:   rgba(124, 216, 224, 0.35);

  /* Paper-section exception — pulled when .bg-paper is set on a section. */
  --bg-paper:        var(--c-aqua-50);
  --bg-paper-warm:   var(--c-paper-50);
  --surface-paper:   var(--c-white);
  --ink-paper:       var(--c-ink-900);
  --muted-paper:     var(--c-ink-500);
  --accent-paper:    var(--c-ocean-900);
  --accent-paper-2:  var(--c-ocean-700);
  --hair-paper:      rgba(10, 20, 40, 0.10);

  --hair:         rgba(255, 255, 255, 0.08);
  --hair-strong:  rgba(255, 255, 255, 0.16);
  --hair-onDark:  rgba(255, 255, 255, 0.10);
  --hair-onDark-strong: rgba(255, 255, 255, 0.18);

  --shadow-card: 0 22px 60px -20px rgba(0, 0, 0, 0.55), 0 0 28px -8px rgba(124, 216, 224, 0.12);
  --shadow-soft: 0 10px 28px -14px rgba(0, 0, 0, 0.55);
  --shadow-live: 0 8px 32px -12px rgba(124, 216, 224, 0.35);

  /* ── Layer 3 · component / asset tokens ────────────────────────────
     Named gradients + recurring asset values. Refactored from inline
     literals scattered across pages so the next time we tune the dark
     palette, it's one edit. */
  --grad-space:      linear-gradient(160deg, #050a18 0%, #08172a 60%, #0a1f33 100%);
  --grad-stat-cold:  linear-gradient(160deg, #0e3a4a 0%, #051a2a 100%);
  --grad-stat-mid:   linear-gradient(160deg, #1d6b73 0%, #062235 100%);
  --grad-stat-warm:  linear-gradient(160deg, #062235 0%, #0e3a4a 70%, #1d6b73 100%);
  --grad-orb:        linear-gradient(135deg, rgba(184,137,90,.30), rgba(11,58,74,.60));
  --grad-orb-inner:  linear-gradient(135deg, #1a3344, #050a18);
  --grad-sector-bar: linear-gradient(90deg, var(--c-ocean-700) 0%, var(--c-cyan) 100%);
  --grad-paper-hint: linear-gradient(135deg, #d4e8ee 0%, #f5f1ea 100%);

  /* ── Typography ───────────────────────────────────────────────────── */
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans:  'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* Fraunces variable axes — used by hero choreography in main.js too. */
  --ax-display:  "opsz" 144, "SOFT" 40;       /* large display headings */
  --ax-display-italic: "opsz" 144, "SOFT" 100;
  --ax-headline: "opsz" 96, "SOFT" 30;
  --ax-headline-italic: "opsz" 96, "SOFT" 100;
  --ax-pill:     "opsz" 60, "SOFT" 30;

  /* ── Layout + motion ─────────────────────────────────────────────── */
  --rail:     clamp(20px, 5vw, 64px);
  --ease:     cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-emil: cubic-bezier(.23, 1, .32, 1);     /* strong ease-out for entries */
  --ease-press: cubic-bezier(.32, .72, 0, 1);    /* iOS-feel for press / drawer */

  /* Spacing scale — codified from values already in use across components. */
  --s-1:  4px;  --s-2:  8px;  --s-3: 12px;  --s-4: 16px;
  --s-5: 20px;  --s-6: 24px;  --s-7: 32px;  --s-8: 40px;
  --s-9: 56px;  --s-10: 72px; --s-11: 96px; --s-12: 128px;

  /* Radius scale */
  --r-xs:   4px;
  --r-sm:   6px;
  --r-md:  10px;
  --r-lg:  12px;
  --r-xl:  16px;
  --r-2xl: 20px;
  --r-pill: 999px;

  /* ── Focus / a11y ────────────────────────────────────────────────── */
  --focus-ring:        0 0 0 3px rgba(124, 216, 224, 0.65), 0 0 0 5px rgba(10, 20, 40, 0.9);
  --focus-ring-onDark: 0 0 0 3px rgba(124, 216, 224, 0.8),  0 0 0 5px rgba(255, 255, 255, 0.6);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--c-space-900);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Soft global ground — a fixed aurora wash + starfield over the
   whole document so dark sections sit on something with texture
   instead of a flat #050a18 slab. Pointer-events:none, behind all
   content. */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(50% 40% at 18% 6%, rgba(11, 58, 74, 0.42) 0%, transparent 65%),
    radial-gradient(40% 35% at 86% 18%, rgba(124, 216, 224, 0.10) 0%, transparent 65%),
    radial-gradient(45% 38% at 50% 96%, rgba(184, 137, 90, 0.10) 0%, transparent 65%),
    var(--grad-space);
}
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .55;
  background-image:
    radial-gradient(1px 1px at 8% 14%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.2px 1.2px at 86% 22%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 22% 70%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.2px 1.2px at 72% 58%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 92% 86%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1.2px 1.2px at 16% 90%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1.4px 1.4px at 50% 34%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 38% 10%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 6% 50%, rgba(255,255,255,.5), transparent 60%);
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { opacity: .4; }
}
html { scroll-behavior: smooth; }
body { min-height: 100dvh; overflow-x: hidden; }

/* ─── skip-to-main link ──────────────────────────────────────────────
   Hidden until keyboard focus. Lands above all chrome with the
   ink-dark backdrop so it reads on any header colour. */
.skip-link {
  position: absolute;
  top: 12px; left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  box-shadow: 0 14px 30px -10px rgba(10, 20, 40, .45);
  transition: transform .22s var(--ease-emil);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline: none;
}

main { display: block; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

/* ─── focus rings ─────────────────────────────────────────────────────
   Only on keyboard focus, never on mouse — so the magnetic CTAs don't
   sprout a halo on hover. Two-stop ring (cyan + dark) so it's visible
   on both warm-paper and deep-space surfaces. */
:focus { outline: none; }
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}
.site-header.over-hero :focus-visible,
.hero :focus-visible,
.signature :focus-visible,
.foot :focus-visible,
.section.bg-dark :focus-visible {
  box-shadow: var(--focus-ring-onDark);
}
/* Round elements (pills, buttons, dots) get their own border-radius back. */
.btn:focus-visible, .util-pill:focus-visible, .nav-cta:focus-visible,
.hero-tabs a:focus-visible, .signature-tabs button:focus-visible,
.scroll-arrows button:focus-visible, .chat-fab:focus-visible {
  border-radius: 999px;
}

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--rail); }

/* ─── reveal animation ─────────────────────────
   Punchier than before — bigger Y, gentle scale-in, soft blur-in
   that resolves to crisp. Custom emil curve, 1.1s. Honored under
   prefers-reduced-motion by the global block lower in the file. */
.r {
  opacity: 0;
  transform: translate3d(0, 26px, 0) scale(.985);
  filter: blur(4px);
  transition:
    opacity .65s var(--ease-emil),
    transform .75s var(--ease-emil),
    filter .55s var(--ease-emil);
  will-change: opacity, transform, filter;
}
.r.in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
.r1 { transition-delay: .06s; } .r2 { transition-delay: .14s; } .r3 { transition-delay: .22s; }
.r4 { transition-delay: .3s; }  .r5 { transition-delay: .38s; } .r6 { transition-delay: .46s; }

/* Stagger helper — children of [data-stagger] cascade in.
   Each child is a .r already; this adds incremental delay so a row
   of cards or list items appears as a wave instead of a slab. */
[data-stagger] > .r:nth-child(1) { transition-delay: .04s; }
[data-stagger] > .r:nth-child(2) { transition-delay: .12s; }
[data-stagger] > .r:nth-child(3) { transition-delay: .20s; }
[data-stagger] > .r:nth-child(4) { transition-delay: .28s; }
[data-stagger] > .r:nth-child(5) { transition-delay: .36s; }
[data-stagger] > .r:nth-child(6) { transition-delay: .44s; }
[data-stagger] > .r:nth-child(7) { transition-delay: .52s; }
[data-stagger] > .r:nth-child(8) { transition-delay: .60s; }

/* ─── header / utility bar ─────────────────── */
.site-header {
  position: relative;
  z-index: 40;
  background: rgba(8, 23, 42, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hair);
  color: #fff;
}
.site-header .util-pill,
.site-header .main-nav a,
.site-header .brand-stack .brand-top,
.site-header .brand-stack .brand-bottom { color: #fff; }
.site-header .util-pill {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(124, 216, 224, 0.18);
}
.site-header .util-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(124, 216, 224, 0.45);
}
.site-header .nav-cta {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.site-header .nav-cta:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.site-header .nav-mobile-btn { border-color: rgba(255,255,255,.22); }
.site-header .nav-mobile-btn span,
.site-header .nav-mobile-btn span::before,
.site-header .nav-mobile-btn span::after { background: #fff; }
.site-header .main-nav { border-top-color: rgba(255,255,255,.10); }
.site-header .main-nav a.active::after { background: var(--c-cyan); }
.site-header.over-hero {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: transparent;
  border-bottom: 0;
  color: #fff;
}
.site-header.over-hero .util-pill,
.site-header.over-hero .main-nav a {
  color: #fff;
}
.site-header.over-hero .util-pill {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 6px 16px -6px rgba(0, 0, 0, 0.25);
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.site-header.over-hero .util-pill:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.12) 100%);
  border-color: rgba(124, 216, 224, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px -6px rgba(0, 0, 0, 0.30),
    0 0 18px -4px rgba(124, 216, 224, 0.40);
}
.site-header.over-hero .brand-stack .brand-top,
.site-header.over-hero .brand-stack .brand-bottom { color: #fff; }
.site-header.over-hero .nav-cta {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.site-header.over-hero .main-nav a.active::after { background: #fff; }
.site-header.over-hero .main-nav { border-top-color: rgba(255,255,255,0.18); }

.util-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px var(--rail) 14px;
}
.util-left, .util-right { display: flex; align-items: center; gap: 10px; }
.util-right { justify-content: flex-end; }

.util-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  min-height: 44px;          /* a11y touch target */
  border-radius: var(--r-pill);
  border: 1px solid rgba(124, 216, 224, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 13px; letter-spacing: .02em;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease-emil);
}
.util-pill:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(124, 216, 224, 0.45); }
.util-pill:active { transform: scale(.97); transition-duration: 80ms; }
.util-pill svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .8; }

.brand-stack {
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none;
  line-height: 1;
}
.brand-stack .brand-top {
  font-family: var(--serif);
  font-variation-settings: "opsz" 96, "SOFT" 30;
  font-weight: 400;
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}
.brand-stack .brand-bottom {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
}
/* Midnight Space circular badge logo (replaces the text wordmark). The
   badge is a self-contained lockup — it already carries the name — so it
   stands alone with no adjacent wordmark. */
.brand-stack .brand-badge {
  display: block;
  height: clamp(38px, 4vw, 46px);
  width: auto;
  border-radius: 50%;
}
.foot .brand-stack .brand-badge { height: 56px; }

.nav-cta {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  min-height: 44px;
  border-radius: var(--r-pill);
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .18s var(--ease-emil);
  cursor: pointer;
}
.nav-cta:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.nav-cta:active { filter: brightness(.95); transition-duration: 80ms; }

.main-nav {
  display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3.5vw, 48px);
  padding: 0 var(--rail) 18px;
  border-top: 1px solid var(--hair);
  padding-top: 18px;
}
.main-nav a {
  position: relative;
  font-size: 13px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink);
  padding: 14px 4px;          /* taller for keyboard + touch */
  margin: -14px 0;             /* keep visual baseline */
  transition: color .2s var(--ease);
}
.main-nav a:hover { color: var(--c-cyan); }
.main-nav a.active::after {
  content: ""; position: absolute;
  left: 4px; right: 4px; bottom: 10px;
  height: 2px; background: var(--accent);
}

.nav-mobile-btn {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-pill);
  align-items: center; justify-content: center;
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .15s var(--ease-emil);
}
.nav-mobile-btn:hover { background: var(--accent-soft); border-color: var(--accent); }
.nav-mobile-btn:active { transform: scale(.94); transition-duration: 80ms; }
.nav-mobile-btn span {
  display: block; width: 18px; height: 2px;
  background: var(--ink); position: relative;
}
.nav-mobile-btn span::before,
.nav-mobile-btn span::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink);
}
.nav-mobile-btn span::before { top: -6px; }
.nav-mobile-btn span::after  { top: 6px; }

/* ─── hero (photo / 3D, light overlay) ────── */
.hero {
  position: relative;
  min-height: clamp(620px, 96dvh, 920px);
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  padding-top: clamp(160px, 18vh, 220px);
  padding-bottom: clamp(120px, 14vh, 160px);
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 20, 36, 0.55) 0%, rgba(8, 20, 36, 0.15) 35%, rgba(8, 20, 36, 0.45) 75%, rgba(8, 20, 36, 0.78) 100%);
}
.hero-bg.gradient {
  background:
    radial-gradient(80% 60% at 50% 40%, rgba(11, 58, 74, 0.55) 0%, transparent 70%),
    radial-gradient(50% 40% at 20% 80%, rgba(184, 137, 90, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, var(--c-space-900) 0%, var(--c-space-700) 60%, var(--c-space-500) 100%);
}
.hero-bg.gradient::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 20%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1px 1px at 80% 15%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 30% 70%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 65% 60%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 90% 85%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 22% 90%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 50% 30%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 38% 8%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 8% 55%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1.2px 1.2px at 72% 38%, rgba(255,255,255,.5), transparent 60%);
}
.hero-bg.gradient::after { background: linear-gradient(180deg, rgba(5,10,24,.5) 0%, rgba(5,10,24,.1) 40%, rgba(5,10,24,.55) 100%); }

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: clamp(28px, 6vw, 80px);
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--rail);
  min-height: clamp(360px, 50vh, 520px);
}
.hero-text { max-width: 880px; }
.hero-eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 22px;
}
.hero-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 40;
  font-weight: 400;
  font-size: clamp(48px, 8vw, 124px);
  line-height: .98;
  letter-spacing: -.025em;
  color: #fff;
  margin: 0;
}
.hero-title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.hero-sub {
  margin: 28px 0 0;
  max-width: 600px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 300;
}
.hero-cta-row {
  margin-top: 32px;
  display: flex; flex-wrap: wrap; gap: 12px;
}

/* video card floating right of hero */
.hero-card {
  position: relative;
  width: clamp(280px, 28vw, 380px);
  aspect-ratio: 16 / 11;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #1a2a3a center/cover;
}
.hero-card.is-screen { background-color: #fff; background-size: cover; background-position: top center; }
.hero-card.is-screen .play { display: none; }
.hero-card.is-screen .card-label { background: linear-gradient(180deg, transparent, rgba(0,0,0,.78)); }
.hero-card .play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.hero-card .play::before {
  content: ""; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: block;
}
.hero-card .play::after {
  content: ""; position: absolute;
  border-style: solid; border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent var(--accent);
  margin-left: 4px;
}
.hero-card .card-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.6));
  color: #fff;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
}

/* hero tabs (segmented pills) — glassmorphic floating control */
.hero-tabs {
  position: absolute;
  left: 50%; bottom: 30px; transform: translateX(-50%);
  z-index: 3;
  display: flex; gap: 36px; align-items: center;
  padding: 16px 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 251, 0.92) 100%);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 18px 42px -16px rgba(0, 0, 0, 0.45),
    0 0 24px -6px rgba(124, 216, 224, 0.25);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.hero-tabs a,
.hero-tabs button {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60, "SOFT" 30;
  font-weight: 400;
  font-size: 18px;
  /* Sits on the white-glass pill — fixed ink color regardless of theme. */
  color: rgba(10, 20, 40, 0.55);
  position: relative;
  padding: 10px 6px;            /* taller hit target — keyboard + touch */
  margin: -10px -2px;            /* preserve visual baseline */
  background: none; border: 0;
  cursor: pointer;
  transition: color .18s var(--ease);
}
/* Hero-tabs sit on a white glass pill — text colour must be ink-dark,
   not var(--ink) (which is now white). Hardcode to space-900 so the
   pill stays legible regardless of theme drift. */
.hero-tabs a:hover,
.hero-tabs button:hover { color: var(--c-space-900); }
.hero-tabs a:active,
.hero-tabs button:active { transform: scale(.97); transition-duration: 80ms; }
.hero-tabs a.active,
.hero-tabs button.active { color: var(--c-space-900); }
.hero-tabs a.active::after,
.hero-tabs button.active::after {
  content: ""; position: absolute;
  left: 6px; right: 6px; bottom: 4px;
  height: 2px; background: var(--c-cyan-mid);
}

/* ─── buttons ──────────────────────────────── */
.btn {
  /* --mx / --my carry the magnetic offset so the inline-set transform
     on hover doesn't collide with the :active feedback below. */
  --mx: 0px;
  --my: 0px;
  --lift: 0px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  border: 2px solid transparent;
  transform: translate3d(var(--mx), calc(var(--my) + var(--lift)), 0);
  transition:
    transform .2s var(--ease-emil),
    background .2s var(--ease),
    color .2s var(--ease),
    border-color .2s var(--ease),
    box-shadow .25s var(--ease);
  cursor: pointer;
}
.btn:hover { --lift: -1px; }
.btn:active {
  --lift: 0px;
  filter: brightness(.95);
  transition-duration: 80ms;
}
.btn-primary {
  background: linear-gradient(180deg, #ffffff 0%, #f3f7f7 100%);
  /* Hardcoded ink — sits on white, must stay dark regardless of theme. */
  color: var(--c-space-900);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(10, 20, 40, 0.04),
    0 6px 18px -6px rgba(10, 20, 40, 0.25);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--c-ink-900) 0%, #050e1e 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(124, 216, 224, 0.20),
    0 10px 28px -6px rgba(10, 20, 40, 0.45),
    0 0 22px -4px rgba(124, 216, 224, 0.35);
}
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-ink { background: #fff; color: var(--c-space-900); }
.btn-ink:hover { background: var(--c-cyan); color: var(--c-space-900); }
.btn-outline { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* ─── section title row ────────────────────── */
.section {
  padding: clamp(80px, 12vh, 140px) 0;
  position: relative;
  color: var(--ink);
}
.section + .section { border-top: 1px solid var(--hair); }
/* Surface variants — all dark now, varying only in depth. */
.section.bg-warm    { background: rgba(8, 23, 42, 0.55); border-top: 0; }
.section.bg-surface { background: rgba(10, 31, 51, 0.42); border-top: 0; }
.section.bg-dark    { background: #08172a; border-top: 0; }
/* Paper exception — pulled when a section explicitly opts back in. */
.section.bg-paper {
  background: var(--bg-paper-warm);
  color: var(--ink-paper);
  border-top: 0;
}
.section.bg-paper .eyebrow      { color: var(--accent-paper); }
.section.bg-paper .section-title{ color: var(--ink-paper); }
.section.bg-paper .section-title em { color: var(--accent-paper-2); }
.section.bg-paper .section-lead { color: var(--muted-paper); }
.section.bg-paper p             { color: var(--muted-paper); }
.section.bg-paper p strong      { color: var(--ink-paper); }
.section.bg-dark .eyebrow { color: rgba(255,255,255,.78); }
.section.bg-dark .section-title { color: #fff; }
.section.bg-dark .section-lead { color: rgba(255,255,255,.82); }

/* Section rhythm modifiers — broken from the metronomic baseline.
   Use --tight where the surrounding sections already feel heavy
   (stats + sectoral, back-to-back); use --breath where one moment
   deserves more air (the signature, the funding-field, the callout). */
.section.section--tight  { padding: clamp(56px, 8vh, 92px) 0; }
.section.section--breath { padding: clamp(112px, 16vh, 180px) 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(48px, 7vh, 80px);
}
/* Stacked variant — kills the 50/50 split when the lead is shorter
   than the title needs and the symmetry just adds visual weight.
   Title sits left, lead drops into a 52ch column beneath the eyebrow
   group instead of competing on the same baseline. */
.section-head.section-head--stacked {
  display: block;
  max-width: 920px;
}
.section-head.section-head--stacked .section-lead {
  margin-top: clamp(20px, 2.4vw, 32px);
  max-width: 56ch;
}
.eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);   /* default = on-dark; .bg-paper overrides */
  margin: 0 0 16px;
}
.section-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 40;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -.025em;
  margin: 0;
  color: var(--ink);
}
.section-title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--c-cyan);
}
.section-lead {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
  margin: 0;
}

/* ─── stats strip (image-backed cards) ───────
   Editorial 1.4 / 1 / 1 split — one feature card on the left,
   two equal cards to its right. Breaks the symmetric 3-up
   feature-grid trap while keeping the live data legible.
   Falls back to 3-equal then horizontal scroll on narrower screens. */
.stats-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(14px, 1.4vw, 22px);
  padding-bottom: 24px;
  -webkit-overflow-scrolling: touch;
}
.stat-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-ink-900) center/cover;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(124, 216, 224, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 20px 50px -20px rgba(10, 20, 40, 0.55),
    0 0 30px -8px rgba(11, 58, 74, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 2.4vw, 36px);
  transition: transform .35s var(--ease-emil), box-shadow .35s var(--ease-emil);
}
/* The lead card on the left gets a wider aspect so it earns its column. */
.stats-row .stat-card:first-child {
  aspect-ratio: 5 / 4;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(124, 216, 224, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 28px 60px -20px rgba(10, 20, 40, 0.65),
    0 0 36px -6px rgba(124, 216, 224, 0.22);
}
.stat-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,20,40,.05) 0%, rgba(8,20,40,.55) 100%);
  pointer-events: none;
}
/* Subtle dot field behind the stat number — a calm preview of the
   Funding Field aesthetic. Pure decoration; no interaction. */
.stat-card .stat-field {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: .55;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, rgba(124, 216, 224, .85), transparent 60%),
    radial-gradient(1.4px 1.4px at 18% 38%, rgba(124, 216, 224, .60), transparent 60%),
    radial-gradient(1.6px 1.6px at 28% 18%, rgba(124, 216, 224, .70), transparent 60%),
    radial-gradient(1.8px 1.8px at 32% 52%, rgba(124, 216, 224, .65), transparent 60%),
    radial-gradient(1.4px 1.4px at 22% 64%, rgba(184, 137, 90, .55), transparent 60%),
    radial-gradient(1.6px 1.6px at 42% 28%, rgba(124, 216, 224, .55), transparent 60%),
    radial-gradient(1.4px 1.4px at 48% 64%, rgba(124, 216, 224, .50), transparent 60%),
    radial-gradient(1.8px 1.8px at 36% 84%, rgba(29, 107, 115, .85), transparent 60%),
    radial-gradient(1.2px 1.2px at 56% 18%, rgba(124, 216, 224, .55), transparent 60%),
    radial-gradient(1.4px 1.4px at 62% 38%, rgba(124, 216, 224, .50), transparent 60%),
    radial-gradient(1.6px 1.6px at 72% 78%, rgba(184, 137, 90, .55), transparent 60%),
    radial-gradient(1.4px 1.4px at 78% 28%, rgba(124, 216, 224, .50), transparent 60%),
    radial-gradient(1.6px 1.6px at 84% 56%, rgba(124, 216, 224, .55), transparent 60%),
    radial-gradient(1.4px 1.4px at 88% 80%, rgba(29, 107, 115, .55), transparent 60%),
    radial-gradient(1.2px 1.2px at 92% 16%, rgba(124, 216, 224, .55), transparent 60%);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.stat-card:hover .stat-field { opacity: .85; transform: scale(1.04); }
.stat-card > .stat-num, .stat-card > .stat-label { position: relative; z-index: 2; }
.stat-card > * { position: relative; z-index: 1; }

/* Hero tabpanels — `hidden` attribute hides; visible pane fills the
   stage. No extra display rules needed since hero-text inherits its
   block layout. Reduced-motion / aria-hidden state stays correct. */
.hero [data-tab-pane][hidden] { display: none; }
.stat-card .stat-num {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400;
  font-size: clamp(56px, 7.2vw, 104px);
  line-height: 1;
  letter-spacing: -.025em;
}
.stat-card .stat-label {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60, "SOFT" 30;
  font-weight: 400;
  font-size: clamp(15px, 1.2vw, 18px);
  align-self: flex-start;
}

.scroll-track {
  position: relative;
  height: 4px; border-radius: 999px;
  background: rgba(10, 20, 40, 0.12);
  margin-top: 18px;
  max-width: 360px;
}
.scroll-track .knob { position: absolute; top: -3px; bottom: -3px; background: var(--ink); border-radius: 999px; width: 20%; }
.scroll-arrows { display: flex; justify-content: flex-end; gap: 10px; margin-top: -28px; }
.scroll-arrows button {
  width: 44px; height: 44px;       /* a11y touch target */
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid; place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease-emil);
}
.scroll-arrows button:hover { background: rgba(255, 255, 255, 0.10); border-color: rgba(124, 216, 224, 0.45); }
.scroll-arrows button:active { transform: scale(.92); transition-duration: 80ms; }

/* ─── location / two-up section ────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split-text h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 40;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -.025em;
  margin: 0 0 24px;
}
.split-text h2 em { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100; color: var(--c-cyan); }
.split-text p {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 50ch;
  margin: 0 0 1.1em;
  font-weight: 300;
}
.split-text p strong { color: #fff; font-weight: 500; }
.split-image {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--c-space-700) center/cover;
  background-position: top center;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(124, 216, 224, 0.14);
}
.split-image .pin {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: rgba(8, 23, 42, 0.82);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(124, 216, 224, 0.22);
  color: #fff;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  box-shadow: var(--shadow-soft);
}
.split-image .pin .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 10px rgba(124, 216, 224, .6);
}

/* ─── feature cards (resort-style) ─────────── */
.cards-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(280px, 30vw, 380px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 24px;
  scrollbar-width: thin;
}
.feature-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  background: var(--c-ink-900) center/cover;
  color: #fff;
  scroll-snap-align: start;
  isolation: isolate;
  text-decoration: none;
  display: block;
  box-shadow:
    inset 0 1px 0 rgba(124, 216, 224, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 20px 55px -22px rgba(10, 20, 40, 0.55);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(124, 216, 224, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 28px 64px -22px rgba(10, 20, 40, 0.65),
    0 0 40px -8px rgba(124, 216, 224, 0.22);
}
.feature-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,20,40,.0) 30%, rgba(8,20,40,.78) 100%);
  pointer-events: none;
}
.feature-card .fc-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px;
  z-index: 1;
}
.feature-card .fc-eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.78);
  margin: 0 0 10px;
}
.feature-card .fc-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 96, "SOFT" 40;
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.02;
  letter-spacing: -.015em;
  margin: 0 0 12px;
  color: #fff;
}
.feature-card .fc-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 12px; color: rgba(255,255,255,.8);
  margin: 0 0 18px;
}
.feature-card .fc-meta span { position: relative; padding-right: 12px; }
.feature-card .fc-meta span:not(:last-child)::after {
  content: "•"; position: absolute; right: 0; color: rgba(255,255,255,.5);
}
.feature-card .fc-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.6);
  padding-bottom: 2px;
}
.feature-card .fc-logo {
  position: absolute; top: 28px; left: 28px;
  z-index: 1;
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: .12em;
  color: #fff;
  opacity: .95;
}
.feature-card.is-screen { background-color: #fff; background-size: cover; background-position: top center; }
.feature-card.is-screen::after { background: linear-gradient(180deg, rgba(8,20,40,.0) 35%, rgba(8,20,40,.92) 100%); }

/* ─── signature attraction (full-bleed) ───── */
.signature {
  position: relative;
  min-height: 720px;
  isolation: isolate;
  display: grid; grid-template-columns: 1fr;
  color: #fff;
  overflow: hidden;
}
.signature-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.signature-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,20,40,.45) 0%, rgba(8,20,40,.15) 40%, rgba(8,20,40,.6) 100%); }
.signature-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: end;
  padding: clamp(80px, 12vh, 140px) var(--rail);
}
.signature h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 40;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 108px);
  line-height: 1;
  letter-spacing: -.025em;
  margin: 0 0 28px;
  color: #fff;
}
.signature h2 em { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100; }
.signature .eyebrow { color: rgba(255,255,255,.8); }
.signature-card {
  background: rgba(8, 23, 42, 0.62);
  color: #fff;
  padding: 24px;
  border-radius: var(--r-md);
  border: 1px solid rgba(124, 216, 224, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(124, 216, 224, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 22px 50px -20px rgba(0, 0, 0, 0.55),
    0 0 30px -8px rgba(124, 216, 224, 0.20);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.signature-card .sc-img {
  aspect-ratio: 4/3;
  border-radius: var(--r-xs);
  background: var(--c-space-700) center/cover;
  background-position: top center;
  margin-bottom: 14px;
  border: 1px solid rgba(124, 216, 224, 0.14);
}
.signature-card .sc-label {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  text-align: center;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.signature-tabs {
  position: absolute;
  left: var(--rail); bottom: 40px;
  z-index: 3;
  display: inline-flex; gap: 8px; padding: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 8px 20px -8px rgba(0, 0, 0, 0.3);
}
.signature-tabs button {
  padding: 12px 22px;
  min-height: 44px;
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  transition: background .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease), transform .15s var(--ease-emil);
}
.signature-tabs button:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.signature-tabs button:active { transform: scale(.97); transition-duration: 80ms; }
.signature-tabs button.active {
  background: linear-gradient(180deg, #fff 0%, #f3f7f7 100%);
  /* Hardcoded ink — sits on white, must stay dark regardless of theme. */
  color: var(--c-space-900);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 4px 12px -2px rgba(0, 0, 0, 0.18);
}

/* ─── inline module list (data rows) ───────── */
.module-list { display: flex; flex-direction: column; }
.module-row {
  display: grid;
  grid-template-columns: 80px 1.2fr 1.8fr 140px;
  gap: 32px;
  padding: clamp(28px, 3.5vw, 40px) 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  align-items: start;
  position: relative;
}
.module-row:last-child { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.module-row::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--c-cyan);
  transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease-out);
}
.module-row:hover::before { transform: scaleX(1); }

.module-row .m-idx {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -.02em;
}
.module-row .m-head h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 96, "SOFT" 30;
  font-weight: 400;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.1;
  letter-spacing: -.015em;
  color: #fff;
  margin: 0 0 10px;
}
.module-row .m-head h3 em {
  font-style: italic;
  font-variation-settings: "opsz" 96, "SOFT" 100;
  color: var(--c-cyan);
}
.module-row .m-tags {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.module-row .m-tags span:not(:last-child)::after { content: " /"; margin-left: 14px; color: rgba(255,255,255,.20); }
.module-row .m-body {
  font-size: 15px; line-height: 1.6;
  color: rgba(255, 255, 255, .76);
  font-weight: 300;
}
.module-row .m-status {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, .68);
  white-space: nowrap;
  background: rgba(255, 255, 255, .04);
}
.module-row .m-status.live { color: var(--c-cyan); border-color: rgba(124, 216, 224, .35); background: rgba(124, 216, 224, .08); }
.module-row .m-status.live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 8px var(--c-cyan);
  animation: pulse 2.5s var(--ease) infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.85); } }

/* ─── access / tier cards ──────────────────── */
.tiers {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.tier {
  position: relative;
  background:
    linear-gradient(180deg, rgba(8, 23, 42, 0.65) 0%, rgba(5, 10, 24, 0.82) 100%);
  border-radius: var(--r-lg);
  padding: 40px 32px 32px;
  display: flex; flex-direction: column;
  border: 1px solid rgba(124, 216, 224, 0.18);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(124, 216, 224, 0.18),
    0 22px 50px -22px rgba(0, 0, 0, 0.55);
  transition: transform .35s var(--ease-emil), box-shadow .35s var(--ease-emil), border-color .3s var(--ease);
  color: #fff;
}
.tier:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 216, 224, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(124, 216, 224, 0.28),
    0 30px 60px -22px rgba(0, 0, 0, 0.65),
    0 0 30px -8px rgba(124, 216, 224, 0.28);
}
.tier.featured {
  border-color: rgba(124, 216, 224, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(124, 216, 224, 0.28),
    inset 0 0 0 1px rgba(124, 216, 224, 0.12),
    0 28px 60px -22px rgba(0, 0, 0, 0.65),
    0 0 36px -6px rgba(124, 216, 224, 0.30);
}
.tier.featured::before {
  content: "Recommended";
  position: absolute; top: -12px; left: 28px;
  padding: 5px 14px;
  background: var(--c-cyan);
  color: var(--c-space-900);
  font-size: 10px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  border-radius: var(--r-pill);
  box-shadow: 0 8px 20px -6px rgba(124, 216, 224, .45);
}
.tier-name {
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  margin-bottom: 14px;
}
.tier-price {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 40;
  font-weight: 400;
  font-size: clamp(36px, 3.6vw, 52px);
  line-height: 1; letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 28px;
}
.tier ul {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}
.tier li {
  font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .82);
  font-weight: 400;
  display: flex; gap: 12px; align-items: flex-start;
}
.tier li::before {
  content: ""; width: 16px; height: 1px; background: var(--c-cyan);
  margin-top: 11px; flex-shrink: 0;
  opacity: .72;
}
.tier .btn { width: 100%; justify-content: center; }

/* ─── content callouts ─────────────────────── */
.callout {
  position: relative;
  background:
    linear-gradient(180deg, rgba(8, 23, 42, 0.62) 0%, rgba(5, 10, 24, 0.82) 100%);
  border-radius: var(--r-xl);
  padding: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  border: 1px solid rgba(124, 216, 224, 0.22);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(124, 216, 224, 0.22),
    0 28px 70px -22px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  isolation: isolate;
}
.callout.dark {
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(11, 58, 74, 0.55) 0%, transparent 70%),
    radial-gradient(50% 60% at 100% 100%, rgba(124, 216, 224, 0.10) 0%, transparent 70%),
    var(--c-ink-900);
  color: #fff;
  border-color: rgba(124, 216, 224, 0.15);
  box-shadow:
    inset 0 1px 0 rgba(124, 216, 224, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 28px 70px -22px rgba(10, 20, 40, 0.55);
}
.callout.dark .callout-title { color: #fff; }
.callout.dark .callout-lead { color: rgba(255,255,255,.78); }
.callout-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 40;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0 0 18px;
}
.callout-title em { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100; color: var(--c-cyan); }
.callout.dark .callout-title em { color: #b8c8e0; }
.callout-lead {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6; color: rgba(255, 255, 255, 0.78);
  margin: 0 0 24px;
}

/* ─── brick — generic dark glass card ────────
   Replaces inline `background:#fff; box-shadow:var(--shadow-soft)`
   blocks in about / contact / pilots. Doppelrand-style: a hairline
   outer ring + a soft inset highlight so the card reads as physical
   on the dark ground. */
.brick {
  position: relative;
  background: linear-gradient(180deg, rgba(8, 23, 42, 0.62) 0%, rgba(5, 10, 24, 0.78) 100%);
  border: 1px solid rgba(124, 216, 224, 0.18);
  border-radius: var(--r-md);
  padding: 36px;
  color: #fff;
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(124, 216, 224, 0.18),
    0 22px 50px -22px rgba(0, 0, 0, 0.55);
  transition: transform .35s var(--ease-emil), border-color .25s var(--ease), box-shadow .35s var(--ease-emil);
}
.brick:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 216, 224, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(124, 216, 224, 0.28),
    0 30px 60px -22px rgba(0, 0, 0, 0.65),
    0 0 28px -8px rgba(124, 216, 224, 0.20);
}
.brick .brick-label {
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  margin-bottom: 18px;
}
.brick h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 96, "SOFT" 30;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 12px;
  color: #fff;
}
.brick h3 em { font-style: italic; font-variation-settings: "opsz" 96, "SOFT" 100; color: var(--c-cyan); }
.brick p {
  font-size: 15px; line-height: 1.6; margin: 0;
  color: rgba(255, 255, 255, .78); font-weight: 300;
}
.brick a:not(.btn) { color: #fff; border-bottom: 1px solid var(--c-cyan); }
.brick a:not(.btn):hover { color: var(--c-cyan); }

/* Meta-grid — small 2-up metadata table (founder, established, etc.)
   that replaces inline-styled <div>/<b> blocks in about.html. Mono
   labels above the value, hairline divider above the group. */
.meta-grid {
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .10);
}
.meta-grid > div { display: flex; flex-direction: column; gap: 6px; }
.meta-grid dt {
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: #fff;
}
.meta-grid dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px; font-weight: 400;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .68);
}
@media (max-width: 540px) { .meta-grid { grid-template-columns: 1fr; } }

/* Method list — small bordered rows used in platform.html's methodology
   callout. Hairline + dark glass to match the new dominant surface. */
.method-list { display: flex; flex-direction: column; gap: 12px; }
.method-row {
  padding: 18px 22px;
  border: 1px solid rgba(124, 216, 224, 0.18);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .02);
  color: rgba(255, 255, 255, .82);
  font-size: 15px; line-height: 1.5;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.method-row:hover { border-color: rgba(124, 216, 224, 0.35); background: rgba(255, 255, 255, .04); }
.method-row b {
  display: block; margin-bottom: 6px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}
.method-row span { display: block; color: #fff; font-weight: 300; }

/* Callout aside — the screenshot card that replaced the decorative
   orb in the home page's pilot callout. Doppelrand structure: an
   outer card holds the screenshot with a hairline + glow, and a
   caption row underneath. The whole thing is a link. */
.callout-aside {
  display: flex; flex-direction: column;
  gap: 16px;
  padding: 10px 10px 12px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(124, 216, 224, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(124, 216, 224, 0.18),
    0 22px 50px -22px rgba(0, 0, 0, 0.55);
  text-decoration: none;
  color: inherit;
  transition: transform .3s var(--ease-emil), box-shadow .3s var(--ease-emil), border-color .3s var(--ease);
}
.callout-aside:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 216, 224, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(124, 216, 224, 0.28),
    0 30px 64px -22px rgba(0, 0, 0, 0.6),
    0 0 30px -8px rgba(124, 216, 224, 0.28);
}
.callout-aside:active { transform: translateY(0); transition-duration: 120ms; }
.callout-aside-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-sm);
  background: var(--c-space-700) center top / cover no-repeat;
}
.callout-aside-cap {
  margin: 0;
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  padding: 4px 6px 6px;
  font-size: 12px; line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

/* ─── footer ───────────────────────────────── */
.foot {
  background: var(--c-space-900);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(64px, 8vh, 96px) 0 40px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.foot-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}
.foot .brand-stack .brand-top,
.foot .brand-stack .brand-bottom { color: #fff; }
.foot .brand-stack { align-items: flex-start; }
.foot-brand p {
  margin: 16px 0 0;
  max-width: 36ch;
  font-size: 14px; line-height: 1.6;
  color: rgba(255,255,255,.7); font-weight: 300;
}
.foot-col h4 {
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.72);    /* WCAG AA fix — was .55 (~4.0:1, failed) */
  margin: 0 0 18px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a {
  font-size: 14px; color: rgba(255,255,255,.82);
  transition: color .2s var(--ease);
}
.foot-col a:hover { color: #fff; }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);  /* WCAG AA fix — was .55 */
}
.foot-bottom .stamp { display: inline-flex; align-items: center; gap: 10px; }
.foot-bottom .stamp .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px rgba(29, 107, 115, 0.6);
  animation: pulse 2.8s var(--ease) infinite;
}

/* ─── floating contact helper ───────────────
   Honest-naming fix — was `chat-fab` with a chat-bubble icon,
   implying a chat widget that doesn't exist. Now a discrete
   envelope pill that opens email/contact, matched to the
   brand's "say what is true" rule. */
.chat-fab {
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  z-index: 60;
  box-shadow:
    inset 0 1px 0 rgba(124, 216, 224, 0.25),
    0 14px 32px -8px rgba(11, 58, 74, 0.4);
  cursor: pointer;
  transition: transform .22s var(--ease-emil), background .2s var(--ease), box-shadow .25s var(--ease);
}
.chat-fab:hover {
  transform: scale(1.05);
  background: var(--accent-2);
  box-shadow:
    inset 0 1px 0 rgba(124, 216, 224, 0.35),
    0 18px 38px -8px rgba(11, 58, 74, 0.48),
    0 0 22px -6px rgba(124, 216, 224, 0.45);
}
.chat-fab:active { transform: scale(.94); transition-duration: 80ms; }
.chat-fab::before {
  content: ""; width: 22px; height: 22px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='M3 7l9 6 9-6'/></svg>") center/contain no-repeat;
}

/* ─── responsive ───────────────────────────── */
@media (max-width: 1100px) {
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .stats-row {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(260px, 1fr);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .stats-row .stat-card { aspect-ratio: 4 / 3; scroll-snap-align: start; }
  .stats-row .stat-card:first-child { aspect-ratio: 4 / 3; }
  .module-row { grid-template-columns: 64px 1fr 1fr 120px; gap: 18px; }
  .signature-inner { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .util-bar { grid-template-columns: auto 1fr auto; gap: 8px; padding: 14px var(--rail); }
  .util-pill { padding: 8px 12px; font-size: 12px; }
  .util-pill .util-label { display: none; }
  .nav-cta { padding: 10px 16px; font-size: 11px; }
  .main-nav { display: none; }
  .nav-mobile-btn { display: inline-flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-card { width: min(80vw, 320px); justify-self: center; }
  .hero-tabs { bottom: 12px; padding: 12px 18px; gap: 20px; }
  .hero-tabs a { font-size: 15px; }
  .tiers { grid-template-columns: 1fr; }
  .module-row { grid-template-columns: 48px 1fr; gap: 14px; padding: 28px 0; }
  .module-row .m-idx { font-size: 28px; }
  .module-row .m-body, .module-row .m-status { grid-column: 2; }
  .module-row .m-status { justify-self: start; margin-top: 8px; }
  .foot-top { grid-template-columns: 1fr; gap: 28px; }
  .signature-tabs { left: 50%; transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto !important; }
  /* Reveal still resolves — just instantly + without blur. */
  .r { opacity: 1 !important; transform: none !important; filter: none !important; }
  .marquee-track { animation: none !important; }
  .tilt { transform: none !important; }
}

/* mobile menu sheet */
.mobile-sheet {
  position: fixed;
  top: 0; right: 0; height: 100dvh; width: min(360px, 84vw);
  z-index: 100;
  background:
    linear-gradient(180deg, rgba(8, 23, 42, 0.92) 0%, rgba(5, 10, 24, 0.96) 100%);
  border-left: 1px solid rgba(124, 216, 224, 0.22);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  transform: translateX(100%);
  transition: transform .35s var(--ease-press);
  display: flex; flex-direction: column;
  padding: 80px 32px 32px;
  box-shadow: -28px 0 80px rgba(0, 0, 0, .55);
}
.mobile-sheet.open { transform: translateX(0); }
.mobile-sheet a {
  font-family: var(--serif);
  font-variation-settings: "opsz" 96, "SOFT" 30;
  font-weight: 400;
  font-size: 28px;
  color: #fff;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.mobile-sheet a:hover { color: var(--c-cyan); }
.sheet-close {
  position: absolute; top: 22px; right: 22px;
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  font-size: 22px; color: #fff;
  transition: background .18s var(--ease), transform .15s var(--ease-emil);
}
.sheet-close:hover { background: rgba(255, 255, 255, .08); }
.sheet-close:active { transform: scale(.92); transition-duration: 80ms; }
.mobile-sheet a {
  padding: 14px 0;
  transition: color .18s var(--ease), transform .15s var(--ease-emil);
}
.mobile-sheet a:active { transform: scale(.985); transition-duration: 80ms; }
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }

/* ─── live data: stamp + pulse ──────────────────────────────────────────── */
.live-stamp {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 8px;
  border-radius: var(--r-pill);
  /* Default = cyan-on-glass for the dark-dominant ground.
     .bg-paper-section override below uses the ink-on-paper variant
     for the rare warm-paper exception. */
  background: var(--live-soft);
  border: 1px solid var(--live-line);
  color: var(--live);
  font-family: var(--mono);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 500;
  vertical-align: 1px;
}
.live-stamp .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(124, 216, 224, .6);
  animation: livePulse 2.4s var(--ease, ease) infinite;
}
/* Ink-on-paper variant — only when a section opts back into paper. */
.section.bg-paper .live-stamp {
  background: rgba(11, 58, 74, 0.06);
  border-color: rgba(11, 58, 74, 0.22);
  color: var(--accent-paper);
}
.section.bg-paper .live-stamp .live-dot {
  background: var(--accent-paper-2);
  box-shadow: 0 0 0 0 rgba(29, 107, 115, .55);
  animation-name: livePulseInk;
}
@keyframes livePulseInk {
  0%   { box-shadow: 0 0 0 0 rgba(29, 107, 115, .55); }
  70%  { box-shadow: 0 0 0 12px rgba(29, 107, 115, 0); }
  100% { box-shadow: 0 0 0 0 rgba(29, 107, 115, 0); }
}
.live-stamp.stale .live-dot {
  background: #c8a87c; box-shadow: none; animation: none;
}
.live-stamp.stale {
  background: rgba(200, 168, 124, .10);
  border-color: rgba(200, 168, 124, .35);
  color: #c8a87c;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(124, 216, 224, .6); }
  70%  { box-shadow: 0 0 0 12px rgba(124, 216, 224, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 216, 224, 0); }
}

/* numbers wake up when they enter the viewport */
[data-stat] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "lnum";
}
[data-stat].awake { opacity: 1; transform: none; }

/* ─── live sectoral pulse ───────────────────────────────────────────────── */
.sector-pulse { padding-top: clamp(40px, 6vh, 80px); }
.sector-figure {
  margin: 0;
  border: 1px solid rgba(124, 216, 224, 0.22);
  background:
    linear-gradient(180deg, rgba(8, 23, 42, 0.62) 0%, rgba(8, 23, 42, 0.82) 100%);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-radius: var(--r-2xl);
  padding: clamp(28px, 4vw, 48px) clamp(24px, 3vw, 40px) clamp(20px, 2.5vw, 32px);
  position: relative;
  overflow: hidden;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(124, 216, 224, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 28px 60px -22px rgba(0, 0, 0, 0.6),
    0 0 32px -8px rgba(124, 216, 224, 0.20);
}
.sector-figure::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(124, 216, 224, .14), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(29, 107, 115, .12), transparent 60%);
  pointer-events: none;
}
.sector-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px clamp(20px, 3vw, 56px);
  position: relative;
}
@media (max-width: 760px) { .sector-list { grid-template-columns: 1fr; } }
.sector-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 3fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.sector-row.in { opacity: 1; transform: none; }
.sector-row:last-child { border-bottom: 0; }
.sector-row .sr-label {
  font-size: 13.5px; font-weight: 500; letter-spacing: .005em;
  color: rgba(255, 255, 255, 0.92);
}
.sector-row .sr-bar {
  position: relative; height: 4px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}
.sector-row .sr-bar::after {
  content: "";
  position: absolute; inset: 0 auto 0 0;
  width: var(--w, 0%);
  border-radius: 999px;
  background: var(--grad-sector-bar);
  transform-origin: left;
  transition: width 1.1s cubic-bezier(.16, 1, .3, 1);
}
.sector-row .sr-num {
  font-family: var(--mono, ui-monospace, "JetBrains Mono", monospace);
  font-size: 12px; font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, 0.72);
  font-variant-numeric: tabular-nums;
  min-width: 38px; text-align: right;
}
.sector-row.is-top .sr-label { color: #fff; }
.sector-row.is-top .sr-num   { color: var(--c-cyan); }
.sector-row { border-bottom-color: rgba(255, 255, 255, .08); }
.sector-meta {
  position: relative; z-index: 1;
  margin-top: clamp(20px, 3vw, 32px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .10);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}
.sector-meta .sm-key { color: #fff; font-weight: 600; }

/* ─── live-now pill — the GCC·Live pill upgraded to a real signal ─────── */
.util-pill .live-dot-pill {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 0 0 rgba(124, 216, 224, .55);
  animation: livePulse 2.4s var(--ease) infinite;
  flex-shrink: 0;
}
.util-pill .util-label.is-live { color: #fff; font-weight: 500; }
.site-header:not(.over-hero) .util-pill .util-label.is-live { color: var(--ink); }

/* ─── Live Funding Field (the signature) ────────────────────────────────── */
.funding-field {
  position: relative;
  isolation: isolate;
  background: var(--grad-space);
  overflow: hidden;
  color: #fff;
  /* Cursor position drives the spotlight (set by JS on pointermove). */
  --ff-mx: 50%;
  --ff-my: 40%;
}
/* Aurora layer — three offset radial blooms that breathe. */
.funding-field::before {
  content: "";
  position: absolute; inset: -10%;
  background:
    radial-gradient(35% 30% at 28% 22%, rgba(11, 58, 74, 0.55) 0%, transparent 70%),
    radial-gradient(40% 32% at 78% 18%, rgba(124, 216, 224, 0.18) 0%, transparent 70%),
    radial-gradient(45% 35% at 50% 90%, rgba(184, 137, 90, 0.10) 0%, transparent 70%),
    radial-gradient(30% 26% at 18% 78%, rgba(29, 107, 115, 0.22) 0%, transparent 70%);
  pointer-events: none;
  animation: ffAurora 28s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes ffAurora {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2%, -1.5%, 0) scale(1.04); }
  100% { transform: translate3d(-1.5%, 2%, 0) scale(1.02); }
}
/* Star-field — sparse, layered behind aurora. */
.funding-field::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 6% 12%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.2px 1.2px at 88% 18%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 18% 78%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 72% 62%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1.2px 1.2px at 92% 92%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 26% 14%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1.4px 1.4px at 42% 36%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 64% 8%, rgba(255,255,255,.5), transparent 60%);
}
/* Mouse-tracking cyan spotlight inside the stage. */
.ff-stage::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(360px circle at var(--ff-mx) var(--ff-my),
    rgba(124, 216, 224, 0.14) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
  transition: opacity .6s var(--ease);
  opacity: 0;
}
.ff-stage:hover::before { opacity: 1; }
@media (hover: none) { .ff-stage::before { display: none; } }
.ff-wrap {
  position: relative; z-index: 2;
  padding: clamp(80px, 12vh, 140px) var(--rail);
  max-width: 1320px; margin: 0 auto;
}
.ff-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: end;
  margin-bottom: clamp(48px, 7vh, 80px);
}
.ff-head .eyebrow { color: var(--c-cyan); }
.ff-head h2 {
  font-family: var(--serif);
  font-variation-settings: var(--ax-display);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 88px);
  line-height: .98; letter-spacing: -.025em;
  color: #fff; margin: 0;
}
.ff-head h2 em {
  font-style: italic;
  font-variation-settings: var(--ax-display-italic);
  color: var(--c-cyan);
}
.ff-head .lead {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.65;
  color: rgba(255, 255, 255, .78);
  max-width: 52ch; margin: 0;
  font-weight: 300;
}
.ff-stage {
  position: relative;
  aspect-ratio: 800 / 560;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
}
.ff-stage svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
/* GCC country shapes — real boundaries from world-atlas 110m
   projected by scripts/gen-gcc-map.mjs. Faint cyan fill with a
   slightly stronger dashed stroke. Saudi gets a touch more presence
   because it carries most of the data. */
.ff-countries { pointer-events: none; }
.ff-country-shape {
  fill: rgba(124, 216, 224, 0.025);
  stroke: rgba(124, 216, 224, 0.28);
  stroke-width: 0.9;
  stroke-dasharray: 4 5;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(124, 216, 224, 0.14));
  transition: fill .35s var(--ease-emil), stroke .35s var(--ease-emil);
}
.ff-country-shape[data-country="saudi-arabia"] {
  fill: rgba(124, 216, 224, 0.045);
  stroke-width: 1.1;
}
.ff-country-shape[data-country="bahrain"] {
  fill: rgba(124, 216, 224, 0.06);
  stroke-dasharray: 2 3;
  stroke-width: 0.7;
}
/* Subtle hover lift — only on devices that hover, only on the lit map. */
@media (hover: hover) and (pointer: fine) {
  .funding-field.ff-lit .ff-country-shape:hover {
    fill: rgba(124, 216, 224, 0.10);
    stroke: rgba(124, 216, 224, 0.55);
  }
}
.ff-grid {
  stroke: rgba(255, 255, 255, .04);
  stroke-width: .5;
}
.ff-dot {
  cursor: pointer;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  /* Concentric ring stagger — set per-dot by JS as --d (frames out from Saudi).
     Entry fades + scales up; once lit, dots breathe with a long pulse. */
  transition:
    opacity .9s cubic-bezier(.16, 1, .3, 1),
    transform .9s cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(var(--d, 0) * 4ms);
}
.funding-field.ff-lit .ff-dot {
  opacity: .82;
  animation: ffBreathe 7s ease-in-out infinite;
  animation-delay: calc(var(--d, 0) * 10ms);
}
.ff-dot:hover {
  opacity: 1 !important;
  filter: drop-shadow(0 0 6px currentColor) drop-shadow(0 0 2px currentColor);
}
@keyframes ffBreathe {
  0%, 100% { opacity: .72; }
  50%      { opacity: .94; }
}
/* Sector-filter dim mode — when a legend swatch is being hovered, dots
   without the matching .ff-match class fall back. */
.funding-field[data-filter-active="true"] .ff-dot {
  opacity: .12;
  filter: none;
}
.funding-field[data-filter-active="true"] .ff-dot.ff-match {
  opacity: 1;
  filter: drop-shadow(0 0 6px currentColor);
}
.ff-country {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  fill: rgba(255, 255, 255, .65);
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(5, 10, 24, 0.6);
  stroke-width: 3;
  stroke-linejoin: round;
}
.ff-country-n {
  fill: var(--c-cyan);
  font-weight: 500;
  font-size: 11px;
}
/* Glassmorphic tooltip — dark glass with inset cyan highlight on top,
   subtle ambient shadow underneath. Sits above the cursor. */
.ff-tooltip {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(124, 216, 224, 0.06) 0%, rgba(8, 23, 42, 0) 60%),
    rgba(8, 23, 42, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(124, 216, 224, 0.20);
  border-radius: 8px;
  padding: 13px 16px 12px;
  max-width: 320px;
  z-index: 5;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s var(--ease), transform .22s var(--ease-out);
  box-shadow:
    inset 0 1px 0 rgba(124, 216, 224, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 12px 32px -8px rgba(0, 0, 0, 0.55),
    0 0 24px -4px rgba(124, 216, 224, 0.18);
}
.ff-tooltip[data-visible="true"] { opacity: 1; transform: translateY(0); }
.ff-tooltip .tip-title {
  font-family: var(--serif);
  font-variation-settings: var(--ax-pill);
  font-size: 15px;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 6px;
}
.ff-tooltip .tip-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin: 0;
}
.ff-foot {
  margin-top: 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px; align-items: end;
}
@media (max-width: 880px) {
  .ff-foot { grid-template-columns: 1fr; }
}
.ff-foot-left {
  display: flex; gap: 36px; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.ff-foot-left strong {
  display: block;
  font-family: var(--serif);
  font-variation-settings: var(--ax-headline);
  font-style: normal;
  font-weight: 400;
  font-size: 36px;
  letter-spacing: -.015em;
  text-transform: none;
  color: #fff;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.ff-foot-left strong.live { color: var(--c-cyan); }

/* Sector legend — a row of swatches that filter the field on hover.
   Glassmorphic chip strip. */
.ff-legend {
  display: flex; flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(124, 216, 224, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  max-width: 100%;
}
.ff-legend-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
  white-space: nowrap;
}
.ff-legend-chip:hover, .ff-legend-chip:focus-visible {
  background: rgba(124, 216, 224, 0.10);
  border-color: rgba(124, 216, 224, 0.25);
  color: #fff;
  transform: translateY(-1px);
}
.ff-legend-chip .sw {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--sw-color, var(--c-cyan));
  box-shadow: 0 0 8px var(--sw-color, var(--c-cyan));
}
.ff-legend-chip .n {
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, .55);
  font-weight: 400;
}
.ff-foot-right { display: flex; justify-content: flex-end; align-items: flex-end; }
.ff-stamp {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.ff-stamp .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 12px rgba(124, 216, 224, .55);
  animation: livePulse 2.4s var(--ease) infinite;
}
@media (max-width: 760px) {
  .ff-head { grid-template-columns: 1fr; gap: 18px; }
  .ff-country { font-size: 9px; }
  .ff-tooltip { max-width: 240px; padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ff-dot { opacity: .82 !important; animation: none !important; transition: none !important; }
  .ff-stamp .dot { animation: none; }
}

/* ─── magnetic CTA polish ───────────────────────────────────────────────── */
.btn[data-magnetic] {
  will-change: transform;
  transition: transform .18s cubic-bezier(.16, 1, .3, 1), background .2s var(--ease), color .2s var(--ease);
}

/* ─── staggered hero entry choreography ─────────────────────────────────── */
.hero[data-entry] .hero-eyebrow,
.hero[data-entry] .hero-title,
.hero[data-entry] .hero-sub,
.hero[data-entry] .hero-cta-row,
.hero[data-entry] .hero-card,
.hero[data-entry] .hero-tabs {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1);
}
.hero[data-entry].entered .hero-eyebrow { opacity: 1; transform: none; transition-delay: .05s; }
.hero[data-entry].entered .hero-title   { opacity: 1; transform: none; transition-delay: .18s; }
.hero[data-entry].entered .hero-sub     { opacity: 1; transform: none; transition-delay: .34s; }
.hero[data-entry].entered .hero-cta-row { opacity: 1; transform: none; transition-delay: .48s; }
.hero[data-entry].entered .hero-card    { opacity: 1; transform: none; transition-delay: .26s; }
.hero[data-entry].entered .hero-tabs    { opacity: 1; transform: none; transition-delay: .6s; }
@media (prefers-reduced-motion: reduce) {
  .hero[data-entry] .hero-eyebrow,
  .hero[data-entry] .hero-title,
  .hero[data-entry] .hero-sub,
  .hero[data-entry] .hero-cta-row,
  .hero[data-entry] .hero-card,
  .hero[data-entry] .hero-tabs,
  .sector-row, [data-stat] {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* ─── tilt cards ────────────────────────────────────────────────────────
   Subtle 3D rotation following the cursor. JS writes --rx / --ry on
   pointermove (rAF-throttled). prefers-reduced-motion override above
   collapses to flat. Touch devices skip the listener entirely. */
.tilt {
  --rx: 0deg;
  --ry: 0deg;
  --tilt-z: 0px;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translate3d(0, 0, var(--tilt-z));
  transition: transform .35s var(--ease-emil), box-shadow .35s var(--ease-emil);
}
.tilt:hover { --tilt-z: 6px; }
.tilt > * { transform: translateZ(0); }
/* Subtle highlight that follows the cursor over the tilting surface,
   driven by --tilt-mx / --tilt-my from the same JS. */
.tilt::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--tilt-mx, 50%) var(--tilt-my, 50%),
    rgba(124, 216, 224, 0.10) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .35s var(--ease-emil);
  z-index: 1;
}
.tilt:hover::after { opacity: 1; }
@media (hover: none) { .tilt { transform: none !important; } .tilt::after { display: none; } }

/* ─── page progress bar ─────────────────────────────────────────────────
   Thin cyan line at the top of the viewport. JS sets --p on the bar
   based on scroll progress; the ::after fills accordingly. */
.page-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 80;
  pointer-events: none;
  background: rgba(255, 255, 255, .04);
}
.page-progress::after {
  content: "";
  position: absolute; inset: 0 auto 0 0;
  width: var(--p, 0%);
  background: linear-gradient(90deg, var(--c-cyan-mid) 0%, var(--c-cyan) 100%);
  box-shadow: 0 0 12px rgba(124, 216, 224, .5);
  transition: width .12s linear;
}
@media (prefers-reduced-motion: reduce) {
  .page-progress::after { transition: none; }
}

/* ─── marquee band ───────────────────────────────────────────────────────
   Continuous horizontal scroll of GCC country names with cyan italic
   asterisks. Duplicated content + translateX(-50%) keyframe = seamless
   infinite loop. Sits between hero and stats on the home page. */
.marquee {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 5vh, 56px) 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: rgba(8, 23, 42, 0.42);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: clamp(28px, 4vw, 56px);
  width: max-content;
  animation: marqueeRoll 38s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  font-family: var(--serif);
  font-variation-settings: "opsz" 96, "SOFT" 30;
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -.015em;
  color: rgba(255, 255, 255, .82);
  white-space: nowrap;
}
.marquee-item em {
  font-style: italic;
  font-variation-settings: "opsz" 96, "SOFT" 100;
  color: var(--c-cyan);
  padding: 0 clamp(8px, 1.4vw, 18px);
}
@keyframes marqueeRoll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ════════════════════════════════════════════════════════════════════════
   ORBIT REDESIGN — hero footage, service vignettes, page polish.
   Everything below is additive: new classes only, tokens from Layer 1/2.
   ════════════════════════════════════════════════════════════════════════ */

/* ─── film grain ─────────────────────────────────────────────────────────
   One fixed, non-interactive layer of SVG turbulence over the whole page.
   Breaks the digital flatness of large dark surfaces. Static (no animation)
   so it costs one composite, nothing more. */
.grain {
  position: fixed; inset: 0;
  z-index: 120;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

/* ─── hero — orbital footage stage ───────────────────────────────────────
   Layer order inside .hero-media (z ascending):
     .hero-cosmos   pure-CSS deep-space ground (always present)
     .hero-still    generated orbital still, slow Ken Burns (if shipped)
     video.hero-video ×2   generated footage, crossfade loop (if shipped)
     .hero-scrim    legibility gradients
   JS only ever *adds* layers, so the hero can never go blank. */
.hero--orbit { min-height: clamp(680px, 100dvh, 1020px); }
.hero--orbit .hero-media {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero--orbit .hero-cosmos {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 70% 100%, rgba(11, 58, 74, 0.50) 0%, transparent 65%),
    radial-gradient(45% 35% at 18% 12%, rgba(124, 216, 224, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--c-space-900) 0%, var(--c-space-700) 55%, #0b2336 100%);
}
.hero--orbit .hero-cosmos::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 20%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1px 1px at 80% 15%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 30% 70%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 65% 60%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 90% 85%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 22% 90%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 50% 30%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 38% 8%, rgba(255,255,255,.55), transparent 60%);
}
.hero--orbit .hero-still,
.hero--orbit .hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
/* The whole media stack breathes — an ultra-slow alternating zoom that
   doubles as the Ken Burns move for the still and seam-cover for the loop. */
.hero--orbit .hero-still,
.hero--orbit .hero-video {
  animation: heroDrift 44s var(--ease) infinite alternate;
  will-change: transform;
}
@keyframes heroDrift {
  from { transform: scale(1.0)  translate3d(0, 0, 0); }
  to   { transform: scale(1.07) translate3d(0, -1.2%, 0); }
}
.hero--orbit .hero-video {
  opacity: 1;
  transition: opacity .9s linear;
}
/* While footage is active, mute the still underneath so compression
   artifacts don't double up. */
.hero--orbit [data-hero-video][data-state="video"] .hero-still { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero--orbit .hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 10, 24, .62) 0%, rgba(5, 10, 24, .12) 26%, rgba(5, 10, 24, .10) 55%, rgba(8, 23, 42, .88) 100%),
    radial-gradient(70% 90% at 18% 62%, rgba(5, 10, 24, .58) 0%, transparent 65%);
}
/* Bottom hairline so the hero hands off cleanly to the marquee band. */
.hero--orbit::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 216, 224, .25), transparent);
}

/* Mission readout — one quiet mono line of real numbers under the copy. */
.hero-readout {
  margin-top: clamp(28px, 4vh, 44px);
  display: flex; flex-wrap: wrap;
  gap: clamp(18px, 3vw, 44px);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--faint);
}
.hero-readout .ro-item { display: flex; align-items: baseline; gap: 8px; }
.hero-readout .ro-num {
  color: rgba(255, 255, 255, .92);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.hero-readout .ro-item--live .ro-num { color: var(--live); }
.hero-readout .ro-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--live);
  align-self: center;
  box-shadow: 0 0 8px rgba(124, 216, 224, .8);
  animation: roPulse 2.6s var(--ease) infinite;
}
@keyframes roPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
.hero[data-entry] .hero-readout { opacity: 0; transform: translateY(14px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.hero[data-entry].entered .hero-readout { opacity: 1; transform: none; transition-delay: .56s; }

/* ─── services — alternating module rows with working vignettes ────────── */
.svc-rows { display: grid; }
.svc-row {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding: clamp(56px, 9vh, 104px) 0;
}
.svc-row + .svc-row { border-top: 1px solid var(--hair); }
/* Zig-zag: even rows flip columns. */
.svc-row:nth-child(even) { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.svc-row:nth-child(even) .svc-copy { order: 2; }
.svc-row:nth-child(even) .svc-stage { order: 1; }

.svc-copy .svc-index {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--faint);
  margin: 0 0 18px;
}
.svc-copy .svc-index em { font-style: normal; color: var(--accent-2); }
.svc-row[data-status="planned"] .svc-copy .svc-index em { color: var(--gold); }
.svc-copy h3 {
  font-family: var(--serif);
  font-variation-settings: var(--ax-headline);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.04;
  letter-spacing: -.018em;
  margin: 0 0 18px;
  color: var(--ink);
  text-wrap: balance;
}
.svc-copy h3 em { font-style: italic; font-variation-settings: var(--ax-headline-italic); color: var(--accent-2); }
.svc-row[data-status="planned"] .svc-copy h3 em { color: rgba(255, 255, 255, .75); }
.svc-copy p {
  margin: 0 0 22px;
  max-width: 52ch;
  color: var(--ink-2);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.65;
  font-weight: 300;
}
.svc-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 26px; padding: 0;
  list-style: none;
}
.svc-meta li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
  padding: 6px 12px;
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-pill);
}
.svc-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, .45);
  padding-bottom: 3px;
  transition: gap .2s var(--ease), border-color .2s var(--ease);
}
.svc-link:hover { gap: 16px; border-color: var(--accent-2); }
.svc-link .arr { transition: transform .2s var(--ease); }
.svc-link:hover .arr { transform: translateX(2px); }

/* Status chips — live is cyan and only ever set on the two live modules;
   planned is italic serif, no cyan anywhere near it. */
.chip-live, .chip-planned {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  padding: 6px 14px;
  border-radius: var(--r-pill);
}
.chip-live {
  color: var(--live);
  border: 1px solid var(--live-line);
  background: var(--live-soft);
}
.chip-live .live-dot { width: 6px; height: 6px; }
.chip-planned {
  color: var(--faint);
  border: 1px solid var(--hair);
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 30, "SOFT" 100;
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: none;
}
/* Vignettes that lost their data connection drop the live chip entirely. */
[data-vig][data-state="offline"] .chip-live { display: none; }

/* The stage — a glass panel every vignette sits inside. */
.svc-stage {
  position: relative;
  border-radius: var(--r-2xl);
  border: 1px solid var(--hair);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, .035) 0%, rgba(255, 255, 255, .012) 45%, rgba(5, 10, 24, .25) 100%),
    rgba(5, 16, 28, .55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    0 30px 80px -30px rgba(0, 0, 0, .6);
  padding: clamp(20px, 2.2vw, 30px);
  min-height: 340px;
  display: grid;
  isolation: isolate;
  overflow: hidden;
}
.svc-stage::before {
  /* faint interior glow anchored top-left so every panel shares one light */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 18% 0%, rgba(124, 216, 224, .07) 0%, transparent 60%);
  pointer-events: none;
}
.svc-row[data-status="planned"] .svc-stage::before {
  background: radial-gradient(60% 50% at 18% 0%, rgba(184, 137, 90, .08) 0%, transparent 60%);
}
.svc-stage .stage-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.svc-stage .stage-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
}

/* All vignette keyframe loops obey the IO pause + reduced motion. */
[data-vig][data-vig-state="paused"] .vanim { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .vanim { animation: none !important; }
  .hero--orbit .hero-still, .hero--orbit .hero-video { animation: none !important; }
}

/* — 01 · database ticker — */
.vdb-viewport {
  position: relative;
  overflow: hidden;
  max-height: 320px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 86%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 86%, transparent 100%);
}
.vdb-track {
  list-style: none; margin: 0; padding: 0;
  animation: vdbScroll calc(var(--vdb-rows, 12) * 2.6s) linear infinite;
}
@keyframes vdbScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, -50%, 0); }
}
.vdb-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.vdb-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--live);
  opacity: .75;
}
.vdb-title {
  font-size: 13.5px;
  color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vdb-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--faint);
  white-space: nowrap;
}
/* offline skeleton — abstract bars, deliberately not pretending to be data */
.vdb-skeleton { animation: none; }
.vdb-skeleton .vdb-row { grid-template-columns: minmax(0, 1fr) auto; }
.vdb-bar {
  height: 9px; border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
}
.vdb-bar--meta { width: 22%; }

/* — 02 · dashboard — */
.vdash {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  align-content: start;
}
.vdash-kpi {
  grid-column: 1 / -1;
  display: flex; align-items: baseline; gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  padding-bottom: 16px;
}
.vdash-kpi .num {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(44px, 4.4vw, 64px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.vdash-kpi .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  max-width: 12ch;
  line-height: 1.5;
}
.vdash-sub {
  display: grid; gap: 6px;
  align-content: start;
}
.vdash-sub .num {
  font-family: var(--serif);
  font-variation-settings: "opsz" 96, "SOFT" 30;
  font-size: 28px; line-height: 1;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.vdash-sub .lbl {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--faint);
}
/* unlabeled texture: five bars + a sparkline that draw in once */
.vdash-bars {
  display: flex; align-items: flex-end; gap: 8px;
  height: 64px;
}
.vdash-bars span {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--c-cyan) 0%, var(--c-cyan-mid) 100%);
  opacity: .85;
  height: calc(var(--h) * 1%);
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 1s var(--ease-emil);
}
.vdash-drawn .vdash-bars span { transform: scaleY(1); }
.vdash-drawn .vdash-bars span:nth-child(1) { transition-delay: .10s; }
.vdash-drawn .vdash-bars span:nth-child(2) { transition-delay: .22s; }
.vdash-drawn .vdash-bars span:nth-child(3) { transition-delay: .34s; }
.vdash-drawn .vdash-bars span:nth-child(4) { transition-delay: .46s; }
.vdash-drawn .vdash-bars span:nth-child(5) { transition-delay: .58s; }
.vdash-spark { grid-column: 1 / -1; }
.vdash-spark path {
  fill: none;
  stroke: var(--c-cyan);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  opacity: .9;
}
.vdash-drawn .vdash-spark path { animation: sparkDraw 1.6s var(--ease-out) .3s forwards; }
@keyframes sparkDraw { to { stroke-dashoffset: 0; } }
.vdash-spark circle {
  fill: var(--c-cyan);
  opacity: 0;
}
.vdash-drawn .vdash-spark circle { animation: roPulse 2.6s var(--ease) 1.9s infinite; }
@media (prefers-reduced-motion: reduce) {
  .vdash-bars span { transform: none; transition: none; }
  .vdash-spark path { stroke-dashoffset: 0; animation: none; }
  .vdash-spark circle { opacity: 1; animation: none; }
}

/* — 03 · global coverage arcs (planned · no cyan) — */
.vglobe { display: grid; }
.vglobe svg { width: 100%; height: auto; display: block; }
.vglobe .gl-grid { stroke: rgba(255, 255, 255, .10); fill: none; stroke-width: .7; }
.vglobe .gl-land { fill: rgba(255, 255, 255, .05); }
.vglobe .gl-node {
  fill: var(--gold);
  opacity: .9;
}
.vglobe .gl-node--home {
  fill: #fff;
}
.vglobe .gl-halo {
  fill: none;
  stroke: rgba(184, 137, 90, .45);
  stroke-width: 1;
  transform-origin: center;
  transform-box: fill-box;
  animation: glHalo 3.6s var(--ease) infinite;
}
@keyframes glHalo {
  0%   { transform: scale(.4); opacity: .9; }
  100% { transform: scale(2.6); opacity: 0; }
}
.vglobe .gl-arc {
  fill: none;
  stroke: rgba(255, 255, 255, .38);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-dasharray: 6 7;
  animation: glArc 9s linear infinite;
}
.vglobe .gl-arc:nth-of-type(2) { animation-delay: -3s; }
.vglobe .gl-arc:nth-of-type(3) { animation-delay: -6s; }
@keyframes glArc { to { stroke-dashoffset: -130; } }
.vglobe .gl-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  fill: rgba(255, 255, 255, .55);
}
.vglobe .gl-label--dim { fill: rgba(255, 255, 255, .35); }
@media (prefers-reduced-motion: reduce) {
  .vglobe .gl-arc, .vglobe .gl-halo { animation: none; }
}

/* — 04 · API terminal (planned · no cyan) — */
.vapi {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
  align-self: start;
}
.vapi-chrome {
  display: flex; gap: 6px;
  margin-bottom: 18px;
}
.vapi-chrome span {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255, 255, 255, .14);
}
.vapi-cmdline { display: flex; gap: 10px; align-items: baseline; min-height: 1.75em; }
.vapi-prompt { color: var(--gold); user-select: none; }
.vapi-cmd { color: var(--ink); word-break: break-all; }
.vapi-caret {
  display: inline-block;
  width: 7px; height: 15px;
  background: rgba(255, 255, 255, .8);
  vertical-align: -2px;
  animation: caretBlink 1.1s steps(1) infinite;
}
.vapi-done .vapi-caret { display: none; }
@keyframes caretBlink { 50% { opacity: 0; } }
.vapi-line {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  color: var(--muted);
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vapi-line.shown { opacity: 1; transform: none; }
.vapi-line .k { color: rgba(255, 255, 255, .85); }
.vapi-line .s { color: var(--gold); }
.vapi-status { color: var(--faint); }
@media (prefers-reduced-motion: reduce) {
  .vapi-caret { animation: none; }
  .vapi-line { opacity: 1; transform: none; transition: none; }
}

/* ─── sector pulse — collapsible list ──────────────────────────────────── */
.sector-figure[data-collapsible]:not([data-expanded="true"]) .sector-row:nth-child(n + 9) { display: none; }
.sector-toggle {
  margin: 18px auto 0;
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 22px;
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-pill);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.sector-toggle:hover {
  color: var(--ink);
  border-color: rgba(124, 216, 224, .45);
  background: rgba(124, 216, 224, .06);
}

/* ─── small fixes ──────────────────────────────────────────────────────── */
/* Stats row: scroll stays, scrollbar chrome goes. Arrows already exist. */
.stats-row { scrollbar-width: none; }
.stats-row::-webkit-scrollbar { display: none; }

/* ─── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 920px) {
  .svc-row,
  .svc-row:nth-child(even) { grid-template-columns: 1fr; gap: 28px; }
  .svc-row:nth-child(even) .svc-copy { order: 1; }
  .svc-row:nth-child(even) .svc-stage { order: 2; }
  .svc-stage { min-height: 0; }
  .vdb-viewport { max-height: 260px; }
  .hero-readout { gap: 16px 24px; }
}


/* ─── editorial pullquote (one moment per page) ─────────────────────────
   Full-bleed huge Fraunces quote with cyan italic emphasis. Used to
   break the rhythm between two card-heavy sections. */
.pullquote {
  position: relative;
  padding: clamp(96px, 14vh, 160px) var(--rail);
  text-align: center;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.pullquote::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 50% 30%, rgba(124, 216, 224, 0.10) 0%, transparent 60%),
    radial-gradient(40% 50% at 20% 90%, rgba(11, 58, 74, 0.45) 0%, transparent 60%);
}
.pullquote q {
  quotes: none;
  display: block;
  max-width: 18ch;
  margin: 0 auto;
  font-family: var(--serif);
  font-variation-settings: var(--ax-display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 124px);
  line-height: 1.02;
  letter-spacing: -.025em;
}
.pullquote q em {
  font-style: italic;
  font-variation-settings: var(--ax-display-italic);
  color: var(--c-cyan);
}
.pullquote .pullquote-cite {
  display: block;
  margin: clamp(32px, 5vh, 56px) auto 0;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.pullquote .pullquote-cite::before {
  content: "";
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--c-cyan);
  vertical-align: middle;
  margin-right: 14px;
  opacity: .72;
}

/* ─── sticky section heads — for long sections like the module list ─── */
.section-head.section-head--sticky {
  position: sticky;
  top: clamp(80px, 12vh, 120px);
  z-index: 5;
  background: linear-gradient(180deg, rgba(8, 23, 42, .92) 0%, rgba(8, 23, 42, .82) 60%, rgba(8, 23, 42, 0) 100%);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  padding: clamp(20px, 3vh, 32px) clamp(20px, 3vw, 32px);
  margin: 0 calc(-1 * clamp(20px, 3vw, 32px)) clamp(24px, 4vh, 40px);
  border-radius: var(--r-lg);
  border: 1px solid rgba(124, 216, 224, .14);
}
