:root {
  --bg: #0c1213;
  --bg-soft: #121b1c;
  --ink: #f1f0e9;
  --ink-dim: #a5afaa;
  --line: rgba(218, 231, 223, 0.16);
  --line-strong: rgba(218, 231, 223, 0.34);
  --acid: #c8f85a;
  --earth: #df7147;
  --clay: #a94e32;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
::selection { color: var(--bg); background: var(--acid); }

.world { position: relative; min-height: 100vh; background: var(--bg); isolation: isolate; }
.world__canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -5; }
.world__vehicles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
}
.world__grid {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  opacity: .36;
  background-image:
    linear-gradient(rgba(206, 226, 216, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(206, 226, 216, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 82%);
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}
.world__vignette {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 64% 46%, transparent 18%, rgba(5, 9, 9, .16) 66%, rgba(5, 9, 9, .58) 100%),
    linear-gradient(90deg, rgba(6, 10, 10, .66) 0, rgba(6, 10, 10, .1) 42%, transparent 70%);
}
.world__progress {
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: rgba(255,255,255,.08);
}
.world__progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--acid);
}

.topbar {
  position: fixed;
  z-index: 40;
  top: 16px;
  left: 50%;
  width: min(100% - 32px, var(--wrap));
  min-height: 62px;
  padding: 0 12px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(250,248,243,.88);
  box-shadow: 0 16px 44px rgba(0,0,0,.22);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #191712;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.brand em { color: #2e4a54; font-style: normal; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 11px;
  background: #fff;
}
.brand__mark svg { display: block; width: 100%; height: 100%; }
.topnav { display: flex; align-items: center; gap: 26px; }
.topnav button {
  position: relative;
  padding: 10px 0;
  border: 0;
  color: #57534a;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  transition: color .2s ease;
}
.topnav button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 2px;
  background: #2e4a54;
  transition: right .25s ease;
}
.topnav button:hover,
.topnav button.is-active { color: #191712; }
.topnav button.is-active::after { right: 0; }
.topbar__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #2e4a54;
  box-shadow: 0 12px 28px rgba(46,74,84,.28);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.topbar__cta:hover { color: #fff; background: #191712; }

.journey { position: relative; }
.beat { height: 148vh; min-height: 900px; }
.beat:last-child { height: 120vh; }
.beat__copy {
  --copy-opacity: 0;
  --copy-y: 28px;
  position: fixed;
  z-index: 10;
  left: max(24px, calc((100vw - var(--wrap)) / 2));
  top: 50%;
  width: min(540px, 42vw);
  opacity: var(--copy-opacity);
  transform: translate3d(0, calc(-50% + var(--copy-y)), 0);
  pointer-events: none;
  will-change: opacity, transform;
}
.beat__copy.is-interactive { pointer-events: auto; }
.eyebrow {
  margin: 0 0 24px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 12px;
  color: var(--acid);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 14px rgba(200,248,90,.48); }
h1, h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .96;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0,0,0,.45);
}
h1 { font-size: clamp(42px, 5.4vw, 76px); }
h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.02; letter-spacing: -.04em; }
h1 em, h2 em { color: var(--earth); font-style: normal; }
.lead {
  max-width: 520px;
  margin: 24px 0 0;
  color: #c7ceca;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  text-wrap: pretty;
}
.actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  min-height: 54px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button--primary { color: var(--bg); background: var(--acid); }
.button--primary:hover { color: var(--bg); background: #ddff91; }
.button--ghost { color: var(--ink); border-color: var(--line-strong); background: rgba(12,18,19,.18); }
.button--ghost:hover { border-color: rgba(255,255,255,.58); background: rgba(255,255,255,.06); }
.tags { margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tags li {
  min-height: 36px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.facts { margin: 32px 0 0; width: min(500px, 100%); border-top: 1px solid var(--line-strong); }
.facts div { display: grid; grid-template-columns: 112px 1fr; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; font-family: var(--font-mono); font-size: 10px; line-height: 1.45; }
.facts dt { color: var(--ink-dim); letter-spacing: .09em; }
.facts dd { color: var(--ink); }
.final-note {
  margin: 25px 0 0;
  max-width: 470px;
  padding-left: 15px;
  color: var(--ink-dim);
  border-left: 2px solid var(--earth);
  font-size: 11px;
  line-height: 1.6;
}

.route {
  position: fixed;
  z-index: 14;
  top: 50%;
  right: clamp(28px, 3.2vw, 58px);
  width: 148px;
  transform: translateY(-47%);
}
.route__caption { margin: 0 0 20px 54px; color: #929d98; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.route__line { position: absolute; top: 40px; bottom: 16px; left: 28px; width: 1px; background: rgba(218,231,223,.24); overflow: hidden; }
.route__line span { display: block; width: 100%; height: 100%; transform: scaleY(0); transform-origin: top; background: var(--acid); box-shadow: 0 0 10px var(--acid); }
.route__steps { position: relative; display: grid; gap: 22px; }
.route button {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  width: 100%;
  padding: 3px 0;
  color: #84908a;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color .2s ease;
}
.route button b {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}
.route button b::before {
  content: "";
  position: absolute;
  left: 24px;
  width: 9px;
  height: 9px;
  border: 1px solid #69736e;
  background: var(--bg);
  transform: rotate(45deg);
  opacity: 0;
}
.route button span { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .02em; }
.route button:hover, .route button.is-active { color: var(--ink); }
.route button.is-active span { font-weight: 700; }
.route button.is-active b { color: var(--acid); }
.route button.is-active b::before { opacity: 1; border-color: var(--acid); box-shadow: 0 0 9px rgba(200,248,90,.45); }
.route button.is-active b { text-indent: -9999px; }

.telemetry {
  position: fixed;
  z-index: 12;
  right: clamp(24px, 3.4vw, 58px);
  bottom: 30px;
  display: flex;
  gap: 26px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.telemetry div { min-width: 70px; display: grid; gap: 4px; }
.telemetry span, .telemetry b { font-family: var(--font-mono); font-size: 8px; line-height: 1.2; }
.telemetry span { color: #65706b; letter-spacing: .12em; }
.telemetry b { color: #aeb7b3; font-weight: 500; }

.scroll-hint {
  position: fixed;
  z-index: 12;
  left: 50%;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #87918c;
  transform: translateX(-50%);
  transition: opacity .25s ease;
}
.scroll-hint span { font-family: var(--font-mono); font-size: 8px; letter-spacing: .14em; }
.scroll-hint i { position: relative; display: block; width: 18px; height: 27px; border: 1px solid #56605b; border-radius: 10px; }
.scroll-hint i::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 8px;
  width: 2px;
  height: 5px;
  border-radius: 2px;
  background: var(--acid);
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 25% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(9px); } }
.prototype-note {
  position: fixed;
  z-index: 12;
  left: clamp(24px, 3.4vw, 58px);
  bottom: 31px;
  margin: 0;
  color: #59635e;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .08em;
}
.prototype-note a { transition: color .2s ease; }
.prototype-note a:hover { color: #aab6b0; }
.noscript {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 100;
  padding: 16px;
  color: var(--bg);
  background: var(--acid);
  font-size: 14px;
}

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

@media (max-width: 1100px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topnav { display: none; }
  .beat__copy { width: min(600px, 55vw); }
  .route { right: 18px; }
  .telemetry { display: none; }
}

@media (max-width: 720px) {
  .world__grid { background-size: 34px 34px; opacity: .25; }
  .world__vignette {
    background:
      linear-gradient(to bottom, transparent 16%, rgba(6,10,10,.05) 42%, rgba(6,10,10,.88) 67%, rgba(6,10,10,.98) 100%),
      radial-gradient(circle at 50% 31%, transparent, rgba(5,9,9,.32) 74%);
  }
  .topbar { top: 16px; width: calc(100% - 32px); min-height: 62px; height: auto; padding: 0 8px 0 14px; gap: 14px; }
  .brand { gap: 8px; font-size: 15px; }
  .brand__mark { width: 30px; height: 30px; border-radius: 9px; }
  .topbar__cta { min-height: 40px; padding: 0 16px; font-size: 12px; }
  .beat { height: 128vh; min-height: 740px; }
  .beat:last-child { height: 112vh; }
  .beat__copy {
    left: 20px;
    right: 20px;
    top: auto;
    bottom: calc(54px + env(safe-area-inset-bottom));
    width: auto;
    transform: translate3d(0, var(--copy-y), 0);
  }
  .eyebrow { margin-bottom: 18px; padding: 6px 11px 6px 9px; font-size: 9px; }
  .eyebrow span { width: 7px; height: 7px; }
  h1 { font-size: 42px; line-height: .96; }
  h2 { font-size: 32px; line-height: 1.02; }
  .lead { margin-top: 18px; max-width: 620px; font-size: 15px; line-height: 1.55; }
  .actions { margin-top: 24px; gap: 10px; }
  .button { min-height: 50px; padding: 0 20px; gap: 14px; font-size: 14px; }
  .tags { margin-top: 14px; }
  .tags li { min-height: 30px; padding: 0 10px; font-size: 9px; }
  .facts { margin-top: 18px; }
  .facts div { grid-template-columns: 88px 1fr; padding: 9px 0; }
  .facts dt, .facts dd { font-size: 9px; }
  .final-note { display: none; }
  .route { top: 94px; right: auto; left: 20px; width: calc(100% - 40px); transform: none; }
  .route__caption, .route button span { display: none; }
  .route__line { top: 8px; left: 9px; right: 9px; bottom: auto; width: auto; height: 1px; }
  .route__line span { transform: scaleX(0); transform-origin: left; }
  .route__steps { display: flex; justify-content: space-between; gap: 0; }
  .route button { display: block; width: 20px; height: 20px; padding: 0; }
  .route button b { width: 20px; height: 20px; font-size: 0; }
  .route button b::before { left: 6px; opacity: 1; width: 6px; height: 6px; background: var(--bg); }
  .route button.is-active b { text-indent: 0; }
  .scroll-hint { left: auto; right: 20px; bottom: calc(18px + env(safe-area-inset-bottom)); transform: none; }
  .scroll-hint span { display: none; }
  .prototype-note { left: 20px; bottom: calc(22px + env(safe-area-inset-bottom)); font-size: 7px; }
}

@media (max-width: 390px) {
  .button--ghost { display: none; }
  h1 { font-size: 40px; }
  h2 { font-size: 31px; }
}

@media (max-width: 720px) and (max-height: 700px) {
  .beat__copy { bottom: calc(46px + env(safe-area-inset-bottom)); }
  .eyebrow { margin-bottom: 12px; }
  .lead { margin-top: 14px; font-size: 14px; }
  .actions { margin-top: 18px; }
  .button { min-height: 46px; }
  .tags { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .world__grid { display: none; }
}
