/* ============================================================
   SPATIALx — REPLICA XR
   Scroll-cinematic vision site
   Palette: deep navy / ice-blue / champagne gold · holographic futurism
   ============================================================ */

:root {
  --bg:        #04060c;
  --bg-1:      #070a14;
  --bg-2:      #0b1020;
  --panel:     rgba(12, 18, 34, 0.55);

  --ink:       #eaf1fb;
  --ink-dim:   rgba(234, 241, 251, 0.62);
  --ink-faint: rgba(234, 241, 251, 0.50);

  --ice:        #6fd0ff;
  --ice-bright: #a6e6ff;
  --ice-deep:   #2f7fc4;
  --gold:       #ecc879;
  --gold-bright:#f6dd9e;

  --line:       rgba(111, 208, 255, 0.14);
  --line-strong:rgba(111, 208, 255, 0.28);
  --line-gold:  rgba(236, 200, 121, 0.24);

  --font-serif: "Fraunces", Georgia, serif;
  --font-sans:  "Space Grotesk", system-ui, sans-serif;
  --font-mono:  "Space Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1240px;
  --space-title-gap: clamp(48px, 7vh, 72px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scrollbar-width: none; -webkit-text-size-adjust: 100%; }
html::-webkit-scrollbar { display: none; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}

/* Global filmic grain + vignette to unify AI assets into one look */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

::selection { background: rgba(111, 208, 255, 0.28); color: #fff; }

a { color: inherit; text-decoration: none; }
b { color: var(--ink); font-weight: 700; }

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ice);
}
.gold { color: var(--gold); }
.ice  { color: var(--ice); }

/* ============================================================
   Preloader
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: radial-gradient(90% 70% at 50% 45%, #0a1122 0%, #04060c 70%);
  display: grid;
  place-content: center;
  gap: 26px;
  text-align: center;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
#preloader.done { opacity: 0; visibility: hidden; }
.pl-mark {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: 0.02em;
  color: var(--ink);
}
.pl-mark .x { color: var(--ice); font-style: italic; }
.pl-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.42em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.pl-bar {
  width: min(260px, 60vw);
  height: 1px;
  margin: 0 auto;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.pl-bar span {
  position: absolute; inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--ice-deep), var(--ice), var(--gold));
  box-shadow: 0 0 14px var(--ice);
  transition: width 0.3s linear;
}
.pl-pct { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em; color: var(--ink-faint); }

/* ============================================================
   Fixed HUD chrome
   ============================================================ */
.hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px clamp(18px, 4vw, 40px);
  pointer-events: none;
}
.hud > * { pointer-events: auto; }
.brand {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 1px;
}
.brand .x { color: var(--ice); font-style: italic; text-shadow: 0 0 18px rgba(111,208,255,0.55); }
.hud-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 9px;
}
.hud-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 10px var(--ice);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.35} }

/* audio toggle */
.audio-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 100px;
  padding: 8px 15px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: border-color 0.4s, color 0.4s;
}
.audio-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.audio-btn .eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.audio-btn .eq i {
  width: 2px; height: 4px; background: var(--ice);
  display: block; border-radius: 1px;
  box-shadow: 0 0 6px rgba(111,208,255,0.7);
}
.audio-btn.on .eq i { animation: eq 0.9s ease-in-out infinite; }
.audio-btn.on .eq i:nth-child(2){ animation-delay: 0.15s; }
.audio-btn.on .eq i:nth-child(3){ animation-delay: 0.3s; }
.audio-btn.on .eq i:nth-child(4){ animation-delay: 0.45s; }
@keyframes eq { 0%,100%{height:3px} 50%{height:12px} }

/* right-side section index */
.section-nav {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 190;
  display: flex; flex-direction: column; gap: 16px;
  align-items: flex-end;
}
.section-nav a {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-faint);
  transition: color 0.4s;
}
.section-nav a .lbl { opacity: 0; transform: translateX(6px); transition: 0.4s var(--ease); }
.section-nav a .tick { width: 18px; height: 1px; background: var(--ink-faint); transition: 0.4s; }
.section-nav a:hover .lbl, .section-nav a.active .lbl { opacity: 1; transform: none; }
.section-nav a:hover, .section-nav a.active { color: var(--ice); }
.section-nav a.active .tick { width: 30px; background: var(--ice); box-shadow: 0 0 8px var(--ice); }

/* ============================================================
   Cinematic scrub section (frame sequence)
   ============================================================ */
.cinematic { position: relative; }
.cinematic.hero    { height: 560vh; }
.cinematic.replica { height: 700vh; }

.sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  background: #02030a;
}
.sticky .poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transform: scale(1.02);
}
.sticky canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
.sticky canvas.painted { opacity: 1; }
.vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background:
    radial-gradient(130% 100% at 50% 42%, transparent 42%, rgba(2,3,10,0.72) 100%),
    linear-gradient(180deg, rgba(2,3,10,0.55) 0%, transparent 22%, transparent 66%, rgba(2,3,10,0.82) 100%);
}

/* scrub overlay copy */
.scrub-copy {
  position: absolute; inset: 0; z-index: 10;
  display: grid; place-items: center;
  text-align: center; padding: 0 24px;
}
.scrub-line {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: max-content; max-width: min(92vw, 1000px);
  opacity: 0;
  will-change: opacity, transform;
}
.scrub-line .k {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 18px;
}
.scrub-line h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 6.4vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-shadow: 0 0 60px rgba(0,0,0,0.6);
}
.scrub-line h2 em { font-style: italic; color: var(--ice-bright); }
.scrub-line.accent h2 { color: var(--gold-bright); text-shadow: 0 0 60px rgba(236,200,121,0.35); }

/* telemetry corners */
.telemetry {
  position: absolute; z-index: 12;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(111, 208, 255, 0.72);
}
.telemetry b { color: var(--ink); }
.tl { top: 92px; left: clamp(18px,4vw,40px); }
.tr { top: 92px; right: clamp(18px,4vw,40px); text-align: right; }
.bl { bottom: 74px; left: clamp(18px,4vw,40px); }
.br { bottom: 74px; right: clamp(18px,4vw,40px); text-align: right; }

.progress {
  position: absolute; left: clamp(18px,4vw,40px); right: clamp(18px,4vw,40px);
  bottom: 48px; height: 1px; background: var(--line); z-index: 12;
}
.progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--ice-deep), var(--ice), var(--gold));
  box-shadow: 0 0 10px var(--ice);
}
.scroll-hint {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 12;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.4em;
  color: rgba(234, 241, 251, 0.6); text-transform: uppercase;
  transition: opacity 0.5s;
}
.scroll-hint::after { content: "▾"; display: block; margin-top: 6px; animation: bob 1.8s ease-in-out infinite; font-size: 12px; }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(5px)} }

/* ============================================================
   Standard content sections
   ============================================================ */
section.block {
  position: relative;
  padding: clamp(90px, 14vh, 180px) clamp(20px, 5vw, 48px);
}
.wrap { max-width: var(--maxw); margin: 0 auto; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--ice);
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 30px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--line-gold); }

/* ---- Manifesto / thesis ---- */
.manifesto {
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(47,127,196,0.10), transparent 60%),
    linear-gradient(180deg, #04060c, #060912 60%, #04060c);
  text-align: center;
}
.manifesto .wrap { max-width: 1080px; }
.manifesto .m-line {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.65rem, 4.3vw, 3.5rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--ink-dim);
  margin: 0 auto clamp(38px, 6.5vh, 78px);
  max-width: 19ch;
}
.manifesto .m-line em { font-style: italic; color: var(--ice-bright); }
.manifesto .m-line b { color: var(--ink); font-weight: 600; }
.manifesto .m-line:last-child { margin-bottom: 0; }
.manifesto .m-line.grand {
  color: var(--ink);
  line-height: 1.24;
  max-width: 20ch;
}
.manifesto .m-line.grand .gold { color: var(--gold-bright); }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(30px); filter: blur(7px); transition: opacity 1.15s var(--ease), transform 1.15s var(--ease), filter 1.15s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; }

/* ---- Realities strip ---- */
.realities { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-1); }
.realities .head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: var(--space-title-gap); }
.realities h3, .section-title {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem); line-height: 1.06; letter-spacing: -0.01em;
  color: var(--ink); max-width: 20ch;
}
.section-title em { font-style: italic; color: var(--ice-bright); }
.reality-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.reality-grid .cell {
  background: var(--bg); padding: 34px 28px 40px; position: relative;
  transition: background 0.5s;
}
.reality-grid .cell:hover { background: #070c18; }
.reality-grid .idx { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; color: var(--gold); }
.reality-grid .abbr {
  font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin: 30px 0 8px; color: var(--ice-bright);
}
.reality-grid .name { font-size: 13px; letter-spacing: 0.02em; color: var(--ink); font-weight: 600; margin-bottom: 8px; transition: color 0.4s var(--ease); }
.reality-grid .cell:hover .name, .reality-grid .cell:focus-within .name { color: var(--ice-bright); }
.reality-grid .desc { font-size: 13px; color: var(--ink-dim); line-height: 1.5; }
/* abbreviations shift cool -> warm across the virtual -> real continuum */
.reality-grid .cell:nth-child(1) .abbr { color: var(--ice-bright); }
.reality-grid .cell:nth-child(2) .abbr { color: var(--ice); }
.reality-grid .cell:nth-child(3) .abbr { color: var(--gold); }
.reality-grid .cell:nth-child(4) .abbr { color: var(--gold-bright); }

/* reality cards — vivid device imagery: a deliberate colour pop against the navy.
   Full-bleed banner at the top of each cell (negative margins cancel the cell padding),
   each carrying its own signature --pop hue on a hairline bar. */
.reality-grid .cell-media {
  display: block; margin: -34px -28px 26px; aspect-ratio: 4 / 3; overflow: hidden;
  position: relative; background: #05070d;
  box-shadow: inset 0 -3px 0 var(--pop, var(--ice));
}
.reality-grid .cell-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.02); transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
  filter: saturate(1.06) contrast(1.02);
}
.reality-grid .cell-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, rgba(4,6,12,0.5));
}
.reality-grid .cell:hover .cell-media img,
.reality-grid .cell:focus-within .cell-media img { transform: scale(1.08); }
.reality-grid .cell:hover .cell-media, .reality-grid .cell:focus-within .cell-media { box-shadow: inset 0 -3px 0 var(--pop, var(--ice)), 0 0 30px -6px var(--pop, transparent); }
.reality-grid .cell:nth-child(1) { --pop: #ff4ddb; }
.reality-grid .cell:nth-child(2) { --pop: #22e6e6; }
.reality-grid .cell:nth-child(3) { --pop: #a6f13a; }
.reality-grid .cell:nth-child(4) { --pop: #ff6a45; }

/* XR — the convergence band */
.xr-band {
  position: relative; margin: clamp(30px, 4vw, 48px) 0 0; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: 5px;
  height: clamp(220px, 32vw, 400px);
}
.xr-band img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.06); }
.xr-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(4,6,12,0.62), rgba(4,6,12,0.05) 42%, transparent),
              linear-gradient(0deg, rgba(4,6,12,0.55), transparent 46%);
}
.xr-band-cap {
  position: absolute; left: clamp(20px, 3vw, 42px); bottom: clamp(18px, 2.6vw, 32px); z-index: 2; margin: 0;
  font-family: var(--font-mono); font-size: clamp(10px, 1.1vw, 12px); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-dim); text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}
.xr-band-cap b { color: var(--ice-bright); font-weight: 700; letter-spacing: 0.26em; }

/* four realities = Extended Reality — the distinction */
.xr-thesis {
  font-family: var(--font-sans); font-size: clamp(13px, 1.25vw, 15.5px); line-height: 1.72;
  color: var(--ink-dim); max-width: 48ch; align-self: flex-end;
}
.xr-thesis em { font-style: normal; color: var(--ice-bright); }
.reality-spectrum { display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); margin-bottom: clamp(18px, 2.4vw, 26px); }
.rs-track { flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--ice-bright), var(--ice-deep) 48%, var(--gold)); box-shadow: 0 0 14px rgba(111, 208, 255, 0.18); }
.rs-cap { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; }
.rs-cap--v { color: var(--ice); }
.rs-cap--r { color: var(--gold); }
.xr-formula {
  margin-top: clamp(28px, 4vw, 46px); display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px clamp(12px, 2vw, 20px);
  font-family: var(--font-mono); font-size: clamp(13px, 1.5vw, 16px); letter-spacing: 0.14em; color: var(--ink-faint);
}
.xr-sum b { color: var(--ink-dim); font-weight: 400; }
.xr-op { color: var(--ink-faint); }
.xr-eq {
  font-size: 1.4em; letter-spacing: 0.18em; font-weight: 700; color: transparent;
  background: linear-gradient(90deg, var(--ice), var(--gold), var(--ice-bright)); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: auroraText 7s linear infinite;
}
.xr-def { color: var(--ink-faint); letter-spacing: 0.16em; }
@media (max-width: 560px) { .xr-def { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .xr-eq { -webkit-text-fill-color: var(--ice); color: var(--ice); animation: none; } }

/* ---- Verticals (the branch) ---- */
.verticals { background: linear-gradient(180deg, var(--bg-1), var(--bg)); }
.verticals .intro { max-width: 780px; margin-bottom: clamp(50px, 8vh, 90px); }
.verticals .intro p { color: var(--ink-dim); font-size: clamp(1rem, 1.5vw, 1.15rem); margin-top: 20px; max-width: 60ch; }

.vertical {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(46px, 8vh, 96px) 0;
  border-top: 1px solid var(--line);
}
.vertical:nth-child(even) .v-media { order: 2; }
.v-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #070b16;
}
.v-media img { position: absolute; inset: 0; width: 100%; height: 116%; object-fit: cover; display: block; transform: translateY(var(--py, -8%)); filter: brightness(0.96) saturate(1.03); transition: filter 0.7s var(--ease); will-change: transform; }
.vertical:hover .v-media img { filter: brightness(1.06) saturate(1.14); }
.v-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(120deg, transparent 40%, rgba(111,208,255,0.08));
  mix-blend-mode: screen;
}
.v-media .corner { position: absolute; z-index: 3; width: 16px; height: 16px; border: 1px solid var(--line-gold); transition: border-color 0.45s var(--ease), transform 0.45s var(--ease); }
.v-media .corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.v-media .corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.vertical:hover .v-media .corner, .v-media:focus-visible .corner { border-color: var(--gold-bright); }
.vertical:hover .v-media .corner.tl, .v-media:focus-visible .corner.tl { transform: translate(-3px, -3px); }
.vertical:hover .v-media .corner.br, .v-media:focus-visible .corner.br { transform: translate(3px, 3px); }
.v-media .tag {
  position: absolute; z-index: 3; left: 14px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ice); background: rgba(4,6,12,0.55); border: 1px solid var(--line); padding: 6px 11px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.v-media .tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 8px var(--ice); flex: none; animation: pulse 2.4s ease-in-out infinite; }
