@font-face { font-family: Fredoka; src: url('assets/Fredoka.ttf') format('truetype'); font-style: normal; font-weight: 300 700; font-display: swap; }

:root {
  --cream: #fff6e7;
  --paper: #fffcf6;
  --sand: #f8e8cf;
  --ink: #3a181c;
  --ink-soft: #5e3b37;
  --ink-muted: #70514c;
  --red: #c83231;
  --red-dark: #a52527;
  --yellow: #ffda5c;
  --yellow-light: #ffe68c;
  --mint: #e4eddb;
  --mint-deep: #c9d8b8;
  --mint-line: #b4c4a2;
  --mint-ink: #3f4a33;
  --line: #dfceba;
  --night: #241416;
  --night-line: #6b4a49;
  --night-text: #ead2c7;
  --body: Arial, Helvetica, sans-serif;
  --display: Fredoka, Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: 64px;
  --radius-media: 16px;
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

* { box-sizing: border-box; }
html { scrollbar-color: var(--red) var(--cream); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.6 var(--body); caret-color: var(--red); overflow-x: clip; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 5px; border-radius: 4px; }
::selection { background: var(--yellow); color: var(--ink); }
img, video { display: block; max-width: 100%; }
img { height: auto; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3, p, figure, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.06; letter-spacing: -.025em; text-wrap: balance; }
h2 { font-size: clamp(2.6rem, 4.4vw, 4.35rem); }
h2 span { color: var(--red); }
p { max-width: 65ch; text-wrap: pretty; }
strong { font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; }

.section { max-width: 1328px; margin-inline: auto; padding: 104px var(--gutter); }
.section-heading { display: flex; justify-content: space-between; gap: 60px; align-items: flex-end; margin-bottom: 48px; }
.section-heading > p, .heading-side > p { font-size: 16px; max-width: 36ch; padding-bottom: 6px; color: var(--ink-soft); }

.skip-link { position: fixed; z-index: 50; left: 16px; top: -100px; background: var(--yellow); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 16px; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 52px; background: var(--red); border: 0; border-radius: 12px; padding: 14px 24px; color: var(--cream); font: 600 17px/1.2 var(--display); letter-spacing: .005em; text-decoration: none; box-shadow: 0 10px 18px -14px rgb(165 37 39 / .9); transition: background .2s, transform .25s var(--ease), box-shadow .25s; }
.button:hover { background: var(--red-dark); transform: translateY(-3px); box-shadow: 0 14px 22px -14px rgb(165 37 39 / .9); }
.button:active { transform: translateY(0) scale(.98); }
.button-small { min-height: 44px; padding: 10px 18px; font-size: 15px; gap: 12px; }
.button-small svg { width: 20px; height: 20px; }
.button-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 10px 18px -14px rgb(0 0 0 / .6); }
.button-yellow:hover { background: var(--yellow-light); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font: 600 17px var(--display); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--red); text-underline-offset: 7px; padding: 8px 2px; }
.text-link:hover { color: var(--red); }
.round-button { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; transition: background .2s, color .2s, opacity .2s, transform .25s var(--ease); }
.round-button:hover:not(:disabled) { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.round-button:active:not(:disabled) { transform: scale(.92); }
.round-button:disabled { opacity: .3; cursor: default; }
.round-button-light:hover:not(:disabled) { background: var(--cream); color: var(--ink); border-color: var(--cream); }

/* Header */
.header { position: sticky; top: 0; z-index: 30; background: var(--cream); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 24px -22px rgb(58 24 28 / .5); }
.header-inner { max-width: 1440px; height: 88px; margin: auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: block; flex: none; line-height: 0; text-decoration: none; }
.header .brand img { width: 120px; }
.nav ul { display: flex; gap: 6px; }
.nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 10px; text-decoration: none; font: 500 16px var(--display); transition: color .2s, background .2s; }
.nav a:hover { color: var(--red); background: rgb(200 50 49 / .07); }
.nav a[aria-current] { color: var(--red); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }

