/* ==========================================================================
   Delta Truck Repairs
   Colours are semantic roles: components only ever use the role names,
   so the accent can change in one place.
   Rationale for every token: design-system/delta-truck-repairs/MASTER.md
   ========================================================================== */

:root {
  /* base: carbon and cool steel, shared by every palette */
  --dark: #0D1015;
  --dark-2: #161A21;
  --dark-3: #08090C;
  --light: #F1F3F6;
  --paper: #F7F8FA;
  --on-dark: #F4F6F9;
  --on-dark-2: #AEB6C2;
  --on-dark-3: #858F9E;
  --ink: #0D1015;
  --ink-2: #4A5261;
  --rule-dark: rgba(174, 182, 194, 0.16);
  --rule-light: #D3D8DF;
  --error-on-dark: #FF9A9A;
  --brand-red: #E0252E;
  --chrome-text: linear-gradient(180deg, #FFFFFF 0%, #E6EAF0 34%, #8E98A8 49%, #F3F5F8 57%, #BCC4D0 78%, #EEF1F5 100%);

  /* accent: electric blue (chosen 2026-09-21) */
  --accent: #2459E8;
  --accent-hover: #3A6BF0;
  --on-accent: #FFFFFF;
  --accent-on-dark: #7EA4FF;
  --accent-on-light: #1D4ED8;
  --glow: rgba(36, 89, 232, 0.34);

  /* type: Archivo, one family. Width does the work: 125% display, 100% text */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --fs-small: 0.875rem;   /* 14 */
  --fs-meta: 0.9375rem;   /* 15 */
  --fs-body: 1.0625rem;   /* 17, 18 from 768px */
  --fs-h3: 1.3125rem;     /* 21 */
  --fs-lead: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);          /* 18 to 21 */
  --fs-h2: clamp(2rem, 1.1rem + 2.9vw, 3.75rem);                  /* 32 to 60 */
  --fs-engine: clamp(1.625rem, 1.05rem + 2.1vw, 3rem);            /* 26 to 48 */
  --fs-quote: clamp(1.375rem, 1rem + 1.3vw, 2rem);                /* 22 to 32 */

  /* layout */
  --max: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 68px;
  --section-y: clamp(72px, 9vw, 136px);
  --section-y-tight: clamp(56px, 6vw, 96px);
  --chamfer: 12px;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 160ms;

  /* layers */
  --z-sticky: 5;
  --z-bar: 90;
  --z-header: 100;
  --z-skip: 1000;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--dark);
  color: var(--on-dark);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 768px) { body { --fs-body: 1.125rem; } }
img, svg { display: block; max-width: 100%; }
p, li { text-wrap: pretty; }
/* headings break into even lines, so a lone word never hangs on the last one */
h1, h2, h3 { text-wrap: balance; }
/* a phone number never splits across two lines */
a[href^="tel:"] { white-space: nowrap; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--on-accent); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px solid var(--accent-on-dark); outline-offset: 3px; }
.section--light :focus-visible { outline-color: var(--accent-on-light); }
.roadside :focus-visible { outline-color: var(--on-accent); }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

section[id] { scroll-margin-top: var(--header-h); }