.v-copy .v-index { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em; color: var(--gold); }
.v-copy .v-index::before { content: ""; width: 18px; height: 1px; background: var(--line-gold); flex: none; }
.v-copy h3 {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.04; letter-spacing: -0.01em;
  margin: 18px 0 6px; color: var(--ink);
}
.v-copy h3 em { font-style: italic; color: var(--ice-bright); }
.v-copy .v-vertical { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 20px; }
.v-copy p { color: var(--ink-dim); font-size: clamp(0.98rem, 1.4vw, 1.1rem); line-height: 1.6; max-width: 46ch; }
.v-copy .pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.v-copy .pill {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-dim); border: 1px solid var(--line); border-radius: 100px; padding: 7px 13px;
  transition: 0.4s;
}
.v-copy .pill:hover { border-color: var(--line-gold); color: var(--gold); }
@media (prefers-reduced-motion: reduce) {
  .v-media .corner { transition: none; }
  .v-media .tag::before { animation: none; }
}

/* ---- Proof / traction ---- */
.proof { background: var(--bg-1); border-top: 1px solid var(--line); text-align: center; }
.proof .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: var(--space-title-gap); }
.proof .stat { background: var(--bg); padding: 46px 20px; }
.proof .stat .num { font-family: var(--font-serif); font-weight: 300; font-size: clamp(2.6rem, 6vw, 4.4rem); color: var(--ice-bright); line-height: 1; }
.proof .stat .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-dim); margin-top: 14px; }
.proof .creds { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; }
.proof .creds span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ink-faint); text-transform: uppercase; }
.proof .creds b { color: var(--gold); font-weight: 400; }

/* ---- Flagships ---- */
.flagships { position: relative; text-align: center; overflow: hidden; }
.flagships::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 50% at 50% 40%, rgba(47,127,196,0.14), transparent 60%);
}
.flagships .wrap { position: relative; z-index: 1; max-width: 900px; }
.flagships p.lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--ink-dim); margin: 24px auto 44px; max-width: 56ch; line-height: 1.6; }
.cities { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cities span {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-dim); border: 1px solid var(--line); border-radius: 100px; padding: 9px 16px;
}
.cities span.live { color: var(--gold); border-color: var(--line-gold); }

/* ---- Invest CTA ---- */
.invest {
  position: relative; text-align: center; overflow: hidden;
  padding: clamp(120px, 20vh, 240px) clamp(20px, 5vw, 48px);
  background: radial-gradient(80% 70% at 50% 60%, #0a1428 0%, #04060c 72%);
  border-top: 1px solid var(--line);
}
.invest .wrap { max-width: 940px; position: relative; z-index: 2; }
.invest h2 {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(2.4rem, 7vw, 6rem); line-height: 1.0; letter-spacing: -0.015em;
  color: var(--ink);
}
.invest h2 em { font-style: italic; color: var(--ice-bright); }
.invest p { color: var(--ink-dim); font-size: clamp(1.05rem, 1.7vw, 1.28rem); margin: 30px auto 46px; max-width: 56ch; line-height: 1.62; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 17px 30px; border-radius: 100px; cursor: pointer;
  transition: 0.45s var(--ease);
}
.btn-primary {
  background: linear-gradient(100deg, var(--ice), var(--gold));
  color: #05070d; font-weight: 700;
  box-shadow: 0 0 0 rgba(111,208,255,0);
}
.btn-primary:hover { box-shadow: 0 10px 40px rgba(111,208,255,0.35); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.invest .fineprint { margin-top: 40px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; color: var(--ink-faint); text-transform: uppercase; }

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--line);
  padding: 70px clamp(20px,5vw,48px) 50px;
  background: var(--bg);
}
footer .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr; column-gap: clamp(40px, 6vw, 90px); row-gap: 40px; max-width: var(--maxw); margin: 0 auto; }
footer .brand { font-size: 26px; margin-bottom: 16px; }
footer .tagline { font-family: var(--font-serif); font-style: italic; font-weight: 300; color: var(--ink-dim); font-size: 1.15rem; max-width: 30ch; }
footer .col h5 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
footer .col a, footer .col p { display: block; color: var(--ink-dim); font-size: 13px; margin-bottom: 10px; transition: color 0.3s; }
footer .col a:hover { color: var(--ice); }
footer .baseline {
  max-width: var(--maxw); margin: 54px auto 0; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint);
}

/* ---- The Engine (substance) ---- */
.engine { background: linear-gradient(180deg, var(--bg), var(--bg-1)); border-top: 1px solid var(--line); }
.engine-head { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: end; margin-bottom: var(--space-title-gap); }
.engine-head p { color: var(--ink-dim); font-size: clamp(1rem, 1.4vw, 1.12rem); max-width: 46ch; line-height: 1.6; }
.engine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cap { background: var(--bg); padding: 34px 28px 40px; position: relative; transition: background 0.5s; }
.cap:hover { background: #070d1a; }
.cap-n { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; color: var(--gold); }
.cap h4 { font-family: var(--font-serif); font-weight: 400; font-size: 1.5rem; color: var(--ice-bright); margin: 18px 0 12px; letter-spacing: -0.01em; }
.cap p { color: var(--ink-dim); font-size: 14px; line-height: 1.6; }

/* ---- The Reverse Timeline ---- */
.timeline { background: var(--bg-1); border-top: 1px solid var(--line); }
.timeline .section-title { margin-bottom: var(--space-title-gap); }
.track { list-style: none; position: relative; padding-left: 42px; }
.track::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(180deg, var(--line-gold), var(--line) 40%, var(--line-strong)); }
.node { position: relative; padding: 0 0 48px; display: grid; grid-template-columns: 128px 1fr; gap: 30px; align-items: start; }
.node:last-child { padding-bottom: 0; }
.node::before { content: ""; position: absolute; left: -46px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--ice); box-shadow: 0 0 0 4px var(--bg-1), 0 0 14px rgba(111,208,255,0.5); }
.node.past::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px var(--bg-1), 0 0 16px rgba(236,200,121,0.6); }
.node.destiny::before { width: 15px; height: 15px; left: -48px; background: radial-gradient(circle, var(--ice-bright), var(--ice) 60%, transparent); border-color: var(--ice-bright); box-shadow: 0 0 0 4px var(--bg-1), 0 0 26px var(--ice); }
.node .yr { font-family: var(--font-serif); font-weight: 300; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--ink); line-height: 1; }
.node .yr b { color: var(--ice); font-weight: 300; }
.node.past .yr { color: var(--gold-bright); }
.node.destiny .yr { color: var(--ice-bright); }
.node .nc h4 { font-size: 15px; font-weight: 600; color: var(--ink); margin: 4px 0 8px; letter-spacing: 0.01em; }
.node .nc p { color: var(--ink-dim); font-size: 14px; line-height: 1.6; max-width: 52ch; }
.vtag { display: inline-block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ice); border: 1px solid var(--line-strong); border-radius: 100px; padding: 3px 9px; margin-bottom: 10px; }
.vtag.gold { color: var(--gold); border-color: var(--line-gold); }

/* ---- Custom holographic cursor ---- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 1000; pointer-events: none; border-radius: 50%; transform: translate(-50%, -50%); mix-blend-mode: screen; }
.cursor-dot { width: 6px; height: 6px; background: var(--ice); box-shadow: 0 0 10px var(--ice); }
.cursor-ring { width: 34px; height: 34px; border: 1px solid rgba(236, 200, 121, 0.55); transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s, background 0.25s; }
.cursor-ring.hover { width: 58px; height: 58px; border-color: var(--ice); background: rgba(111, 208, 255, 0.06); }
body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor .pill, body.has-cursor .cell { cursor: none; }
/* motion-to-photon cursor: the input->render gap line + live ms readout */
.cursor-link { position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none; height: 1px; width: 0; transform-origin: 0 50%; opacity: 0; background: linear-gradient(90deg, rgba(111,208,255,0.85), rgba(236,200,121,0.6)); }
.cursor-link.hot { background: linear-gradient(90deg, rgba(255,90,107,0.9), rgba(255,150,90,0.65)); }
.cursor-ms { position: fixed; top: 0; left: 0; z-index: 1001; pointer-events: none; transform: translate(14px, 11px); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; color: var(--ice-bright); opacity: 0; transition: opacity 0.25s var(--ease), color 0.3s; text-shadow: 0 0 6px rgba(2,4,10,0.75); white-space: nowrap; }
.cursor-ms.hot { color: #ff6b7a; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring, .cursor-link, .cursor-ms { display: none !important; } }

/* ---- CTA particle field ---- */
.cta-particles { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }

/* ============================================================
   PREMIUM PASS — atmosphere · motion · micro-interactions
   ============================================================ */

/* ambient depth behind everything */
body::before {
  content: ""; position: fixed; inset: -5%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(58% 42% at 14% 6%, rgba(47,127,196,0.11), transparent 62%),
    radial-gradient(52% 44% at 88% 94%, rgba(236,200,121,0.055), transparent 62%);
  animation: ambientDrift 24s ease-in-out infinite alternate;
}
@keyframes ambientDrift {
  from { transform: translate3d(-1.4%, -1%, 0) scale(1.02); }
  to   { transform: translate3d(1.6%, 1.2%, 0) scale(1.07); }
}

/* global scroll progress line */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 250; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--ice-deep), var(--ice) 55%, var(--gold));
  box-shadow: 0 0 12px rgba(111,208,255,0.55);
}

/* refined display tracking + glow */
.scrub-line h2, .invest h2 { letter-spacing: -0.025em; }
.section-title, .manifesto .m-line { letter-spacing: -0.012em; }
.scrub-line h2 b { font-weight: 600; color: var(--ice-bright); font-style: normal; }
.section-title, .invest h2, .manifesto .m-line.grand { text-shadow: 0 0 64px rgba(111,208,255,0.10); }
.manifesto .m-line.grand { font-size: clamp(2.3rem, 6.2vw, 5rem); }

/* entrance choreography (revealed once preloader completes) */
.hud, .section-nav, .scroll-hint { opacity: 0; transition: opacity 1.2s var(--ease) 0.15s, transform 1.2s var(--ease) 0.15s; }
.hud { transform: translateY(-12px); }
.section-nav { transform: translate(10px, -50%); }
body.loaded .hud { opacity: 1; transform: none; }
body.loaded .section-nav { opacity: 1; transform: translateY(-50%); }
body.loaded .scroll-hint { opacity: 1; }
.hero .sticky canvas.painted { animation: heroScale 1.9s var(--ease) both; }
@keyframes heroScale { from { transform: scale(1.09); } to { transform: scale(1); } }

/* split word reveal */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.32em; margin-bottom: -0.32em; }
.split .wi { display: inline-block; transform: translateY(118%); opacity: 0; transition: transform 0.72s var(--ease), opacity 0.72s var(--ease); }
.split.in .wi { transform: none; opacity: 1; }
.wi.is-em { font-style: italic; color: var(--ice-bright); }
.wi.is-b { color: var(--ink); font-weight: 600; }
.wi.gold { color: var(--gold-bright); }

/* grid hover accents (realities + engine) */
.reality-grid .cell, .engine .cap { transition: background 0.5s, box-shadow 0.5s; }
.reality-grid .cell::after, .engine .cap::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ice), transparent);
  opacity: 0; transition: opacity 0.5s;
}
.reality-grid .cell:hover::after, .engine .cap:hover::after { opacity: 0.85; }
.reality-grid .cell:hover, .engine .cap:hover { box-shadow: inset 0 40px 70px -40px rgba(111,208,255,0.16); }

/* primary button shine + magnetic base */
.magnetic { transition: transform 0.3s var(--ease); }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-18deg); transition: left 0.75s var(--ease); pointer-events: none;
}
.btn-primary:hover::after { left: 140%; }

/* image cohesion grade */
.v-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(4,6,12,0.10), transparent 40%, rgba(4,6,12,0.35));
  mix-blend-mode: multiply;
}

/* accessibility focus */
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 3px; }
body.has-cursor :focus-visible { outline-color: var(--gold); }

