/* ==========================================================================
   Trevor Travis Motors: the shop's parts book.
   Ink owns the header, hero, plates and dark bands; ember orange owns the closing
   fields and the small tabs, discs and buttons; warm paper carries the dense lists.
   Every text token reaches 4.5:1 on every surface it sits on (PROJECT.md › Direction).
   ========================================================================== */
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../fonts/archivo-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../fonts/archivo-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font-body: "Archivo", "Arial Narrow", sans-serif;
  --font-display: var(--font-body);
  --narrow: 66%;          /* font-stretch for display caps */

  /* Ember orange on warm stone neutrals. Ink text on orange, never white (3.1). */
  --orange: #f26a1b;       /* ink on it 6.1 · on ink 6.1, ink-2 5.6, ink-3 4.8 */
  --ink: #14110f;
  --ink-2: #1f1b18;
  --ink-3: #2c2723;
  --paper: #f6f3ee;
  --white: #ffffff;
  --muted-dark: #bdb4a8;   /* on ink 9.2, ink-2 8.4, ink-3 7.2 */
  --muted-page: #524c45;   /* on paper 7.7, white 8.5 */
  --muted-orange: #3d1a06; /* on orange 5.1 */
  --orange-deep: #a8420c;  /* rules/links/focus on paper 5.5, white 6.1 */
  --line-page: #d8d1c6;
  --line-dark: #3b3530;

  /* template names, mapped to the palette */
  --c-bg: var(--paper);
  --c-surface: var(--white);
  --c-text: var(--ink);
  --c-muted: var(--muted-page);
  --c-line: var(--line-page);
  --c-brand: var(--orange);
  --c-on-brand: var(--ink);
  --c-error: #9b1c12;      /* on paper 7.4, white 8.2 */
  --c-ok: #1d6b34;         /* on paper 5.9 */

  /* surface-scoped roles (bands redefine these) */
  --fg: var(--ink);
  --muted: var(--muted-page);
  --rule: var(--line-page);
  --focus: var(--ink);
  --btn-bg: var(--ink);
  --btn-fg: var(--orange);
  --link: var(--ink);
  --link-line: var(--orange-deep);

  --radius: 2px;
  --container: 74rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 4.5rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --band-y: clamp(3.5rem, 7vw, 6rem);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem);
  scrollbar-color: var(--ink-3) var(--paper);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--fg);
  font: 400 1.0625rem/1.6 var(--font-body);
  font-stretch: 100%;
  font-kerning: normal;
}
::selection { background: var(--orange); color: var(--ink); }
h1, h2, h3, h4 {
  font-family: var(--font-display); font-stretch: var(--narrow); font-weight: 800;
  text-transform: uppercase; line-height: .95; letter-spacing: .005em; text-wrap: balance; margin: 0;
}
h2 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem); margin-bottom: 1.25rem; }
h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); line-height: 1; margin-bottom: .5rem; }
p { text-wrap: pretty; margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-color: var(--link-line); text-decoration-thickness: 2px; text-underline-offset: .22em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
strong { font-weight: 700; }
.num, .price, .specs dd, .hours dd { font-variant-numeric: tabular-nums lining-nums; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .5rem 1rem; background: var(--orange); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 1rem; }

/* ---------------------------------------------------------------- rule utilities */
.nowrap { white-space: nowrap; }
.wrap-anywhere { overflow-wrap: anywhere; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
/* icon + text rows (address, phone, email): the icon never drops to its own line */
.icon-row { display: inline-flex; align-items: center; gap: .5em; }
/* badges and pills never wrap at 360–390px; hide secondary bits on small screens instead */
.badge, .pill { display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; }
/* sticky sub-navs and pill bars sit centered */
.subnav { width: fit-content; max-width: 100%; margin-inline: auto; overflow-x: auto; }
/* hours and spec tables: aligned columns, values never wrap */
.hours, .specs { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1.5rem; margin: 0; }
.hours dt, .specs dt { margin: 0; color: var(--muted); }
.hours dd, .specs dd { margin: 0; white-space: nowrap; font-weight: 600; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.contact-list a { text-decoration: none; }
.contact-list a:hover span { text-decoration: underline; text-decoration-color: var(--link-line); text-underline-offset: .22em; }

/* ---------------------------------------------------------------- surfaces
   Each band sets its own text, rule, focus and button roles. */
.band { padding-block: var(--band-y); background: var(--paper); color: var(--fg); }
.band--orange {
  background: var(--orange);
  --fg: var(--ink); --muted: var(--muted-orange); --rule: var(--ink); --focus: var(--ink);
  --btn-bg: var(--ink); --btn-fg: var(--orange); --link: var(--ink); --link-line: var(--ink);
}
.band--ink, .on-ink {
  background: var(--ink);
  --fg: var(--paper); --muted: var(--muted-dark); --rule: var(--line-dark); --focus: var(--orange);
  --btn-bg: var(--orange); --btn-fg: var(--ink); --link: var(--paper); --link-line: var(--orange);
}
.band--white { background: var(--white); }
.band--ruled { border-top: 2px solid var(--ink); }
.muted { color: var(--muted); }
.lede { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); line-height: 1.5; max-width: 34em; }
.measure { max-width: 38em; }
.note { font-size: .9375rem; color: var(--muted); max-width: 42em; }

/* split layouts: text + plate */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .split--top { align-items: start; }
  .split--wide-text { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .split--wide-plate { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .split--flip > :first-child { order: 2; }
}

/* text link with arrow */
.go { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; text-decoration: none; }
.go .icon { transition: transform .2s var(--ease); }
.go span { text-decoration: underline; text-decoration-color: var(--link-line); text-decoration-thickness: 2px; text-underline-offset: .22em; }
.go:hover .icon { transform: translateX(3px); }
.ext { display: inline-flex; align-items: center; gap: .3em; }
.ext .icon { width: 1em; height: 1em; }

/* ---------------------------------------------------------------- buttons
   One primary CTA label + style sitewide (.btn-primary): a solid ink/orange pair,
   always the inverse of the field it sits on. .btn-call is the phone number (outlined). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 3rem; padding: .75rem 1.35rem; border: 2px solid transparent; border-radius: var(--radius);
  font: 700 1.0625rem/1.1 var(--font-body); font-stretch: 88%; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .15s var(--ease), opacity .15s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-primary, .btn-submit { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.btn-ghost, .btn-call { border-color: currentColor; background: transparent; color: var(--fg); }
.btn-call .icon { width: 1.05em; height: 1.05em; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------------------------------------------------------------- header
   Fixed-height ink bar. The scrolled state only animates transform + opacity:
   an orange rule fades in via ::before, the wordmark scales. Never animate height. */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--ink); color: var(--paper);
  --fg: var(--paper); --focus: var(--orange); --btn-bg: var(--orange); --btn-fg: var(--ink); --link: var(--paper);
}
.site-header::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--orange);
  opacity: 0; transition: opacity .25s var(--ease);
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header__bar { position: relative; height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--paper); white-space: nowrap;
  transform-origin: left center; transition: transform .25s var(--ease);
}
.brand__name { font: 800 1.5rem/1 var(--font-display); font-stretch: 64%; text-transform: uppercase; letter-spacing: .01em; }
.brand__tag {
  padding: .28rem .4rem .22rem; background: var(--orange); color: var(--ink);
  font: 800 .8125rem/1 var(--font-display); font-stretch: 80%; text-transform: uppercase; letter-spacing: .08em;
}
.site-header.is-scrolled .brand { transform: scale(.94); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 1.35rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  position: relative; display: block; padding-block: .5rem; white-space: nowrap; color: var(--paper); text-decoration: none;
  font-weight: 700; font-stretch: 82%; text-transform: uppercase; letter-spacing: .03em; font-size: .9375rem;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease);
}
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--orange); }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (min-width: 1180px) {
  /* catalogue tab: the current page's tab hangs from the top of the bar */
  .site-nav a[aria-current="page"] {
    color: var(--ink); background: var(--orange); padding: 1.6rem .7rem .55rem; margin-block: -1.1rem -.05rem;
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .site-nav a[aria-current="page"]::after { display: none; }
}
.header-call {
  display: inline-flex; align-items: center; gap: .45em; color: var(--orange); font-weight: 700;
  text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.header-call:hover .header-call__num { text-decoration: underline; text-underline-offset: .22em; }
.header-cta { min-height: 2.75rem; padding-block: .55rem; }
.nav-toggle { display: none; }
/* the wordmark already links home on wide screens; the mobile menu keeps "Home" */
@media (min-width: 1180px) { .site-nav li:first-child { display: none; } }

@media (max-width: 1179px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem;
    border: 0; background: transparent; color: var(--paper); cursor: pointer;
  }
  .header-call { margin-left: auto; min-width: 2.75rem; min-height: 2.75rem; justify-content: center; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; padding: .5rem var(--gutter) 1.5rem;
    background: var(--ink); border-bottom: 3px solid var(--orange); box-shadow: 0 12px 24px rgb(0 0 0 / .25);
    opacity: 0; visibility: hidden; transform: translateY(-.5rem);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li + li { border-top: 1px solid var(--line-dark); }
  .site-nav a { padding: .9rem 0; font-size: 1.25rem; }
  .site-nav a::after { display: none; }
  .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: .3em; }
}
@media (max-width: 599px) {
  .header-call__num { display: none; }
  .header-call {
    border: 2px solid var(--orange); border-radius: var(--radius); gap: 0;
  }
  .header-cta { display: none; }
  .brand__name { font-size: 1.375rem; }
}

/* ---------------------------------------------------------------- plates (FIG.)
   A photo at its natural aspect in a 2px ink frame, with a FIG. tab caption.
   One FIG. sequence runs across the whole site. */
.plate { margin: 0; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); }
.plate__img { position: relative; background: var(--ink-2); }
.plate__img img { width: 100%; }
.plate__cap {
  display: flex; gap: .75rem; align-items: baseline; padding: .7rem .9rem .8rem;
  font-size: .9375rem; line-height: 1.4; color: var(--muted-dark);
}
.fig {
  flex: none; padding: .2rem .4rem .15rem; background: var(--orange); color: var(--ink);
  font: 800 .8125rem/1 var(--font-display); font-stretch: 80%; text-transform: uppercase; letter-spacing: .08em;
  transform: translateY(-.1em);
}
.plate--tall { max-width: 26rem; }
@media (min-width: 900px) {
  .split > .plate--tall, .plates-row > .plate--tall { justify-self: end; width: 100%; }
  .plate--center { justify-self: center; width: 100%; }
}
@media (max-width: 899px) { .plate--tall { max-width: 22rem; } }

