/* CogniEdge v3 "Reflex" tokens. Every colour and face on the page comes from here.
   The stack-light colours carry run / slow / hold and are never decoration. */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/media/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Surfaces: brand ink, stepped up for raised planes */
  --ink: #0b0f12;
  --ink-0: #070a0c;
  --ink-2: #11171b;
  --ink-3: #172026;
  --paper: #eef1f3;

  /* Text on ink */
  --on-ink: #eef1f3;
  --on-ink-2: color-mix(in srgb, #eef1f3 72%, transparent);
  --on-ink-3: #8f9aa3;
  --grey-d: #9aa5ae;

  /* Hairlines */
  --rule: rgba(255, 255, 255, .11);
  --line-d: var(--rule);
  --hair: rgba(255, 255, 255, .055);
  --rule-strong: rgba(255, 255, 255, .22);

  /* Signal */
  --accent: #38c6f4;
  --accent-ink: #061218;
  --green: #2fb36e;
  --amber: #f2b33d;
  --red: #e5484d;
  --slow-text: #f5c56a;

  /* Type */
  --font: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --hx-mono: var(--mono);

  /* Scale */
  --step--1: 13px;
  --step-0: 17px;
  --step-1: clamp(19px, 1.5vw, 23px);
  --step-2: clamp(26px, 2.6vw, 36px);
  --step-3: clamp(36px, 4.6vw, 68px);
  --step-4: clamp(46px, 7vw, 112px);

  /* Layout */
  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(80px, 9vw, 136px);
  --radius: 14px;
  --radius-s: 8px;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* CogniEdge v3 "Reflex": one site layout on the tokens in tokens.css.
   Direction: a lit engineering drawing. Ink ground, hairline Swiss grid, the stack light as the only colour system.
   Chrome stays quiet; the richness lives in a few product moments: the frontiers, the story, the chart and the record.
   Motion (assets/js/main.js, anime.js v5) only ever plays once, and never on prefers-reduced-motion. */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ink); color: var(--on-ink);
  font: 400 var(--step-0)/1.55 var(--font); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; overflow-wrap: break-word; min-width: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-s); background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.skip:focus-visible { top: 12px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
main { position: relative; z-index: 1; }
section { position: relative; }

/* Type */
.display { font-size: var(--step-3); line-height: 1.02; letter-spacing: -.035em; max-width: 18ch; text-wrap: balance; }
.display-xl { font-size: var(--step-4); line-height: .95; letter-spacing: -.048em; text-wrap: balance; }
.lede { font-size: var(--step-1); line-height: 1.45; color: var(--on-ink-2); max-width: 38ch; text-wrap: pretty; }
.minor { font-size: 15px; font-weight: 500; color: var(--on-ink-3); margin: 0 0 16px; }
.fine { font-size: var(--step--1); color: var(--on-ink-3); max-width: 70ch; }

/* Plate: the drawing's section marker, a registration cross on the rule and a sheet number */
.plate { position: relative; display: flex; align-items: baseline; gap: 16px; padding-top: 16px; margin-bottom: clamp(28px, 4vw, 52px); border-top: 1px solid var(--rule); }
.plate::before { content: ""; position: absolute; left: -6px; top: -6px; width: 11px; height: 11px;
  background: linear-gradient(var(--rule-strong), var(--rule-strong)) center / 1px 100% no-repeat, linear-gradient(var(--rule-strong), var(--rule-strong)) center / 100% 1px no-repeat; }
.plate-n { font: 500 12px/1 var(--mono); color: var(--on-ink-3); font-variant-numeric: tabular-nums; }
.plate-h { margin: 0; font-size: 14px; font-weight: 500; color: var(--on-ink-2); }

/* Fixed chrome: scroll progress, hairline grid, stack-light rail */
.progress { position: fixed; inset: 0 0 auto; z-index: 60; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .progress { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}
@media (prefers-reduced-motion: reduce) { .progress { display: none; } }

.grid-lines { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.grid-lines .wrap { height: 100%; display: flex; justify-content: space-between; }
.grid-lines i { width: 1px; height: 100%; background: var(--hair); }

.rail { position: fixed; right: clamp(10px, 1.4vw, 22px); top: 50%; z-index: 30; display: grid; gap: 6px; padding: 7px; border-radius: 99px;
  background: color-mix(in srgb, var(--ink) 70%, transparent); border: 1px solid var(--rule); transform: translateY(-50%); }
.rail i { width: 8px; height: 8px; border-radius: 50%; background: #2a3138; transition: background .3s, box-shadow .3s; }
.rail[data-state="r"] .r { background: var(--red); box-shadow: 0 0 10px var(--red); }
.rail[data-state="a"] .a { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.rail:not([data-state="r"], [data-state="a"]) .g { background: var(--green); box-shadow: 0 0 10px var(--green); }
@media (max-width: 900px) { .rail { display: none; } }

/* Buttons: one primary style, a ghost for glass, a line for secondary */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 10px; font: 600 15px/1 var(--font); letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  overflow: hidden; isolation: isolate; transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease-out); }
.btn:active { transform: scale(.975); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-110%); }
.btn-primary:hover { background: #63d4f7; }
.btn-primary:hover::after { transform: translateX(110%); transition: transform .7s var(--ease-out); }
.btn-ghost { background: rgba(255,255,255,.06); border-color: var(--rule-strong); color: var(--on-ink); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.34); }
.btn-line { background: transparent; border-color: var(--rule-strong); color: var(--on-ink); }
.btn-line:hover { border-color: var(--on-ink); }
.btn-meta { font: 500 12px/1 var(--mono); color: var(--on-ink-3); padding-left: 10px; border-left: 1px solid var(--rule-strong); }
.play-glyph { width: 0; height: 0; border-left: 9px solid currentColor; border-block: 6px solid transparent; }
@media (prefers-reduced-motion: reduce) { .btn-primary::after { display: none; } .btn:active { transform: none; } }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 14px var(--gutter); transition: background-color .35s, border-color .35s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: color-mix(in srgb, var(--ink) 80%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); border-bottom-color: var(--rule); }
.nav-brand img { height: 32px; width: auto; }
.nav-links { position: relative; display: flex; gap: 2px; padding: 4px; border: 1px solid var(--rule); border-radius: 99px; background: color-mix(in srgb, var(--ink) 55%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nav-links a { position: relative; z-index: 1; padding: 8px 14px; border-radius: 99px; font-size: 14px; font-weight: 500; color: var(--on-ink-2); text-decoration: none; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--on-ink); }
.nav-hl { position: absolute; z-index: 0; top: 4px; left: 0; height: calc(100% - 8px); width: var(--hl-w, 0); border-radius: 99px; background: rgba(255,255,255,.09);
  transform: translateX(var(--hl-x, 0)); opacity: 0; transition: transform .35s var(--ease-out), width .35s var(--ease-out), opacity .2s; pointer-events: none; }
.nav-links:hover .nav-hl, .nav-links:focus-within .nav-hl { opacity: 1; }
.nav-co-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 99px; background: none;
  font-size: 14px; font-weight: 500; color: var(--on-ink-2); cursor: pointer; transition: color .2s; }
.nav-co-btn svg { width: 12px; height: 12px; transition: transform .25s var(--ease-out); }
.nav-co-btn:hover, .nav-co-btn[aria-expanded="true"] { color: var(--on-ink); }
.nav-co-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-co-panel { position: fixed; inset: auto; margin: 0; width: 280px; padding: 8px; border: 1px solid var(--rule-strong); border-radius: var(--radius);
  background: color-mix(in srgb, var(--ink-2) 94%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0,0,0,.5); color: var(--on-ink); }
.nav-co-panel a { display: grid; gap: 2px; padding: 11px 12px; border-radius: 10px; text-decoration: none; transition: background-color .2s; }
.nav-co-panel a:hover, .nav-co-panel a:focus-visible { background: rgba(255,255,255,.07); }
.nav-co-panel b { font-size: 15px; font-weight: 600; }
.nav-co-panel small { font-size: 13px; color: var(--on-ink-3); }
.nav-co-panel .nav-co-signin { grid-template-columns: 1fr auto; align-items: center; margin-top: 6px; padding-top: 13px; border-top: 1px solid var(--rule); border-radius: 0 0 10px 10px; }
.nav-co-signin span { display: grid; gap: 2px; }
.nav-co-signin svg { width: 16px; height: 16px; color: var(--on-ink-3); }
.nav-end { justify-self: end; display: flex; align-items: center; gap: 10px; }
.nav-cta { min-height: 42px; }
.nav-menu-btn { display: none; width: 42px; height: 42px; place-content: center; gap: 6px; padding: 0; border: 1px solid var(--rule-strong); border-radius: 10px;
  background: color-mix(in srgb, var(--ink) 55%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); cursor: pointer; }
.nav-menu-btn i { display: block; width: 16px; height: 1.5px; background: var(--on-ink); border-radius: 1px; transition: transform .25s var(--ease-out); }
.nav-menu-btn[aria-expanded="true"] i:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-menu-btn[aria-expanded="true"] i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.nav-menu { position: fixed; inset: 70px var(--gutter) auto auto; margin: 0; width: min(320px, calc(100vw - 2 * var(--gutter))); max-height: calc(100svh - 90px); overflow-y: auto;
  padding: 10px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: color-mix(in srgb, var(--ink-2) 96%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 24px 60px rgba(0,0,0,.5); color: var(--on-ink); }
.nav-menu:popover-open { display: grid; }
.nav-menu a:not(.btn) { padding: 12px 10px; border-radius: 8px; font-size: 17px; font-weight: 500; text-decoration: none; }
.nav-menu a:not(.btn):hover, .nav-menu a:not(.btn):focus-visible { background: rgba(255,255,255,.07); }
.nav-menu-h { margin: 10px 10px 2px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--on-ink-3); }
.nav-menu .nav-menu-sub { font-size: 15px; color: var(--on-ink-2); }
.nav-menu .btn { margin-top: 10px; }
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-brand img { height: 28px; }
  .nav-menu-btn { display: grid; }
}
@media (max-width: 420px) { .nav-cta { display: none; } }

