/* ==========================================================================
   Roadster Info — roadster-info.us
   Design: black blueprint / editorial poster. No raster imagery.
   ========================================================================== */

:root {
  --bg: #070707;
  --bg-2: #0b0b0c;
  --surface: #111113;
  --surface-2: #17171a;
  --line: #1f1f23;
  --line-2: #2d2d32;
  --text: #efece6;
  --muted: #a3a098;
  --subtle: #88857e;
  --accent: #ff4a26;
  --accent-2: #ff7657;
  --accent-soft: rgba(255, 74, 38, 0.12);
  --on-accent: #0a0a0a;
  --ok: #8fe3a2;
  --error: #ff8a73;

  --font-display: "Syncopate", "Arial Black", "Helvetica Neue", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --header-h: 72px;
  --radius: 2px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --section-y: clamp(80px, 12vw, 160px);

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 160ms;
  --dur-2: 280ms;
  --dur-3: 640ms;

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--accent); color: var(--on-accent); }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 200;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  transition: top var(--dur-1) var(--ease-out);
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Background editorial grid */
.grid-lines {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.grid-lines span { border-left: 1px solid rgba(255, 255, 255, 0.028); }
.grid-lines span:last-child { border-right: 1px solid rgba(255, 255, 255, 0.028); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow__idx {
  color: var(--accent);
  padding: 2px 8px;
  border: 1px solid currentColor;
}
.display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.accent { color: var(--accent); }
.mono { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: var(--btn-h);
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--dur-2) var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); }
.btn--light { background: var(--text); color: var(--bg); }
.btn--light:hover { background: #ffffff; }
.btn--sm { --btn-h: 44px; padding: 0 18px; font-size: 12px; }
.btn--block { width: 100%; }

.link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color var(--dur-1) var(--ease-out);
}
.link:hover { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.site-header.is-scrolled,
.site-header--solid {
  background: rgba(7, 7, 7, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  min-height: 44px;
  align-items: center;
}
.logo__mark { width: 26px; height: 26px; margin-right: 10px; color: var(--accent); }
.logo__suffix { font-family: var(--font-mono); font-weight: 400; color: var(--accent); letter-spacing: 0; font-size: 14px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; list-style: none; gap: 2px; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color var(--dur-1) var(--ease-out);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 10px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease-out);
}
.nav__link:hover, .nav__link[aria-current="true"] { color: var(--text); }
.nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }
.nav .btn { margin-left: 12px; }

.menu-toggle {
  display: none;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.menu-toggle__bars { position: relative; width: 20px; height: 12px; }
.menu-toggle__bars span {
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: var(--text);
  transition: transform var(--dur-2) var(--ease-out), top var(--dur-2) var(--ease-out);
}
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
    overflow-y: auto;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
  }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link {
    width: 100%;
    min-height: 64px;
    padding: 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: clamp(18px, 5vw, 28px);
    letter-spacing: 0.02em;
    color: var(--text);
  }
  .nav__link::after { display: none; }
  .nav .btn { margin: 0; }
  body.nav-open { overflow: hidden; }
  /* backdrop-filter would make the header the containing block of the fixed nav */
  body.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); border-bottom-color: var(--line); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(32px, 6vw, 80px));
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
}
.hero__ghost {
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21vw;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
  user-select: none;
}
.hero__glow {
  position: absolute;
  z-index: -1;
  right: -20vw;
  top: -10vw;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(closest-side, rgba(255, 74, 38, 0.10), transparent 70%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-areas: "eyebrow eyebrow" "title title" "lead spec" "cta spec";
  column-gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.hero__copy { display: contents; }
.hero__copy > .eyebrow { grid-area: eyebrow; justify-self: start; }
.hero__title { grid-area: title; }
.hero__lead { grid-area: lead; }
.hero__cta { grid-area: cta; }
.hero .spec-sheet { grid-area: spec; align-self: end; margin-top: 28px; }
.hero__title {
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(30px, 7.6vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span {
  display: inline-block;
  transform: translateY(105%);
  animation: rise 1s var(--ease-out) forwards;
}
.hero__title .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero__title .line:nth-child(3) > span { animation-delay: 0.24s; }
.hero__title .line--accent { color: var(--accent); }
@keyframes rise { to { transform: translateY(0); } }

.hero__lead {
  margin-top: 28px;
  max-width: 54ch;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted);
  opacity: 0;
  animation: fade-in 0.8s var(--ease-out) 0.5s forwards;
}
.hero__cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  animation: fade-in 0.8s var(--ease-out) 0.65s forwards;
}
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.spec-sheet {
  border: 1px solid var(--line-2);
  background: rgba(17, 17, 19, 0.6);
  position: relative;
  opacity: 0;
  animation: fade-in 0.8s var(--ease-out) 0.8s forwards;
}
.spec-sheet__title {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec-sheet__title span:last-child { color: var(--accent); }
.spec-sheet dl { margin: 0; }
.spec-sheet dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 16px;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.spec-sheet dl > div:last-child { border-bottom: 0; }
.spec-sheet dt { font-family: var(--font-mono); font-size: 12px; color: var(--subtle); text-transform: uppercase; letter-spacing: 0.08em; }
.spec-sheet dd { margin: 0; text-align: right; font-weight: 500; }

.hero__figure { margin: clamp(24px, 4vw, 48px) auto 0; }
.hero__figure figcaption,
.figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--subtle);
  text-transform: uppercase;
}

/* Crop marks */
.crop { position: relative; }
.crop::before, .crop::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--accent);
  border-style: solid;
  pointer-events: none;
}
.crop::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.crop::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

