/* Партс Ауто 2010 — one stylesheet. Tokens first; everything below references them.
   Direction: "Type and nothing else" (taste-skill). Colours from the shop's own logo: charcoal and amber. */

:root {
  --bg: #121212;
  --surface: #1b1b1b;
  --surface-2: #252525;
  --ink: #f0f0ed;
  --muted: #a9a499;
  --accent: #ffc56b;
  --accent-hi: #ffd795;
  --accent-ink: #141414;
  --paper: #ebebe8;
  --paper-2: #dededa;
  --paper-ink: #141414;
  --paper-muted: #55524b;

  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);

  --m: clamp(20px, 3.4vw, 48px);
  --col-gap: clamp(16px, 1.8vw, 24px);
  --gap: clamp(112px, 13vw, 200px);
  --bar-h: 72px;
  --dock-h: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-exit: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

/* ---------- reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.5 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; padding-bottom: var(--dock-h); -webkit-tap-highlight-color: transparent; }
img, video, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 0.07em; text-underline-offset: 0.18em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.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 { position: fixed; left: var(--m); top: 12px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 12px 18px; transform: translateY(-160%); transition: transform var(--t-ui) var(--ease-out); }
.skip:focus { transform: none; }
strong { font-weight: 600; }

/* ---------- type ---------- */
.head { font: 700 var(--step-head)/1.04 var(--display); letter-spacing: -0.035em; text-wrap: balance; }
.head .ln, .head .line { padding-bottom: 0.08em; margin-bottom: -0.08em; }

.z { position: relative; display: inline-block; }
.z::after { content: ""; position: absolute; left: 24%; right: 24%; top: 50%; height: 0.075em; background: currentColor; transform: translateY(-50%) rotate(-62deg); border-radius: 0.04em; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 0;
  background: var(--accent); color: var(--accent-ink);
  font: 600 1rem/1.1 var(--text); text-decoration: none; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: var(--step-small); }
.btn-ghost { background: var(--surface-2); color: var(--ink); }
.link { font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
.linkish { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 0.18em; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent-hi); }
  .btn-ghost:hover { background: #2f2f2f; }
  .link:hover { text-decoration-color: var(--accent); }
}

/* ---------- demo marks ---------- */
.note {
  display: inline; background: rgba(255, 197, 107, 0.16); color: var(--accent);
  font: 500 var(--step-small)/1.3 var(--text); letter-spacing: 0; padding: 0.12em 0.45em; border-radius: 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; white-space: normal; vertical-align: 0.06em;
}
.paper .note, .call .note { background: rgba(120, 78, 0, 0.13); color: #6b4700; }
html.is-clean .note { display: none; }
.demo-btn-unused {
  position: fixed; left: var(--m); bottom: 20px; z-index: 40; display: none;
  min-height: 40px; padding: 0 14px; border: 0; border-radius: 0; background: var(--surface-2); color: var(--ink);
  font: 500 var(--step-small)/1 var(--text); transition: transform var(--t-press) var(--ease-out);
}
.bar-demo { border: 0; background: none; padding: 10px 0; color: var(--muted); font: 500 var(--step-small)/1 var(--text); white-space: nowrap; }
.bar-demo span { color: var(--accent); margin-left: 4px; }
html.is-clean .bar-demo { opacity: 0.6; }
@media (hover: hover) and (pointer: fine) { .bar-demo:hover { color: var(--ink); } }

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--bar-h);
  display: flex; align-items: center; gap: 32px; padding: 0 var(--m);
  color: var(--ink); background: transparent;
  transition: transform 320ms var(--ease-out), background-color var(--t-ui) ease;
  view-transition-name: bar;
}
.bar.is-solid { background: var(--bg); }
.bar.is-hidden { transform: translateY(-100%); }
.mark-icon { width: auto; height: 30px; margin-right: 0.3em; }
.mark { display: inline-flex; align-items: center; gap: 0.45em; text-decoration: none; font: 800 1rem/1 var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.mark-year { color: var(--accent); }
.bar-nav { display: none; flex: 1; justify-content: center; gap: clamp(20px, 3vw, 48px); }
.bar-group { display: flex; gap: clamp(14px, 1.6vw, 24px); }
.bar-nav a { font-size: var(--step-small); font-weight: 500; text-decoration: none; padding: 10px 0; position: relative; color: color-mix(in srgb, var(--ink) 82%, transparent); transition: color var(--t-hover) ease; }
.bar-nav a[aria-current="page"] { color: var(--accent); }
.bar-end { display: none; align-items: center; gap: 20px; margin-left: auto; }
.open-state { font-size: var(--step-small); color: var(--muted); white-space: nowrap; }
.open-state.is-open, [data-open-state].is-open { color: var(--accent); }
.bar-menu { margin-left: auto; min-height: 44px; padding: 0 16px; border: 0; background: var(--surface-2); color: var(--ink); font-weight: 500; border-radius: 0; transition: transform var(--t-press) var(--ease-out); }
.bar-menu:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .bar-nav a:hover { color: var(--ink); } }
@media (min-width: 1180px) {
  .bar-nav { display: flex; }
  .bar-end { display: flex; margin-left: 0; gap: 28px; }
  .bar-menu { display: none; }
}

/* ---------- menu sheet (phone and narrow screens) ---------- */
.sheet { border: 0; padding: 0; margin: 0; width: 100%; max-width: none; height: 100%; max-height: none; background: var(--bg); color: var(--ink); }
.sheet::backdrop { background: rgba(0, 0, 0, 0.5); }
.sheet[open] { display: flex; flex-direction: column; opacity: 1; transform: none; transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out), overlay var(--t-ui) allow-discrete, display var(--t-ui) allow-discrete; }
@starting-style { .sheet[open] { opacity: 0; transform: translateY(-12px); } }
.sheet-top { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 var(--m); }
.sheet-close { min-height: 44px; padding: 0 16px; border: 0; background: var(--surface-2); color: var(--ink); border-radius: 0; font-weight: 500; }
.sheet-links { padding: 24px var(--m); display: grid; gap: 4px; }
.sheet-links a { display: block; font: 700 clamp(1.75rem, 7.6vw, 3rem)/1.15 var(--display); letter-spacing: -0.03em; text-decoration: none; padding: 6px 0; }
.sheet-links a[aria-current="page"] { color: var(--accent); }
.sheet-info { margin-top: auto; padding: 24px var(--m) calc(32px + env(safe-area-inset-bottom)); color: var(--muted); display: grid; gap: 6px; font-size: var(--step-small); }