/* 1 · Hero */
.hero { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; overflow: clip; background: var(--ink-0); }
.hero-media, .hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media video { opacity: 0; transition: opacity 1.2s; }
.hero-media video.is-playing { opacity: 1; }
.hero-scrim { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,10,12,.92) 0%, rgba(7,10,12,.7) 38%, rgba(7,10,12,.2) 72%, rgba(7,10,12,.35) 100%),
              linear-gradient(0deg, var(--ink-0) 0%, rgba(7,10,12,0) 34%); }
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr); align-items: end;
  padding-top: 120px; padding-bottom: clamp(36px, 6vh, 72px); }
.hero-h { font-size: var(--step-4); font-weight: 500; line-height: .94; letter-spacing: -.05em; max-width: 9.5ch; text-wrap: balance; }
.hero-h .word { display: inline-block; }
.hero-sub { margin-top: 26px; font-size: var(--step-1); line-height: 1.45; color: var(--on-ink-2); max-width: 34ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }


/* Built with: rolling band of real memberships */
.band { position: relative; z-index: 2; border-top: 1px solid var(--rule); background: color-mix(in srgb, var(--ink-0) 70%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.band-track { display: flex; overflow: hidden; padding: 16px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.band-set { display: flex; align-items: center; gap: 72px; margin: 0; padding: 0 36px; list-style: none; flex-shrink: 0; }
.band-set li { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.band-k { font-size: 13px; color: var(--on-ink-3); }
.band-set img { height: 34px; width: auto; }
.band-say { font-size: 17px; font-weight: 600; letter-spacing: .01em; }
.band-track.is-rolling .band-set { animation: marquee var(--marquee-s, 36s) linear infinite; }
.band-track.is-rolling:hover .band-set, .band-track.is-rolling:focus-within .band-set { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.js:not(.motion) .band-track { justify-content: center; flex-wrap: wrap; }

@media (max-width: 760px) {
  .hero-in { padding-top: 104px; }
  .hero-scrim { background: linear-gradient(0deg, var(--ink-0) 8%, rgba(7,10,12,.55) 60%, rgba(7,10,12,.4)); }
}

/* Sections share one rhythm */
.vision, .frontiers, .timeline, .record, .results, .partners, .faq { padding-block: var(--section); }

/* 2 · Vision */
.manifesto { font-size: clamp(30px, 3.9vw, 58px); line-height: 1.1; letter-spacing: -.032em; font-weight: 450; max-width: 27ch; text-wrap: pretty; }
.manifesto .word { transition: opacity .25s linear; }
.belief { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start; margin: clamp(56px, 7vw, 96px) 0 0 auto; max-width: 620px; padding-top: 22px; border-top: 1px solid var(--rule); }
.belief-lamps { display: grid; gap: 5px; padding-top: 8px; }
.belief-lamps i { width: 10px; height: 10px; border-radius: 50%; }
.belief-lamps .g { background: var(--green); } .belief-lamps .a { background: var(--amber); } .belief-lamps .r { background: var(--red); }
.belief blockquote { margin: 0; font-size: var(--step-2); line-height: 1.2; letter-spacing: -.02em; color: var(--on-ink); text-wrap: balance; }

/* 3 · Frontiers: the old site's theatre, on v3 tokens. One world open at a time on wide screens;
   a vertical path on phones. A rail runs along the top: solid where we are, dashed where we're going. */
.frontiers-head { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.frontiers-head .display { max-width: 14ch; }
.theatre { --h: clamp(520px, 74vh, 760px); display: flex; height: var(--h); margin: 0; padding: 0; list-style: none; }
.world {
  --art-c: color-mix(in srgb, var(--paper) 88%, transparent);
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto auto;
  padding: 0 16px 26px; border-left: 1px solid var(--rule);
  background: repeating-linear-gradient(180deg, var(--rule) 0 1px, transparent 1px 48px) left top / 6px 100% no-repeat, var(--ink-2);
  transition: flex-grow .7s var(--ease-out), background-color .4s;
  cursor: pointer;
}
.world:last-child { border-right: 1px solid var(--rule); }
.world.is-open { flex-grow: 3.2; cursor: default; padding-inline: 24px; }
.world::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: radial-gradient(120% 70% at 50% 46%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
.world.is-open::after { opacity: 1; }
.world-rail { position: relative; height: 64px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--on-ink-3); white-space: nowrap; }
.world-rail::before { content: ""; position: absolute; left: -16px; right: -16px; top: 0; height: 2px;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--accent) 60%, transparent) 0 6px, transparent 6px 12px); }
.w-manufacturing .world-rail::before { background: var(--accent); }
.world-rail .node { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--accent); background: var(--ink-2); flex: none; }
.w-manufacturing .node { background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent); }
.world-rail .num { font-weight: 600; color: var(--on-ink-2); }
.world-rail .tag { color: var(--accent); font-weight: 600; }
.world-art { align-self: stretch; margin: 8px -10px; min-height: 0; background: var(--art-c); opacity: .55;
  -webkit-mask: var(--art) center / contain no-repeat; mask: var(--art) center / contain no-repeat;
  -webkit-mask-size: auto 44%; mask-size: auto 44%; transition: opacity .6s; }
.world.is-open .world-art { opacity: 1; -webkit-mask-size: contain; mask-size: contain; }
.w-manufacturing .world-art { --art: url(/assets/media/illustrations/manufacturing.svg); }
.w-logistics .world-art { --art: url(/assets/media/illustrations/logistics.svg); }
.w-hospitals .world-art { --art: url(/assets/media/illustrations/hospitals.svg); }
.w-labs .world-art { --art: url(/assets/media/illustrations/labs.svg); }
.w-space .world-art { --art: url(/assets/media/illustrations/space.svg); }
.world-h { font-size: clamp(16px, 1.2vw, 21px); line-height: 1.15; font-weight: 600; letter-spacing: -.015em; }
.world.is-open .world-h { font-size: clamp(28px, 2.6vw, 42px); font-weight: 500; letter-spacing: -.03em; }
.world-btn { all: unset; cursor: pointer; display: block; text-wrap: balance; }
.world-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.world-btn::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.world.is-open .world-btn::before { display: none; }
.world-line { margin-top: 14px; max-width: 34ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.4; color: var(--on-ink-2);
  opacity: 0; transform: translateY(8px); visibility: hidden; height: 0;
  transition: opacity .5s .2s, transform .6s .2s var(--ease-out), visibility 0s .2s; }
.world.is-open .world-line { opacity: 1; transform: none; visibility: visible; height: auto; }
/* Space: darker ground, a horizon, a sense of distance */
.w-space { background-color: color-mix(in srgb, var(--ink) 55%, var(--ink-2));
  background-image: repeating-linear-gradient(180deg, var(--rule) 0 1px, transparent 1px 48px), radial-gradient(160% 60% at 50% 125%, color-mix(in srgb, var(--accent) 16%, transparent) 0 40%, transparent 40.3%);
  background-size: 6px 100%, auto; background-repeat: no-repeat; background-position: left top, center; }
.frontiers-close { margin-top: clamp(48px, 6vw, 88px); font-size: clamp(22px, 2.3vw, 34px); line-height: 1.25; font-weight: 500; letter-spacing: -.02em; max-width: 36ch; }
@media (max-width: 1100px) { .theatre { --h: clamp(520px, 68vh, 680px); } .world { padding-inline: 16px; } }
@media (max-width: 900px) {
  .frontiers-head { grid-template-columns: 1fr; gap: 20px; }
  .theatre { flex-direction: column; height: auto; }
  .world { flex: none; grid-template-columns: 1fr 112px; grid-template-rows: auto auto auto; column-gap: 16px;
    padding: 0 0 26px 34px; border-left: 0; border-right: 0 !important; cursor: default; background: none; }
  .world.is-open { padding: 0 0 26px 34px; }
  .world::after { display: none; }
  .world-rail { grid-column: 1 / -1; height: 52px; margin-left: -28px; }
  .world-rail::before { left: 4px; right: auto; top: 0; bottom: -100vh; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--accent) 60%, transparent) 0 6px, transparent 6px 12px); }
  .w-manufacturing .world-rail::before { background: var(--accent); }
  .world-rail .node { position: relative; z-index: 1; }
  .world-art, .world.is-open .world-art { grid-column: 2; grid-row: 2 / span 2; margin: 0; height: 80px; opacity: 1; -webkit-mask-size: contain; mask-size: contain; }
  .world-h, .world.is-open .world-h { grid-column: 1; font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
  .world-btn { cursor: default; }
  .world-btn::before { display: none; }
  .world-line { grid-column: 1; opacity: 1; transform: none; visibility: visible; height: auto; margin-top: 8px; }
  .w-space { background: none; }
}
@media (prefers-reduced-motion: reduce) { .world, .world-line, .world-art { transition: none; } }