/* Hero */
.hero { max-width: 1440px; margin: auto; padding: 32px var(--gutter) 96px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(3.7rem, 6.2vw, 5.9rem); line-height: .98; color: var(--red); letter-spacing: -.035em; }
.hero h1 span { color: var(--ink); display: inline-block; margin-top: 10px; white-space: nowrap; }
.hero-lead { margin-top: 28px; font-size: 19px; line-height: 1.55; max-width: 34ch; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 32px; }
.development { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-top: 28px; color: var(--ink-muted); }
.development > span { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgb(200 50 49 / .15); }
.hero-visual { position: relative; min-width: 0; padding: 4% 2% 10% 6%; }
/* The picnic napkin itself: two translucent red stripe sets overlap into gingham. */
.hero-visual::before { content: ''; position: absolute; inset: 0 0 4% 10%; border-radius: 22px; transform: rotate(-4deg); background-color: #fde9dc; background-image: linear-gradient(90deg, rgb(200 50 49 / .3) 50%, transparent 0), linear-gradient(rgb(200 50 49 / .3) 50%, transparent 0); background-size: 44px 44px; box-shadow: 0 20px 34px -26px rgb(112 50 25 / .55); }
.hero-film { position: relative; border-radius: var(--radius-media); overflow: hidden; background: #dcc7ad; aspect-ratio: 1.12; box-shadow: 0 26px 42px -26px rgb(58 24 28 / .6); rotate: 2deg; isolation: isolate; }
.hero-film video { width: 100%; height: 100%; object-fit: cover; }
.hero-film::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgb(36 20 22 / .78)); pointer-events: none; }
/* The caption starts after the parked mascot, which covers the film's lower-left corner. */
.film-bottom { position: absolute; inset: auto 24px 22px 31%; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; color: #fff; }
.film-bottom p { font: 500 22px/1.2 var(--display); }
.film-bottom small { display: block; margin-top: 6px; font: 13px var(--body); opacity: .9; }
.video-toggle { flex: none; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 0; border-radius: 50px; background: var(--cream); color: var(--ink); font: 600 14px var(--display); transition: background .2s; }
.video-toggle svg { width: 18px; height: 18px; }
.video-toggle:hover { background: var(--yellow); }
.hero-film :focus-visible { outline-color: var(--yellow); }
.hero-mascot { position: absolute; z-index: 2; left: -4%; bottom: -2%; width: 40%; rotate: -5deg; transform-origin: 50% 90%; filter: drop-shadow(0 16px 12px rgb(58 24 28 / .32)); pointer-events: auto; }
.hero-mascot.is-wobbling { animation: jelly-wobble .9s var(--ease); }

/* Verbs strip */
.rally-strip { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 4vw, 64px); background: var(--red); padding: 26px 24px; color: var(--cream); font: 500 clamp(22px, 3.1vw, 40px)/1 var(--display); }
.rally-strip svg { color: var(--yellow); width: 30px; height: 30px; }

/* Intro and line-up */
.intro { display: grid; grid-template-columns: 1fr 1.12fr; gap: 88px; padding-block: 112px 72px; }
.intro .lead { font: 500 27px/1.32 var(--display); }
.intro-text > p + p { margin-top: 20px; color: var(--ink-soft); }
.lineup { position: relative; max-width: 1328px; margin: 0 auto; padding: 0 var(--gutter); }
.lineup img { width: 100%; aspect-ratio: 2.35; object-fit: cover; object-position: 50% 38%; border-radius: var(--radius-media); box-shadow: 0 24px 40px -30px rgb(58 24 28 / .55); }
.lineup figcaption { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; margin-top: 18px; font-size: 15px; color: var(--ink-muted); }
.lineup figcaption strong { font: 500 22px var(--display); color: var(--ink); }