/* ---------- phone dock: call and Viber, always ---------- */
.dock { position: fixed; inset: auto 0 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr; padding-bottom: env(safe-area-inset-bottom); background: var(--bg); view-transition-name: dock; }
/* hidden while the first screen shows its own button and both numbers; slides up once they scroll away (app.js).
   Without script it simply stays. Leaving is quicker than arriving. */
html.js .dock:not(.is-on) { transform: translateY(100%); visibility: hidden; transition: transform 220ms var(--ease-exit), visibility 0s linear 220ms; }
html.js .dock.is-on { transform: none; visibility: visible; transition: transform 380ms var(--ease-out), visibility 0s; }
.dock a { display: flex; align-items: center; justify-content: center; min-height: 58px; font-weight: 600; text-decoration: none; transition: transform var(--t-press) var(--ease-out); }
.dock a:active { transform: scale(0.97); }
.dock-call { background: var(--accent); color: var(--accent-ink); }
.dock-viber { background: var(--surface-2); color: var(--ink); }
@media (max-width: 899px) { :root { --dock-h: calc(58px + env(safe-area-inset-bottom)); --bar-h: 60px; } }
@media (min-width: 900px) { .dock { display: none; } }

/* ---------- sections ---------- */
.sec { padding-inline: var(--m); margin-top: var(--gap); }
.paper { background: var(--paper); color: var(--paper-ink); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }

/* ---------- hero (every page) ---------- */
.hero { padding: calc(var(--bar-h) + 6vh) var(--m) clamp(32px, 6vh, 64px); min-height: 100svh; display: flex; }
.hero-in { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 0.62fr) auto minmax(0, 1fr) auto; }
.hero-title {
  grid-row: 2; margin: 0;
  --hero-size: min(calc((100vw - 2 * var(--m)) / (var(--chars, 17) * 0.68)), 14rem);
  font: 800 var(--hero-size)/0.98 var(--display); letter-spacing: -0.04em;
}
.hero-title .line { display: block; overflow: clip; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero-title .line > span { display: inline-block; white-space: nowrap; }
.hero-foot { grid-row: 4; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; margin-top: clamp(28px, 5vh, 56px); }
.hero-sub { grid-column: 1 / span 5; font-size: var(--step-lead); line-height: 1.38; max-width: 34ch; }
.hero-act { grid-column: 8 / -1; justify-self: end; display: flex; align-items: center; gap: 28px; }
.hero-act .link { font-size: var(--step-body); }
.hero-phones { display: grid; gap: 6px; }
.open-pill { display: block; margin-top: 10px; font-size: var(--step-body); color: var(--muted); }
/* a hero with a full-screen picture or clip behind its words */
.hero.has-media { position: relative; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: clip; background: #0d0d0d; }
.hero-media picture, .hero-media img, .hero-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { /* taste-skill-ignore: neutral scrim so the words read on the picture */ content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 12, 12, 0.9) 0%, rgba(12, 12, 12, 0.35) 55%, rgba(12, 12, 12, 0.55) 100%), linear-gradient(rgba(12, 12, 12, 0.38), rgba(12, 12, 12, 0.38)); }
@media (prefers-reduced-motion: no-preference) { .js .hero-media > * { animation: hero-settle 1800ms var(--ease-expo) both; } }
@keyframes hero-settle { from { transform: scale(1.07); } to { transform: none; } }
@media (max-width: 899px) {
  .hero.has-media { min-height: 100svh; }
  .hero.has-media .hero-in { grid-template-rows: minmax(0, 1fr) auto auto auto; }
}
@media (max-width: 899px) {
  .hero { min-height: 0; padding-top: calc(var(--bar-h) + 15vh); padding-bottom: 48px; }
  .hero-in { grid-template-rows: auto auto auto auto; }
  .hero-foot { display: block; }
  .hero-sub { max-width: 36ch; font-size: var(--step-body); }
  .hero-act { margin-top: 24px; justify-self: start; justify-content: flex-start; gap: 22px; flex-wrap: wrap; }
}

/* where you are, above a group page's heading */
.hero-crumbs { grid-row: 1; align-self: end; margin-bottom: clamp(14px, 2.4vh, 28px); display: flex; flex-wrap: wrap; gap: 0 0.55em; font-size: var(--step-body); color: var(--muted); }
.hero-crumbs a { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.hero-crumbs [aria-current] { color: var(--ink); }

/* ---------- held stage for scroll scenes (the VIN scene) ---------- */
.scene { position: relative; }
.scene > .scene-stage { position: relative; }
.scene.is-live > .scene-stage { position: sticky; top: 0; height: 100svh; overflow: clip; contain: layout paint; }
html.js .scene.is-live { height: calc((var(--hold, 2) + 1) * 100svh); }
.scene.is-live [data-move] { will-change: transform; }
.lineup-top p, .makes-top p, .compare-top p, .related-top p, .wall-top p, .pbx-top p { max-width: 50ch; }

/* ---------- intro: lead line over four columns (paper) ---------- */
.intro { margin-top: 0; padding-block: clamp(96px, 10vw, 150px) 40px; background: var(--paper); color: var(--paper-ink); }
.intro .head { max-width: 18ch; }
.intro-lead { margin-top: 40px; font: 500 var(--step-lead)/1.3 var(--text); letter-spacing: -0.01em; max-width: 52ch; }
.intro-cols { margin-top: 72px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col-gap); font-size: var(--step-body); line-height: 1.5; }
.intro-cols p { color: var(--paper-ink); }
.intro-cols strong { color: var(--paper-ink); }
@media (max-width: 899px) { .intro-cols { grid-template-columns: 1fr; gap: 28px; margin-top: 48px; } }