/* 4 · Starting point */
.cinema { position: relative; min-height: clamp(460px, 78vh, 760px); display: flex; align-items: flex-end; overflow: clip; background: var(--ink-0); }
.cinema video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cinema-shade { position: absolute; inset: 0; background: linear-gradient(0deg, var(--ink) 4%, rgba(11,15,18,.35) 55%, rgba(11,15,18,.55)); }
.cinema-body { position: relative; padding-bottom: clamp(40px, 6vw, 80px); }
.plate-on-film { border-top-color: var(--rule-strong); }
.start-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-block: clamp(48px, 6vw, 88px) var(--section); }
.start-body { font-size: var(--step-1); line-height: 1.5; color: var(--on-ink-2); max-width: 42ch; }
.sectors ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); counter-reset: s; }
.sectors li { counter-increment: s; display: flex; gap: 12px; align-items: baseline; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.sectors li::before { content: counter(s, decimal-leading-zero); font: 500 11px/1 var(--mono); color: var(--on-ink-3); }

/* 5 · How it works (story.css does the stage; this sets the frame) */
.how-story .how-intro h2 { margin-bottom: 18px; }
.how-story .how-after .how-line { padding-top: 20px; border-top: 1px solid var(--rule); font-size: var(--step-1); line-height: 1.45; max-width: 52ch; }

/* 6 · The station's 40 seconds (Backlit-style interactive chart) */
.timeline-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.chart { margin: clamp(40px, 5vw, 64px) 0 0; padding: clamp(16px, 2vw, 28px); border: 1px solid var(--rule); border-radius: var(--radius);
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--accent) 6%, var(--ink-2)), var(--ink-0) 70%); }
.chart-plot { position: relative; height: clamp(280px, 30vw, 400px); cursor: crosshair; touch-action: pan-y; border-radius: var(--radius-s); }
.chart-plot:focus-visible { outline-offset: 6px; }
.chart-svg { width: 100%; height: 100%; overflow: visible; }
.chart-svg .grid { stroke: var(--hair); stroke-width: 1; }
.chart-svg .grid-h { stroke: var(--rule); stroke-dasharray: 2 4; }
.chart-svg .lvl { font: 500 11px var(--mono); fill: var(--on-ink-3); }
.chart-svg .tick { font: 500 11px var(--mono); fill: var(--on-ink-3); }
.chart-svg .step { fill: none; stroke-width: 2.25; stroke-linejoin: round; filter: url(#chart-glow); }
.chart-svg .area { opacity: .16; }
.chart-cross { position: absolute; top: 0; bottom: 26px; left: 0; width: 1px; background: linear-gradient(var(--on-ink), transparent); opacity: 0; transform: translateX(var(--x, 0)); pointer-events: none; transition: opacity .2s; }
.chart-cross::after { content: ""; position: absolute; left: -5px; top: var(--y, 0); width: 11px; height: 11px; border-radius: 50%; background: var(--c, var(--green)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--green)) 30%, transparent), 0 0 18px var(--c, var(--green)); translate: 0 -50%; }
.chart-tip { position: absolute; top: 8px; left: 0; width: 260px; overflow: hidden; border: 1px solid var(--rule-strong); border-radius: 12px;
  background: color-mix(in srgb, var(--ink-0) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0,0,0,.5); opacity: 0; transform: translateX(var(--tx, 0)); pointer-events: none; transition: opacity .2s; }