/* ---------- Car drawing ---------- */
.car { width: 100%; height: auto; color: var(--text); overflow: visible; }
.stroke { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stroke--thin { stroke-width: 1; }
.stroke--accent { stroke: var(--accent); }
.caliper { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; }
.ground { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 6; }
.dim { fill: none; stroke: var(--subtle); stroke-width: 1; }
.dim-text { fill: var(--subtle); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; }
.car .wheel { transform-box: fill-box; transform-origin: center; }
.body-fill { fill: rgba(255, 255, 255, 0.015); }

.car--draw .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.4s var(--ease-in-out) 0.3s forwards;
}
.car--draw .draw.d2 { animation-delay: 1.1s; animation-duration: 1.6s; }
.car--draw .draw.d3 { animation-delay: 1.6s; animation-duration: 1.2s; }
.car--draw .fade { opacity: 0; animation: fade-in 0.8s var(--ease-out) 2.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 18px 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(14px, 1.6vw, 20px);
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__item::after {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
}
.marquee__item:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section__title {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(26px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.section__lead {
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 18px);
  max-width: 52ch;
}

/* ---------- Definition ---------- */
.principles {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
}
.principle {
  position: relative;
  padding: 28px 24px 32px 0;
  border-right: 1px solid var(--line);
  counter-increment: principle;
}
.principle + .principle { padding-left: 24px; }
.principle:last-child { border-right: 0; }
.principle__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
}
.principle__icon { width: 40px; height: 40px; margin: 22px 0 18px; color: var(--text); }
.principle h3 { font-size: 19px; font-weight: 600; line-height: 1.3; margin-bottom: 10px; }
.principle p { color: var(--muted); font-size: 15px; }

.stats {
  margin-top: clamp(56px, 8vw, 112px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat { background: var(--bg); padding: clamp(24px, 3vw, 40px); }
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat__value .accent { font-size: 0.6em; vertical-align: top; }
.stat__label { display: block; margin-top: 16px; color: var(--muted); font-size: 14px; max-width: 26ch; }

/* ---------- Anatomy ---------- */
.anatomy {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.anatomy__stage {
  position: relative;
  padding: clamp(16px, 3vw, 40px);
  border: 1px solid var(--line-2);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--bg);
  background-blend-mode: normal;
}
.anatomy__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, var(--bg) 85%);
  pointer-events: none;
}
.anatomy__canvas { position: relative; z-index: 1; }
.hotspot {
  position: absolute;
  z-index: 2;
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  padding: 0;
}
.hotspot__dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.hotspot__dot::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.hotspot:hover .hotspot__dot { transform: scale(1.08); }
.hotspot[aria-pressed="true"] .hotspot__dot { background: var(--accent); color: var(--on-accent); }
.hotspot[aria-pressed="true"] .hotspot__dot::before { opacity: 0.6; transform: scale(1); animation: ping 2.2s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(0.9); opacity: 0.7; } 80%, 100% { transform: scale(1.5); opacity: 0; } }