/* callouts: discs on the photo keyed to the list under it (hover/focus either side lights both) */
.pin {
  position: absolute; left: var(--x); top: var(--y); width: 2.25rem; height: 2.25rem; margin: -1.125rem 0 0 -1.125rem;
  display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%;
  background: var(--orange); color: var(--ink); font: 800 1rem/1 var(--font-display); font-stretch: 80%;
  text-decoration: none; cursor: default;
  box-shadow: 0 2px 6px rgb(0 0 0 / .35);
  transition: transform .2s var(--ease-out);
}
.pin.is-lit, .pin:hover, .pin:focus-visible { transform: scale(1.18); }
.pin:focus-visible { outline-color: var(--ink); outline-offset: 2px; }
.key { list-style: none; margin: 0; padding: 0 .9rem .9rem; display: grid; gap: .1rem; }
.key li { display: grid; grid-template-columns: 1.75rem 1fr; gap: .75rem; align-items: start; padding: .45rem .5rem; margin-inline: -.5rem; color: var(--muted-dark); font-size: .9375rem; line-height: 1.45; }
.key li.is-lit { background: var(--ink-3); }
.key strong { color: var(--paper); }
.key__no {
  display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--orange); color: var(--ink); font: 800 .875rem/1 var(--font-display); font-stretch: 80%;
}
@media (prefers-reduced-motion: no-preference) {
  .js .pin { animation: pin-in .6s var(--ease-out) both; animation-delay: calc(.35s + var(--i, 0) * .14s); }
}
@keyframes pin-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }

/* ---------------------------------------------------------------- dot-leader price lists */
.leaders { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--fg); }
.leaders li {
  display: flex; align-items: flex-end; gap: .5rem; padding: .7rem 0 .65rem; border-bottom: 1px solid var(--rule);
}
.leaders li::before {
  content: ""; order: 1; flex: 1 1 2.5rem; min-width: 2.5rem; margin-bottom: .42em;
  border-bottom: 2px dotted var(--muted);
}
.leaders__item { order: 0; flex: 0 1 auto; min-width: 0; text-wrap: balance; }
.leaders__item small { display: block; font-size: .875rem; color: var(--muted); line-height: 1.35; margin-top: .1rem; }
.leaders__item a { font-weight: 700; }
.leaders .price { order: 2; flex: none; white-space: nowrap; font-weight: 700; }
.leaders--lg .leaders__item > :first-child, .leaders--lg .price { font-size: 1.125rem; }
.leaders__total { font-weight: 700; }
.leaders li.leaders__total { border-bottom: 2px solid var(--fg); }

/* highlighter: one swipe on the number that matters per money table */
.hl { position: relative; z-index: 0; padding-inline: .3em; margin-inline: -.3em; color: var(--ink); }
.price .hl { margin-inline-end: 0; padding-inline-end: .1em; }
.hl::before {
  content: ""; position: absolute; z-index: -1; inset: .05em 0 .02em; background: var(--orange);
  transform: skewX(-6deg) rotate(-1deg); transform-origin: left center;
}
@media (prefers-reduced-motion: no-preference) {
  .js .reveal .hl::before { transform: skewX(-6deg) rotate(-1deg) scaleX(0); transition: transform .7s var(--ease-out) .25s; }
  .js .reveal.is-in .hl::before { transform: skewX(-6deg) rotate(-1deg) scaleX(1); }
}

