/* Five Cars: styles. Tokens first; everything below reads from them. */

:root {
  color-scheme: light;

  --bg: #FFFFFF;
  --surface: #F6F6F4;
  --text: #0A0A0A;
  --muted: #6B6B6B;
  --line: #E6E6E6;
  --accent: #E10600;
  --name: #F1F1F1;
  --placeholder: #EDEDED;

  --font-head: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Mono', Consolas, ui-monospace, monospace;

  /* 8px spacing scale */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 40px;
  --s-6: 48px;
  --s-8: 64px;
  --s-12: 96px;

  --radius: 4px;
  --gutter: 24px;
  --frame: 1440px;
  --frame-pad: max(var(--gutter), (100% - var(--frame)) / 2 + var(--gutter));
  --topbar-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 599px) {
  :root {
    --gutter: 16px;
    --topbar-h: 56px;
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.unit {
  color: var(--muted);
}

.note {
  margin-left: 6px;
  font: 400 12px/1 var(--font-body);
  color: var(--muted);
}

.est {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font: 500 12px/1.2 var(--font-body);
  color: var(--muted);
  vertical-align: 0.1em;
}

/* ---------- Top bar ---------- */

.topbar {
  height: var(--topbar-h);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  width: min(var(--frame), 100% - 2 * var(--gutter));
  height: 100%;
  margin-inline: auto;
}

.wordmark {
  font: 700 16px/1 var(--font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 500 14px/1 var(--font-body);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-color 200ms var(--ease);
}

.topbar__link:hover {
  text-decoration-color: currentColor;
}

/* ---------- Landing ---------- */

.landing {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: calc(100vh - var(--topbar-h));
  min-height: calc(100svh - var(--topbar-h));
}

.stage {
  --car-w: clamp(300px, 46vw, 720px);
  --ground: 70%;
  --name-lift: 0.12;
  position: relative;
  min-height: 440px;
  overflow: hidden;
  touch-action: pan-y;
  outline-offset: -4px;
}

.scene {
  position: absolute;
  inset: 0;
}

/* Set high enough that the car covers only the lower part of the name. */
.scene__name {
  position: absolute;
  right: 0;
  bottom: calc(100% - var(--ground) + var(--car-w) * var(--name-lift));
  left: 0;
  height: 0.8em;
  font: 700 22vw/0.8 var(--font-head);
  letter-spacing: -0.04em;
  color: var(--name);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.scene__name > span {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 450ms var(--ease), transform 450ms var(--ease);
}

.scene__name > span.is-current {
  opacity: 1;
}

/* The old name clears quickly, so two names never read as one word. */
.scene__name > span.is-leaving {
  transform: translateY(8%);
  transition-duration: 220ms;
}

.scene__name .ch {
  display: inline-block;
}

.scene__ground {
  position: absolute;
  top: var(--ground);
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line);
}

.scene__puffs {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.puff {
  position: absolute;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.07);
  filter: blur(6px);
}

/* The rig is one point on the ground line; the car stands on it. */
.rig {
  position: absolute;
  top: var(--ground);
  left: calc(50% - var(--car-w) / 2);
  z-index: 2;
  width: var(--car-w);
  height: 0;
  will-change: transform;
}

.rig__shadow {
  position: absolute;
  top: -10px;
  left: 6%;
  width: 88%;
  height: 22px;
  background: radial-gradient(closest-side, rgba(10, 10, 10, 0.2), rgba(10, 10, 10, 0.06) 60%, rgba(10, 10, 10, 0));
  transform-origin: 50% 50%;
  will-change: transform;
}

.rig__body {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  transform-origin: 50% 100%;
}

.rig__turn {
  --facing: 1;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  transform: scaleX(var(--facing));
  transition: transform 200ms var(--ease);
}

.rig__turn.no-turn {
  transition: none;
}

.rig__cars {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

/* Speed lines trail behind the rear bumper (the left side while facing right). */
.rig__lines {
  position: absolute;
  right: calc(100% + 12px);
  bottom: 0;
  width: calc(var(--car-w) * 0.42);
  height: calc(var(--car-w) * 0.2);
  pointer-events: none;
}

.rig__lines i {
  position: absolute;
  right: 0;
  height: 2px;
  border-radius: 1px;
  background: var(--text);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: 100% 50%;
}

.rig__lines i:nth-child(1) { bottom: 14%; width: 100%; }
.rig__lines i:nth-child(2) { bottom: 38%; width: 72%; }
.rig__lines i:nth-child(3) { bottom: 60%; width: 88%; }
.rig__lines i:nth-child(4) { bottom: 82%; width: 56%; }

/* ---------- Cars, placeholders and car art ---------- */

.car {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0;
  opacity: 0;
  visibility: hidden;
}

.car.is-active {
  opacity: 1;
  visibility: visible;
}

.car__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 2.4 / 1;
  border-radius: var(--radius);
  background: var(--placeholder);
}

.car.has-image .car__placeholder {
  visibility: hidden;
}

/* The car name stays readable whichever way the rig faces. */
.car__label {
  font: 600 clamp(16px, 2vw, 28px)/1.2 var(--font-head);
  color: var(--muted);
  text-align: center;
  transform: scaleX(var(--facing, 1));
  transition: transform 200ms var(--ease);
}

.rig__turn.no-turn .car__label {
  transition: none;
}

/* A plain picture: used when an image has no wheel measurements. */
.car__img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

.car.has-image .car__img {
  opacity: 1;
}

/* A file that points left is turned to face right before the rig turns it. */
.car__img.is-left,
.art.is-left {
  transform: scaleX(-1);
}

/*
 * Rigged car: the body sits on its suspension and pitches about the axles,
 * while the tyres stay on the ground and the rims spin.
 */
.art {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  opacity: 0;
}

.car.has-image .art {
  opacity: 1;
}

.art > * {
  position: absolute;
  display: block;
}

.art__contact {
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10, 10, 10, 0.4), rgba(10, 10, 10, 0));
}

.art__chassis,
.art__body {
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: var(--pivot);
  transform: translateY(var(--heave, 0px)) rotate(var(--pitch, 0deg));
}

/* The wells never reach past the picture (some tyres run off its bottom edge). */
.art__chassis {
  overflow: hidden;
}

.art__well {
  position: absolute;
  border-radius: 50%;
  background: #141414;
}

.art__rim {
  opacity: 0;
  transition: opacity 450ms var(--ease);
}

.art__rim[data-i="0"] {
  transform: rotate(var(--spin-0, 0deg));
}

.art__rim[data-i="1"] {
  transform: rotate(var(--spin-1, 0deg));
}

.is-spinning .art__rim {
  opacity: 1;
  transition: none;
}

/* ---------- Edge previews: what pushing past the edge will bring ---------- */

.edge {
  position: absolute;
  top: calc(var(--ground) + var(--s-4));
  z-index: 3;
  display: grid;
  gap: 4px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.edge--prev {
  left: var(--frame-pad);
  justify-items: start;
}

.edge--next {
  right: var(--frame-pad);
  justify-items: end;
  text-align: right;
}

.edge__label {
  font-size: 12px;
  line-height: 1.2;
  color: var(--muted);
}

.edge__name {
  font: 700 clamp(18px, 1.7vw, 24px)/1.1 var(--font-head);
  white-space: nowrap;
}

.edge__hold {
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 4px;
  overflow: hidden;
  background: var(--line);
}

.edge__hold i {
  display: block;
  height: 100%;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
}

.edge--prev .edge__hold i {
  transform-origin: right;
}

/* ---------- Specs panel ---------- */

/* Above the car, so a car driving through passes under the figures. */
.specs {
  position: absolute;
  top: var(--s-4);
  right: var(--frame-pad);
  z-index: 3;
  width: 352px;
}

/* Frosted backing, faded in by stage.js only while a car is under the panel. */
.specs__frost {
  position: absolute;
  inset: calc(-1 * var(--s-2));
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-transparency: reduce) {
  .specs__frost {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.specs__make {
  font: 600 13px/1.3 var(--font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.specs__model {
  margin-top: 4px;
  font: 700 30px/1.1 var(--font-head);
  letter-spacing: -0.01em;
}

.specs__summary {
  margin-top: var(--s-1);
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.specs__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--s-3);
  margin-top: var(--s-2);
}

.specs__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 0 7px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.45;
}

.specs__row dt {
  font-size: 13px;
  color: var(--muted);
}

.specs__row dd {
  display: grid;
  justify-items: start;
  gap: 4px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.specs__bar {
  display: block;
  width: min(100%, 120px);
  height: 2px;
  background: var(--line);
}

.specs__bar i {
  display: block;
  height: 100%;
  background: var(--text);
  transform: scaleX(var(--w, 0));
  transform-origin: left;
}

.specs__key {
  margin-top: var(--s-1);
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  .specs .is-in {
    animation: spec-in 360ms var(--ease) both;
    animation-delay: calc(var(--i, 0) * 40ms);
  }

  .specs__bar i {
    transition: transform 520ms var(--ease);
  }
}

@keyframes spec-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-height: 820px) and (min-width: 768px) {
  .specs__summary,
  .specs__key {
    display: none;
  }
}

/* ---------- Bottom bar ---------- */

.landing__bar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: min(var(--frame), 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding: var(--s-2) 0 var(--s-3);
}

.counter {
  min-width: 72px;
  font: 500 14px/1 var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.counter__now {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.counter__now span {
  display: inline-block;
}

.landing__arrows {
  display: flex;
  gap: var(--s-1);
}

.arrow {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}

.arrow:hover {
  border-color: var(--text);
}

.arrow:active {
  transform: scale(0.94);
}

.arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: square;
}

.models {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s-2);
}

.models button {
  position: relative;
  min-height: 44px;
  font: 600 13px/1 var(--font-head);
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
  transition: color 200ms var(--ease);
}

.models button::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 10px;
  left: 0;
  height: 2px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease);
}

.models button:hover,
.models button[aria-current="true"] {
  color: var(--text);
}

.models button[aria-current="true"]::after {
  transform: scaleX(1);
}

.hint {
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
  transition: opacity 400ms var(--ease);
}

.hint.is-hidden {
  opacity: 0;
}

.hint__touch {
  display: none;
}

@media (hover: none) {
  .hint__pointer {
    display: none;
  }

  .hint__touch {
    display: inline;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .counter__now span.is-rolling {
    animation: roll-in 420ms var(--ease) both;
  }

  .scene__name > span.is-entering {
    transition: none;
  }

  .scene__name > span.is-entering .ch {
    animation: letter-in 650ms var(--ease) both;
    animation-delay: calc(160ms + var(--i, 0) * 45ms);
  }
}

@keyframes roll-in {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
}

@keyframes letter-in {
  from {
    opacity: 0;
    transform: translateY(24%);
  }
}

/* ---------- Landing at tablet and phone sizes ---------- */

@media (max-width: 1279px) {
  .specs {
    width: 320px;
  }
}

@media (max-width: 1023px) {
  .specs {
    width: 300px;
  }

  .specs__summary,
  .specs__key {
    display: none;
  }
}

/* Portrait tablets have height to spare: a larger car, below the panel. */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .stage {
    --car-w: 76vw;
    --ground: 72%;
    --name-lift: 0.2;
  }
}

@media (max-width: 767px) {
  .stage {
    --car-w: 84vw;
    --ground: 76%;
    --name-lift: 0.2;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .scene {
    position: relative;
    inset: auto;
    flex: none;
    height: clamp(240px, 42svh, 360px);
  }

  .edge {
    top: calc(var(--ground) + var(--s-2));
  }

  .edge__name {
    font-size: 17px;
  }

  .specs {
    position: static;
    width: auto;
    padding: var(--s-1) var(--gutter) 0;
  }

  .specs__frost {
    display: none;
  }

  .specs__model {
    font-size: 26px;
  }

  .specs__row {
    padding: 6px 0;
  }

  .specs__bar {
    width: 72px;
  }

  .landing__bar {
    flex-wrap: wrap;
    gap: var(--s-1) var(--s-2);
  }

  .models {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
}

/* ---------- Launch race ---------- */

.race-section {
  padding: var(--s-12) 0;
  border-top: 1px solid var(--line);
}

.race-section__inner {
  width: min(var(--frame), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.race-section__head {
  max-width: 720px;
  margin-bottom: var(--s-5);
}

.race-section__head h2 {
  font: 700 clamp(32px, 4.4vw, 56px)/1.05 var(--font-head);
  letter-spacing: -0.02em;
}

.race-section__head p {
  margin-top: var(--s-2);
  font-size: 18px;
}

.race {
  padding: var(--s-4);
  border-radius: var(--radius);
  background: var(--surface);
}

.race__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  padding-bottom: var(--s-3);
}

.race__lights {
  display: flex;
  gap: 10px;
}

.race__lights span {
  width: 16px;
  height: 16px;
  border: 1px solid #C8C8C6;
  border-radius: 50%;
  transition: background-color 120ms linear, border-color 120ms linear;
}

.race__lights span.is-on {
  border-color: var(--text);
  background: var(--text);
}

.race__clock {
  margin-left: auto;
  font: 500 clamp(32px, 4vw, 44px)/1 var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.race__clock-unit {
  margin-left: 6px;
  font-size: 0.5em;
  color: var(--muted);
}

.launch {
  min-width: 144px;
  min-height: 48px;
  padding: 0 var(--s-3);
  border-radius: var(--radius);
  background: var(--accent);
  color: #FFFFFF;
  font: 500 15px/1 var(--font-body);
  transition: background-color 200ms var(--ease), transform 200ms var(--ease);
}

.launch:hover {
  background: color-mix(in srgb, var(--accent) 86%, #000);
}

.launch:active {
  transform: scale(0.97);
}

.launch[aria-disabled="true"] {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.lane {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 112px;
  align-items: end;
  gap: var(--s-3);
  padding: var(--s-2) 0;
  border-top: 1px solid var(--line);
}

.lane__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-self: center;
  min-width: 0;
}

.lane__make {
  font: 600 12px/1.3 var(--font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.lane__name {
  font: 600 16px/1.25 var(--font-head);
}

.lane__time {
  font-size: 13px;
  color: var(--muted);
}

.lane__track {
  --marker-w: 120px;
  position: relative;
  height: 64px;
  border-right: 2px dashed var(--text);
  border-left: 1px solid var(--text);
}

.lane:first-child .lane__track {
  margin-top: 18px;
}

.lane__tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1px dashed #D2D2CF;
}

.lane__tick span {
  position: absolute;
  top: -18px;
  left: 0;
  font: 500 12px/1 var(--font-mono);
  color: var(--muted);
  white-space: nowrap;
  transform: translateX(-50%);
}

.lane__trail {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: var(--text);
  opacity: 0.24;
  transform: scaleX(0);
  transform-origin: left;
}

.lane__car {
  position: absolute;
  bottom: 4px;
  left: 0;
  width: var(--marker-w);
  will-change: transform;
}

.lane__car .car__placeholder {
  font: 600 12px/1 var(--font-head);
  color: var(--muted);
}

.lane__car.has-image .car__placeholder {
  visibility: hidden;
}

.lane__car .car__img,
.lane__car .art {
  opacity: 0;
}

.lane__car.has-image .car__img,
.lane__car.has-image .art {
  opacity: 1;
}

.lane__readout {
  align-self: center;
  text-align: right;
}

.lane__speed {
  font-size: 22px;
  font-weight: 500;
}

.lane__speed .unit {
  font-size: 14px;
}

.lane__place {
  display: block;
  min-height: 1.3em;
  margin-top: 4px;
  font: 500 13px/1.3 var(--font-mono);
  color: var(--muted);
}

.lane.is-winner .lane__place {
  color: var(--accent);
}

.race__result {
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}

.race__result-title {
  font: 600 13px/1.3 var(--font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.race__order {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s-2);
  margin-top: var(--s-2);
}

.race__order li {
  display: grid;
  gap: 2px;
  padding-top: var(--s-1);
  border-top: 2px solid var(--line);
}

.race__order li:first-child {
  border-top-color: var(--accent);
}

.race__pos {
  font: 500 13px/1.3 var(--font-mono);
  color: var(--muted);
}

.race__order li:first-child .race__pos {
  color: var(--accent);
}

.race__who {
  font-weight: 500;
  line-height: 1.35;
}

.race__gap {
  font: 400 13px/1.3 var(--font-mono);
  color: var(--muted);
}

.race__note {
  margin-top: var(--s-3);
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 1023px) {
  .race__order {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lane {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--s-1) var(--s-2);
  }

  .lane__track {
    grid-row: 2;
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .race-section {
    padding: var(--s-8) 0;
  }

  .race {
    padding: var(--s-2);
  }

  .launch {
    flex: 1 0 100%;
  }

  .lane__track {
    --marker-w: 76px;
    height: 44px;
  }

  .race__order {
    grid-template-columns: minmax(0, 1fr);
  }

  .race__order li {
    grid-template-columns: 3.5em minmax(0, 1fr) auto;
    align-items: baseline;
    gap: var(--s-1);
  }

  .race__gap {
    display: none;
  }
}

/* ---------- Reduced motion: no lean, no speed lines, cars swap with a 200ms crossfade ---------- */

@media (prefers-reduced-motion: reduce) {
  .car {
    transition: opacity 200ms linear, visibility 0s linear 200ms;
  }

  .car.is-active {
    transition: opacity 200ms linear, visibility 0s;
  }

  .scene__name > span {
    transition-duration: 200ms;
  }

  .scene__name > span.is-leaving {
    transform: none;
  }

  .rig__turn,
  .car__label {
    transition: none;
  }

  .rig__lines,
  .scene__puffs {
    display: none;
  }
}