/* ---- critique-pass refinements ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 600; transform: translateY(-160%); background: var(--bg-2); color: var(--ink); border: 1px solid var(--line-strong); padding: 11px 17px; border-radius: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; transition: transform 0.25s var(--ease); }
.skip-link:focus { transform: none; }
.eyebrow--center { justify-content: center; }
.cities-note { margin-top: 22px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); }
.cinematic.replica { border-top: 1px solid var(--line); }
.scrub-line h2, .section-title, .invest h2, .manifesto .m-line { text-wrap: balance; }
.v-copy p, .flagships p.lead, .verticals .intro p, .node .nc p, .engine-head p, .invest p { text-wrap: pretty; }

/* ---- Founders ---- */
.founders { background: var(--bg); border-top: 1px solid var(--line); }
.founders .section-title { margin-bottom: var(--space-title-gap); }
.founder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.founder { background: var(--bg); padding: clamp(30px, 4vw, 52px); }
.f-name { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.5rem, 2.5vw, 2rem); color: var(--ink); letter-spacing: -0.01em; }
.f-role { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-top: 8px; }
.f-quote { font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: clamp(1.3rem, 2.2vw, 1.75rem); color: var(--ice-bright); margin: 26px 0 18px; }
.f-bio { color: var(--ink-dim); font-size: 15px; line-height: 1.66; max-width: 48ch; text-wrap: pretty; }
.ethos { margin-top: clamp(50px, 8vh, 96px); text-align: center; border: 0; }
.ethos p { font-family: var(--font-serif); font-weight: 300; font-style: italic; font-size: clamp(1.35rem, 3.2vw, 2.5rem); line-height: 1.42; color: var(--ink); letter-spacing: -0.01em; }
.ethos cite { display: block; margin-top: 26px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-faint); font-style: normal; }

/* ---- clickable vertical cards → vertical pages ---- */
.v-media { display: block; text-decoration: none; }
.v-enter { position: absolute; z-index: 3; right: 12px; top: 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); background: rgba(4,6,12,0.5); border: 1px solid var(--line-strong); padding: 8px 13px; border-radius: 100px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transform: translateY(-6px); transition: 0.45s var(--ease); }
.v-enter span { color: var(--gold); }
.vertical:hover .v-enter { opacity: 1; transform: none; }
.v-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ice); border-bottom: 1px solid var(--line-strong); padding-bottom: 7px; transition: color 0.4s, border-color 0.4s; }
.v-link span { color: var(--gold); transition: transform 0.4s var(--ease); }
.v-link:hover { color: var(--ink); border-color: var(--gold); }
.v-link:hover span { transform: translateX(6px); }

/* ---- vertical pages ---- */
.hud-back { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-dim); display: inline-flex; align-items: center; gap: 8px; transition: color 0.4s; }
.hud-back:hover { color: var(--ice); }
.hud-status .page-tag { color: var(--gold); }
.vlead { background: linear-gradient(180deg, var(--bg-1), var(--bg)); border-top: 1px solid var(--line); text-align: center; }
.vlead .wrap { max-width: 940px; }
.vlead .big { font-family: var(--font-serif); font-weight: 300; font-size: clamp(1.8rem, 4.4vw, 3.4rem); line-height: 1.14; letter-spacing: -0.02em; color: var(--ink); }
.vlead .big em { font-style: italic; color: var(--ice-bright); }
.vlead p { color: var(--ink-dim); font-size: clamp(1.02rem, 1.5vw, 1.18rem); line-height: 1.7; margin: 30px auto 0; max-width: 62ch; text-wrap: pretty; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feat { background: var(--bg); padding: 34px 28px 40px; position: relative; transition: background 0.5s, box-shadow 0.5s; }
.feat:hover { background: #070d1a; box-shadow: inset 0 40px 70px -40px rgba(111,208,255,0.16); }
.feat::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--ice), transparent); opacity: 0; transition: opacity 0.5s; }
.feat:hover::after { opacity: 0.85; }
.feat .n { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; color: var(--gold); }
.feat h4 { font-family: var(--font-serif); font-weight: 400; font-size: 1.4rem; color: var(--ice-bright); margin: 16px 0 10px; letter-spacing: -0.01em; }
.feat p { color: var(--ink-dim); font-size: 14px; line-height: 1.6; }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); }
.case { position: relative; border-top: 1px solid var(--line-gold); padding: 26px clamp(4px, 1vw, 14px) 8px; transition: border-color 0.4s; display: flex; flex-direction: column; }
.case::after { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--gold); box-shadow: 0 0 8px rgba(236, 200, 121, 0.4); transition: width 0.55s var(--ease); }
.case:hover::after, .case:focus-within::after { width: 42%; }
.case .ci { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em; color: var(--gold); }
.case .ci::before { content: ""; width: 16px; height: 1px; background: var(--line-gold); flex: none; }
.case h4 { font-family: var(--font-serif); font-weight: 300; font-size: clamp(1.3rem, 2vw, 1.7rem); color: var(--ink); margin: 16px 0 10px; transition: color 0.4s var(--ease); }
.case:hover h4 { color: var(--ice-bright); }
.case p { color: var(--ink-dim); font-size: 14.5px; line-height: 1.62; text-wrap: pretty; margin-bottom: 22px; }
.case-img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-top: auto; border-radius: 8px; border: 1px solid rgba(160,190,230,0.12); background: #05070d; }
.press { text-align: center; background: radial-gradient(60% 60% at 50% 40%, rgba(47,127,196,0.10), transparent 62%); }
.press .q { font-family: var(--font-serif); font-weight: 300; font-style: italic; font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1.3; color: var(--ink); letter-spacing: -0.01em; max-width: 18ch; margin: 0 auto; }
.press .q em { color: var(--ice-bright); }
.press .src { display: block; margin-top: 24px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
.tour { background: var(--bg-1); border-top: 1px solid var(--line); }
.tour-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 44px; }
.tour-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .tour-grid--3 { grid-template-columns: 1fr; } }
.tour-card { position: relative; background: var(--bg); padding: clamp(30px, 4vw, 48px); display: flex; flex-direction: column; gap: 8px; transition: background 0.5s, box-shadow 0.5s var(--ease); text-decoration: none; }
.tour-card::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.tour-card:hover, .tour-card:focus-visible { background: #070d1a; box-shadow: inset 0 0 0 1px var(--line-strong); outline: none; }
.tour-card:hover::after, .tour-card:focus-visible::after { transform: scaleX(1); }
.tour-card .tc-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); }
.tour-card .tc-t { font-family: var(--font-serif); font-weight: 300; font-size: clamp(1.5rem, 2.6vw, 2.2rem); color: var(--ink); }
.tour-card .tc-t em { font-style: italic; color: var(--ice-bright); }
.tour-card .tc-go { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-top: 12px; transition: transform 0.4s var(--ease); }
.tour-card:hover .tc-go, .tour-card:focus-visible .tc-go { color: var(--ice-bright); transform: translateX(4px); }

/* ---- Engine SLO spec strip ---- */
.spec-strip { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 44px; margin-top: 48px; padding-top: 34px; border-top: 1px solid var(--line); }
.spec-cap { flex-basis: 100%; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.spec { display: flex; flex-direction: column; gap: 5px; }
.spec b { font-family: var(--font-serif); font-weight: 300; font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--ice-bright); line-height: 1; }
.spec span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .reality-grid { grid-template-columns: repeat(2, 1fr); }
  .proof .stats { grid-template-columns: repeat(2, 1fr); }
  .vertical { grid-template-columns: 1fr; gap: 26px; }
  .vertical:nth-child(even) .v-media { order: 0; }
  .engine-head { grid-template-columns: 1fr; gap: 24px; }
  .engine-grid { grid-template-columns: repeat(2, 1fr); }
  .founder-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: 1fr; gap: 30px; }
  .tour-grid { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr; row-gap: 30px; }
  footer .col a, footer .col p { padding: 8px 0; margin-bottom: 2px; }
  .scroll-hint { display: none; }
  /* section index → bottom pill bar so mobile keeps wayfinding */
  .section-nav {
    top: auto; bottom: 16px; left: 50%; right: auto; transform: translateX(-50%);
    flex-direction: row; align-items: center; gap: 16px;
    background: var(--panel); border: 1px solid var(--line);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    padding: 10px 18px; border-radius: 100px;
  }
  body.loaded .section-nav { transform: translateX(-50%); }
  .section-nav a { min-height: 32px; }
  .section-nav a .lbl { opacity: 1; transform: none; }
  .section-nav a .tick { display: none; }
}
@media (max-width: 560px) {
  .hud-status { display: none; }
  .cinematic.hero { height: 460vh; }
  .cinematic.replica { height: 420vh; }
  .telemetry.tr, .telemetry.br { display: none; }
  .reality-grid { grid-template-columns: 1fr; }
  .engine-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .proof .stats { grid-template-columns: 1fr; }
  .node { grid-template-columns: 1fr; gap: 8px; }
  .node::before { left: -30px; }
  .track { padding-left: 30px; }
  .audio-btn { padding: 12px 16px; min-height: 44px; }
}
/* cramped landscape phones: drop decorative chrome so the headline stays clean */
@media (max-height: 480px) and (orientation: landscape) {
  .telemetry, .progress, .scroll-hint { display: none; }
  .scrub-line h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
  .section-nav { display: none; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.001s !important; }
  .cinematic { height: auto !important; }
  .sticky { position: relative; height: auto; min-height: 78vh; }
  .sticky canvas { display: none; }
  .scrub-copy { position: relative; display: block; padding: 90px 24px; }
  .scrub-line { position: relative; left: auto; top: auto; opacity: 1; transform: none; margin: 32px auto; }
  .scroll-hint, .progress { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   STUNNING PASS — view transitions · opsz · aurora · pipeline · live HUD
   ============================================================ */

/* cross-document view transitions — the 4 pages become one continuous film */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: 0.6s; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
.hud { view-transition-name: hud; }
.section-nav { view-transition-name: secnav; }
.scroll-progress { view-transition-name: sprog; }
.hud .brand { view-transition-name: brand; }
.vpage .cinematic.hero .poster { view-transition-name: stage; }
::view-transition-group(stage) { animation-duration: 0.66s; animation-timing-function: var(--ease); }

/* internal navigation: no preloader replay, no chrome re-fade — app-shell continuity */
.internal-nav #preloader { display: none; }
.internal-nav .hud { opacity: 1 !important; transform: none !important; transition: none !important; }
.internal-nav .section-nav { opacity: 1 !important; transition: none !important; }
.internal-nav .scroll-hint { transition: none !important; }

/* Fraunces optical sizing — snap display serif to the high-contrast master */
.scrub-line h2, .invest h2, .manifesto .m-line.grand, .vlead .big { font-variation-settings: "opsz" 144; letter-spacing: -0.03em; }
.section-title, .press .q, .ethos p, .f-quote { font-variation-settings: "opsz" 96; }

/* kinetic aurora on the one accent word per hero */
.scrub-line.accent h2 b {
  background: linear-gradient(100deg, var(--ice-bright) 0%, var(--gold-bright) 45%, var(--ice-bright) 90%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: auroraText 6.5s var(--ease) infinite;
}
@keyframes auroraText { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* editorial pull-quote glyph */
.press .q { position: relative; }
.press .q::before {
  content: "\201C"; position: absolute; left: 50%; top: -0.62em; transform: translateX(-50%);
  font-family: var(--font-serif); font-weight: 300; font-size: clamp(6rem, 14vw, 11rem);
  line-height: 1; color: var(--gold); opacity: 0.14; pointer-events: none;
}

/* pointer gleam on cards */
.feat, .cap, .tour-card { overflow: hidden; }
.feat::before, .cap::before, .tour-card::before, .case::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  transition: opacity 0.4s var(--ease);
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(111,208,255,0.12), transparent 62%);
}
.feat:hover::before, .cap:hover::before, .tour-card:hover::before, .case:hover::before { opacity: 1; }
.feat > *, .cap > *, .tour-card > *, .case > * { position: relative; z-index: 1; }

/* graded home vertical stills → one captured light-field */
.v-media img { filter: brightness(0.9) contrast(1.06) saturate(0.86); }
.vertical:hover .v-media img { filter: brightness(1.02) contrast(1.04) saturate(1.02); }

/* tabular telemetry numerals */
.telemetry b, .spec b { font-variant-numeric: tabular-nums; }

/* ---- "How REPLICA works" pipeline ---- */
.pipeline { background: var(--bg); border-top: 1px solid var(--line); }
.pipe-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: var(--space-title-gap); }
.pipe { background: var(--bg); padding: 34px 26px 42px; position: relative; transition: background 0.5s; display: flex; flex-direction: column; }
.pipe:hover { background: #070d1a; }
.pipe .pn { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; color: var(--gold); }
.pipe h4 { font-family: var(--font-serif); font-weight: 400; font-size: 1.35rem; color: var(--ice-bright); margin: 16px 0 4px; letter-spacing: -0.01em; }
.pipe .sub { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.pipe p { color: var(--ink-dim); font-size: 13.5px; line-height: 1.56; margin-bottom: 24px; }
.pipe-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-top: auto; border-radius: 7px; border: 1px solid rgba(160,190,230,0.12); background: #05070d; }
.pipe:not(:last-child)::after { content: "\2192"; position: absolute; right: -12px; top: 50%; transform: translateY(-50%); z-index: 3; color: var(--gold); font-size: 15px; background: var(--bg); padding: 5px 1px; }

/* reduced-motion: neutralise transitions + aurora */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .scrub-line.accent h2 b { animation: none !important; }
}

/* stunning-pass responsive */
@media (max-width: 900px) {
  .pipe-flow { grid-template-columns: repeat(2, 1fr); }
  .pipe:not(:last-child)::after { display: none; }
}
@media (max-width: 560px) {
  .pipe-flow { grid-template-columns: 1fr; }
}

/* ---- real SPATIALx logo ---- */
.brand { align-items: center; }
.brand-logo { height: 19px; width: auto; display: block; filter: drop-shadow(0 0 12px rgba(111, 208, 255, 0.30)); }
footer .brand-logo { height: 26px; }
/* registered-trademark mark on the wordmark */
.brand::after {
  content: "®";
  align-self: flex-start;
  font-family: var(--font-sans); font-weight: 500;
  font-size: 1.24em; line-height: 1;
  margin-left: 0.16em; margin-top: 0.02em;
  color: var(--ink-dim);
  -webkit-user-select: none; user-select: none;
}
footer .brand::after { color: var(--ink-faint); }
.pl-mark { line-height: 0; }
.pl-logo { width: min(300px, 62vw); height: auto; filter: drop-shadow(0 0 22px rgba(111, 208, 255, 0.4)); }
@media (max-width: 560px) { .brand-logo { height: 17px; } }

/* ---- scrub headline legibility over bright frames: a THIN dark outline
   (stroke painted BEHIND the fill via paint-order, so the light serif keeps
   its weight and gains a crisp edge) + a defined drop shadow. Also carries the
   --g chromatic split on fast scroll. ---- */
.scrub-line h2 {
  paint-order: stroke fill;
  -webkit-text-stroke: 0.75px rgba(0,0,0,0.55);
  text-shadow: 0 1px 3px rgba(0,0,0,0.6), 0 3px 12px rgba(0,0,0,0.5), calc(var(--g,0) * -6px) 0 rgba(255,90,90, calc(var(--g,0) * 0.5)), calc(var(--g,0) * 6px) 0 rgba(90,210,255, calc(var(--g,0) * 0.5));
}
.scrub-line.accent h2 { text-shadow: 0 1px 3px rgba(0,0,0,0.55), 0 3px 12px rgba(0,0,0,0.45), 0 0 40px rgba(236,200,121,0.16), calc(var(--g,0) * -6px) 0 rgba(255,90,90, calc(var(--g,0) * 0.5)), calc(var(--g,0) * 6px) 0 rgba(90,210,255, calc(var(--g,0) * 0.5)); }

/* ---- Temporal toggle: 2025 "projected" era re-skin ---- */
:root[data-era="2025"] {
  --gold: #8f8f88; --gold-bright: #a7a79f;
  --ice: #7f9bb5; --ice-bright: #a3b6c9;
  --line-gold: rgba(150,150,150,0.2);
}
:root[data-era="2025"] main { filter: saturate(0.6) contrast(0.97) brightness(0.98); }
main { transition: filter 0.7s var(--ease); }
:root[data-era="2025"] body::before { opacity: 0.4; }
:root[data-era="2025"] .scrub-line.accent h2 b { animation: none; background: none; -webkit-text-fill-color: var(--ice-bright); color: var(--ice-bright); }
.era-btn { display: inline-flex; align-items: center; gap: 4px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 100px; padding: 5px; cursor: pointer; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-dim); }
.era-btn .yr2 { padding: 4px 9px; border-radius: 100px; transition: color 0.3s, background 0.3s; }
.era-btn .yr2.on { background: linear-gradient(100deg, var(--ice), var(--gold)); color: #05070d; }
#era-wipe { position: fixed; inset: 0; z-index: 480; pointer-events: none; opacity: 0; background: linear-gradient(100deg, transparent, rgba(111,208,255,0.45), rgba(236,200,121,0.35), transparent); transform: translateX(-115%); }
#era-wipe.sweep { animation: eraSweep 0.75s var(--ease); }
@keyframes eraSweep { 0% { opacity: 1; transform: translateX(-115%); } 100% { opacity: 1; transform: translateX(115%); } }

/* ---- Spatial command palette (⌘K) ---- */
#cmdk { position: fixed; inset: 0; z-index: 500; display: none; align-items: flex-start; justify-content: center; padding: 14vh 20px 20px; background: rgba(4,6,12,0.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
#cmdk.open { display: flex; }
.cmdk-box { width: min(600px, 94vw); max-height: 74vh; display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,0.6); }
.cmdk-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); flex: none; }
.cmdk-input { flex: 1; background: none; border: 0; outline: none; color: var(--ink); font-family: var(--font-sans); font-size: 16px; }
.cmdk-input::placeholder { color: var(--ink-faint); }
.cmdk-say { padding: 9px 18px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ice); border-bottom: 1px solid var(--line); min-height: 16px; flex: none; }
.cmdk-list { overflow-y: auto; padding: 8px; }
.cmdk-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 9px; cursor: pointer; }
.cmdk-item .lbl { font-size: 14px; color: var(--ink); }
.cmdk-item .kind { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }
.cmdk-item.sel { background: rgba(111,208,255,0.09); }
.cmdk-item.sel .kind { color: var(--gold); }