/* Moments */
.moments { padding-top: 112px; }
.moment-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; }
.moment-large { grid-row: span 2; }
.moment-grid figure { min-width: 0; }
.moment-grid img { width: 100%; object-fit: cover; border-radius: 12px; aspect-ratio: 16 / 9; }
.moment-large img { aspect-ratio: 1.18; }
.clip-link { display: block; position: relative; text-decoration: none; border-radius: 12px; }
.clip-link::after { content: ''; position: absolute; inset: 50% 0 0; border-radius: 0 0 12px 12px; background: linear-gradient(transparent, rgb(36 20 22 / .72)); pointer-events: none; }
.clip-link img { transition: filter .3s; }
.clip-link:hover img { filter: saturate(1.15) brightness(1.04); }
.clip-play { position: absolute; bottom: 18px; left: 18px; z-index: 1; display: flex; align-items: center; gap: 12px; color: #fff; font: 600 15px var(--display); }
.clip-play svg { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: rgb(255 255 255 / .18); border: 1.5px solid rgb(255 255 255 / .8); transition: background .2s, transform .3s var(--ease); }
.clip-link:hover .clip-play svg { background: var(--red); border-color: var(--red); transform: scale(1.08); }
figcaption { padding-top: 16px; line-height: 1.4; }
figcaption strong { display: block; font: 500 22px var(--display); }
figcaption span { display: block; margin-top: 6px; font-size: 15px; color: var(--ink-muted); }

/* Garage */
.garage { background: var(--mint); }
.garage-inner { padding-block: 96px 88px; }
.garage-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 64px; }
.garage-heading > p { font-size: 16px; max-width: 40ch; padding-bottom: 6px; color: var(--mint-ink); }
.car-panel { display: grid; grid-template-columns: 1.45fr 1fr; gap: 48px; align-items: center; margin: 36px 0 32px; }
.car-stage { position: relative; aspect-ratio: 16 / 10; border-radius: 20px; background:
  radial-gradient(ellipse 34% 7% at 50% 86%, rgb(58 24 28 / .3), transparent 72%),
  radial-gradient(ellipse 62% 22% at 50% 84%, #f3f8ec, transparent 70%),
  linear-gradient(#d7e4c8, #e9f0e0 70%); overflow: hidden; }
.car-image { position: absolute; inset: 2% 4% 6%; width: 92%; height: 92%; object-fit: contain; transform-origin: 50% 88%; }
.car-image.is-arriving { animation: jelly-land .85s var(--ease); }
.car-arrows { position: absolute; right: 18px; bottom: 18px; display: flex; gap: 10px; }
.car-arrows .round-button { background: rgb(255 255 255 / .7); border-color: var(--mint-line); }
.car-sheet h3 { font-size: clamp(40px, 4.2vw, 56px); letter-spacing: -.03em; }
.car-type { display: flex; align-items: center; gap: 10px; margin-top: 10px; font: 500 18px var(--display); color: var(--mint-ink); }
.swatch { width: 16px; height: 16px; border-radius: 50%; background: var(--paint, var(--red)); box-shadow: inset 0 0 0 1.5px rgb(58 24 28 / .35); }
.car-description { margin-top: 16px; font-size: 16px; color: var(--ink-soft); min-height: 4.8em; }
.stats { display: grid; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--mint-line); }
.stats > div { display: grid; grid-template-columns: 9.5em 1fr; align-items: center; gap: 16px; }
.stats dt { font-size: 14px; font-weight: 700; }
.stats dd { display: grid; grid-template-columns: 1fr 8.5em; align-items: center; gap: 14px; }
.bar { position: relative; height: 10px; border-radius: 10px; background: var(--mint-deep); overflow: hidden; }
.bar::after { content: ''; position: absolute; inset: 0; width: calc(var(--v) * 100%); border-radius: inherit; background: var(--ink); transform-origin: left; animation: bar-grow .7s var(--ease); }
.value { font: 500 15px var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fleet { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; }
.fleet button { display: grid; gap: 4px; justify-items: center; padding: 8px 6px 10px; border: 0; border-radius: 12px; background: transparent; box-shadow: inset 0 0 0 1px var(--mint-line); transition: background .2s, box-shadow .2s, transform .25s var(--ease); }
.fleet button:hover { background: rgb(255 255 255 / .55); transform: translateY(-2px); }
.fleet button[aria-selected="true"] { background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink), 0 10px 18px -14px rgb(58 24 28 / .6); }
.fleet img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; }
.fleet span { font: 500 14px/1.2 var(--display); white-space: nowrap; }
.fleet button[aria-selected="true"] span { color: var(--red); }
.garage-note { margin-top: 24px; font-size: 14px; color: var(--mint-ink); max-width: 80ch; }
.garage :focus-visible { outline-color: var(--ink); }
.no-js .car-arrows { display: none; }
.no-js .fleet { display: none; }

/* Modes */
.mode-list { display: grid; grid-template-columns: repeat(3, 1fr); }
.mode { padding: 4px 40px 0; border-left: 1px solid var(--line); }
.mode:first-child { padding-left: 0; border-left: 0; }
.mode:last-child { padding-right: 0; }
.seats { width: 216px; max-width: 100%; height: 32px; overflow: visible; }
.mode h3 { margin-top: 26px; font-size: 32px; display: flex; align-items: center; gap: 12px; }
.mode p { margin-top: 14px; font-size: 16px; color: var(--ink-soft); }
.mode .mode-meta { margin-top: 18px; font: 500 15px var(--display); color: var(--ink); }
.badge { display: inline-block; padding: 4px 10px 5px; border-radius: 50px; background: var(--yellow); color: var(--ink); font: 600 14px/1 var(--display); letter-spacing: .02em; }
.seat-legend { display: flex; align-items: center; gap: 8px; margin-top: 40px; font-size: 14px; color: var(--ink-muted); }
.seat-legend svg { width: 26px; height: 26px; }
.seat-legend svg + svg, .seat-legend svg:nth-of-type(2) { margin-left: 14px; }

/* Ambiances */
.ambiances { background: var(--sand); padding-bottom: 32px; }
.ambiances-inner { padding-bottom: 0; }
.ambiances .section-heading { margin-bottom: 40px; }
.heading-side { display: grid; justify-items: end; gap: 22px; }
.heading-side > p { text-align: right; }
.strip-controls { display: flex; gap: 10px; }
.ambiance-strip { --inset: max(var(--gutter), calc((100vw - 1328px) / 2 + var(--gutter))); display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 760px); column-gap: 28px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--inset); padding: 0 var(--inset) 24px; scrollbar-width: thin; scrollbar-color: var(--red) transparent; }
.ambiance-strip:focus-visible { outline-offset: -3px; }
.ambiance-strip figure { scroll-snap-align: start; }
.ambiance-strip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-media); background: #d8c3a5; }
.ambiances-facts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; padding-block: 48px 72px; }
.ambiances-facts h3 { font-size: 24px; margin-bottom: 16px; }
.ambiances-facts p { margin-top: 16px; font-size: 15px; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px 8px; border-radius: 50px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font: 500 15px var(--display); }