/* ---------------------------------------------------------------- home */
.hero { padding-block: clamp(2rem, 4.5vw, 3.5rem) clamp(3rem, 6vw, 4.5rem); }
.hero__grid { display: grid; gap: 2.5rem; }
.hero__title { font-size: clamp(3rem, 1.2rem + 6vw, 5.75rem); line-height: .88; margin-bottom: 1.5rem; font-stretch: 64%; }
.hero__text { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); line-height: 1.5; max-width: 30em; margin-bottom: 1.75rem; }
.hero__meta { margin-top: 1.5rem; font-size: .9375rem; color: var(--muted); font-weight: 600; }
.hero { border-top: 1px solid var(--line-dark); }
.hero .plate { max-width: 34rem; }
/* plates on ink bands: a hairline frame and a raised caption so they don't dissolve into the band */
.band--ink .plate { border-color: var(--line-dark); background: var(--ink-2); }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 4rem; }
  .hero .plate { justify-self: end; width: 100%; }
}

.floor__intro p { max-width: 30em; }
.floor__new { margin-top: 1.5rem; }

.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1rem; }
.steps li::before {
  content: counter(step); display: block; margin-bottom: .75rem;
  font: 800 3.5rem/.8 var(--font-display); font-stretch: 64%; color: var(--ink);
}
.steps p { color: var(--muted); max-width: 30em; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }

.findus__addr { font-size: 1.25rem; font-weight: 700; line-height: 1.35; margin-bottom: 1.25rem; }
.findus .hours { margin-block: 1.25rem 1.5rem; }
.findus__ways { margin: 0 0 1.5rem; padding-left: 1.1rem; color: var(--muted); }
.findus__ways li + li { margin-top: .5rem; }