/* ---- Enter-the-Signal ceremony ---- */
.pl-enter { display: flex; gap: 12px; justify-content: center; margin-top: 6px; opacity: 0; transform: translateY(10px); transition: opacity 0.6s var(--ease) 0.1s, transform 0.6s var(--ease) 0.1s; pointer-events: none; }
#preloader.ready .pl-enter { opacity: 1; transform: none; pointer-events: auto; }
#preloader.ready .pl-bar { opacity: 0.25; }
#preloader.ready #pl-pct { opacity: 0; }
.pl-btn { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; padding: 15px 26px; border-radius: 100px; cursor: pointer; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); transition: 0.4s var(--ease); }
.pl-btn:hover { border-color: var(--gold); color: var(--gold); }
.pl-btn.primary { background: linear-gradient(100deg, var(--ice), var(--gold)); color: #05070d; border-color: transparent; font-weight: 700; }
.pl-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(111,208,255,0.35); color: #05070d; }
@media (max-width: 560px) { .pl-enter { flex-direction: column; width: min(280px, 80vw); } .pl-btn { width: 100%; } }

/* ---- cursor light-field parallax — the HUD floats over the hologram ---- */
.scrub-copy { transform: translate3d(calc(var(--px, 0) * 16px), calc(var(--py, 0) * 11px), 0); }
.telemetry { transform: translate3d(calc(var(--px, 0) * -6px), calc(var(--py, 0) * -4px), 0); }

/* ============================================================
   FULL-SCREEN NAVIGATION MENU
   ============================================================ */
.menu-btn {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 100px;
  padding: 8px 16px 8px 14px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-dim);
  transition: border-color 0.4s, color 0.4s;
}
.menu-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.menu-btn .menu-ico { position: relative; width: 16px; height: 9px; display: inline-block; }
.menu-btn .menu-ico i {
  position: absolute; left: 0; width: 16px; height: 1.5px; border-radius: 2px;
  background: var(--ice); box-shadow: 0 0 6px rgba(111, 208, 255, 0.7);
  transition: transform 0.45s var(--ease), width 0.4s var(--ease);
}
.menu-btn .menu-ico i:nth-child(1) { top: 0; }
.menu-btn .menu-ico i:nth-child(2) { bottom: 0; width: 11px; }
.menu-btn:hover .menu-ico i:nth-child(2) { width: 16px; }
.menu-btn.is-open .menu-ico i:nth-child(1) { top: 4px; transform: rotate(45deg); }
.menu-btn.is-open .menu-ico i:nth-child(2) { bottom: 3.5px; width: 16px; transform: rotate(-45deg); }

.site-menu {
  position: fixed; inset: 0; z-index: 900;
  display: flex; align-items: center; justify-content: center;
  overflow-y: auto;
  background: rgba(4, 6, 12, 0.80);
  backdrop-filter: blur(20px) saturate(1.1); -webkit-backdrop-filter: blur(20px) saturate(1.1);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.55s var(--ease), visibility 0.55s;
}
.site-menu.open { opacity: 1; visibility: visible; pointer-events: auto; }
.site-menu::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 82% 8%, rgba(111, 208, 255, 0.12), transparent 58%),
    radial-gradient(90% 70% at 8% 94%, rgba(236, 200, 121, 0.09), transparent 60%);
}
.menu-inner {
  position: relative; width: 100%; max-width: 1180px;
  padding: clamp(96px, 13vh, 150px) clamp(24px, 6vw, 80px) clamp(56px, 8vh, 80px);
}
.menu-close {
  position: absolute; top: clamp(20px, 4vh, 38px); right: clamp(20px, 5vw, 58px);
  width: 46px; height: 46px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-strong); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.4s, transform 0.5s var(--ease);
}
.menu-close:hover { border-color: var(--ice); transform: rotate(90deg); }
.menu-close span { position: absolute; width: 16px; height: 1.5px; background: var(--ink); border-radius: 2px; }
.menu-close span:first-child { transform: rotate(45deg); }
.menu-close span:last-child { transform: rotate(-45deg); }

.menu-cols {
  display: grid; grid-template-columns: 1.45fr 0.85fr;
  gap: clamp(40px, 7vw, 110px); align-items: center;
}
.menu-nav { display: flex; flex-direction: column; }
.m-link {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: clamp(14px, 2vw, 26px);
  padding: clamp(13px, 1.9vh, 22px) 0;
  border-top: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  opacity: 0; transform: translateY(16px);
  transition: color 0.4s, border-color 0.4s;
}
.m-link:last-of-type { border-bottom: 1px solid var(--line); }
.site-menu.open .m-link {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), color 0.4s, border-color 0.4s;
}
.site-menu.open .m-link:nth-child(1) { transition-delay: 0.06s; }
.site-menu.open .m-link:nth-child(2) { transition-delay: 0.12s; }
.site-menu.open .m-link:nth-child(3) { transition-delay: 0.18s; }
.site-menu.open .m-link:nth-child(4) { transition-delay: 0.24s; }
.site-menu.open .m-link:nth-child(5) { transition-delay: 0.30s; }
.m-k {
  grid-row: span 2; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.2em; color: var(--ice); opacity: 0.62; padding-top: 0.5em;
}
.m-t {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(30px, 5vw, 56px); line-height: 1.02; letter-spacing: -0.012em;
  transition: color 0.4s, transform 0.5s var(--ease);
}
.m-s {
  grid-column: 2; margin-top: 7px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink-faint);
}
.m-link:hover .m-t { color: var(--gold); transform: translateX(10px); }
.m-link:hover { border-color: var(--line-gold); }
.m-link.is-current .m-t { color: var(--ice); }
.m-link.is-current .m-k { opacity: 1; }
.m-link.is-current { cursor: default; }

.menu-aside {
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
  opacity: 0; transition: opacity 0.8s var(--ease) 0.28s;
}
.site-menu.open .menu-aside { opacity: 1; }
.menu-aside .menu-logo { height: 22px; width: auto; opacity: 0.9; }
.menu-tag { font-size: 13px; line-height: 1.6; color: var(--ink-dim); max-width: 34ch; }
.menu-cta {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  border: 1px solid var(--line-gold); border-radius: 100px; padding: 12px 22px;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.menu-cta:hover { background: var(--gold); color: #0a0d16; border-color: var(--gold); }
.menu-meta {
  display: flex; flex-direction: column; gap: 6px; margin-top: 6px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink-faint);
}
body.menu-open { overflow: hidden; }

@media (max-width: 820px) {
  .menu-cols { grid-template-columns: 1fr; gap: 34px; }
  .menu-aside { border-top: 1px solid var(--line); padding-top: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-menu, .site-menu .m-link, .menu-aside, .m-link .m-t { transition: none !important; }
  .m-link { opacity: 1; transform: none; }
}

/* ============================================================
   THE JOURNAL
   ============================================================ */
.journal-hero {
  position: relative;
  max-width: 1060px; margin: 0 auto;
  padding: clamp(150px, 24vh, 260px) clamp(22px, 6vw, 60px) clamp(46px, 7vh, 84px);
}
.journal-hero h1 {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(38px, 7.4vw, 96px); line-height: 1.0; letter-spacing: -0.022em;
  margin: 20px 0 28px; color: var(--ink);
}
.journal-hero h1 em { font-style: italic; color: var(--ice); }
.journal-hero .lead {
  font-size: clamp(15px, 1.7vw, 19px); line-height: 1.65; color: var(--ink-dim); max-width: 60ch;
}
.journal-rule { max-width: 1060px; margin: 0 auto; height: 1px; background: var(--line); }

.journal-list {
  max-width: 748px; margin: 0 auto;
  padding: 0 clamp(22px, 6vw, 40px) clamp(60px, 10vh, 120px);
}
.journal-entry { padding: clamp(50px, 8vh, 100px) 0; border-top: 1px solid var(--line); }
.journal-entry:first-child { border-top: none; }
.je-meta {
  display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
}
.je-tag {
  display: inline-block; color: transparent;
  background: linear-gradient(90deg, var(--ice), var(--gold), var(--ice-bright)); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: auroraText 7s linear infinite;
}
.je-time { color: var(--ink-faint); display: inline-flex; align-items: center; gap: 16px; }
.je-time::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
.je-title {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(28px, 4.6vw, 48px); line-height: 1.05; letter-spacing: -0.016em;
  color: var(--ink); margin-bottom: 16px;
}
.je-dek {
  font-family: var(--font-serif); font-style: italic; font-weight: 300;
  font-size: clamp(16px, 2vw, 21px); line-height: 1.5; color: var(--ice-bright); opacity: 0.9;
  margin-bottom: 30px; max-width: 52ch;
}
.je-body p {
  font-size: clamp(15px, 1.5vw, 17.5px); line-height: 1.78; color: var(--ink-dim);
  margin-bottom: 20px; max-width: 66ch;
}
.je-body p:last-child { margin-bottom: 0; }
.je-body em { font-style: italic; color: var(--ink); }
.je-body p:first-of-type::first-letter {
  font-family: var(--font-serif); font-weight: 400;
  float: left; font-size: 3.5em; line-height: 0.74; margin: 8px 14px 0 0; color: var(--gold);
}

.journal-end {
  max-width: 748px; margin: 0 auto;
  padding: 0 clamp(22px, 6vw, 40px) clamp(90px, 14vh, 160px);
  text-align: center;
}
.journal-end .je-line { height: 1px; background: var(--line); margin-bottom: 40px; }
.journal-end p {
  font-family: var(--font-serif); font-style: italic; font-weight: 300;
  font-size: clamp(19px, 2.6vw, 27px); line-height: 1.4; color: var(--ink); margin-bottom: 30px;
}
.journal-end .btn-ghost { display: inline-flex; }

@media (prefers-reduced-motion: reduce) {
  .je-body p:first-of-type::first-letter { color: var(--gold); }
  .je-tag { -webkit-text-fill-color: var(--gold); color: var(--gold); animation: none; }
  .journal-article .je-meta, .journal-article .je-title, .journal-article .je-dek { animation: none; opacity: 1; transform: none; }
}

/* ---- journal entries bar: Contents dropdown + position counter ---- */
.journal-bar {
  position: sticky; top: 50px; z-index: 120;
  max-width: 1060px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 11px clamp(22px, 6vw, 40px);
}
.journal-bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(2,3,10,0.94) 0%, rgba(2,3,10,0.78) 62%, rgba(2,3,10,0) 100%);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 66%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 66%, transparent 100%);
}
.journal-bar.panel-open::before { -webkit-mask-image: none; mask-image: none; background: rgba(2,3,10,0.94); }

