/* ============================================================================
   14 — RAPTOR  ·  Aerospace Hardware Foundry  ·  Bespoke style.css
   Palette: ignition-black, brushed-steel, thrust-orange, copper-amber, spec-red
   No shared imports. Engineering readout aesthetic, IBM Plex Mono everywhere.
   ============================================================================ */

:root {
  /* Bespoke palette */
  --c-ignition: #04060a;
  --c-ignition-2: #070a10;
  --c-ignition-3: #0b1018;
  --c-steel: #c4ccd4;
  --c-steel-d: #8a949f;
  --c-steel-x: #5c6573;
  --c-steel-line: #1d2230;
  --c-thrust: #ff5722;
  --c-thrust-d: #c43d10;
  --c-copper: #d4a559;
  --c-copper-d: #8a6730;
  --c-spec-red: #dc2626;
  --c-spec-cy: #2dd4bf;
  --c-text: #c4ccd4;
  --c-text-x: #6e7884;
  --c-text-bright: #e8edf2;

  /* Type */
  --f-mono: 'IBM Plex Mono', ui-monospace, 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  --f-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-display: 'Space Grotesk', 'Inter', sans-serif;

  /* Rhythm */
  --rail-h: 40px;
  --easing-pro: cubic-bezier(0.58, 1, 0, 0);
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 50% 0%, #0a1018 0%, #04060a 55%, #02030680 100%),
    linear-gradient(180deg, #04060a 0%, #02030a 100%);
  background-color: var(--c-ignition);
  color: var(--c-text);
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked .deck { overflow: hidden; pointer-events: none; }
body.is-locked { overflow: hidden; }

::selection { background: var(--c-thrust); color: var(--c-ignition); }

/* ============================================================================
   CANVAS — z:0 underneath everything
   ============================================================================ */
#fxCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
  pointer-events: none;
}

/* Vignette + grain to add darkroom photographic feel */
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, #04060a 100%);
  opacity: 0.92;
}
.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grid-floor {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, transparent 65%, rgba(196, 204, 212, 0.025) 100%),
    repeating-linear-gradient(90deg, transparent 0 60px, rgba(196, 204, 212, 0.018) 60px 61px),
    repeating-linear-gradient(0deg,  transparent 0 60px, rgba(196, 204, 212, 0.018) 60px 61px);
  mask-image: linear-gradient(180deg, transparent 60%, black 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 60%, black 100%);
  opacity: 0.7;
}

/* ============================================================================
   HUD: top instrument rail — engineering telemetry ticker
   tighter mono, minimal letter-spacing, more readout density
   ============================================================================ */
