/* JK Motors v2. Tokens first; see design/DESIGN.md for the reasoning.
   Colours come from the shop's own street sign: red J, blue K, black MOTORS. */
:root {
  --paper: #F5F6F8;
  --white: #FFFFFF;
  --ink: #10182B;
  --ink-2: #47516A;
  --navy: #0E1A3A;
  --blue: #1F4FD8;
  --blue-deep: #16399F;
  --red: #C81E2B;
  --red-deep: #A51722;
  --glass: #DCE6FB;
  --rule: #C9CFDB;
  --field: #7C879C;
  --gold: #F5B301;
  --ok: #1E8E4A;

  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);     /* content arriving */
  --ease-wipe: cubic-bezier(0.76, 0, 0.24, 1);     /* image wipes */
  --ease-ui: cubic-bezier(0.33, 1, 0.68, 1);       /* interface response */

  --nav-h: 68px;
  --gutter: clamp(16px, 4vw, 48px);
  --pad: max(var(--gutter), calc((100vw - 1320px) / 2));
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --text: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(1.0625rem, 0.25vw + 1rem, 1.1875rem);
  line-height: 1.6;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, table, address, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
fieldset { border: 0; min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 60; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 6px; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
h2 { font-stretch: 108%; font-weight: 800; font-size: clamp(2rem, 2.8vw + 0.9rem, 3.5rem); line-height: 1.02; letter-spacing: -0.03em; }
h3 { font-stretch: 106%; font-weight: 700; font-size: clamp(1.25rem, 0.6vw + 1.1rem, 1.5rem); line-height: 1.15; letter-spacing: -0.015em; }
.rise { overflow: hidden; padding-bottom: 0.08em; }
.rise > span { display: block; }
.stars { color: var(--gold); letter-spacing: 0.08em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 46px; padding: 0 20px;
  border: 2px solid transparent; border-radius: 10px;
  font-family: var(--display); font-stretch: 104%; font-weight: 700; font-size: 1rem;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 140ms var(--ease-ui), border-color 140ms var(--ease-ui), transform 140ms var(--ease-ui);
}
.btn:active { transform: scale(0.97); }
.btn--lg { min-height: 56px; padding: 0 26px; font-size: 1.0625rem; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-deep); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-deep); }
.btn--white { background: var(--white); color: var(--blue-deep); }
.btn--white:hover { background: var(--glass); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--red:focus-visible, .btn--blue:focus-visible { outline-color: var(--ink); }

/* ---------- top bar and navigation ---------- */
.topbar {
  display: flex; align-items: center; gap: 8px 28px;
  padding: 8px var(--pad);
  background: var(--ink); color: var(--white);
  font-size: 0.875rem;
}
.topbar__tag { font-family: var(--display); font-stretch: 110%; font-weight: 700; }
.topbar__hours { margin-left: auto; }
.topbar__tel { font-weight: 600; text-decoration: none; white-space: nowrap; }
.topbar__tel:hover { text-decoration: underline; }
.topbar a:focus-visible { outline-color: var(--white); }

.nav {
  position: sticky; top: 0; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--pad);
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { font-family: var(--display); font-stretch: 118%; font-weight: 900; font-size: 2rem; line-height: 1; letter-spacing: -0.06em; transform: skewX(-9deg); }
.logo__mark b { color: var(--red); font-weight: inherit; }
.logo__mark i { color: var(--blue); font-style: normal; }
.logo__words { display: grid; font-family: var(--display); font-stretch: 116%; font-weight: 800; font-size: 1.125rem; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; }
.logo__words small { margin-top: 4px; font-family: var(--text); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.04em; color: var(--ink-2); }
.logo--light .logo__words { color: var(--white); }
.logo--light .logo__words small { color: var(--glass); }
.logo--light .logo__mark i { color: #7FA2FF; }
.logo--light .logo__mark b { color: #FF6B76; }
.nav__links { margin-left: auto; display: flex; gap: clamp(14px, 1.8vw, 28px); font-weight: 500; font-size: 1rem; }
.nav__links a { text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color 140ms var(--ease-ui); }
.nav__links a:hover { border-bottom-color: var(--blue); }
.nav__toggle { display: none; }

/* ---------- 1. hero ---------- */
.hero {
  padding: clamp(28px, 5vh, 64px) var(--pad) clamp(40px, 7vh, 88px);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px);
  align-items: center;
}
.hero__kicker { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 18px; font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 0.9375rem; color: var(--red); }
.hero__kicker span { color: var(--ink-2); font-family: var(--text); font-weight: 500; }
.hero__kicker span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 12px; border-radius: 50%; background: var(--blue); vertical-align: middle; }
h1 { font-stretch: 110%; font-weight: 800; font-size: clamp(2.5rem, 4.2vw + 0.6rem, 4.75rem); line-height: 0.98; letter-spacing: -0.035em; }
.hero__lede { margin-top: 22px; max-width: 46ch; font-size: clamp(1.125rem, 0.5vw + 1rem, 1.3125rem); line-height: 1.5; color: var(--ink-2); }
.hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px 14px; }
.hero__proof { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: 0.9375rem; color: var(--ink-2); }
.hero__proof strong { color: var(--ink); }
.hero__proof span + span + span::before { content: "✓"; margin-right: 7px; color: var(--blue); font-weight: 700; }
.hero__media { position: relative; }
.hero__frame { overflow: hidden; border-radius: 22px; aspect-ratio: 4 / 5; max-height: min(78vh, 720px); margin-left: auto; background: var(--glass); }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__chip {
  position: absolute; left: -18px; bottom: 26px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 12px;
  background: var(--white); box-shadow: 0 10px 30px rgba(16, 24, 43, 0.18);
  font-weight: 600; font-size: 0.9375rem;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--field); flex: none; }