/* ---------- makes: three giant words (paper, continues the intro) ---------- */
.makes { margin-top: 0; padding-block: clamp(96px, 10vw, 150px) clamp(64px, 6vw, 96px); background: var(--paper); color: var(--paper-ink); }
.makes-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.makes-top .head { grid-column: 1 / span 6; }
.makes-top p { grid-column: 7 / -1; padding-top: 0.4em; max-width: 50ch; }
.makes-list { margin-top: 12vh; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(96px, 6vw, 104px); }
.make { display: block; min-width: 0; text-decoration: none; color: inherit; }
.make-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; margin-top: 14px; font-size: var(--step-body); }
.make-wmi { font: 800 var(--step-lead)/1 var(--display); letter-spacing: -0.02em; }
.make-models { color: var(--paper-muted); }
.make-go { margin-left: auto; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(20, 20, 20, 0.3); text-underline-offset: 0.2em; }
.make-word { display: block; overflow: clip; font: 800 calc((100vw - 2 * var(--m)) / 6.1)/1.08 var(--display); letter-spacing: -0.045em; text-transform: uppercase; }
.mw-in, .mw-in > span { display: block; }
.mw-in { transition: transform 520ms var(--ease-expo); }
@media (hover: hover) and (pointer: fine) {
  .make:hover .mw-in { transform: translateY(-0.12em); }
  .make:hover .make-go { text-decoration-color: currentColor; }
}
@media (max-width: 899px) {
  .makes-top { display: block; }
  .makes-top p { margin-top: 20px; }
  .makes-list { margin-top: 56px; }
  .make-go { margin-left: 0; }
}

/* ---------- full-width band ---------- */
.band { position: relative; margin: var(--gap) 0 0; overflow: clip; }
.band picture, .band img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.band figcaption { padding: 14px var(--m) 0; font-size: var(--step-small); color: var(--muted); }
.makes + .band { margin-top: 0; }
@media (max-width: 899px) { .band picture, .band img { aspect-ratio: 4 / 3; } }

/* ---------- line-up: parts groups and models at one size ---------- */
.lineup-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; }
.lineup-top .head { grid-column: 1 / span 6; }
.lineup-top p { grid-column: 7 / -1; max-width: 50ch; }
.lineup-table { width: 100%; margin-top: 64px; border-collapse: collapse; font: 500 var(--step-lead)/1.3 var(--text); letter-spacing: -0.01em; }
.lineup-table th, .lineup-table td { padding: 0.32em 0; text-align: left; vertical-align: baseline; font-weight: 500; }
.lineup-table tbody th { width: 33%; padding-right: 24px; }
.lineup-table tbody td { padding-right: 24px; color: var(--muted); }
.lineup-table .lineup-go, .lineup-table .num { text-align: right; padding-right: 0; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lineup-table thead th { font: 500 var(--step-small)/1.4 var(--text); color: var(--muted); padding-bottom: 14px; }
.lineup-table thead th:last-child { text-align: right; }
.lineup-table a { text-decoration: none; }
@media (max-width: 899px) {
  .lineup-top { display: block; }
  .lineup-top p { margin-top: 18px; }
  .lineup-table { margin-top: 40px; font-size: 1.25rem; }
  .lineup-table tbody tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 0; }
  .lineup-table tbody th { width: auto; padding: 0; }
  .lineup-table tbody td { padding: 0; }
  .lineup-table tbody td:nth-of-type(1) { grid-column: 1 / -1; grid-row: 2; font-size: var(--step-small); }
  .lineup-table .lineup-go { grid-row: 1; grid-column: 2; font-size: var(--step-small); align-self: center; }
  .models .lineup-table thead { display: none; }
  .models .lineup-table .num { grid-row: 1; grid-column: 2; font-size: var(--step-small); color: var(--muted); }
}

/* ---------- VIN scene ---------- */
.vin-stage { display: flex; flex-direction: column; justify-content: center; gap: clamp(32px, 6vh, 64px); }
.vin.is-live .vin-stage { padding: calc(var(--bar-h) + 2vh) var(--m) 6vh; }
.vin-title { max-width: 16ch; font-size: clamp(2.25rem, 1rem + 4.6vw, 6rem); }
.vin { --vin-cols: repeat(3, minmax(0, 1fr)) clamp(6px, 1.2vw, 18px) repeat(6, minmax(0, 1fr)) clamp(6px, 1.2vw, 18px) repeat(8, minmax(0, 1fr)); }
.vin-plate { display: grid; grid-template-columns: var(--vin-cols); gap: clamp(4px, 0.5vw, 8px); }
.vin-group { display: contents; }
.vin .ch {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 0.7;
  background: var(--surface); color: var(--ink);
  font: 800 calc((100vw - 2 * var(--m)) / 18.6 * 0.7)/1 var(--display); letter-spacing: 0;
  transition: background-color 300ms ease, color 300ms ease;
}
.vin-group[data-g="1"] .ch:first-child { grid-column-start: 5; }
.vin-group[data-g="2"] .ch:first-child { grid-column-start: 12; }
.vin-group.is-lit .ch { background: var(--accent); color: var(--accent-ink); }
.vin-group.was-lit .ch { color: var(--accent); }
.vin-beats { display: grid; grid-template-columns: var(--vin-cols); gap: clamp(4px, 0.5vw, 8px); font-size: var(--step-body); }
.vin-beats li { padding-right: 16px; transition: opacity 300ms ease; }
.vin-beats li[data-beat="0"] { grid-column: 1 / span 3; }
.vin-beats li[data-beat="1"] { grid-column: 5 / span 6; }
.vin-beats li[data-beat="2"] { grid-column: 12 / span 8; }
.vin-beats strong { display: block; color: var(--accent); font-weight: 600; }
.vin.is-live .vin-beats li { opacity: 0.28; }
.vin.is-live .vin-beats li.is-on { opacity: 1; }
.vin-note { font-size: var(--step-small); color: var(--muted); }
@media (max-width: 899px) {
  .vin-plate { grid-template-columns: repeat(9, minmax(0, 1fr)); row-gap: 8px; }
  .vin .ch { font-size: calc((100vw - 2 * var(--m)) / 9 * 0.6); }
  .vin-group[data-g="1"] .ch:first-child { grid-column-start: auto; }
  .vin-group[data-g="2"] .ch:first-child { grid-column-start: 1; }
  .vin-beats { display: grid; grid-template-columns: 1fr; gap: 14px; font-size: var(--step-body); }
  .vin-beats li[data-beat] { grid-column: 1; }
}