.hud-top {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--rail-h);
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 18px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--c-text);
  background: linear-gradient(180deg, rgba(4,6,10,0.94) 0%, rgba(4,6,10,0.65) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-steel-line);
  pointer-events: none;
}
/* Rivet seam — thin highlight under the bottom border to read like machined panel */
.hud-top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: rgba(196, 204, 212, 0.04);
}
.hud-top__col { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hud-top__col--mid { gap: 18px; justify-self: center; }
.hud-top__col--right { justify-content: flex-end; }
.hud-top__brand {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; color: var(--c-text-bright);
  font-size: 10px;
  letter-spacing: 0.06em;
}
.hud-top__mark { width: 12px; height: 12px; color: var(--c-steel); }
.hud-top__sep { color: var(--c-text-x); opacity: 0.5; }
.hud-top__id { color: var(--c-text-x); font-size: 10px; letter-spacing: 0.04em; }
.hud-top__readout {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 2px 7px;
  border-left: 1px solid var(--c-steel-line);
}
.hud-top__readout:first-of-type { border-left: none; padding-left: 0; }
.hud-top__k {
  color: var(--c-text-x);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.hud-top__v {
  color: var(--c-text-bright);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  min-width: 38px;
  display: inline-block;
  letter-spacing: -0.01em;
}
.hud-top__v i { color: var(--c-text-x); font-style: normal; margin-left: 1px; font-size: 9px; font-weight: 400; }
.hud-top__pip {
  width: 6px; height: 6px;
  background: var(--c-thrust);
  box-shadow: 0 0 6px var(--c-thrust);
  animation: pip-pulse 1.4s var(--easing-pro) infinite;
}
.hud-top__status {
  font-weight: 600;
  color: var(--c-text-bright);
  font-size: 10px;
  letter-spacing: 0.04em;
}
@keyframes pip-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ============================================================================
   HUD: bottom rail — telemetry / camera bar (engineering tighter mono)
   ============================================================================ */
.hud-bot {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--rail-h);
  z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 0 18px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--c-text-x);
  background: linear-gradient(0deg, rgba(4,6,10,0.94) 0%, rgba(4,6,10,0.65) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--c-steel-line);
  pointer-events: none;
}
.hud-bot::before {
  content: ""; position: absolute; left: 0; right: 0; top: -2px;
  height: 1px; background: rgba(196, 204, 212, 0.04);
}
.hud-bot__crosshair { display: inline-flex; width: 16px; height: 16px; color: var(--c-thrust); }
.hud-bot__crosshair svg { width: 100%; height: 100%; }
.hud-bot__camera { color: var(--c-text-bright); font-weight: 600; letter-spacing: 0.04em; }
.hud-bot__camera span { color: var(--c-thrust); font-weight: 600; }
.hud-bot__line { flex: 0 0 18px; height: 1px; background: var(--c-steel-line); }
.hud-bot__lens, .hud-bot__loc { color: var(--c-text-x); font-size: 10px; letter-spacing: 0.04em; }
.hud-bot__loc { margin-left: auto; }

/* ============================================================================
   LEFT-EDGE SPEC SIDEBAR — vertical 3-line readouts (name / value / unit)
   Engineering spec-sheet motif — looks like a CAD parts table
   ============================================================================ */