.skip-link {
  position: absolute; left: 12px; top: -120px; z-index: var(--z-skip);
  background: var(--accent); color: var(--on-accent);
  padding: 12px 18px; font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- surfaces ---------- */
.section { padding-block: var(--section-y); }
.section--light { background: var(--light); color: var(--ink); --line: var(--rule-light); --signal: var(--accent-on-light); }
/* The faint gradient is invisible on purpose (2026-11-15). On a solid colour, Chrome on Mac draws empty strips of the
   section as flat fills that come out a shade darker than the strips it paints (text, photos), which showed as a blue-black
   band behind the Meet the Team photo. A gradient makes Chrome paint every strip the same way. Keep it on dark sections. */
.section--dark { background: var(--dark) linear-gradient(180deg, var(--dark), #0E1116); color: var(--on-dark); --line: var(--rule-dark); --signal: var(--accent-on-dark); }

.section-head { display: grid; gap: 16px; max-width: 46rem; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head--compact { gap: 10px; max-width: none; margin-bottom: clamp(24px, 3vw, 36px); }
@media (min-width: 1024px) {
  .section-head--compact { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
  .section-head--compact .section-intro { max-width: 32rem; padding-bottom: 4px; }
}
.section-title {
  font-size: var(--fs-h2);
  font-stretch: 115%;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.section-intro { font-size: var(--fs-lead); line-height: 1.5; max-width: 40rem; text-wrap: pretty; }
.section--light .section-intro { color: var(--ink-2); }
.section--dark .section-intro { color: var(--on-dark-2); }

/* ---------- buttons & links ---------- */
.btn {
  --c: var(--chamfer);
  position: relative;
  isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 56px;
  padding: 0 1.5em;
  border: 0;
  font-size: 1.0625rem;
  font-weight: 750;
  font-stretch: 110%;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  transition: background-color var(--fast) ease, color var(--fast) ease, transform var(--fast) ease, translate var(--fast) ease;
  touch-action: manipulation;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--on-accent); outline-offset: -7px; }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--dark { background: var(--dark); color: var(--on-dark); }
.btn--dark:hover { background: var(--dark-2); }
.btn--dark:focus-visible { outline-color: var(--accent-on-dark); }
/* chamfered outline: the element is the border colour, ::before is the fill */
.btn--outline { background: var(--outline-edge, var(--on-accent)); color: var(--outline-edge, var(--on-accent)); }
.btn--outline::before {
  content: ""; position: absolute; inset: 2px; z-index: -1;
  background: var(--outline-fill, var(--accent));
  clip-path: polygon(calc(var(--c) - 1px) 0, 100% 0, 100% calc(100% - var(--c) + 1px), calc(100% - var(--c) + 1px) 100%, 0 100%, 0 calc(var(--c) - 1px));
  transition: background-color var(--fast) ease;
}
.btn--outline:hover { color: var(--outline-fill, var(--accent)); }
.btn--outline:hover::before { background: var(--outline-edge, var(--on-accent)); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn--block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; font-stretch: 110%;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
  text-decoration-color: var(--signal, var(--accent-on-dark));
  transition: text-decoration-thickness var(--fast) ease;
}
.text-link:hover { text-decoration-thickness: 4px; }

.status-light {
  width: 10px; height: 10px; flex: none; border-radius: 50%;
  background: var(--accent-on-dark);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-on-dark) 18%, transparent), 0 0 14px color-mix(in srgb, var(--accent-on-dark) 70%, transparent);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--dark); color: var(--on-dark);
  box-shadow: 0 16px 32px -24px rgba(0, 0, 0, 0.8);
}
.header-bar { display: flex; align-items: stretch; height: var(--header-h); }
.brand {
  display: flex; align-items: center; gap: 12px;
  padding-inline: var(--gutter) 28px;
  /* no divider lines in the header bar (Paul, 2026-11-23) */
  text-decoration: none;
}
/* the triangle mark (from the proposed uniform, 2026-09-24): steel with an electric blue inner triangle. As the page scrolls
   the body fills blue from the base (.brand-fill, clipped by js/main.js), so it doubles as a progress gauge. */
.brand-mark { width: 46px; height: auto; overflow: visible; }
.brand-body { fill: #D3D9E1; transition: fill var(--fast) ease; }
.brand-fill { fill: var(--accent-on-dark); }
.brand-inner { fill: var(--accent); transform-box: fill-box; transform-origin: 50% 100%; transition: transform 320ms var(--ease-out), filter 320ms ease; }
@media (hover: hover) {
  /* the inner triangle lifts and glows, the body brightens */
  .brand:hover .brand-inner, .brand:focus-visible .brand-inner { transform: translateY(-3px); filter: drop-shadow(0 0 3px var(--accent-on-dark)); }
  .brand:hover .brand-body, .brand:focus-visible .brand-body { fill: #FFFFFF; }
}
/* on load the body rises from the base and the inner triangle pops up after it (backwards: the end state is the normal style, so hover still works) */
@keyframes mark-rise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes mark-pop { from { transform: scale(0); opacity: 0; } 70% { transform: scale(1.12); opacity: 1; } to { transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) {
  .brand-body { animation: mark-rise 800ms var(--ease-out) backwards; }
  .brand-inner { animation: mark-pop 560ms var(--ease-out) 420ms backwards; }
}
.brand-text { display: grid; line-height: 1; }
.brand-word { font-size: 1.4rem; font-weight: 900; font-stretch: 125%; letter-spacing: 0.01em; text-transform: uppercase; }
.brand-sub { margin-top: 5px; font-size: 0.72rem; font-weight: 700; font-stretch: 112%; letter-spacing: 0.02em; color: var(--on-dark-2); }

.site-nav { flex: 1; display: flex; align-items: center; justify-content: center; }
/* seven links now: the gap closes up on narrower laptops (16px at 1080) and opens out on wide screens (29px at 1440, 36px from 1636) */
.nav-list { display: flex; gap: clamp(14px, 3.6vw - 23px, 36px); }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; font-stretch: 106%; text-decoration: none; color: var(--on-dark-2);
  border-bottom: 2px solid transparent;
  transition: color var(--fast) ease, border-color var(--fast) ease;
}
.nav-list a:hover, .nav-list a.is-current { color: var(--on-dark); border-bottom-color: var(--accent-on-dark); }
.nav-panel-note { display: none; }

.header-status {
  display: flex; align-items: center; gap: 10px;
  padding-inline: 24px;
  font-size: var(--fs-meta); font-weight: 650; color: var(--on-dark-2); white-space: nowrap;
}
@media (max-width: 1279px) { .header-status { display: none; } }
.header-call {
  display: flex; align-items: center; gap: 10px;
  padding-inline: 28px var(--gutter);
  background: var(--accent); color: var(--on-accent);
  font-size: 1.0625rem; font-weight: 800; font-stretch: 112%;
  text-decoration: none; white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: background-color var(--fast) ease;
}
.header-call:hover { background: var(--accent-hover); }
.header-call:focus-visible { outline-color: var(--on-accent); outline-offset: -5px; }
.header-call-short { display: none; }

.nav-toggle {
  display: none; align-items: center; gap: 8px;
  padding-inline: 18px var(--gutter);
  background: none; border: 0;
  font-weight: 700; font-stretch: 108%; color: var(--on-dark);
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1079px) {
  .brand { flex: 1; }
  .nav-toggle { display: flex; }
  .header-call { padding-inline: 20px; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none;
    padding: 8px var(--gutter) 28px;
    background: var(--dark);
    border-bottom: 1px solid var(--rule-dark);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.5);
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list li + li { border-top: 1px solid var(--rule-dark); }
  .nav-list a { display: flex; min-height: 56px; font-size: 1.25rem; font-stretch: 112%; border-bottom: 0; color: var(--on-dark); }
  .nav-list a:hover { color: var(--accent-on-dark); }
  .nav-panel-note { display: block; margin-top: 16px; font-size: var(--fs-meta); color: var(--on-dark-2); }
}
@media (max-width: 599px) {
  :root { --header-h: 60px; }
  .brand-mark { width: 38px; }
  .brand-word { font-size: 1.2rem; }
  .brand-sub { font-size: 0.66rem; }
  .header-call { padding-inline: 16px; }
  .header-call-full { display: none; }
  .header-call-short { display: inline; }
  .nav-toggle { padding-inline: 14px var(--gutter); }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: flex; align-items: center;
  min-height: calc(100svh - var(--header-h));
  padding-block: clamp(40px, 6vw, 96px) clamp(64px, 8vw, 120px);
  background:
    radial-gradient(60% 55% at 76% 46%, var(--glow), transparent 70%),
    var(--dark);
  --signal: var(--accent-on-dark);
}
/* the hero settles into plain carbon at its foot, so the roadside section can rise out of it */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  height: clamp(64px, 8vw, 120px);
  background: linear-gradient(0deg,
    var(--dark) 0%,
    color-mix(in srgb, var(--dark) 97.2%, transparent) 10%,
    color-mix(in srgb, var(--dark) 89.6%, transparent) 20%,
    color-mix(in srgb, var(--dark) 78.4%, transparent) 30%,
    color-mix(in srgb, var(--dark) 64.8%, transparent) 40%,
    color-mix(in srgb, var(--dark) 50%, transparent) 50%,
    color-mix(in srgb, var(--dark) 35.2%, transparent) 60%,
    color-mix(in srgb, var(--dark) 21.6%, transparent) 70%,
    color-mix(in srgb, var(--dark) 10.4%, transparent) 80%,
    color-mix(in srgb, var(--dark) 2.8%, transparent) 90%,
    transparent 100%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 64px); align-items: center; }
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: clamp(40px, 5vw, 88px); }
}
.hero-copy { position: relative; z-index: 2; container-type: inline-size; }
/* Sized from the column width so "Bumper to bumper" always holds one line:
   at 118% width the line measures ~10.7em, at 106% ~9.7em. */
.hero-title {
  font-size: clamp(2rem, 9.1cqi, 4.5rem);
  font-stretch: 118%;
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero-title span { display: block; white-space: nowrap; }
@media (max-width: 599px) { .hero-title { font-size: clamp(1.75rem, 10cqi, 3rem); font-stretch: 106%; } }
.hero-lead { margin-top: 28px; max-width: 34rem; font-size: var(--fs-lead); line-height: 1.5; color: var(--on-dark-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 36px; }
.hero-clock {
  display: flex; align-items: center; gap: 12px;
  margin-top: 32px;
  font-size: var(--fs-meta); font-weight: 600; color: var(--on-dark-2);
  font-variant-numeric: tabular-nums;
}

.hero-badge { position: relative; z-index: 1; }
.hero-road {
  position: absolute; z-index: 0;
  left: calc(50% - 1200px);
  width: 2400px; max-width: none;
  pointer-events: none;
  animation: fade-in 1.6s ease-out 0.2s both;
  top: 50%; height: 1400px;
}
.hero-road .road-dashes { fill: var(--accent-on-dark); fill-opacity: 0.7; }
/* Phones and tablets: the badge fills the width, so a horizon behind its middle would hide the verges (and the
   kangaroo sign) behind it. There the road starts at the foot of the badge instead, with a little more room below it. */
@media (max-width: 1023px) {
  .hero { padding-bottom: calc(clamp(64px, 8vw, 120px) + 88px); }
  .hero-road { top: 100%; }
  /* the road is short here, so the sign never gets close: draw it bigger, standing on the same spot, and hold it
     nearer the horizon when it's still */
  .sign-art { scale: 1.5; transform-origin: -50px 1000px; transform-box: view-box; }
  .road-sign { scale: 0.12; }
}
/* Everything on the road is drawn once at a reference size and scaled about the vanishing point (1200, 0), so its
   size and place follow the road's perspective. Each step along the road is 1.8 times the size of the one before
   (the road's original dash spacing), and far things are dim while near ones are lit by our headlights.
   With motion allowed (client requests, 2026-09-22) it all runs towards you, as if you were driving: every
   --road-step each copy grows into the next one's place, so the pattern repeats without a jump, and a copy restarts
   behind the badge, too small to see, once it's gone past the bottom of the hero. The curve makes each step grow by
   the same factor (an exponential between keyframes), so things speed up smoothly as they come closer. */
.road-dashes path, .road-posts > g, .road-sign { transform-origin: 1200px 0; transform-box: view-box; }
/* the centre line: seven dashes, one step apart */
.road-dashes path:nth-child(1) { scale: 0.02; opacity: 0.25; }
.road-dashes path:nth-child(2) { scale: 0.036; opacity: 0.35; }
.road-dashes path:nth-child(3) { scale: 0.0648; opacity: 0.48; }
.road-dashes path:nth-child(4) { scale: 0.1166; opacity: 0.62; }
.road-dashes path:nth-child(5) { scale: 0.21; opacity: 0.78; }
.road-dashes path:nth-child(6) { scale: 0.3779; opacity: 0.92; }
.road-dashes path:nth-child(7) { scale: 0.6802; opacity: 1; }
/* guide posts: four on each verge, two steps apart, the right-hand ones a step behind the left */
.road-posts rect { fill: var(--on-dark-3); }
.road-posts .reflector { fill: var(--accent-on-dark); }
.road-posts--left > :nth-child(1) { scale: 0.02; opacity: 0.25; }
.road-posts--right > :nth-child(1) { scale: 0.036; opacity: 0.35; }
.road-posts--left > :nth-child(2) { scale: 0.0648; opacity: 0.48; }
.road-posts--right > :nth-child(2) { scale: 0.1166; opacity: 0.62; }
.road-posts--left > :nth-child(3) { scale: 0.21; opacity: 0.78; }
.road-posts--right > :nth-child(3) { scale: 0.3779; opacity: 0.92; }
.road-posts--left > :nth-child(4) { scale: 0.6802; opacity: 1; }
.road-posts--right > :nth-child(4) { scale: 1.2244; opacity: 1; }
/* the kangaroo sign, in the site's chrome with a carbon roo. Still, it stands part-way along the verge. */
.road-sign { scale: 0.3; opacity: 0.9; }
.sign-post { fill: var(--on-dark-3); }
.sign-face { fill: url(#signChrome); }
.sign-rim { fill: none; stroke: var(--dark); stroke-width: 4.5; }
.sign-roo { fill: var(--dark); }
@media (prefers-reduced-motion: no-preference) {
  .hero-road { --road-step: 1.05s; }
  .road-dashes path { animation: road-drive calc(var(--road-step) * 7) cubic-bezier(0.333, 0.245, 0.667, 0.559) infinite; }
  .road-dashes path:nth-child(2) { animation-delay: calc(var(--road-step) * -1); }
  .road-dashes path:nth-child(3) { animation-delay: calc(var(--road-step) * -2); }
  .road-dashes path:nth-child(4) { animation-delay: calc(var(--road-step) * -3); }
  .road-dashes path:nth-child(5) { animation-delay: calc(var(--road-step) * -4); }
  .road-dashes path:nth-child(6) { animation-delay: calc(var(--road-step) * -5); }
  .road-dashes path:nth-child(7) { animation-delay: calc(var(--road-step) * -6); }
  .road-posts > g { animation: road-post calc(var(--road-step) * 8) cubic-bezier(0.333, 0.245, 0.667, 0.559) infinite; }
  .road-posts--left > :nth-child(1) { animation-delay: calc(var(--road-step) * -0); }
  .road-posts--right > :nth-child(1) { animation-delay: calc(var(--road-step) * -1); }
  .road-posts--left > :nth-child(2) { animation-delay: calc(var(--road-step) * -2); }
  .road-posts--right > :nth-child(2) { animation-delay: calc(var(--road-step) * -3); }
  .road-posts--left > :nth-child(3) { animation-delay: calc(var(--road-step) * -4); }
  .road-posts--right > :nth-child(3) { animation-delay: calc(var(--road-step) * -5); }
  .road-posts--left > :nth-child(4) { animation-delay: calc(var(--road-step) * -6); }
  .road-posts--right > :nth-child(4) { animation-delay: calc(var(--road-step) * -7); }
  /* one sign every 11 steps (11.6s): it runs the road for 7 steps, then waits off screen. The first passes about
     4 seconds after the page opens. */
  .road-sign { animation: road-sign calc(var(--road-step) * 11) cubic-bezier(0.333, 0.245, 0.667, 0.559) infinite; }
  /* parked while the hero is off screen (js/main.js) */
  .hero-road.is-parked * { animation-play-state: paused; }
}
@keyframes road-drive {
  0% { scale: 0.02; opacity: 0.25; }
  14.2857% { scale: 0.036; opacity: 0.35; }
  28.5714% { scale: 0.0648; opacity: 0.48; }
  42.8571% { scale: 0.1166; opacity: 0.62; }
  57.1429% { scale: 0.21; opacity: 0.78; }
  71.4286% { scale: 0.3779; opacity: 0.92; }
  85.7143% { scale: 0.6802; opacity: 1; }
  100% { scale: 1.2244; opacity: 1; }
}
@keyframes road-post {
  0% { scale: 0.02; opacity: 0.25; }
  12.5% { scale: 0.036; opacity: 0.35; }
  25% { scale: 0.0648; opacity: 0.48; }
  37.5% { scale: 0.1166; opacity: 0.62; }
  50% { scale: 0.21; opacity: 0.78; }
  62.5% { scale: 0.3779; opacity: 0.92; }
  75% { scale: 0.6802; opacity: 1; }
  87.5% { scale: 1.2244; opacity: 1; }
  100% { scale: 1.2244; opacity: 1; }
}
@keyframes road-sign {
  0% { scale: 0.02; opacity: 0.25; }
  9.0909% { scale: 0.036; opacity: 0.35; }
  18.1818% { scale: 0.0648; opacity: 0.48; }
  27.2727% { scale: 0.1166; opacity: 0.62; }
  36.3636% { scale: 0.21; opacity: 0.78; }
  45.4545% { scale: 0.3779; opacity: 0.92; }
  54.5455% { scale: 0.6802; opacity: 1; }
  63.6364% { scale: 1.2244; opacity: 1; }
  100% { scale: 1.2244; opacity: 1; }
}
.badge-frame { position: relative; padding: clamp(18px, 2.2vw, 30px) clamp(14px, 2vw, 28px); }
.badge-frame::before {
  content: ""; position: absolute; inset: 14% 8% 6%; z-index: -1;
  background: radial-gradient(closest-side, var(--glow), transparent 100%);
  filter: blur(24px);
}
.badge-img {
  width: 100%; height: auto;
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.55));
  animation: badge-in 1.1s var(--ease-out) 0.1s both;
}

/* corner brackets, shared by the hero badge, the about photos and team photos */
.corner {
  position: absolute; z-index: 2; width: 30px; height: 30px;
  border: 0 solid var(--corner, var(--on-dark-2));
  pointer-events: none;
}
.corner--tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; --dx: 36px; --dy: 26px; }
.corner--tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; --dx: -36px; --dy: 26px; }
.corner--bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; --dx: 36px; --dy: -26px; }
.corner--br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; --dx: -36px; --dy: -26px; }
.hero .corner { animation: corner-in 1s var(--ease-out) 0.15s both; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes badge-in { from { opacity: 0; transform: translateY(16px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes corner-in { from { opacity: 0; transform: translate(var(--dx), var(--dy)); } to { opacity: 1; transform: none; } }

/* ---------- photo slider (roadside, about, recent work, reviews) ---------- */
.carousel { position: relative; }
.carousel-track {
  position: relative;
  display: flex; gap: var(--slide-gap, 0px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline-offset: -3px; }
.carousel-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.carousel-slide img { width: 100%; object-fit: cover; }
.carousel-nav { display: flex; align-items: center; gap: 6px; }
.carousel-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  background: transparent; color: inherit;
  border: 1px solid currentColor;
  transition: background-color var(--fast) ease, color var(--fast) ease;
  touch-action: manipulation;
}
.carousel-btn .icon { width: 22px; height: 22px; }
.carousel-count { min-width: 4.2em; text-align: center; font-size: var(--fs-meta); font-weight: 700; font-variant-numeric: tabular-nums; }
.section--dark .carousel-btn:hover { background: var(--on-dark); color: var(--dark); }
.section--light .carousel-btn:hover { background: var(--ink); color: var(--light); }
/* controls floating on a photo */
.carousel-nav--overlay {
  position: absolute; right: 14px; bottom: 14px; z-index: 4;
  padding: 5px; gap: 2px;
  background: rgba(8, 9, 12, 0.72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #FFFFFF;
}
.carousel-nav--overlay .carousel-btn { border-color: transparent; }
.carousel-nav--overlay .carousel-btn:hover { background: #FFFFFF; color: #08090C; }
/* fills its parent (roadside panel on desktop) */
.carousel--fill .carousel-slide img { aspect-ratio: 16 / 10; }
@media (min-width: 1024px) {
  .carousel--fill { position: absolute; inset: 0; }
  .carousel--fill .carousel-track, .carousel--fill .carousel-slide { height: 100%; }
  .carousel--fill .carousel-slide img { height: 100%; aspect-ratio: auto; }
}

/* ---------- services: truck explorer (tabs, the drawing, one description panel) ---------- */
.services { padding-block: clamp(56px, 4.5vw, 72px) var(--section-y-tight); }
/* phones: drawing, then its description, then the service buttons, so the answer is always right under what you tapped */
.fix {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "diagram" "panel" "tabs";
  gap: 12px;
}
/* phones and tablets: rows that always fill (the last button stretches), so none sits on its own */
.fix-tabs { grid-area: tabs; display: flex; flex-wrap: wrap; gap: 8px; }
.fix-tabs .fix-tab { flex: 1 1 calc(50% - 4px); }
@media (min-width: 600px) { .fix-tabs .fix-tab { flex-basis: calc(25% - 6px); } }
.fix-tab {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 12px;
  background: #FFFFFF; color: var(--ink);
  border: 1px solid var(--line);
  font-size: 0.9375rem; font-weight: 700; font-stretch: 106%; line-height: 1.2; text-align: center;
  transition: background-color var(--fast) ease, color var(--fast) ease, border-color var(--fast) ease;
  touch-action: manipulation;
  position: relative; isolation: isolate; overflow: hidden;
}
.fix-tab:hover { border-color: var(--ink); }
/* the selected tab carries an electric-blue bar along its foot; hovering slides one in */
.fix-tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.35s var(--ease-out);
}
.fix-tab[aria-selected="true"]::after { transform: scaleX(1); background: var(--accent-on-dark); }
@media (hover: hover) and (pointer: fine) {
  /* a soft light follows the mouse across the tab (--mx and --my, set by js/main.js) */
  .fix-tab::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(120px circle at var(--mx, -300px) var(--my, 50%), rgb(36 89 232 / 0.16), transparent 70%);
    opacity: 0; transition: opacity 0.25s ease;
  }
  .fix-tab[aria-selected="true"]::before { background: radial-gradient(120px circle at var(--mx, -300px) var(--my, 50%), rgb(126 164 255 / 0.3), transparent 70%); }
  .fix-tab:hover::before { opacity: 1; }
  .fix-tab:hover::after { transform: scaleX(1); }
}
.fix-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--light); }
.fix-tab:focus-visible { outline-offset: 2px; }

.diagram {
  grid-area: diagram;
  --grid: rgba(13, 16, 21, 0.05);
  padding: 10px 6px;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--paper);
}
.fix-panels { grid-area: panel; display: grid; }
.fix-panel {
  display: flex; flex-direction: column; gap: 8px;
  min-height: 190px;
  padding: 20px 20px 14px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: inset 3px 0 0 var(--accent-on-light);
}
.fix-panel:focus-visible { outline-offset: -3px; }
.fix-panel.is-entering { animation: panel-in 0.24s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fix-title { font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.75rem); font-weight: 800; font-stretch: 110%; line-height: 1.18; letter-spacing: -0.01em; }
.fix-panel p { font-size: 1rem; line-height: 1.55; color: var(--ink-2); }
.fix-panel .text-link { align-self: flex-start; margin-top: auto; }

@media (min-width: 1024px) {
  /* laptops: tabs across the top, drawing and description side by side, all on one screen */
  .fix {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    grid-template-areas: "tabs tabs" "diagram panel";
    gap: 14px 0;
  }
  .fix-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); background: #FFFFFF; }
  .fix-tab { min-height: 54px; border: 0; border-right: 1px solid var(--line); }
  .fix-tab:last-child { border-right: 0; }
  .fix-tab:hover { background: var(--light); }
  .fix-tab[aria-selected="true"] { background: var(--ink); color: var(--light); }
  .diagram { padding: clamp(12px, 1.6vw, 24px); border-right: 0; }
  .fix-panel { height: 100%; gap: 14px; padding: clamp(24px, 2.4vw, 36px); box-shadow: inset 4px 0 0 var(--accent-on-light); }
  .fix-panel p { font-size: 1.0625rem; }
}