.closing { text-align: left; }
.closing__grid { display: grid; gap: 1.5rem 3rem; align-items: end; }
.closing h2 { font-size: clamp(2.5rem, 1.3rem + 4.6vw, 4.75rem); margin: 0; max-width: 14em; }
.closing p { font-size: 1.125rem; max-width: 30em; }
@media (min-width: 900px) { .closing__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }

/* ---------------------------------------------------------------- inner pages */
.page-head { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem); border-bottom: 2px solid var(--ink); }
.page-head h1 { font-size: clamp(2.75rem, 1.3rem + 5vw, 5rem); line-height: .9; margin-bottom: 1rem; }
.page-head p { max-width: 36em; }
.page-head .actions { margin-top: 1.5rem; }

.units { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.unit { display: grid; gap: 1.5rem 3rem; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.unit + .unit { border-top: 1px solid var(--rule); padding-top: clamp(3rem, 6vw, 5rem); }
.unit__body h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin-bottom: .75rem; }
.unit__price { font: 800 clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem)/1 var(--font-display); font-stretch: 72%; margin-bottom: 1.25rem; }
.unit__price small { font: 600 .9375rem/1.4 var(--font-body); font-stretch: 100%; color: var(--muted); margin-left: .5rem; }
.unit .specs { margin-bottom: 1.25rem; padding-block: 1rem; border-block: 1px solid var(--rule); }
.unit__note { margin-bottom: 1.25rem; }
@media (min-width: 900px) {
  .unit { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
}

.cols { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 4rem; } }
.cols--3 { gap: 2rem; }
@media (min-width: 900px) { .cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ruled-block { border-top: 2px solid var(--fg); padding-top: 1rem; }
.ruled-block p, .ruled-block li { color: var(--muted); }
.ruled-block h3 { margin-bottom: .75rem; }
.ticks { margin: 0; padding-left: 1.15rem; }
.ticks li + li { margin-top: .4rem; }
.ticks li::marker { color: var(--fg); }

.table-wrap { overflow-x: auto; border-top: 2px solid var(--fg); }
.terms { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.terms th, .terms td { padding: .7rem .75rem; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--rule); }
.terms th:first-child, .terms td:first-child { text-align: left; padding-left: 0; }
.terms thead th { font-size: .875rem; color: var(--muted); font-weight: 600; }
.terms tbody th { font-weight: 700; }

.faq { border-top: 2px solid var(--fg); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0;
  font-weight: 700; font-size: 1.125rem; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: .7rem; height: .7rem; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: translateY(-25%) rotate(45deg); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(15%) rotate(-135deg); }
.faq details > div { padding: 0 0 1.25rem; color: var(--muted); max-width: 40em; }

.timeline { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--fg); }
.timeline li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.timeline__year { font: 800 1.75rem/1 var(--font-display); font-stretch: 66%; font-variant-numeric: tabular-nums; }
.timeline p { color: var(--muted); }

.quote p { font: 700 clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem)/1.2 var(--font-body); font-stretch: 85%; text-wrap: balance; max-width: 24em; }


.plates-row { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .plates-row { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }

.credits { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.credits th, .credits td { text-align: left; vertical-align: top; padding: .7rem .75rem .7rem 0; border-bottom: 1px solid var(--rule); }
.credits thead th { color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--fg); }
.credits td { overflow-wrap: anywhere; }
@media (max-width: 699px) {
  .credits thead { display: none; }
  .credits tr { display: grid; gap: .2rem; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
  .credits td { padding: 0; border: 0; }
}

/* ---------------------------------------------------------------- forms */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; }
.field__hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: .65rem .8rem; border: 2px solid var(--ink); border-radius: var(--radius);
  background: var(--white); color: var(--ink); font: inherit; caret-color: var(--ink);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 55%, calc(100% - .8rem) 55%; background-size: .35rem .35rem; background-repeat: no-repeat; padding-right: 2.25rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--orange-deep); outline-offset: 1px; }