.spec-sidebar {
  position: fixed;
  left: 14px;
  top: calc(var(--rail-h) + 14px);
  z-index: 26;
  width: 124px;
  background: linear-gradient(180deg, rgba(7,10,16,0.78) 0%, rgba(4,6,10,0.62) 100%);
  border: 1px solid var(--c-steel-line);
  border-radius: 0;
  padding: 0;
  font-family: var(--f-mono);
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* Subtle inner stroke for "milled aluminum panel" vibe */
  box-shadow:
    inset 0 1px 0 rgba(196,204,212,0.06),
    inset 0 -1px 0 rgba(0,0,0,0.4),
    0 8px 24px rgba(0,0,0,0.4);
}
.spec-sidebar__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px;
  background: rgba(196, 204, 212, 0.04);
  border-bottom: 1px solid var(--c-steel-line);
  font-size: 9px;
  letter-spacing: 0.12em;
}
.spec-sidebar__head--mat { margin-top: 4px; border-top: 1px solid var(--c-steel-line); }
.spec-sidebar__title { color: var(--c-thrust); font-weight: 600; }
.spec-sidebar__rev { color: var(--c-text-x); font-weight: 500; font-size: 8px; }
.spec-sidebar__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 4px;
  padding: 6px 10px;
  border-bottom: 1px dashed rgba(29, 34, 48, 0.7);
  font-size: 9px;
}
.spec-sidebar__row:last-child { border-bottom: none; }
.spec-sidebar__name {
  color: var(--c-text-x);
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 8.5px;
}
.spec-sidebar__val {
  color: var(--c-text-bright);
  font-weight: 600;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.spec-sidebar__unit {
  color: var(--c-copper);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* ============================================================================
   DRAWING NUMBER STAMP — bottom-right blueprint reference
   Engineering callout: title block style from mechanical drafting
   ============================================================================ */
.dwg-stamp {
  position: fixed;
  right: 14px;
  bottom: calc(var(--rail-h) + 14px);
  z-index: 26;
  display: flex; align-items: stretch;
  pointer-events: none;
  font-family: var(--f-mono);
}
.dwg-stamp__rule {
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, var(--c-thrust) 50%, transparent 100%);
  margin-right: 8px;
  opacity: 0.7;
}
.dwg-stamp__body {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 14px;
  padding: 8px 12px;
  background: rgba(4,6,10,0.6);
  border: 1px solid var(--c-steel-line);
  /* Title block corner mark — top-right diagonal cut */
  background-image: linear-gradient(135deg, transparent calc(100% - 8px), var(--c-thrust) calc(100% - 8px), var(--c-thrust) calc(100% - 7px), transparent calc(100% - 7px));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.dwg-stamp__row {
  display: contents;
  font-size: 9px;
}
.dwg-stamp__row b {
  color: var(--c-text-x);
  font-weight: 500;
  letter-spacing: 0.08em;
  font-size: 8px;
}
.dwg-stamp__row i {
  color: var(--c-text-bright);
  font-style: normal;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  font-size: 9.5px;
  text-align: right;
}

/* ============================================================================
   Wireframe toggle (bottom-left) — metallic milled outline
   Sits to the right of the spec-sidebar (offset by sidebar width + gap)
   ============================================================================ */
.wire-toggle {
  position: fixed;
  left: calc(14px + 124px + 12px);
  bottom: calc(var(--rail-h) + 14px);
  z-index: 26;
  appearance: none;
  background:
    linear-gradient(180deg, rgba(28, 34, 44, 0.85) 0%, rgba(7, 10, 16, 0.85) 100%);
  border: 1px solid var(--c-steel-d);
  color: var(--c-text);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 8px 13px 8px 12px;
  display: inline-flex; align-items: center; gap: 9px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: color 0.25s var(--easing-pro), border-color 0.25s var(--easing-pro), background 0.25s var(--easing-pro), box-shadow 0.25s var(--easing-pro);
  overflow: visible;
  /* Metallic — subtle inner highlight + drop shadow for raised feel */
  box-shadow:
    inset 0 1px 0 rgba(196,204,212,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.6),
    0 4px 12px rgba(0,0,0,0.55);
}
/* Engraved corner notches — top-right diagonal nick (machined panel motif) */
.wire-toggle::before,
.wire-toggle::after {
  content: ""; position: absolute;
  width: 4px; height: 4px;
  border: 1px solid var(--c-steel);
  opacity: 0.55;
}
.wire-toggle::before { top: 3px; left: 3px; border-right: none; border-bottom: none; }
.wire-toggle::after { bottom: 3px; right: 3px; border-left: none; border-top: none; }
.wire-toggle__icon { width: 13px; height: 13px; transition: transform 0.4s var(--easing-pro), filter 0.3s var(--easing-pro); }
.wire-toggle__label { font-weight: 600; }
.wire-toggle__kbd {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  font-family: var(--f-mono); font-size: 9px; font-weight: 600; letter-spacing: 0;
  color: var(--c-text);
  background: linear-gradient(180deg, rgba(196,204,212,0.10) 0%, rgba(0,0,0,0.25) 100%);
  border: 1px solid var(--c-steel-x);
  margin-left: 4px;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.5);
  transition: all 0.25s var(--easing-pro);
}
.wire-toggle__glow {
  position: absolute; inset: -3px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at center, rgba(255,87,34,0.45) 0%, transparent 70%);
  filter: blur(10px);
  transition: opacity 0.4s var(--easing-pro);
  z-index: -1;
}
.wire-toggle:hover {
  color: var(--c-text-bright);
  border-color: var(--c-steel);
  background:
    linear-gradient(180deg, rgba(40, 48, 60, 0.9) 0%, rgba(11, 16, 24, 0.9) 100%);
}
.wire-toggle:hover .wire-toggle__icon { transform: rotate(45deg); }
.wire-toggle.is-on {
  color: var(--c-thrust);
  border-color: var(--c-thrust);
  background: linear-gradient(180deg, rgba(60, 22, 8, 0.9) 0%, rgba(20, 7, 3, 0.95) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,180,140,0.30),
    inset 0 -1px 0 rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,87,34,0.25),
    0 0 14px rgba(255,87,34,0.55),
    0 0 36px rgba(255,87,34,0.22);
}
.wire-toggle.is-on::before,
.wire-toggle.is-on::after { border-color: var(--c-thrust); opacity: 0.9; }
.wire-toggle.is-on .wire-toggle__icon {
  transform: rotate(45deg) scale(1.15);
  filter: drop-shadow(0 0 5px rgba(255,87,34,1));
}
.wire-toggle.is-on .wire-toggle__glow { opacity: 1; }
.wire-toggle.is-on .wire-toggle__kbd {
  color: var(--c-thrust);
  border-color: var(--c-thrust);
  background: linear-gradient(180deg, rgba(255,87,34,0.22) 0%, rgba(60, 22, 8, 0.6) 100%);
}