.anatomy__panel {
  border-top: 2px solid var(--accent);
  padding-top: 28px;
  min-height: 300px;
}
.anatomy__panel-idx { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase; }
.anatomy__panel h3 {
  margin: 14px 0 16px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.15;
}
.anatomy__panel p { color: var(--muted); }
.anatomy__panel .anatomy__fact {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px dashed var(--line-2);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
}
.anatomy__panel .anatomy__fact strong { color: var(--accent); font-weight: 700; }
.anatomy__panel-body { transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out); }
.anatomy__panel-body.is-switching { opacity: 0; transform: translateY(6px); }
.anatomy__nav { display: flex; gap: 8px; margin-top: 28px; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out);
}
.icon-btn:hover { border-color: var(--text); }
.icon-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- History road ---------- */
.road {
  list-style: none;
  position: relative;
  max-width: 1080px;
  margin-inline: auto;
}
.road::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 56px;
  transform: translateX(-50%);
  border-inline: 1px solid var(--line-2);
  background:
    linear-gradient(var(--accent), var(--accent)) center top / 2px var(--road-progress, 0%) no-repeat,
    repeating-linear-gradient(to bottom, var(--line-2) 0 22px, transparent 22px 44px) center / 2px 100% no-repeat;
}
.road__stop {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  gap: 0 clamp(24px, 4vw, 56px);
  align-items: start;
  padding-block: clamp(20px, 3vw, 36px);
}
.road__marker {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  margin-top: 8px;
  width: 14px; height: 14px;
  background: var(--bg);
  border: 2px solid var(--accent);
  transform: rotate(45deg);
}
.road__year {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  text-align: right;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px var(--text);
}
.road__card { grid-column: 3; grid-row: 1; max-width: 46ch; }
.road__stop:nth-child(even) .road__year { grid-column: 3; justify-self: start; text-align: left; }
.road__stop:nth-child(even) .road__card { grid-column: 1; justify-self: end; text-align: right; }
.road__card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.road__card p { color: var(--muted); font-size: 15px; }
.road__tag {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.road__stop.is-key .road__year { color: var(--accent); -webkit-text-stroke: 0; }
.road__stop.is-key .road__marker { background: var(--accent); }

/* ---------- Icons carousel ---------- */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out);
}
.chip:hover { color: var(--text); border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.carousel-nav { display: flex; gap: 8px; }

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(268px, 28vw, 340px);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding-inline: var(--gutter);
  padding-bottom: 20px;
  margin-inline: calc(var(--gutter) * -1);
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-thumb { background: var(--line-2); }
.icon-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  min-height: 440px;
  padding: 24px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  transition: border-color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.icon-card:hover { border-color: var(--subtle); transform: translateY(-4px); }
.icon-card[hidden] { display: none; }
.icon-card__top { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; color: var(--subtle); letter-spacing: 0.08em; }
.icon-card__top span:first-child { color: var(--accent); }
.icon-card__year {
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--text);
}
.icon-card h3 { margin-top: 18px; font-size: 21px; font-weight: 600; line-height: 1.25; }
.icon-card__maker { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.icon-card p { margin-top: 12px; color: var(--muted); font-size: 15px; flex: 1; }
.icon-card__schema {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.icon-card__schema svg { width: 108px; height: auto; color: var(--subtle); }
.icon-card__schema dl { margin: 0; text-align: right; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.icon-card__schema dt { color: var(--subtle); }
.icon-card__schema dd { margin: 0 0 4px; color: var(--text); }

.sch-body { fill: none; stroke: currentColor; stroke-width: 1.2; }
.sch-wheel { fill: none; stroke: currentColor; stroke-width: 1.2; }
.sch-wheel--drive { fill: currentColor; }
.sch-engine { fill: var(--accent); }
.sch-seat { fill: none; stroke: currentColor; stroke-width: 1; }
.sch-arrow { fill: currentColor; }

.empty-state { padding: 40px 0; color: var(--muted); font-family: var(--font-mono); font-size: 14px; }

/* ---------- Compare table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-2);
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.table-wrap:focus-visible { outline-offset: 0; }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.compare caption { text-align: left; padding: 14px 20px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle); border-bottom: 1px solid var(--line-2); }
.compare th, .compare td { padding: 18px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle); font-weight: 400; background: var(--surface); }
.compare tbody th { font-family: var(--font-display); font-size: 14px; text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; }
.compare tbody td { color: var(--muted); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr.is-hero { background: var(--accent-soft); }
.compare tbody tr.is-hero th { color: var(--accent); }
.compare tbody tr.is-hero td { color: var(--text); }
.compare tbody tr { transition: background-color var(--dur-1) var(--ease-out); }
.compare tbody tr:not(.is-hero):hover { background: var(--surface); }

/* ---------- Calculator ---------- */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--line-2);
}
.calc__form { padding: clamp(24px, 3.5vw, 48px); border-right: 1px solid var(--line-2); }
.calc__out { padding: clamp(24px, 3.5vw, 48px); background: var(--surface); display: flex; flex-direction: column; }
.field { margin-bottom: 32px; }
.field__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.field label, .field .label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field__num {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-2);
  background: var(--bg);
  border-radius: var(--radius);
}
.field__num:focus-within { border-color: var(--accent); }
.field__num input {
  width: 96px;
  min-height: 44px;
  padding: 0 12px;
  background: transparent;
  border: 0;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.field__num input:focus { outline: none; }
.field__num span { padding-right: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--subtle); text-transform: uppercase; }