.truck { width: 100%; height: auto; overflow: visible; }
.truck .t-line { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; transition: stroke var(--fast) ease; }
.truck .t-fill { fill: var(--paper); }
.truck .t-detail { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; opacity: 0.5; }
.truck .t-hidden { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 6 5; opacity: 0.55; }
.truck .t-rims circle { fill: none; stroke: var(--ink); stroke-width: 1.4; opacity: 0.55; }
.truck .t-road { fill: none; stroke: var(--ink); stroke-width: 2.6; }
.truck .t-road-dash { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 28 20; opacity: 0.3; }
.truck .t-tail { fill: var(--brand-red); }
.truck .t-markers circle { fill: var(--accent-on-light); stroke: var(--ink); stroke-width: 1; }
.truck .leader { fill: none; stroke: var(--ink); stroke-width: 1.2; opacity: 0.45; }
.truck .hit { fill: transparent; }
.truck .dim-hit { fill: none; stroke: transparent; stroke-width: 34; }
.truck .hotspot {
  fill: var(--accent-on-light); stroke: var(--paper); stroke-width: 3;
  transform-box: fill-box; transform-origin: center;
  transition: transform var(--fast) var(--ease-out);
}
.truck .t-label {
  font-family: var(--font); font-size: 22px; font-weight: 700; font-stretch: 108%;
  fill: var(--ink);
  paint-order: stroke; stroke: var(--paper); stroke-width: 7px; stroke-linejoin: round;
  transition: opacity var(--fast) ease, fill var(--fast) ease;
}
.truck .dim-line { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.truck .dim-ext { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.4; }
.truck .dim-arrow { fill: var(--ink); }
.truck .part { cursor: pointer; }
.truck .ping {
  fill: rgb(29 78 216 / 0.12); stroke: var(--accent-on-light); stroke-width: 3;
  opacity: 0; pointer-events: none;
  transform-box: fill-box; transform-origin: center;
  --ping-from: 1; --ping-to: 3.6;
}
.truck .part.is-pinging .ping { animation: part-ping 1s var(--ease-out); }
@keyframes part-ping { from { opacity: 1; transform: scale(var(--ping-from)); } to { opacity: 0; transform: scale(var(--ping-to)); } }
.truck .scan { opacity: 0; pointer-events: none; }
.truck .scan-band { fill: var(--accent-on-light); opacity: 0.14; }
.truck .scan-line { fill: var(--accent-on-light); }
.truck.is-scanning .scan { animation: truck-scan 1.3s cubic-bezier(0.45, 0, 0.25, 1); }
@keyframes truck-scan { 0% { opacity: 0; transform: translateX(0); } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translateX(790px); } }
.truck .part-shape { transition: stroke var(--fast) ease, fill var(--fast) ease, opacity var(--fast) ease; }