/* ============================================================================
   Audio toggle (bottom-left, sits above wire toggle)
   ============================================================================ */
.audio-toggle {
  position: fixed;
  left: calc(14px + 124px + 12px);
  bottom: calc(var(--rail-h) + 56px);
  z-index: 26;
  appearance: none;
  background: rgba(4,6,10,0.6);
  border: 1px solid var(--c-steel-line);
  color: var(--c-text-x);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em;
  padding: 7px 12px;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: color 0.25s var(--easing-pro), border-color 0.25s var(--easing-pro), background 0.25s var(--easing-pro);
  overflow: hidden;
}
.audio-toggle__icon { width: 14px; height: 14px; }
.audio-toggle__wave { transition: stroke-dashoffset 0.6s var(--easing-pro); }
.audio-toggle:hover { color: var(--c-text-bright); border-color: var(--c-steel-d); }
.audio-toggle.is-on {
  color: var(--c-spec-cy);
  border-color: var(--c-spec-cy);
  background: rgba(45, 212, 191, 0.06);
  box-shadow: 0 0 8px rgba(45, 212, 191, 0.25);
}
.audio-toggle.is-on .audio-toggle__icon {
  animation: audio-breathe 1.6s var(--easing-pro) infinite;
}
@keyframes audio-breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.78; }
}

/* ============================================================================
   Leader-line SVG layer — fullscreen overlay between annot cards and engine
   ============================================================================ */
.leader-svg {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 23;
  pointer-events: none;
  overflow: visible;
}
.leader-svg path {
  fill: none;
  stroke: var(--c-thrust);
  stroke-width: 1;
  opacity: 0.7;
  filter: drop-shadow(0 0 3px rgba(255,87,34,0.55));
}
.leader-svg circle {
  fill: rgba(4,6,10,0.7);
  stroke: var(--c-thrust);
  stroke-width: 1;
}

/* ============================================================================
   Hero stat number counter
   ============================================================================ */
.hero-stat__v .num {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  min-width: 0;
}
.hero-stat__v .num__suffix {
  color: var(--c-thrust);
  margin-left: 1px;
}

/* ============================================================================
   Annotation cards (around the engine)
   ============================================================================ */
