/* ============================================================
   COMPTECH VX1 — cinematic scroll site
   Brand system: Comptech Design System v1.0
   #111111 Night Black · #23262B Graphite · #ECECEC Cool Grey
   #FF5A1F Energy Orange (single accent) · 45° chamfers
   Archivo (Expanded) / Inter / IBM Plex Mono
   ============================================================ */

/* Fonts and design tokens (colours, typefaces, chamfer, spacing) now live in
   css/tokens.css, which every page loads BEFORE this file.
   To re-brand the site, edit css/tokens.css — not this file. */


* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ct-black);
  color: var(--ct-white);
  font-family: var(--font-body);
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--font-mono); }

/* ---------- ambient sky (graded via JS) ---------- */
.sky {
  position: fixed; inset: 0; z-index: -2;
  background: var(--ct-black);
}

/* ---------- V7 ghost motif ---------- */
.v7-ghost {
  position: fixed; top: -6vh; right: -8vw; width: 46vw; height: 46vw;
  color: var(--ct-white); opacity: 0.05; z-index: 0; pointer-events: none;
  transition: opacity 0.6s;
}
body[data-chapter="factory"] .v7-ghost { opacity: 0.07; color: var(--ct-red); }

/* ---------- masthead ---------- */
.masthead {
  position: fixed; top: 28px; left: 34px; z-index: 60;
  display: flex; align-items: baseline; gap: 10px;
  mix-blend-mode: difference;
}
.masthead-lockup { height: 40px; display: block; }
.masthead-tag { font-size: 10px; letter-spacing: 0.34em; color: var(--ct-white); opacity: 0.75; }

/* ============================================================
   HUD — instrument cluster, right edge
   ============================================================ */
.hud {
  position: fixed; top: 0; right: 0; height: 100vh; width: var(--hud-w);
  z-index: 50; display: flex; align-items: center; justify-content: center;
  pointer-events: none; transition: opacity 0.5s, transform 0.5s;
}
body.at-footer .hud { opacity: 0; transform: translateX(30px); }
.hud-inner {
  width: 100%; padding: 22px 14px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 22px;
  border-left: 1px solid var(--line);
  background: linear-gradient(270deg, rgba(17,17,17,0.55), rgba(17,17,17,0));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 calc(100% - var(--chamfer)), 0 var(--chamfer));
}
.hud-brand { font-size: 11px; letter-spacing: 0.4em; color: var(--ct-red); font-weight: 600; }

.hud-zone { text-align: right; }
.hud-zone-label {
  font-size: 9px; letter-spacing: 0.26em; color: var(--ct-white);
  writing-mode: vertical-rl; text-orientation: mixed;
  max-height: 150px; opacity: 0.9;
}
.hud-rule { width: 3px; height: 34px; background: var(--ct-red); margin: 10px 0 0 auto; }

.hud-odo { text-align: right; }
.hud-odo-value { font-size: 17px; font-weight: 600; letter-spacing: 0.04em; }
.hud-odo-unit { font-size: 9px; letter-spacing: 0.3em; opacity: 0.6; }

.hud-speed { font-size: 9px; opacity: 0.65; letter-spacing: 0.12em; }

.hud-batt { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.hud-batt-bolt { display: flex; align-items: center; gap: 5px; color: var(--ct-red); font-size: 9px; }
.hud-batt-bolt .mono { color: var(--ct-white); letter-spacing: 0.08em; }
.hud-batt-cells { display: flex; flex-direction: column-reverse; gap: 3px; }
.hud-batt-cells i {
  display: block; width: 22px; height: 7px;
  background: var(--ct-white); opacity: 0.9;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 4px 100%, 0 calc(100% - 4px));
  transition: opacity 0.3s, background 0.3s;
}
.hud-batt-cells i.off { opacity: 0.12; }
.hud-batt-cells i.low { background: var(--ct-red); }

.hud-ticks { width: 22px; height: 90px; background:
  repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 9px);
}

/* factory-mode HUD */
.hud-station { display: none; text-align: right; }
.hud-station-label { font-size: 8px; letter-spacing: 0.3em; opacity: 0.6; }
.hud-station-count { font-size: 16px; font-weight: 600; color: var(--ct-red); }
.hud-station-name { font-size: 9px; letter-spacing: 0.2em; margin-top: 2px; }
.hud-build-stat { font-size: 9px; margin-top: 8px; }
.hud-build-stat span { font-size: 12px; font-weight: 600; display: block; }
.hud-build-stat em { font-style: normal; font-size: 7px; opacity: 0.55; letter-spacing: 0.14em; }

body[data-chapter="factory"] .hud-batt,
body[data-chapter="factory"] .hud-speed,
body[data-chapter="factory"] .hud-ticks { display: none; }
body[data-chapter="factory"] .hud-station { display: block; }
body[data-chapter="factory"] .hud-zone-label { color: var(--ct-red); }

/* ============================================================
   typography
   ============================================================ */
