/* Exponic home v3 pilot — cinematic scroll story over one world.
   Art direction: Rihards' storyboard image (fjord at dawn → night → sunrise, glass UI, golden thread).
   Motion grammar: one travelling object (the wordmark), full-viewport chapters, scrubbed reveals.
   Copy: D9 / GHOST_STORY_v5 §3.1 only. Modes: .is-cinema (GSAP), .is-static (reduced motion / no GSAP), .no-js. */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/site/assets/fonts/figtree-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/site/assets/fonts/jetbrains-mono-latin-var.woff2") format("woff2");
}

:root {
  --night: #06101f;
  --deep: #0a1a33;
  --navy: #0d2a57;
  --brand: #034da8;
  --sky: #55b4fa;
  --ice: #b9e0ff;
  --gold: #ffd166;
  --gold-hot: #ffe39a;
  --paper: #f3f6fb;
  --mist: rgb(243 246 251 / 0.74);
  --faint: rgb(243 246 251 / 0.52);
  --line: rgb(243 246 251 / 0.18);
  --logo-ink: #0b2350;
  --logo-spiral-d: #034da8;
  --logo-spiral-l: #55b4fa;

  --font: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4.4vw, 72px);
  --mast-h: 76px;
  --ease: cubic-bezier(0.22, 0.8, 0.22, 1);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--paper);
  background: linear-gradient(180deg, #2c4f80 0%, #0d2142 40%, #06101f 100%) fixed;
  background-color: var(--night);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--gold);
  color: var(--deep);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* ── The world ─────────────────────────────────────────────── */

.world {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.world canvas,
.world video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.no-js .world canvas {
  display: none;
}
.world-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgb(3 8 18 / 0.55) 100%),
    linear-gradient(
      180deg,
      rgb(3 8 18 / 0.28) 0%,
      transparent 18%,
      transparent 80%,
      rgb(3 8 18 / 0.35) 100%
    );
}
.world-grain {
  position: absolute;
  inset: -50%;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.is-cinema .world-grain {
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-4%, 3%);
  }
  50% {
    transform: translate(3%, -2%);
  }
  75% {
    transform: translate(-2%, -4%);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* ── Logo ──────────────────────────────────────────────────── */

.logo-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.logo-svg .lw {
  fill: var(--logo-ink);
}
.logo-svg .ls-d {
  fill: var(--logo-spiral-d);
}
.logo-svg .ls-l {
  fill: var(--logo-spiral-l);
}
/* Letter and spiral transforms are GSAP-owned (it writes the SVG transform attribute with its own origin). */

.fly-logo {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  width: 300px;
  transform-origin: 0 0;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 10px 40px rgb(255 214 150 / 0.35));
}
/* The flying wordmark takes its colours from the sky (world.js → --w-*) and turns white as it docks. */
.fly-logo .logo-svg {
  --logo-ink: color-mix(in srgb, #fff calc(var(--fly-k, 0) * 100%), var(--w-ink, #0b2350));
  --logo-spiral-d: color-mix(
    in srgb,
    #8cc8ff calc(var(--fly-k, 0) * 70%),
    var(--w-spiral-d, #034da8)
  );
  --logo-spiral-l: var(--w-spiral-l, #55b4fa);
}
.no-js .fly-logo,
.is-static .fly-logo {
  display: none;
}

/* ── Masthead ──────────────────────────────────────────────── */

.mast {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
}
.mast::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(6 16 31 / 0.72), rgb(6 16 31 / 0.28));
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  opacity: var(--mast-bg, 1);
  transition: opacity 0.4s var(--ease);
}
.mast-nav {
  position: relative;
  height: var(--mast-h);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 var(--gutter);
}
.brand {
  display: block;
  flex: none;
  border-radius: 8px;
}
.brand-slot {
  display: block;
  width: 128px;
}
.brand-slot .logo-svg {
  --logo-ink: #fff;
  --logo-spiral-d: var(--sky);
  --logo-spiral-l: var(--ice);
}
.is-cinema .brand-slot .logo-svg {
  visibility: hidden;
}

.mast-links {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}
.mast-links > li > a,
.mast-login {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 520;
  text-decoration: none;
  color: var(--mist);
  transition:
    color 0.2s,
    background-color 0.2s;
}
.mast-links > li > a:hover,
.mast-login:hover {
  color: var(--paper);
  background: rgb(255 255 255 / 0.08);
}
.mast-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Before the logo lands the nav is quiet; focus always reveals it. */
.is-cinema .mast-links,
.is-cinema .mast-actions {
  opacity: var(--nav-in, 0);
  transform: translateY(calc((1 - var(--nav-in, 0)) * -8px));
}
.is-cinema .mast:focus-within .mast-links,
.is-cinema .mast:focus-within .mast-actions {
  opacity: 1;
  transform: none;
}
.is-cinema .mast:not(.is-docked) .mast-links,
.is-cinema .mast:not(.is-docked) .mast-actions {
  pointer-events: none;
}
.is-cinema .mast:focus-within .mast-links,
.is-cinema .mast:focus-within .mast-actions {
  pointer-events: auto;
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  color: var(--paper);
  font: 600 14px var(--font);
  cursor: pointer;
}
.menu-icon {
  display: grid;
  gap: 4px;
  width: 16px;
}
.menu-icon span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}
.menu-btn[aria-expanded="true"] .menu-icon span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] .menu-icon span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}
.menu {
  position: relative;
  padding: 8px var(--gutter) 24px;
  background: rgb(6 16 31 / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.menu-inner {
  display: grid;
  gap: 4px;
}
.menu-inner a {
  padding: 12px 4px;
  font-size: 20px;
  font-weight: 560;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.menu-inner .btn {
  margin-top: 16px;
  border: 0;
  justify-content: center;
}

@media (max-width: 960px) {
  :root {
    --mast-h: 64px;
  }
  .mast-links,
  .mast-login {
    display: none;
  }
  .mast-actions {
    margin-left: auto;
  }
  .mast-actions .btn-sm {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .brand-slot {
    width: 112px;
  }
}

/* ── Chapter rail ──────────────────────────────────────────── */

.rail {
  position: fixed;
  right: calc(var(--gutter) * 0.5);
  top: 50%;
  z-index: 20;
  transform: translateY(-50%);
  display: none;
}
.rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.rail a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 4px 6px;
  font: 500 11px / 1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: transparent;
  text-decoration: none;
  white-space: nowrap;
}
.rail a .rail-label {
  position: absolute;
  right: 100%;
  opacity: 0;
  color: var(--mist);
  transition: opacity 0.3s;
}
.rail a:hover .rail-label,
.rail a:focus-visible .rail-label {
  opacity: 1;
}
.rail a .rail-num {
  color: var(--faint);
  transition: color 0.3s;
}
.rail a::after {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--faint);
  transition:
    width 0.4s var(--ease),
    background-color 0.3s;
}
.rail a[aria-current="true"] .rail-num {
  color: var(--gold);
}
.rail a[aria-current="true"]::after {
  width: 28px;
  background: var(--gold);
}
@media (min-width: 1100px) {
  .is-cinema .rail {
    display: block;
    opacity: var(--nav-in, 0);
  }
  .is-cinema .stage {
    padding-right: calc(var(--gutter) + 56px);
  }
}

/* ── Chapters ──────────────────────────────────────────────── */

main {
  position: relative;
  z-index: 10;
}
.ch {
  position: relative;
  overflow-x: clip;
}
.stage {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--mast-h) + 40px) var(--gutter) 56px;
  display: grid;
  align-content: center;
  gap: 36px;
}
.is-cinema .ch {
  height: var(--len, 200vh);
}
.is-cinema .stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: clip;
}
.is-cinema .ch-hero {
  --len: 130vh;
}
.is-cinema .ch-grow {
  --len: 200vh;
}
.is-cinema .ch-gos {
  --len: 200vh;
}
.is-cinema .ch-ws {
  --len: 290vh;
}
.is-cinema .ch-benefit {
  --len: 250vh;
}
.is-cinema .ch-proof {
  --len: 230vh;
}
.is-cinema .ch-stages {
  --len: 340vh;
}
.is-cinema .ch-about {
  --len: 190vh;
}
.is-cinema .ch-book {
  --len: 210vh;
}