/* ---------- steps: lines that step across, with the VIN reader in the free corner ---------- */
.steps { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.vin + .steps { margin-top: clamp(48px, 6vw, 96px); }
.steps-list { grid-column: 1 / -1; grid-row: 1 / span 4; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; row-gap: 56px; }
.step:nth-child(1) { grid-column: 1 / span 8; grid-row: 1; }
.step:nth-child(2) { grid-column: 3 / span 8; grid-row: 2; }
.step:nth-child(3) { grid-column: 5 / span 8; grid-row: 3; }
.step:nth-child(4) { grid-column: 7 / span 6; grid-row: 4; }
.step-line { font: 700 var(--step-head)/1.02 var(--display); letter-spacing: -0.035em; text-wrap: balance; }
.step p { margin-top: 12px; max-width: 40ch; }
.step:nth-child(4) .step-line { color: var(--accent); }
.steps-try { grid-column: 1 / span 4; grid-row: 3 / span 2; align-self: end; }
.try-title { font: 600 var(--step-lead)/1.2 var(--text); margin-bottom: 16px; }
@media (max-width: 1099px) {
  .steps { display: block; }
  .steps-list { display: grid; row-gap: 40px; }
  .step:nth-child(n) { grid-column: auto; grid-row: auto; }
  .step:nth-child(2) { padding-left: 6vw; }
  .step:nth-child(3) { padding-left: 12vw; }
  .step:nth-child(4) { padding-left: 18vw; }
  .steps-try { margin-top: 64px; }
}

/* ---------- VIN reader ---------- */
.vin-reader { display: grid; gap: 12px; }
.vin-label { font-size: var(--step-small); font-weight: 500; color: var(--muted); }
.vin-input {
  width: 100%; min-height: 56px; padding: 0 16px; border: 2px solid #3a3a3a; border-radius: 0; background: var(--surface);
  font: 700 1.125rem/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink);
  transition: border-color var(--t-hover) ease;
}
.vin-input::placeholder { font: 400 1rem/1 var(--text); letter-spacing: 0; text-transform: none; color: #8a867e; }
.vin-input:focus { outline: none; border-color: var(--accent); }
.vin-cells { display: grid; grid-template-columns: repeat(17, minmax(0, 1fr)); gap: 3px; }
.vin-cells span { height: 30px; display: flex; align-items: center; justify-content: center; background: var(--surface); font: 700 0.8125rem/1 var(--display); color: var(--ink); transition: background-color 160ms ease, color 160ms ease; }
.vin-cells span.is-wmi { background: var(--accent); color: var(--accent-ink); }
.vin-cells span.is-bad { background: #6b2a1f; color: #fff; }
.vin-msg { font-size: var(--step-body); color: var(--muted); min-height: 3em; }
.vin-msg.is-good { color: var(--accent); }
.vin-reader .btn { justify-self: start; }
.vin-reader .btn[aria-disabled="true"] { background: var(--surface-2); color: var(--muted); pointer-events: none; }

/* ---------- proof: the rating and the shop card as a table ---------- */
.proof { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.proof-head { grid-column: 1 / span 7; }
.proof-title { font: 800 clamp(3.5rem, 2rem + 7vw, 9.5rem)/0.95 var(--display); letter-spacing: -0.045em; }
.proof-title > span { display: block; }
.proof-indent { padding-left: calc((100vw - 2 * var(--m)) / 12 * 2); font-size: 0.5em; letter-spacing: -0.035em; margin-top: 0.2em; }
.proof-sub { margin-top: 28px; max-width: 40ch; }
.proof-pic { grid-column: 9 / -1; grid-row: 1 / span 2; margin: 0; }
.proof-pic picture, .proof-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.proof-pic figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
.facts { grid-column: 1 / span 8; margin-top: 72px; width: 100%; border-collapse: collapse; font-size: var(--step-body); }
.facts th, .facts td { padding: 14px 16px; text-align: left; font-weight: 400; vertical-align: top; }
.facts th { font-weight: 600; width: 22%; }
.facts tr:nth-child(odd) { background: var(--surface); }
.facts td:last-child { text-align: right; }
@media (max-width: 899px) {
  .proof { display: block; }
  .proof-pic { margin-top: 40px; }
  .facts { margin-top: 40px; font-size: var(--step-body); }
  .facts tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 14px; }
  .facts th, .facts td { padding: 0; width: auto; }
  .facts th { grid-column: 1 / -1; }
  .facts td:nth-of-type(2) { color: var(--muted); }
  .facts td:last-child { grid-column: 2; grid-row: 2; }
}

/* ---------- call: the phone number as display type, on the amber field ---------- */
.call {
  margin-top: var(--gap); min-height: 86svh; padding: clamp(40px, 6vw, 72px) var(--m) clamp(32px, 4vw, 56px);
  background: var(--accent); color: var(--accent-ink);
  display: grid; grid-template-rows: auto 1fr auto auto; row-gap: 24px;
}
.band + .call { margin-top: 0; }
.call-top { font: 500 var(--step-lead)/1.3 var(--text); max-width: 26ch; }
.call-number { grid-row: 3; font: 800 calc((100vw - 2 * var(--m)) / 8.6)/0.92 var(--display); letter-spacing: -0.05em; white-space: nowrap; }
.call-number a { text-decoration: none; display: block; width: max-content; transition: transform 420ms var(--ease-expo); }
.call-number a + a { margin-top: max(0.3em, 16px); }
.call-foot { grid-row: 4; display: flex; justify-content: space-between; gap: 24px; font-size: var(--step-body); }
.call-links { text-align: right; }
.call a { text-decoration-color: rgba(20, 20, 20, 0.35); }
@media (hover: hover) and (pointer: fine) { .call-number a:hover { transform: translateX(0.04em); } }
@media (max-width: 899px) {
  .call { min-height: 80svh; }
  .call-foot { display: grid; gap: 14px; }
  .call-links { text-align: left; }
}

/* ---------- brand page: the sliding word and the code ---------- */
.word { padding-inline: 0; overflow: clip; }
.word-giant { font: 800 clamp(5rem, 24vw, 26rem)/0.9 var(--display); letter-spacing: -0.05em; text-transform: uppercase; white-space: nowrap; color: var(--ink); }
.word-giant > span { display: inline-block; padding-left: var(--m); }
.word-code { padding-inline: var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; margin-top: 32px; }
.word-wmi { grid-column: 1 / span 5; font: 800 clamp(4rem, 2rem + 9vw, 11rem)/0.9 var(--display); letter-spacing: -0.04em; color: var(--accent); }
.word-text { grid-column: 7 / -1; font-size: var(--step-lead); line-height: 1.38; max-width: 34ch; }
@media (max-width: 899px) { .word-code { display: block; } .word-text { margin-top: 20px; } }

/* ---------- compare: model and year against the VIN (paper) ---------- */
.compare { overflow-x: clip; padding-block: clamp(96px, 10vw, 150px) 0; background: var(--paper); color: var(--paper-ink); }
.compare-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.compare-top .head { grid-column: 1 / span 6; }
.compare-top p { grid-column: 7 / -1; max-width: 50ch; padding-top: 0.3em; }
.compare-pair { margin-top: 12vh; padding-bottom: clamp(64px, 7vw, 112px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.spec { min-width: 0; }
.spec { grid-column: 1 / span 6; }
.spec-b { grid-column: 7 / -1; }
.spec-cap { font-size: var(--step-body); margin-top: 16px; color: var(--paper-ink); }
.spec-b .spec-cap { color: var(--paper-ink); font-weight: 600; }
.spec-word { font: 800 min(calc((50vw - var(--m) - 12px) / (var(--chars, 4) * 0.74)), 15rem)/0.95 var(--display); letter-spacing: -0.05em; white-space: nowrap; }
@media (max-width: 899px) {
  .compare-top { display: block; }
  .compare-top p { margin-top: 18px; }
  .compare-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 48px; }
  .spec, .spec-b { grid-column: 1; }
  .spec-word { font-size: min(calc((100vw - 2 * var(--m) - 32px) / (var(--chars, 4) * 0.74)), 30vw); }
  .spec-b { background: var(--paper-ink); color: var(--paper); padding: 20px 16px 18px; }
  .spec-b .spec-cap { color: var(--paper); }
}

/* ---------- engines: one per line, with a picture ---------- */
.engines { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.engines-text { grid-column: 1 / span 7; }
.engines-list { margin-top: 48px; }
.engines-list li { font: 700 var(--step-head)/1.12 var(--display); letter-spacing: -0.035em; }
.engines-note { margin-top: 40px; max-width: 46ch; }
.engines-pic { grid-column: 9 / -1; margin: 0; position: sticky; top: calc(var(--bar-h) + 24px); }
.engines-pic picture, .engines-pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.engines-pic figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
@media (max-width: 899px) { .engines { display: block; } .engines-pic { position: static; margin-top: 48px; } }

/* ---------- next page ---------- */
.next { padding-block: clamp(64px, 8vw, 120px); margin-top: 0; }
.next-link { display: grid; gap: 8px; text-decoration: none; }
.next-cap { color: var(--muted); }
.next-name { font: 800 clamp(2.25rem, 1rem + 6vw, 7rem)/1 var(--display); letter-spacing: -0.045em; transition: color var(--t-hover) ease, transform 520ms var(--ease-expo); }
@media (hover: hover) and (pointer: fine) { .next-link:hover .next-name { color: var(--accent); transform: translateX(0.12em); } }

/* ---------- other makes ---------- */
.related-top, .wall-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.related-top .head, .wall-top .head { grid-column: 1 / span 6; }
.related-top p, .wall-top p { grid-column: 7 / -1; max-width: 50ch; padding-top: 0.3em; }
.related-list { margin-top: 64px; display: grid; gap: 8px; }
.related-list li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; padding: 28px 0; }
.rel-head { grid-column: 1 / span 6; }
.related-list li:nth-child(odd) { background: var(--surface); margin-inline: calc(var(--m) * -1); padding-inline: var(--m); }
.rel-pair { font: 700 var(--step-head)/1.05 var(--display); letter-spacing: -0.035em; }
.rel-with { margin-top: 8px; font-size: var(--step-lead); color: var(--accent); }
.rel-text { grid-column: 7 / -1; max-width: 48ch; }
.wall-list { margin-top: 112px; display: flex; flex-wrap: wrap; gap: 0.1em 0.55em; font: 700 var(--step-head)/1.12 var(--display); letter-spacing: -0.035em; }
.wall-list li:nth-child(3n + 2) { color: var(--muted); }
.wall-try { margin-top: 72px; max-width: 560px; }
.wall-try > p { margin-bottom: 20px; }
@media (max-width: 899px) {
  .related-top, .wall-top { display: block; }
  .related-top p, .wall-top p { margin-top: 18px; }
  .related-list li { display: block; }
  .gm-list a { grid-template-columns: 88px minmax(0, 1fr); }
  .gm-thumb img { width: 88px; }
  .rel-text { margin-top: 12px; }
}

/* ---------- groups as boxes in a sideways slider (home, brand and group pages) ---------- */
.gs-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; }
.gs-top .head { grid-column: 1 / span 5; }
.gs-top p { grid-column: 6 / span 5; max-width: 50ch; }
.gs-nav { grid-column: 11 / -1; justify-self: end; display: flex; gap: 8px; }
.gs-btn {
  width: 56px; height: 56px; display: grid; place-items: center; border: 0; border-radius: 0;
  background: var(--surface-2); color: var(--ink); font: 500 var(--step-lead)/1 var(--text);
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease, opacity var(--t-hover) ease;
}
.gs-btn:active { transform: scale(0.95); }
.gs-btn[aria-disabled="true"] { opacity: 0.35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .gs-btn:not([aria-disabled="true"]):hover { background: var(--accent); color: var(--accent-ink); } }
.gs-track {
  display: flex; gap: var(--col-gap); margin: 48px 0 0; padding: 0 0 4px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gs-track::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) { .gs-track { cursor: grab; } }
.gs-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gtile { flex: 0 0 calc((100% - 3 * var(--col-gap)) / 4); scroll-snap-align: start; }
@media (max-width: 1099px) { .gtile { flex-basis: calc((100% - 2 * var(--col-gap)) / 3); } }
.gtile a {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: clip; background: var(--surface); color: var(--ink);
  text-decoration: none; user-select: none; -webkit-user-select: none; transition: transform var(--t-press) var(--ease-out);
}
.gtile a:active { transform: scale(0.985); }
.gtile-media, .gtile-media picture { position: absolute; inset: 0; }
.gtile-media img, .gtile-video { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-expo); -webkit-user-drag: none; }
.gtile a::after { /* taste-skill-ignore: neutral scrim under the name on the photograph */ content: ""; position: absolute; inset: 36% 0 0; background: linear-gradient(to top, rgba(10, 10, 10, 0.94), rgba(10, 10, 10, 0)); pointer-events: none; }
.gtile-body { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 1; display: grid; gap: 8px; }
.gtile-name { font: 700 var(--step-lead)/1.1 var(--display); letter-spacing: -0.025em; }
.gtile-items { color: color-mix(in srgb, var(--ink) 84%, transparent); }
.gtile-go, .gbox-go, .pbox-go { font-weight: 600; color: var(--accent); }
.gtile-go::after, .gbox-go::after, .pbox-go::after { content: "\2192"; display: inline-block; margin-left: 0.4em; transition: transform var(--t-ui) var(--ease-out); }
.gtile-go { margin-top: 6px; }
@media (hover: hover) and (pointer: fine) {
  .gtile a:hover img, .gtile a:hover .gtile-video { transform: scale(1.05); }
  .gtile a:hover .gtile-go::after, .gbox a:hover .gbox-go::after, .pbox:hover .pbox-go::after { transform: translateX(5px); }
}
@media (max-width: 899px) {
  .gs-top { display: block; }
  .gs-top p { margin-top: 16px; }
  .gs-nav { margin-top: 20px; justify-content: flex-start; }
  .gs-track { margin-top: 28px; }
  .gtile { flex-basis: 78vw; }
}

/* ---------- parts page: an index of big boxes, each leading to its group ---------- */
.gidx { margin-top: clamp(56px, 7vw, 112px); }
.gidx-list { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--col-gap); }
.gbox:nth-child(4n + 1), .gbox:nth-child(4n + 4) { grid-column: span 7; }
.gbox:nth-child(4n + 2), .gbox:nth-child(4n + 3) { grid-column: span 5; }
.gbox a { display: flex; flex-direction: column; height: 100%; background: var(--surface); color: var(--ink); text-decoration: none; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.gbox a:active { transform: scale(0.99); }
.gbox-pic { display: block; height: clamp(220px, 23vw, 340px); overflow: clip; }
.gbox-pic picture, .gbox-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-expo); }
.gbox-body { flex: 1; display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; padding: clamp(24px, 2.4vw, 36px); }
.gbox-name { font: 700 clamp(1.75rem, 1rem + 1.9vw, 2.75rem)/1.05 var(--display); letter-spacing: -0.035em; }
.gbox-text { max-width: 44ch; }
.gbox-items { color: var(--muted); max-width: 56ch; }
@media (hover: hover) and (pointer: fine) {
  .gbox a:hover { background: #1f1f1f; }
  .gbox a:hover .gbox-pic img { transform: scale(1.04); }
}
@media (max-width: 899px) {
  .gidx-list { grid-template-columns: minmax(0, 1fr); }
  .gbox:nth-child(n) { grid-column: auto; }
  .gbox-pic { height: auto; aspect-ratio: 16 / 10; }
}

/* ---------- group page: the parts as boxes, the makes, the other groups ---------- */
.pbx-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; }
.pbx-top .head { grid-column: 1 / span 6; }
.pbx-top p { grid-column: 7 / -1; }
.pbx-list { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.pbx-list li { display: flex; }
.pbox {
  flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 248px; padding: clamp(24px, 2.4vw, 36px);
  background: var(--surface); color: var(--ink); text-decoration: none;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.pbox:active { transform: scale(0.985); }
.pbox-name { font: 700 var(--step-lead)/1.15 var(--display); letter-spacing: -0.025em; }
.pbox-note { max-width: 38ch; }
.pbox-go { margin-top: auto; padding-top: 12px; }
@media (hover: hover) and (pointer: fine) { .pbox:hover { background: #1f1f1f; } }
.forcars { padding-block: clamp(96px, 10vw, 150px); }
.fc-list { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.fc-list a { display: grid; gap: 10px; text-decoration: none; color: var(--paper-ink); }
.fc-name { font: 800 clamp(1.75rem, 1rem + 2.4vw, 3.25rem)/1 var(--display); letter-spacing: -0.04em; transition: transform 520ms var(--ease-expo); }
.fc-meta { color: var(--paper-muted); }
@media (hover: hover) and (pointer: fine) { .fc-list a:hover .fc-name { transform: translateX(0.06em); } }
.forcars + .gs { margin-top: var(--gap); }
@media (max-width: 1099px) { .pbx-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) { .pbx-top { display: block; } .pbx-top p { margin-top: 18px; } }
@media (max-width: 599px) { .pbx-list { grid-template-columns: minmax(0, 1fr); } .pbox { min-height: 0; } .fc-list { grid-template-columns: minmax(0, 1fr); } }

/* the three pictures on "other makes" now lead to their groups */
.strip-list a { display: block; text-decoration: none; color: inherit; }
.strip-list a img { transition: transform 900ms var(--ease-expo); }
.strip-list li { overflow: clip; }
@media (hover: hover) and (pointer: fine) { .strip-list a:hover img { transform: scale(1.03); } }

/* ---------- questions (home, paper): the question on the left, the short answer on the right ---------- */
.faq { padding-block: clamp(96px, 10vw, 150px); }
.faq-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; }
.faq-top .head { grid-column: 1 / span 6; }
.faq-top p { grid-column: 7 / -1; max-width: 44ch; }
.faq-list { margin: 64px 0 0; }
.faq-item { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); padding-block: 28px; }
/* every other question on a band of deeper paper, edge to edge, like the lists on the dark pages */
.faq-item:nth-child(odd) { background: var(--paper-2); margin-inline: calc(var(--m) * -1); padding-inline: var(--m); }
.faq-item dt { grid-column: 1 / span 5; font: 600 var(--step-lead)/1.25 var(--text); letter-spacing: -0.01em; text-wrap: balance; }
.faq-item dd { grid-column: 7 / -1; margin: 0; max-width: 58ch; padding-top: 0.15em; }
.faq + .call { margin-top: 0; }
@media (max-width: 899px) {
  .faq-top { display: block; }
  .faq-top p { margin-top: 20px; }
  .faq-list { margin-top: 40px; }
  .faq-item { grid-template-columns: minmax(0, 1fr); row-gap: 10px; padding-block: 22px; }
  .faq-item dt, .faq-item dd { grid-column: 1; }
}

/* ---------- kinds (paper) ---------- */
.kinds { padding-block: clamp(96px, 10vw, 150px); background: var(--paper); color: var(--paper-ink); }
.kinds .head { max-width: 20ch; }
.kinds-cols { margin-top: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.kinds-cols p { max-width: 60ch; }
.kinds-cols h3 { font: 600 var(--step-lead)/1.2 var(--text); margin-bottom: 12px; }
.kinds + .call { margin-top: 0; }
@media (max-width: 899px) { .kinds-cols { grid-template-columns: 1fr; gap: 36px; margin-top: 40px; } }

/* ---------- gallery ---------- */
.gal { margin-top: 0; }
.gal-flag { font-size: var(--step-lead); color: var(--accent); }
.gal-note { margin: 16px 0 48px; max-width: 64ch; }
html.is-clean .gal-flag { color: var(--muted); }
.gal-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--col-gap); grid-auto-flow: dense; }
.gal-item { grid-column: span 4; }
.gal-item.g-wide { grid-column: span 8; }
.gal-item.g-tall { grid-column: span 4; grid-row: span 2; }
.gal-btn { display: block; width: 100%; padding: 0; border: 0; background: none; overflow: clip; cursor: zoom-in; }
.gal-btn img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 700ms var(--ease-expo); }
.g-tall .gal-btn img { aspect-ratio: auto; height: 100%; }
.g-tall .gal-btn, .g-tall picture { height: calc(100% - 2.2em); }
.gal-cap { margin-top: 10px; font-size: var(--step-body); }
@media (hover: hover) and (pointer: fine) { .gal-btn:hover img { transform: scale(1.03); } }
@media (max-width: 899px) {
  .gal-grid { grid-template-columns: 1fr 1fr; }
  .gal-item, .gal-item.g-wide { grid-column: 1 / -1; }
  .gal-item.g-tall, .gal-item.g-sq { grid-column: span 1; grid-row: auto; }
  .g-tall .gal-btn img, .g-sq .gal-btn img { aspect-ratio: 4 / 5; height: auto; }
  .g-tall .gal-btn, .g-tall picture { height: auto; }
}
.credit-table { margin-top: 48px; width: 100%; border-collapse: collapse; font-size: var(--step-body); }
.credit-table th, .credit-table td { text-align: left; padding: 12px 16px; font-weight: 400; }
.credit-table thead th { color: var(--muted); font-size: var(--step-small); }
.credit-table tbody tr:nth-child(odd) { background: var(--surface); }
.credits p { margin-top: 24px; max-width: 60ch; }
@media (max-width: 899px) {
  .credit-table thead { display: none; }
  .credit-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 10px 12px; }
  .credit-table th, .credit-table td { padding: 0; }
  .credit-table th { grid-column: 1 / -1; }
}
.lightbox { border: 0; padding: 0; margin: 0; width: 100%; max-width: none; height: 100%; max-height: none; background: rgba(10, 10, 10, 0.97); color: var(--ink); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; opacity: 1; transition: opacity var(--t-ui) var(--ease-out), overlay var(--t-ui) allow-discrete, display var(--t-ui) allow-discrete; }
@starting-style { .lightbox[open] { opacity: 0; } }
.lightbox figure { min-height: 0; display: grid; grid-template-rows: 1fr auto; padding: 24px var(--m) 0; }
.lightbox img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.lightbox figcaption { padding-top: 12px; font-size: var(--step-small); }
.lb-credit { color: var(--muted); }
.lb-act { display: flex; gap: 10px; justify-content: flex-end; padding: 16px var(--m) calc(16px + env(safe-area-inset-bottom)); }