.field.is-required label::after { content: " (required)"; font-weight: 400; color: var(--muted); }
.form__next { color: var(--c-muted); padding: .9rem 1rem; background: var(--paper); border-top: 2px solid var(--ink); margin: .25rem 0 0; }
.form__status:empty { display: none; }
.form__status { font-weight: 600; }
.form__status[data-kind="error"] { color: var(--c-error); }
.form__status[data-kind="ok"] { color: var(--c-ok); }
.btn-submit { justify-self: start; }

/* ---------------------------------------------------------------- contact (phone before form on mobile) */
.contact { display: grid; gap: 2.5rem; padding-block: 0; }
.contact__quick { display: grid; gap: 1.25rem; align-content: start; }
.contact__quick .btn-call { justify-self: start; }
.contact__form { padding: clamp(1.25rem, 3vw, 2rem); background: var(--white); border: 2px solid var(--ink); }
.contact__form h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); margin-bottom: .25rem; }
@media (min-width: 900px) {
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: start; gap: 4rem; }
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  padding-block: 3.5rem 1.5rem; background: var(--ink); color: var(--paper);
  --fg: var(--paper); --muted: var(--muted-dark); --rule: var(--line-dark); --focus: var(--orange); --link: var(--paper); --link-line: var(--orange);
}
.site-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.site-footer__name { margin: 0 0 1rem; }
.site-footer__heading { margin: 0 0 .9rem; font: 800 1.125rem/1 var(--font-display); font-stretch: 72%; text-transform: uppercase; letter-spacing: .04em; color: var(--orange); }
.site-footer nav ul, .social { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer nav a, .social a { text-decoration: none; }
.site-footer nav a:hover, .social a:hover span { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: .22em; }
.site-footer .social { margin-top: 1.25rem; }
.site-footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line-dark); color: var(--muted-dark); font-size: .875rem;
}
.site-footer__legal p { margin: 0; }
.site-footer__legal a { color: var(--muted-dark); }

/* ---------------------------------------------------------------- 404 */
.notfound { padding-block: 5rem 6rem; }
.notfound h1 { font-size: clamp(2.75rem, 1.3rem + 5vw, 5rem); margin-bottom: 1rem; }
.notfound .actions { margin-top: 1.5rem; }

/* ---------------------------------------------------------------- motion
   Reveals use transform + opacity only, and only when motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal:not(.is-in) { opacity: 0; transform: translateY(1rem); }
  .js .reveal { transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.note--after { margin-top: 1rem; }

/* closing strip on inner pages */
.strip { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.strip__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.strip h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); margin-bottom: .5rem; }
.strip p { font-weight: 600; }
.parts-lists { margin-top: clamp(2.5rem, 5vw, 4rem); }
.parts-lists h3 { margin-bottom: .75rem; }
.service-plates { display: grid; gap: 1.5rem; }
.quote { margin: 2.5rem 0 0; }
.quote blockquote { margin: 0; }
.quote figcaption { margin-top: 1rem; color: var(--muted); }
.findus__ways a { font-weight: 600; }

/* terms table on phones: one block per bike, no sideways scroll that cuts figures off */
@media (max-width: 699px) {
  .table-wrap { overflow: visible; }
  .terms thead { display: none; }
  .terms, .terms tbody { display: block; }
  .terms tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem .75rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
  .terms tbody th { grid-column: 1 / -1; padding: 0; border: 0; font-size: 1.0625rem; }
  .terms td { display: grid; padding: 0; border: 0; text-align: left; font-weight: 600; }
  .terms td::before { content: attr(data-label); font-size: .8125rem; font-weight: 400; color: var(--muted); }
  .terms td .hl { justify-self: start; }
}

/* about: the people at the counter, as a roster */
.roster { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--fg); }
.roster li { display: grid; gap: .25rem 2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.roster__name { font: 800 clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem)/1 var(--font-display); font-stretch: 66%; text-transform: uppercase; }
.roster__role { color: var(--muted); max-width: 40em; }
@media (min-width: 700px) { .roster li { grid-template-columns: 10rem 1fr; align-items: baseline; } }