/* Static modes give each chapter a calm, legible backdrop instead of the moving world. */
.is-static .ch,
.no-js .ch {
  border-top: 1px solid var(--line);
}
.is-static .stage,
.no-js .stage {
  background: linear-gradient(180deg, rgb(6 16 31 / 0.2), rgb(6 16 31 / 0.55));
}

/* Type */
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font: 500 12px / 1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
}
.kicker span {
  color: var(--gold);
}
.kicker::after {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--line);
}
.display {
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgb(3 8 18 / 0.35);
}
.display-md {
  font-size: clamp(2rem, 4.1vw, 3.9rem);
  line-height: 1.06;
}
.display-xl {
  font-size: clamp(2.8rem, 7.4vw, 7rem);
}
.lede {
  margin-top: 24px;
  max-width: 34ch;
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  line-height: 1.5;
  color: var(--mist);
  text-wrap: pretty;
}
.lede-sm {
  font-size: clamp(1rem, 1.15vw, 1.12rem);
}

.w {
  display: inline-block;
  overflow: clip;
  overflow-clip-margin: 0.12em;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.w > span {
  display: inline-block;
  will-change: transform;
}

.copy {
  position: relative;
  max-width: 62rem;
}
.copy::before {
  content: "";
  position: absolute;
  inset: -18% -14%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgb(4 12 26 / 0.42), transparent);
}
.copy-end {
  justify-self: end;
  max-width: 40rem;
}
.copy-start {
  justify-self: start;
}