.chart-plot.is-active .chart-cross, .chart-plot.is-active .chart-tip { opacity: 1; }
.chart-tip img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.chart-tip-body { padding: 12px 14px 14px; }
.tip-time { font: 500 12px/1 var(--mono); color: var(--on-ink-3); }
.tip-state { margin-top: 6px; font-size: 18px; font-weight: 600; color: var(--c, var(--green)); }
.chart-tip dl { margin: 8px 0 0; display: grid; gap: 4px; font-size: 13px; }
.chart-tip dl div { display: grid; grid-template-columns: 70px 1fr; gap: 8px; }
.chart-tip dt { color: var(--on-ink-3); }
.chart-tip dd { margin: 0; color: var(--on-ink); }
.chart-legend { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 24px; }
.chart-legend li { display: grid; grid-template-columns: 10px 1fr; column-gap: 10px; row-gap: 2px; align-items: center; font-size: 14px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.chart-legend b { font-weight: 500; }
.chart-legend span { grid-column: 2; font: 500 12px/1.3 var(--mono); color: var(--on-ink-3); }
.chart figcaption { margin-top: 18px; font-size: var(--step--1); color: var(--on-ink-3); max-width: 80ch; }

/* 7 · The record */
.record-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.record-body { margin-top: 22px; font-size: var(--step-1); line-height: 1.45; color: var(--on-ink-2); max-width: 40ch; }
.uses { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.uses li { padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--on-ink-2); }
.uses strong { color: var(--on-ink); font-weight: 600; }
.entry { position: relative; padding: 22px 24px 18px; border: 1px solid var(--rule); border-radius: var(--radius); background: linear-gradient(180deg, var(--ink-2), var(--ink-0)); font-family: var(--mono); font-size: 13px; }
.trail { position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; border: 1px solid transparent;
  -webkit-mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0) border-box; mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0) border-box; }
.trail::before { content: ""; position: absolute; width: 90px; aspect-ratio: 1; opacity: 0;
  background: radial-gradient(closest-side, var(--red), transparent); offset-path: rect(0 auto auto 0 round 14px); offset-anchor: 50% 50%; }