.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  background: transparent;
  cursor: pointer;
  --fill: 50%;
}
.range::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(to right, var(--accent) var(--fill), var(--line-2) var(--fill));
}
.range::-moz-range-track { height: 2px; background: var(--line-2); }
.range::-moz-range-progress { height: 2px; background: var(--accent); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  margin-top: -10px;
  background: var(--bg);
  border: 2px solid var(--accent);
  transform: rotate(45deg);
  border-radius: 2px;
}
.range::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(255, 74, 38, 0.35); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(255, 74, 38, 0.35); }

.segmented {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 2px;
  margin: 0;
}
.segmented legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  display: inline-grid;
  place-items: center;
  min-width: 52px;
  min-height: 40px;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.segmented input:checked + label { background: var(--text); color: var(--bg); }
.segmented input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.presets .chip { font-size: 11px; }

.gauge { width: 100%; max-width: 360px; margin: 0 auto; }
.gauge .g-track { fill: none; stroke: var(--line-2); stroke-width: 10; }
.gauge .g-fill { fill: none; stroke: var(--accent); stroke-width: 10; transition: stroke-dashoffset var(--dur-3) var(--ease-out); }
.gauge .g-tick { stroke: var(--subtle); stroke-width: 1.5; }
.gauge .g-tick--red { stroke: var(--accent); }
.gauge .g-label { fill: var(--subtle); font-family: var(--font-mono); font-size: 10px; }
.gauge .g-needle { stroke: var(--text); stroke-width: 2; stroke-linecap: round; transform-origin: 160px 170px; transition: transform var(--dur-3) var(--ease-out); }
.gauge .g-hub { fill: var(--bg); stroke: var(--text); stroke-width: 2; }