/* Buttons and links */
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font: 650 16px / 1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background-color 0.25s;
}
.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14.5px;
}
.btn-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--gold);
  color: #0a1a33;
  box-shadow: 0 8px 28px -10px rgb(255 209 102 / 0.7);
}
.btn-cta:hover {
  transform: translateY(-2px);
  background: var(--gold-hot);
  box-shadow: 0 14px 40px -12px rgb(255 209 102 / 0.9);
}
.btn-ghost {
  color: var(--paper);
  border: 1px solid rgb(255 255 255 / 0.32);
  background: rgb(255 255 255 / 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgb(255 255 255 / 0.12);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-weight: 620;
  text-decoration: none;
  color: var(--gold);
  border-bottom: 1px solid rgb(255 209 102 / 0.35);
  padding-bottom: 2px;
  transition:
    gap 0.3s var(--ease),
    border-color 0.3s;
}
.link-arrow:hover {
  gap: 14px;
  border-color: var(--gold);
}

.glass {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.11), rgb(255 255 255 / 0.03));
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 18px;
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.16),
    0 30px 80px -36px rgb(0 0 0 / 0.7);
}

.aside-note {
  justify-self: end;
  max-width: 26rem;
  color: var(--mist);
  font-size: 1.08rem;
  display: grid;
  gap: 10px;
}
.aside-note p {
  text-wrap: pretty;
}
.aside-note .link-arrow {
  justify-self: start;
}

/* 01a · Hero */
.ch-hero .stage {
  align-content: start;
  padding-top: max(13vh, calc(var(--mast-h) + 20px));
}
.hero-lockup {
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: clamp(14px, 2.2vw, 28px);
  width: 100%;
}
.hero-logo-box {
  width: min(34vw, 460px);
  aspect-ratio: 2292 / 606;
}
/* The statement is the hero's big type: "Growth OS" heavy and tight, lit from below like the dawn,
   "for your company" a wide-spaced line under it. Colours follow the sky (world.js → --w-ink). */