.annot-layer {
  position: fixed; inset: 0; z-index: 22; pointer-events: none;
}
.annot {
  position: absolute;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono); font-size: 10px;
  color: var(--c-text);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s var(--easing-pro), transform 0.45s var(--easing-pro);
}
.annot.is-visible { opacity: 1; transform: translateY(0); }
.annot__id {
  display: inline-block;
  padding: 3px 6px;
  background: var(--c-thrust);
  color: var(--c-ignition);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.annot__leader {
  display: block;
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, var(--c-thrust) 0%, var(--c-steel-d) 70%, transparent 100%);
  position: relative;
}
.annot__leader::after {
  content: ""; position: absolute; right: 0; top: 50%; transform: translate(50%, -50%);
  width: 6px; height: 6px; border: 1px solid var(--c-steel-d);
  background: rgba(4,6,10,0.7);
}
.annot__leader--up { transform: rotate(-22deg); transform-origin: left center; }
.annot__leader--down { transform: rotate(18deg); transform-origin: left center; }
.annot__body {
  border-left: 1px solid var(--c-steel-line);
  padding: 6px 0 6px 12px;
  background: rgba(4,6,10,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.annot__k { margin: 0; color: var(--c-text-x); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; }
.annot__v { margin: 2px 0 0 0; color: var(--c-text-bright); font-weight: 500; font-size: 13px; line-height: 1.2; }
.annot__v i { color: var(--c-text-x); font-style: normal; font-size: 10px; margin-left: 2px; }

/* Annot positions (5 total). Reverse-side annotations point left. */
.annot--01 { top: 26%; left: 8%; }
.annot--02 { top: 18%; right: 8%; flex-direction: row-reverse; }
.annot--02 .annot__id { order: 3; }
.annot--02 .annot__leader { order: 2; transform: rotate(180deg); }
.annot--02 .annot__body { order: 1; border-left: none; border-right: 1px solid var(--c-steel-line); padding: 6px 12px 6px 0; text-align: right; }
.annot--03 { bottom: 18%; left: 9%; }
.annot--04 { top: 22%; right: 7%; flex-direction: row-reverse; }
.annot--04 .annot__id { order: 3; }
.annot--04 .annot__leader { order: 2; transform: rotate(180deg); }
.annot--04 .annot__body { order: 1; border-left: none; border-right: 1px solid var(--c-steel-line); padding: 6px 12px 6px 0; text-align: right; }
.annot--05 { top: 50%; left: 7%; }

/* ============================================================================
   DECK / scenes — vertical scroll
   ============================================================================ */
.deck {
  position: fixed; inset: 0; z-index: 20;
  overflow-y: auto;
  overflow-x: hidden;
  /* Native scroll-snap disabled — Lenis handles smooth interpolation and we lerp camera per scene */
  scroll-snap-type: none;
  /* scroll-behavior native is irrelevant; Lenis runs the show */
  pointer-events: auto;
  padding: 0;
  scrollbar-width: none;
}
.deck::-webkit-scrollbar { display: none; }
/* Lenis hooks — works regardless of which element receives the class */
html.lenis, .lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

.scene {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  /* Left padding clears the spec-sidebar (124px + 14px left + 32px gap = ~170px) */
  padding: calc(var(--rail-h) + 24px) 80px calc(var(--rail-h) + 24px) 170px;
  pointer-events: auto;
}
.scene__inner { width: 100%; max-width: 1280px; margin: 0 auto; position: relative; }
.scene__inner.center-col { display: flex; flex-direction: column; align-items: center; text-align: center; }
.scene__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--c-text-x);
  text-transform: uppercase;
  margin: 0 0 22px 0;
}
.scene__eyebrow.center { justify-content: center; }
.scene__ord { color: var(--c-thrust); font-weight: 500; }
.scene__bar { display: inline-block; width: 28px; height: 1px; background: var(--c-steel-line); }

/* Two-column layout for detail scenes (left col copy, right col is engine via canvas) */
.two-col { display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: 60px; align-items: center; }
.two-col--rev .detail-col { grid-column: 2; text-align: right; }
.two-col--rev .spec-table__row { flex-direction: row-reverse; }
.two-col--rev .spec-table__row dt { text-align: left; }
.two-col--rev .spec-table__row dd { text-align: left; }
.two-col--rev .spec-table__row dd span { text-align: left; }

/* ============================================================================
   HERO scene
   ============================================================================ */