.readout { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); margin-top: 24px; }
.readout > div { background: var(--surface); padding: 18px; }
.readout dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle); }
.readout dd { margin: 8px 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 34px); line-height: 1; font-variant-numeric: tabular-nums; }
.readout dd small { font-family: var(--font-mono); font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 4px; }
.verdict { margin-top: 24px; }
.verdict__label { display: inline-block; padding: 6px 12px; background: var(--accent); color: var(--on-accent); font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.verdict p { margin-top: 12px; color: var(--muted); }
.note { margin-top: auto; padding-top: 24px; font-size: 13px; color: var(--subtle); }

/* ---------- Checklist ---------- */
.guide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.guide__aside { position: sticky; top: calc(var(--header-h) + 32px); }
.progress { margin-top: 32px; }
.progress__bar { height: 4px; background: var(--line-2); overflow: hidden; }
.progress__fill { height: 100%; width: 0; background: var(--accent); transition: width var(--dur-3) var(--ease-out); }
.progress__text { margin-top: 12px; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.progress__text strong { color: var(--text); }
.guide__reset { margin-top: 20px; }

.acc { border-top: 1px solid var(--line-2); }
.acc__item { border-bottom: 1px solid var(--line-2); }
.acc__item summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 16px 0;
  cursor: pointer;
}
.acc__item summary::-webkit-details-marker { display: none; }
.acc__num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; flex: none; }
.acc__title { flex: 1; font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; line-height: 1.3; }
.acc__meta { font-family: var(--font-mono); font-size: 12px; color: var(--subtle); flex: none; }
.acc__icon { position: relative; width: 20px; height: 20px; flex: none; }
.acc__icon::before, .acc__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 1.5px;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition: transform var(--dur-2) var(--ease-out);
}
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__item[open] .acc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc__item summary:hover .acc__title { color: var(--accent); }
.acc__body { padding: 0 0 28px 44px; color: var(--muted); max-width: 70ch; }
.acc__body p + p { margin-top: 12px; }

.checks { list-style: none; display: grid; gap: 4px; }
.check {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-height: 44px;
  padding: 10px 0;
  cursor: pointer;
  color: var(--muted);
  transition: color var(--dur-1) var(--ease-out);
}
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 1px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.check__box svg { width: 14px; height: 14px; color: var(--on-accent); opacity: 0; transform: scale(0.6); transition: opacity var(--dur-1) var(--ease-out), transform var(--dur-2) var(--ease-out); }
.check:hover .check__box { border-color: var(--text); }
.check input:checked + .check__box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check__box svg { opacity: 1; transform: none; }
.check input:checked ~ .check__text { color: var(--text); text-decoration: line-through; text-decoration-color: var(--accent); }
.check input:focus-visible + .check__box { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Newsletter ---------- */
.digest {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding: clamp(32px, 6vw, 80px);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255, 74, 38, 0.14), transparent 55%),
    var(--surface);
}
.digest .section__title { font-size: clamp(26px, 4vw, 52px); }
.form { display: grid; gap: 18px; }
.form__label { display: block; margin-bottom: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  font-size: 16px;
  transition: border-color var(--dur-1) var(--ease-out);
}
.input::placeholder { color: var(--subtle); }
.input:hover { border-color: var(--subtle); }
.input:focus { outline: none; border-color: var(--accent); }
.input[aria-invalid="true"] { border-color: var(--error); }
.form__hint { margin-top: 8px; font-size: 13px; color: var(--subtle); }
.form__error { margin-top: 8px; font-size: 13px; color: var(--error); min-height: 0; }
.form__error:empty { display: none; }
.form .check { color: var(--muted); font-size: 14px; }
.form .check input:checked ~ .check__text { text-decoration: none; }
.form__status { padding: 16px; border: 1px solid var(--ok); color: var(--ok); font-size: 15px; }
.form__status[hidden] { display: none; }
.form__status.is-error { border-color: var(--error); color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(56px, 8vw, 96px); background: var(--bg); }
.footer__big {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(36px, 10.5vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
  white-space: nowrap;
  overflow: hidden;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer__about p { margin-top: 18px; color: var(--muted); font-size: 14px; max-width: 38ch; }
.footer__title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--subtle); margin-bottom: 16px; font-weight: 400; }
.footer__list { list-style: none; display: grid; gap: 2px; }
.footer__list a, .footer__list button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  transition: color var(--dur-1) var(--ease-out);
}
.footer__list a:hover, .footer__list button:hover { color: var(--accent); }
.footer__list .privacy-choices svg { width: 28px; height: 14px; margin-left: 8px; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 24px calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--subtle);
}
.footer__disclaimer { max-width: 80ch; }