.hero-eyebrow {
  display: grid;
  justify-items: center;
  gap: clamp(8px, 1.1vw, 16px);
  text-align: center;
  color: var(--w-ink, #10284f);
}
.he-main {
  font: 800 clamp(3.2rem, 9.5vw, 9rem) / 0.9 var(--font);
  letter-spacing: -0.045em;
  background: linear-gradient(
    180deg,
    var(--w-ink, #10284f) 35%,
    color-mix(in srgb, var(--w-ink, #10284f) 55%, #ffb44d) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 30px rgb(255 214 150 / 0.35));
  padding-bottom: 0.06em;
}
.he-sub {
  font: 650 clamp(1rem, 2.1vw, 1.9rem) / 1 var(--font);
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  text-transform: uppercase;
}
.hero-aside {
  position: absolute;
  right: var(--gutter);
  top: 48%;
  font: 600 clamp(11px, 0.95vw, 14px) / 1.9 var(--font);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.9);
  text-shadow: 0 1px 16px rgb(3 8 18 / 0.5);
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: 10px;
  font: 500 10px / 1 var(--mono);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.8);
}
.scroll-cue i {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, #fff, transparent);
  transform-origin: top;
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0% {
    transform: scaleY(0);
    opacity: 1;
  }
  60% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}
/* In static modes the hero logo is drawn in the box itself (the fly-logo is hidden). */
.is-static .hero-logo-box,
.no-js .hero-logo-box {
  background: url("/site/assets/img/logo/exponic-logo.svg") center / contain no-repeat;
}
.is-static .hero-eyebrow,
.no-js .hero-eyebrow {
  color: var(--paper);
}
.is-static .he-main,
.no-js .he-main {
  background: none;
  color: var(--paper);
}
@media (max-width: 700px) {
  .hero-aside {
    top: auto;
    bottom: 110px;
    right: auto;
    left: var(--gutter);
  }
}

/* 01b · Grow */
.ch-grow .stage {
  align-content: end;
  padding-bottom: 12vh;
}
@media (max-width: 700px) {
  .copy-end {
    justify-self: start;
  }
}

/* 02 · Growth OS */
/* The film sits on the right, the note under it; the frame unclips into place on scroll (home-v3.js). */
.ch-gos .stage {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: center;
  align-content: center;
  column-gap: clamp(32px, 5vw, 88px);
}
.ch-gos .copy-start {
  max-width: 34rem;
}
.gos-side {
  justify-self: end;
  width: min(100%, 780px);
  display: grid;
  gap: clamp(20px, 2.6vw, 30px);
}
.ch-gos .aside-note {
  justify-self: start;
  max-width: 30rem;
  padding-left: 2px;
}
.gos-side {
  perspective: 1600px;
  perspective-origin: 60% 40%;
}
.gos-film {
  position: relative;
  margin: 0;
  transform-style: preserve-3d;
  transform-origin: 50% 85%;
  will-change: transform;
}
/* Switch-on/off light (a cold white bloom) and a glare that crosses the glass once. */
.gos-film-flash,
.gos-film-glare {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.gos-film-flash {
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(60% 6% at 50% 50%, #fff, rgb(200 230 255 / 0.9) 40%, transparent 100%),
    linear-gradient(
      180deg,
      rgb(170 215 255 / 0.55),
      rgb(230 244 255 / 0.85) 50%,
      rgb(170 215 255 / 0.55)
    );
  mix-blend-mode: screen;
}
.gos-film-glare {
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 38%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgb(255 255 255 / 0.16) 48%,
    rgb(190 225 255 / 0.22) 52%,
    transparent 80%
  );
  transform: translateX(-140%) skewX(-12deg);
  mix-blend-mode: screen;
}
/* Blue-hour light pooling behind the frame. */
.gos-film::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  z-index: -1;
  background:
    radial-gradient(50% 55% at 55% 50%, rgb(85 180 250 / 0.26), transparent 72%),
    radial-gradient(40% 40% at 30% 70%, rgb(31 56 100 / 0.5), transparent 75%);
  filter: blur(28px);
  opacity: var(--glow, 1);
  pointer-events: none;
}
.gos-film-frame {
  --cy: 0;
  --cx: 0;
  clip-path: inset(calc(var(--cy) * 1%) calc(var(--cx) * 1%) round calc(18px - var(--cy) * 0.33px));
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  background: #142a4a;
  border: 1px solid rgb(255 255 255 / 0.16);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.12),
    0 40px 110px -40px rgb(0 0 0 / 0.85),
    0 0 0 6px rgb(255 255 255 / 0.025);
}
.gos-film-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 50%;
}
/* A fine edge-light along the top of the frame, like glass catching the sky. */
.gos-film-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.08), transparent 18%);
  pointer-events: none;
}
/* Player controls: Full screen + Sound bottom-right; Replay bottom-left once the film has ended. */
.gos-film-ui {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 8px;
  opacity: calc(var(--in, 1) * 0.8);
  transition: opacity 0.3s ease;
}
.gos-film:hover .gos-film-ui,
.gos-film-ui:focus-within,
.gos-film-ui:has([aria-pressed="true"]) {
  opacity: var(--in, 1);
}
.gos-film-btn,
.gos-film-replay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  min-width: 36px;
  padding: 0 14px 0 11px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.24);
  background: rgb(8 20 40 / 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #f3f6fb;
  font: 600 13px / 1 var(--font);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background-color 0.3s,
    transform 0.3s cubic-bezier(0.22, 0.8, 0.22, 1);
}
.gos-film-full {
  padding: 0;
}
.gos-film-btn:hover,
.gos-film-replay:hover {
  background: rgb(8 20 40 / 0.68);
  transform: translateY(-1px);
}
.gos-film-btn:focus-visible,
.gos-film-replay:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.gos-film-btn[hidden],
.gos-film-replay[hidden],
.gos-film-ui[hidden] {
  display: none;
}
.gos-film-btn svg,
.gos-film-replay svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gos-film-sound .spk {
  fill: currentColor;
  stroke: none;
}
.gos-film-sound .on,
.gos-film-sound[aria-pressed="true"] .off {
  display: none;
}
.gos-film-sound[aria-pressed="true"] .on {
  display: inline;
}
/* Replay waits bottom-left over the held last frame, leaving the end card clear. */
.gos-film-replay {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  min-height: 36px;
  padding: 0 16px 0 12px;
  font-size: 13.5px;
  background: rgb(8 20 40 / 0.55);
  box-shadow: 0 18px 50px -20px rgb(0 0 0 / 0.8);
  animation: gos-film-replay-in 0.6s cubic-bezier(0.22, 0.8, 0.22, 1) both;
}
.gos-film-replay svg {
  width: 18px;
  height: 18px;
}
@keyframes gos-film-replay-in {
  from {
    opacity: 0;
    scale: 0.9;
  }
}
.gos-film-frame {
  cursor: zoom-in;
}
@media (max-width: 860px) {
  .gos-film-ui {
    right: 10px;
    bottom: 10px;
  }
  .gos-film-replay {
    left: 10px;
    bottom: 10px;
  }
  .gos-film-btn {
    min-height: 34px;
    min-width: 34px;
  }
}
.is-cinema .ch-gos {
  --len: 280vh;
}
@media (max-width: 860px) {
  .ch-gos .stage {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }
  .gos-side {
    justify-self: stretch;
    width: 100%;
  }
  .gos-film-frame {
    border-radius: 14px;
  }
}

/* 03 · Workstreams ring: a circle beside the copy; the light traces each workstream's label in turn.
   The copy sits level with the ring: headline above its centre line, the note below it. */