.jb-toggle {
  display: inline-flex; align-items: center; gap: 9px;
  background: none; border: 0; cursor: pointer; padding: 4px 2px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-dim); transition: color 0.3s;
}
.jb-toggle:hover, .jb-toggle[aria-expanded="true"] { color: var(--ink); }
.jb-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 8px var(--ice); }
.jb-caret { font-size: 9px; transition: transform 0.35s var(--ease); opacity: 0.7; }
.jb-toggle[aria-expanded="true"] .jb-caret { transform: rotate(180deg); }

.jb-seq { display: inline-flex; align-items: center; gap: 12px; }
.jb-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line);
  color: var(--ink-dim); text-decoration: none; font-size: 15px; line-height: 1;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.jb-arrow:hover { color: var(--ink); border-color: var(--line-strong); }
.jb-count { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--ink-faint); }
.jb-count b { color: var(--ice); font-weight: 700; }
.jb-count i { margin: 0 3px; font-style: normal; opacity: 0.5; }

.jb-panel {
  position: absolute; top: calc(100% - 4px); left: clamp(16px, 5vw, 34px);
  width: min(420px, calc(100vw - 40px)); max-height: 64vh; overflow-y: auto; z-index: 130;
  background: rgba(6, 9, 18, 0.88);
  -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1);
  border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 4px 8px 8px; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.9);
  opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.jb-panel.open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.jb-panel-head {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-faint); padding: 12px 12px 12px; border-bottom: 1px solid var(--line);
}
.jb-index { list-style: none; padding: 6px 0 2px; }
.jb-index a {
  display: grid; grid-template-columns: 26px 1fr auto; align-items: baseline; gap: 12px;
  padding: 9px 12px; border-radius: 7px; text-decoration: none; color: var(--ink-dim);
  transition: background 0.25s, color 0.25s;
}
.jb-index a:hover { background: rgba(111,208,255,0.06); color: var(--ink); }
.jb-index .jbi-n { font-family: var(--font-mono); font-size: 10px; color: var(--ice); opacity: 0.6; }
.jb-index .jbi-t { font-family: var(--font-serif); font-weight: 300; font-size: 15px; line-height: 1.25; color: inherit; }
.jb-index .jbi-tag { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
.jb-index a.is-current { background: rgba(111,208,255,0.10); }
.jb-index a.is-current .jbi-t { color: var(--ice); }
.jb-index a.is-current .jbi-n { opacity: 1; }
@media (max-width: 560px) { .jb-toggle .jb-label { display: none; } .journal-bar { top: 46px; } .jb-index .jbi-tag { display: none; } }

/* ---- journal entry page ---- */
.je-hero {
  max-width: 1060px; margin: clamp(6px, 2vh, 20px) auto clamp(30px, 5vh, 56px);
  padding: 0 clamp(22px, 6vw, 40px);
}
.je-hero img {
  width: 100%; height: auto; display: block; border-radius: 5px;
  border: 1px solid var(--line); aspect-ratio: 16 / 9; object-fit: cover;
  box-shadow: 0 30px 90px -40px rgba(0,0,0,0.9);
}
.journal-article {
  max-width: 748px; margin: 0 auto;
  padding: 0 clamp(22px, 6vw, 40px) clamp(46px, 7vh, 80px);
}
.journal-article .je-title { font-size: clamp(32px, 5.4vw, 62px); margin-bottom: 18px; }
.journal-article .je-dek { margin-bottom: 34px; }
/* entry header composes in on arrival — echoes the district dossier */
.journal-article .je-meta { animation: jeRise 0.7s var(--ease) 0.06s both; }
.journal-article .je-title { animation: jeRise 0.72s var(--ease) 0.14s both; }
.journal-article .je-dek { animation: jeRise 0.72s var(--ease) 0.22s both; }
@keyframes jeRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---- next / previous ---- */
.je-next {
  max-width: 748px; margin: 0 auto;
  padding: clamp(30px, 5vh, 48px) clamp(22px, 6vw, 40px) clamp(90px, 14vh, 160px);
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 24px;
}
.je-next-link {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  text-decoration: none; color: var(--ink);
  padding: clamp(22px, 3vw, 30px) clamp(22px, 3vw, 30px);
  border: 1px solid var(--line-strong); border-radius: 7px;
  background: linear-gradient(180deg, rgba(111,208,255,0.035), transparent);
  transition: border-color 0.4s, transform 0.4s var(--ease), background 0.4s;
}
.je-next-link:hover { border-color: var(--ice); transform: translateY(-2px); background: linear-gradient(180deg, rgba(111,208,255,0.07), transparent); }
.nx-meta { display: flex; flex-direction: column; gap: 7px; }
.nx-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.nx-t { font-family: var(--font-serif); font-weight: 300; font-size: clamp(20px, 3vw, 31px); line-height: 1.08; color: var(--ink); }
.nx-arrow { flex: none; font-size: 30px; line-height: 1; color: var(--ice); transition: transform 0.45s var(--ease); }
.je-next-link:hover .nx-arrow { transform: translateX(8px); }
.je-prev-link {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-dim); text-decoration: none; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 12px; transition: color 0.3s;
}
.je-prev-link:hover { color: var(--ink); }
.je-prev-link .pv-t { color: var(--ink-faint); }
.je-prev-link:hover .pv-arrow { transform: translateX(-5px); }
.je-prev-link .pv-arrow { transition: transform 0.4s var(--ease); }

/* ---- journal index (contents) ---- */
.journal-index {
  max-width: 940px; margin: 0 auto;
  padding: 0 clamp(22px, 6vw, 40px) clamp(90px, 14vh, 160px);
}
.jx-item {
  display: grid; grid-template-columns: 132px 1fr auto; align-items: center; gap: clamp(18px, 3vw, 40px);
  padding: clamp(22px, 3.2vh, 34px) 0; border-top: 1px solid var(--line);
  text-decoration: none; color: var(--ink); transition: border-color 0.4s;
}
.jx-item:last-child { border-bottom: 1px solid var(--line); }
.jx-item:hover { border-color: var(--line-gold); }
.jx-thumb { width: 132px; height: 74px; border-radius: 4px; object-fit: cover; border: 1px solid var(--line); opacity: 0.85; transition: opacity 0.4s; }
.jx-item:hover .jx-thumb { opacity: 1; }
.jx-main { display: flex; flex-direction: column; gap: 9px; }
.jx-meta { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); display: flex; gap: 14px; align-items: center; }
.jx-meta .jx-n { color: var(--ice); opacity: 0.62; }
.jx-meta .jx-t { color: var(--ink-faint); }
.jx-title { font-family: var(--font-serif); font-weight: 300; font-size: clamp(23px, 3.4vw, 35px); line-height: 1.08; letter-spacing: -0.012em; color: var(--ink); transition: color 0.35s, transform 0.45s var(--ease); }
.jx-dek { font-size: 13.5px; line-height: 1.55; color: var(--ink-dim); max-width: 62ch; }
.jx-go { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ice); opacity: 0; transform: translateX(-8px); transition: opacity 0.35s, transform 0.35s; white-space: nowrap; }
.jx-item:hover .jx-title { color: var(--gold); transform: translateX(8px); }
.jx-item:hover .jx-go { opacity: 1; transform: none; }
@media (max-width: 640px) {
  .jx-item { grid-template-columns: 1fr; gap: 14px; }
  .jx-thumb { width: 100%; height: auto; aspect-ratio: 16/9; }
  .jx-go { display: none; }
}

/* ============================================================
   RETAIL XR — THE HOLOGRAPHIC MEGA MALL
   ============================================================ */
.mall-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  margin-top: clamp(30px, 4vw, 46px);
}
@media (max-width: 900px) { .mall-grid { grid-template-columns: 1fr; } }
@media (min-width: 901px) and (max-width: 1200px) { .mall-grid { grid-template-columns: repeat(2, 1fr); } }

.mall-card {
  position: relative; text-align: left; cursor: pointer;
  background: transparent; color: inherit; font: inherit;
  border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(26px, 2.6vw, 42px) clamp(24px, 2.4vw, 38px) clamp(58px, 4vw, 74px);
  min-height: clamp(240px, 22vw, 300px);
  display: flex; flex-direction: column; gap: 14px; overflow: hidden;
  opacity: 0; transform: translateY(16px);
  transition:
    background 0.5s var(--ease),
    box-shadow 0.4s var(--ease),
    opacity 0.7s var(--ease) calc(var(--i, 0) * 70ms),
    transform 0.7s var(--ease) calc(var(--i, 0) * 70ms);
}
.mall-grid.in .mall-card { opacity: 1; transform: none; }        /* boot-sequence: cards ignite 01 -> 06 */
/* cinematic image that fills the grid's empty cells (economy pillars: only at 3-col, where the gap exists) */
.mall-media { display: none; }
@media (min-width: 1201px) {
  .mall-media { display: block; position: relative; grid-column: span 2; min-height: clamp(240px, 22vw, 300px); border-bottom: 1px solid var(--line); overflow: hidden; }
}
.mall-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.mall-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(4,6,12,0.5), transparent 26%), linear-gradient(0deg, rgba(4,6,12,0.55), transparent 34%); }
.mm-cap { position: absolute; z-index: 2; left: clamp(24px, 2.4vw, 38px); bottom: clamp(22px, 2vw, 30px); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ice-bright); }
/* cursor-follow gleam (initCardGleam feeds --mx / --my) */
.mall-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(111, 208, 255, 0.10), transparent 60%);
  transition: opacity 0.5s var(--ease);
}
.mall-card:hover::before, .mall-card:focus-visible::before { opacity: 1; }
.mall-card:hover, .mall-card:focus-visible {
  background: rgba(111, 208, 255, 0.03);
  box-shadow: inset 0 0 0 1px var(--line-strong); outline: none;
}
.mall-card:active { box-shadow: inset 0 0 0 1px var(--ice); }
/* corner targeting reticle — lock-on framing */
.mc-corner {
  position: absolute; width: 13px; height: 13px; pointer-events: none;
  opacity: 0; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.mc-corner.tl { top: 12px; left: 12px; border-top: 1px solid var(--ice); border-left: 1px solid var(--ice); transform: translate(5px, 5px); }
.mc-corner.br { right: 12px; bottom: 12px; border-right: 1px solid var(--ice); border-bottom: 1px solid var(--ice); transform: translate(-5px, -5px); }
.mall-card:hover .mc-corner, .mall-card:focus-visible .mc-corner { opacity: 0.75; transform: none; }

.mc-n { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.28em; color: var(--ink-faint); transition: color 0.4s; }
.mall-card.is-seen .mc-n { color: var(--ice); }
.mall-card.is-seen .mc-n::after { content: " \2726"; color: var(--gold); font-size: 0.7em; vertical-align: super; }
.mc-t { font-family: var(--font-serif); font-weight: 300; font-size: clamp(21px, 2vw, 29px); line-height: 1.1; color: var(--ink); transition: color 0.4s var(--ease); }
.mall-card:hover .mc-t, .mall-card:focus-visible .mc-t { color: var(--gold-bright); }
.mc-district {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ice); opacity: 0.7; margin-top: -4px; display: inline-flex; align-items: center; gap: 9px;
}
.mc-district::before { content: ""; width: 16px; height: 1px; background: var(--line-strong); flex: none; }
.mc-teaser { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: var(--ink-dim); max-width: 40ch; }
.mc-enter {
  position: absolute; left: clamp(24px, 2.4vw, 38px); bottom: clamp(22px, 2.4vw, 30px);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ice);
  opacity: 0; transform: translateY(6px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.mall-card:hover .mc-enter, .mall-card:focus-visible .mc-enter { opacity: 1; transform: none; }
.mc-arrow { transition: transform 0.4s var(--ease); }
.mall-card:hover .mc-arrow { transform: translateX(5px); }
.mall-card:active .mc-arrow { transform: translateX(9px); }        /* arrow "fires" on press */

/* explored-journey cue under the grid */
.mall-progress {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-faint); margin-top: 16px; display: flex; align-items: center; gap: 10px;
  opacity: 0.5; transition: opacity 0.4s, color 0.4s;
}
.mall-progress::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); transition: background 0.4s, box-shadow 0.4s; }
.mall-progress.has-seen { opacity: 1; color: var(--ink-dim); }
.mall-progress.has-seen::before { background: var(--ice); box-shadow: 0 0 8px var(--ice); }