.display {
  font-family: var(--font-head);
  font-stretch: 122%;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.01em;
  font-size: clamp(38px, 6.2vw, 92px);
  text-transform: none;
}
.display b { color: var(--ct-red); font-weight: 700; }
.display.xl { font-size: clamp(44px, 7.6vw, 118px); }

.kicker {
  font-size: 11px; letter-spacing: 0.32em; color: var(--ct-red);
  font-weight: 500; margin-bottom: 18px;
}
.kicker::after {
  content: ""; display: block; width: 44px; height: 3px;
  background: var(--ct-red); margin-top: 10px;
}

/* ============================================================
   CHAPTER 1 — ride scrub
   ============================================================ */
.ride { position: relative; height: 1400vh; }
.ride-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
#rideCanvas, #droneCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.grain {
  position: absolute; inset: -60px; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0%{transform:translate(0,0)} 25%{transform:translate(-18px,12px)}
  50%{transform:translate(12px,-16px)} 75%{transform:translate(-10px,-8px)} 100%{transform:translate(14px,10px)}
}

.overlay {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gutter); padding-right: calc(var(--hud-w) + 4vw);
  opacity: 0; visibility: hidden; transform: translateY(24px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0.45s;
  pointer-events: none;
  text-shadow: 0 2px 30px rgba(0,0,0,0.45);
}
.overlay.on {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-overlay .hero-sub { margin-top: 26px; font-size: 17px; opacity: 0.85; max-width: 420px; }
.scroll-cue {
  margin-top: 8vh; font-size: 10px; letter-spacing: 0.34em; opacity: 0.8;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.cue-line { width: 1px; height: 54px; background: var(--ct-white); position: relative; overflow: hidden; display: block; }
.cue-line::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--ct-red); animation: cue 1.6s ease-in-out infinite;
}
@keyframes cue { 0%{top:-100%} 60%{top:100%} 100%{top:100%} }

.hero-since { margin-top: 18px; font-size: 10px; letter-spacing: 0.32em; color: var(--ct-red); }
.load-hint {
  position: absolute; right: calc(var(--hud-w) + 3vw); bottom: 6vh;
  font-size: 9px; letter-spacing: 0.3em; color: var(--ct-red); opacity: 0.9;
  transition: opacity 0.6s;
}
.load-hint.done { opacity: 0; }

.fact { margin-top: 30px; font-size: 16px; line-height: 1.55; opacity: 0.92; max-width: 460px; }
.fact-stat {
  display: block; width: fit-content;
  font-size: 13px; letter-spacing: 0.14em; font-weight: 600;
  color: var(--ct-black); background: var(--ct-red);
  padding: 8px 14px; margin-bottom: 16px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}

/* ============================================================
   vehicle / specs
   ============================================================ */
.vehicle {
  position: relative; z-index: 6;
  background: var(--ct-graphite);
  padding: 16vh var(--gutter) 14vh; padding-right: calc(var(--hud-w) + 4vw);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.section-head { margin-bottom: 7vh; }
.vehicle-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; margin-bottom: 7vh; align-items: stretch; }
.vehicle-cluster {
  position: relative; overflow: hidden; background: #101215;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, var(--chamfer) 100%, 0 calc(100% - var(--chamfer)));
}
.vehicle-cluster video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05); }
.cluster-note {
  position: absolute; left: 20px; bottom: 16px; z-index: 2;
  font-size: 9px; letter-spacing: 0.3em; color: var(--ct-white); opacity: 0.8;
}
.vehicle-media {
  position: relative; overflow: hidden;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, var(--chamfer) 100%, 0 calc(100% - var(--chamfer)));
  background: #1a1c20; min-height: 280px;
}
.vehicle-media img { width: 100%; display: block; }
.vehicle-media.missing img { display: none; }
.media-missing {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  font-size: 10px; letter-spacing: 0.28em; color: var(--ct-red);
  border: 1px dashed rgba(255,90,31,0.5); text-align: center; padding: 20px;
}
.vehicle-media.missing .media-missing,
.station-media.missing .media-missing,
.legacy-media.missing .media-missing { display: flex; }

.spec-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.spec {
  background: var(--ct-graphite); padding: 32px 26px 26px;
  display: flex; flex-direction: column; gap: 14px; min-height: 150px;
}
.spec-num { font-size: 44px; font-weight: 600; letter-spacing: -0.01em; }
.spec-num em { font-style: normal; font-size: 17px; opacity: 0.6; margin-left: 6px; letter-spacing: 0.1em; }
.spec-name { font-size: 16px; opacity: 0.78; line-height: 1.5; }
.spec.accent .spec-num { color: var(--ct-red); }

/* ============================================================
   warranty USP
   ============================================================ */