.ch-ws .stage {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  grid-template-rows: 1fr 1fr;
  align-content: center;
  gap: 24px 32px;
}
.ws-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
}
.ws-note {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  align-self: start;
}
.ring {
  grid-column: 2;
  grid-row: 1 / 3;
  position: relative;
  margin: 0;
  align-self: center;
  justify-self: start;
  /* the left-hand labels reach ~0.4 of the ring's width past its box, so the ring is pushed right by
     that much: a label never lands on the headline or the note */
  --rw: min(32vw, 60svh);
  margin-left: calc(var(--rw) * var(--rm, 0.27));
  width: var(--rw);
  aspect-ratio: 1;
}
@media (max-width: 1180px) {
  .ring {
    --rw: min(28vw, 58svh);
    --rm: 0.38;
  }
}
.ws-copy .display {
  font-size: clamp(2.2rem, min(5vw, 9.5svh), 5.2rem);
}
.ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ring-base {
  fill: none;
  stroke: rgb(255 255 255 / 0.3);
  stroke-width: 2.5;
  stroke-dasharray: 1;
}

.ring-trail {
  fill: none;
  stroke: url(#ring-grad);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ring-trail-2 {
  stroke-width: 2.2;
  opacity: 0.45;
}
.ring-trail-3 {
  stroke: #55b4fa;
  stroke-width: 1.2;
  opacity: 0.22;
}
.ring-spark {
  fill: #fff1c4;
}
.ring-light {
  mix-blend-mode: screen;
}
.ring-streak {
  opacity: 0.8;
}
.ring-nodes {
  position: absolute;
  inset: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* li = position only (its translate is never tweened); .node = the pill that animates.
   Labels sit beyond each loop, anchored away from the circle. */
.ring-nodes li {
  position: absolute;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
}
.ring-nodes li[data-side="r"] {
  translate: 0 -50%;
}
.ring-nodes li[data-side="l"] {
  translate: -100% -50%;
}
.ring-nodes .node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 10px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: clamp(12px, 1vw, 14.5px);
  font-weight: 600;
  background: rgb(10 26 51 / 0.66);
  border: 1px solid rgb(255 255 255 / 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* --glow (0 → 1) is set on the li by home-v3.js frame by frame and inherited here, so the glow
     swells and fades smoothly */
  border-color: color-mix(
    in srgb,
    rgb(255 209 102 / 0.9) calc(var(--glow, 0) * 100%),
    rgb(255 255 255 / 0.22)
  );
  box-shadow:
    0 0 calc(var(--glow, 0) * 40px) calc(var(--glow, 0) * -2px)
    rgb(255 209 102 / calc(var(--glow, 0) * 0.55)),
    inset 0 0 calc(var(--glow, 0) * 16px) calc(var(--glow, 0) * -6px)
    rgb(255 209 102 / calc(var(--glow, 0) * 0.6));
}
.ring-nodes .node > span {
  font: 500 0.82em / 1 var(--mono);
  color: var(--gold);
}
.ring-hubs {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 46%;
}
.ring-hubs span {
  padding: 5px 10px;
  border-radius: 8px;
  font: 500 11px / 1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice);
  background: rgb(85 180 250 / 0.12);
  border: 1px solid rgb(85 180 250 / 0.35);
}
.ring-hubs em {
  flex-basis: 100%;
  text-align: center;
  font: italic 500 12px var(--font);
  color: var(--faint);
}
@media (max-width: 860px) {
  .ch-ws .stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 16px;
    align-content: center;
  }
  .ws-copy,
  .ws-note {
    grid-column: 1;
  }
  .ws-note {
    grid-row: 3;
  }
  .ring {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    margin-left: 0;
    aspect-ratio: auto;
  }
  .ring-svg {
    position: relative;
    display: block;
    width: min(62vw, 260px);
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto;
  }
  .ring-nodes {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 12px;
  }
  .ring-nodes li,
  .ring-nodes li[data-side] {
    position: static;
    translate: none;
  }
  .ring-nodes .node {
    font-size: 12.5px;
  }
  .ring-hubs {
    top: calc(min(62vw, 260px) / 2);
    max-width: 34%;
  }
  .ring-hubs span {
    font-size: 9px;
    padding: 3px 6px;
  }
  .ring-hubs em {
    display: none;
  }
}