/* ---- overlay + panel: the acquiring display ---- */
.mall-overlay {
  --district: #6fd0ff;
  position: fixed; inset: 0; z-index: 850;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(2, 3, 8, 0.76);
  background: radial-gradient(58% 48% at 50% 46%, color-mix(in srgb, var(--district) 10%, transparent), transparent 72%), rgba(2, 3, 8, 0.78);
  -webkit-backdrop-filter: blur(12px) saturate(1.1); backdrop-filter: blur(12px) saturate(1.1);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.mall-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.mall-panel {
  position: relative; width: min(940px, 100%); max-height: 88vh; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; outline: none;
  background: linear-gradient(180deg, #0b1020 0%, #070a14 100%);
  background: radial-gradient(150% 108% at 50% -8%, color-mix(in srgb, var(--district, #6fd0ff) 32%, transparent), transparent 56%),
              radial-gradient(92% 74% at 110% 112%, color-mix(in srgb, var(--district, #6fd0ff) 15%, transparent), transparent 60%),
              linear-gradient(180deg, #0b1020 0%, #070a14 100%);
  border: 1px solid var(--line-strong);
  border-color: color-mix(in srgb, var(--district, #6fd0ff) 34%, var(--line-strong));
  box-shadow: 0 40px 120px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.04);
  transform: translateY(26px) scale(0.99); transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease);
}
.mall-overlay.open .mall-panel { transform: none; }
.mall-panel::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; z-index: 5;
  background: linear-gradient(90deg, transparent, var(--district, var(--ice)), transparent); opacity: 0.72;
}
/* one-shot scan sweep as the display acquires the district */
.mall-panel::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 44%; z-index: 4; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(166, 230, 255, 0.10), transparent);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--district, #a6e6ff) 18%, transparent), transparent);
  opacity: 0; transform: translateX(-70%);
}
.mall-overlay.open .mall-panel::after { animation: mpScan 1s var(--ease) 0.08s both; }
@keyframes mpScan { 0% { opacity: 0; transform: translateX(-70%); } 22% { opacity: 1; } 78% { opacity: 1; } 100% { opacity: 0; transform: translateX(300%); } }

.mp-top {
  position: sticky; top: 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: clamp(18px, 2.2vw, 28px) clamp(22px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
  border-bottom-color: color-mix(in srgb, var(--district, #6fd0ff) 22%, var(--line));
  background: linear-gradient(180deg, #0b1020, rgba(11,16,32,0.86));
  background: linear-gradient(180deg, color-mix(in srgb, var(--district, #6fd0ff) 13%, #0b1020), rgba(11,16,32,0.82));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.mp-meta { display: flex; align-items: center; gap: 13px; min-width: 0; }
.mp-num { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.2em; color: var(--gold); flex: none; }
.mp-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--district, var(--ice)); box-shadow: 0 0 10px var(--district, var(--ice)); flex: none; animation: pulse 2.4s ease-in-out infinite; }
.mp-zone { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em; color: var(--ink-dim); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-close {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer; flex: none;
  background: transparent; border: 1px solid var(--line); border-radius: 40px; padding: 8px 16px;
  color: var(--ink-dim); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  transition: color 0.3s, border-color 0.3s;
}
.mp-close:hover { color: var(--ink); border-color: var(--line-strong); }
.mp-x { font-size: 12px; }

.mp-body { padding: clamp(28px, 4vw, 52px) clamp(22px, 4vw, 60px) clamp(22px, 3vw, 36px); }
/* compose the dossier in — children settle in reading order (fresh open) */
.mall-panel:not([data-dir]) .mp-body.play > .mp-district { animation: mpRise 0.5s var(--ease) 0.05s both, auroraText 7s linear infinite; }
.mall-panel:not([data-dir]) .mp-body.play > .mp-title { animation: mpRise 0.55s var(--ease) 0.12s both; }
.mall-panel:not([data-dir]) .mp-body.play > .mp-vignette { animation: mpRise 0.6s var(--ease) 0.20s both; }
.mall-panel:not([data-dir]) .mp-body.play > .mp-features { animation: mpRise 0.6s var(--ease) 0.29s both; }
.mall-panel:not([data-dir]) .mp-body.play > .mp-spatial { animation: mpRise 0.6s var(--ease) 0.38s both; }
@keyframes mpRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* travel between districts — snap in place (no horizontal drift), just a fast settle */
.mall-panel[data-dir] .mp-body.play { animation: mpSnap 0.15s var(--ease) both; }
@keyframes mpSnap { from { opacity: 0.4; } to { opacity: 1; } }

.mp-district {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; margin-bottom: 14px; display: inline-block;
  background: linear-gradient(90deg, var(--ice), var(--gold), var(--ice-bright)); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: auroraText 7s linear infinite;
}
.mp-title { font-family: var(--font-serif); font-weight: 300; font-size: clamp(31px, 4.6vw, 58px); line-height: 1.0; letter-spacing: -0.014em; margin-bottom: clamp(22px, 3vw, 34px); }
.mp-vignette {
  font-family: var(--font-serif); font-style: italic; font-weight: 300;
  font-size: clamp(17px, 1.75vw, 22px); line-height: 1.62; color: var(--ice-bright);
  max-width: 56ch; margin-bottom: clamp(30px, 4vw, 46px);
  padding-left: 26px; border-left: 1px solid; border-image: linear-gradient(180deg, var(--gold-bright), transparent) 1;
}
.mp-vignette::first-letter { font-family: var(--font-serif); font-weight: 400; font-size: 3.1em; line-height: 0.72; float: left; margin: 8px 14px 0 0; color: var(--gold); }
.mp-features {
  list-style: none; margin-bottom: clamp(28px, 4vw, 42px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line);
}
@media (max-width: 640px) { .mp-features { grid-template-columns: 1fr; } }
.mp-feature { position: relative; background: #080c16; padding: clamp(16px, 2vw, 24px); display: flex; flex-direction: column; gap: 9px; transition: background 0.35s; }
.mp-feature:hover { background: #0b1120; }
.mpf-i { position: absolute; top: clamp(14px, 2vw, 20px); right: clamp(16px, 2vw, 22px); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-faint); }
.mpf-label { position: relative; align-self: flex-start; padding-bottom: 4px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.mpf-label::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--gold); transition: width 0.4s var(--ease); }
.mp-feature:hover .mpf-label::after { width: 100%; }
.mpf-text { font-family: var(--font-mono); font-size: 12px; line-height: 1.7; color: var(--ink-dim); }
.mp-spatial {
  position: relative; margin: 0; padding: clamp(22px, 3vw, 30px) clamp(24px, 3vw, 34px);
  border: 1px solid var(--line-strong); background: rgba(111, 208, 255, 0.04);
  font-family: var(--font-serif); font-weight: 300; font-size: clamp(18px, 2.1vw, 27px); line-height: 1.42; color: var(--ink);
}
.mp-spatial-mark { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--gold), transparent); }

.mp-nav {
  position: sticky; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: clamp(14px, 2vw, 20px) clamp(22px, 4vw, 60px);
  border-top: 1px solid var(--line);
  background: linear-gradient(0deg, #0b1020, rgba(11,16,32,0.86)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.mp-btn {
  background: transparent; border: 0; cursor: pointer; color: var(--ink-dim);
  display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 0;
  transition: color 0.3s;
}
.mp-btn.mp-next { align-items: flex-end; text-align: right; }
.mp-btn:hover { color: var(--ice); }
.mp-btn-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 7px; }
.mp-peek { font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: 12.5px; color: var(--ink-faint); max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.3s; }
.mp-btn:hover .mp-peek { color: var(--ink-dim); }
.mp-rail { display: inline-flex; align-items: center; gap: 7px; flex: none; }
.mp-seg { width: 26px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: var(--line); cursor: pointer; transition: background 0.3s, box-shadow 0.3s, transform 0.3s var(--ease); }
.mp-seg:hover { background: var(--ink-faint); }
.mp-seg.is-seen { background: var(--ice-deep); }
.mp-seg.is-cur { background: var(--gold); box-shadow: 0 0 10px rgba(236, 200, 121, 0.55); transform: scaleY(1.5); }
@media (max-width: 640px) { .mp-peek { display: none; } .mp-seg { width: 18px; } }
body.mall-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .mall-overlay, .mall-panel, .mall-card, .mc-enter, .mc-arrow, .mc-corner, .mc-t, .mc-n,
  .mp-close, .mp-btn, .mp-seg, .mp-feature, .mp-peek, .mall-progress { transition: none; }
  .mall-card { opacity: 1; transform: none; }
  .mc-corner { transform: none; }
  .mall-panel { transform: none; }
  .mall-panel::after, .mp-dot, .mp-district,
  .mall-panel:not([data-dir]) .mp-body.play > .mp-district,
  .mall-panel:not([data-dir]) .mp-body.play > .mp-title,
  .mall-panel:not([data-dir]) .mp-body.play > .mp-vignette,
  .mall-panel:not([data-dir]) .mp-body.play > .mp-features,
  .mall-panel:not([data-dir]) .mp-body.play > .mp-spatial,
  .mall-panel[data-dir] .mp-body.play { animation: none; }
  .mp-district { -webkit-text-fill-color: var(--ice); color: var(--ice); }
}

/* =========================================================================
   PREMIUM PASS v29 — 6 mid-page home sections (engine / pipeline / timeline /
   proof / founders / flagships). Reuses shipped motifs: auroraText, pulse,
   jeRise, .press .q glyph, je-body drop-cap, leading ticks, mc-corner-style
   reticles, initCardGleam. Every animated rule is reduced-motion guarded.
   NOTE: global RM block kills `animation` but NOT the transparent text-fill /
   scale-0 resting states — hence the explicit RM restores below.
   ========================================================================= */

/* ---- shared accent-word helper (exactly one word per section) ---- */
.engine .aurora-word, .pipeline .aurora-word, .timeline .aurora-word,
.founders .aurora-word, .ethos .aurora-word, .flagships .aurora-word,
.proof .num-aurora {
  background: linear-gradient(100deg, var(--ice-bright) 0%, var(--gold-bright) 45%, var(--ice-bright) 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: auroraText 6.5s var(--ease) infinite;
}
.engine .aurora-word, .pipeline .aurora-word, .timeline .aurora-word,
.founders .aurora-word, .ethos .aurora-word, .flagships .aurora-word { font-style: italic; }
@media (prefers-reduced-motion: reduce) {
  .engine .aurora-word, .pipeline .aurora-word, .timeline .aurora-word,
  .founders .aurora-word, .ethos .aurora-word, .flagships .aurora-word,
  .proof .num-aurora {
    -webkit-text-fill-color: var(--ice-bright); color: var(--ice-bright);
    background: none;
  }
}

/* ---------------- #engine ---------------- */
.cap-n { display: inline-flex; align-items: center; gap: 9px; }
.cap-n::before { content: ""; width: 16px; height: 1px; background: var(--line-gold); flex: none; }
.cap-sub {
  display: inline-block; margin-left: 10px; vertical-align: middle;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-faint); transition: color 0.4s var(--ease);
}
.cap:hover .cap-sub { color: var(--ice); }
/* corner targeting reticles on each engine bay (.cap is position:relative) */
.cap-corner {
  position: absolute; width: 12px; height: 12px; border: 1px solid var(--line-strong);
  z-index: 2; opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.cap-corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; transform: translate(5px, 5px); }
.cap-corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; transform: translate(-5px, -5px); }
.cap:hover .cap-corner { opacity: 1; transform: none; border-color: var(--gold-bright); }
/* live spec caption dot + settling readouts */
.spec-cap.live { display: inline-flex; align-items: center; gap: 9px; }
.spec-cap.live::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ice);
  box-shadow: 0 0 8px var(--ice); flex: none; animation: pulse 2.4s ease-in-out infinite;
}
.spec b { filter: blur(4px); opacity: 0; transition: filter 0.7s var(--ease), opacity 0.7s var(--ease); }
.spec-strip.in .spec b { filter: none; opacity: 1; }
.spec-strip.in .spec:nth-child(3) b { transition-delay: 0.10s; }
.spec-strip.in .spec:nth-child(4) b { transition-delay: 0.20s; }
.spec-strip.in .spec:nth-child(5) b { transition-delay: 0.30s; }
.spec-strip.in .spec:nth-child(6) b { transition-delay: 0.40s; }
@media (prefers-reduced-motion: reduce) {
  .cap-corner { transition: none; transform: none; }
  .spec-cap.live::before { animation: none; }
  .spec b { filter: none; opacity: 1; }
}

/* ---------------- #pipeline ---------------- */
.pipe-flow { position: relative; }
/* container carries .reveal only to fire the packet — don't let it block-fade */
.pipe-flow.reveal { opacity: 1; transform: none; filter: none; }
/* travelling light packet — traverses the full row on reveal (desktop only) */
.pipe-packet {
  position: absolute; top: 50%; left: 0; width: 46px; height: 3px; border-radius: 3px;
  margin-left: -23px; transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, var(--ice-bright), transparent);
  box-shadow: 0 0 16px var(--ice); opacity: 0; z-index: 4; pointer-events: none;
}
.pipe-flow.in .pipe-packet { animation: streamPacket 2.4s var(--ease) 0.35s both; }
@keyframes streamPacket {
  0% { left: 0%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
/* gleam parity with sibling .cap (initCardGleam sets --mx/--my); no overflow:hidden — it would clip the ::after arrow at right:-12px */
.pipe::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  transition: opacity 0.4s var(--ease);
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(111,208,255,0.12), transparent 62%);
}
.pipe:hover::before { opacity: 1; }
.pipe > * { position: relative; z-index: 1; }
.pipe .pn { display: inline-flex; align-items: center; gap: 9px; font-variant-numeric: tabular-nums; }
.pipe .pn::before { content: ""; width: 16px; height: 1px; background: var(--line-gold); flex: none; }
@media (max-width: 900px) { .pipe-packet { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .pipe-packet { display: none; }
  .pipe::before { transition: none; }
}

/* ---------------- #timeline ---------------- */
/* track carries .reveal only to drive the spine/dots — keep it visible (nodes reveal themselves) */
.track.reveal { opacity: 1; transform: none; filter: none; }
/* self-drawing spine overlay atop the existing static gradient (.track::before) */
.track::after {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; z-index: 1;
  transform-origin: top; transform: scaleY(0);
  background: linear-gradient(180deg, var(--gold-bright), var(--ice-bright) 55%, var(--ice));
  box-shadow: 0 0 10px rgba(111,208,255,0.4);
}
.track.in::after { animation: spineDraw 2.0s var(--ease) 0.15s forwards; }
@keyframes spineDraw { to { transform: scaleY(1); } }
/* node dots ignite in sequence as the log 'reaches' them */
.track.in .node::before { animation: dotIgnite 0.7s var(--ease) both; }
.track.in .node:nth-child(1)::before { animation-delay: 0.30s; }
.track.in .node:nth-child(2)::before { animation-delay: 0.50s; }
.track.in .node:nth-child(3)::before { animation-delay: 0.70s; }
.track.in .node:nth-child(4)::before { animation-delay: 0.90s; }
.track.in .node:nth-child(5)::before { animation-delay: 1.10s; }
.track.in .node:nth-child(6)::before { animation-delay: 1.30s; }
@keyframes dotIgnite {
  0% { opacity: 0; transform: scale(0.3); }
  60% { opacity: 1; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}
/* NOW boundary — "You are here" pin + breathing dot on the 2025 node */
.node-here {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--gold-bright);
}
.node-here::before { content: ""; width: 14px; height: 1px; background: var(--line-gold); flex: none; }
.node.is-here::before { animation: pulse 2.4s ease-in-out infinite; }
.track.in .node.is-here::before { animation: dotIgnite 0.7s var(--ease) 0.70s both, pulse 2.4s ease-in-out 1.5s infinite; }
/* .nc entries respond like log records */
.node .nc { transition: transform 0.4s var(--ease); }
.node:hover .nc { transform: translateX(3px); }
.node .nc h4 { display: inline-flex; align-items: center; gap: 10px; }
.node .nc h4::before { content: ""; width: 16px; height: 1px; background: var(--line-strong); flex: none; transition: background 0.4s var(--ease); }
.node.past .nc h4::before, .node.destiny .nc h4::before { background: var(--line-gold); }
.node:hover .nc h4::before { background: var(--gold-bright); }
@media (prefers-reduced-motion: reduce) {
  .track::after { animation: none; transform: scaleY(1); }
  .track.in .node::before, .track.in .node.is-here::before, .node.is-here::before { animation: none; opacity: 1; transform: none; }
  .node .nc { transition: none; }
  .node:hover .nc { transform: none; }
}

/* ---------------- #proof ---------------- */
.proof .stat { position: relative; }
/* cursor gleam surface (initCardGleam selector extended to include .proof .stat) */
.proof .stat::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  transition: opacity 0.4s var(--ease);
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(111,208,255,0.12), transparent 62%);
}
.proof .stat:hover::after { opacity: 1; }
.proof .stat > * { position: relative; z-index: 1; }
.proof .stat .num { position: relative; display: inline-block; font-variant-numeric: tabular-nums; }
/* gold underline draws out beneath each figure on reveal */
.proof .stat .num::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 2px;
  transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold) 60%, transparent);
}
.proof .stat.in .num::after { animation: underlineDraw 0.9s var(--ease) 0.5s both; }
@keyframes underlineDraw { to { transform: scaleX(1); } }
.proof .stat .lbl { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.proof .stat .lbl::before { content: ""; width: 14px; height: 1px; background: var(--line-gold); flex: none; }
/* creds ledger — leading tick per entry */
.proof .creds span { display: inline-flex; align-items: center; gap: 10px; }
.proof .creds span::before { content: ""; width: 12px; height: 1px; background: var(--line-strong); flex: none; }
@media (prefers-reduced-motion: reduce) {
  .proof .stat::after { transition: none; }
  .proof .stat.in .num::after { animation: none; transform: scaleX(1); }
}

/* ---------------- #founders ---------------- */
.founder { position: relative; }
/* pull-quote open-quote glyph (reuses the .press .q recipe) */
.f-quote { position: relative; }
.f-quote::before {
  content: "\201C"; position: absolute; left: -0.5em; top: -0.4em;
  font-family: var(--font-serif); font-weight: 300; font-size: clamp(4rem, 8vw, 6.5rem);
  line-height: 1; color: var(--gold); opacity: 0.14; pointer-events: none;
}
/* role label leading tick */
.f-role { display: inline-flex; align-items: center; gap: 10px; }
.f-role::before { content: ""; width: 18px; height: 1px; background: var(--line-gold); flex: none; }
/* gold drop-cap on each bio (reuses je-body recipe) */
.f-bio::first-letter {
  font-family: var(--font-serif); font-weight: 400; float: left; font-size: 3.2em;
  line-height: 0.74; margin: 8px 12px 0 0; color: var(--gold);
}
/* founder-scoped reticles (fresh class — .mc-corner is mall-scoped) */
.fnd-corner {
  position: absolute; width: 14px; height: 14px; border: 1px solid var(--line-strong); z-index: 2;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.fnd-corner.tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; transform: translate(5px, 5px); }
.fnd-corner.br { right: 16px; bottom: 16px; border-left: 0; border-top: 0; transform: translate(-5px, -5px); }
.founder:hover .fnd-corner { transform: none; border-color: var(--gold-bright); }
/* ethos climax — composes in on arrival (drop-cap skipped: the ethos is centre-set) */
.ethos.in p { animation: jeRise 1s var(--ease) 0.15s both; }
.ethos.in cite { animation: jeRise 1s var(--ease) 0.4s both; }
@media (prefers-reduced-motion: reduce) {
  .fnd-corner { transition: none; transform: none; }
  .ethos.in p, .ethos.in cite { animation: none; opacity: 1; transform: none; }
}

/* ---------------- #flagships ---------------- */
/* the one real HQ carries the on-air pulse dot */
.cities span.live { display: inline-flex; align-items: center; gap: 8px; }
.cities span.live::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 8px var(--gold); flex: none; animation: pulse 2.4s ease-in-out infinite;
}
/* vision chips respond as planned nodes */
.cities span:not(.live) { transition: border-color 0.4s var(--ease), color 0.4s var(--ease); }
.cities span:not(.live):hover { border-color: var(--ice); color: var(--ice-bright); }
/* honesty-note leading tick (stay centre-set) */
.cities-note.tick { display: flex; align-items: center; justify-content: center; gap: 9px; }
.cities-note.tick::before { content: ""; width: 16px; height: 1px; background: var(--line-strong); flex: none; }
@media (prefers-reduced-motion: reduce) {
  .cities span.live::before { animation: none; }
  .cities span:not(.live) { transition: none; }
}

/* =========================================================================
   THE CORE — interactive hand-off band (home #replica → core.html)
   ========================================================================= */
.corecta { background: linear-gradient(180deg, var(--bg), var(--bg-1)); border-top: 1px solid var(--line); text-align: center; }
.corecta-inner { max-width: 660px; margin: 0 auto; }
.corecta .section-title { margin: 18px auto 22px; }
.corecta .section-title em { font-style: italic; color: var(--gold-bright); }
.corecta p { color: var(--ink-dim); font-size: clamp(1rem, 1.5vw, 1.16rem); line-height: 1.62; max-width: 52ch; margin: 0 auto 32px; text-wrap: pretty; }
.corecta .btn-primary span { display: inline-block; transition: transform 0.4s var(--ease); }
.corecta .btn-primary:hover span { transform: translateX(4px); }
.corecta-note { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); }
.corecta-note::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: pulse 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .corecta-note::before, .corecta .btn-primary:hover span { animation: none; transition: none; } }