.scene--hero { padding-top: calc(var(--rail-h) + 60px); }
.display {
  font-family: var(--f-display);
  font-size: clamp(72px, 12vw, 184px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--c-text-bright);
  margin: 0;
  text-shadow: 0 0 60px rgba(196, 204, 212, 0.06);
}
.display__sub {
  font-family: var(--f-display);
  font-size: clamp(18px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--c-thrust);
  margin: 16px 0 0 0;
  max-width: 760px;
}
.display.center, .display--md.center { text-align: center; margin-left: auto; margin-right: auto; }
.display--md {
  font-family: var(--f-display);
  font-size: clamp(36px, 5.5vw, 76px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--c-text-bright);
  margin: 0;
}
.lede {
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-text);
  max-width: 600px;
  margin: 28px 0 0 0;
}
.copy {
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-text);
  max-width: 540px;
  margin: 18px 0 0 0;
}
.copy.center { text-align: center; margin-left: auto; margin-right: auto; }

.hero-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 48px 0 0 0;
  border-top: 1px solid var(--c-steel-line);
  border-bottom: 1px solid var(--c-steel-line);
}
.hero-stat {
  padding: 18px 22px;
  border-right: 1px solid var(--c-steel-line);
  display: flex; flex-direction: column; gap: 8px;
}
.hero-stat:last-child { border-right: none; }
.hero-stat__k {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em;
  color: var(--c-text-x); text-transform: uppercase;
}
.hero-stat__v {
  font-family: var(--f-display); font-size: 26px; font-weight: 500;
  color: var(--c-text-bright);
  font-variant-numeric: tabular-nums;
}
.hero-stat__v i {
  font-style: normal; color: var(--c-text-x); font-size: 14px;
  font-family: var(--f-mono); margin-left: 4px;
}

.hero-cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  appearance: none;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 22px;
  background: transparent;
  color: var(--c-text-bright);
  border: 1px solid var(--c-steel-line);
  cursor: pointer;
  transition: all 0.2s var(--easing-pro);
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.btn:hover {
  border-color: var(--c-steel-d);
  background: rgba(196, 204, 212, 0.04);
}
.btn--primary {
  background: var(--c-thrust);
  color: var(--c-ignition);
  border-color: var(--c-thrust);
  font-weight: 500;
}
.btn--primary:hover {
  background: var(--c-thrust-d);
  border-color: var(--c-thrust-d);
}

.hero-scrollnote {
  position: absolute;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--c-text-x);
  margin: 0;
}
.hero-scrollnote__arrow {
  display: inline-block;
  color: var(--c-thrust);
  animation: arrow-bob 1.6s var(--easing-pro) infinite;
}
@keyframes arrow-bob {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(4px); opacity: 1; }
}

/* ============================================================================
   Detail scenes — spec tables
   ============================================================================ */
.spec-table {
  display: flex; flex-direction: column; gap: 0;
  margin: 32px 0 0 0;
  border-top: 1px solid var(--c-steel-line);
}
.spec-table__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-steel-line);
  font-family: var(--f-mono); font-size: 12px;
}
.spec-table__row dt {
  color: var(--c-text-x);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
  margin: 0;
}
.spec-table__row dd {
  color: var(--c-text-bright);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.spec-table__row dd span {
  color: var(--c-text-x);
  font-size: 11px;
  margin-left: 4px;
}

/* ============================================================================
   PROGRAM scene — variant cards
   ============================================================================ */
.scene--program .scene__inner { display: flex; flex-direction: column; align-items: center; }
.scene--program .display--md { margin-top: 8px; }
.scene--program .copy { max-width: 640px; }

.variant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  margin: 48px 0 0 0;
}
.variant {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(11, 16, 24, 0.6) 0%, rgba(4, 6, 10, 0.4) 100%);
  border: 1px solid var(--c-steel-line);
  padding: 24px 22px;
  position: relative;
  transition: all 0.3s var(--easing-pro);
}
.variant:hover {
  border-color: var(--c-steel-d);
  background: linear-gradient(180deg, rgba(11, 16, 24, 0.8) 0%, rgba(4, 6, 10, 0.6) 100%);
  transform: translateY(-2px);
}
.variant--feat {
  border-color: var(--c-thrust);
  background: linear-gradient(180deg, rgba(255, 87, 34, 0.06) 0%, rgba(4, 6, 10, 0.6) 100%);
}
.variant--feat:hover { border-color: var(--c-thrust); transform: translateY(-2px); }