/* 04 · Benefit */
.ch-benefit .stage {
  align-content: center;
  gap: 32px;
}
.benefit-copy {
  max-width: 56rem;
}
.gains {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  perspective: 1400px;
}
.gain {
  padding: 22px 20px 24px;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 270px;
}
.gain-icon {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 10px rgb(255 209 102 / 0.4));
}
.gain-group {
  font: 500 11px / 1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
}
.gain h3 {
  font-size: 1.24rem;
  line-height: 1.2;
  font-weight: 640;
}
.gain h3 span {
  display: block;
  margin-bottom: 4px;
  font: 500 12px var(--mono);
  color: var(--faint);
}
.gain > p:last-child {
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--mist);
}
.benefit-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  color: var(--faint);
  font-size: 0.95rem;
}
.benefit-foot .link-arrow {
  margin-top: 0;
}
@media (max-width: 1100px) {
  .gains {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gain {
    min-height: 0;
  }
}
@media (max-width: 700px) {
  .gains {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .gain {
    grid-template-columns: 40px 1fr;
    column-gap: 14px;
    padding: 16px;
  }
  .gain-icon {
    grid-row: span 3;
    width: 34px;
    height: 34px;
  }
  .gain > p:last-child {
    grid-column: 2;
  }
  .is-cinema .ch-benefit {
    --len: 300vh;
  }
  .is-cinema .ch-benefit .stage {
    height: auto;
    min-height: 100svh;
    position: relative;
  }
}

/* 05 · Proof */
.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  perspective: 1600px;
  max-width: 1200px;
}
.doc {
  padding: 22px 24px 20px;
  transform-style: preserve-3d;
}
.doc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  font-weight: 640;
}
.tag {
  font: 500 10.5px / 1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--gold);
  border: 1px solid rgb(255 209 102 / 0.4);
}
.doc-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.doc-cols section {
  padding: 16px;
  border-radius: 12px;
  background: rgb(6 16 31 / 0.4);
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
  align-content: start;
}
.doc-cols h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  font-weight: 620;
  margin-bottom: 4px;
}
.bar {
  display: block;
  height: 8px;
  width: var(--w);
  border-radius: 4px;
  background: rgb(255 255 255 / 0.14);
  transform-origin: left;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.dot-ok {
  background: #5fd39a;
  box-shadow: 0 0 10px #5fd39a;
}
.dot-warn {
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}
.dot-next {
  background: var(--sky);
  box-shadow: 0 0 10px var(--sky);
}
.doc-cap {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(
    --mist
  ); /* Proof sits on the pre-dawn sky since 2026-10-29: --faint fell to 3.2:1 there */
}
.proof-line {
  margin: 4px 0 0;
  max-width: 62ch;
  color: var(--mist);
}
.proof-line .link-arrow {
  margin-left: 8px;
}
.method {
  padding: 24px;
  display: grid;
  gap: 12px;
  align-content: start;
  color: var(--mist);
}
.method-title {
  font: 500 11px / 1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
}
.status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--paper);
}
@media (max-width: 900px) {
  .proof-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .doc-cols {
    grid-template-columns: 1fr;
  }
}

/* 06 · Stages path */
.path-wrap {
  position: relative;
  width: 100%;
}
.path-svg {
  position: absolute;
  left: calc(var(--gutter) * -1);
  top: 0;
  width: calc(100% + var(--gutter) * 2);
  height: 100%;
  overflow: visible;
}
.path-glow {
  fill: none;
  stroke: rgb(255 209 102 / 0.4);
  stroke-width: 14;
  filter: blur(8px);
  stroke-linecap: round;
}
.path-core {
  fill: none;
  stroke: var(--gold-hot);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.stops {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  min-height: 260px;
}
.stop:nth-child(1) {
  align-self: center;
}
.stop:nth-child(2) {
  align-self: end;
}
.stop:nth-child(3) {
  align-self: start;
}
.stop a {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 16px;
  text-decoration: none;
  background: rgb(10 26 51 / 0.6);
  border: 1px solid rgb(255 255 255 / 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 0.4s var(--ease),
    border-color 0.3s;
}
.stop a:hover {
  transform: translateY(-4px);
  border-color: rgb(255 209 102 / 0.6);
}
.stop-goal {
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 620;
  line-height: 1.2;
}
.stop-stage {
  font: 500 12px / 1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.stages-all {
  justify-self: start;
}
@media (max-width: 760px) {
  .stops {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 10px;
  }
  .stop:nth-child(n) {
    align-self: auto;
  }
  .path-svg {
    display: none;
  }
}

/* 07 · About */
.founders {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 1000px;
}
.founder {
  display: flex;
  gap: 18px;
  padding: 22px;
}
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  font: 600 18px var(--font);
  color: #0a1a33;
  background: linear-gradient(135deg, var(--gold), var(--sky));
}
.avatar-photo {
  padding: 0;
  background: transparent;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.founder h3 {
  font-size: 1.2rem;
  font-weight: 640;
}
.role {
  margin: 2px 0 10px;
  font: 500 12px var(--mono);
  letter-spacing: 0.08em;
  color: var(--sky);
}
.founder p:last-child:not(.role) {
  color: var(--mist);
  font-size: 0.97rem;
}
.about-link {
  justify-self: start;
  margin-top: 0;
}
@media (max-width: 760px) {
  .founders {
    grid-template-columns: 1fr;
  }
}

/* 08 · Book */
.ch-book .stage {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  grid-template-rows: 1fr auto;
  align-content: stretch;
}
.ch-book .copy {
  align-self: start;
}
.book-card {
  grid-column: 2;
  grid-row: 2;
}
.book-card {
  justify-self: end;
  padding: 26px;
  max-width: 26rem;
}
.book-card > p {
  font-size: 1.12rem;
  color: var(--paper);
}
.book-card .ctas {
  margin-top: 20px;
}
@media (max-width: 860px) {
  .ch-book .stage {
    grid-template-columns: 1fr;
  }
  .book-card {
    grid-column: 1;
    justify-self: start;
  }
}

/* Footer */
.foot {
  position: relative;
  z-index: 10;
  background: var(--night);
  border-top: 1px solid var(--line);
  padding: 56px var(--gutter) 40px;
}
.foot-inner {
  display: grid;
  gap: 28px;
  max-width: 1200px;
}
.foot-brand {
  display: block;
  width: 120px;
}
.foot-brand .logo-svg {
  --logo-ink: #fff;
  --logo-spiral-d: var(--sky);
  --logo-spiral-l: var(--ice);
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.foot-links a {
  color: var(--mist);
  text-decoration: none;
  font-size: 0.95rem;
}
.foot-links a:hover {
  color: var(--paper);
}
.foot-legal {
  display: grid;
  gap: 6px;
  color: var(--faint);
  font-size: 0.82rem;
  max-width: 70ch;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue i,
  .world-grain {
    animation: none !important;
  }
  .btn,
  .link-arrow,
  .stop a {
    transition: none;
  }
}

/* ── Polish ─────────────────────────────────────────────────── */

/* A light sheen sweeps the gold buttons every few seconds. */
.btn-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / 0.6) 50%, transparent 65%);
  transform: translateX(-130%);
  pointer-events: none;
}
.is-cinema .btn-cta::after {
  animation: sheen 6s var(--ease) 2.4s infinite;
}
@keyframes sheen {
  0%,
  72% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(130%);
  }
}