.entry.is-traced .trail::before { animation: trail 3.4s var(--ease-in-out) 1 both; }
@keyframes trail { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 55% { background: radial-gradient(closest-side, var(--red), transparent); } 70% { background: radial-gradient(closest-side, var(--green), transparent); } 92% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.entry-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--rule); color: var(--on-ink-3); font-size: 12px; }
.entry-rows { margin: 0; }
.entry-rows div { display: grid; grid-template-columns: 11ch minmax(0, 1fr); gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--rule); }
.entry-rows div:last-child { border-bottom: 0; }
.entry-rows dt { color: var(--on-ink-3); }
.entry-rows dd { margin: 0; color: var(--on-ink); }
.pip { display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; vertical-align: 1px; }
.entry .hold dd { color: #ff9a9d; } .entry .hold .pip { background: var(--red); box-shadow: 0 0 10px var(--red); }
.entry .clear dd { color: #8fe0b5; } .entry .clear .pip { background: var(--green); box-shadow: 0 0 10px var(--green); }
.entry .seal dd { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .trail { display: none; } }

/* 8 · Results: bento of published figures */
.results .display { max-width: 16ch; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; margin-top: clamp(40px, 5vw, 64px); }
.tile { position: relative; margin: 0; padding: clamp(20px, 2.4vw, 32px); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--ink-2); overflow: hidden; isolation: isolate; }
[data-spotlight]::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 11%, transparent), transparent 45%); }
[data-spotlight]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 70%, transparent), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
[data-spotlight]:hover::before, [data-spotlight]:hover::after, [data-spotlight]:focus-within::after { opacity: 1; }
.tile-h { font-size: 14px; font-weight: 500; color: var(--on-ink-2); }
.tile-latency { grid-column: span 7; grid-row: span 2; display: flex; flex-direction: column; gap: 36px; }
.tile-offline { grid-column: span 5; }
.tile-film { grid-column: span 5; padding: 0; min-height: 230px; border: 1px solid var(--rule); cursor: pointer; text-align: left; background: #000; }
.tile-stage { grid-column: span 12; }

.lat { position: relative; }
.lat-axis { position: relative; height: 18px; margin-bottom: 8px; font: 500 11px/1 var(--mono); color: var(--on-ink-3); }
.lat-axis span { position: absolute; left: calc(var(--at) * 100%); translate: -50% 0; white-space: nowrap; }
.lat-axis span:first-child { translate: 0 0; } .lat-axis span:last-child { translate: -100% 0; }
@media (max-width: 560px) { .lat-axis span:nth-child(2), .lat-axis span:nth-child(4) { display: none; } }
.lat-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px;
  background: linear-gradient(90deg, var(--hair) 1px, transparent 1px) 0 0 / 20% 100%; }
.lat-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name val" "bar bar" "note note"; row-gap: 8px; }
.lat-name { grid-area: name; font-size: 15px; font-weight: 500; }
.lat-rows b { grid-area: val; font: 600 var(--step-2)/1 var(--font); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.lat-bar { grid-area: bar; position: relative; height: 10px; border-radius: 3px; background: rgba(255,255,255,.04); overflow: hidden; }
.lat-bar i { position: absolute; inset: 0; border-radius: 3px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 25%, transparent), var(--c)); transform-origin: 0 50%; transform: scaleX(var(--v)); box-shadow: 0 0 16px color-mix(in srgb, var(--c) 50%, transparent); }
.lat-rows small { grid-area: note; font-size: 13px; color: var(--on-ink-3); }
.lat-rows [data-tone="g"] { --c: var(--green); } .lat-rows [data-tone="a"] { --c: var(--amber); } .lat-rows [data-tone="c"] { --c: var(--accent); }

.offline-art { width: 100%; max-width: 260px; height: auto; margin-bottom: 18px; fill: none; stroke: var(--on-ink-3); stroke-width: 1.4; stroke-linecap: round; }
.offline-art rect { stroke: var(--green); }
.offline-art .cell-x { stroke: var(--green); }
.offline-art .link { stroke-dasharray: 3 5; }
.offline-art .cut { stroke: var(--red); stroke-width: 2; }
.tile-big { font-size: var(--step-3); font-weight: 500; line-height: 1; letter-spacing: -.04em; margin-bottom: 10px; }
.tile-offline p:last-child { color: var(--on-ink-2); max-width: 32ch; }

.tile-film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.tile-film:hover img { transform: scale(1.04); }
.tile-film-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,10,12,.85), rgba(7,10,12,0) 60%); }
.tile-film-label { position: absolute; left: 24px; right: 24px; bottom: 22px; display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; color: var(--on-ink); }
.tile-film-label .play-glyph { margin-right: 2px; }

.stage-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stage-steps li { position: relative; display: grid; gap: 4px; padding-top: 22px; }
.stage-steps li::before { content: ""; position: absolute; top: 4px; left: 0; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--on-ink-3); background: var(--ink-2); z-index: 1; }
.stage-steps li::after { content: ""; position: absolute; top: 9px; left: 16px; right: -12px; height: 1px; background: var(--rule-strong); }
.stage-steps li:last-child::after { display: none; }
.stage-steps li.done::before { border-color: var(--green); background: var(--green); box-shadow: 0 0 10px var(--green); }
.stage-steps li.done::after { background: color-mix(in srgb, var(--green) 50%, var(--rule)); }
.stage-steps b { font-weight: 500; }
.stage-steps span { font-size: 14px; color: var(--on-ink-3); }

/* 9 · Build it with us */
.paths { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.path { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 2.6vw, 36px); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--ink-2); overflow: hidden; isolation: isolate; }
.path-lead { border-top: 2px solid var(--accent); }
.path-n { font: 500 12px/1 var(--mono); color: var(--on-ink-3); }
.path h3 { font-size: var(--step-2); letter-spacing: -.025em; line-height: 1.1; }
.path p { color: var(--on-ink-2); }
.path .btn { margin-top: auto; align-self: flex-start; }
.path p + .btn { margin-top: auto; }

