/* RaceControl landing — product presentation discipline.
   Scale, space, typography, motion, product, rhythm, precision.
   Lua HUD internals live in hud.css and are intentionally untouched. */

@property --glow {
  syntax: "<color>";
  inherits: false;
  initial-value: rgba(0, 230, 118, .1);
}

:root {
  --black: #000;
  --text: #f5f5f7;
  --gray: #86868b;
  --muted: #6e6e73;
  --red: #e10600;
  --amber: #ffd600;
  --green: #00e676;
  --hairline: rgba(255, 255, 255, .12);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 52px;
}

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

html {
  margin: 0;
  padding: 0;
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
  overflow-x: hidden;
  overflow-x: clip;
}

::selection { background: var(--red); color: #fff; }
img { display: block; max-width: 100%; }
a { color: inherit; }
main [id] { scroll-margin-top: 64px; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); border-radius: 6px; border: 2px solid #000; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .3); }

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: top .2s ease;
}
.skip:focus { top: 12px; }


/* ---------- HERO SIGNAL · light travelling along the actual silhouette ---------- */
.hero-signal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(90vw, 94svh, 980px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  /* Keep the type quiet while the perimeter carries the light. */
  -webkit-mask-image: radial-gradient(ellipse 45% 28% at 50% 50%, #0005 25%, #000a 70%, #000 100%);
  mask-image: radial-gradient(ellipse 45% 28% at 50% 50%, #0005 25%, #000a 70%, #000 100%);
  transition: opacity 1.8s ease 0.4s;
}
body.loaded .hero-signal { opacity: 1; }
.hero-signal svg { width: 100%; height: 100%; overflow: visible; }
.signal-outline { fill: url(#signal-metal); stroke: url(#signal-edge); stroke-width: .8; }
.signal-comet { fill: none; stroke-linecap: round; }
.signal-comet > path, .signal-particle {
  animation: signal-travel var(--duration, 24s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.signal-reflection { stroke: #dae7f8; stroke-width: 1.25; }
.signal-halo { stroke: #c0d8f5; stroke-width: 4; opacity: .075; stroke-dasharray: 0 978 22 0; }
.signal-light { stroke: #f4f8ff; stroke-width: 1.5; opacity: .95; stroke-dasharray: 0 999 1 0; }
.signal-particle {
  offset-anchor: 0px 0px;
  offset-rotate: auto;
  animation-name: signal-orbit;
}
.hero-signal[data-paused] .signal-comet > path,
.hero-signal[data-paused] .signal-particle { animation-play-state: paused; }
@keyframes signal-travel { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1000; } }
@keyframes signal-orbit { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.hero-inner { position: relative; z-index: 1; }
.hero { overflow: hidden; isolation: isolate; }
.hero .ambient { display: none; }

@media (max-width: 600px) {
  .hero-signal { width: min(145vw, 80svh); }
  body.loaded .hero-signal { opacity: .7; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-signal { transition: none; }
  .signal-comet { display: none; }
  .signal-comet > path, .signal-particle { animation: none; }
}

/* ---------- NAV ---------- */

#site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transform: translateY(-100%);
  transition: transform 1s var(--ease-out), background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
}
body.loaded #site-header { transform: none; }
#site-header.scrolled {
  background: rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  border-bottom-color: rgba(255, 255, 255, .08);
}

.nav {
  height: var(--nav-h);
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; opacity: .92; transition: opacity .25s ease; }
.brand:hover { opacity: 1; }
.brand img { height: 15px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 28px; margin-left: 24px; }
.nav-links a {
  color: var(--text);
  opacity: .8;
  text-decoration: none;
  font-size: 12px;
  transition: opacity .25s ease;
}
.nav-links a:hover { opacity: 1; }

.nav-cta { margin-left: auto; display: flex; align-items: center; }
.nav-login {
  color: var(--gray);
  font-size: 12px;
  text-decoration: none;
  margin-right: 16px;
  transition: color .25s ease;
}
.nav-login:hover { color: var(--text); }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--text);
  color: #000;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.01em;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 980px;
  border: 0;
  cursor: pointer;
  transition: transform .2s var(--ease), opacity .2s ease, filter .2s ease;
  will-change: transform;
}
.pill:hover { transform: scale(1.01); opacity: .92; }
.pill:active { transform: scale(.99); }
.pill-small { font-size: 12px; padding: 7px 15px; }
.pill-red { background: var(--red); color: #fff; }
.pill-red:hover { opacity: 1; filter: brightness(1.1); }
.pill .ext { font-size: .78em; font-weight: 400; opacity: .6; margin-left: 7px; }

/* Shared nav-link external marker */
.go { font-style: normal; }
.nav-links .go, .foot-links .go { font-size: 9px; opacity: .5; margin-left: 4px; }
#menu-overlay .go { font-size: 18px; opacity: .45; margin-left: 10px; }

#scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--red);
}

#menu-btn {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
}
#menu-btn span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--text);
  transition: transform .35s var(--ease), opacity .25s ease;
}
#menu-btn span:first-child { top: 16px; }
#menu-btn span:last-child { top: 23px; }
body.menu-open #menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open #menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

#menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, .96);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 0 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
body.menu-open #menu-overlay { opacity: 1; visibility: visible; transition: opacity .35s ease; }
body.menu-open { overflow: hidden; }
#menu-overlay a {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -.03em;
  text-decoration: none;
  padding: 10px 0;
  color: var(--text);
}
#menu-overlay .pill { font-size: 17px; margin-top: 20px; }

/* ---------- TYPE ---------- */

h1, .scene-title, .director-phrase {
  margin: 0;
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.04;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 8vw, 6.5rem); }
.scene-title { font-size: clamp(2rem, 4.2vw, 3.25rem); }

.eyebrow {
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.eyebrow-brand { gap: 12px; }
.hero-mark { height: 22px; width: auto; }

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.lede {
  color: var(--gray);
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
  letter-spacing: -.01em;
  margin: 26px 0 0;
}

.stage-caption {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
}

.side-label {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.textlink {
  color: var(--text);
  font-size: 17px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity .25s ease;
}
.textlink span { display: inline-block; transition: transform .3s var(--ease); }
.textlink:hover span { transform: translateX(3px); }
.textlink.quiet { color: var(--gray); font-size: 15px; }
.textlink.quiet:hover { color: var(--text); }

.micro {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 34px 0 0;
}

.fineprint {
  margin: 22px auto 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 420px;
}

/* ---------- LOAD ---------- */

[data-load] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease var(--ld, 0s), transform 1.1s var(--ease-out) var(--ld, 0s);
}
body.loaded [data-load] { opacity: 1; transform: none; }

.mask { display: block; overflow: hidden; padding-bottom: .09em; margin-bottom: -.09em; }
.mask > span {
  display: block;
  transform: translateY(114%);
  transition: transform 1.25s var(--ease-out);
  transition-delay: var(--ld, 0s);
  will-change: transform;
}
body.loaded .hero .mask > span { transform: translateY(0); }

/* ---------- 1 · HERO ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 48px) 24px 80px;
  position: relative;
  background: #000;
}
.hero-inner { max-width: 900px; will-change: transform, opacity; }
.hero-cta { margin-top: 38px; display: flex; justify-content: center; align-items: center; gap: 30px; flex-wrap: wrap; }
.hero-secondary { font-size: 14px; }

.ambient {
  position: absolute;
  top: -20vh;
  left: 50%;
  width: min(900px, 120vw);
  height: min(900px, 120vw);
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(225, 6, 0, .13), rgba(225, 6, 0, .04) 55%, transparent 75%);
  filter: blur(50px);
  pointer-events: none;
  will-change: transform, opacity;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 12px;
  display: block;
  transition: opacity .3s ease;
}
.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gray);
  animation: hint 2.2s var(--ease) infinite;
}
@keyframes hint {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- STICKY SCAFFOLD ---------- */

.sticky-wrap { position: relative; }
.sticky-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0 24px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s ease, transform .9s var(--ease);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- 2 + 3 · REVEAL into THE TRACK SPEAKS ---------- */

.driver-wrap { height: 340vh; background: #060606; }

.driver-ambient {
  position: absolute;
  inset: 0;
  background: radial-gradient(58% 46% at 50% 54%, var(--glow), transparent 72%);
  filter: blur(70px);
  pointer-events: none;
  transition: --glow 1.4s ease;
}

.flag-title { margin-bottom: 42px; }

.driver-slot {
  position: relative;
  width: min(820px, 94vw);
  height: 560px;
  will-change: transform, filter, opacity;
}
.driver-beat {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  will-change: transform, opacity;
}
.driver-beat:first-child { position: relative; }

.reveal-line {
  margin: 44px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
  opacity: 0;
}

.driver-side {
  text-align: center;
  margin-top: 40px;
  opacity: 0;
  will-change: opacity;
}
.driver-side .stage-caption { white-space: normal; line-height: 1.8; }
.readout {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
  white-space: nowrap;
}
@media (min-width: 1500px) {
  .driver-side {
    position: absolute;
    right: max(32px, 7vw);
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
    width: 200px;
    margin-top: 0;
  }
}

/* ---------- WHAT IS RACECONTROL? · command to cockpit ---------- */
.what { background: #000; padding: clamp(100px, 13vh, 160px) 32px; }
.what-inner { max-width: 1200px; margin: 0 auto; }
.what-heading { display: grid; grid-template-columns: 1.25fr 1fr; align-items: end; gap: 80px; }
.what-heading .eyebrow { justify-content: flex-start; margin: 0 0 24px; color: #a0a0a6; font-size: 10px; letter-spacing: .16em; }
.what-heading h2 { font-size: clamp(44px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -.055em; font-weight: 600; margin: 0; }
.what-heading h2 span {
  color: #b8c2d2;
  background: linear-gradient(110deg, transparent 30%, #ffffff05 42%, #f2f7ff38 50%, #ffffff05 58%, transparent 70%), linear-gradient(176deg, #ccd3df 0%, #b8c1cf 42%, #a2acbc 68%, #b9c3d2 100%);
  background-size: 260% 100%, 100% 100%;
  background-position: 150% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: cockpit-metal-sheen 14s ease-in-out infinite;
}
@keyframes cockpit-metal-sheen {
  0%, 20% { background-position: 150% 0, 0 0; }
  75%, 100% { background-position: -150% 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .what-heading h2 span { animation: none; }
}
@media (forced-colors: active) {
  .what-heading h2 span { background: none; -webkit-text-fill-color: CanvasText; }
}
.what-intro { max-width: 370px; padding-bottom: 5px; }
.what-intro p { color: #a1a1a9; font-size: 17px; line-height: 1.65; margin: 0 0 22px; }
.what-intro .textlink { font-size: 13px; color: #e2e2e6; }
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, .8fr) 48px minmax(0, 1.7fr); align-items: start; margin: 72px 0 0; }
.flow-node { min-width: 0; }
.flow-label { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #acacb5; white-space: nowrap; }
.flow-label > span { color: #686872; font-size: 10px; }
.flow-command, .flow-relay, .flow-screen { height: 194px; box-sizing: border-box; }
.flow-command { border: 1px solid #262629; border-radius: 10px; padding: 20px; background: linear-gradient(135deg, #101013, #070708); }
.flow-command-top, .flow-screen-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #7c7c87; font-family: var(--mono); font-size: 9px; letter-spacing: .04em; }
.flow-command-top > span:last-child { font-size: 8px; color: #aaaab3; }
.flow-switches { display: flex; gap: 8px; margin: 19px 0 14px; }
.flow-switches i { height: 3px; width: 26px; background: #35353a; border-radius: 1px; }
.flow-switches .selected { background: #f5c95a; box-shadow: 0 0 12px #f5c95a25; }
.flow-chip {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  padding: 12px 20px;
  transition: color .4s ease, border-color .4s ease, background .4s ease;
}
.flow-chip.on {
  color: #ffcf5f;
  border-color: rgba(255, 180, 0, .55);
  background: rgba(255, 180, 0, .07);
}
.flow-source .flow-chip { display: flex; align-items: center; gap: 10px; padding: 10px 0; border: 0; border-radius: 0; font-size: 17px; letter-spacing: -.025em; text-transform: none; font-family: inherit; font-weight: 500; background: transparent; }
.flow-source .flow-chip.on { background: transparent; }
.flow-source .flow-chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px #ffcf5f30; }
.flow-target { display: flex; justify-content: space-between; align-items: center; color: #888892; font-size: 11px; padding-top: 9px; }
.flow-target > span { font-size: 16px; }
.flow-caption { font-size: 13px; color: #93939e; margin: 22px 0 0; line-height: 1.5; }
.flow-track { height: 1px; position: relative; background: #2a2a2e; margin-top: 136px; }
.flow-track::after { content: ''; position: absolute; right: 0; top: -2px; width: 5px; height: 5px; border-top: 1px solid #565661; border-right: 1px solid #565661; transform: rotate(45deg); }
.flow-pulse { position: absolute; top: 50%; left: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #ffe5a0; box-shadow: 0 0 12px #ffd76b80; opacity: 0; }
.flow-mid .flow-label, .flow-mid .flow-caption { justify-content: center; text-align: center; }
.flow-relay { display: flex; align-items: center; justify-content: center; flex-direction: column; position: relative; gap: 16px; }
.flow-relay-ring { position: absolute; width: 150px; height: 150px; border: 1px solid #1c1c20; border-radius: 50%; background: radial-gradient(circle, #ffffff04, transparent 70%); }
.flow-relay-ring::after { content: ''; position: absolute; inset: 10px; border: 1px solid #ffffff04; border-radius: 50%; }
.flow-mark { position: relative; width: 72px; max-width: 90%; height: 72px; opacity: .65; transition: opacity .5s; }
.flow-mid.lit .flow-mark { opacity: 1; }
.flow-relay-status { position: relative; color: #a6a6af; font-size: 10px; display: flex; align-items: center; gap: 6px; }
.flow-relay-status i { width: 4px; height: 4px; border-radius: 50%; background: #7e8f85; }
.flow-mid.lit .flow-relay-status i { background: #afd1b9; box-shadow: 0 0 8px #afd1b930; }
.flow-screen { display: flex; flex-direction: column; justify-content: space-between; border: 1px solid #28282c; border-radius: 10px; padding: 18px 20px; background: radial-gradient(ellipse at 50% 65%, #ffffff05, transparent 75%), #09090b; }
.flow-screen-top { padding-bottom: 14px; border-bottom: 1px solid #ffffff08; }
.flow-screen-top > span:last-child { letter-spacing: 0; color: #666670; font-family: inherit; font-size: 10px; }
.flow-hud { width: 100%; min-width: 0; opacity: .25; transform: translateY(5px); transition: opacity .5s, transform .5s var(--ease); }
.flow-hud.show { opacity: 1; transform: none; }
.flow-hud-fallback { display: block; color: #ffcf5f; text-align: center; font-size: 14px; padding: 15px 0; }
.flow-screen-note { color: #686873; font-size: 10px; text-align: center; }
.what-foot { display: flex; justify-content: space-between; gap: 24px; align-items: center; border-top: 1px solid #202024; margin-top: 44px; padding-top: 22px; }
.what-key { display: flex; flex-wrap: wrap; gap: 22px; margin: 0; color: #81818b; font-size: 11px; }
.what-key span::before { content: '✓'; color: #a9a9b2; margin-right: 7px; }
.what-foot .textlink { font-size: 12px; white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 901px) {
  .flow { grid-template-columns: minmax(0, 1fr) 24px minmax(0, .8fr) 24px minmax(0, 1.6fr); }
  .flow-command, .flow-screen { padding-left: 14px; padding-right: 14px; }
  .flow-mark { width: 72px; }
}
@media (max-width: 900px) {
  .what { padding: 90px 24px; }
  .what-heading { grid-template-columns: 1fr; gap: 28px; }
  .what-intro { max-width: 500px; }
  .what-intro p { font-size: 16px; margin-bottom: 16px; }
  .what-heading .eyebrow { margin-bottom: 18px; }
  .what .flow { display: flex; flex-direction: column; align-items: stretch; gap: 0; max-width: 500px; margin: 44px auto 0; }
  .flow-label { margin-bottom: 16px; }
  .flow-command { max-width: none; }
  .flow-mid .flow-label { justify-content: flex-start; }
  .flow-mid .flow-caption { text-align: left; }
  .flow-command { height: 174px; }
  .flow-relay { height: 136px; }
  .flow-relay-ring { width: 130px; height: 130px; }
  .what .flow-track { flex: none; width: 1px; min-width: 0; height: 32px; margin: 18px auto; }
  .flow-track::after { top: auto; bottom: 0; right: -2px; transform: rotate(135deg); }
  .what .flow-pulse { top: 0; left: 50%; margin: -3px 0 0 -3px; }
  .flow-caption { margin-top: 14px; }
  .what-foot { flex-direction: column; align-items: flex-start; gap: 22px; margin-top: 32px; }
  .what .what-key { margin: 0; gap: 12px 20px; }
}

/* ---------- SEE IT IN ACTION · real footage player ---------- */

/* ---------- SHOWCASE · signal room ---------- */
.showcase { background: #000; padding: clamp(120px, 16vh, 190px) 24px; }
.showcase-inner { max-width: 1200px; margin: 0 auto; }
.showcase-head { display: grid; gap: 22px; align-items: end; }
@media (min-width: 900px) { .showcase-head { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; } }
.showcase-sub { margin: 0; color: var(--gray); font-size: 16px; line-height: 1.55; max-width: 46ch; }

/* Scenario tabs */
.modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 24px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
}
.modes button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  text-align: left;
  background: none;
  border: 0;
  border-right: 1px solid var(--hairline);
  padding: 12px 14px;
  cursor: pointer;
  color: var(--muted);
  transition: background .25s ease, color .25s ease;
}
.modes button:last-child { border-right: 0; }
.modes button::after { content: none; }
.modes .mode-n { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }
.modes .mode-t b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.01em; color: inherit; }
.modes .mode-t small { display: block; margin-top: 3px; font-size: 11px; line-height: 1.4; color: var(--muted); }
.modes button:hover { background: rgba(255,255,255,.03); color: var(--gray); }
.modes button[aria-selected="true"] { background: rgba(255,255,255,.05); color: var(--text); box-shadow: inset 0 2px 0 0 var(--text); }
.modes button[aria-selected="true"] .mode-n { color: var(--red); }

/* Stage */
.stage {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 18px 22px 14px;
  background: linear-gradient(180deg, #09090b, #050505);
  overflow: hidden;
}
.demo-live { margin: 0; }
.demo { margin: 0; max-width: none; text-align: left; }
.demo-steps,
.demo-visuals {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px 190px 40px minmax(0, 1.2fr);
  align-items: center;
}
.demo-steps { padding-bottom: 12px; }
.demo-steps .demo-step:nth-child(1) { grid-column: 1; }
.demo-steps .demo-step:nth-child(2) { grid-column: 3; justify-content: center; }
.demo-steps .demo-step:nth-child(3) { grid-column: 5; }
.demo-step {
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.demo-step span { color: var(--text); }
.demo-label { display: none; }

/* Modules */
.demo-zone,
.demo-bridge {
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: rgba(255, 255, 255, .02);
  min-height: 246px;
}
.demo-zone { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 16px 18px; min-width: 0; }
.demo-bridge { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.demo-control { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.dir-signal { display: inline-flex; gap: 6px; }
.dir-signal i { width: 26px; height: 2px; border-radius: 1px; background: rgba(255,255,255,.14); }
.dir-signal i.on { background: var(--amber); box-shadow: 0 0 10px rgba(255,214,0,.35); }
.demo-status { margin: 0; min-height: 16px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); }
.demo-mark-wrap { position: relative; display: grid; place-items: center; width: 84px; height: 84px; padding: 0; background: none; }
.demo-mark-wrap::before,
.demo-mark-wrap::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.10); }
.demo-mark-wrap::before { inset: 0; }
.demo-mark-wrap::after { inset: 12px; border-color: rgba(255,255,255,.06); }
.demo-mark { width: 40px; height: 40px; opacity: .55; transition: opacity .4s ease; }
.demo-bridge.lit .demo-mark { opacity: 1; }
.demo-relay-status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.demo-relay-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(0,230,118,.55); }
.demo-vline { display: none; }
.seg { align-self: center; height: 1px; background: rgba(255, 255, 255, .13); border-radius: 1px; overflow: hidden; }
.seg i { display: block; height: 100%; background: rgba(255, 255, 255, .45); transform: scaleX(0); transform-origin: left center; opacity: 0; }
.seg-out { position: relative; overflow: visible; }
.seg-out::after {
  content: "›";
  position: absolute;
  right: 1px;
  top: 50%;
  transform: translateY(-54%);
  font-size: 10px;
  line-height: 1;
  color: var(--muted);
}
.demo-screen { width: 100%; border: 1px solid var(--hairline); border-radius: 12px; background: rgba(0,0,0,.35); padding: 8px 10px 0; }
.demo-screen-top { display: flex; justify-content: space-between; gap: 12px; padding: 2px 2px 8px; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.demo-hud { width: 100%; height: 178px; display: flex; align-items: center; justify-content: center; transition: opacity .25s ease, transform .25s ease; }

/* Foot */
.stage-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: baseline;
  justify-content: space-between;
}
.stage-hint { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stage-mode { color: var(--gray); }
.demo-fallback { margin: 0; max-width: none; text-align: left; padding: 6px 2px 2px; }
.demo-fallback-row {
  display: flex;
  gap: 14px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray);
}
.demo-fallback-row i { font-style: normal; color: var(--muted); }
.demo-fallback-note { margin: 16px 0 0; font-size: 14px; color: var(--muted); max-width: 52ch; }

/* ---------- CAPABILITIES · premium inventory ---------- */

.caps { background: #050505; padding: clamp(160px, 22vh, 260px) 24px; }
.caps-inner { max-width: 880px; margin: 0 auto; }
.caps-title { margin-bottom: 72px; }
.caps-list { list-style: none; margin: 0; padding: 0; }
.caps-list li { border-top: 1px solid rgba(255, 255, 255, .08); }
.caps-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.caps-list a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 32px;
  gap: 20px;
  align-items: start;
  padding: 28px 4px;
  text-decoration: none;
  color: var(--text);
}
.caps-n {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
  margin-top: 11px;
  line-height: 1;
  transition: color .3s ease;
}
.caps-t { display: flex; flex-direction: column; gap: 6px; }
.caps-t b { font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -.02em; }
.caps-t span { color: var(--gray); font-size: 15px; letter-spacing: -.01em; max-width: 56ch; }
.caps-a { color: var(--muted); font-size: 18px; margin-top: 8px; line-height: 1; transition: transform .3s var(--ease), color .3s ease; }
.caps-list a:hover .caps-a { transform: translateX(3px); color: var(--text); }
.caps-list a:hover .caps-n { color: var(--red); }

/* ---------- 4 · INCIDENT ---------- */

.incident-wrap { height: 230vh; background: #0b0b0e; }
.incident-wrap .scene-title { margin-bottom: 8px; }

.incident-slot {
  position: relative;
  width: min(880px, 94vw);
  height: 190px;
  margin-top: 64px;
}
.incident-step {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  will-change: transform, opacity;
}
.incident-step:first-child { position: relative; }

.incident-meta { margin-top: 48px; }
.incident-meta p {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text);
}
.progress {
  width: 120px;
  height: 2px;
  margin: 20px auto 0;
  background: rgba(255, 255, 255, .14);
  border-radius: 1px;
  overflow: hidden;
}
.progress i { display: block; height: 100%; width: 0; background: var(--text); border-radius: 1px; }

.incident-ambient {
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 40% at 50% 58%, rgba(255, 23, 68, .09), transparent 70%);
  filter: blur(70px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}

/* ---------- 5 · DIRECTOR ---------- */

.director-wrap { height: 185vh; background: #000; }

.console {
  width: min(1200px, 94vw);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  background: #050506;
  padding: clamp(30px, 4vw, 60px);
  text-align: left;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .55);
  will-change: transform, filter, opacity;
}
.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.console-live {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
}
.console-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(225, 6, 0, .45);
  border-radius: 980px;
  padding: 5px 12px;
}
.console-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
  transition: opacity .8s ease;
}
.console-flags .danger { color: var(--red); }
.console-cases { transition: opacity .8s ease; }
.case {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: 15px;
}
.case:last-child { border-bottom: 0; padding-bottom: 4px; }
.case-id { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.case-desc { letter-spacing: -.01em; color: var(--text); }
.case-status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.case-status.amber { color: var(--amber); }
.case-status.green { color: var(--green); }
.console .dim { opacity: .28; }

.director-phrase {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  font-size: clamp(3rem, 9vw, 7rem);
  opacity: 0;
  pointer-events: none;
}

/* ---------- FINAL ---------- */

.moment {
  padding: clamp(170px, 24vh, 280px) 24px clamp(170px, 24vh, 280px);
  text-align: center;
  background: #000;
}
.moment .narrow { max-width: 820px; margin: 0 auto; }
.final-mark { width: min(440px, 72vw); margin: 0 auto 26px; }
.final-mark img { width: 100%; height: auto; }
.final-sub {
  margin: 20px auto 0;
  color: var(--gray);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  letter-spacing: -.01em;
  max-width: 520px;
}
.final-cta { margin-top: 44px; }
.final-cta .pill { font-size: 17px; padding: 16px 40px; }

/* ---------- FOOTER ---------- */

footer { border-top: 1px solid var(--hairline); background: #000; }
.foot-inner { max-width: 1024px; margin: 0 auto; padding: 34px 22px 40px; }
.foot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 26px;
}
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a { font-size: 12px; color: var(--gray); text-decoration: none; transition: color .25s ease; }
.foot-links a:hover { color: var(--text); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  #menu-btn { display: block; }

  .driver-wrap { height: 230vh; }
  .incident-wrap { height: 180vh; }
  .director-wrap { height: 160vh; }

  .driver-slot { height: 400px; }
  .incident-slot { height: 150px; }

  .driver-side { margin-top: 28px; }
  .driver-ambient { opacity: .7; }
  .stage-caption { white-space: normal; }

  .flow { flex-direction: column; gap: 0; margin-top: 56px; }
  .flow-track { flex: none; width: 2px; min-width: 0; height: 52px; margin: 18px 0; }
  .flow-pulse { left: 50%; top: 0; margin: -4px 0 0 -4px; }
  .what-key { margin-top: 48px; }

  .modes { gap: 22px; flex-wrap: wrap; }

  .caps-list a { grid-template-columns: 1fr 28px; }
  .caps-n { display: none; }

  .case { grid-template-columns: 48px 1fr; row-gap: 8px; }
  .case-status { grid-column: 2; }

  .moment { padding-left: 20px; padding-right: 20px; }
}

/* Showcase stacks vertically before columns get cramped */
@media (max-width: 1100px) {
  .modes { grid-template-columns: minmax(0, 1fr); }
  .modes button { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .modes button:last-child { border-bottom: 0; }
  .demo { max-width: 560px; margin: 0 auto; }
  .demo-steps,
  .demo-visuals { grid-template-columns: minmax(0, 1fr); }
  .demo-steps { display: flex; gap: 12px; justify-content: space-between; padding-bottom: 12px; }
  .demo-step { font-size: 8.5px; letter-spacing: .08em; white-space: nowrap; }
  .demo-steps .demo-step:nth-child(1),
  .demo-steps .demo-step:nth-child(2),
  .demo-steps .demo-step:nth-child(3) { grid-column: auto; justify-content: flex-start; }
  .demo-zone,
  .demo-bridge { min-height: 0; }
  .seg { display: none; }
  .demo-bridge { margin: 18px auto; padding: 16px; width: 100%; }
  .demo-mark-wrap { width: 76px; height: 76px; }
  .demo-mark { width: 36px; height: 36px; }
  .demo-vline { display: block; width: 2px; height: 36px; background: rgba(255, 255, 255, .08); border-radius: 1px; overflow: hidden; }
  .demo-vline i { display: block; width: 100%; height: 100%; background: rgba(255, 255, 255, .45); transform: scaleY(0); transform-origin: center top; opacity: 0; }
  .demo-hud { height: 240px; }
}

/* Short viewports: keep the whole flag stage visible */
@media (max-height: 780px) {
  .driver-slot { height: 440px; }
  .reveal-line { margin-top: 28px; }
  .driver-side { margin-top: 24px; }
  .flag-title { font-size: clamp(1.8rem, 4vh, 2.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
  #site-header { transform: none; }
  [data-reveal], [data-load] { opacity: 1 !important; transform: none !important; }
  .mask > span { transform: none !important; }
  .sticky-wrap { height: auto; }
  .sticky-stage { position: static; height: auto; padding: 120px 24px; }
  .driver-beat, .incident-step { position: relative; opacity: 1 !important; transform: none !important; margin-bottom: 28px; }
  .driver-slot, .incident-slot { height: auto; transform: none !important; filter: none !important; opacity: 1 !important; }
  .reveal-line { opacity: 1 !important; }
  .driver-side { position: static; transform: none; text-align: center; opacity: 1 !important; }
  .director-phrase { position: static; opacity: 1 !important; margin-top: 56px; }
  .console { transform: none !important; filter: none !important; opacity: 1 !important; }
  .console .dim { opacity: 1 !important; }
  .flow-chip { color: #ffcf5f !important; border-color: rgba(255, 180, 0, .55) !important; background: rgba(255, 180, 0, .07) !important; }
  .flow-mark { opacity: 1 !important; }
  .flow-hud { opacity: 1 !important; transform: none !important; }
  .flow-pulse { display: none !important; }
  .demo-hud { opacity: 1 !important; transform: none !important; }
  .demo-dot { display: none !important; }
  .scroll-hint, .ambient, .driver-ambient, .incident-ambient { display: none; }
}

/* SaaS access model */
.saas-entry {
  border-top: 1px solid rgba(255,255,255,.09);
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: #080808;
  padding: clamp(90px, 12vw, 170px) 22px;
}
.saas-entry-inner {
  max-width: 1024px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: clamp(50px, 10vw, 150px);
  align-items: center;
}
.saas-copy .eyebrow { justify-content: flex-start; margin-bottom: 24px; }
.saas-copy .lede { max-width: 500px; }
.saas-copy .hero-cta { justify-content: flex-start; margin-top: 32px; }
.saas-steps { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(255,255,255,.13); }
.saas-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.saas-steps li > span { color: var(--red); font: 11px var(--mono); padding-top: 3px; }
.saas-steps b { display: block; font-size: 17px; font-weight: 500; margin-bottom: 7px; }
.saas-steps small { display: block; color: var(--gray); font-size: 13px; line-height: 1.5; }
@media (max-width: 760px) {
  .nav-login { display: none; }
  .saas-entry { padding-left: 18px; padding-right: 18px; }
  .saas-entry-inner { grid-template-columns: 1fr; gap: 55px; }
}

/* ---------- ONE DECISION · human decision / RaceControl / in-game flag ---------- */
.what-inner { display: block; }
.what-heading { display: grid; grid-template-columns: 1.25fr 1fr; align-items: end; gap: 80px; }
.what .flow { display: grid; --flow-panel-height: 280px; --flow-label-height: 20px; --flow-label-gap: 24px; grid-template-columns: minmax(0, 1fr) 64px minmax(0, .8fr) 64px minmax(0, 1.6fr); align-items: start; margin-top: 70px; }
.what .flow-node { min-width: 0; }
.what .flow-label { justify-content: center; height: var(--flow-label-height); margin: 0 0 var(--flow-label-gap); font: 500 14px/20px var(--font); color: #d2d2d8; letter-spacing: -.01em; text-transform: none; }
.what .flow-label > span { color: #777782; font: 500 11px/20px var(--font); }
.what .flow-command, .what .flow-relay, .what .flow-screen { height: var(--flow-panel-height); }
.what .flow-command { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; border: 1px solid #ffffff18; border-radius: 16px; background: linear-gradient(150deg,#0c0d10,#040405); }
.what .flow-command::before { content: ''; position: absolute; z-index: -1; inset: 32px 0 60px; background: url('/img/race-director-person.svg') center top / auto 190px no-repeat; }
.what .flow-command-top { position: absolute; top: 20px; left: 22px; right: 22px; font: 400 12px/1.4 var(--font); letter-spacing: 0; }
.what .flow-command-top > span:last-child { font: inherit; color: #9696a1; }
.what .flow-switches { display: none; }
.what .flow-source .flow-chip { justify-content: space-between; width: 100%; padding: 12px 14px; border: 1px solid #ffffff26; border-radius: 8px; background: #08090de8; color: #b9b6a9; font: 500 16px var(--font); cursor: pointer; transition: border-color .35s, color .35s, background .35s; }
.what .flow-source .flow-chip.on { color: #f2d483; border-color: #e8c57160; background: #191609ed; }
.what .flow-chip:disabled { cursor: default; }
.what .flow-chip:not(:disabled):hover { border-color: #f2d483a0; }
.what .flow-source .flow-chip i { width: 5px; height: 5px; box-shadow: none; margin-right: 2px; }
.what .flow-source .flow-chip > span { margin-left: auto; }
.what .flow-target { padding-top: 12px; color: #96969f; font-size: 12px; line-height: 1.5; }
.what .flow-target > span { display: none; }
.what .flow-relay { position: relative; display: block; }
.what .flow-relay::before { content: ''; position: absolute; inset: 12% 0; background: radial-gradient(ellipse,#d7e5ff0c,transparent 68%); opacity: 0; transition: opacity .65s; }
.what .flow-relay-ring { display: none; }
.what .flow-mark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 116px; height: 116px; max-width: 75%; opacity: .16; filter: brightness(.4); transition: opacity .6s, filter .6s; }
.what .flow-mid.lit .flow-mark { opacity: 1; filter: brightness(1.08) drop-shadow(0 0 17px #d5e7ff28); }
.what .flow-mid.lit .flow-relay::before { opacity: 1; }
.what .flow-relay-status { position: absolute; top: calc(50% + 80px); left: 0; right: 0; justify-content: center; font: 400 12px/1.4 var(--font); letter-spacing: 0; color: #888894; gap: 7px; white-space: nowrap; }
.what .flow-relay-status i { background: #565963; box-shadow: none; }
.what .flow-mid.lit .flow-relay-status { color: #b9c5d6; }
.what .flow-mid.lit .flow-relay-status i { background: #d3e1f5; box-shadow: 0 0 8px #b8d9ff55; }
.what .flow-track { width: auto; height: 1px; margin: calc(var(--flow-label-height) + var(--flow-label-gap) + var(--flow-panel-height) / 2) 10px 0; background: linear-gradient(90deg,#ffffff12,#ffffff45); }
.what .flow-track::after { top: -2px; right: 0; width: 5px; height: 5px; border-color: #a4aab6; }
.what .flow-pulse { background: #edf5ff; box-shadow: 0 0 12px #cbdfff80; }
.what .flow-screen { position: relative; width: 100%; isolation: isolate; overflow: hidden; padding: 0; border: 1px solid #ffffff26; border-radius: 16px; background: #101319; }
.what .flow-screen::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg,#0001,#0000 65%,#0009), url('/img/landing-ac-cockpit.jpg') center / cover no-repeat; }
.what .flow-screen-top { display: none; }
.what .flow-hud { position: absolute; top: 18px; left: 18px; width: 76px; height: 76px; opacity: 0; transform: translateY(-5px); transition: opacity .25s, transform .25s; filter: drop-shadow(0 3px 9px #0008); }
.what .flow-hud.show { opacity: 1; transform: none; }
.what .flow-hud .hud-fit { height: 100%; }
.what .flow-hud-fallback { padding: 6px; font-size: 10px; background: #141409; }
.what .flow-screen-note { position: absolute; left: 18px; bottom: 16px; color: #d4d7dc; font: 400 11px/1.4 var(--font); text-align: left; text-shadow: 0 1px 4px #000; }
.what .flow-caption { margin-top: 24px; color: #9d9da7; font: 400 13px/1.5 var(--font); text-align: center; }
@media (max-width: 1100px) and (min-width: 901px) {
  .what .flow { --flow-panel-height: 250px; grid-template-columns: minmax(0, 1fr) 40px minmax(150px, .8fr) 40px minmax(0, 1.4fr); }
  .what .flow-command { padding: 16px; }
  .what .flow-command, .what .flow-relay, .what .flow-screen { height: 250px; }
  .what .flow-track { margin-left: 7px; margin-right: 7px; }
  .what .flow-screen::before { background-size: auto, cover; background-position: center; }
  .what .flow-source .flow-chip { font-size: 14px; padding: 11px; }
}
@media (max-width: 900px) {
  .what-heading { grid-template-columns: 1fr; gap: 28px; }
  .what .flow { display: flex; flex-direction: column; align-items: stretch; max-width: 540px; margin: 44px auto 0; }
  .what .flow-command { height: 260px; }
  .what .flow-relay { height: 210px; }
  .what .flow-screen { height: auto; aspect-ratio: 16 / 10; min-height: 190px; }
  .what .flow-track { width: 1px; height: 40px; margin: 22px auto; }
  .what .flow-track::after { right: -2px; bottom: 0; top: auto; transform: rotate(135deg); }
  .what .flow-pulse { top: 0; left: 50%; margin: -3px 0 0 -3px; }
  .what .flow-mark { width: 108px; height: 108px; }
  .what .flow-hud { width: 64px; height: 64px; }
  .what .flow-caption { margin-top: 16px; text-align: center; }
  .what .flow-mid .flow-caption { text-align: center; }
  .what .flow-mid .flow-label { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .what .flow-mark { filter: brightness(1.08); }
}

.what .flow-hud:not(.show) .leds { animation: none; }
@media (prefers-reduced-motion: reduce) { .what .flow-hud .leds { animation: none !important; opacity: 1; } }

.what .flow:not(.is-visible) .leds { animation-play-state: paused; }

.what .what-key { font-family: var(--font); font-size: 12px; }

/* ---------- SHOWCASE · shared landing typography and alignment ---------- */
.showcase .showcase-head { gap: 56px; margin-bottom: 44px; }
.showcase .showcase-head .eyebrow { justify-content: flex-start; margin: 0 0 24px; }
.showcase .scene-title { margin: 0; font-size: clamp(40px, 4.5vw, 64px); line-height: 1.06; letter-spacing: -.045em; }
.showcase .showcase-sub { font-size: 16px; line-height: 1.7; color: #a1a1a9; }
.showcase .stage { padding: 12px 28px 22px; border-radius: 20px; border-color: #ffffff18; background: linear-gradient(145deg,#0c0d10,#050506 70%); }
.showcase [hidden] { display: none !important; }
.showcase .modes { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin: 0 0 34px; border: 0; border-bottom: 1px solid #ffffff14; border-radius: 0; overflow: visible; }
.showcase .modes button { position: relative; grid-template-columns: 22px minmax(0,1fr); gap: 10px; padding: 22px 16px; border: 0; border-radius: 0; font-family: var(--font); color: #8e8e99; background: transparent; box-shadow: none; }
.showcase .modes button::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; background: #e7eaf0; opacity: 0; transition: opacity .2s; }
.showcase .modes button[aria-selected="true"] { color: #f5f5f7; background: linear-gradient(180deg,transparent,#ffffff03); box-shadow: none; }
.showcase .modes button[aria-selected="true"]::after { opacity: 1; }
.showcase .modes button:hover { color: #e5e5ec; background: #ffffff03; }
.showcase .mode-n { font: 500 11px/20px var(--font); letter-spacing: 0; }
.showcase .mode-t b { font: 500 16px/20px var(--font); letter-spacing: -.02em; }
.showcase .mode-t small { margin-top: 7px; font: 400 12px/1.5 var(--font); color: #9696a1; }
.showcase .demo { max-width: none; }
.showcase .demo-steps, .showcase .demo-visuals { grid-template-columns: minmax(0,1fr) 64px 180px 64px minmax(0,1.4fr); }
.showcase .demo-steps { padding-bottom: 24px; }
.showcase .demo-step { justify-content: center; font: 500 14px/20px var(--font); letter-spacing: -.01em; text-transform: none; color: #d2d2d8; }
.showcase .demo-step span { font: 500 11px/20px var(--font); color: #777782; }
.showcase .demo-zone, .showcase .demo-bridge { height: 280px; min-height: 0; border-radius: 16px; }
.showcase .demo-zone { padding: 24px; border-color: #ffffff18; background: linear-gradient(150deg,#0c0d10,#050506); gap: 18px; }
.showcase .demo-dir { justify-content: center; position: relative; padding-bottom: 54px; }
.showcase .demo-control { width: 100%; gap: 20px; }
.showcase .dir-target, .showcase .dir-case { margin: 0; font: 400 13px/1.5 var(--font); letter-spacing: 0; text-transform: none; color: #a5a5af; }
.showcase .dir-case { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.showcase .case-id { color: #e2e2e8; font: 500 14px/1.5 var(--font); }
.showcase .case-desc { font: 400 13px/1.5 var(--font); }
.showcase .dir-signal { display: none; }
.showcase .dir-trigger { width: 100%; padding: 14px 16px; border-radius: 9px; border-color: #ffffff26; background: #111215; font: 500 15px/1.4 var(--font); letter-spacing: -.015em; text-transform: none; text-align: left; color: #e5e5ec; cursor: pointer; }
.showcase .dir-trigger:hover { border-color: #ffffff55; }
.showcase .dir-trigger.on { color: #f2d483; border-color: #e8c57160; background: #191609; }
.showcase .demo-status { position: absolute; left: 24px; right: 24px; bottom: 22px; min-height: 18px; font: 400 12px/1.5 var(--font); letter-spacing: 0; text-transform: none; color: #a5a5af; }
.showcase .demo-bridge { position: relative; display: block; border: 0; background: none; padding: 0; }
.showcase .demo-mark-wrap { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 104px; height: 104px; }
.showcase .demo-mark-wrap::before, .showcase .demo-mark-wrap::after { display: none; }
.showcase .demo-mark { width: 104px; height: 104px; opacity: .2; filter: brightness(.6); transition: opacity .45s,filter .45s; }
.showcase .demo-bridge.lit .demo-mark { opacity: 1; filter: brightness(1.08) drop-shadow(0 0 17px #d5e7ff28); }
.showcase .demo-relay-status { position: absolute; left: 0; right: 0; top: calc(50% + 76px); justify-content: center; font: 400 12px/1.4 var(--font); letter-spacing: 0; text-transform: none; color: #a5a5af; }
.showcase .demo-relay-status i { width: 4px; height: 4px; background: #96a394; box-shadow: none; }
.showcase .seg { position: relative; height: 1px; margin: 0 10px; overflow: visible; background: linear-gradient(90deg,#ffffff12,#ffffff45); }
.showcase .seg::after { content: ''; position: absolute; right: 0; top: -2px; width: 5px; height: 5px; border-top: 1px solid #a4aab6; border-right: 1px solid #a4aab6; transform: rotate(45deg); }
.showcase .seg i { background: #dce8fa; }
.showcase .demo-screen { display: flex; flex-direction: column; height: 100%; padding: 0; border: 0; border-radius: 0; background: none; }
.showcase .demo-screen-top { padding: 0 0 16px; color: #a5a5af; font: 400 12px/1.4 var(--font); letter-spacing: 0; text-transform: none; }
.showcase .demo-hud { flex: 1; min-height: 0; height: auto; }
.showcase .demo-hud .hud-fit { height: 100%; }
.showcase .stage-foot { margin-top: 28px; padding-top: 20px; border-color: #ffffff12; }
.showcase .stage-hint { color: #93939f; font: 400 12px/1.5 var(--font); letter-spacing: 0; text-transform: none; }
.showcase .stage-mode { color: #c5c5cd; }
.showcase .demo-fallback-row { flex-wrap: wrap; font: 500 14px/1.5 var(--font); text-transform: none; letter-spacing: 0; }
@media (max-width: 1100px) {
  .showcase .demo { display: grid; grid-template-columns: minmax(0,1fr); row-gap: 22px; max-width: 620px; margin: 0 auto; }
  .showcase .demo-steps, .showcase .demo-visuals { display: contents; }
  .showcase .demo-steps .demo-step { grid-column: 1; justify-content: center; }
  .showcase .demo-step:nth-child(1) { grid-row: 1; }
  .showcase .demo-step:nth-child(2) { grid-row: 3; }
  .showcase .demo-step:nth-child(3) { grid-row: 5; }
  .showcase .demo-dir { grid-row: 2; }
  .showcase .demo-bridge { grid-row: 4; width: 100%; height: 250px; margin: 0; }
  .showcase .demo-driver { grid-row: 6; height: 300px; }
  .showcase .demo-zone { grid-column: 1; }
  .showcase .seg { display: none; }
  .showcase .demo-vline { position: absolute; bottom: 0; left: 50%; width: 1px; height: 24px; }
  .showcase .demo-relay-status { top: calc(50% + 68px); }
}
@media (max-width: 600px) {
  .showcase .showcase-head { gap: 24px; margin-bottom: 32px; }
  .showcase .stage { padding: 6px 16px 20px; border-radius: 16px; }
  .showcase .modes { margin-bottom: 28px; }
  .showcase .modes button { display: block; padding: 18px 6px; text-align: center; }
  .showcase .modes button::after { left: 6px; right: 6px; }
  .showcase .mode-n, .showcase .mode-t small { display: none; }
  .showcase .mode-t b { font-size: 14px; }
  .showcase .demo-zone { padding: 20px 16px; }
  .showcase .demo-dir { padding-bottom: 54px; height: 250px; }
  .showcase .demo-status { left: 16px; right: 16px; }
  .showcase .demo-screen-top { font-size: 11px; gap: 8px; }
  .showcase .stage-foot { gap: 8px; }
}

/* Five scenarios share the same baseline; smaller screens scroll the tab strip. */
.showcase .modes { grid-template-columns: repeat(5,minmax(0,1fr)); }
.showcase .dir-message { margin: 0; color: #ededf2; font: 500 19px/1.4 var(--font); letter-spacing: -.025em; }
@media (max-width: 1000px) {
  .showcase .modes { grid-template-columns: repeat(5,minmax(156px,1fr)); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #ffffff26 transparent; }
}
@media (max-width: 600px) {
  .showcase .modes { grid-template-columns: repeat(5,minmax(112px,1fr)); }
  .showcase .dir-message { font-size: 17px; }
}

/* Source: open typography, a human author and one restrained action. */
.showcase .demo-dir {
  padding: 0 12px; border: 0; border-radius: 0; background: none;
  justify-content: flex-start; height: 280px;
}
.showcase .demo-control {
  display: grid; grid-template-rows: 90px 100px 24px 42px;
  align-items: center; justify-items: center; gap: 0; height: 256px; text-align: center;
}
.showcase .source-author { align-self: end; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; color: #9999a4; font: 400 12px/1.4 var(--font); }
.showcase .source-author svg { width: 22px; height: 22px; color: #c4c8d1; flex: none; }
.showcase .source-title { margin: 0; color: #f0f0f4; font: 500 clamp(26px,2.3vw,34px)/1.1 var(--font); letter-spacing: -.045em; }
.showcase .source-title-flags { color: #f2d483; }
.showcase .source-context { margin: 0; color: #9696a1; font: 400 12px/1.5 var(--font); }
.showcase .dir-trigger {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 22px;
  width: auto; max-width: 100%; min-height: 42px; padding: 10px 16px;
  border: 1px solid #ffffff30; border-radius: 24px; background: #ffffff06;
  color: #e5e5ec; font: 500 13px/20px var(--font); letter-spacing: -.01em;
  transition: background .2s,border-color .2s;
}
.showcase .dir-trigger svg { width: 18px; height: 18px; flex: none; }
.showcase .dir-trigger:hover { background: #ffffff0e; border-color: #ffffff60; }
.showcase .dir-trigger.on { color: #f5f5f7; background: #ffffff0a; border-color: #ffffff40; }
.showcase .dir-trigger:focus-visible { outline: 2px solid #e5e5ec; outline-offset: 5px; }
.showcase .demo-status { left: 12px; right: 12px; bottom: 0; font-size: 11px; text-align: center; }
@media (max-width: 1100px) {
  .showcase .demo-dir { width: 100%; max-width: 360px; justify-self: center; }
  .showcase .source-title { font-size: 34px; }
}
@media (max-width: 600px) {
  .showcase .demo-dir { padding: 0 4px; }
  .showcase .demo-status { left: 4px; right: 4px; }
  .showcase .source-title { font-size: 30px; }
}

/* Each cockpit owns its image and crop, independently of the other scenarios. */
.showcase .demo[data-scenario="flags"] { --cockpit-image: url('/img/showcase/flags.jpg'); --cockpit-position: center; }
.showcase .demo[data-scenario="incidents"] { --cockpit-image: url('/img/showcase/incidents.jpg'); --cockpit-position: center; }
.showcase .demo[data-scenario="radio"] { --cockpit-image: url('/img/showcase/radio.jpg'); --cockpit-position: center; }
.showcase .demo[data-scenario="messages"] { --cockpit-image: url('/img/showcase/messages.jpg'); --cockpit-position: center; }
.showcase .demo[data-scenario="limits"] { --cockpit-image: url('/img/showcase/limits.jpg'); --cockpit-position: center; }
.showcase .demo-driver {
  background-image: linear-gradient(180deg,rgba(0,0,0,.62),rgba(0,0,0,.24) 45%,rgba(0,0,0,.48)),var(--cockpit-image);
  background-size: cover; background-position: var(--cockpit-position,center);
  background-repeat: no-repeat; overflow: hidden;
}
.showcase .demo-screen { position: relative; }
.showcase .demo-screen-top { position: absolute; inset: 0 0 auto; padding: 0; color: #e0e0e5; text-shadow: 0 1px 4px #000; pointer-events: none; z-index: 1; }

/* Track signals and incident journey: complete sections, no scroll staging. */
.driver-wrap, .incident-wrap { height: auto; }
.driver-wrap .sticky-stage, .incident-wrap .sticky-stage {
  position: relative; top: auto; height: auto; min-height: 0;
  padding: clamp(48px,7vh,80px) max(24px,calc((100% - 1200px)/2)); overflow: visible;
}
.driver-wrap .scene-title, .incident-wrap .scene-title {
  margin: 0 0 36px; font-size: clamp(32px,4vw,54px); line-height: 1.08; letter-spacing: -.045em;
}

.driver-wrap .driver-slot, .incident-wrap .incident-slot {
  width: 100%; height: auto; margin: 0; transform: none; filter: none; opacity: 1; will-change: auto;
  display: grid; gap: 24px;
}
.driver-wrap .driver-slot { grid-template-columns: repeat(5,minmax(0,1fr)); }
.driver-wrap .driver-beat, .incident-wrap .incident-step {
  position: relative; inset: auto; opacity: 1; transform: none; will-change: auto;
  min-width: 0; margin: 0; display: flex; flex-direction: column;
}
.driver-wrap .driver-beat { gap: 20px; justify-content: flex-start; }
.driver-wrap .driver-beat .hud-fit { height: clamp(120px,15vw,184px); }
.driver-wrap .signal-caption { margin: 0; color: #aaaab4; font: 400 13px/1.5 var(--font); }
.driver-wrap .reveal-line { opacity: 1; margin-top: 32px; font: 400 13px/1.5 var(--font); letter-spacing: 0; text-transform: none; }
.driver-wrap .driver-side, .driver-wrap .driver-ambient,
.incident-wrap .incident-meta, .incident-wrap .incident-ambient { display: none; }
.incident-wrap .incident-slot { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 48px; }
.incident-wrap .incident-step { align-items: stretch; gap: 20px; padding-top: 20px; border-top: 1px solid #ffffff20; }
.incident-wrap .incident-step-title { margin: 0; display: flex; align-items: baseline; gap: 14px; text-align: left; color: #e5e5ec; font: 500 16px/1.4 var(--font); }
.incident-wrap .incident-step-title span { color: #868691; font-size: 12px; }
.incident-wrap .incident-step .hud-fit { height: 72px; }
@media (max-width: 700px) {
  .driver-wrap .sticky-stage, .incident-wrap .sticky-stage { padding: 40px 20px; }
  .driver-wrap .scene-title, .incident-wrap .scene-title { margin-bottom: 28px; }
  .driver-wrap .driver-slot { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px 14px; }
  .driver-wrap .driver-beat { gap: 10px; }
  .driver-wrap .driver-beat .hud-fit { height: clamp(75px,23vw,130px); }
  .driver-wrap .signal-caption { font-size: 11px; }
  .incident-wrap .incident-slot { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .incident-wrap .incident-step { padding-top: 12px; gap: 10px; }
  .incident-wrap .incident-step .hud-fit { height: 54px; }
  .incident-wrap .incident-step-title { font-size: 14px; }
}

/* All track signals in a continuous carousel, independent of page scrolling. */
.driver-wrap .driver-slot { display: block; overflow: hidden; }
.driver-wrap .flag-carousel-track { display: flex; width: max-content; animation: flags-travel 66s linear infinite; }
.driver-wrap .flag-carousel-group { display: flex; gap: 28px; padding-right: 28px; }
.driver-wrap .driver-beat { flex: 0 0 184px; width: 184px; gap: 18px; }
.driver-wrap .driver-beat .hud-fit { height: 184px; }
.driver-wrap .signal-caption { max-width: 184px; font: 400 12px/1.5 var(--font); }
.driver-wrap .driver-slot:hover .flag-carousel-track,
.driver-wrap .driver-slot.is-paused .flag-carousel-track { animation-play-state: paused; }
.flag-carousel-pause { margin-top: 24px; padding: 9px 17px; color: #b7b7c1; border: 1px solid #ffffff26; border-radius: 24px; background: transparent; font: 400 12px/1.4 var(--font); cursor: pointer; }
.flag-carousel-pause:hover { color: #fff; border-color: #ffffff55; }
.flag-carousel-pause:focus-visible { outline: 2px solid #ddd; outline-offset: 4px; }
.driver-wrap .reveal-line { margin-top: 18px; }
.rc-flag[data-kind=vsc] .leds { animation: flag-blink .8s steps(1,end) infinite; }
@keyframes flags-travel { to { transform: translateX(-50%); } }
@media (max-width: 700px) {
  .driver-wrap .driver-beat { flex-basis: 140px; width: 140px; }
  .driver-wrap .driver-beat .hud-fit { height: 140px; }
  .driver-wrap .flag-carousel-group { gap: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .driver-wrap .flag-carousel-track { width: 100%; animation: none; }
  .driver-wrap .flag-carousel-group { width: 100%; flex-wrap: wrap; justify-content: center; padding: 0; }
  .driver-wrap .flag-carousel-group[aria-hidden="true"], .flag-carousel-pause { display: none; }
  .driver-wrap .rc-flag .leds { animation: none; opacity: 1; }
}

/* Double yellow mirrors the HUD: square matrix, alternating diagonal halves. */
.rc-flag[data-kind=double_yellow] .leds { animation: none; opacity: 1; }
.rc-flag[data-kind=double_yellow] .yellow-half-a { animation: flag-blink .8s steps(1,end) infinite; }
.rc-flag[data-kind=double_yellow] .yellow-half-b { animation: flag-blink .8s steps(1,end) -.4s infinite; }
@media (prefers-reduced-motion: reduce) {
  .rc-flag[data-kind=double_yellow] .yellow-half-a { animation: none; opacity: 1; }
  .rc-flag[data-kind=double_yellow] .yellow-half-b { animation: none; opacity: 0; }
}

/* Soft carousel edges. */
.driver-wrap .driver-slot {
  -webkit-mask-image: linear-gradient(to right,transparent,#000 6%,#000 94%,transparent);
  mask-image: linear-gradient(to right,transparent,#000 6%,#000 94%,transparent);
}
@media (prefers-reduced-motion: reduce) {
  .driver-wrap .driver-slot { -webkit-mask-image: none; mask-image: none; }
}

/* Incident workflow: editorial introduction alongside a continuous timeline. */
.incident-wrap { background: #050506; border-top: 1px solid #ffffff0c; }
.incident-wrap .sticky-stage { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.65fr); gap: 64px; align-items: center; text-align: left; }
.incident-intro { min-width: 0; }
.incident-kicker { margin: 0 0 24px; color: #93939e; font: 400 12px/1.5 var(--font); }
.incident-wrap .scene-title { margin: 0; font-size: clamp(36px,4.3vw,60px); line-height: 1.04; letter-spacing: -.05em; text-wrap: balance; }
.incident-summary { margin: 24px 0 0; max-width: 310px; color: #a2a2ad; font: 400 15px/1.7 var(--font); }
.incident-example { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid #ffffff16; color: #c6c6cf; font: 400 12px/1.8 var(--font); }
.incident-example span { display: block; margin-bottom: 5px; color: #777783; }
.incident-wrap .incident-slot { grid-template-columns: minmax(0,1fr); gap: 0; }
.incident-wrap .incident-step { position: relative; display: grid; grid-template-columns: minmax(145px,.65fr) minmax(0,1.6fr); align-items: center; gap: 20px; min-height: 102px; padding: 16px 0; border: 0; }
.incident-wrap .incident-step:not(:last-child)::before { content: ''; position: absolute; left: 13px; top: calc(50% + 18px); bottom: calc(-50% + 18px); width: 1px; background: #ffffff1c; }
.incident-wrap .incident-step-title { position: relative; display: flex; align-items: center; gap: 14px; font: 500 14px/1.4 var(--font); }
.incident-wrap .incident-step-title span { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border: 1px solid #ffffff28; border-radius: 50%; color: #b8bdc9; font: 500 10px/1 var(--font); }
.incident-wrap .incident-step:last-child .incident-step-title span { color: #f2f2f7; border-color: #ffffff65; background: #ffffff0b; }
.incident-wrap .incident-step .hud-fit { height: 68px; }
@media (max-width: 1000px) {
  .incident-wrap .sticky-stage { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .incident-intro { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 40px; }
  .incident-kicker { grid-column: 1 / -1; margin-bottom: 16px; }
  .incident-summary { margin: 0; }
  .incident-example { margin-top: 16px; padding-top: 12px; }
  .incident-wrap .incident-step { min-height: 86px; padding: 10px 0; }
}
@media (max-width: 600px) {
  .incident-intro { display: block; }
  .incident-wrap .scene-title { max-width: 330px; margin: 0; font-size: 38px; }
  .incident-summary { margin-top: 16px; font-size: 13px; }
  .incident-example { margin-top: 16px; font-size: 11px; }
  .incident-wrap .incident-step { grid-template-columns: minmax(0,1fr); gap: 8px; padding: 8px 0; }
  .incident-wrap .incident-step-title { font-size: 13px; }
  .incident-wrap .incident-step .hud-fit { width: calc(100% - 42px); margin-left: 42px; height: 42px; }
  .incident-wrap .incident-step:not(:last-child)::before { top: 40px; bottom: -4px; }
}

/* Incident cards start on the timeline edge. Web replica isotope is 10% smaller. */
.incident-wrap .incident-step .hud-fit { justify-content: flex-start; }
.incident-wrap .rc-an .clogo {
  left: 4.7px;
  top: 8.7px;
  width: 48.6px;
  height: 48.6px;
}


/* Race direction workspace — faithful static product mock. */
.director-wrap { height: auto; padding: clamp(90px,12vw,150px) 24px; background: #000; }
.director-inner { width: min(1200px,100%); margin: 0 auto; }
.director-copy { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(280px,.7fr); align-items: end; gap: 70px; margin-bottom: 56px; }
.director-copy .eyebrow { justify-content: flex-start; margin: 0 0 22px; }
.director-copy .scene-title { margin: 0; font-size: clamp(48px,6.2vw,82px); line-height: .98; letter-spacing: -.055em; }
.director-copy > p { max-width: 440px; margin: 0 0 6px; color: #9b9ba5; font: 400 16px/1.7 var(--font); }
.rc-console-mock { overflow: hidden; color: #dfe5ed; border: 1px solid #ffffff1c; border-radius: 20px; background: #07090d; box-shadow: 0 38px 100px #000, inset 0 1px #ffffff08; text-align: left; font-family: var(--font); }
.rcm-topbar { height: 62px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 0 22px; border-bottom: 1px solid #ffffff12; background: #0b0d11; }
.rcm-brand { display: flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 600; }
.rcm-brand img { width: 25px; height: 25px; }
.rcm-session { display: grid; grid-template-columns: 7px auto; align-items: center; column-gap: 9px; color: #e8eaf0; font-size: 12px; }
.rcm-session i { grid-row: 1 / 3; width: 6px; height: 6px; border-radius: 50%; background: #51d58a; box-shadow: 0 0 9px #51d58a66; }
.rcm-session small { color: #777e89; font-size: 9px; }
.rcm-live { justify-self: end; padding: 5px 10px; color: #83e6ad; border: 1px solid #52c88745; border-radius: 20px; background: #2b96691a; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.rcm-shell { display: grid; grid-template-columns: 56px minmax(0,1fr); }
.rcm-nav { padding: 14px 10px; border-right: 1px solid #ffffff0e; background: #080a0e; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.rcm-nav span { width: 34px; height: 34px; display: grid; place-items: center; color: #656c77; border: 1px solid transparent; border-radius: 8px; font-size: 8px; font-weight: 700; letter-spacing: .04em; }
.rcm-nav span.active { color: #f0f2f6; border-color: #ffffff1d; background: #ffffff0a; }
.rcm-workspace { min-width: 0; padding: 14px; }
.rcm-statusbar { display: flex; align-items: center; gap: 20px; min-height: 34px; padding: 0 12px; margin-bottom: 10px; color: #7f8793; border: 1px solid #ffffff0e; border-left: 2px solid #e10600; border-radius: 7px; background: #ffffff05; font-size: 9px; }
.rcm-statusbar span:first-child { color: #b9c4cf; }
.rcm-statusbar i { display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: #51d58a; }
.rcm-statusbar b { margin-left: auto; color: #828b97; font-size: 9px; font-weight: 500; }
.rcm-main { display: grid; grid-template-columns: minmax(0,.92fr) minmax(360px,1.2fr); gap: 10px; }
.rcm-controls { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.rcm-panel { min-width: 0; border: 1px solid #ffffff12; border-radius: 10px; background: #0b0e13; }
.rcm-panel > header { min-height: 51px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 14px; border-bottom: 1px solid #ffffff0e; }
.rcm-panel header small { color: #68717d; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.rcm-panel h3 { margin: 3px 0 0; color: #e9ebf0; font-size: 13px; font-weight: 600; }
.rcm-panel header > span { color: #818a96; font-size: 9px; }
.rcm-flag-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 6px; padding: 12px; }
.rcm-flag-grid span { min-width: 0; height: 35px; display: grid; place-items: center; padding: 0 4px; overflow: hidden; color: #aab0b9; border: 1px solid #ffffff14; border-radius: 6px; background: #ffffff05; font-size: 8px; white-space: nowrap; }
.rcm-flag-grid .green { color: #84dca7; background: #2d9c5b16; }
.rcm-flag-grid .yellow { color: #eed36b; background: #c2982619; }
.rcm-flag-grid .orange { color: #e4a869; background: #bf722018; }
.rcm-flag-grid .red { color: #ec858a; background: #b92f3b1b; }
.rcm-flag-grid .blue { color: #75bce9; background: #247cae1c; }
.rcm-flag-grid .purple { color: #b7a1e4; background: #7255ad1c; }
.rcm-flag-grid span.active { border-color: #efd56d99; box-shadow: 0 0 0 1px #efd56d20,0 0 16px #d3a92b13; }
.rcm-track-state { display: flex; align-items: center; gap: 7px; min-height: 34px; margin: 0; padding: 0 12px; color: #a9afb9; border-top: 1px solid #ffffff0e; font-size: 9px; }
.rcm-track-state i { width: 6px; height: 6px; border-radius: 50%; background: #e6c94f; box-shadow: 0 0 8px #e6c94f55; }
.rcm-track-state b { margin-left: auto; color: #e5cc62; font-size: 8px; font-weight: 600; text-transform: uppercase; }
.rcm-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.rcm-actions > span { position: relative; min-height: 59px; padding: 11px 12px; color: #d5d9e0; border: 1px solid #ffffff12; border-radius: 8px; background: #ffffff04; }
.rcm-actions small { display: block; margin-bottom: 7px; color: #636b76; font-size: 8px; }
.rcm-actions b { font-size: 11px; font-weight: 600; }
.rcm-actions i,.rcm-actions em { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: #737b87; font-size: 12px; font-style: normal; }
.rcm-actions em { display: grid; place-items: center; width: 19px; height: 19px; color: #e3b7ba; border-radius: 50%; background: #b7343e28; font-size: 8px; }
.rcm-map { display: flex; flex-direction: column; }
.rcm-map-stage { position: relative; flex: 1; min-height: 245px; overflow: hidden; background: radial-gradient(circle at 55% 45%,#17202b 0,transparent 53%),linear-gradient(#090c11,#07090d); }
.rcm-map-stage::before { content: ''; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(#ffffff09 1px,transparent 1px),linear-gradient(90deg,#ffffff09 1px,transparent 1px); background-size: 28px 28px; }
.rcm-map-stage svg { position: absolute; inset: 10px 18px 12px; width: calc(100% - 36px); height: calc(100% - 22px); }
.rcm-map-stage .track-shadow { fill: none; stroke: #020305; stroke-width: 19; stroke-linecap: round; stroke-linejoin: round; }
.rcm-map-stage .track-line { fill: none; stroke: #536171; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.rcm-map-stage .car circle { fill: #aab4c0; stroke: #10151c; stroke-width: 3; }
.rcm-map-stage .car text { fill: #081018; font-size: 7px; font-weight: 800; text-anchor: middle; }
.rcm-map-stage .car.green circle { fill: #5ed18e; }
.rcm-map-stage .car.yellow circle:first-child { fill: #ead156; }
.rcm-map-stage .car .halo { fill: none; stroke: #ead156; stroke-width: 2; opacity: .38; }
.rcm-driver-card { position: absolute; right: 14px; bottom: 13px; min-width: 152px; padding: 9px 10px; border: 1px solid #e0c7553d; border-radius: 7px; background: #080a0eea; box-shadow: 0 8px 25px #0008; }
.rcm-driver-card span,.rcm-driver-card small,.rcm-driver-card b { display: block; }
.rcm-driver-card span { color: #e6e9ee; font-size: 10px; font-weight: 600; }
.rcm-driver-card small { margin-top: 3px; color: #737c88; font-size: 8px; }
.rcm-driver-card b { margin-top: 7px; color: #dfc654; font-size: 8px; font-weight: 500; }
.rcm-timeline { margin-top: 10px; border: 1px solid #ffffff12; border-radius: 9px; overflow: hidden; background: #090c10; }
.rcm-timeline header { height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-bottom: 1px solid #ffffff0e; }
.rcm-timeline h3 { margin: 0; color: #d9dde4; font-size: 10px; font-weight: 600; }
.rcm-timeline header span { color: #646c77; font-size: 8px; }
.rcm-timeline > div { min-height: 31px; display: grid; grid-template-columns: 60px 6px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 0 12px; color: #9ca4af; border-bottom: 1px solid #ffffff09; font-size: 8px; }
.rcm-timeline > div:last-child { border-bottom: 0; }
.rcm-timeline time { color: #5e6671; font-variant-numeric: tabular-nums; }
.rcm-timeline > div i { width: 5px; height: 5px; border-radius: 50%; background: #6f7782; }
.rcm-timeline i.yellow { background: #dfc654; }.rcm-timeline i.red { background: #dd6f78; }.rcm-timeline i.green { background: #5bca87; }
.rcm-timeline > div b { color: #7dca9c; font-size: 8px; font-weight: 500; }.rcm-timeline > div b.review { color: #ddc264; }
@media (max-width: 900px) {
  .director-copy { grid-template-columns: 1fr; gap: 25px; }
  .director-copy .scene-title br { display: none; }
  .rcm-main { grid-template-columns: 1fr; }
  .rcm-map-stage { min-height: 300px; }
}
@media (max-width: 600px) {
  .director-wrap { padding: 72px 16px; }
  .director-copy { margin-bottom: 34px; }
  .director-copy .scene-title { font-size: 45px; }
  .director-copy > p { font-size: 14px; }
  .rc-console-mock { border-radius: 14px; }
  .rcm-topbar { grid-template-columns: 1fr auto; padding: 0 14px; }
  .rcm-session { display: none; }
  .rcm-shell { grid-template-columns: 1fr; }
  .rcm-nav { display: none; }
  .rcm-workspace { padding: 9px; }
  .rcm-statusbar { gap: 10px; }
  .rcm-statusbar span:nth-child(3),.rcm-statusbar b { display: none; }
  .rcm-flag-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rcm-map-stage { min-height: 230px; }
  .rcm-timeline > div { grid-template-columns: 6px minmax(0,1fr); padding: 7px 10px; }
  .rcm-timeline time,.rcm-timeline > div b { display: none; }
}