.warranty {
  position: relative; z-index: 6; background: var(--ct-black);
  padding: 16vh var(--gutter); padding-right: calc(var(--hud-w) + 4vw);
  border-top: 1px solid var(--line); overflow: hidden;
}
.warranty::after {
  content: "5"; position: absolute; right: -2vw; bottom: -14vh;
  font-family: var(--font-mono); font-weight: 600;
  font-size: 60vh; line-height: 1; color: rgba(255,90,31,0.05);
  pointer-events: none;
}
.warranty-inner { position: relative; z-index: 2; max-width: 980px; }
.warranty-big { display: flex; align-items: center; gap: 4vw; margin: 4vh 0 5vh; }
.warranty-num {
  font-size: clamp(140px, 24vw, 320px); font-weight: 600; line-height: 0.85;
  color: var(--ct-red);
}
.warranty-lines .display { font-size: clamp(34px, 4.6vw, 68px); }
.warranty-body { font-size: 18px; line-height: 1.7; opacity: 0.85; max-width: 640px; }
.warranty-body em { font-style: normal; color: var(--ct-red); }
.warranty-tag {
  margin-top: 30px; font-size: 13px; letter-spacing: 0.24em; color: var(--ct-red); font-weight: 600;
}
.warranty-chips { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.warranty-chips span {
  font-size: 11px; letter-spacing: 0.18em; padding: 10px 16px;
  border: 1px solid var(--line); color: var(--ct-white); opacity: 0.85;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}

/* ============================================================
   CHAPTER 2 — factory
   ============================================================ */
.factory { position: relative; z-index: 6; background: #0b0c0e; }

.matchcut {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gutter); padding-right: calc(var(--hud-w) + 4vw);
  position: relative; overflow: hidden;
}
.matchcut-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.5; filter: saturate(1.1) contrast(1.12) brightness(0.7);
}
.matchcut-glow {
  position: absolute; left: 50%; top: 50%; width: 60vw; height: 60vw;
  transform: translate(-50%,-50%); pointer-events: none;
  background: radial-gradient(circle, rgba(255,90,31,0.22) 0%, rgba(255,90,31,0.0) 60%);
  opacity: 0; transition: opacity 1s;
}
.matchcut.lit .matchcut-glow { opacity: 1; }
.factory-sub { margin-top: 30px; font-size: 16px; line-height: 1.6; opacity: 0.8; max-width: 520px; }

/* drone scrub */
.drone { position: relative; height: 500vh; }
.drone-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.drone-sticky::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 4;
  background:
    linear-gradient(180deg, rgba(11,12,14,0.55) 0%, rgba(11,12,14,0) 22%, rgba(11,12,14,0) 62%, rgba(11,12,14,0.72) 100%),
    radial-gradient(120% 90% at 50% 45%, rgba(11,12,14,0) 55%, rgba(11,12,14,0.38) 100%);
}
.drone-caption {
  position: absolute; left: var(--gutter); bottom: 7vh; z-index: 5;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
}
.drone-stat { font-size: 13px; letter-spacing: 0.22em; opacity: 0.9; margin-top: 10px; }
.drone-area {
  font-family: var(--font-head); font-stretch: 122%; font-weight: 600;
  font-size: clamp(52px, 7vw, 110px); line-height: 0.95; margin-top: 12px;
}
.drone-area b { color: var(--ct-red); font-weight: 700; }
.drone-area span { font-size: 0.35em; font-weight: 500; opacity: 0.85; letter-spacing: 0.06em; }
.drone-area-sub {
  font-family: var(--font-head); font-stretch: 116%; font-weight: 500;
  font-size: clamp(18px, 2vw, 30px); opacity: 0.9; margin-top: 6px;
}

/* stations */
.station {
  position: relative; min-height: 100vh;
  display: grid; grid-template-columns: 1.25fr 1fr; align-items: stretch;
}
.station:nth-child(even) { grid-template-columns: 1fr 1.25fr; }
.station:nth-child(even) .station-media { order: 2; }

.station-media {
  position: relative; background: #101215; overflow: hidden; min-height: 60vh;
}
.station-media video, .station-media img.kb {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.82) contrast(1.08) brightness(0.92);
}
.station-media img.kb { transform-origin: center; }
/* blueprint overlay */
.station-media::after {
  content: ""; position: absolute; inset: 18px; pointer-events: none;
  border: 1px solid rgba(255,255,255,0.16);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.station-media::before {
  content: attr(data-part); position: absolute; top: 30px; left: 34px; z-index: 3;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.3em;
  color: var(--ct-white); opacity: 0.75;
}
.station-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 12vh max(4vw, 44px); padding-right: calc(var(--hud-w) + 2vw);
  border-top: 1px solid var(--line);
}
.station:nth-child(even) .station-copy { padding-right: max(4vw, 44px); padding-left: max(4vw, 44px); }
.station-body { margin-top: 24px; font-size: 15.5px; line-height: 1.6; opacity: 0.8; max-width: 420px; }
.callout {
  margin-top: 30px; font-size: 11px; letter-spacing: 0.18em; line-height: 2;
  color: var(--ct-white); opacity: 0.85;
  border-left: 3px solid var(--ct-red); padding-left: 16px;
}
.callout.accent-text { color: var(--ct-red); opacity: 1; }