/* 10 · Questions */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(40px, 6vw, 96px); }
.faq-list { border-top: 1px solid var(--rule); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary { position: relative; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-size: var(--step-1); font-weight: 500; letter-spacing: -.012em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: 0 0 14px; height: 14px; margin-top: 6px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  color: var(--on-ink-3); transition: transform .3s var(--ease-out); }
.faq-list details[open] summary::after { transform: rotate(45deg); color: var(--on-ink); }
.faq-list summary:focus-visible { outline-offset: 4px; border-radius: 4px; }
.faq-list details p { padding: 0 48px 24px 0; color: var(--on-ink-2); max-width: 62ch; }
@media (prefers-reduced-motion: no-preference) { .faq-list details[open] p { animation: rise .4s var(--ease-out); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* 11 · Contact */
.contact { padding-block: var(--section) clamp(72px, 8vw, 120px); border-top: 1px solid var(--rule); background: radial-gradient(70% 70% at 18% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%); }
/* Contact and footer share the page's six drawn columns: text in later columns starts one inset past its hairline */
.contact-grid, .foot-top { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; }
.contact .display-xl { grid-column: 1 / span 4; max-width: 13ch; }
.contact-side { grid-column: 5 / span 2; padding-left: 20px; }
.contact-sub { font-size: var(--step-1); color: var(--on-ink-2); margin-bottom: 26px; }
.form label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 500; color: var(--on-ink-2); }
.form input { padding: 0 16px; border: 1px solid var(--rule-strong); border-radius: 10px; background: var(--ink-2); color: var(--on-ink); font: 400 16px var(--font); transition: border-color .2s, box-shadow .2s; }
.form input::placeholder { color: var(--on-ink-3); }
.form input:hover { border-color: rgba(255,255,255,.34); }
.form input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.form input[aria-invalid="true"] { border-color: var(--red); }
.hp { position: absolute; left: -9999px; }
.email-privacy { margin-top: 14px; font-size: 13px; color: var(--on-ink-3); }

/* Footer: slim and minimal, on the same surface as the contact section (the drawn grid runs through both).
   It opens with the plate rule every section uses; brand on columns 1 to 4, Explore on 5 (under the form), Company on 6. */
.foot { position: relative; z-index: 1; padding: 0 0 24px; }
.foot > .wrap { position: relative; padding-top: clamp(36px, 4vw, 52px); border-top: 1px solid var(--rule); }
.foot > .wrap::before { content: ""; position: absolute; left: -6px; top: -6px; width: 11px; height: 11px;
  background: linear-gradient(var(--rule-strong), var(--rule-strong)) center / 1px 100% no-repeat, linear-gradient(var(--rule-strong), var(--rule-strong)) center / 100% 1px no-repeat; }
.foot-top { align-items: start; }
.foot-brand { grid-column: 1 / span 4; display: grid; justify-items: start; }
.foot-brand img { height: 28px; width: auto; }
.foot-where { margin-top: 16px; font-size: 14px; color: var(--on-ink-3); }
.foot-mail { margin-top: 6px; font-size: 15px; color: var(--on-ink); text-decoration: none; transition: color .2s; }
.foot-mail:hover { color: var(--accent); }
.foot-cols { grid-column: 5 / span 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot-cols > div { padding-left: 20px; }
.foot-h { margin: 0 0 14px; font-size: 13px; font-weight: 500; color: var(--on-ink-3); }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-cols a, .foot-bar a, .foot-mail { display: inline-block; padding-block: 4px; }
.foot-cols a, .foot-bar a { color: var(--on-ink-2); text-decoration: none; font-size: 14px; transition: color .2s; overflow-wrap: anywhere; }
.foot-cols a:hover, .foot-bar a:hover { color: var(--on-ink); text-decoration: underline; text-underline-offset: 4px; }
.foot-bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: clamp(36px, 4vw, 56px); padding-top: 18px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--on-ink-3); }
.foot-bar a { font-size: 13px; }
.foot-bar-links { display: flex; gap: 24px; }

/* Motion: initial states only while the module is about to run */
.motion-pending [data-rise], .motion-pending .contact [data-split] { opacity: 0; }
@media (min-width: 901px) { .motion-pending .hero [data-split] { opacity: .35; filter: blur(12px); } }
@media (max-width: 900px) { .motion-pending .hero [data-rise] { opacity: 1; } }

/* Responsive */
@media (max-width: 1000px) {
  .timeline-head, .record-grid, .faq-grid, .contact-grid, .start-grid, .foot-top { grid-template-columns: 1fr; }
  .contact-grid { gap: 32px; }
  .contact .display-xl, .contact-side, .foot-brand, .foot-cols { grid-column: auto; padding: 0; }
  .foot-top { gap: 36px; }
  .foot-cols > div:first-child { padding-left: 0; }
  .tile-latency, .tile-offline, .tile-film { grid-column: span 12; grid-row: auto; }
  .paths { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .foot-cols > div { padding-left: 0; }
  .stage-steps { grid-template-columns: 1fr 1fr; }
  .stage-steps li:nth-child(2)::after { display: none; }
  .sectors ul { grid-template-columns: 1fr; }
  .chart-tip { width: 200px; }
  .chart-tip img { display: none; }
}

/* Scroll-driven sim replay, scoped for embedding in a site layout (draft, Dec 4 2026). */
.how.how-story { padding: 0; border-top: 0; background: var(--ink); color: #fff; }
.how-story .how-intro { padding-block: clamp(80px, 9vw, 140px) clamp(40px, 5vw, 64px); }
.how-story .how-intro .eyebrow { font: 400 12px var(--hx-mono, ui-monospace, "SF Mono", Menlo, Consolas, monospace); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin: 0 0 14px; }
.how-story .how-intro p { color: var(--grey-d); margin: 0; }
.how-story .how-after { padding-block: clamp(48px, 6vw, 80px) clamp(80px, 9vw, 140px); }
.how-story .how-after .how-line { margin-top: 0; border-top-color: var(--line-d); color: #fff; }
.how-story .how-after .fine { font-size: 13px; color: var(--grey-d); max-width: 70ch; margin-top: 18px; }
.how-story .tag, .how-story .log, .how-story .lamp em, .how-story .badge { font-family: var(--hx-mono, ui-monospace, "SF Mono", Menlo, Consolas, monospace); }
.how-story .chapters h3, .how-story .card h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 .4em; color: #fff; }
.how-story .card p, .how-story .chapters p { color: var(--grey-d); }
.how-story .log li[hidden] { display: none; }
/* Without script, or with reduced motion: a plain list of stills. */
.how-story .stage { display: none; }
.how-story .chapters { list-style: none; margin: 0; padding: 0 clamp(20px, 8vw, 120px); display: grid; gap: 56px; }
.how-story .chapters img { width: 100%; height: auto; border-radius: 10px; display: block; margin-bottom: 18px; }
.how-story .chapters h3 { font-size: clamp(26px, 3vw, 36px); }
.how-story .chapters p { max-width: 560px; }

/* Scroll-driven mode */
.how-story .story.live .stage { display: block; position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.how-story .story.live .chapters { margin-top: -100vh; margin-top: -100svh; padding: 0; gap: 0; position: relative; z-index: 2; pointer-events: none; }
.how-story .story.live .chapters li { height: 150vh; padding-top: 40vh; padding-left: clamp(16px, 4vw, 56px); }
.how-story .story.live .chapters li:last-child { height: 190vh; }
.how-story .story.live .chapters img { display: none; }
.how-story .story.live .card { pointer-events: auto; transition: opacity .3s; }
.how-story .story.live .card.gone { opacity: 0; }
.how-story .story.live .card { position: sticky; top: calc(100svh - 250px); width: min(440px, calc(100vw - 32px)); padding: 22px 24px 18px; border-radius: 14px; background: rgba(11,15,18,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-d); }
.how-story .story.live .card h3 { font-size: clamp(22px, 2.2vw, 30px); }
.how-story .story.live .card p { margin: 0; font-size: 15px; }
.how-story .story.live .card::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; margin-bottom: 14px; background: var(--c, var(--green)); }
.how-story .story.live li[data-andon="a"] .card { --c: var(--amber); }
.how-story .story.live li[data-andon="r"] .card { --c: var(--red); }

.how-story .stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.how-story .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,15,18,.55), rgba(11,15,18,0) 45%), linear-gradient(0deg, rgba(11,15,18,.6), rgba(11,15,18,0) 30%); pointer-events: none; }

/* Labels pinned to tracked points in the scene */
.how-story .tags { position: absolute; inset: 0; pointer-events: none; }
.how-story .tag { position: absolute; left: 0; top: 0; display: flex; align-items: baseline; gap: 8px; padding: 6px 10px; font-size: 12px; white-space: nowrap; border-radius: 8px; background: rgba(11,15,18,.78); border: 1px solid var(--line-d); transform: translate(var(--x), var(--y)) translate(14px, -50%); transition: opacity .25s; will-change: transform; }
.how-story .tag[data-flip] { transform: translate(var(--x), var(--y)) translate(calc(-100% - 14px), -50%); }
.how-story .tag[data-flip] i { left: auto; right: -16px; }
.how-story .tag[data-flip] i::before { left: auto; right: -5px; }
.how-story .tag[hidden] { display: flex; opacity: 0; }
.how-story .tag i { position: absolute; left: -16px; top: 50%; width: 30px; height: 1px; background: rgba(255,255,255,.55); }
.how-story .tag i::before { content: ""; position: absolute; left: -5px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--accent)); box-shadow: 0 0 0 3px rgba(11,15,18,.6); }
.how-story .tag b { font-weight: 400; color: #fff; }
.how-story .tag span { color: var(--grey-d); }
.how-story .tag[data-state="g"] { --c: var(--green); }
.how-story .tag[data-state="a"] { --c: var(--amber); }
.how-story .tag[data-state="r"] { --c: var(--red); }

/* Stack light that follows the station's state */
.how-story .lamp { position: absolute; top: 96px; right: clamp(16px, 4vw, 56px); display: grid; grid-template-columns: 14px auto; grid-template-rows: repeat(3, 14px); column-gap: 12px; row-gap: 4px; align-items: center; padding: 12px 16px; border-radius: 12px; background: rgba(11,15,18,.72); border: 1px solid var(--line-d); }
.how-story .lamp span { grid-column: 1; width: 14px; height: 14px; border-radius: 50%; background: #2a3138; transition: background .2s, box-shadow .2s; }
.how-story .lamp em { grid-column: 2; grid-row: 1 / 4; font-style: normal; font-size: 13px; min-width: 7ch; }
.how-story .lamp[data-state="r"] .r { background: var(--red); box-shadow: 0 0 14px var(--red); }
.how-story .lamp[data-state="a"] .a { background: var(--amber); box-shadow: 0 0 14px var(--amber); }
.how-story .lamp[data-state="g"] .g { background: var(--green); box-shadow: 0 0 14px var(--green); }

/* Decision record, filled as the scene passes each decision */
.how-story .log { position: absolute; top: 180px; right: clamp(16px, 4vw, 56px); width: 300px; margin: 0; padding: 12px 14px; list-style: none; font-size: 11.5px; line-height: 1.5; border-radius: 12px; background: rgba(11,15,18,.72); border: 1px solid var(--line-d); }
.how-story .log li { display: grid; grid-template-columns: 6ch 1fr; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line-d); color: #dfe5ea; }
.how-story .log li time { color: var(--grey-d); }
.how-story .log li b { font-weight: 400; color: var(--c); }
.how-story .log .log-h { display: block; border: 0; padding-top: 0; color: var(--grey-d); text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; }
.how-story .log li[data-state="g"] { --c: var(--green); }
.how-story .log li[data-state="a"] { --c: var(--amber); }
.how-story .log li[data-state="r"] { --c: var(--red); }

.how-story .controls { position: absolute; left: clamp(16px, 4vw, 56px); right: clamp(16px, 4vw, 56px); bottom: 26px; display: flex; align-items: center; gap: 14px; z-index: 3; }
.how-story .story-play { font: 500 13px inherit; color: var(--ink); background: #fff; border: 0; border-radius: 99px; padding: 7px 16px; cursor: pointer; }
.how-story .story-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.how-story .segs { flex: 1; display: flex; gap: 4px; }
.how-story .segs span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.22); overflow: hidden; }
.how-story .segs span::after { content: ""; display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: #fff; }
.how-story .badge { font-size: 11px; color: var(--grey-d); border: 1px solid var(--line-d); border-radius: 99px; padding: 3px 9px; }

@media (max-width: 760px) {
  .how-story .log { display: none; }
  .how-story .tag span { display: none; }
  .how-story .lamp { top: 66px; }
  .how-story .story.live .card { top: calc(100svh - 230px); }
}


/* Film viewer (live layout). The film plays in a quiet frame; under it a chapter rail drawn like the film's own
   stack light: one lamp per part, sized by its length, coloured by its Andon state, filling as the film plays.
   Overrides Mission's generic .film dialog styles. */
.film.pf { position: fixed; width: min(1180px, 94vw); max-height: 96vh; padding: 0; border: 0; border-radius: 10px; overflow: visible;
  background: transparent; color: var(--on-ink); }
.film.pf::backdrop { background: color-mix(in srgb, var(--ink) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pf-frame { position: relative; border-radius: 10px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px var(--rule), 0 40px 120px rgba(0, 0, 0, .6); }
.pf-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
/* Close sits on the dialog, just above the frame (the frame clips for its rounded corners), so it never covers
   the film's own data panel at the top right of the picture. */
.pf-close { position: absolute; top: -46px; right: 0; width: 36px; height: 36px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 50%; color: var(--on-ink); cursor: pointer;
  background: color-mix(in srgb, var(--ink) 55%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: .8; transition: opacity .2s, background .2s; }
.pf-close:hover, .pf-close:focus-visible { opacity: 1; background: color-mix(in srgb, var(--ink) 80%, transparent); }
.pf-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pf-close svg { width: 14px; height: 14px; }

.pf-info { display: grid; grid-template-columns: minmax(180px, auto) 1fr; gap: 32px; align-items: end; padding: 20px 4px 0; }
.pf-title h2 { margin: 0; font-size: 19px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.pf-title p { margin: 4px 0 0; font-size: 14px; color: var(--on-ink-3); }

.pf-rail { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.pf-rail li { flex: var(--len) 1 0; min-width: 0; }
.pf-rail button { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 8px 8px; padding: 0 0 2px; border: 0;
  background: none; color: var(--on-ink-3); font: inherit; text-align: left; cursor: pointer; }
.pf-lamp { grid-column: 1 / -1; position: relative; height: 6px; border-radius: 2px; overflow: hidden;
  background: color-mix(in srgb, var(--lamp) 18%, var(--ink-2)); }
.pf-lamp i { position: absolute; inset: 0 auto 0 0; width: calc(var(--fill, 0) * 100%); background: var(--lamp); }
.pf-name { font-size: 13px; line-height: 1.3; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-time { font: 500 12px/1.3 var(--hx-mono); font-variant-numeric: tabular-nums; opacity: .7; }
.pf-rail button:hover, .pf-rail button:focus-visible, .pf-rail button[aria-current="step"] { color: var(--on-ink); }
.pf-rail button[aria-current="step"] .pf-lamp { box-shadow: 0 0 14px color-mix(in srgb, var(--lamp) 55%, transparent); }
.pf-rail button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }

/* End screen: the film's recap, in the site's type on the frame itself. */
.pf-end { position: absolute; inset: 0; z-index: 2; overflow-y: auto; background: var(--ink); color: var(--on-ink);
  display: grid; align-content: center; }
.pf-end[hidden] { display: none; }
.pf-end-in { width: min(820px, 100%); margin: 0 auto; padding: 48px clamp(24px, 5vw, 56px); }
.pf-end h3 { margin: 0 0 20px; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.pf-end ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.pf-end li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.5; color: var(--on-ink-2); max-width: 70ch; }
.pf-end li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.pf-end li:nth-child(1)::before { background: var(--red); }
.pf-end li:nth-child(2)::before { background: var(--amber); }
.pf-end li:nth-child(3)::before { background: var(--green); }
.pf-end-note { margin: 18px 0 0; font-size: 13px; line-height: 1.5; color: var(--on-ink-3); max-width: 75ch; }
.pf-end-next { margin: 22px 0 0; font-size: 16px; font-weight: 500; }
.pf-end-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pf-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 4px; border: 1px solid var(--rule);
  background: transparent; color: var(--on-ink); font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; }
.pf-btn:hover { border-color: var(--on-ink-2); }
.pf-btn-main { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.pf-btn-main:hover { filter: brightness(1.08); }
.pf-btn:focus-visible { outline: 2px solid var(--on-ink); outline-offset: 3px; }
.pf-credits { margin: 28px 0 0; font-size: 10.5px; line-height: 1.45; color: var(--on-ink-3); opacity: .75; overflow-wrap: anywhere; }

/* The one motion moment: opening the film. */
@media (prefers-reduced-motion: no-preference) {
  .film.pf[open] { animation: pf-in .28s cubic-bezier(.2, .7, .2, 1); }
  .film.pf[open]::backdrop { animation: pf-fade .28s ease-out; }
}
@keyframes pf-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes pf-fade { from { opacity: 0; } }

html.film-open { overflow: hidden; }

/* Phones: a full-screen sheet, film on top, chapters below. */
@media (max-width: 720px) {
  .film.pf { width: 100vw; max-width: 100vw; height: 100svh; max-height: 100svh; margin: 0; border-radius: 0; background: var(--ink); }
  .film.pf[open] { display: flex; flex-direction: column; justify-content: center; }   /* only when open: never override the closed state */
  .pf-frame { border-radius: 0; box-shadow: none; }
  .pf-close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
  .pf-info { grid-template-columns: 1fr; gap: 20px; padding: 20px 16px 0; }
  /* Chapters as rows on phones, so every name is readable. */
  .pf-rail { flex-direction: column; gap: 10px; }
  .pf-rail button { grid-template-columns: 44px 1fr; align-items: center; row-gap: 6px; }
  .pf-lamp { grid-column: 2; grid-row: 2; }
  .pf-time { grid-row: 1 / span 2; align-self: center; }
  .pf-name { font-size: 14px; white-space: normal; }
  .pf-end { position: static; max-height: 70svh; }
  .pf-frame:has(.pf-end:not([hidden])) video { display: none; }   /* the recap replaces the film rather than covering a 220 px frame */
  .pf-end-in { padding: 24px 18px; }
  .pf-end li { font-size: 14px; }
  .pf-end h3 { font-size: 20px; margin-bottom: 12px; }
}

.email-enquiry .form-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.email-enquiry .form-row input { min-width: 0; min-height: 50px; width: 100%; }
.email-enquiry button { min-height: 50px; padding-inline: 28px; }
.email-enquiry button:disabled { opacity: .65; cursor: wait; }
.email-enquiry .form-note:empty { display: none; }
.email-enquiry .form-note { margin-top: 14px; line-height: 1.5; }
.email-enquiry .form-note.err { color: #ffb4a9; }
.email-enquiry .form-note.ok { color: #a2e7c2; }
@media (max-width: 380px) { .email-enquiry .form-row { grid-template-columns: 1fr; } }