/* Features */
.features { display: grid; grid-template-columns: .85fr 1.15fr; gap: 88px; padding-block: 112px; }
.features-intro > p { font-size: 16px; color: var(--ink-muted); margin-top: 24px; }
.features-intro > img { width: 320px; margin: 44px auto 0; filter: drop-shadow(0 15px 15px rgb(117 61 25 / .14)); rotate: -5deg; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; align-content: start; }
.feature-list article { padding: 26px 0; border-top: 1px solid var(--line); }
.feature-list h3 { font-size: 25px; line-height: 1.15; margin-bottom: 12px; }
.feature-list p { font-size: 16px; color: var(--ink-soft); }

/* Controls */
.controls { background: var(--paper); border-top: 1px solid var(--line); }
.controls-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 88px; align-items: start; }
.controls-heading p { margin-top: 20px; font-size: 16px; color: var(--ink-soft); max-width: 38ch; }
.controls-heading p + p { margin-top: 12px; }
.controls-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.controls-table th, .controls-table td { padding: 13px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.controls-table thead th { font: 600 14px var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); border-bottom: 2px solid var(--ink); }
.controls-table tbody th { font: 500 17px var(--display); }
.controls-table th:first-child { padding-left: 0; }
kbd { display: inline-block; min-width: 2.1em; padding: 3px 8px 4px; border-radius: 7px; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line), inset 0 -3px 0 var(--line); font: 600 14px/1.3 var(--display); text-align: center; color: var(--ink); }

/* Community */
.community { background: var(--ink); color: var(--cream); }
.community-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; padding-block: 104px; }
.community h2 { font-size: clamp(2.8rem, 4.3vw, 4.3rem); }
.community h2 span { color: var(--yellow); }
.community-copy > p { margin: 26px 0 30px; font-size: 17px; color: var(--night-text); }
.community :focus-visible { outline-color: var(--yellow); }
.workbench { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--night-line); }
.workbench h3 { font-size: 26px; color: var(--yellow); }
.workbench ul { margin-top: 16px; display: grid; gap: 10px; }
.workbench li { position: relative; padding-left: 22px; color: var(--night-text); }
.workbench li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.workbench p { margin-top: 16px; font-size: 15px; color: var(--night-text); font-style: italic; }
.social-list { align-self: center; }
.social-list > a, .social-pending { display: grid; grid-template-columns: 1fr auto 24px; align-items: center; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--night-line); text-decoration: none; }
.social-list > a:first-child { border-top: 1px solid var(--night-line); }
.social-list > a > span:first-child, .social-pending > span:first-child { font: 500 32px var(--display); transition: transform .3s var(--ease); }
.social-list > a > span:nth-child(2), .social-pending > span:nth-child(2) { font-size: 14px; color: var(--night-text); }
.social-list > a > svg { width: 22px; height: 22px; transition: transform .25s var(--ease); }
.social-list > a:hover { color: var(--yellow); }
.social-list > a:hover > span:first-child { transform: translateX(6px); }
.social-list > a:hover > svg { transform: translate(3px, -3px); }
.social-pending { color: var(--night-text); }
.social-pending svg { width: 20px; height: 20px; }