.truck.has-active .t-label { opacity: 0.45; }
.truck .part.is-hover .t-label { opacity: 1; }
.truck .part.is-hover .hotspot { transform: scale(1.3); }
.truck .part.is-active .t-label { opacity: 1; fill: var(--accent-on-light); }
.truck .part.is-active .part-shape { stroke: var(--accent-on-light); stroke-width: 3; stroke-dasharray: none; opacity: 1; }
.truck .part.is-active .t-fill.part-shape { fill: color-mix(in srgb, var(--accent-on-light) 12%, #FFFFFF); }
.truck .part.is-active .hotspot { transform: scale(1.45); }
.truck .part.is-active .leader { stroke: var(--accent-on-light); opacity: 1; }
.truck .part.is-active .dim-line, .truck .part.is-active .dim-ext { stroke: var(--accent-on-light); opacity: 1; }
.truck .part.is-active .dim-arrow { fill: var(--accent-on-light); }
/* an inspection covers the whole truck */
.truck[data-active="inspection"] .t-body .t-line,
.truck[data-active="inspection"] .t-line.part-shape { stroke: var(--accent-on-light); }

@media (max-width: 759px) {
  .truck .t-label, .truck .leader, .truck .part--dim { display: none; }
  .truck .hotspot { transform: scale(1.9); }
  .truck .part.is-hover .hotspot { transform: scale(2.1); }
  .truck .part.is-active .hotspot { transform: scale(2.6); }
  .truck .ping { --ping-from: 2; --ping-to: 5.5; }
}

/* More We Cover: a supplementary list for services not shown as truck-diagram tabs (2026-09-23). Same row-divider
   language as .area-list, in even columns as the viewport allows. */
.fix-more { margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(28px, 3.5vw, 40px); border-top: 1px solid var(--line); }
.fix-more-title { font-size: var(--fs-h3); font-weight: 750; font-stretch: 108%; margin-bottom: 4px; }
.fix-more-list { display: grid; grid-template-columns: 1fr; column-gap: 32px; }
@media (min-width: 640px) { .fix-more-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .fix-more-list { grid-template-columns: repeat(3, 1fr); } }
.fix-more-list li { border-top: 1px solid var(--line); }
/* each row is a real link (like the panels' "Book this in"): jumps to the contact form and writes the service in */
.fix-more-link { display: flex; align-items: center; gap: 10px; padding-block: 12px; font-size: 0.9375rem; font-weight: 600; font-stretch: 106%; color: var(--ink-2); transition: color var(--fast) ease; }
.fix-more-link:hover, .fix-more-link:focus-visible { color: var(--ink); }
.fix-more-list .icon { width: 18px; height: 18px; flex: none; color: var(--accent-on-light); }

/* ---------- engines ---------- */
.engines { padding-block: var(--section-y-tight); }
.engines-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); }
.engines-head { display: grid; gap: 14px; }
/* Two groups, vehicle makes (seven) and engine makes (three), side by side from tablet up with the heading across
   the top (title left, intro bottom-aligned on the right on laptops). Phones stack them in one column. */
@media (min-width: 1024px) {
  .engines-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end; column-gap: clamp(40px, 5vw, 88px); }
  .engines-head .section-intro { justify-self: end; max-width: 36ch; }
}
.engines-list-wrap { display: grid; gap: clamp(28px, 4vw, 40px); }
.engine-group-title {
  margin-bottom: 12px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-on-dark);
}
.engines-ask { margin-top: 28px; font-size: 1rem; line-height: 1.5; color: var(--on-dark-2); }
@media (min-width: 768px) {
  .engines-inner { gap: clamp(28px, 3.5vw, 48px); }
  .engines-list-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 88px); align-items: start; }
  .engines-note { grid-column: 1 / -1; }
  .engines { --fs-engine: clamp(1.2rem, 0.5rem + 1.8vw, 2.5rem); }
}
.engine-list { border-top: 1px solid var(--line); }
.engine-list li {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 0.5em;
  padding-block: 0.3em 0.26em;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-engine); line-height: 1;
}
/* the maker's logo at the end of each row, in one steel tone, lined up on the right. The marks are square;
   PACCAR's wordmark is wide and short. */