.variant__head { position: relative; padding-bottom: 14px; border-bottom: 1px solid var(--c-steel-line); }
.variant__id {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em;
  color: var(--c-text-x);
}
.variant__name {
  font-family: var(--f-display); font-size: 28px; font-weight: 500;
  color: var(--c-text-bright);
  margin: 4px 0 4px 0;
  letter-spacing: -0.02em;
}
.variant__sub {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--c-thrust);
}
.variant__pill {
  position: absolute; top: 0; right: 0;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.16em;
  color: var(--c-ignition);
  background: var(--c-thrust);
  padding: 3px 8px;
}
.variant__price {
  margin: 18px 0 16px 0;
  font-family: var(--f-display);
  display: flex; align-items: baseline; gap: 6px;
}
.variant__price span {
  font-size: 32px; font-weight: 500; color: var(--c-text-bright);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.variant__price small {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--c-text-x); letter-spacing: 0.06em;
}
.variant__list {
  list-style: none; padding: 0; margin: 0 0 24px 0;
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--f-mono); font-size: 12px;
  color: var(--c-text);
}
.variant__list li {
  position: relative;
  padding-left: 16px;
}
.variant__list li::before {
  content: "—";
  position: absolute; left: 0; top: 0;
  color: var(--c-text-x);
}
.variant__list b { color: var(--c-text-bright); font-weight: 500; }
.variant__cta {
  margin-top: auto;
  appearance: none;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 18px;
  background: transparent;
  color: var(--c-text-bright);
  border: 1px solid var(--c-steel-line);
  cursor: pointer;
  transition: all 0.2s var(--easing-pro);
}
.variant__cta:hover { border-color: var(--c-steel-d); background: rgba(196, 204, 212, 0.04); }
.variant__cta--feat {
  background: var(--c-thrust); color: var(--c-ignition); border-color: var(--c-thrust);
  font-weight: 500;
}
.variant__cta--feat:hover { background: var(--c-thrust-d); border-color: var(--c-thrust-d); }

/* ============================================================================
   REACH scene
   ============================================================================ */
.reach-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 40px 0 0 0;
  width: 100%;
  max-width: 720px;
  border: 1px solid var(--c-steel-line);
}
.reach-card {
  padding: 18px 22px;
  border-right: 1px solid var(--c-steel-line);
  border-bottom: 1px solid var(--c-steel-line);
}
.reach-card:nth-child(2n) { border-right: none; }
.reach-card:nth-last-child(-n+2) { border-bottom: none; }
.reach-card__k {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em;
  color: var(--c-text-x); text-transform: uppercase;
  margin: 0 0 6px 0;
}
.reach-card__v {
  font-family: var(--f-mono); font-size: 14px;
  color: var(--c-text-bright);
  margin: 0;
}

.reach-btns {
  margin-top: 36px;
  display: flex; gap: 12px;
}

.foot {
  margin-top: 64px;
  display: flex; align-items: center; gap: 16px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em;
  color: var(--c-text-x); text-transform: uppercase;
}
.foot__line { flex: 1; height: 1px; background: var(--c-steel-line); }

/* ============================================================================
   Reveal animation
   ============================================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--easing-pro), transform 0.7s var(--easing-pro);
  transition-delay: var(--rd, 0ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================================
   Loading gate
   ============================================================================ */
.gate {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-ignition);
  pointer-events: auto;
  transition: opacity 0.6s var(--easing-pro), visibility 0.6s var(--easing-pro);
}
.gate.is-open { opacity: 0; visibility: hidden; pointer-events: none; }
.gate__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 87, 34, 0.08) 0%, transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 80px, rgba(196, 204, 212, 0.02) 80px 81px),
    repeating-linear-gradient(0deg,  transparent 0 80px, rgba(196, 204, 212, 0.02) 80px 81px),
    var(--c-ignition);
}
.gate__inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  max-width: 480px;
  padding: 40px;
  text-align: center;
}
.gate__mark {
  width: 64px; height: 64px;
  color: var(--c-steel);
  animation: mark-pulse 2.4s var(--easing-pro) infinite;
}
@keyframes mark-pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
.gate__title {
  font-family: var(--f-display); font-size: 56px; font-weight: 500;
  color: var(--c-text-bright);
  letter-spacing: -0.03em;
  margin: 18px 0 4px 0;
}
.gate__sub {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--c-text-x);
  margin: 0 0 32px 0;
}