/* Light keeps flowing along the stage path once it is drawn. */
.path-flow {
  fill: none;
  stroke: #fffbe9;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 0.012 0.063;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgb(255 209 102 / 0.95));
}
.is-cinema .path-flow {
  animation: flow 7s linear infinite;
}
@keyframes flow {
  to {
    stroke-dashoffset: -0.375;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-cta::after,
  .path-flow {
    animation: none !important;
  }
}

/* Glowing tip that leads the stage path as it draws itself. */
.path-tip {
  position: absolute;
  left: calc(var(--gutter) * -1 + (100% + var(--gutter) * 2) * var(--tx, 0));
  top: calc(100% * var(--ty, 0));
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #fffbe9 0 22%,
    rgb(255 209 102 / 0.9) 40%,
    rgb(255 209 102 / 0) 72%
  );
  box-shadow: 0 0 24px 8px rgb(255 209 102 / 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
@media (max-width: 760px) {
  .path-tip {
    display: none;
  }
}

/* Stops wait for the path's tip (home-v3.js toggles .is-in). */
.is-cinema .stop {
  opacity: 0;
  transform: translateY(26px) scale(0.95);
  transition:
    opacity 0.6s var(--ease),
    transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.is-cinema .stop.is-in {
  opacity: 1;
  transform: none;
}

/* Reduced motion: the light does not travel, so it is not drawn parked on the ring. */
.is-static .ring-light,
.is-static .ring-sparks {
  display: none;
}
.proof-line .link-arrow {
  display: inline-flex;
}

/* ── Nav panels (same block in site-v3/site.css and home-v3/home-v3.css) ──────
   Workstreams and Stages stay links to their overview pages; hover, focus or the chevron opens a panel
   with the overview first and prominent, then its sub-pages. The markup comes from site-v3/build.mjs. */
.has-sub {
  position: relative;
  display: flex;
  align-items: center;
}
.mast-links > .has-sub > a {
  padding-right: 3px;
}
.sub-btn {
  display: grid;
  place-items: center;
  width: 24px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--mist);
  cursor: pointer;
}
.sub-btn svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: rotate 0.3s var(--ease);
}
.has-sub:hover .sub-btn,
.sub-btn:focus-visible {
  color: var(--paper);
}
.has-sub:not(.is-closed):hover .sub-btn svg,
.has-sub.is-open .sub-btn svg {
  rotate: 180deg;
}
.nav-sub {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  translate: -50% 0;
  width: min(380px, 92vw);
  padding: 10px;
  border: 1px solid rgb(243 246 251 / 0.24);
  border-radius: 18px;
  background: rgb(8 20 38 / 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px -20px rgb(0 0 0 / 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.22s var(--ease),
    transform 0.3s var(--ease),
    visibility 0s linear 0.3s;
}
.nav-sub.is-wide {
  width: min(640px, 92vw);
}
/* a bridge over the gap, so the pointer can travel from the link into the panel */
.nav-sub::before {
  content: "";
  position: absolute;
  inset: -16px 0 auto;
  height: 16px;
}
.has-sub:not(.is-closed):hover .nav-sub,
.has-sub:not(.is-closed):focus-within .nav-sub,
.has-sub.is-open .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.nav-sub-all {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 12px;
  padding: 14px 16px;
  border: 1px solid rgb(255 209 102 / 0.35);
  border-radius: 12px;
  background: rgb(255 209 102 / 0.06);
  text-decoration: none;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}
.nav-sub-all b {
  font: 600 17px / 1.2 var(--font);
  color: var(--gold-hot);
}
.nav-sub-all span {
  grid-column: 1;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--mist);
}
.nav-sub-all i {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-style: normal;
  color: var(--gold);
  transition: translate 0.25s var(--ease);
}
.nav-sub-all:hover,
.nav-sub-all:focus-visible {
  border-color: rgb(255 209 102 / 0.7);
  background: rgb(255 209 102 / 0.1);
}
.nav-sub-all:hover i {
  translate: 3px 0;
}
.nav-sub-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.nav-sub.is-wide .nav-sub-list {
  grid-template-columns: 1fr 1fr;
}
.nav-sub-item {
  display: grid;
  grid-template-columns: 2.4em 1fr;
  gap: 2px 8px;
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.2s;
}
.nav-sub-item:not(:has(small)) {
  grid-template-columns: 1fr;
}
.nav-sub-item small {
  grid-row: 1 / 3;
  padding-top: 4px;
  font: 500 10.5px / 1 var(--mono);
  letter-spacing: 0.1em;
  color: var(--gold);
}
.nav-sub-item b {
  font: 550 14.5px / 1.25 var(--font);
  color: var(--paper);
}
.nav-sub-item span {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--faint);
}
.nav-sub-item:hover,
.nav-sub-item:focus-visible {
  background: rgb(255 255 255 / 0.06);
}
.nav-sub-item[aria-current="page"] {
  background: rgb(255 209 102 / 0.08);
}
.nav-sub-item[aria-current="page"] b {
  color: var(--gold-hot);
}
.menu-inner a.sub {
  padding-left: 22px;
  font-size: 16px;
  color: var(--mist);
}
@media (prefers-reduced-motion: reduce) {
  .nav-sub,
  .sub-btn svg {
    transition: none;
  }
}

/* Phone menu: it scrolls inside the screen however much is open; Workstreams and Stages start
   collapsed, their chevron opens the sub-pages (same block in site-v3/site.css and home-v3/home-v3.css) */
.menu {
  /* an overlay under the masthead: it never pushes the page down */
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100dvh - var(--mast-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #06101f;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.8);
}
/* behind the open menu the page dims softly; a tap there closes the menu (and goes nowhere else) */
.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 29;
  background: rgb(3 8 18 / 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-scrim.is-open {
  opacity: 1;
  pointer-events: auto;
  transition-duration: 0.5s;
}
.menu-group {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}
.menu-group > a {
  flex: 0 0 60%;
  border-bottom: 0;
}
/* the whole right 40% of the row opens and closes the group */
.menu-sub-btn {
  display: grid;
  place-items: center end;
  flex: 1 1 auto;
  padding: 0 10px 0 0;
  -webkit-tap-highlight-color: transparent;
  border: 0;
  background: none;
  color: var(--mist);
  cursor: pointer;
}
.menu-sub-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: rotate 0.3s var(--ease);
}
.menu-sub-btn[aria-expanded="true"] {
  color: var(--gold);
}
.menu-sub-btn[aria-expanded="true"] svg {
  rotate: 180deg;
}
/* a group unfolds to its own height (grid rows 0fr → 1fr) and its pages drift in one after another */
.menu-subs {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.menu-subs.is-open {
  grid-template-rows: 1fr;
}
.menu-subs-in {
  display: grid;
  min-height: 0;
  overflow: hidden;
}
.menu-subs a.sub {
  opacity: 0;
  translate: 0 -6px;
  transition:
    opacity 0.2s,
    translate 0.3s var(--ease);
}
.menu-subs.is-open a.sub {
  opacity: 1;
  translate: 0 0;
  transition-delay: calc(var(--k, 0) * 28ms + 80ms);
}
/* the menu glides down out of the masthead; its rows rise in one after another */
/* closing (the closed state's transition): a smooth ease-in glide back up, rows fading together;
   opening (.is-open's transition): a gentle ease-out glide down, rows rising one after another */
.menu {
  opacity: 0;
  translate: 0 -12px;
  clip-path: inset(0 0 100% 0);
  transition:
    opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    translate 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    clip-path 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.menu.is-open {
  opacity: 1;
  translate: 0 0;
  clip-path: inset(0 0 0 0);
  transition:
    opacity 0.4s var(--ease),
    translate 0.55s var(--ease),
    clip-path 0.55s var(--ease);
}
/* (the folded groups are left out: they keep their own unfold transition) */
.menu-inner > :not(.menu-subs) {
  opacity: 0;
  translate: 0 8px;
  transition:
    opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    translate 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.menu.is-open .menu-inner > :not(.menu-subs) {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity 0.4s var(--ease),
    translate 0.5s var(--ease);
  transition-delay: calc(var(--k, 0) * 40ms + 80ms);
}
.menu-icon span {
  transition: transform 0.3s var(--ease);
}
.menu-btn[aria-expanded="true"] .menu-icon span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] .menu-icon span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}
@media (prefers-reduced-motion: reduce) {
  .menu,
  .menu.is-open,
  .menu-scrim,
  .menu-inner > :not(.menu-subs),
  .menu.is-open .menu-inner > :not(.menu-subs),
  .menu-subs,
  .menu-subs a.sub {
    transition: none;
  }
}