.engine-logo { flex: none; width: 0.8em; height: 0.8em; color: var(--on-dark-3); fill: currentColor; }
.engine-logo--wide { width: 1.8em; }
.engine-logo--xwide { width: 2.5em; }
.engine-logo--emblem { width: 1.7em; }
.engine-logo--daf { width: 1.5em; }
.engines-note { margin-top: 16px; font-size: 0.8125rem; line-height: 1.5; color: var(--on-dark-3); }
.engine-list span {
  display: inline-block;
  font-weight: 900; font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.04;
  color: var(--on-dark-2);
  /* chrome, lit by a spot of electric-blue light that sits wherever the mouse is (--mx, set by js/main.js) */
  background-image: radial-gradient(130px 170% at var(--mx, -300px) 50%, rgb(255 255 255 / var(--glint, 0)) 0%, rgb(126 164 255 / calc(var(--glint, 0) * 0.9)) 30%, transparent 68%), var(--chrome-text);
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Hover: the light follows the mouse across the letters and along the rule underneath, and the other
   names step back. Mouse and trackpad only. --mx and --glint are registered so they glide rather than jump. */
@property --mx { syntax: "<length>"; inherits: true; initial-value: -300px; }
@property --glint { syntax: "<number>"; inherits: true; initial-value: 0; }
@media (hover: hover) and (pointer: fine) {
  .engine-list li { transition: --glint 0.35s ease, --mx 0.1s linear; }
  .engine-list li:hover { --glint: 1; }
  .engine-list li::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: radial-gradient(200px 100% at var(--mx, -300px) 50%, rgb(126 164 255 / var(--glint, 0)), transparent 75%);
    pointer-events: none;
  }
  .engine-list span, .engine-logo { transition: opacity 0.3s ease, filter 0.3s ease, color 0.3s ease; }
  .engine-list:hover li:not(:hover) :is(span, .engine-logo) { opacity: 0.35; }
  .engine-list li:hover span { filter: drop-shadow(0 0 12px rgb(126 164 255 / 0.35)); }
  /* the logo lights blue with its row, and whiter the nearer the light gets (--near, 0 to 1, set by js/main.js) */
  .engine-list li:hover .engine-logo {
    color: color-mix(in srgb, #FFFFFF calc(var(--near, 0) * 80%), var(--accent-on-dark));
    filter: drop-shadow(0 0 calc(5px + var(--near, 0) * 9px) rgb(126 164 255 / calc(0.3 + var(--near, 0) * 0.4)));
  }
}
@media (max-width: 599px) { .engine-list span { font-stretch: 112%; } }
@media (max-width: 359px) { .engine-list span { font-stretch: 104%; } }

/* ---------- roadside (accent block) ---------- */
.roadside {
  position: relative; isolation: isolate;
  background: var(--accent); color: var(--on-accent);
  --line: color-mix(in srgb, var(--on-accent) 26%, transparent);
  --signal: var(--on-accent);
}
/* the only blended join on the page: the roadside block rises out of the hero (client, 2026-09-22) */
.roadside::before {
  content: ""; position: absolute; left: 0; right: 0; z-index: 3;
  height: calc(var(--section-y) * 0.95);
  pointer-events: none;
  top: 0;
  background: linear-gradient(180deg,
    var(--dark) 0%,
    color-mix(in srgb, var(--dark) 97.2%, transparent) 10%,
    color-mix(in srgb, var(--dark) 89.6%, transparent) 20%,
    color-mix(in srgb, var(--dark) 78.4%, transparent) 30%,
    color-mix(in srgb, var(--dark) 64.8%, transparent) 40%,
    color-mix(in srgb, var(--dark) 50%, transparent) 50%,
    color-mix(in srgb, var(--dark) 35.2%, transparent) 60%,
    color-mix(in srgb, var(--dark) 21.6%, transparent) 70%,
    color-mix(in srgb, var(--dark) 10.4%, transparent) 80%,
    color-mix(in srgb, var(--dark) 2.8%, transparent) 90%,
    transparent 100%);
}
.roadside-inner { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .roadside-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.roadside-copy {
  padding: var(--section-y) var(--gutter);
  max-width: calc(var(--max) / 2);
  justify-self: end;
  width: 100%;
}
@media (min-width: 1024px) { .roadside-copy { padding-right: clamp(40px, 5vw, 80px); } }
.roadside-lead { margin-top: 20px; max-width: 34rem; font-size: var(--fs-lead); line-height: 1.5; font-weight: 500; }
.steps { margin-top: 36px; border-bottom: 1px solid var(--line); }
.steps li {
  display: flex; align-items: center; gap: 18px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
  font-size: 1.125rem; font-weight: 600; line-height: 1.4;
}
.step-num {
  --c: 8px;
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px;
  background: var(--on-accent); color: var(--accent);
  font-weight: 900; font-stretch: 112%;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.steps a { font-weight: 800; text-underline-offset: 0.2em; }
.roadside-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.locate-status:not(:empty) { margin-top: 16px; font-size: var(--fs-meta); font-weight: 600; max-width: 34rem; }
.safety-note {
  margin-top: 28px; padding-left: 14px;
  border-left: 3px solid var(--on-accent);
  font-size: var(--fs-meta); font-weight: 600; line-height: 1.45; max-width: 34rem;
}
.roadside-media { position: relative; min-height: 320px; background: var(--dark-3); }
/* keep the truck in frame (it sits right of centre in the current photo) */
.roadside-media .carousel-slide img { object-position: 68% 50%; }
@media (max-width: 1023px) {
  .roadside-media { order: -1; min-height: 0; }
  .roadside-media .carousel--fill .carousel-slide img { aspect-ratio: 4 / 3; }
  /* fade the photo into the blue so the heading sits on it, rather than the photo trailing underneath */
  .roadside-media::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2;
    height: 45%;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 70%, transparent) 55%, var(--accent));
    pointer-events: none;
  }
  .roadside-media .carousel-nav--overlay { top: 14px; bottom: auto; }
  /* line up with every other section's left edge (on laptops it sits against the photo instead) */
  .roadside-copy { position: relative; z-index: 3; margin-top: -72px; padding-top: 0; justify-self: start; }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .roadside-media .carousel--fill .carousel-slide img { aspect-ratio: 16 / 9; }
}
@media (min-width: 1024px) {
  /* as on phones, the photo melts into the blue rather than butting up against it */
  .roadside-media::after {
    content: ""; position: absolute; inset: 0; z-index: 2;
    background:
      linear-gradient(90deg,
        var(--accent) 0%,
        color-mix(in srgb, var(--accent) 97.2%, transparent) 4.6%,
        color-mix(in srgb, var(--accent) 89.6%, transparent) 9.2%,
        color-mix(in srgb, var(--accent) 78.4%, transparent) 13.8%,
        color-mix(in srgb, var(--accent) 64.8%, transparent) 18.4%,
        color-mix(in srgb, var(--accent) 50%, transparent) 23%,
        color-mix(in srgb, var(--accent) 35.2%, transparent) 27.6%,
        color-mix(in srgb, var(--accent) 21.6%, transparent) 32.2%,
        color-mix(in srgb, var(--accent) 10.4%, transparent) 36.8%,
        color-mix(in srgb, var(--accent) 2.8%, transparent) 41.4%,
        transparent 46%);
    pointer-events: none;
  }
}

/* ---------- about, then its own sections: mobile workshop, licences strip, team (split out 2026-09-24) ---------- */
.about-head { max-width: 62rem; margin-bottom: clamp(36px, 4.5vw, 60px); }
/* "DELTA": electric blue with two brushed underlines that paint in when the heading comes into view */
.brush-word { position: relative; display: inline-block; color: var(--accent-on-light); }
.brush-lines {
  position: absolute; left: -3%; top: 82%;
  width: 106%; height: auto;
  overflow: visible; pointer-events: none;
}
.brush-1 { fill: var(--accent); }
.brush-2 { fill: var(--accent-on-dark); }
.js .brush-lines path { clip-path: inset(0 100% 0 0); transition: clip-path 0.7s var(--ease-out); }
.js .brush-lines .brush-2 { transition-delay: 0.22s; }
.js .brush-lines.is-drawn path { clip-path: inset(0 0 0 0); }
@media print { .js .brush-lines path { clip-path: none; } }
.about-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (min-width: 1024px) { .about-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }
.about-copy > p { max-width: 36rem; color: var(--ink-2); }
.about-copy > p + p { margin-top: 18px; }
.about-copy > p a { color: var(--accent-on-light); font-weight: 650; text-underline-offset: 0.2em; }
.about-copy > p a:hover { text-decoration-thickness: 2px; }
.about-media { position: relative; padding: 14px; --corner: var(--ink); }
.about-media .carousel-slide img {
  aspect-ratio: 5 / 4;
}
/* "Around the clock": a carbon instrument plate docked under the About photo, inside its corner brackets.
   A blue hairline runs in along the top edge, and the dial sits in its own soft glow. */
.about-lead {
  --dial: clamp(58px, 5vw, 76px);
  --pad: clamp(16px, 1.9vw, 24px);
  display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px);
  padding: var(--pad);
  container-type: inline-size;
  background:
    linear-gradient(90deg, var(--accent), rgb(36 89 232 / 0) 75%) top / 100% 2px no-repeat,
    radial-gradient(circle calc(var(--dial) * 1.25) at calc(var(--pad) + var(--dial) / 2) 50%, rgb(36 89 232 / 0.3), transparent),
    var(--dark);
  color: var(--on-dark);
  font-size: clamp(1.0625rem, 0.87rem + 0.42vw, 1.2rem);
  font-weight: 750; font-stretch: 110%;
  line-height: 1.28;
}
.lead-text { text-wrap: balance; }
.lead-accent { color: var(--accent-on-dark); }
/* on a wide plate the claim sits as two lines, white then blue (narrower ones wrap it evenly instead) */
@container (min-width: 450px) { .lead-accent { display: block; } }
/* the dial: a carbon face in an electric-blue ring (the header mark's blue), steel ticks, a white hour hand and a
   blue minute hand trailing a quarter-turn of light. It runs fast (see the motion rules below). */
.dial {
  position: relative; flex: none;
  width: var(--dial); height: var(--dial);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, #1C222C, var(--dark-3) 74%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1), 0 0 0 2px var(--accent), 0 0 24px rgb(36 89 232 / 0.5);
}
.dial-face { position: absolute; inset: 0; width: 100%; height: 100%; }
.dial-sweep {
  position: absolute; inset: 8%;
  border-radius: 50%;
  background: conic-gradient(transparent 0 270deg, rgb(126 164 255 / 0) 270deg, rgb(126 164 255 / 0.5) 360deg);
  transform: rotate(var(--minute, 60deg));
}
/* ticks from dashed circles: 60 fine minute marks (r 28.5, circumference 179.07), 12 hour marks and 4 brighter quarters (r 27, 169.65) */
.dial-minutes { fill: none; stroke: var(--on-dark-3); stroke-width: 1.6; stroke-dasharray: 0.45 2.5345; stroke-dashoffset: 0.225; opacity: 0.75; }
.dial-hours { fill: none; stroke: var(--on-dark-2); stroke-width: 4; stroke-dasharray: 1.3 12.8375; stroke-dashoffset: 0.65; }
.dial-quarters { fill: none; stroke: var(--on-dark); stroke-width: 4.6; stroke-dasharray: 1.8 40.6125; stroke-dashoffset: 0.9; }
.dial-hand { stroke-linecap: round; transform-origin: 32px 32px; }
.dial-hour { stroke: var(--on-dark); stroke-width: 3.6; transform: rotate(var(--hour, 305deg)); }
.dial-minute { stroke: var(--accent-on-dark); stroke-width: 2.2; transform: rotate(var(--minute, 60deg)); }
.dial-pin { fill: var(--accent-on-dark); stroke: var(--dark-3); stroke-width: 1.4; }
/* around the clock: an hour every 4 seconds (the hour hand takes 48), counted on from the real Penrith time.
   The individual rotate property adds to the starting angle in transform. Paused while it's off screen. */