.gate__loadrow {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em;
  color: var(--c-text-x);
  margin-bottom: 24px;
}
.gate__loadlabel { color: var(--c-thrust); font-weight: 500; }
.gate__loadbar {
  display: block; height: 2px; background: var(--c-steel-line); position: relative; overflow: hidden;
}
.gate__loadfill {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--c-copper) 0%, var(--c-thrust) 100%);
  width: 0%;
  transition: width 0.4s var(--easing-pro);
  box-shadow: 0 0 8px var(--c-thrust);
}
.gate__loadpct { color: var(--c-text-bright); font-variant-numeric: tabular-nums; }

.gate__checklist {
  list-style: none; padding: 0; margin: 0 0 28px 0;
  width: 100%;
  display: flex; flex-direction: column; gap: 6px;
}
.gate__checklist li {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 10px; align-items: center;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--c-text-x);
  padding: 6px 0;
  border-bottom: 1px solid var(--c-steel-line);
}
.gate__checklist li i {
  display: inline-block;
  width: 8px; height: 8px;
  border: 1px solid var(--c-steel-line);
  background: transparent;
  transition: all 0.3s var(--easing-pro);
}
.gate__checklist li b {
  font-weight: 400;
  color: var(--c-text-x);
  font-variant-numeric: tabular-nums;
}
.gate__checklist li.is-loading i { background: var(--c-copper); border-color: var(--c-copper); animation: pip-pulse 1s infinite; }
.gate__checklist li.is-done i { background: var(--c-thrust); border-color: var(--c-thrust); }
.gate__checklist li.is-done b { color: var(--c-thrust); }

.gate__btn {
  appearance: none;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 28px;
  background: var(--c-thrust);
  color: var(--c-ignition);
  border: none;
  cursor: pointer;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 12px;
  transition: all 0.2s var(--easing-pro);
}
.gate__btn[disabled] {
  background: transparent;
  color: var(--c-text-x);
  border: 1px solid var(--c-steel-line);
  cursor: not-allowed;
}
.gate__btn:not([disabled]):hover { background: var(--c-thrust-d); }
.gate__btn svg { width: 16px; height: 8px; }
.gate__small {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.06em;
  color: var(--c-text-x);
  margin: 22px 0 0 0;
  max-width: 380px;
  line-height: 1.5;
}

/* ============================================================================
   Responsive
   ============================================================================ */
@media (max-width: 960px) {
  .scene { padding: calc(var(--rail-h) + 24px) 28px calc(var(--rail-h) + 24px) 28px; }
  .display { font-size: clamp(56px, 14vw, 96px); }
  .display--md { font-size: clamp(32px, 7vw, 52px); }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .two-col--rev .detail-col { grid-column: 1; text-align: left; }
  .two-col--rev .spec-table__row { flex-direction: row; }
  .hero-row { grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(2) { border-right: none; }
  .hero-stat:nth-child(1), .hero-stat:nth-child(2) { border-bottom: 1px solid var(--c-steel-line); }
  .variant-grid { grid-template-columns: 1fr; gap: 14px; }
  .reach-grid { grid-template-columns: 1fr; }
  .reach-card { border-right: none; border-bottom: 1px solid var(--c-steel-line); }
  .reach-card:last-child { border-bottom: none; }
  .annot-layer { display: none; }
  .spec-sidebar { display: none; }
  .dwg-stamp { display: none; }
  .wire-toggle { left: 18px; }
  .audio-toggle { left: 18px; }
  .hud-top__col--mid { display: none; }
  .hud-bot__lens { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