/* ---------- Tachometer (scroll progress + back to top) ---------- */
.tach {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 90;
  width: 64px; height: 64px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(7, 7, 7, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.tach.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.tach:hover { border-color: var(--accent); }
.tach svg { width: 100%; height: 100%; }
.tach .t-track { fill: none; stroke: var(--line-2); stroke-width: 3; }
.tach .t-fill { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.tach .t-gear { fill: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.tach .t-unit { fill: var(--subtle); font-family: var(--font-mono); font-size: 6.5px; letter-spacing: 0.1em; }

/* ---------- Consent banner & dialog ---------- */
.consent {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 150;
  width: min(520px, calc(100vw - 32px));
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  transform: translateY(16px);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.consent.is-visible { transform: none; opacity: 1; }
.consent[hidden] { display: none; }
.consent__title { font-family: var(--font-display); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 10px; }
.consent p { font-size: 14px; color: var(--muted); }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.consent__actions .btn { flex: 1 1 auto; }

.dialog {
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
}
.dialog::backdrop { background: rgba(0, 0, 0, 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dialog[open] { animation: dialog-in var(--dur-2) var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.dialog__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line-2); }
.dialog__head h2 { font-family: var(--font-display); font-size: 16px; text-transform: uppercase; }
.dialog__body { padding: 8px 24px; overflow-y: auto; }
.dialog__intro { padding: 16px 0; color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--line); }
.dialog__foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 20px 24px; border-top: 1px solid var(--line-2); }
.pref { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.pref:last-child { border-bottom: 0; }
.pref h3 { font-size: 16px; font-weight: 600; }
.pref p { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.pref__badge { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ok); }
.gpc-note { margin: 16px 0 8px; padding: 12px 14px; border: 1px dashed var(--ok); color: var(--ok); font-size: 13px; }
.gpc-note[hidden] { display: none; }

.switch { position: relative; display: inline-flex; width: 52px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch__track {
  position: absolute; inset: 0;
  border-radius: 999px;
  background: var(--line-2);
  transition: background-color var(--dur-1) var(--ease-out);
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 4px; left: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--text);
  transition: transform var(--dur-2) var(--ease-out);
}
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track::after { transform: translateX(22px); background: var(--on-accent); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 3px; }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + .switch__track { opacity: 0.6; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
.js .reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ---------- Legal pages ---------- */
.legal { padding: calc(var(--header-h) + clamp(48px, 8vw, 112px)) 0 var(--section-y); }
.legal__head { max-width: 900px; margin-bottom: clamp(40px, 6vw, 72px); padding-bottom: 32px; border-bottom: 1px solid var(--line-2); }
.legal__head h1 { margin-top: 20px; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(28px, 5vw, 64px); letter-spacing: -0.02em; line-height: 1.02; }
.legal__meta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--font-mono); font-size: 12px; color: var(--subtle); letter-spacing: 0.06em; text-transform: uppercase; }
.legal__layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 32px); }
.toc__title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--subtle); margin-bottom: 12px; }
.toc ol { list-style: none; border-left: 1px solid var(--line-2); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; font-size: 14px; color: var(--muted); text-decoration: none; transition: color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out); }
.toc a:hover, .toc a[aria-current="true"] { color: var(--text); border-left-color: var(--accent); }
.prose { max-width: 72ch; color: var(--muted); font-size: 16px; line-height: 1.75; }
.prose h2 { margin: 56px 0 16px; padding-top: 8px; font-family: var(--font-display); font-size: clamp(18px, 2vw, 22px); text-transform: uppercase; letter-spacing: 0.01em; color: var(--text); line-height: 1.25; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 10px; font-size: 17px; font-weight: 600; color: var(--text); }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose .callout { margin: 24px 0; padding: 18px 20px; border: 1px solid var(--line-2); border-left: 2px solid var(--accent); background: var(--surface); color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; }
.prose .table-wrap { margin: 16px 0 24px; }
.prose .table-wrap table { margin: 0; min-width: 620px; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--subtle); font-weight: 400; background: var(--surface); }
.prose td { color: var(--muted); }
.prose code { font-family: var(--font-mono); font-size: 0.9em; color: var(--text); background: var(--surface-2); padding: 1px 6px; }
.prose address { font-style: normal; }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--header-h) var(--gutter) 48px; }
.notfound__code { font-family: var(--font-display); font-weight: 700; font-size: clamp(96px, 26vw, 320px); line-height: 0.9; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px var(--accent); }
.notfound h1 { margin-top: 16px; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(20px, 3vw, 32px); }
.notfound p { margin: 16px auto 32px; color: var(--muted); max-width: 44ch; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "eyebrow" "title" "lead" "cta" "spec"; }
  .hero .spec-sheet { margin-top: 40px; }
  .spec-sheet { max-width: 520px; }
  .spec-sheet dl { display: grid; grid-template-columns: 1fr 1fr; }
  .spec-sheet dl > div { border-right: 1px dashed var(--line); }
  .spec-sheet dl > div:nth-child(even) { border-right: 0; }
  .spec-sheet dl > div:nth-last-child(2) { border-bottom: 0; }
  .principles { grid-template-columns: 1fr 1fr; }
  .principle:nth-child(2) { border-right: 0; }
  .principle:nth-child(3) { padding-left: 0; }
  .principle:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr 1fr; }
  .anatomy { grid-template-columns: minmax(0, 1fr); }
  .anatomy__panel { min-height: 0; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc__form { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .guide { grid-template-columns: minmax(0, 1fr); }
  .guide__aside { position: static; }
  .digest { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .legal__layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; padding: 20px; border: 1px solid var(--line-2); }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .section__head { grid-template-columns: 1fr; align-items: start; }
  .hero__ghost { display: none; }
  .hero__cta .btn { flex: 1 1 100%; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 24px 0 28px; border-right: 0; border-top: 1px solid var(--line); }
  .principle:first-child { border-top: 0; }
  .principle__icon { margin: 16px 0 14px; }
  .hotspot__dot { width: 24px; height: 24px; font-size: 10px; }
  .road::before { left: 8px; width: 18px; transform: none; }
  .road__stop, .road__stop:nth-child(even) { grid-template-columns: 34px 1fr; gap: 6px 16px; }
  .road__marker { grid-column: 1; grid-row: 1 / span 2; justify-self: start; margin: 8px 0 0 10px; }
  .road__year, .road__stop:nth-child(even) .road__year { grid-column: 2; grid-row: 1; justify-self: start; text-align: left; }
  .road__card, .road__stop:nth-child(even) .road__card { grid-column: 2; grid-row: 2; justify-self: start; text-align: left; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .carousel-nav { justify-content: flex-end; }
  .readout { grid-template-columns: 1fr; }
  .acc__body { padding-left: 0; }
  .acc__meta { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .consent { padding: 20px; }
  .consent__actions .btn { flex: 1 1 100%; }
  .tach { display: none; }
  .dialog__foot .btn { flex: 1 1 100%; }
}

@media (max-width: 420px) {
  .spec-sheet dl { grid-template-columns: 1fr; }
  .spec-sheet dl > div { border-right: 0; }
  .spec-sheet dl > div:nth-last-child(2) { border-bottom: 1px dashed var(--line); }
  .stats { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
  .hero__title .line > span { transform: none; }
  .hero__lead, .hero__cta, .spec-sheet { opacity: 1; }
  .car--draw .draw { stroke-dashoffset: 0; }
  .car--draw .fade { opacity: 1; }
  .marquee__track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .hotspot[aria-pressed="true"] .hotspot__dot::before { animation: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .tach, .consent, .dialog, .marquee, .grid-lines, .hero__ghost, .hero__glow { display: none !important; }
  body { background: #fff; color: #000; }
  .prose, .prose h2, .prose h3, .prose strong, .prose td { color: #000; }
}
