/* Speedbitz. One stylesheet, mobile first.
   Design: near-black, warm off-white, one acid-lime accent. Instrument Serif / Inter Tight / JetBrains Mono,
   self-hosted from /fonts (SIL Open Font License), so the site makes no requests to third parties. */

@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/fonts/inter-tight.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --bg: #0A0B0E;
  --ink: #F3EFE6;
  --accent: #D7FF3F;
  --muted: #8C8F99;
  --soft: #B7B9C2;
  --line: #1E2026;
  --line-2: #2A2D35;
  --line-3: #3B3E47;
  --surface: #15171C;
  --paper: #F3EFE6;
  --paper-ink: #0A0B0E;
  --paper-soft: #3B3E47;
  --paper-muted: #5C5F6A;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; color-scheme: dark; -webkit-tap-highlight-color: rgba(215, 255, 63, .18); }
@media (pointer: fine) { html { overscroll-behavior: none; } }
a, button, summary, label { touch-action: manipulation; }
::selection { background: var(--accent); color: var(--bg); }
[id] { scroll-margin-top: 24px; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.5;
  display: flex; flex-direction: column; min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
em { font-style: italic; }
ul, ol { margin: 0; }

.wrap { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.label { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
.arrow { color: var(--accent); font-size: 20px; line-height: 1; font-family: var(--sans); }
.mt-lg { margin-top: 32px; }
.visually-hidden {
  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: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--bg); padding: 12px 16px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.skip:focus { left: 16px; top: 16px; }

/* Shared split layout: a mono label column, then content (manifesto, specs, company details) */
.split { display: flex; flex-wrap: wrap; gap: 20px 60px; align-items: flex-start; }
.split > .label { flex: 0 0 240px; padding-top: 12px; }
.split > :not(.label) { flex: 1 1 600px; min-width: 0; }

/* ---------- Top strip + header ---------- */
.topstrip { border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.topstrip .wrap { display: flex; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; padding-block: 12px; }
@media (max-width: 47.99rem) { .topstrip .hide-sm { display: none; } }

.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 18px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo svg { width: 36px; height: 36px; flex: none; }
.logo span { font-weight: 600; font-size: 22px; letter-spacing: -.035em; line-height: 1; }
.nav { order: 3; width: 100%; display: flex; gap: 0 20px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; border-bottom: 1px solid transparent; }
.nav .n { display: none; }
.nav a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }
.header-call { padding: 12px 16px; min-height: 44px; }
@media (min-width: 56rem) {
  .site-header .wrap { padding-block: 26px; }
  .nav { order: 0; width: auto; gap: 32px; }
  .nav .n { display: inline; }
  .header-call { padding: 14px 20px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 22px; border-radius: 2px; border: 1px solid transparent;
  font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; text-align: center; line-height: 1.2; cursor: pointer;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-accent { background: var(--accent); color: var(--bg); }
.btn-accent:hover { background: #E6FF7A; color: var(--bg); }
.btn-light { background: var(--ink); color: var(--bg); }
.btn-light:hover { background: #fff; color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-3); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Home: hero ---------- */
.hero { padding-top: clamp(28px, 5vw, 56px); }
.hero-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; }
.hero-title { display: flex; flex-direction: column; gap: 18px; flex: 1 1 560px; max-width: 900px; }
.hero h1 { font-family: var(--serif); font-size: clamp(56px, 10vw, 144px); line-height: .92; letter-spacing: -.03em; }
.hero h1 em { color: var(--accent); }
.hero-side { flex: 0 1 380px; display: flex; flex-direction: column; gap: 20px; padding-bottom: 14px; }
.hero-lead { margin: 0; font-size: 18px; color: var(--soft); }
.hero-media { position: relative; margin-top: clamp(28px, 4vw, 40px); height: clamp(420px, 46vw, 640px); border-radius: 4px; overflow: hidden; background: var(--surface); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 42%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 11, 14, .6) 0%, rgba(10, 11, 14, 0) 24%, rgba(10, 11, 14, 0) 55%, rgba(10, 11, 14, .8) 100%);
}
.hero-bar {
  position: absolute; left: 0; right: 0; z-index: 1;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap;
  padding: 18px 20px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}
.hero-bar-top { top: 0; align-items: flex-start; }
.hero-bar-bottom { bottom: 0; }
.hero-specs { display: flex; gap: 6px 40px; flex-wrap: wrap; }
@media (min-width: 56rem) { .hero-bar { padding: 24px 28px; } }

/* ---------- Home: ticker + manifesto ---------- */
.ticker { margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticker .wrap { display: flex; gap: 10px 40px; flex-wrap: wrap; padding-block: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.manifesto .wrap { padding-block: var(--section); }
.manifesto p { margin: 0; max-width: 960px; font-family: var(--serif); font-size: clamp(30px, 4.2vw, 52px); line-height: 1.12; letter-spacing: -.015em; }

/* ---------- Stock list ---------- */
.stock .wrap { padding-bottom: var(--section); }
.stock-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; padding-bottom: 24px; }
.stock-list { list-style: none; padding: 0; border-bottom: 1px solid var(--line-2); }
.stock-row {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "thumb thumb" "num title" ". specs" ". go";
  gap: 14px 16px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line-2);
  text-decoration: none; color: var(--ink);
}
.stock-row .num { grid-area: num; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.stock-row .thumb { grid-area: thumb; display: block; aspect-ratio: 5 / 3; border-radius: 2px; overflow: hidden; background: var(--surface); }
.stock-row .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.stock-row .title { grid-area: title; font-family: var(--serif); font-size: clamp(36px, 5vw, 56px); line-height: 1; letter-spacing: -.02em; }
.stock-row .specs { grid-area: specs; display: flex; gap: 6px 28px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.stock-row .go { grid-area: go; display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.stock-row .go-price { font-family: var(--serif); font-size: 30px; letter-spacing: -.01em; text-transform: none; margin-right: 8px; }
.stock-row:hover { color: var(--ink); }
.stock-row:hover .title { color: var(--accent); }
.stock-row:hover .thumb img { transform: scale(1.03); }
.stock-row-more { color: var(--muted); }
.stock-row-more .thumb { display: none; }
.stock-row-more .title { font-size: clamp(32px, 4vw, 44px); }
.stock-row-more .specs { color: var(--muted); }
@media (min-width: 64rem) {
  .stock-row { grid-template-columns: 60px 200px minmax(0, 1.3fr) minmax(0, 1fr) auto; grid-template-areas: "num thumb title specs go"; gap: 32px; padding: 36px 0; }
  .stock-row .thumb { aspect-ratio: auto; height: 120px; }
  .stock-row-more .thumb { display: block; background: none; }
  .stock-row .go-price { font-size: 32px; }
}
.empty { padding: 32px 0; color: var(--soft); border-top: 1px solid var(--line-2); }

/* ---------- Paper (light) sections: proof, MOT history ---------- */
.paper { background: var(--paper); color: var(--paper-ink); }
.paper a { color: var(--paper-ink); }
.paper a:hover { color: var(--paper-ink); text-decoration-thickness: 2px; }
.paper .label { color: var(--paper-muted); }
.paper :focus-visible { outline-color: var(--paper-ink); }
.proof .wrap { padding-block: var(--section); display: flex; flex-direction: column; gap: clamp(40px, 6vw, 72px); }
.proof-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 40px; flex-wrap: wrap; }
.proof h2 { font-family: var(--serif); font-size: clamp(48px, 7.5vw, 96px); line-height: .95; letter-spacing: -.03em; max-width: 760px; }
.proof-grid { list-style: none; padding: 0; display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
.proof-grid li { border-top: 1px solid var(--paper-ink); padding-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.proof-grid h3 { font-family: var(--serif); font-size: clamp(32px, 3.2vw, 40px); line-height: 1; letter-spacing: -.02em; }
.proof-grid p { margin: 0; font-size: 16px; color: var(--paper-soft); max-width: 340px; }
@media (min-width: 56rem) { .proof-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Visit ---------- */
.visit .wrap { padding-block: var(--section); display: flex; flex-wrap: wrap; gap: 48px 60px; align-items: stretch; }
.visit-info { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.visit-title { display: flex; flex-direction: column; gap: 24px; }
.visit h2 { font-family: var(--serif); font-size: clamp(56px, 7vw, 120px); line-height: .9; letter-spacing: -.03em; }
.visit h2 em { color: var(--accent); }

.details { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; font-size: 16px; }
.details dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.details a { text-decoration: none; }
.details a:hover { text-decoration: underline; }
@media (max-width: 29.99rem) { .details { grid-template-columns: minmax(0, 1fr); gap: 22px; } }

.map-card {
  flex: 1 1 480px; min-width: 0; min-height: clamp(300px, 40vw, 520px); position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 24px 28px;
  border-radius: 4px; background-color: var(--surface); color: var(--ink); text-decoration: none;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 55px, var(--line) 55px 56px),
    repeating-linear-gradient(90deg, transparent 0 55px, var(--line) 55px 56px);
}
.map-card:hover { color: var(--ink); }
.map-card:hover .map-postcode { color: var(--accent); }
.map-pin { position: absolute; left: 50%; top: 46%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 12px rgba(215, 255, 63, .14), 0 0 0 28px rgba(215, 255, 63, .06); }
.map-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; position: relative; }
.map-postcode { font-family: var(--serif); font-size: clamp(48px, 6vw, 84px); line-height: .9; letter-spacing: -.02em; }

/* ---------- Enquiry + form ---------- */
.enquire { border-top: 1px solid var(--line); }
.enquire .wrap { padding-block: var(--section); display: flex; flex-wrap: wrap; gap: 48px 60px; }
.enquire-intro { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.enquire h2:not(.label) { font-family: var(--serif); font-size: clamp(46px, 5.5vw, 72px); line-height: .95; letter-spacing: -.03em; }
.enquire-intro > p { margin: 0; color: var(--soft); max-width: 420px; }
.enquire-page { border-top: 0; }
.enquire-page .wrap { padding-top: 24px; }
.enquire-page .enquire-intro { gap: 32px; }
.enquire-page .map-card { flex: none; min-height: 280px; }

.form { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.form fieldset:disabled { opacity: .45; }
.form-off { margin: 0; padding: 14px 16px; border: 1px solid var(--line-3); border-left: 3px solid var(--accent); border-radius: 2px; font-size: 15px; color: var(--ink); }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  font: inherit; font-size: 20px; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line-3); border-radius: 0; padding: 12px 0; min-height: 48px; width: 100%;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.form .btn { align-self: flex-start; }
.form-note a, .form-off a { white-space: nowrap; }
.form-note { margin: 0; font-size: 14px; color: var(--muted); }
.car-note { margin: 0; padding: 12px 16px; border: 1px solid var(--accent); border-radius: 2px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Inner page head ---------- */
.page-head .wrap { padding-block: clamp(40px, 6vw, 80px) clamp(36px, 5vw, 64px); display: flex; flex-direction: column; gap: 24px; }
.page-head h1 { padding-bottom: .06em; }
.page-head h1 { font-family: var(--serif); font-size: clamp(54px, 9vw, 128px); line-height: .92; letter-spacing: -.03em; max-width: 1150px; }
.page-head h1 em { color: var(--accent); }
.page-head p { margin: 0; max-width: 560px; font-size: 18px; color: var(--soft); }

/* ---------- Car page ---------- */
.crumbs { padding-top: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.car-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 24px var(--section); }
.car-top > * { min-width: 0; }
@media (min-width: 64rem) { .car-top { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 48px; align-items: start; } }

.gallery-main { position: relative; aspect-ratio: 4 / 3; background: var(--surface); border-radius: 4px; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px;
  display: grid; place-items: center; cursor: pointer; color: var(--ink);
  background: rgba(10, 11, 14, .72); border: 1px solid var(--line-3); border-radius: 2px;
}
.gallery-btn:hover { color: var(--accent); border-color: var(--accent); }
.gallery-btn svg { width: 20px; height: 20px; }
.gallery-btn.prev { left: 12px; }
.gallery-btn.next { right: 12px; }
.gallery-count { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 2px; background: rgba(10, 11, 14, .72); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; }
.thumbs { list-style: none; padding: 0; margin-top: 10px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
.thumbs a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; border: 1px solid transparent; opacity: .65; transition: opacity .2s; }
.thumbs a:hover { opacity: 1; }
.thumbs a[aria-current="true"] { opacity: 1; border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 47.99rem) {
  .thumbs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: 6px; scrollbar-width: thin; }
  .thumbs li { flex: 0 0 76px; scroll-snap-align: start; }
}
.gallery-main { touch-action: pan-y; }

.summary { display: flex; flex-direction: column; gap: 20px; }
.summary h1 { font-family: var(--serif); font-size: clamp(52px, 6vw, 88px); line-height: .92; letter-spacing: -.03em; }
.plate-row { margin: 0; }
.plate { display: inline-block; padding: 6px 10px; border: 1px solid var(--line-3); border-radius: 2px; font-family: var(--mono); font-size: 13px; letter-spacing: .14em; white-space: nowrap; }
.paper .plate { border-color: var(--paper-ink); }
.meta-row { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.price { margin: 0; font-family: var(--serif); font-size: clamp(52px, 5.5vw, 76px); line-height: 1; letter-spacing: -.02em; }
.price small { display: block; margin-top: 10px; font-family: var(--sans); font-size: 14px; letter-spacing: 0; color: var(--muted); }
.summary .btn-row .btn { flex: 1 1 100%; }
.summary .note { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.car-about .wrap { padding-bottom: var(--section); }
.car-about .text { max-width: 960px; font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); line-height: 1.18; letter-spacing: -.01em; }
.car-about .text p:last-child { margin-bottom: 0; }

.mot .wrap { padding-block: var(--section); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 40px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head h2 { font-family: var(--serif); font-size: clamp(52px, 7vw, 96px); line-height: .95; letter-spacing: -.03em; }

table { width: 100%; border-collapse: collapse; }
.mot-table th { padding: 0 16px 14px 0; border-bottom: 1px solid var(--paper-ink); text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-muted); }
.mot-table td { padding: 22px 16px 22px 0; border-bottom: 1px solid rgba(10, 11, 14, .16); vertical-align: top; }
.mot-table .date { font-family: var(--serif); font-size: 26px; line-height: 1.1; white-space: nowrap; }
.mot-table .num { font-family: var(--mono); font-size: 14px; white-space: nowrap; padding-top: 26px; }
.mot-table td[data-label="Result"], .mot-table td[data-label="Advisories"] { padding-top: 24px; }
.mot-table ul { padding-left: 1.1em; }
.mot-table .none { color: var(--paper-muted); }
.result { display: inline-block; padding: 4px 10px; border: 1px solid var(--paper-ink); border-radius: 2px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.result.fail { background: var(--paper-ink); color: var(--paper); }
.mot-foot { margin: 28px 0 0; max-width: 760px; font-size: 15px; color: var(--paper-soft); }
@media (max-width: 47.99rem) {
  .mot-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mot-table, .mot-table tbody, .mot-table tr, .mot-table td { display: block; }
  .mot-table tr { padding: 18px 0; border-top: 1px solid var(--paper-ink); }
  .mot-table tr:last-child { border-bottom: 1px solid var(--paper-ink); }
  .mot-table td, .mot-table .num, .mot-table td[data-label] { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; padding: 6px 0; border: 0; }
  .mot-table td::before { content: attr(data-label); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-muted); padding-top: 4px; }
  .mot-table .date { font-size: 24px; }
  .mot-table .result { justify-self: start; }
}

.spec .wrap { padding-block: var(--section); }
.spec-table th { width: 40%; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.spec-table td { padding: 15px 0; border-bottom: 1px solid var(--line-2); font-size: 18px; }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 1px solid var(--line-2); }

.cta { border-top: 1px solid var(--line); }
.cta .wrap { padding-block: var(--section); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 60px; }
.cta h2 { font-family: var(--serif); font-size: clamp(46px, 6vw, 88px); line-height: .95; letter-spacing: -.03em; max-width: 900px; }
.cta h2 em { color: var(--accent); }

/* ---------- About / company / plain pages ---------- */
.company .wrap { padding-block: var(--section); }
.details-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.plain .wrap { padding-bottom: var(--section); }
.prose { max-width: 800px; margin-inline: 0; }
.prose h2 { margin: 56px 0 16px; font-family: var(--serif); font-size: clamp(32px, 3.5vw, 44px); line-height: 1.05; letter-spacing: -.015em; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 18px; color: var(--soft); }

/* ---------- Sell your car ---------- */
.steps-list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.steps-list li { border-top: 1px solid var(--line-2); padding: 22px 0; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 6px 16px; }
.steps-list li:last-child { border-bottom: 1px solid var(--line-2); }
.steps-list .label { grid-row: span 2; padding-top: 8px; }
.steps-list h3 { font-family: var(--serif); font-size: clamp(28px, 3vw, 36px); line-height: 1; letter-spacing: -.02em; }
.steps-list p { margin: 0; color: var(--soft); font-size: 16px; }
.aside-note { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- The record (MOT mileage chart) ---------- */
.record .wrap { padding-block: 0 var(--section); }
.record .section-head h2 em { color: var(--accent); }
.hero-chart { margin: 0; border: 1px solid var(--line); border-radius: 4px; padding: clamp(18px, 2.6vw, 32px); position: relative; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 32px; flex-wrap: wrap; }
.chart-legend { list-style: none; padding: 0; display: flex; gap: 8px 24px; flex-wrap: wrap; font-size: 14px; color: var(--soft); }
.chart-legend li { display: inline-flex; align-items: center; gap: 10px; }
.chart-legend .sw { width: 24px; height: 2px; border-radius: 2px; background: var(--muted); }
.chart-legend .sw-hi { background: var(--accent); }
.chart-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0 12px; }
.chart-stats p { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.stat { font-family: var(--sans); font-weight: 600; font-size: clamp(40px, 5.5vw, 72px); line-height: .9; letter-spacing: -.04em; }
.chart-plot { position: relative; margin-top: 12px; }
.mot-chart { display: block; width: 100%; height: auto; overflow: visible; }
.mot-chart-wide { display: none; }
@media (min-width: 48rem) { .mot-chart-wide { display: block; } .mot-chart-tall { display: none; } }
.mot-chart .c-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mot-chart .c-base { stroke: var(--line-3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mot-chart .c-axis { font-family: var(--mono); fill: var(--muted); font-variant-numeric: tabular-nums; }
.mot-chart .c-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.mot-chart .c-line.c-hi { stroke: var(--accent); filter: drop-shadow(0 0 6px rgba(215, 255, 63, .35)); }
.mot-chart .c-line.c-lo { stroke: var(--muted); }
.mot-chart .c-dot { stroke: var(--bg); stroke-width: 2; vector-effect: non-scaling-stroke; }
.mot-chart .c-dot.c-hi { fill: var(--accent); }
.mot-chart .c-dot.c-lo { fill: var(--muted); }
.mot-chart .c-hit { fill: transparent; cursor: pointer; }
.mot-chart .c-leader { fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.mot-chart .c-leader.c-hi { stroke: var(--accent); }
.mot-chart .c-leader.c-lo { stroke: var(--muted); }
.mot-chart .c-name { font-family: var(--sans); font-weight: 500; fill: var(--ink); }
.mot-chart .c-val { font-family: var(--mono); fill: var(--muted); }
.mot-chart .c-reveal { transform-box: fill-box; transform-origin: left center; animation: chart-reveal 1.8s cubic-bezier(.2, .7, .2, 1) .15s both; }
@keyframes chart-reveal { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.chart-tip {
  position: absolute; z-index: 2; pointer-events: none; transform: translate(-50%, calc(-100% - 14px));
  padding: 8px 10px; border-radius: 2px; background: var(--ink); color: var(--bg);
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em; white-space: nowrap;
}
.chart-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 32px; flex-wrap: wrap; margin-top: 20px; font-size: 14px; color: var(--muted); }
.chart-foot > span { max-width: 640px; }
.chart-table summary { cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }
.chart-table summary:hover { color: var(--accent); }
.chart-table table { margin-top: 12px; font-size: 14px; }
.chart-table th, .chart-table td { text-align: left; padding: 8px 16px 8px 0; border-bottom: 1px solid var(--line-2); }
.chart-table th { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.chart-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 47.99rem) { .chart-stats .label { font-size: 11px; } .chart-table { width: 100%; overflow-x: auto; } }

/* ---------- Mobile action bar on car pages ---------- */
.action-bar { display: none; }
@media (max-width: 63.99rem) {
  .has-action-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  html:has(.has-action-bar) { scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; gap: 10px;
    padding: 12px max(var(--gutter), env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
    background: rgba(10, 11, 14, .94); border-top: 1px solid var(--line-2);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .action-bar .btn { flex: 1 1 0; padding-inline: 12px; }
  .action-bar .btn-accent { flex-grow: 2; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 48px 32px; display: flex; flex-direction: column; gap: 48px; }
.footer-brand { display: flex; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.footer-brand svg { width: clamp(56px, 7vw, 96px); height: auto; flex: none; }
.footer-brand .word { margin: 0; font-weight: 600; font-size: clamp(60px, 11vw, 140px); line-height: .85; letter-spacing: -.05em; }
.footer-legal { display: flex; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.footer-legal p { margin: 0 0 6px; max-width: 900px; }
.footer-legal a { color: var(--muted); text-decoration: none; }
.footer-legal a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 0 24px; flex-wrap: wrap; align-items: center; }
.footer-links a, .footer-links span { display: inline-flex; align-items: center; min-height: 40px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .mot-chart .c-reveal { animation: none; }
}

@media print {
  body { background: #fff; color: #000; }
  .topstrip, .site-header, .site-footer, .action-bar, .btn, .btn-row, .gallery-btn, .thumbs, .cta, .skip { display: none !important; }
  .paper, .car-about, .spec, .mot { background: #fff !important; color: #000 !important; }
  .summary h1, .price, .car-about .text { color: #000; }
  a { color: #000; }
  .gallery-main { aspect-ratio: auto; background: none; }
}