/* "See the Core" — an out-of-this-world button: flowing holographic edge, pulsing aura, shimmer sweep */
.btn-core { position: relative; display: inline-flex; align-items: center; gap: 13px; margin-top: 6px;
  padding: 19px 44px; border-radius: 46px; overflow: hidden; isolation: isolate;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  background: linear-gradient(rgba(7,11,22,0.84), rgba(7,11,22,0.84)) padding-box,
              linear-gradient(115deg, #6fd0ff, #ecc879, #a7e4ff, #ecc879, #6fd0ff) border-box;
  background-size: 100% 100%, 300% 100%;
  border: 1.5px solid transparent;
  animation: coreEdge 6s linear infinite, corePulse 3.6s ease-in-out infinite;
  transition: transform 0.45s var(--ease); }
.btn-core::after { content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%; z-index: 1;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.34), transparent); transform: skewX(-18deg); transition: left 0.75s var(--ease); }
.btn-core:hover { transform: translateY(-3px); }
.btn-core:hover::after { left: 135%; }
.btn-core .bc-label, .btn-core .bc-arrow { position: relative; z-index: 2; }
.btn-core .bc-arrow { display: inline-block; color: var(--gold-bright); transition: transform 0.4s var(--ease); }
.btn-core:hover .bc-arrow { transform: translateX(5px); }
@keyframes coreEdge { to { background-position: 0 0, 300% 0; } }
@keyframes corePulse { 0%, 100% { box-shadow: 0 10px 40px rgba(111,208,255,0.20), 0 0 40px rgba(236,200,121,0.07); } 50% { box-shadow: 0 14px 58px rgba(111,208,255,0.4), 0 0 76px rgba(236,200,121,0.16); } }
@media (prefers-reduced-motion: reduce) { .btn-core { animation: none; } .btn-core::after { transition: none; } }

/* =========================================================================
   MENU RESTRUCTURE — four verticals as headings, XR categories as sub-items
   ========================================================================= */
.site-menu { align-items: safe center; }
/* top-level group wrapper (one per vertical) */
.menu-nav > .m-group {
  border-top: 1px solid var(--line);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.site-menu.open .menu-nav > .m-group { opacity: 1; transform: none; }
/* entrance stagger across all six top-level items */
.site-menu.open .menu-nav > *:nth-child(1) { transition-delay: 0.05s; }
.site-menu.open .menu-nav > *:nth-child(2) { transition-delay: 0.10s; }
.site-menu.open .menu-nav > *:nth-child(3) { transition-delay: 0.15s; }
.site-menu.open .menu-nav > *:nth-child(4) { transition-delay: 0.20s; }
.site-menu.open .menu-nav > *:nth-child(5) { transition-delay: 0.25s; }
.site-menu.open .menu-nav > *:nth-child(6) { transition-delay: 0.30s; }
/* the vertical heading (Commerce / Entertainment / …) */
.m-link.m-head { border-top: 0; border-bottom: 0; padding-bottom: clamp(5px, 0.7vh, 9px); }
.m-head .m-t { font-size: clamp(25px, 4.1vw, 45px); }
/* Journal (last top-level link) closes the list */
.menu-nav > .m-link:last-child { border-bottom: 1px solid var(--line); }
/* the XR categories beneath each vertical */
.m-subs {
  display: flex; flex-wrap: wrap; gap: 9px 22px;
  padding: 2px 0 clamp(15px, 2vh, 24px) clamp(30px, 3.6vw, 48px);
}
.m-subs a {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink-faint); text-decoration: none; transition: color 0.32s var(--ease), transform 0.32s var(--ease);
}
.m-subs a:hover { color: var(--ice-bright); transform: translateX(3px); }
@media (max-width: 860px) { .m-subs { gap: 8px 16px; } }
@media (prefers-reduced-motion: reduce) {
  .menu-nav > .m-group { opacity: 1; transform: none; transition: none; }
  .m-subs a:hover { transform: none; }
}
/* menu restructure — tighten spacing so the taller list fits without scrolling */
.menu-inner { padding-top: clamp(70px, 8.5vh, 108px); padding-bottom: clamp(38px, 5.5vh, 58px); }
.menu-nav .m-link { padding-top: clamp(9px, 1.35vh, 15px); padding-bottom: clamp(9px, 1.35vh, 15px); }
.m-link.m-head { padding-bottom: clamp(3px, 0.5vh, 7px); }
.m-subs { padding-bottom: clamp(12px, 1.6vh, 20px); }
/* footer — company registration fine print */
footer .legal {
  margin-top: 15px;
  font-family: var(--font-mono); font-size: 10px; line-height: 1.75; letter-spacing: 0.1em;
  color: var(--ink-faint); max-width: 44ch;
}

/* =========================================================================
   VIDEO-TRANSITION LEGIBILITY — soft central scrim behind the scrub copy so
   headlines stay readable over the brightest frames (the vignette centre is
   transparent). Feathered → reads as depth, not a box. Covers hero, replica,
   and all four vertical scrub heroes.
   ========================================================================= */
/* no background scrim — it muddied the video. Legibility is carried purely by
   the letter-hugging text-shadows above (they touch only the glyphs, keeping
   the frames crisp and clean). */
.scrub-line .k { text-shadow: 0 1px 2px rgba(0,0,0,0.65), 0 1px 8px rgba(0,0,0,0.45); }
/* aurora word is gradient-filled with a TRANSPARENT base — text-shadow bleeds
   through and blackens the letters. Kill it; use layered drop-shadow filters (a
   tight one for the outline edge + an offset one for the drop) which shadow the
   rendered gradient, not the transparent fill. It also inherits the thin stroke
   above, giving the gradient word a crisp dark outline. */