.dot.is-open { background: var(--ok); box-shadow: 0 0 0 4px rgba(30, 142, 74, 0.18); }

/* ---------- 2. ticker ---------- */
.ticker { display: flex; overflow: hidden; background: var(--blue); color: var(--white); padding: 16px 0; }
.ticker__track { flex: none; display: flex; align-items: center; animation: ticker 44s linear infinite; }
.ticker__track li { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 1.0625rem; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; }
.ticker__track li::after { content: "★"; margin: 0 26px; font-size: 0.8em; color: #FFD7DA; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- 3. services ---------- */
.services { background: var(--white); padding: clamp(64px, 9vw, 128px) var(--pad); }
.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px clamp(24px, 5vw, 88px); align-items: end; margin-bottom: clamp(28px, 4vw, 56px); }
.sec-head p { max-width: 52ch; color: var(--ink-2); }
.svc { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.svc__card { grid-column: span 2; display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: var(--paper); }
.svc__card--lg { grid-column: span 3; }
.svc__card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 700ms var(--ease-expo); }
.svc__card--lg img { aspect-ratio: 16 / 9; }
.svc__card:hover img { transform: scale(1.04); }
.svc__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.svc__body p { color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.svc__ask { margin-top: auto; padding-top: 8px; align-self: flex-start; font-weight: 600; color: var(--blue-deep); text-decoration: none; }
.svc__ask::after { content: "→"; display: inline-block; margin-left: 7px; transition: transform 140ms var(--ease-ui); }
.svc__ask:hover::after { transform: translateX(4px); }
.svc__ask:hover { text-decoration: underline; text-underline-offset: 4px; }
.svc__card--cta { background: var(--blue); color: var(--white); justify-content: center; }
.svc__card--cta .svc__body { justify-content: center; gap: 14px; padding: 28px; }
.svc__card--cta p { color: var(--white); }
.svc__card--cta .btn { align-self: flex-start; margin-top: 6px; }
.svc__card--cta .btn:focus-visible { outline-color: var(--white); }

/* ---------- 4. special cars ---------- */
.cars { background: var(--navy); color: var(--white); padding: clamp(56px, 8vw, 104px) 0; overflow: hidden; }
.cars__head { padding: 0 var(--pad); display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 14px clamp(24px, 5vw, 88px); align-items: end; margin-bottom: clamp(24px, 3.5vw, 44px); }
.cars__head p { color: var(--glass); max-width: 40ch; }
.cars__viewport { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #5B6C99 transparent; padding: 0 var(--pad) 10px; }
.cars__track { display: flex; gap: 18px; width: max-content; }
.cars__item { flex: none; height: clamp(300px, 52vh, 520px); aspect-ratio: 4 / 3; position: relative; overflow: hidden; border-radius: 14px; background: #16254F; }
.cars__item--tall { aspect-ratio: 3 / 4; }
.cars__item img { width: 100%; height: 100%; object-fit: cover; }
.cars__item p { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 8px; background: var(--white); color: var(--ink); font-family: var(--display); font-stretch: 106%; font-weight: 700; font-size: 0.9375rem; }

/* ---------- 5. the free check-up ---------- */
.checkup {
  padding: clamp(56px, 8vw, 104px) var(--pad);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.checkup__copy { display: grid; gap: 22px; }
.rail { display: none; height: 3px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.rail__fill { display: block; height: 100%; background: var(--blue); transform-origin: left center; }
.steps { display: grid; gap: 18px; counter-reset: step; }
.step { counter-increment: step; display: grid; grid-template-columns: 2.2em 1fr; column-gap: 6px; }
.step::before { content: counter(step); grid-row: 1 / span 2; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.015em; color: var(--blue); }
.step p { grid-column: 2; margin-top: 4px; max-width: 42ch; color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.checkup__art { min-width: 0; }

.car { display: block; width: 100%; height: auto; overflow: visible; }
.floor { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.lift-part { fill: var(--ink); }
.lift-leg { stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.body-fill { fill: var(--white); }
.glass { fill: var(--glass); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.line { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.line--thin { stroke-width: 2; }
.fill-paper { fill: var(--white); stroke-width: 2.5; }
.lamp { fill: var(--blue); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.lamp--tail { fill: var(--red); }
.tire { fill: var(--ink); }
.rim { fill: var(--white); }
.spokes { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.hub { fill: var(--ink); }
.disc { fill: var(--white); stroke: var(--ink); stroke-width: 3; }
.disc-holes circle { fill: var(--ink); }
.disc-hub { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.caliper { fill: none; stroke: var(--red); stroke-width: 13; stroke-linecap: round; }
.xray { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.oil { fill: var(--blue); }
.cable { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; }
.scan-body { fill: var(--ink); }
.scan-screen { fill: var(--white); }
.wave { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.tick { fill: none; stroke: var(--blue); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.ring { fill: rgba(31, 79, 216, 0.08); stroke: var(--blue); stroke-width: 2.5; stroke-dasharray: 5 9; stroke-linecap: round; }
#engine, #scan, #ring { opacity: 0; }

.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.shot { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }

/* pinned layout, only when motion is on */
.is-motion .checkup { height: 100svh; min-height: 600px; padding-top: calc(var(--nav-h) + 20px); padding-bottom: 28px; }
.is-motion .rail { display: block; }
.is-motion .checkup--photos .shots { display: block; position: relative; aspect-ratio: 5 / 4; max-height: 70vh; margin-inline: auto; border-radius: 20px; overflow: hidden; background: var(--glass); }
.is-motion .checkup--photos .shot { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: 0; opacity: 0; }
.is-motion .checkup--photos .shot:first-child { opacity: 1; }

/* ---------- 6. reviews ---------- */
.talk {
  background: var(--white);
  padding: clamp(64px, 9vw, 128px) var(--pad);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 36px clamp(28px, 5vw, 88px); align-items: start;
}
.talk__score { margin-bottom: 14px; font-size: 1.0625rem; }
.talk__score strong { font-family: var(--display); font-stretch: 110%; font-weight: 800; font-size: 1.375rem; margin-left: 6px; }
.talk__head > p:not(.talk__score) { margin-top: 20px; max-width: 46ch; color: var(--ink-2); }
.talk__links { display: flex; flex-wrap: wrap; gap: 12px; }
.topics { display: grid; gap: 14px; padding-top: 10px; }
.topics li { display: grid; grid-template-columns: 10.5em 1fr 2.2em; align-items: center; gap: 14px; }
.topics__label { font-weight: 500; }
.topics__bar { height: 14px; border-radius: 3px; background: var(--blue); width: calc(var(--n) / 24 * 100%); transform-origin: left center; }
.topics__count { font-family: var(--display); font-stretch: 110%; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.themes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px clamp(20px, 3vw, 48px); margin-top: clamp(8px, 2vw, 24px); }
.themes li { border-top: 2px solid var(--ink); padding-top: 16px; }
.themes p { margin-top: 8px; color: var(--ink-2); max-width: 40ch; }
.talk__src { grid-column: 1 / -1; color: var(--ink-2); font-size: 0.875rem; }

/* ---------- 7. sales ---------- */
.sales {
  padding: clamp(64px, 9vw, 128px) var(--pad);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 88px); align-items: center;
}
.sales__media { overflow: hidden; border-radius: 20px; max-height: 620px; }
.sales__media img { width: 100%; height: 100%; object-fit: cover; }
.sales__copy { display: grid; gap: 20px; justify-items: start; }
.sales__copy > p { max-width: 50ch; color: var(--ink-2); }
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 500; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0.1em; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: var(--white); font-size: 0.8125rem; font-weight: 700; display: grid; place-items: center; }

/* ---------- 8. winter band ---------- */
.winter { position: relative; overflow: hidden; background: var(--navy); color: var(--white); padding: clamp(72px, 10vw, 136px) var(--pad); }
.winter__bg { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; opacity: 0.42; }
.winter::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 26, 58, 0.94) 0%, rgba(14, 26, 58, 0.72) 48%, rgba(14, 26, 58, 0.2) 100%); }
.winter__copy { position: relative; z-index: 1; display: grid; gap: 20px; justify-items: start; max-width: 620px; }
.winter__copy p { color: var(--glass); max-width: 44ch; }

/* ---------- 9. FAQ ---------- */
.faq {
  background: var(--white);
  padding: clamp(64px, 9vw, 128px) var(--pad);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(28px, 5vw, 88px); align-items: start;
}
.faq__head { position: sticky; top: calc(var(--nav-h) + 28px); display: grid; gap: 18px; }
.faq__head p { color: var(--ink-2); }
.faq__head a { font-weight: 600; white-space: nowrap; }
.faq__list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-family: var(--display); font-stretch: 106%; font-weight: 700; font-size: clamp(1.125rem, 0.6vw + 1rem, 1.375rem); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); color: var(--blue-deep); display: grid; place-items: center; font-family: var(--text); font-weight: 500; font-size: 1.375rem; line-height: 1; transition: transform 200ms var(--ease-ui), background-color 140ms var(--ease-ui); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--glass); }
.faq details p { padding: 0 52px 22px 0; max-width: 62ch; color: var(--ink-2); }

/* ---------- 10. appointment ---------- */
.book {
  background: var(--navy); color: var(--white);
  padding: clamp(64px, 9vw, 128px) var(--pad);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: start;
}
.book__form { background: var(--white); color: var(--ink); border-radius: 22px; padding: clamp(22px, 3vw, 44px); }
.book__form h2 { font-size: clamp(1.875rem, 2vw + 1rem, 2.75rem); letter-spacing: -0.025em; }
.book__lede { margin: 12px 0 26px; color: var(--ink-2); max-width: 48ch; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field > span, .field legend { font-weight: 600; font-size: 0.9375rem; }
.field em { font-style: normal; font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1.5px solid var(--field); border-radius: 10px; background: var(--white);
  transition: border-color 140ms var(--ease-ui), box-shadow 140ms var(--ease-ui);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6A7489; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 79, 216, 0.18); }
.field [aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 4px rgba(200, 30, 43, 0.14); }
.field--choice { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.field--choice legend { float: left; width: 100%; margin-bottom: 9px; }
.field--choice label { position: relative; cursor: pointer; }
.field--choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.field--choice span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border: 1.5px solid var(--field); border-radius: 999px; font-weight: 500; transition: background-color 140ms var(--ease-ui), border-color 140ms var(--ease-ui), color 140ms var(--ease-ui); }
.field--choice input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--white); font-weight: 600; }
.field--choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.form__error { padding: 12px 16px; border-radius: 10px; background: #FCE9EA; color: var(--red-deep); font-weight: 500; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font-size: 0.875rem; color: var(--ink-2); }
.form__foot span { flex: 1 1 220px; }
.form__done { display: grid; gap: 14px; justify-items: start; padding: 8px 0; }
.form__done[hidden], .form[hidden] { display: none; }
.form__done h3 { font-size: clamp(1.5rem, 1.2vw + 1.1rem, 2rem); }
.form__demo { font-size: 0.875rem; color: var(--ink-2); }

.book__side { display: grid; gap: 22px; }
.book__sign { width: 100%; border-radius: 18px; }
.book__card { display: grid; gap: 14px; }
.book__tel { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(2rem, 3vw, 2.875rem); line-height: 1; letter-spacing: -0.03em; text-decoration: none; white-space: nowrap; }
.book__tel:hover { text-decoration: underline; text-underline-offset: 6px; }
.book a:focus-visible, .book button:focus-visible { outline-color: var(--white); }
.book__form a:focus-visible, .book__form button:focus-visible { outline-color: var(--blue); }
.hours { border-collapse: collapse; width: 100%; max-width: 380px; }
.hours caption { text-align: left; font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: 1.125rem; padding-bottom: 6px; }
.hours th, .hours td { text-align: left; font-weight: 400; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, 0.24); }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--white); }
.hours tr.is-today th::after { content: " · today"; font-weight: 500; color: var(--glass); }
.book__map { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.book .btn--line { color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.book .btn--line:hover { background: var(--white); color: var(--navy); }
.book__form .btn--line { color: var(--ink); border-color: var(--ink); }
.book__form .btn--line:hover { background: var(--ink); color: var(--white); }
.map { overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 3; background: #16254F; }
.map[hidden] { display: none; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- footer ---------- */
.foot {
  background: var(--ink); color: var(--white);
  padding: clamp(40px, 6vw, 72px) var(--pad) 26px;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); gap: 28px clamp(24px, 4vw, 64px); align-items: start;
}
.foot__brand { display: grid; gap: 12px; justify-items: start; }
.foot__brand p { font-family: var(--display); font-stretch: 110%; font-weight: 700; color: var(--glass); }
.foot__nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 36px; }
.foot__nav a { text-decoration: none; }
.foot__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__contact { display: grid; gap: 6px; }
.foot__contact a { font-family: var(--display); font-stretch: 110%; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; text-decoration: none; }
.foot a:focus-visible { outline-color: var(--white); }
.foot__legal { grid-column: 1 / -1; margin-top: 12px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.24); font-size: 0.875rem; color: var(--glass); display: flex; flex-wrap: wrap; gap: 4px 28px; justify-content: space-between; }

/* ---------- mobile action dock ---------- */
.dock { display: none; }

/* ---------- reveals (only when motion is on; the default state is fully visible) ---------- */
.is-motion [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 900ms var(--ease-expo), transform 900ms var(--ease-expo);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.is-motion [data-reveal].is-in { opacity: 1; transform: none; }
.is-motion [data-reveal="rise"], .is-motion [data-reveal="bars"] { opacity: 1; transform: none; }
.is-motion [data-reveal="rise"] > span { transform: translateY(112%); transition: transform 1000ms var(--ease-expo); }
.is-motion [data-reveal="rise"].is-in > span { transform: none; }
/* the wipe clips the child, never the observed element itself: a fully clipped element never reports as on screen */
.is-motion [data-reveal="wipe"] { opacity: 1; transform: none; }
.is-motion [data-reveal="wipe"] > * { clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-wipe); }
.is-motion [data-reveal="wipe"].is-in > * { clip-path: inset(0 0 0 0); }
.is-motion [data-reveal="bars"] .topics__bar { transform: scaleX(0); transition: transform 1100ms var(--ease-expo); }
.is-motion [data-reveal="bars"].is-in .topics__bar { transform: scaleX(1); }
.is-motion .topics li:nth-child(2) .topics__bar { transition-delay: 60ms; }
.is-motion .topics li:nth-child(3) .topics__bar { transition-delay: 120ms; }
.is-motion .topics li:nth-child(4) .topics__bar { transition-delay: 180ms; }
.is-motion .topics li:nth-child(5) .topics__bar { transition-delay: 240ms; }
.is-motion .topics li:nth-child(6) .topics__bar { transition-delay: 300ms; }
.is-motion .topics li:nth-child(7) .topics__bar { transition-delay: 360ms; }
.is-motion .topics li:nth-child(8) .topics__bar { transition-delay: 420ms; }
.reveal-all [data-reveal], .reveal-all [data-reveal] > *, .reveal-all .topics__bar { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }

/* horizontal gallery driven by the scroll: desktop with motion only */
.is-motion.is-wide .cars { min-height: 100svh; display: grid; align-content: center; padding-top: calc(var(--nav-h) + 24px); padding-bottom: 32px; }
.is-motion.is-wide .cars__viewport { overflow: hidden; padding-bottom: 0; }

/* ---------- narrower screens ---------- */
@media (max-width: 1100px) {
  .nav__links { gap: 16px; font-size: 0.9375rem; }
  .nav__cta { display: none; }
}
@media (max-width: 960px) {
  .topbar__tag, .topbar__where { display: none; }
  .topbar { justify-content: space-between; }
  .topbar__hours { margin-left: 0; }
  .nav { gap: 14px; }
  .nav__toggle { display: inline-flex; margin-left: auto; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 10px; background: var(--white); font-family: var(--display); font-weight: 700; cursor: pointer; }
  .nav__links { position: absolute; left: 0; right: 0; top: var(--nav-h); margin: 0; display: none; flex-direction: column; gap: 0; padding: 8px var(--pad) 18px; background: var(--white); border-bottom: 1px solid var(--rule); box-shadow: 0 18px 30px rgba(16, 24, 43, 0.12); font-size: 1.125rem; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .nav--open .nav__links { display: flex; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
  .hero__frame { aspect-ratio: 4 / 3; max-height: none; }
  .hero__img { object-position: 50% 62%; }
  .hero__chip { left: 12px; bottom: 12px; }
  h1 { font-size: clamp(2.25rem, 9vw, 3.5rem); letter-spacing: -0.03em; }
  .sec-head, .cars__head, .talk, .sales, .faq, .book, .checkup { grid-template-columns: minmax(0, 1fr); }
  .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc__card, .svc__card--lg { grid-column: span 1; }
  .svc__card--lg img { aspect-ratio: 4 / 3; }
  .themes { grid-template-columns: minmax(0, 1fr); }
  .faq__head { position: static; }
  .sales__media { max-height: 440px; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .is-motion .checkup { grid-template-rows: auto minmax(0, 1fr); align-content: start; row-gap: 14px; padding-top: calc(var(--nav-h) + 14px); }
  .is-motion .checkup__copy { gap: 14px; }
  .is-motion .checkup h2 { font-size: clamp(1.5rem, 6vw, 2rem); letter-spacing: -0.02em; }
  .is-motion .checkup .steps .step { grid-area: 1 / 1; }
  .is-motion .checkup__cta { display: none; }
  .is-motion .checkup__art { align-self: end; }
  .is-motion .checkup--drawn .checkup__art { overflow: hidden; margin: 0 calc(var(--pad) * -1); }
  .is-motion .checkup--drawn .car { width: 150%; max-width: none; margin-left: -48%; }
  .is-motion .checkup--photos .shots { aspect-ratio: auto; height: 100%; max-height: 46vh; }
}
@media (max-width: 720px) {
  body { padding-bottom: 76px; }
  .svc { grid-template-columns: minmax(0, 1fr); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .topics li { grid-template-columns: 8.4em 1fr 1.8em; gap: 10px; font-size: 0.9375rem; }
  .faq details p { padding-right: 0; }
  .foot__legal { flex-direction: column; }
  .cars__item { height: clamp(260px, 44vh, 380px); }
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--rule); box-shadow: 0 -8px 24px rgba(16, 24, 43, 0.12);
    transition: transform 240ms var(--ease-ui);
  }
  .dock.is-away { transform: translateY(110%); }
  .dock a { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 10px; font-family: var(--display); font-weight: 700; text-decoration: none; }
  .dock__call { border: 2px solid var(--ink); }
  .dock__book { background: var(--red); color: var(--white); }
  .is-motion .checkup { padding-bottom: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .svc__card img, .nav__links a, .dock, .faq summary::after { transition: none; }
  .ticker { flex-wrap: wrap; }
  .ticker__track { animation: none; flex-wrap: wrap; row-gap: 8px; padding: 0 var(--pad); }
  .ticker__track[aria-hidden="true"] { display: none; }
}