@keyframes dial-turn { to { rotate: 360deg; } }
@media (prefers-reduced-motion: no-preference) {
  .dial-minute, .dial-sweep { animation: dial-turn 4s linear infinite; }
  .dial-hour { animation: dial-turn 48s linear infinite; }
  .js .dial:not(.is-running) :is(.dial-minute, .dial-sweep, .dial-hour) { animation-play-state: paused; }
}
/* Our Mobile Workshop: the service-vehicle showcase (2026-09-23), media first for a zigzag rhythm against the photo
   above. Reuses the same corner-bracket photo frame as .about-media. */
.workshop {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center;
}
@media (min-width: 1024px) { .workshop { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); } }
.workshop-media { position: relative; padding: 14px; --corner: var(--ink); }
.workshop-media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.workshop-title { margin-bottom: clamp(18px, 2vw, 26px); }
.workshop-copy > p { max-width: 34rem; color: var(--ink-2); }
.workshop-copy > p + p { margin-top: 12px; }
.workshop-points { display: grid; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.workshop-points li { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; font-weight: 650; font-stretch: 106%; color: var(--ink-2); }
.workshop-points .icon { width: 18px; height: 18px; flex: none; color: var(--accent-on-light); }
.workshop-copy .text-link { margin-top: 24px; }
/* it sits on the dark surface: light copy, brackets and icons */
.workshop-section .workshop-media { --corner: var(--on-dark-2); }
.workshop-section .workshop-copy > p, .workshop-section .workshop-points li { color: var(--on-dark-2); }
.workshop-section .workshop-points .icon { color: var(--accent-on-dark); }

.area { margin-top: 40px; }
.area-title { font-size: var(--fs-h3); font-weight: 750; font-stretch: 108%; margin-bottom: 14px; }
.area-list { border-bottom: 1px solid var(--line); }
.area-list li {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}
.area-name { font-weight: 700; }
.area-note { color: var(--ink-2); }

.team {
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: clamp(24px, 3vw, 40px);
  text-align: center;
}
/* licences and insurance: a quiet strip between the story and the team, after the client's reference.
   Placeholders until Sebastian confirms them (see CLAUDE.md). */
.creds { display: grid; justify-items: center; gap: 18px; text-align: center; }
/* a slim band: paper-white with a rule above and below, so it reads as its own strip between the dark workshop and the dark team */
.section--strip { padding-block: clamp(32px, 4vw, 52px); background: var(--paper); border-block: 1px solid var(--rule-light); }
.creds-title {
  text-wrap: balance;
  font-size: var(--fs-small); font-weight: 650; font-stretch: 112%;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2);
}
/* one row when it fits; otherwise the items wrap and every row stays centred, so a short last row sits under the
   middle of the one above instead of hanging off to the left */
.creds-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px clamp(24px, 3vw, 44px); }
/* four items (MTA removed 2026-11-15): one row on wide screens, two over two below 1240px. 42rem leaves room for the licence number. */
@media (max-width: 1239px) { .creds-list { max-width: 42rem; } }
.creds-list li { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9375rem; font-weight: 650; font-stretch: 106%; line-height: 1.3; color: var(--ink-2); white-space: nowrap; }
.creds-list .icon { width: 22px; height: 22px; color: var(--accent-on-light); }
.team-intro p { margin-top: 10px; color: var(--ink-2); }
.team-grid { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 300px)); justify-content: center; gap: 28px; }
.team-quals {
  display: grid; gap: 7px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-small); line-height: 1.4; color: var(--ink-2);
  text-wrap: balance;
}
/* the icon rides inline with the first line, so wrapped lines stay centred */
.team-quals .icon { display: inline-block; width: 16px; height: 16px; margin-right: 7px; vertical-align: -0.2em; color: var(--accent-on-light); }
.team-photo { position: relative; aspect-ratio: 4 / 5; padding: 10px; --corner: var(--ink); }
.team-photo-inner { display: block; width: 100%; height: 100%; overflow: hidden; }
.team-photo img, .team-photo-initials { width: 100%; height: 100%; }
.team-photo img { object-fit: cover; }
/* stand-in until the real portrait arrives */
.team-photo-initials {
  display: grid; place-items: center;
  background: radial-gradient(80% 60% at 50% 38%, var(--glow), transparent 72%), var(--dark);
  font-size: clamp(3rem, 2rem + 3vw, 4.5rem);
  font-weight: 900; font-stretch: 125%;
  letter-spacing: 0.02em;
  line-height: 1;
}
.team-photo-initials span {
  color: var(--on-dark-2);
  background: var(--chrome-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.team-name { margin-top: 16px; font-size: 1.1875rem; font-weight: 800; font-stretch: 110%; line-height: 1.2; }
.team-role { margin-top: 2px; font-size: var(--fs-meta); color: var(--ink-2); }
.team-from { margin-top: 2px; font-size: var(--fs-small); font-weight: 650; font-stretch: 106%; color: var(--accent-on-light); }
/* Meet the Team is a dark section (2026-10-13). Recent Work used to sit between the team and the reviews and broke up
   the two light sections; with it parked, the team goes dark so the page alternates: dark workshop, light licences strip,
   dark team, light reviews, dark contact. */
.team-section.section--dark .team-role, .team-section.section--dark .team-quals { color: var(--on-dark-2); }
.team-section.section--dark .team-from, .team-section.section--dark .team-quals .icon { color: var(--accent-on-dark); }
.team-section.section--dark .team-photo { --corner: var(--on-dark-2); }
.team-section.section--dark .team-photo-initials { background: radial-gradient(80% 60% at 50% 38%, var(--glow), transparent 72%), var(--dark-2); }

/* ---------- recent work ---------- */
.work-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.work-head .section-intro { margin-top: 12px; }
.carousel--gallery { --slide-gap: clamp(12px, 1.6vw, 20px); }
/* the strip runs off the right edge so the next job peeks in */
.carousel--gallery .carousel-track {
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}
.carousel--gallery .carousel-slide { flex-basis: 82%; }
@media (min-width: 700px) { .carousel--gallery .carousel-slide { flex-basis: calc((100% - var(--slide-gap)) / 2.2); } }
@media (min-width: 1024px) { .carousel--gallery .carousel-slide { flex-basis: calc((100% - 2 * var(--slide-gap)) / 3); } }
.work-slide figure { display: grid; gap: 12px; }
.work-slide img { aspect-ratio: 4 / 3; background: var(--dark-2); }
.work-slide figcaption { min-width: 0; }
.work-title { font-weight: 750; font-stretch: 108%; }
/* Job card: the title row opens a short write-up of the job, the way a workshop writes one (complaint, cause,
   correction), on a paper docket with a torn edge and a "Back on the road" stamp. Only one is open at a time
   (name="work-job"), and one closes when its photo slides out of view (js/main.js). */
.job-toggle {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  cursor: pointer;
  list-style: none;
}
.job-toggle::-webkit-details-marker { display: none; }
.job-toggle:focus-visible { outline-offset: 5px; }
.job-hint {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: var(--fs-small); font-weight: 650;
  color: var(--on-dark-2);
  transition: color var(--fast) ease;
}
.job-hint .icon { width: 16px; height: 16px; stroke-width: 2.4; transition: rotate 0.3s var(--ease-out); }
.job-toggle:hover .job-hint, .job[open] .job-hint { color: var(--accent-on-dark); }
.job[open] .job-hint .icon { rotate: 45deg; }
.job-card {
  --tooth: 12px;
  position: relative;
  margin-top: 12px;
  padding: 14px 16px calc(14px + var(--tooth) / 2);
  background: var(--paper);
  color: var(--ink);
  container-type: inline-size;
  /* a torn bottom edge: a row of teeth under a solid sheet */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth) / 2 + 1px) no-repeat,
    conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / var(--tooth) calc(var(--tooth) / 2) repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth) / 2 + 1px) no-repeat,
    conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / var(--tooth) calc(var(--tooth) / 2) repeat-x;
}
.job-head {
  display: flex; align-items: center; gap: 7px;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--ink);
  font-size: 0.6875rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  line-height: 1; white-space: nowrap;
}
.job-head span { margin-left: auto; color: var(--accent-on-light); }
@container (max-width: 250px) { .job-head span { display: none; } }
.job-mark { width: 20px; height: 15px; flex: none; --mark-body: var(--ink); --mark-accent: var(--accent); }
/* the labels share one column, as wide as the longest ("Correction") */
.job-notes { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 14px; }
.job-notes div {
  display: grid; grid-column: 1 / -1;
  grid-template-columns: 5.5rem minmax(0, 1fr); grid-template-columns: subgrid;
  align-items: baseline;
  padding-block: 8px;
  border-bottom: 1px dashed rgb(13 16 21 / 0.2);
}
.job-notes dt {
  font-size: 0.6875rem; font-weight: 750;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2);
}
.job-notes dd { margin: 0; font-size: var(--fs-small); line-height: 1.4; }
.job-stamp {
  display: table;
  margin: 10px 2px 0 auto;
  padding: 5px 8px 4px;
  border: 2px solid currentColor;
  outline: 1px solid currentColor; outline-offset: 2px;
  color: var(--accent);
  font-size: 0.75rem; font-weight: 800; font-stretch: 125%;
  letter-spacing: 0.08em; text-transform: uppercase;
  line-height: 1;
  rotate: -6deg;
  opacity: 0.9;
}
/* opening: the docket feeds out downwards, then the stamp comes down on it */
@media (prefers-reduced-motion: no-preference) {
  .job { interpolate-size: allow-keywords; }
  .job::details-content { block-size: 0; overflow-y: clip; transition: block-size 0.4s var(--ease-out), content-visibility 0.4s allow-discrete; }
  .job[open]::details-content { block-size: auto; }
  .job[open] .job-card { animation: job-feed 0.45s var(--ease-out) both; }
  .job[open] .job-stamp { animation: job-stamp 0.3s cubic-bezier(0.3, 1.5, 0.5, 1) 0.4s both; }
}
@keyframes job-feed { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes job-stamp { from { opacity: 0; scale: 1.8; rotate: -14deg; } to { opacity: 0.9; scale: 1; rotate: -6deg; } }

/* ---------- reviews & testimonials ---------- */
.reviews-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); align-items: start; }
@media (min-width: 1024px) { .reviews-inner { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 5vw, 88px); } }
/* "Testimonials": a quiet label under the heading */
.section-label {
  margin-top: 16px;
  font-size: var(--fs-small); font-weight: 650; font-stretch: 112%;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2);
}
.rating-summary {
  display: flex; align-items: center; gap: 14px;
  margin-top: 28px;
}
.rating-score { font-size: clamp(2.5rem, 1.8rem + 2vw, 3.5rem); font-weight: 900; font-stretch: 118%; line-height: 1; font-variant-numeric: tabular-nums; }
.rating-detail { display: grid; gap: 4px; font-size: var(--fs-meta); color: var(--ink-2); }
.reviews-links { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 20px; }
.review-stars { display: flex; gap: 3px; }
.review-stars .icon { width: 18px; height: 18px; fill: var(--accent-on-light); stroke: var(--accent-on-light); stroke-width: 1; }