.scrub-line.accent h2 b { text-shadow: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6)) drop-shadow(0 3px 7px rgba(0,0,0,0.42)); }
/* menu — truncated sub-lists: the "…" more-indicator */
.m-subs a.m-more { letter-spacing: 0.1em; opacity: 0.68; }
.m-subs a.m-more:hover { opacity: 1; }

/* ============================================================
   THE DECODE WAVEFRONT — motion-to-photon, felt.
   Content resolves from in-transit -> rendered as it rises through a
   fixed decode plane at 55vh. JS (initDecode) drives per-element
   --rz (0 in-transit .. 1 resolved) + the .decoding class; --decode
   (0..1 scroll velocity) brightens the plane + globally ghosts on
   fast scroll. Only active under html.decode (skipped for reduced-motion).
   ============================================================ */
html.decode .decoding {
  filter:
    saturate(calc(0.12 + 0.88 * var(--rz, 1)))
    brightness(calc(0.80 + 0.20 * var(--rz, 1)))
    blur(calc((1 - var(--rz, 1)) * 1.3px))
    drop-shadow(calc((1 - var(--rz, 1)) * -2.2px) 0 0 rgba(255,60,116, calc((1 - var(--rz, 1)) * 0.55)))
    drop-shadow(calc((1 - var(--rz, 1)) * 2.2px) 0 0 rgba(74,198,255, calc((1 - var(--rz, 1)) * 0.55)));
  will-change: filter;
}
/* mobile / coarse pointer: drop the (costlier) blur, keep the decode read */
@media (pointer: coarse) {
  html.decode .decoding {
    filter:
      saturate(calc(0.14 + 0.86 * var(--rz, 1)))
      brightness(calc(0.82 + 0.18 * var(--rz, 1)))
      drop-shadow(calc((1 - var(--rz, 1)) * -1.8px) 0 0 rgba(255,60,116, calc((1 - var(--rz, 1)) * 0.5)))
      drop-shadow(calc((1 - var(--rz, 1)) * 1.8px) 0 0 rgba(74,198,255, calc((1 - var(--rz, 1)) * 0.5)));
  }
}
/* the luminous decode plane, fixed at 55% of the viewport */
.decode-plane { position: fixed; left: 0; right: 0; top: 55vh; height: 0; z-index: 60; pointer-events: none; contain: layout style; }
.decode-plane::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent 6%, var(--ice-bright) 32%, var(--gold-bright) 50%, var(--ice-bright) 68%, transparent 94%);
  opacity: calc(0.06 + 0.52 * var(--decode, 0));
  box-shadow: 0 0 8px rgba(111,208,255,0.28), 0 0 18px rgba(111,208,255,0.12);
  transition: opacity 0.25s var(--ease);
}
.decode-plane::after {
  content: ""; position: absolute; left: 0; right: 0; top: -34px; height: 68px;
  background: radial-gradient(58% 100% at 50% 50%, rgba(111,208,255,0.10), transparent 72%);
  opacity: calc(0.12 + 0.5 * var(--decode, 0));
}
/* mtp readout goes hot (red) when the decode budget is blown */
.telemetry .tel-hot, [data-live].tel-hot { color: #ff5a6b; text-shadow: 0 0 10px rgba(255,90,107,0.5); transition: color 0.3s var(--ease), text-shadow 0.3s var(--ease); }

/* ============================================================
   THE RECONSTRUCTION — the word "REPLICA" reassembles from a
   Gaussian-splat point cloud (canvas, initReconstruct). It dissolves
   back to scattered light when you outrun the decode stream, and
   reforms when you slow — same "streamed, resolving" language as S1/S2.
   ============================================================ */
.reconstruct { position: relative; min-height: 100vh; overflow: hidden; display: flex; }
.recon-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; }
.recon-copy { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; padding: clamp(80px, 13vh, 148px) 24px; pointer-events: none; }
.recon-top, .recon-sub { pointer-events: auto; }
.recon-sub { max-width: 46ch; font-family: var(--font-sans); font-size: clamp(0.95rem, 1.4vw, 1.15rem); line-height: 1.62; color: var(--ink-dim); }
.recon-sub em { font-style: italic; color: var(--ice-bright); }

/* ============================================================
   S4 · THE MOTION-TO-PHOTON SONAR — the opt-in sound toggle (HUD)
   + the ms-readout flash when a ping's echo lands. Off by default.
   ============================================================ */
.sound-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; margin: 0; background: transparent; border: 1px solid var(--line); border-radius: 40px; cursor: pointer; opacity: 0.5; transition: opacity 0.3s var(--ease), border-color 0.3s var(--ease); -webkit-tap-highlight-color: transparent; }
.sound-btn:hover, .sound-btn:focus-visible { opacity: 1; border-color: var(--line-strong); }
.sound-btn.on { opacity: 1; border-color: var(--line-gold); }
.snd-ico { display: inline-flex; align-items: center; gap: 2px; height: 14px; }
.snd-ico i { display: block; width: 2px; height: 4px; border-radius: 1px; background: var(--ice); transition: height 0.2s var(--ease), background 0.3s; }
.snd-ico i:nth-child(2) { height: 8px; }
.sound-btn.on .snd-ico i { background: var(--gold-bright); }
.sound-btn.pinged .snd-ico i { animation: sndBar 0.42s var(--ease); }
.sound-btn.pinged .snd-ico i:nth-child(2) { animation-delay: 0.05s; }
.sound-btn.pinged .snd-ico i:nth-child(3) { animation-delay: 0.1s; }
@keyframes sndBar { 0% { height: 4px; } 42% { height: 13px; } 100% { height: 4px; } }
.sound-btn.pinged { animation: sndPulse 0.5s var(--ease); }
@keyframes sndPulse { 0% { box-shadow: 0 0 0 0 rgba(236,200,121,0.45); } 100% { box-shadow: 0 0 0 9px rgba(236,200,121,0); } }
[data-live].tel-flash { color: var(--ice-bright); text-shadow: 0 0 12px rgba(166,230,255,0.7); }
@media (prefers-reduced-motion: reduce) { .sound-btn { display: none !important; } }

/* ============================================================
   THE JOURNAL — horizontal selector (blog index). A HYBRID built from
   #entries by initJournalDeck(): a rotary 3D Turntable on desktop, a
   scroll-snap Light Table strip on touch/narrow. Both browse on the
   HORIZONTAL axis, so vertical page scroll (Lenis) is never touched.
   The flat #entries list is the reduced-motion / no-JS fallback + the
   List half of the Deck/List toggle.
   ============================================================ */
.journal-selector { margin: 0 auto clamp(66px, 9vh, 122px); }
.journal-viewtoggle { display: none; justify-content: flex-end; gap: 8px; max-width: 720px; margin: clamp(16px, 2.2vh, 24px) auto 0; }
.jvt-btn { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dim); background: transparent; border: 1px solid var(--line); border-radius: 40px; padding: 8px 18px; cursor: pointer; transition: color 0.3s var(--ease), border-color 0.3s var(--ease); }
.jvt-btn.is-on { color: var(--ink); border-color: var(--line-gold); }
.jvt-btn:hover { color: var(--ink); }
.journal-deck { display: none; max-width: 820px; margin: 0 auto; }
.jd-stage { position: relative; }

/* shared card face (real cinematic thumbnail) */
.jd-face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.jd-fr { position: absolute; inset: 0; border-radius: 9px; border: 1px solid rgba(160,190,230,0.14); transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.jd-fn { position: absolute; left: 12px; bottom: 9px; font-family: var(--font-mono); font-weight: 700; font-size: 30px; line-height: 1; color: rgba(255,255,255,0.92); text-shadow: 0 2px 12px rgba(0,0,0,0.65); }
.jd-ftag { position: absolute; left: 13px; top: 11px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ice-bright); text-shadow: 0 1px 6px rgba(0,0,0,0.7); }
.jd-card.focus .jd-fr { border-color: var(--line-gold); box-shadow: 0 0 0 1px var(--line-gold), 0 12px 34px rgba(0,0,0,0.5), 0 0 32px rgba(111,208,255,0.18); }

/* --- Turntable (desktop): a looping 3D drum spun left/right --- */
.jd-drumstage { position: relative; height: 340px; perspective: 1500px; perspective-origin: 50% 50%; touch-action: pan-y; overflow: hidden; cursor: grab; outline: none; }
.jd-drumstage:active { cursor: grabbing; }
.jd-drum { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.jd-drum .jd-card { position: absolute; left: 50%; top: 56%; width: 248px; height: 186px; margin: -93px 0 0 -124px; border-radius: 9px; overflow: hidden; background: #05070d; -webkit-backface-visibility: hidden; backface-visibility: hidden; will-change: transform, opacity; }

/* --- Light Table (touch/narrow): native horizontal scroll-snap strip --- */
.jd-view { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: 50%; scrollbar-width: none; touch-action: pan-x; overscroll-behavior-x: contain; padding: 14px 0 6px; }
.jd-view::-webkit-scrollbar { display: none; }
.jd-track { display: flex; gap: 18px; padding-inline: calc(50% - var(--cw) / 2); width: max-content; }
.jd-view { --cw: clamp(220px, 74vw, 340px); }
.jd-track .jd-card { flex: 0 0 var(--cw); width: var(--cw); aspect-ratio: 4 / 3; scroll-snap-align: center; position: relative; border-radius: 9px; overflow: hidden; background: #05070d; text-decoration: none; will-change: transform, opacity; transform-origin: center bottom; outline: none; }
.jd-brk { position: absolute; width: 12px; height: 12px; border: 1px solid var(--gold); opacity: 0; transition: opacity 0.3s var(--ease); z-index: 2; }
.jd-card.focus .jd-brk { opacity: 0.9; }
.jd-brk.tl { left: 8px; top: 8px; border-right: 0; border-bottom: 0; } .jd-brk.tr { right: 8px; top: 8px; border-left: 0; border-bottom: 0; }
.jd-brk.bl { left: 8px; bottom: 8px; border-right: 0; border-top: 0; } .jd-brk.br { right: 8px; bottom: 8px; border-left: 0; border-top: 0; }

/* --- shared detail + controls --- */
.jd-drow { display: flex; align-items: center; gap: 18px; max-width: 720px; margin: clamp(22px, 3.4vh, 40px) auto 0; min-height: 172px; }
.jd-pos { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ink-faint); flex: none; width: 52px; }
.jd-pos b { color: var(--ice); font-weight: 400; }
.jd-open { flex: 1; min-width: 0; display: block; text-decoration: none; padding: 10px 14px; margin: -10px -14px; border-radius: 10px; cursor: pointer; transition: background 0.35s var(--ease); }
.jd-open:hover, .jd-open:focus-visible { background: rgba(12,18,34,0.6); outline: none; }
.jd-open:focus-visible { box-shadow: 0 0 0 1px var(--line-gold); }
.jd-tagl { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ice-bright); margin-bottom: 4px; }
.jd-h { font-family: var(--font-serif); font-weight: 300; font-size: clamp(19px, 2.6vw, 24px); letter-spacing: -0.01em; color: var(--gold-bright); line-height: 1.12; margin-bottom: 5px; transition: color 0.35s var(--ease); }
.jd-dekl { font-family: var(--font-sans); font-size: 13px; line-height: 1.5; color: var(--ink-dim); transition: color 0.35s var(--ease); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.jd-open:hover .jd-h { color: #fbe8bf; }
.jd-open:hover .jd-dekl { color: var(--ink); }
.jd-read { flex: none; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line-gold); border-radius: 40px; padding: 9px 16px; text-decoration: none; white-space: nowrap; transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.jd-read:hover, .jd-read:focus-visible { background: rgba(236,200,121,0.1); color: var(--gold-bright); }
.jd-foot { display: flex; align-items: center; gap: 14px; max-width: 720px; margin: clamp(16px, 2.2vh, 26px) auto 0; }
.jd-arrows { display: flex; gap: 7px; }
.jd-nav { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: rgba(8,14,26,0.6); color: var(--ink-dim); cursor: pointer; font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: color 0.25s var(--ease), border-color 0.25s var(--ease); }
.jd-nav:hover { color: var(--ink); border-color: var(--ice-bright); }
.jd-rail { position: relative; flex: 1; height: 22px; cursor: pointer; touch-action: none; }
.jd-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: rgba(111,208,255,0.16); transition: background 0.3s var(--ease); }
.jd-rail:hover::before { background: rgba(111,208,255,0.26); }
.jd-rail-thumb { position: absolute; top: 50%; width: 26px; height: 9px; margin-top: -4.5px; margin-left: -13px; border-radius: 6px; background: var(--ice); box-shadow: 0 0 10px rgba(111,208,255,0.5); }
.jd-hint { flex: none; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }

/* --- read-page "continue in The Journal" carousel (journal-NN.html) --- */
.je-more { border-top: 1px solid var(--line); margin-top: clamp(46px, 7vh, 96px); margin-bottom: clamp(40px, 6vh, 80px); padding-top: clamp(34px, 5vh, 62px); }
.jd-more-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-faint); text-align: center; margin-bottom: clamp(20px, 3vh, 34px); }
.jd-index-link { display: block; width: fit-content; margin: clamp(18px, 2.8vh, 28px) auto 0; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dim); text-decoration: none; transition: color 0.3s var(--ease); }
.jd-index-link:hover { color: var(--ice-bright); }

@media (max-width: 560px) {
  .jd-drow { flex-wrap: wrap; row-gap: 4px; }
  .jd-pos { order: 1; width: auto; }
  .jd-read { order: 2; margin-left: auto; }
  .jd-open { order: 3; flex: 1 0 100%; margin: 4px 0 0; padding: 10px 0; }
}