/* legacy close */
.legacy { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.legacy-media { position: absolute; inset: 0; }
.legacy-media video, .legacy-media img.kb {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.8) contrast(1.1) brightness(0.55);
}
.legacy-copy {
  position: relative; z-index: 4; padding: 14vh var(--gutter);
  padding-right: calc(var(--hud-w) + 4vw);
  text-shadow: 0 2px 30px rgba(0,0,0,0.6);
}

/* ============================================================
   closing
   ============================================================ */
.closing {
  position: relative; z-index: 6; background: var(--ct-black);
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 16vh var(--gutter); padding-right: calc(var(--hud-w) + 4vw);
  border-top: 1px solid var(--line); overflow: hidden;
}
.closing-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.22; filter: saturate(0.9) contrast(1.1) brightness(0.75);
  pointer-events: none;
}
.closing > *:not(.closing-bg) { position: relative; z-index: 2; }
.price { font-size: clamp(60px, 10vw, 150px); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.price-note { font-size: 11px; letter-spacing: 0.26em; opacity: 0.6; margin: 18px 0 6vh; }
.cta-row { display: flex; gap: 22px; margin-top: 7vh; flex-wrap: wrap; }
.cta {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; padding: 20px 44px; display: inline-block;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.cta.primary { background: var(--ct-red); color: var(--ct-black); font-weight: 600; }
.cta.primary:hover { transform: translateY(-3px); }
.cta.ghost { color: var(--ct-white); border: 1px solid var(--line); background: transparent; }
.cta.ghost:hover { border-color: var(--ct-red); color: var(--ct-red); }
/* ============================================================
   mega footer — mirrors comptechmotocorp.com
   ============================================================ */
.mega-footer {
  position: relative; z-index: 6; background: #060607;
  padding: 8vh 4vw 0; overflow: hidden;
}
.footer-card {
  background: #17181a; border-radius: 28px;
  padding: 64px 64px 40px; position: relative; z-index: 2;
  max-width: 1560px; margin: 0 auto;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1.3fr; gap: 48px;
}
.footer-lockup { height: 52px; width: auto; display: block; margin-bottom: 26px; }
.footer-tag { font-size: 17px; line-height: 1.6; color: #cfcfcf; max-width: 340px; }
.socials { display: flex; gap: 18px; margin-top: 34px; }
.socials a { color: #9a9a9a; transition: color 0.25s; }
.socials a:hover { color: var(--ct-white); }
.socials svg { width: 24px; height: 24px; display: block; }

.footer-col h4 { font-size: 18px; font-weight: 700; color: var(--ct-white); margin-bottom: 26px; }
.footer-col a {
  display: block; color: #b9b9b9; text-decoration: none;
  font-size: 16px; line-height: 1.5; margin-bottom: 18px; transition: color 0.25s;
}
.footer-col a:hover { color: var(--ct-red); }
.footer-addr { color: #b9b9b9; font-size: 16px; line-height: 1.7; max-width: 420px; }

.footer-rule { height: 1px; background: rgba(255,255,255,0.14); margin: 44px 0 30px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-legal { display: flex; align-items: center; gap: 16px; color: #b9b9b9; font-size: 15px; flex-wrap: wrap; }
.footer-legal i { font-style: normal; opacity: 0.4; }
.footer-legal a { color: #b9b9b9; text-decoration: none; }
.footer-legal a:hover { color: var(--ct-white); }
.heart { color: var(--ct-red); font-style: normal; }

.footer-ctas { display: flex; gap: 16px; }
.pill {
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  text-decoration: none; padding: 14px 30px; border-radius: 999px;
  transition: transform 0.25s, opacity 0.25s; display: inline-block;
}
.pill:hover { transform: translateY(-2px); }
/* Both of these failed AA at 3.11:1 — white on Energy Orange, and
   Energy Orange on white. Neither introduces a new colour to fix:
   the solid pill now uses near-black text, which is what
   .cta.primary has always done (6.7:1), and the light pill uses
   ink text with an orange rule so it still reads as branded
   without relying on orange for the letterforms themselves. */
.pill.solid { background: var(--ct-red); color: #111111; font-weight: 600; }
.pill.light { background: var(--ct-white); color: #17181b; box-shadow: inset 0 0 0 1px var(--ct-red); }

.footer-ghost {
  margin: 6vh 0 -6px; position: relative; z-index: 1;
  user-select: none; pointer-events: none;
}
.footer-ghost svg { display: block; width: 100%; height: auto; }
.footer-ghost text {
  font-family: var(--font-head); font-stretch: 125%; font-weight: 700;
  font-size: 235px; fill: #1b1c1e;
}

.footer-since { font-size: 10px; letter-spacing: 0.3em; color: var(--ct-red); margin-top: 18px; }

/* floating WhatsApp button */
.wa-float {
  position: fixed; left: 26px; bottom: 26px; z-index: 80;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.45);
  transition: transform 0.25s ease;
}
.wa-float:hover { transform: translateY(-4px) scale(1.05); }

@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .footer-card { padding: 40px 28px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 900px) {
  :root { --hud-w: 64px; }
  .vehicle-row { grid-template-columns: 1fr; }
  .vehicle-cluster { min-height: 40vh; }
  .station, .station:nth-child(even) { grid-template-columns: 1fr; }
  .station:nth-child(even) .station-media { order: 0; }
  .station-media { min-height: 46vh; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .overlay { padding: 0 6vw; padding-right: calc(var(--hud-w) + 5vw); }
}
@media (max-width: 560px) {
  :root { --hud-w: 58px; }
  .hud-inner { padding: 16px 8px; gap: 16px; }
  .hud-odo-value { font-size: 13px; letter-spacing: 0; }
  .hud-odo-unit { font-size: 8px; }
  .hud-batt-cells i { width: 16px; height: 6px; }
  .hud-zone-label { font-size: 8px; max-height: 110px; }
  .hud-speed { font-size: 8px; }
  .hud-ticks { width: 16px; height: 60px; }
  .hud-station-count { font-size: 13px; }
  .kicker { font-size: 9px; letter-spacing: 0.2em; }
  .display { font-size: clamp(30px, 9.4vw, 44px); }
  .display.xl { font-size: clamp(34px, 10.5vw, 52px); }
  .fact { font-size: 14px; }
  .fact-stat { font-size: 11px; letter-spacing: 0.1em; padding: 7px 11px; }
  .masthead { top: 16px; left: 18px; }
  .masthead-lockup { height: 30px; }
  .masthead-tag { display: none; }
  .overlay { padding-left: 6vw; padding-right: calc(var(--hud-w) + 5vw); }
  .hero-sub { font-size: 14px; }
  .warranty-num { font-size: clamp(110px, 34vw, 160px); }
  .warranty-big { gap: 6vw; margin: 3vh 0; }
  .warranty-body { font-size: 15px; }
  .drone-area { font-size: clamp(40px, 11vw, 60px); }
  .spec-grid { grid-template-columns: 1fr; }
  .spec-num { font-size: 36px; }
  .price { font-size: clamp(48px, 15vw, 80px); }
  .wa-float { width: 50px; height: 50px; left: 16px; bottom: 16px; }
  .wa-float svg { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .cue-line::after { animation: none; }
}

/* ============ COLOURS SELECTOR ============
   One scooter at a time on its own coloured backdrop, both taken
   from the Figma file. The scooter renders are cut-outs, so they
   sit on a panel drawn in CSS — which means the backdrop colour
   animates smoothly from one finish to the next instead of
   hard-cutting between images.                                    */
.colours { padding: clamp(80px, 12vh, 160px) 6vw 40px; max-width: 1560px; margin: 0 auto; }

.colours-stage {
  position: relative; margin-top: clamp(28px, 5vh, 64px);
  aspect-ratio: 16 / 9; overflow: hidden;
  /* the pool of light in the middle, fading to the edge colour */
  background:
    radial-gradient(78% 62% at 50% 42%, var(--panel-light, #c7c7c7) 0%, var(--panel-base, #5e5e5e) 78%);
  transition: background .55s ease;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer),
                     100% 100%, var(--chamfer) 100%, 0 calc(100% - var(--chamfer)));
}
/* the floor line the scooter stands on, as in the Figma backdrops */
.colours-stage::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.10) 42%, rgba(0,0,0,.04) 100%);
}
/* Constrained on BOTH axes so the scooter always fits inside the
   panel. The VX1 renders are wide (about 1.39:1) and hit the width
   limit; the Mars renders are nearly square (1.05:1) and hit the
   height limit instead. Without max-height the taller ones were
   cropped top and bottom by the panel's overflow. */
.colour-shot {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: auto; height: auto;
  max-width: min(78%, 1100px);
  max-height: 84%;
  opacity: 0; transition: opacity .45s ease;
  filter: drop-shadow(0 26px 34px rgba(0,0,0,.34));
}
.colour-shot.on { opacity: 1; }

/* keeps the white name legible over the lighter panels */
.colours-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10,11,13,.62) 0%, rgba(10,11,13,.24) 32%, rgba(10,11,13,0) 58%);
}

/* ---- step arrows ----
   `touch-action: pan-y` on the stage lets a horizontal drag be read as a
   swipe while a vertical drag still scrolls the page normally. */
.colours-stage { touch-action: pan-y; }
.colours-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ct-white);
  background: rgba(10,11,13,.42); border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background .2s, border-color .2s, color .2s, opacity .2s;
}
.colours-nav.prev { left: clamp(14px, 2vw, 26px); }
.colours-nav.next { right: clamp(14px, 2vw, 26px); }
.colours-nav:hover { background: var(--ct-red); border-color: var(--ct-red); color: var(--ct-black); }
.colours-nav:focus-visible { outline: 2px solid var(--ct-red); outline-offset: 3px; }
.colours-nav svg { display: block; }

/* touch hint — only shown where swiping is actually possible */
.colours-swipe {
  position: absolute; right: clamp(20px, 4vw, 56px); bottom: clamp(20px, 4vw, 40px); z-index: 4;
  font-size: 9px; letter-spacing: .28em; color: var(--ct-white); opacity: .5;
  display: none; pointer-events: none;
}
@media (hover: none) and (pointer: coarse) {
  .colours-swipe { display: block; }
}
.colours-bigname {
  position: absolute; left: clamp(22px, 4vw, 56px); bottom: clamp(22px, 5vw, 54px); z-index: 3;
  font-family: var(--font-head); font-stretch: 123%; font-weight: 800;
  font-size: clamp(30px, 5vw, 76px); line-height: .95; letter-spacing: -.01em;
  text-transform: uppercase; color: var(--ct-white); max-width: 46%;
  text-shadow: 0 2px 40px rgba(0,0,0,.55);
}
.colours-stage .colours-count {
  position: absolute; left: clamp(22px, 4vw, 56px); top: clamp(20px, 4vw, 44px); z-index: 3;
  font-size: 11px; letter-spacing: .22em; color: var(--ct-red);
}

.colours-bar {
  display: flex; gap: 40px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; margin-top: 30px;
}
.colours-line { color: #9aa0a6; font-size: 15px; max-width: 380px; }

/* pill clusters of swatches, grouped by finish */
.swatch-groups { display: flex; gap: 26px; flex-wrap: wrap; align-items: flex-start; }
.swatch-group { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.swatch-pill {
  display: flex; gap: 8px; align-items: center;
  background: #17181b; border: 1px solid #26282d;
  padding: 8px 12px; border-radius: 999px;
}
.swatch {
  display: block; cursor: pointer; padding: 3px; border: 0; background: none;
  border-radius: 50%; line-height: 0;
  box-shadow: 0 0 0 1px transparent inset; transition: transform .2s;
}
.swatch i {
  display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--sw);
  border: 2px solid rgba(255,255,255,.16); box-shadow: inset 0 -6px 12px rgba(0,0,0,.35);
  transition: border-color .25s, transform .25s;
}
.swatch:hover i { border-color: rgba(255,255,255,.42); }
.swatch:focus-visible { outline: 2px solid var(--ct-red); outline-offset: 2px; }
.swatch.active i { border-color: var(--ct-red); transform: scale(1.08); }
.swatch-group-label { font-size: 9px; letter-spacing: .2em; color: #8d939b; }

/* ============ SAVINGS CALCULATOR ============ */
.calc { padding: clamp(80px, 12vh, 160px) 6vw; max-width: 1560px; margin: 0 auto; }
.calc-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 72px);
  margin-top: clamp(28px, 5vh, 64px); align-items: stretch; }
.calc-input label { font-size: 11px; letter-spacing: .18em; color: #8d939b; }
.calc-km-row { display: flex; align-items: center; gap: 22px; margin: 18px 0 34px; }
.calc-km-row input[type=range] { flex: 1; appearance: none; -webkit-appearance: none; height: 3px;
  background: linear-gradient(90deg, var(--ct-red) 0%, var(--ct-red) 30%, #2b2d33 30%); outline: none; }
.calc-km-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px;
  background: var(--ct-red); cursor: pointer;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.calc-km-row input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border: none;
  background: var(--ct-red); cursor: pointer; border-radius: 3px; }
.calc-km-val { font-size: 15px; color: #8d939b; white-space: nowrap; }
.calc-km-val b { font-size: 30px; color: var(--ct-grey); font-weight: 700; }
.calc-vs { display: flex; align-items: stretch; gap: 14px; }
.calc-fuel { flex: 1; background: #17181b; border: 1px solid #26282d; padding: 22px 20px 18px;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }
.calc-fuel.accent { border-color: rgba(255,90,31,.55); background: linear-gradient(160deg, #1d1a18, #17181b); }
.calc-fuel-tag { font-size: 10px; letter-spacing: .18em; color: #8d939b; }
.calc-fuel.accent .calc-fuel-tag { color: var(--ct-red); }
.calc-fuel-num { font-size: clamp(26px, 2.6vw, 38px); font-weight: 700; margin: 10px 0 6px; }
.calc-fuel-num em { font-style: normal; font-size: 13px; color: #8d939b; margin-left: 4px; }
.calc-fuel-note { font-size: 12px; color: #6f757d; }
.calc-vs-x { align-self: center; font-size: 12px; color: #6f757d; letter-spacing: .12em; }
.calc-output { background: #17181b; border: 1px solid #26282d; padding: clamp(24px, 3vw, 44px);
  display: flex; flex-direction: column; align-items: flex-start;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); }
.calc-toggle { display: flex; gap: 0; border: 1px solid #2b2d33; margin-bottom: 26px; }
.calc-toggle button { padding: 9px 20px; font-size: 11px; letter-spacing: .16em; color: #8d939b;
  background: transparent; border: 0; cursor: pointer; font-family: inherit; }
.calc-toggle button.active { background: var(--ct-red); color: #111; font-weight: 700; }
.calc-save-label { font-size: 11px; letter-spacing: .18em; color: #8d939b; }
.calc-save { font-size: clamp(56px, 7vw, 110px); font-weight: 800; color: var(--ct-red);
  line-height: 1; margin: 12px 0 20px; letter-spacing: -.01em; }
.calc-5yr { font-size: 15px; color: #b9bec4; max-width: 420px; line-height: 1.6; }
.calc-5yr b, .calc-5yr span { color: var(--ct-grey); }
.calc-cta { margin-top: 30px; }
.calc-fineprint { margin-top: 26px; font-size: 10px; letter-spacing: .14em; color: #55595f; }

@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; }
  .colours-bar { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .calc-vs { flex-direction: column; }
  .calc-vs-x { align-self: flex-start; }
  .swatch i { width: 24px; height: 24px; }
  .swatch-pill { padding: 6px 9px; gap: 5px; }
  .swatch-groups { gap: 14px; }
  .colours-stage { aspect-ratio: 4 / 3; }  /* taller on phones so the scooter reads */
  .calc-save { font-size: 52px; }
}

/* ============================================================
   STICKY TOP BAR (shared: index + subpages)
   ============================================================ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  height: 62px; display: flex; align-items: center; gap: 20px;
  padding: 0 max(3vw, 20px);
  padding-right: calc(var(--hud-w) + 20px);           /* clear the HUD on index */
  transition: background .35s ease, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(8,9,11,0.6) 0%, rgba(8,9,11,0) 100%);
}
body.subpage .topbar { padding-right: max(3vw, 20px); }
.topbar.scrolled {
  background: rgba(14,15,17,0.72); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line);
}
body.subpage .topbar { background: rgba(14,15,17,0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }

.topbar-logo { position: relative; display: flex; align-items: center; height: 100%; flex-shrink: 0; }
.topbar-logo img { height: 30px; width: auto; display: block; }
.topbar-logo .logo-lightbg { display: none; }

.topbar-nav { display: flex; gap: 26px; margin-left: 8px; }
.topbar-nav a {
  font-size: 12px; letter-spacing: 0.2em; text-decoration: none;
  color: rgba(255,255,255,0.82); padding: 6px 0; position: relative; transition: color .2s;
}
.topbar-nav a:hover, .topbar-nav a.active { color: var(--ct-red); }
.topbar-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--ct-red);
}

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.theme-toggle {
  width: 38px; height: 38px; border: 1px solid var(--line); background: transparent;
  color: rgba(255,255,255,0.9); cursor: pointer; display: flex; align-items: center; justify-content: center;
  clip-path: polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px);
  transition: border-color .2s, color .2s;
}
.theme-toggle:hover { border-color: var(--ct-red); color: var(--ct-red); }
.theme-toggle .ico-moon { display: none; }
.theme-toggle .ico-sun { display: block; }
html[data-theme="light"] .theme-toggle .ico-sun { display: none; }
html[data-theme="light"] .theme-toggle .ico-moon { display: block; }

.topbar-cta {
  font-size: 12px; letter-spacing: 0.16em; text-decoration: none; text-transform: uppercase;
  background: var(--ct-red); color: #111; font-weight: 600; padding: 11px 20px;
  clip-path: polygon(9px 0,100% 0,100% calc(100% - 9px),calc(100% - 9px) 100%,0 100%,0 9px);
  transition: transform .2s; white-space: nowrap;
}
.topbar-cta:hover { transform: translateY(-2px); }

.topbar-burger { display: none; width: 40px; height: 40px; background: transparent; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px; padding: 0 8px; }
.topbar-burger span { display: block; height: 2px; background: currentColor; color: #fff; transition: transform .25s, opacity .2s; }
.topbar.nav-open .topbar-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar.nav-open .topbar-burger span:nth-child(2) { opacity: 0; }
.topbar.nav-open .topbar-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .topbar { padding-right: max(3vw,16px); gap: 10px; }
  .topbar-burger { display: flex; }
  .topbar-cta { display: none; }
  .topbar-nav {
    position: fixed; top: 62px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    background: rgba(12,13,15,0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .topbar.nav-open .topbar-nav { max-height: 60vh; }
  .topbar-nav a { padding: 16px max(4vw,20px); border-top: 1px solid var(--line); letter-spacing: 0.24em; }
  .topbar-nav a.active::after { display: none; }
}

/* ============================================================
   WARRANTY — two-column with battery image
   ============================================================ */
.warranty-row { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 5vw; align-items: center; }
.warranty-battery { position: relative; }
.warranty-battery img { width: 100%; display: block; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.6)); }
.warranty-battery figcaption { margin-top: 14px; text-align: center; font-size: 10px; letter-spacing: 0.24em; color: var(--ct-red); opacity: 0.9; }
@media (max-width: 900px) { .warranty-row { grid-template-columns: 1fr; gap: 6vh; } .warranty-battery { order: -1; max-width: 460px; } }

/* ============================================================
   LIGHT THEME  (cinematic film + factory stay dark by design)
   ============================================================ */
/* (the --line token override for light mode lives in css/tokens.css) */
html[data-theme="light"] body { background: #f2f2ef; color: #17181b; }
html[data-theme="light"] body.subpage { background: #f2f2ef; color: #17181b; }

/* logo + nav swap to dark ink when the bar sits on a light background */
html[data-theme="light"] .topbar.scrolled { background: rgba(246,246,243,0.85); }
html[data-theme="light"] body.subpage .topbar { background: rgba(246,246,243,0.85); }
html[data-theme="light"] .topbar.scrolled .logo-darkbg,
html[data-theme="light"] body.subpage .logo-darkbg { display: none; }
html[data-theme="light"] .topbar.scrolled .logo-lightbg,
html[data-theme="light"] body.subpage .logo-lightbg { display: block; }
html[data-theme="light"] .topbar.scrolled .topbar-nav a,
html[data-theme="light"] body.subpage .topbar-nav a { color: #40434a; }
html[data-theme="light"] .topbar.scrolled .topbar-nav a:hover,
html[data-theme="light"] .topbar.scrolled .topbar-nav a.active,
html[data-theme="light"] body.subpage .topbar-nav a:hover,
html[data-theme="light"] body.subpage .topbar-nav a.active { color: var(--ct-red); }
html[data-theme="light"] .topbar.scrolled .theme-toggle,
html[data-theme="light"] body.subpage .theme-toggle { color: #40434a; }
html[data-theme="light"] .topbar-burger span { color: #222; }

/* info sections -> light surfaces */
html[data-theme="light"] .vehicle { background: #e9e9e5; }
html[data-theme="light"] .spec { background: #ffffff; }
html[data-theme="light"] .spec-name { opacity: 0.7; }
html[data-theme="light"] .vehicle-media, html[data-theme="light"] .vehicle-cluster { background: #dcdcd7; }

html[data-theme="light"] .colours { background: #f2f2ef; }
/* the photos carry their own dark studio backdrop, so the stage stays
   dark in both themes — only the surrounding page flips */
html[data-theme="light"] .swatch-pill { background: #ffffff; border-color: #e0e0da; }
html[data-theme="light"] .swatch-group-label { color: #6a6f77; }
html[data-theme="light"] .colours-line { color: #565a61; }

html[data-theme="light"] .calc { background: #e9e9e5; }
html[data-theme="light"] .calc-fuel, html[data-theme="light"] .calc-output { background: #ffffff; border-color: #e2e2dc; }
html[data-theme="light"] .calc-fuel.accent { background: linear-gradient(160deg,#fff4ef,#fff); }
html[data-theme="light"] .calc-km-row input[type=range] { background: linear-gradient(90deg,var(--ct-red) 0%,var(--ct-red) 30%,#d8d8d2 30%); }
html[data-theme="light"] .calc-km-val b, html[data-theme="light"] .calc-5yr b, html[data-theme="light"] .calc-5yr span { color: #17181b; }
html[data-theme="light"] .calc-5yr { color: #4a4e55; }
html[data-theme="light"] .calc-fuel-note { color: #8a8f96; }
html[data-theme="light"] .calc-toggle { border-color: #d8d8d2; }

html[data-theme="light"] .warranty { background: #f2f2ef; border-top-color: var(--line); }
html[data-theme="light"] .warranty-body { color: #3a3d43; opacity: 1; }
html[data-theme="light"] .warranty-chips span { color: #3a3d43; border-color: #dcdcd6; opacity: 1; }
html[data-theme="light"] .warranty::after { color: rgba(255,90,31,0.07); }

/* footer stays dark in both themes (intentional) */

/* subpage surfaces */
html[data-theme="light"] .page-hero, html[data-theme="light"] .page-section, html[data-theme="light"] .mission-band { color: #17181b; }
html[data-theme="light"] .page-sub, html[data-theme="light"] .station-body { color: #4a4e55; }
html[data-theme="light"] .stat-band { border-color: var(--line); }
html[data-theme="light"] .stat, html[data-theme="light"] .p-card { background: #ffffff; border-color: #e4e4de; }
html[data-theme="light"] .p-card p { color: #4a4e55; }
html[data-theme="light"] .tl-row { border-color: var(--line); }
html[data-theme="light"] .tl-text { color: #4a4e55; }
html[data-theme="light"] .role { background: #fff; border-color: #e4e4de; }
html[data-theme="light"] .enq-field input, html[data-theme="light"] .enq-field select { background: #fff; border-color: #dcdcd6; color: #17181b; }
html[data-theme="light"] .enq-field input::placeholder { color: #a2a7ad; }
html[data-theme="light"] .variant { background: #fff; border-color: #e4e4de; }
html[data-theme="light"] .cta.ghost { color: #17181b; border-color: #cfcfc9; }
html[data-theme="light"] .media-note, html[data-theme="light"] .page-note { color: #6a6f77; }