.carousel--quotes { background: #FFFFFF; border: 1px solid var(--line); }
.quote {
  position: relative;
  display: grid; gap: 22px; align-content: start;
  height: 100%;
  padding: clamp(28px, 4vw, 52px) clamp(24px, 4vw, 52px) clamp(88px, 8vw, 104px);
}
.quote::before {
  content: "\201C";
  display: block; height: 0.55em;
  font-size: clamp(4rem, 3rem + 3vw, 6rem); font-weight: 900; line-height: 1;
  color: var(--accent-on-light);
}
.quote-text { font-size: var(--fs-quote); font-weight: 600; font-stretch: 104%; line-height: 1.35; letter-spacing: -0.005em; text-wrap: pretty; }
.quote-meta { display: grid; gap: 6px; font-size: var(--fs-meta); color: var(--ink-2); }
.quote-name { font-size: 1.0625rem; font-weight: 800; font-stretch: 108%; color: var(--ink); }
.quote-source { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.quote-tag {
  align-self: start; justify-self: start;
  padding: 3px 10px;
  background: var(--dark); color: var(--on-dark);
  font-size: var(--fs-small); font-weight: 700;
}
.carousel--quotes .carousel-nav { position: absolute; left: clamp(24px, 4vw, 52px); bottom: clamp(20px, 3vw, 32px); }
.carousel--quotes .carousel-btn { border-color: var(--line); }
.reviews-empty {
  padding: clamp(28px, 4vw, 52px);
  background: #FFFFFF; border: 1px solid var(--line);
}
.reviews-empty-title { font-size: var(--fs-quote); font-weight: 750; font-stretch: 108%; line-height: 1.3; text-wrap: balance; }
.reviews-empty p + p { margin-top: 12px; color: var(--ink-2); max-width: 36rem; }

/* ---------- contact ---------- */
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); align-items: start; }
@media (min-width: 1024px) {
  .contact-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .contact-details { position: sticky; top: calc(var(--header-h) + 40px); }
}
.contact-phone {
  display: inline-block;
  margin-top: 28px;
  font-size: clamp(2.25rem, 1rem + 4vw, 4rem);
  font-weight: 900; font-stretch: 118%;
  line-height: 1; letter-spacing: -0.01em;
  color: var(--accent-on-dark); text-decoration: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.contact-phone:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.14em; }
.contact-note { margin-top: 14px; color: var(--on-dark-2); }
.contact-list { margin-top: 36px; border-bottom: 1px solid var(--line); }
.contact-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding-block: 16px;
  border-top: 1px solid var(--line);
  color: var(--on-dark-2);
  overflow-wrap: anywhere;
}
.contact-list .icon { margin-top: 0.2em; color: var(--accent-on-dark); }
.contact-list a { color: var(--on-dark); font-weight: 600; text-underline-offset: 0.2em; }

.job-form {
  padding: clamp(24px, 3.2vw, 44px);
  background: var(--dark-2);
  border: 1px solid var(--line);
}
.form-title { font-size: var(--fs-h3); font-weight: 800; font-stretch: 110%; }
.form-help { margin-top: 8px; font-size: var(--fs-meta); color: var(--on-dark-2); }
.form-error-summary {
  margin-top: 20px; padding: 14px 16px;
  border-left: 4px solid var(--error-on-dark);
  background: rgba(255, 154, 154, 0.08);
  font-size: var(--fs-meta);
}
.form-error-summary p { font-weight: 700; }
.form-error-summary ul { margin-top: 6px; }
.form-error-summary a { color: var(--error-on-dark); }
.field { margin-top: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: 1rem; font-weight: 650; }
.req { color: var(--accent-on-dark); }
.field input, .field textarea {
  display: block; width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  background: var(--dark-3);
  border: 2px solid rgba(174, 182, 194, 0.32);
  border-radius: 0;
  font-size: 1.0625rem;
  color: var(--on-dark);
  transition: border-color var(--fast) ease;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: rgba(174, 182, 194, 0.6); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent-on-dark); outline-offset: 2px; border-color: var(--accent-on-dark); }