/* ---------- contact ---------- */
.ways { margin-top: 0; }
.ways-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col-gap); }
.ways-list li { background: var(--surface); padding: 28px 24px 32px; display: grid; gap: 10px; align-content: start; }
.ways-cap { color: var(--muted); font-size: var(--step-body); }
.ways-big + .ways-big { margin-top: -4px; }
.ways-big { font: 700 var(--step-lead)/1.15 var(--display); letter-spacing: -0.03em; text-decoration: none; }
.ways-muted { font-size: var(--step-body); font-family: var(--text); }
@media (max-width: 1099px) { .ways-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .ways-list { grid-template-columns: 1fr; } }

.ask { padding-block: clamp(96px, 10vw, 150px); background: var(--paper); color: var(--paper-ink); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.ask-side { grid-column: 1 / span 4; position: sticky; top: calc(var(--bar-h) + 24px); display: grid; gap: 20px; }
.ask-side p { color: var(--paper-ink); max-width: 44ch; }
.ask-form { grid-column: 6 / -1; display: grid; gap: 24px; }
.ask fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ask legend, .field label, .ask .vin-label { display: block; font-size: var(--step-body); font-weight: 600; color: var(--paper-ink); margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 52px; padding: 0 20px; background: #fff; border: 2px solid #d6d2c9; font-weight: 500; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, border-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.chip input:checked + span { background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink); }
.chip input:focus-visible + span { outline: 3px solid #b77a0b; outline-offset: 2px; }
.chip:active span { transform: scale(0.97); }
.ask-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gap); }
.field { display: grid; }
.ask input:not([type="radio"]), .ask textarea {
  width: 100%; min-height: 56px; padding: 14px 16px; border: 2px solid #d6d2c9; border-radius: 0; background: #fff; color: var(--paper-ink);
  font-size: var(--step-body); transition: border-color var(--t-hover) ease;
}
.ask textarea { resize: vertical; min-height: 104px; line-height: 1.45; }
.ask input:focus, .ask textarea:focus { outline: none; border-color: var(--paper-ink); }
.ask .vin-input { font-family: var(--display); font-weight: 700; letter-spacing: 0.04em; }
.ask .vin-input::placeholder, .ask input::placeholder, .ask textarea::placeholder { color: #8d887e; }
.ask .vin-cells span { background: var(--paper-2); color: var(--paper-ink); }
.ask .vin-cells span.is-wmi { background: var(--paper-ink); color: var(--accent); }
.ask .vin-msg { color: var(--paper-muted); min-height: 0; }
.ask .vin-msg.is-good { color: #6b4700; }
.ask-err { display: none; margin-top: 6px; font-size: var(--step-small); color: #a3321c; font-weight: 500; }
.ask-err.is-on { display: block; }
.is-invalid { border-color: #a3321c !important; }
.ask-legal { font-size: var(--step-body); color: var(--paper-ink); }
.ask-submit { justify-self: start; background: var(--paper-ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .ask-submit:hover { background: #2c2c2c; } .chip:hover span { border-color: var(--paper-ink); } }
.ask-ready { background: #fff; padding: 24px; display: grid; gap: 16px; }
.ask-ready[hidden], [hidden] { display: none !important; }
.ask-ready:focus { outline: none; }
.ask-ready h3 { font: 700 var(--step-lead)/1.2 var(--display); letter-spacing: -0.02em; }
.ask-msg { margin: 0; white-space: pre-wrap; font: 400 1rem/1.5 var(--text); background: var(--paper); padding: 16px; }
.ask-send { display: flex; flex-wrap: wrap; gap: 10px; }
.ask-send .btn-ghost { background: var(--paper-2); color: var(--paper-ink); }
.ask-hint { font-size: var(--step-small); color: var(--paper-muted); }
@media (max-width: 899px) {
  .ask { display: block; }
  .ask-side { position: static; margin-bottom: 40px; }
  .ask-row { grid-template-columns: 1fr; gap: 24px; }
}

.map { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.map-top { grid-column: 1 / span 4; display: grid; gap: 20px; }
.map-links { display: flex; gap: 24px; }
.map-frame { grid-column: 5 / -1; grid-row: 1 / span 3; aspect-ratio: 16 / 10; background: var(--surface); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.85) invert(0.9) hue-rotate(180deg) contrast(0.92); }
.hours { grid-column: 1 / span 4; margin-top: 32px; }
.map-pic { grid-column: 1 / span 4; margin: 40px 0 0; }
.map-pic picture, .map-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.map-pic figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
.ask-pic { margin: 12px 0 0; }
.ask-pic picture, .ask-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.strip-list { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.strip-list picture, .strip-list img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.strip-list p { margin-top: 14px; }
.strip-list strong { display: block; font: 700 var(--step-lead)/1.2 var(--display); letter-spacing: -0.02em; margin-bottom: 4px; }
.band + .ask { margin-top: 0; }
.hours th { width: auto; }
@media (max-width: 899px) {
  .map { display: block; }
  .map-frame { margin: 32px calc(var(--m) * -1) 0; aspect-ratio: 4 / 5; }
  .strip-list { grid-template-columns: 1fr; gap: 40px; margin-top: 36px; }
  .ask-pic { display: none; }
}

/* ---------- privacy ---------- */
.prose { margin-top: 0; }
.prose-in { max-width: 68ch; display: grid; gap: 14px; }
.prose-in h3 { margin-top: 28px; font: 700 var(--step-lead)/1.2 var(--display); letter-spacing: -0.02em; }

/* ---------- footer ---------- */
.foot { margin-top: var(--gap); padding: clamp(48px, 6vw, 88px) var(--m) calc(32px + var(--dock-h)); background: var(--surface); }
.call + .foot, .next + .foot { margin-top: 0; }
.foot-word { font: 800 calc((100vw - 2 * var(--m)) / 11.6)/0.9 var(--display); letter-spacing: -0.05em; white-space: nowrap; }
.foot-row { margin-top: 72px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.foot-id { grid-column: 1 / span 5; display: grid; gap: 36px; align-content: start; }
.foot-logo { width: clamp(160px, 16vw, 230px); height: auto; }
.foot-places { display: grid; gap: 18px; }
.foot-places a { font: 700 var(--step-lead)/1.25 var(--display); letter-spacing: -0.025em; color: var(--accent); text-decoration: none; }
.foot-cols { grid-column: 7 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); font-size: var(--step-body); }
.foot-cols ul, .foot-cols > div { display: grid; gap: 8px; align-content: start; }
.foot-h { font-weight: 600; margin-bottom: 4px; }
.foot-cols a { text-decoration: none; color: color-mix(in srgb, var(--ink) 82%, transparent); }
.foot-legal { margin-top: 96px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 12px; font-size: var(--step-small); color: var(--muted); }
.foot-legal p:nth-child(1) { grid-column: 1 / span 4; }
.foot-note { grid-column: 5 / span 5; }
.foot-links { grid-column: 10 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; }
@media (hover: hover) and (pointer: fine) { .foot-cols a:hover, .foot-links a:hover { color: var(--ink); } .foot-places a:hover { color: var(--accent-hi); } }
@media (max-width: 899px) {
  .foot-word { font-size: calc((100vw - 2 * var(--m)) / 7.6); }
  .foot-word > span { display: block; }
  .foot-row { display: block; margin-top: 48px; }
  .foot-cols { grid-template-columns: 1fr 1fr; margin-top: 40px; row-gap: 32px; }
  .foot-legal { display: grid; grid-template-columns: 1fr; margin-top: 56px; }
  .foot-legal p:nth-child(n) { grid-column: 1; }
  .foot-links { justify-content: flex-start; }
}

/* ---------- motion: the hero lines rise on load (no script needed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-expo) forwards; animation-delay: calc(80ms + var(--i) * 110ms); }
  .js .hero [data-load] { opacity: 0; transform: translateY(14px); animation: rise 560ms var(--ease-out) forwards; animation-delay: var(--d); }
  html.js:not(.reveal-all) [data-r]:not(.is-in) { opacity: 0; transform: translate3d(0, 26px, 0); }
  html.js [data-r].is-in { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out) var(--d, 0ms), transform 900ms var(--ease-expo) var(--d, 0ms); }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- page transitions ---------- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out 200ms var(--ease-exit) both; }
  ::view-transition-new(root) { animation: vt-in 460ms var(--ease-out) both; }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

/* ---------- reduced motion: the finished page, nothing travels ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-delay: 0ms !important; scroll-behavior: auto !important; }
  html.js .scene.is-live { height: auto; }
  html.js .scene.is-live > .scene-stage { position: relative; height: auto; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- demo panel ---------- */
.demo { border: 0; padding: 0; width: min(560px, calc(100% - 32px)); max-height: min(80svh, 720px); background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5); /* taste-skill-ignore: a real floating dialog */ }
.demo::backdrop { background: rgba(0, 0, 0, 0.55); }
.demo[open] { opacity: 1; transform: none; transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out), overlay var(--t-ui) allow-discrete, display var(--t-ui) allow-discrete; }
@starting-style { .demo[open] { opacity: 0; transform: scale(0.97); } }
.demo-in { padding: 28px; display: grid; gap: 14px; }
.demo h2 { font: 700 var(--step-lead)/1.2 var(--display); }
.demo h3 { font-size: var(--step-body); margin-top: 8px; color: var(--accent); }
.demo ul { display: grid; gap: 6px; font-size: var(--step-small); }
.demo li { padding-left: 14px; position: relative; }
.demo li::before { content: "–"; position: absolute; left: 0; color: var(--muted); }
.demo-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* ---------- print ---------- */
@media print { .bar, .dock, .vin, .gs-nav { display: none !important; } body { background: #fff; color: #000; } }