/* Footer */
.footer-inner { max-width: 1440px; margin: auto; padding: 40px var(--gutter); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 48px; }
.footer .brand img { width: 112px; }
.footer p { font-size: 14px; color: var(--ink-muted); }
.footer p strong { color: var(--ink); letter-spacing: .04em; }
.footer details { max-width: 380px; font-size: 14px; }
.footer summary { cursor: pointer; font: 600 15px var(--display); padding: 12px 0; min-height: 44px; }
.footer details p { margin-top: 10px; }
.footer details a { color: var(--red); }
.footer details[open] { align-self: start; }

/* Clip dialog */
.clip-dialog { width: min(1100px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 24px; border: 0; border-radius: 18px; background: var(--ink); color: var(--cream); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .7); }
.clip-dialog::backdrop { background: rgb(36 20 22 / .82); }
.clip-dialog[open] { animation: dialog-in .35s var(--ease); }
.clip-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 18px; }
.clip-heading h2 { font-size: 28px; }
.clip-dialog video { width: 100%; max-height: 70dvh; border-radius: 10px; background: #211015; }
.clip-dialog p { margin-top: 12px; font-size: 14px; color: var(--night-text); }
.clip-dialog :focus-visible { outline-color: var(--yellow); }

/* Motion: the jelly landing is the one authored moment. */
@keyframes jelly-land {
  0% { opacity: 0; translate: calc(var(--from, 1) * 7%) -4%; scale: .94 1.06; }
  32% { opacity: 1; translate: 0 0; scale: 1.09 .88; }
  52% { scale: .95 1.06; }
  70% { scale: 1.03 .97; }
  85% { scale: .99 1.01; }
  100% { scale: 1 1; }
}
@keyframes jelly-wobble {
  0%, 100% { scale: 1 1; }
  22% { scale: 1.08 .9; }
  44% { scale: .95 1.06; }
  64% { scale: 1.03 .97; }
  82% { scale: .99 1.01; }
}
@keyframes bar-grow { from { transform: scaleX(0); } }
@keyframes dialog-in { from { opacity: 0; translate: 0 16px; scale: .98; } }

@media (min-width: 1600px) { .hero { padding-top: 48px; padding-bottom: 112px; } }

@media (max-width: 1180px) {
  .fleet { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 112px; overflow-x: auto; padding: 4px 4px 12px; margin-inline: -4px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
  .fleet button { scroll-snap-align: start; }
}

@media (max-width: 1050px) {
  :root { --gutter: 36px; }
  .header-inner { gap: 20px; }
  .nav a { padding-inline: 9px; font-size: 15px; }
  .hero { gap: 32px; }
  .hero-lead { font-size: 17px; }
  .intro, .features, .community-inner, .controls-inner { gap: 52px; }
  .car-panel { gap: 32px; }
  .stats > div { grid-template-columns: 1fr; gap: 6px; }
  .mode { padding-inline: 24px; }
  .feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .header-inner { height: auto; flex-wrap: wrap; padding-block: 12px 0; row-gap: 4px; }
  .nav { order: 3; width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); overflow-x: auto; scrollbar-width: none; }
  .nav ul { padding: 0 calc(var(--gutter) - 10px) 6px; gap: 0; }
  .nav a { white-space: nowrap; padding-inline: 10px; }
  :root { scroll-padding-top: 120px; }
  /* Phone order: picture, then the selector right under the thumb, then the sheet. */
  .garage-inner { display: flex; flex-direction: column; }
  .car-panel { display: contents; }
  .car-stage { order: 1; margin-top: 8px; }
  .fleet { order: 2; margin-top: 14px; }
  .car-sheet { order: 3; margin-top: 26px; }
  .garage-note { order: 4; }
  .car-description { min-height: 0; }
  .stats > div { grid-template-columns: 9em 1fr; gap: 14px; }
  .mode-list { grid-template-columns: 1fr; gap: 36px; }
  .mode, .mode:first-child, .mode:last-child { padding: 32px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .controls-inner { grid-template-columns: 1fr; }
  .ambiances-facts { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; scroll-padding-top: 116px; }
  body { font-size: 16px; }
  .header .brand img { width: 92px; }
  .header .button-small { min-height: 42px; padding: 8px 14px; font-size: 14px; gap: 8px; }
  .hero { grid-template-columns: 1fr; padding-top: 16px; padding-bottom: 64px; gap: 28px; }
  .hero h1 { font-size: clamp(3.2rem, 15vw, 5.2rem); }
  .hero h1 br:first-child { display: none; }
  .hero h1 span { display: block; margin-top: 4px; }
  .hero-lead { margin-top: 20px; }
  .hero-actions { margin-top: 26px; }
  .hero-visual { padding: 4% 1% 12% 4%; }
  .hero-film { aspect-ratio: 1.2; rotate: 1.5deg; }
  .film-bottom { inset: auto 14px 14px auto; }
  .film-bottom p { display: none; }
  .film-bottom p { font-size: 18px; }
  .hero-mascot { width: 46%; left: -2%; bottom: -4%; }
  .rally-strip { padding: 20px 16px; gap: 14px; flex-wrap: wrap; font-size: 23px; }
  .rally-strip svg { width: 18px; height: 18px; }
  .rally-strip > span:last-child { display: none; }
  .section { padding-block: 72px; }
  .section-heading, .garage-heading { display: block; margin-bottom: 28px; }
  .section-heading > p, .garage-heading > p { margin-top: 20px; max-width: 42ch; }
  .heading-side { justify-items: start; margin-top: 20px; }
  .heading-side > p { text-align: left; }
  h2 { font-size: clamp(2.5rem, 11vw, 3.6rem); }
  .intro { grid-template-columns: 1fr; gap: 28px; padding-block: 72px 48px; }
  .intro .lead { font-size: 23px; }
  .lineup img { aspect-ratio: 1.5; object-position: 50% 42%; }
  .lineup figcaption strong { font-size: 19px; }
  .moments { padding-top: 72px; }
  .moment-grid { grid-template-columns: 1fr; gap: 30px; }
  .moment-large { grid-row: auto; }
  .moment-large img { aspect-ratio: 16 / 11; }
  .garage-inner { padding-block: 72px; }
  .car-stage { border-radius: 16px; }
  .car-arrows { right: 12px; bottom: 12px; }
  .car-arrows .round-button { width: 44px; height: 44px; }
  .stats > div { grid-template-columns: 1fr; gap: 6px; }
  .stats dd { grid-template-columns: 1fr 8em; }
  .fleet { grid-auto-columns: 100px; }
  .mode h3 { font-size: 28px; }
  .ambiance-strip { grid-auto-columns: 84vw; column-gap: 14px; }
  .features { grid-template-columns: 1fr; gap: 28px; padding-block: 72px; }
  .features-intro > img { display: none; }
  .feature-list h3 { font-size: 23px; }
  .controls-table thead { display: none; }
  .controls-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .controls-table th, .controls-table td { padding: 0; border: 0; }
  .controls-table tbody th { grid-column: 1 / -1; font-size: 18px; }
  .controls-table td::before { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted); }
  .controls-table td:nth-of-type(1)::before { content: 'Clavier'; }
  .controls-table td:nth-of-type(2)::before { content: 'Manette'; }
  .community-inner { grid-template-columns: 1fr; gap: 48px; padding-block: 72px; }
  .community h2 { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .social-list > a, .social-pending { padding: 20px 0; gap: 12px; }
  .social-list > a > span:first-child, .social-pending > span:first-child { font-size: 27px; }
  .footer-inner { grid-template-columns: auto 1fr; gap: 20px 24px; padding-block: 32px; }
  .footer details { grid-column: 1 / -1; max-width: none; }
  .clip-dialog { padding: 14px; }
  .clip-heading h2 { font-size: 22px; }
}

@media (max-width: 360px) {
  .header .brand img { width: 80px; }
  .header .button-small { padding-inline: 10px; font-size: 13px; }
  .header .button-small svg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .car-image.is-arriving { animation: fade-in .2s ease-out; }
  .hero-mascot.is-wobbling, .bar::after, .clip-dialog[open] { animation: none; }
  .hero-film { rotate: none; }
}
@keyframes fade-in { from { opacity: 0; } }