.field [aria-invalid="true"] { border-color: var(--error-on-dark); }
.field-help { margin-top: 6px; font-size: var(--fs-small); color: var(--on-dark-3); }
.field-error:not(:empty) { margin-top: 6px; font-size: var(--fs-small); font-weight: 650; color: var(--error-on-dark); }
.req-note { margin-top: 16px; font-size: var(--fs-small); color: var(--on-dark-3); }
.job-form .btn { margin-top: 24px; }
.form-alt {
  display: block; margin: 10px auto 0; min-height: 44px; padding: 0 8px;
  background: none; border: 0;
  font-size: var(--fs-meta); font-weight: 600; color: var(--on-dark-2);
  text-decoration: underline; text-underline-offset: 0.3em;
}
.form-alt:hover { color: var(--on-dark); }
.form-status:not(:empty) { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--accent-on-dark); background: color-mix(in srgb, var(--accent-on-dark) 8%, transparent); font-size: var(--fs-meta); }
.form-privacy { margin-top: 16px; font-size: var(--fs-small); color: var(--on-dark-3); }
.field-label { display: block; margin-bottom: 8px; font-size: 1rem; font-weight: 650; }
/* photo and video upload */
.upload { position: relative; }
.upload-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
/* ".field .upload-zone" outranks ".field label", which would otherwise make this a plain block */
.field .upload-zone {
  display: grid; justify-items: center; gap: 4px;
  margin-bottom: 0;
  font-size: 1rem; font-weight: 400;
  padding: 22px 16px;
  background: var(--dark-3);
  border: 2px dashed rgba(174, 182, 194, 0.4);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--fast) ease, background-color var(--fast) ease;
}
.upload-zone .icon { width: 28px; height: 28px; color: var(--accent-on-dark); }
.upload-cta { font-weight: 750; font-stretch: 108%; }
.upload-hint { font-size: var(--fs-small); color: var(--on-dark-3); }
.upload-zone:hover, .upload-zone.is-dragover { border-color: var(--accent-on-dark); background: color-mix(in srgb, var(--accent-on-dark) 8%, var(--dark-3)); }
.upload-input:focus-visible + .upload-zone { outline: 2px solid var(--accent-on-dark); outline-offset: 2px; }
.upload-list { display: grid; gap: 8px; margin-top: 10px; }
.upload-list:empty { display: none; }
.upload-item {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 8px;
  background: var(--dark-3);
  border: 1px solid var(--rule-dark);
}
.upload-thumb { display: grid; place-items: center; width: 52px; height: 52px; object-fit: cover; background: var(--dark-2); color: var(--on-dark-2); }
.upload-thumb .icon { width: 24px; height: 24px; }
.upload-meta { display: grid; min-width: 0; }
.upload-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-meta); font-weight: 600; }
.upload-size { font-size: var(--fs-small); color: var(--on-dark-3); }
.upload-remove {
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--rule-dark); color: var(--on-dark-2);
  transition: border-color var(--fast) ease, color var(--fast) ease;
}
.upload-remove:hover { border-color: var(--on-dark); color: var(--on-dark); }
.upload-remove .icon { width: 18px; height: 18px; }
.upload-total { margin-top: 8px; font-size: var(--fs-small); font-weight: 650; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.upload-total:empty { display: none; }
.form-sent {
  margin-top: 20px; padding: 16px 18px;
  border-left: 4px solid var(--accent-on-dark);
  background: color-mix(in srgb, var(--accent-on-dark) 10%, transparent);
}
.form-sent-title { font-weight: 800; font-stretch: 108%; }
.form-sent p + p { margin-top: 4px; font-size: var(--fs-meta); color: var(--on-dark-2); }
.form-sent a { color: var(--on-dark); font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--dark-3); color: var(--on-dark-2); padding-block: clamp(56px, 7vw, 88px) 32px; font-size: var(--fs-meta); }
.footer-inner { position: relative; }
/* the big quiet triangle behind the footer; it rises into place when the footer scrolls into view */
.footer-mark {
  position: absolute; right: -3%; bottom: -14%; width: min(46vw, 600px); height: auto;
  --mark-body: rgb(211 217 225 / 0.045); --mark-accent: rgb(36 89 232 / 0.2);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .js .footer-mark { transform: translateY(16%); opacity: 0; transition: transform 1.2s var(--ease-out), opacity 1.2s ease; }
  .js .footer-mark.is-in { transform: none; opacity: 1; }
}
.footer-inner { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.footer-brand img { width: 220px; height: auto; }
.footer-brand p { margin-top: 18px; max-width: 26rem; }
.footer-heading { margin-bottom: 12px; font-size: 1rem; font-weight: 800; font-stretch: 112%; color: var(--on-dark); }
.site-footer li + li { margin-top: 6px; }
.site-footer a { display: inline-flex; min-height: 32px; align-items: center; text-underline-offset: 0.25em; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--on-dark); }
.footer-contact-list a, .footer-line { gap: 10px; }
.footer-line { display: inline-flex; align-items: center; min-height: 32px; }
.footer-contact-list .icon { width: 18px; height: 18px; color: var(--accent-on-dark); }
.footer-base { margin-top: 48px; font-size: var(--fs-small); color: var(--on-dark-3); }
/* the rule runs along the content edge, like every other rule on the page (a border would reach into the gutters) */
.footer-base::before { content: ""; display: block; height: 1px; margin-bottom: 24px; background: var(--rule-dark); }

/* ---------- mobile call bar ---------- */
.call-bar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .call-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar);
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--dark);
    border-top: 1px solid var(--rule-dark);
    transform: translateY(110%);
    transition: transform 0.28s var(--ease-out);
  }
  .call-bar.is-visible { transform: none; }
  .call-bar.is-suppressed { transform: translateY(110%); }
  .call-bar a {
    --c: 10px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; padding-inline: 18px;
    font-weight: 800; font-stretch: 110%; text-decoration: none;
    clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  }
  .call-bar-call { background: var(--accent); color: var(--on-accent); }
  .call-bar-text { background: var(--dark-2); color: var(--on-dark); }
}

/* ---------- hover: photos zoom a little and a few things respond ----------
   Mouse and trackpad only (phones never get stuck hover states), and off when someone asks for reduced motion.
   The scale property is used rather than transform, so it never fights the hero badge's entrance animation. */
.zoom { display: block; overflow: hidden; }
.about-media .carousel-slide, .roadside-media .carousel-slide { overflow: hidden; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .zoom img, .about-media .carousel-slide img, .team-photo img, .team-photo-initials span {
    transition: scale 0.7s var(--ease-out);
  }
  /* Recent Work: the photo leans in and its title lights up */
  .work-slide:hover .zoom img { scale: 1.06; }
  .work-title { transition: color var(--fast) ease; }
  .work-slide:hover .work-title { color: var(--accent-on-dark); }
  /* About and team photos: a gentle zoom. Photos stay in full colour (Paul, 2026-11-23: no greyscale-to-colour change) */
  .about-media .carousel:hover .carousel-slide img { scale: 1.04; }
  .team-photo:hover img { scale: 1.04; }
  .team-photo:hover .team-photo-initials span { scale: 1.08; }
  /* the big roadside photo drifts in slowly */
  .roadside-media .carousel-slide img { transition: scale 1.4s var(--ease-out); }
  .roadside-media:hover .carousel-slide img { scale: 1.035; }
  /* the hero badge lifts a touch */
  .badge-img { transition: scale 0.8s var(--ease-out); }
  .badge-frame:hover .badge-img { scale: 1.025; }
  /* the mobile workshop photo: the same gentle zoom as the About/team photos */
  .workshop-media:hover img { scale: 1.04; }
  /* buttons lift, credential icons pop (and the same for the "more we cover" and mobile-workshop checklists) */
  .btn:hover { translate: 0 -2px; }
  .btn:active { translate: 0; }
  .creds-list .icon, .fix-more-list .icon, .workshop-points .icon { transition: scale 0.3s var(--ease-out); }
  .creds-list li:hover .icon { scale: 1.15; }
  .fix-more-link:hover .icon, .fix-more-link:focus-visible .icon { scale: 1.15; }
  .workshop-points li:hover .icon { scale: 1.15; }
}

/* ---------- phone scroll touches (2026-09-24) ----------
   Phones can't hover, so the page answers scrolling instead. js/main.js adds .fx-phone to <html> on phones and touch
   tablets, and leaves it off under reduced motion, so none of the hidden starting states below exist without it.
   Each effect is a small, cheeky nod to the trade: a heading that skids in and brakes, a light sweeping the engine
   names like a dyno run, brackets that snap round a photo, a phone that rings. */
@keyframes call-ring {
  0%, 100% { rotate: 0deg; }
  12% { rotate: -18deg; } 26% { rotate: 16deg; } 40% { rotate: -14deg; } 54% { rotate: 11deg; } 68% { rotate: -7deg; } 82% { rotate: 4deg; }
}
.fx-phone .fx-head { transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.22, 1.28, 0.36, 1); transform-origin: 0 100%; }
.fx-phone .fx-head:not(.is-in) { opacity: 0; transform: translateX(-26px) skewX(-9deg); }

/* lists: each row rises in turn (--i, set by JS), its tick or number popping just after */
.fx-phone .fx-cascade > li { transition: opacity 0.5s ease, translate 0.6s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.fx-phone .fx-cascade:not(.is-in) > li { opacity: 0; translate: 0 16px; }
.fx-phone .fx-cascade .icon, .fx-phone .fx-cascade .step-num { transition: scale 0.5s cubic-bezier(0.3, 1.7, 0.5, 1), rotate 0.5s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms + 200ms); }
.fx-phone .fx-cascade:not(.is-in) .icon { scale: 0; }
.fx-phone .fx-cascade:not(.is-in) .step-num { scale: 0.4; rotate: -30deg; }

/* photo frames: brackets snap in from outside, and the shot leans in gently in the middle of the screen */
.fx-phone .fx-frame .corner { transition: translate 0.9s var(--ease-out), opacity 0.5s ease; }
.fx-phone .fx-frame:not(.is-seen) .corner { opacity: 0; translate: calc(var(--dx) * -1) calc(var(--dy) * -1); }
.fx-phone .about-media .carousel-slide img, .fx-phone .workshop-media img, .fx-phone .team-photo img, .fx-phone .team-photo-initials span {
  transition: scale 1.6s var(--ease-out);
}
.fx-phone .about-media.is-lit .carousel-slide img, .fx-phone .workshop-media.is-lit img, .fx-phone .team-photo.is-lit img { scale: 1.04; }
.fx-phone .team-photo.is-lit .team-photo-initials span { scale: 1.08; }

/* engines: the electric-blue light sweeps across the name in the middle of the screen (--mx and --glint are registered, so they glide) and settles on it */
.fx-phone .engine-list li { transition: --glint 0.5s ease, --mx 1.2s var(--ease-out); }
.fx-phone .engine-list li.is-lit { --glint: 1; --mx: 34vw; }
.fx-phone .engine-list span, .fx-phone .engine-logo { transition: filter 0.5s ease, color 0.5s ease; }
.fx-phone .engine-list li.is-lit span { filter: drop-shadow(0 0 10px rgb(126 164 255 / 0.35)); }
.fx-phone .engine-list li.is-lit .engine-logo { color: var(--accent-on-dark); filter: drop-shadow(0 0 8px rgb(126 164 255 / 0.5)); }

/* the Call button's phone rings once at the breakdown steps and once at the contact section */
.fx-phone .call-bar.is-ringing .call-bar-call .icon { animation: call-ring 0.95s ease-in-out; transform-origin: 50% 50%; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- forced colours (Windows high contrast) ---------- */
@media (forced-colors: active) {
  .engine-list span, .team-photo-initials span { background: none; -webkit-text-fill-color: currentColor; color: CanvasText; }
  .btn { border: 2px solid ButtonText; clip-path: none; }
}
