/* ==============================================================
   Misho Inc — styles.css
   --------------------------------------------------------------
   Built on the construction of the reference site: viewport-relative
   padding (--pad = 4vw), section heights driven by vh/vw, sections
   that overlap each other with negative top margins and z-layering,
   one tall pinned scroll section, one very tall dark inverted band,
   fully-rounded pill buttons, and an oversized condensed display
   face set at heavy negative tracking.

     1.  Tokens
     2.  Reset and base
     3.  Display type
     4.  Pills, flip letters, marks, placeholders
     5.  Cursor + preloader
     6.  Header and menu
     7.  Hero
     8.  Statement + word cycler
     9.  Stat badges
     10. Problem
     11. Pinned sequence
     12. Dark services band
     13. Marquees
     14. Credentials
     15. Coverage
     16. Big CTA
     17. Contact
     18. Footer
     19. Responsive
     20. Reduced motion
   ============================================================== */

/* ---------------------------------------------- 1. Tokens ---- */
:root {
  --paper:   #0B0B0C;   /* Misho Inc black — the ground */
  --paper-2: #151517;
  --ink:     #F4F4F5;   /* white — all type */
  --wheat:   #2A2A2E;   /* graphite: contour lines, ghost numbers */
  --sun:     #FF2B35;   /* bright red: highlights on black */
  --rust:    #E8161F;   /* Misho red, sampled from the logo */
  --olive:   #1C1C1F;   /* charcoal */
  --svc-bg:  #4A4A52;   /* medium gray: the services band and the balls on its top edge */

  --ink-70: color-mix(in srgb, var(--ink) 70%, var(--paper));
  --ink-45: color-mix(in srgb, var(--ink) 45%, var(--paper));

  --display: 'Barlow Condensed', 'Oswald', 'Haettenschweiler', Impact, sans-serif;   /* set italic, like the logo */
  --sans:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand:    'Patrick Hand', 'Bradley Hand', cursive;

  --pad: 4vw;                 /* the reference's paddx */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --round: 9999px;
}

/* Panels that were dark bands on the old light page (menu, night step,
   services, estimate card, footer) stay a shade off the black ground. Inside
   them the two type tokens swap, so every rule written for "light type on a
   dark band" still reads the same way. */
.menu, .pinned.is-night, .dark, .footer, .est-sum, .est-bar, .est-opt-wrap.is-on, .est-haz.is-on {
  --paper: #F4F4F5;
  --paper-2: #232327;
  --ink: #18181B;
  --ink-70: color-mix(in srgb, #F4F4F5 72%, #18181B);
  --ink-45: color-mix(in srgb, #F4F4F5 45%, #18181B);
}

/* ------------------------------------- 2. Reset and base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(15px, 0.5vw + 13.5px, 19px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p, dl, dd, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2.5px solid var(--rust); outline-offset: 4px; border-radius: 3px; }

.hand { font-family: var(--hand); letter-spacing: -0.02em; }

/* Scramble scaffolding. Characters sit in fixed-width spans so a scrambled
   glyph never changes the line's width; words stay in nowrap boxes so
   headings still wrap between words as normal. */
.sc-word { display: inline-block; white-space: nowrap; }
.sc { display: inline-block; text-align: center; }
.u-visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--pad); top: -100px; z-index: 300;
  background: var(--ink); color: var(--paper); padding: 12px 22px;
  border-radius: var(--round); font-size: 14px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 14px; }

/* --------------------------------------- 3. Display type ---- */
/* The reference runs its condensed display face up to ~307px with
   -5% tracking. Same treatment here. */
.display {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  line-height: 0.84;
  text-wrap: balance;
}

/* ------------ 4. Pills, flip letters, marks, placeholders ---- */
.pill {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(13px, 0.9vw, 16px);
  letter-spacing: -0.015em;
  padding: 0.95em 1.7em;
  border-radius: var(--round);
  border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink);
  cursor: var(--cur-link); white-space: nowrap;
  transition: background-color 0.32s var(--ease), color 0.32s var(--ease), border-color 0.32s var(--ease);
}
.pill--solid { background: var(--rust); border-color: var(--rust); color: #fff; }
.pill--solid:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pill--line:hover { background: var(--ink); color: var(--paper); }
.pill--lg { font-size: clamp(14px, 1.05vw, 18px); padding: 1.05em 2em; }

/* Per-character stacked letters: each glyph has a second copy sitting
   directly below it, and both slide up together on hover. */
.flip { display: inline-flex; }
/* Hide the flip top and bottom only: letters lean and sit tight, so clipping the
   sides (overflow: hidden) cut the right edge off every letter. */
.flip__c { display: inline-block; position: relative; clip-path: inset(0 -0.4em); height: 1.12em; line-height: 1.12em; }
.flip__a, .flip__b { display: block; transition: transform 0.4s var(--ease-out); transition-delay: calc(var(--i) * 18ms); }
.flip__b { position: absolute; left: 0; top: 100%; }
a:hover .flip__a, a:hover .flip__b,
button:hover .flip__a, button:hover .flip__b,
a:focus-visible .flip__a, a:focus-visible .flip__b,
button:focus-visible .flip__a, button:focus-visible .flip__b { transform: translateY(-100%); }

.mark { display: inline-block; }
.mark__svg { fill: currentColor; width: 100%; }
.mark--sm { width: 22px; }
.mark--lg { width: clamp(190px, 21vw, 310px); position: relative; }
.mark__img { display: block; width: 100%; height: auto; }
.mark__img--ghost { opacity: 0.16; filter: grayscale(1); }

.ph {
  background-color: color-mix(in srgb, currentColor 9%, transparent);
  background-image: repeating-linear-gradient(-45deg, transparent 0 8px, color-mix(in srgb, currentColor 16%, transparent) 8px 9px);
  border-radius: 1.4vw;
  display: grid; place-items: center;
}
.ph span { font-family: var(--hand); font-size: 15px; opacity: 0.75; }
.ph--32 { aspect-ratio: 3 / 2; }

.datalist dt { font-size: 12px; letter-spacing: 0.02em; opacity: 0.55; }
.datalist dd { margin: 2px 0 16px; }
.flag { color: var(--rust); font-size: 17px; }

/* -------------------------------- 5. Cursor + preloader ---- */
/* The pointer: a plain arrow in the logo's colours, red with a white edge,
   turning white with a red edge over anything clickable. Text fields keep
   the normal text cursor; the map and drag rows keep their own. */
:root {
  --cur: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M4 2.5v17.2l4.6-4.3 3.1 6.9 3-1.4-3.1-6.8h6.3z' fill='%23E8161F' stroke='%23FFFFFF' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 4 3, auto;
  --cur-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M4 2.5v17.2l4.6-4.3 3.1 6.9 3-1.4-3.1-6.8h6.3z' fill='%23FFFFFF' stroke='%23E8161F' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 4 3, pointer;
}
html { cursor: var(--cur); }
a, button, summary, select, label[for] { cursor: var(--cur-link); }

.preloader {
  position: fixed; inset: 0; z-index: 500;
  background: var(--paper);
  display: grid; place-items: center;
  transition: transform 0.52s var(--ease-out);
}
.preloader.is-done { transform: translateY(-101%); }
.preloader__inner { display: grid; justify-items: center; gap: 24px; }
.mark--lg .mark__svg--ghost { color: color-mix(in srgb, var(--ink) 15%, var(--paper)); }
.mark__fill { position: absolute; inset: 0; clip-path: inset(calc(100% - var(--p, 0%)) 0 0 0); color: var(--ink); }
.preloader__count {
  display: flex; align-items: flex-end;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(38px, 6vw, 76px); line-height: 1; letter-spacing: -0.04em;
}
.roll { display: inline-block; height: 1em; overflow: hidden; line-height: 1; }
.roll__strip { display: block; line-height: 1; will-change: transform; }
.preloader__pct { font-size: 0.3em; margin: 0 0 0.5em 0.2em; color: var(--rust); }

/* ---------------------------------- 6. Header and menu ---- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px;
  padding: 2.2vw var(--pad) 1.2vw;
  transition: transform 0.45s var(--ease);
}
.header.is-hidden { transform: translateY(-120%); }
.header__brand { display: flex; align-items: center; gap: 11px; }
/* Three times the old size at the top of the page; back down to it (is-compact,
   main.js) once you scroll away or open the menu, so it never covers content. */
.header__logo { display: block; width: auto; height: clamp(120px, 11.6vw, 188px); transition: height 0.55s var(--ease-out); }
.header.is-compact .header__logo { height: clamp(42px, 4vw, 62px); }
.header__name { font-family: var(--display); font-weight: 600; font-size: 21px; text-transform: uppercase; letter-spacing: -0.03em; }
.header__actions { display: flex; gap: 10px; }
.menu-toggle__bars { display: grid; gap: 4px; width: 18px; }
.menu-toggle__bars i { display: block; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease-out); }
.pill[aria-expanded="true"] .menu-toggle__bars i:first-child { transform: translateY(2.75px) rotate(14deg); }
.pill[aria-expanded="true"] .menu-toggle__bars i:last-child { transform: translateY(-2.75px) rotate(-14deg); }

.menu {
  position: fixed; inset: 0; z-index: 190;
  background: var(--ink); color: var(--paper);
  padding: 18vh var(--pad) var(--pad);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-out);
  overflow-y: auto;
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 6vw; align-items: end; }
.menu__list a {
  display: block;
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(38px, 7.5vw, 108px); line-height: 0.98; letter-spacing: -0.01em;
  transition: color 0.3s var(--ease);
}
.menu__list a:hover { color: var(--sun); }
.menu__aside .hand { font-size: 22px; margin-bottom: 24px; color: var(--sun); }
.menu [data-menu-link] { opacity: 0; transform: translateY(24px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease-out); transition-delay: calc(var(--i, 0) * 50ms + 130ms); }
.menu.is-open [data-menu-link] { opacity: 1; transform: none; }

/* ---------------------------------------------- 7. Hero ---- */
/* Centred, as the reference's opening screen: headline, two hand-lettered
   points, a short line and the calls to action, then an empty stage
   underneath for the truck to drive into. */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 17vh var(--pad) 6vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
}
/* The moving contour map (topo.js adds the canvas). Lines, fades and the
   quieter area behind the headline are all drawn in the shader; here it
   only fades in once the first frame is ready. */
.hero__topo {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  pointer-events: none; opacity: 0; transition: opacity 1.8s var(--ease);
}
.hero__topo.is-on { opacity: 0.6; }
.hero__eyebrow { position: relative; font-size: clamp(17px, 1.5vw, 24px); color: var(--rust); margin-bottom: 1.5vh; }
.hero__title { position: relative; font-size: clamp(54px, 11.5vw, 220px); width: 100%; }
.rise { display: block; overflow: hidden; padding-bottom: 0.04em; }
.rise__i { display: block; transform: translateY(110%); }
.hero__title.is-in .rise__i { transform: translateY(0); transition: transform 1.05s var(--ease-out); transition-delay: var(--d, 0ms); }

.hero__points { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 34px; margin-top: 3vh; font-size: clamp(18px, 1.5vw, 25px); }
.hero__points li { display: flex; align-items: center; gap: 10px; }
.hero__points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.hero__lede { position: relative; max-width: 52ch; margin-top: 2.5vh; font-size: clamp(16px, 1.25vw, 21px); }
.hero__cta { position: relative; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 3.5vh; }

/* The stage under the hero, laid out like the reference's coconut screen:
   the truck stands in the open middle, with a hand-drawn arrow and points
   above-left, a paragraph and circled link top-right, a split headline
   wrapping round the gap, squiggles by the hooves and a line of copy
   bottom-left. */
.stagecall { position: relative; height: 100vh; }

/* Faint compass ring behind the truck, centred between the notes either side
   and between note 01 and the bottom of the headline. truck.js keeps the
   truck on its centre while it is in view. */
.stagecall__ring {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: min(64vh, 44vw); height: auto; pointer-events: none;
  color: color-mix(in srgb, var(--ink) 20%, var(--paper));
}


/* Numbered notes in two columns either side of the truck. The pin on each
   note's inner edge is where its leader line starts. */
.note { position: absolute; width: min(22vw, 300px); }
.note--l { left: var(--pad); }
.note--r { right: var(--pad); text-align: right; }
.note__k { display: flex; align-items: center; gap: 12px; font-size: clamp(17px, 1.35vw, 23px); color: var(--rust); }
.note__k > span:not(.note__pin) { white-space: nowrap; }
.note__pin { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--rust); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rust) 18%, transparent); }
.note--l .note__pin { margin-left: auto; }
.note--r .note__pin { margin-right: auto; }
.note__t { margin-top: 6px; font-size: clamp(14px, 1vw, 17px); line-height: 1.45; color: var(--ink-70); }


/* Split headline: "The real" left, "Cost of / every mob." stacked flush right,
   leaving the middle open for the truck. */
.stagecall__title { position: absolute; left: var(--pad); right: var(--pad); top: 64%; font-size: clamp(48px, 7.4vw, 150px); display: flex; justify-content: space-between; align-items: flex-start; }
/* "The long haul." sits up in the top-right corner, above notes 04 and 05
   (the section is 100vh tall and the title starts 64% down). */
.stagecall__l2 { position: absolute; right: 0; top: -53vh; text-align: right; }

/* Leader lines sit above the truck canvas (z 60) so the pins land on the truck. */
.stage-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 61; pointer-events: none; overflow: visible; opacity: 0; transition: opacity 0.2s linear; }
.stage-lines__path { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-dasharray: 4 5; }
.stage-lines__dot { fill: var(--rust); stroke: var(--paper); stroke-width: 2; }
.stage-lines__ring { fill: none; stroke: var(--rust); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: gcPulse 2.2s ease-out infinite; }
@keyframes gcPulse { from { transform: scale(0.4); opacity: 0.9; } to { transform: scale(1.9); opacity: 0; } }

.circled { position: relative; display: inline-block; padding: 0.55em 1.5em 0.65em; font-size: clamp(19px, 1.6vw, 27px); }
.circled::before {
  content: ""; position: absolute; inset: 0;
  border: 1.6px solid var(--ink); border-radius: 50%;
  transform: rotate(-4deg);
}
.circled::after {
  content: ""; position: absolute; left: 20%; top: calc(100% - 3px); width: 40%; height: 1.6px;
  background: var(--ink); transform: rotate(-3deg);
}
a.circled:hover::before { border-color: var(--rust); }
.model-mount { position: absolute; inset: 14vh var(--pad) 0; }

/* The one fixed canvas the truck is drawn on. Above the page content so it
   can pass in front of the big type; below the header, menu and cursor. */
.stage3d { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; }
.stage3d--static { position: absolute; }

/* ------------------------------ 8. Statement + cycler ---- */
/* Centred big type the truck drives across, as the reference sets its
   coconut against "The real source of every sip". */
/* A pinned scene: the section is tall, the inner stage sticks. Copy holds
   the top; the road runs along the bottom, and the truck's tyres land in its
   near lane, about 11.5% up from the bottom (GROUND in truck.js). */
.statement { position: relative; height: 380vh; }   /* long enough for the drive-off, one pass with the trailer, and the last pass */
.statement__pin {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  padding: 11vh var(--pad) 0; text-align: center;
}
.statement__line { font-size: clamp(34px, 6.2vw, 120px); max-width: 16ch; margin-inline: auto; }
.statement__sub { max-width: 46ch; margin-top: 3vh; font-size: clamp(16px, 1.25vw, 21px); color: var(--ink-70); }

/* Plants: bottom-centre anchored on the ground line; main.js sways them. */
.scenery { position: absolute; inset: 0; pointer-events: none; --ground: 13vh; }
.scenery__ground {
  position: absolute; left: 0; bottom: calc(var(--ground) - 8px); width: 100%; height: 14px;
  fill: none; stroke: color-mix(in srgb, var(--ink) 30%, transparent); stroke-width: 1.5; vector-effect: non-scaling-stroke;
}
.plant {
  position: absolute; left: var(--x); bottom: var(--ground); height: var(--h); width: auto; max-width: none;
  translate: -50% 0; transform-origin: 50% 100%; will-change: transform;
  filter: saturate(0.88) sepia(0.06);
  user-select: none; -webkit-user-drag: none;
}
.plant--flip { scale: -1 1; }
/* The city skyline on the far side of the road, standing still (it doesn't sway). */
.scenery__city {
  position: absolute; left: 0; bottom: var(--ground); height: min(22vh, 19.5vw); width: auto; max-width: none;
  filter: saturate(0.85) sepia(0.08) contrast(0.97);
  user-select: none; -webkit-user-drag: none;
}
/* Rolling green hills from behind the city to the right-hand edge, behind the tree.
   The tile (the picture + its mirror image) repeats with no seam at any width. It
   starts behind the city's right half (the skyline is 7/3 as wide as it is tall),
   and the mask fades it in along a slope: low ground shows first between the last
   buildings, and the hilltops rise to full height a little way past the city.
   (At 160deg the fade lines rise about 1 hill-height per 2.75 across, and the
   px stops are measured from the top-left corner, so it scales with the height.)
   A touch darker than the tree so the tree stands out. */
/* The city is drawn big and runs a little off the left edge (about a third of its width),
   which keeps its tallest towers clear of the line of text above. */
.scenery--road { --city-h: min(37vh, 25vw); --hills-h: min(8vh, 6vw); --city-x: calc(var(--city-h) * 7 / 3 * -0.385); }
/* Wide, short windows: keep the skyline's tallest tower clear of the text above. */
@media (min-aspect-ratio: 7/4) and (min-width: 901px) { .scenery--road { --city-h: min(35vh, 24vw); } }
.scenery--road .scenery__city { height: var(--city-h); left: var(--city-x); }
/* The tree stands a little way up the hills, in from the edge, and is toned down
   to the hills' light so it looks like it grows there rather than pasted on. */
.statement__pin .plant[data-plant-tree] { bottom: calc(var(--ground) + var(--hills-h) * 0.6); filter: saturate(0.85) brightness(0.86) contrast(1.04); }
.scenery__hills {
  position: absolute; left: calc(var(--city-x) + var(--city-h) * 7 / 3 * 0.7); right: 0; bottom: var(--ground);
  height: var(--hills-h);
  background: url("img/hills-tile.webp") repeat-x right bottom / auto 100%;
  -webkit-mask-image: linear-gradient(160deg, transparent calc(var(--hills-h) * 0.6), #000 calc(var(--hills-h) * 1.3));
  mask-image: linear-gradient(160deg, transparent calc(var(--hills-h) * 0.6), #000 calc(var(--hills-h) * 1.3));
  filter: saturate(0.85) brightness(0.72) contrast(1.05);
  pointer-events: none;
}
.plant--back { filter: saturate(0.75) sepia(0.12) brightness(0.97); }

/* The road along the bottom of the scene: a side-on strip made from the
   road photo (tools/road_strip.py), tiled. Far shoulder at the top, the
   double yellow line 33% down, the near lane below it where the truck
   drives. The plants stand on the far shoulder, behind the road. */
.scenery--road { --ground: 27.5vh; }
.scenery__road {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 28vh;
  background: url("img/road-tile.webp") repeat-x left bottom / auto 100%;
  pointer-events: none;
}
.cycler { display: inline-block; height: 0.86em; overflow: hidden; vertical-align: bottom; color: var(--rust); }
.cycler__track { display: block; transition: transform 0.62s var(--ease-out); }
.cycler__track > span { display: block; height: 0.86em; line-height: 0.86em; }

/* -------------------------------------- 9. Stat badges ---- */
/* Sized off the viewport and pinned for a beat, as the reference does:
   a full-height sticky stage holding one row of bordered circles. */
.badges { position: relative; height: 150vh; }
.badges__sticky {
  position: sticky; top: 0; height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 6vw var(--pad);
  z-index: 1;
  overflow: hidden;
}
.badges__row { display: flex; gap: 2vw; justify-content: center; width: 100%; }
.badge {
  flex: 0 0 auto;
  width: calc(100vw / 5.5); height: calc(100vw / 5.5);
  border-radius: 50%; border: 4px solid;
  display: grid; place-content: center; text-align: center;
  padding: 6%;
}
.badge--a { background: var(--sun);   border-color: var(--ink); color: var(--ink); }
.badge--b { background: var(--olive); border-color: var(--sun); color: var(--sun); }
/* Tilted, so the row reads as placed by hand rather than laid out. */
.badge__inner { display: block; transform: rotate(-8deg); }
.badge--b .badge__inner { transform: rotate(7deg); }
.badge__num { display: block; font-size: clamp(34px, 4.6vw, 86px); line-height: 0.82; }
.badge__unit { display: block; font-size: clamp(10px, 0.8vw, 13px); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 5px; opacity: 0.8; }
.badge__label { display: block; font-size: clamp(12px, 0.95vw, 17px); margin-top: 8px; }
.badges__row { position: relative; z-index: 1; }

/* Behind the drifting badges: a faint headline, a kicker, and a ticker of
   facts along the bottom of the pinned stage. */
.badges__kicker { position: absolute; left: var(--pad); top: 14vh; font-size: clamp(18px, 1.5vw, 26px); color: var(--rust); }
.badges__title {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: 100%; text-align: center; pointer-events: none;
  font-size: clamp(56px, 12.5vw, 240px);
  color: color-mix(in srgb, var(--wheat) 75%, var(--paper));
}
.factstrip {
  position: absolute; left: 0; right: 0; bottom: 5vh; z-index: 2;
  padding: 12px 0;
  border-block: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent);
  background: color-mix(in srgb, var(--paper) 85%, transparent);
}
.factstrip li {
  display: flex; align-items: center; gap: 2.2vw; padding-left: 2.2vw; white-space: nowrap;
  font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: -0.02em;
  font-size: clamp(18px, 1.7vw, 30px); line-height: 1;
}
.factstrip li::after { content: "✺"; color: var(--rust); font-size: 0.8em; }

/* Wide screens: the reference's arrangement. The truck turns in the middle
   of a longer pinned stage while the badges drift diagonally up past it,
   alternating sides. main.js adds .is-drifting and drives the transforms. */
@media (min-width: 901px) {
  .badges { height: 280vh; }
  .badges.is-drifting .badges__row { position: absolute; inset: 0; display: block; }
  .badges.is-drifting .badge { position: absolute; top: 0; left: 23%; transform: translate3d(-50%, 110vh, 0); will-change: transform; }
  .badges.is-drifting .badge:nth-child(even) { left: 77%; }
}

/* Big soft form behind a section — the reference's 60vw blurred circle. */
.glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.glow::before {
  content: "";
  position: absolute; left: 50%; top: -15vw;
  width: 60vw; height: 60vw;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--wheat);
  opacity: 0.45;
  filter: blur(8vw);
}
.statement, .badges { position: relative; }
.statement__pin > *:not(.glow):not(.scenery):not(.factnote):not(.rules):not(.statement__sky):not(.statement__rays) { position: relative; z-index: 1; }

/* The rules ride past on the trailer's side (truck.js), so this list is for
   screen readers only, unless there's no 3D truck to carry them. */
.rules { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html.no-truck .rules {
  position: relative; z-index: 1; width: auto; height: auto; margin: 6vh 0 0; overflow: visible; clip-path: none; white-space: normal;
  max-width: 1200px; text-align: left;
}
@media (prefers-reduced-motion: reduce) {
  .rules {
    position: relative; z-index: 1; width: auto; height: auto; margin: 6vh 0 0; overflow: visible; clip-path: none; white-space: normal;
    max-width: 1200px; text-align: left;
  }
}
.rules__kicker { margin-bottom: 3vh; text-align: center; font-weight: 400; font-size: clamp(19px, 1.6vw, 27px); color: var(--rust); }
.rules__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 3vh 3vw; }
.rules__grid li { padding-top: 16px; border-top: 1.5px solid var(--ink); }
.rules__grid h4 { margin: 0 0 10px; font-size: clamp(22px, 2vw, 36px); line-height: 0.94; }
.rules__grid p { font-size: clamp(14px, 1vw, 17px); color: var(--ink-70); }
.rules__note { max-width: 70ch; margin: 4vh auto 0; text-align: center; font-size: 14px; color: var(--ink-45); }

/* Small fact notes in the top corners of the scene, clear of the truck's run. */
.statement__pin > .factnote { position: absolute; max-width: 26ch; text-align: left; font-size: clamp(15px, 1.05vw, 18px); color: var(--ink-70); }
.statement__pin > .factnote--tl { left: var(--pad); top: 12vh; }
.factnote__k { display: block; margin-bottom: 6px; font-family: var(--hand); font-size: clamp(18px, 1.4vw, 24px); color: var(--rust); }


/* "The rules we run by" — four columns the truck drives across. */

/* Drifting band of solid circles. Their lower halves sink into the dark
   band below (which sits over them, so its copy can start right under the
   arches), so its top edge reads as a moving scalloped hem. */
.circleband { --cb: calc(100vw / 5); position: relative; z-index: 9; overflow: hidden; margin-bottom: calc(var(--cb) / -2); pointer-events: none; }
/* No gap: neighbouring circles touch, so the hem is an unbroken row of arches. */
.circleband .marquee__track { gap: 0; align-items: center; }
.circleband span {
  display: block;
  width: var(--cb); height: var(--cb);
  border-radius: 50%; background: var(--svc-bg);   /* the services band's own colour (.dark) */
}

/* --------------------------------- 11. Pinned sequence ---- */
/* Tall section, sticky inner panel, steps cross-fading on scroll. */
/* Tall section, sticky inner panel, steps cross-fading on scroll. Text
   holds the left half; the truck holds the right and is redrawn at each
   step (truck.js). Step three is the night run, so the panel goes
   dark. The foot follows the reference: label left, bar, count right. */
.pinned { height: 260vh; position: relative; background: var(--paper); transition: background-color 0.6s var(--ease), color 0.6s var(--ease); }
.pinned.is-night { background: var(--ink); color: var(--paper); --ink-70: color-mix(in srgb, var(--paper) 72%, var(--ink)); }
.pinned__inner {
  position: sticky; top: 0; height: 100svh;
  padding: 12vh var(--pad) 5vh;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.pinned__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.pinned__title { font-size: clamp(36px, 6vw, 110px); }
.pinned__progress { font-size: clamp(18px, 1.8vw, 30px); color: var(--rust); }
.pinned__stage { position: relative; flex: 1; margin-top: 3vh; }
.steps { position: absolute; inset: 0; }
.step {
  position: absolute; inset: 0 50% 0 0;
  display: grid; align-content: center;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.3s var(--ease), transform 0.45s var(--ease-out);
  pointer-events: none;
}
.step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.step__text { display: grid; gap: 1.4vh; align-content: center; }
.step__no { display: block; font-size: clamp(70px, 14vw, 250px); line-height: 0.76; color: var(--wheat); transition: color 0.6s var(--ease); }
.pinned.is-night .step__no { color: color-mix(in srgb, var(--paper) 16%, var(--ink)); }
.step__title { font-size: clamp(34px, 5vw, 92px); }
.step p { max-width: 44ch; font-size: clamp(16px, 1.2vw, 22px); color: var(--ink-70); }
.pinned__view { position: absolute; right: var(--pad); bottom: 13vh; font-size: clamp(17px, 1.4vw, 24px); color: var(--rust); }
.pinned.is-night .pinned__progress, .pinned.is-night .pinned__view { color: var(--sun); }
.pinned__foot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 2.4vw; margin-top: 3vh; }
.pinned__label, .pinned__count { font-size: clamp(22px, 2.2vw, 40px); line-height: 1; min-width: 3ch; }
.pinned__rail { height: 0.8vw; min-height: 8px; background: color-mix(in srgb, currentColor 14%, transparent); border-radius: var(--round); overflow: hidden; }
.pinned__bar { display: block; height: 100%; width: 0%; background: var(--rust); border-radius: var(--round); transition: width 0.12s linear; }

/* ------------------------------- 12. Dark services band ---- */
/* Overlaps the section above, as the reference's bands do. */
.dark {
  position: relative; z-index: 10;
  --ink: var(--svc-bg);
  background: var(--ink); color: var(--paper);
  padding: 4vh var(--pad) 7vh;
  --ink-70: color-mix(in srgb, var(--paper) 84%, var(--ink));
  --ink-45: color-mix(in srgb, var(--paper) 62%, var(--ink));
}
.dark__eyebrow { font-size: clamp(17px, 1.5vw, 24px); color: var(--sun); }
/* Heading left, a short intro filling the space to its right. */
.dark__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr); gap: 5vw; align-items: end; }
.dark__intro { padding-bottom: 1.5vh; }
.dark__intro p { max-width: 44ch; font-size: clamp(16px, 1.25vw, 21px); color: var(--ink-70); }
.dark__intro .dark__hint { margin-top: 2vh; font-size: clamp(17px, 1.4vw, 24px); color: var(--sun); }
.dark__title { font-size: clamp(60px, 13vw, 230px); margin-top: 1vh; }
/* Compact rows: text and photo share one height, so there's no dead space
   under the copy. */
/* Services in a two-by-two grid (1 beside 2, 3 beside 4). Each is a card:
   photo across the top, then number and title, and the checklist. */
.svc { margin-top: 5vh; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6vh 3vw; }
.svc__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "img img" "no body";
  gap: 2.4vh 1.2vw; align-items: start;
  padding-top: 3vh; border-top: 1.5px solid color-mix(in srgb, var(--paper) 28%, var(--ink));
}
.svc__item > .svc__no { grid-area: no; }
.svc__item > .svc__body { grid-area: body; }
.svc__item > .svc__img { grid-area: img; }
.svc__points {
  margin-top: 2.4vh; padding-top: 1.8vh;
  border-top: 1px solid color-mix(in srgb, var(--paper) 18%, var(--ink));
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 2.4vw;
  font-size: clamp(14px, 0.95vw, 17px); color: var(--paper);
}
.svc__points li { display: flex; align-items: baseline; gap: 10px; }
.svc__points li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); transform: translateY(-1px); }
.svc__no { font-size: 22px; line-height: 1.6; color: var(--sun); }
.svc__title { font-size: clamp(28px, 3vw, 54px); }
.dark .ph { color: var(--paper); }
/* Service photos sit in the same rounded 3:2 frame the placeholders used. */
.svc__img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 1.4vw;
  background: color-mix(in srgb, var(--paper) 9%, var(--ink));
}

/* Services carousel control bar: only used on wide screens (below). */
.svc-bar { display: none; }

/* Wide screens: the services slide as a carousel of smaller cards. Two show
   in full with the third peeking in at the right edge; drag, swipe a
   trackpad or use the arrows (main.js) to reach 3 and 4. Phones keep their
   own swipe row (section 19). */
@media (min-width: 901px) {
  .svc-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 2vw;
    margin-top: 5vh; padding-top: 2.2vh;
    border-top: 1.5px solid color-mix(in srgb, var(--paper) 28%, var(--ink));
  }
  .svc-bar__hint { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.55; }
  .svc-bar__ctrl { display: flex; align-items: center; gap: 12px; }
  .svc-bar__count { min-width: 5ch; margin-right: 6px; text-align: right; font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; color: var(--sun); }
  .svc-bar__btn {
    display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
    border: 1.5px solid color-mix(in srgb, var(--paper) 70%, var(--ink)); border-radius: 50%;
    background: transparent; color: var(--paper); cursor: var(--cur-link);
    transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), opacity 0.25s var(--ease);
  }
  .svc-bar__btn:hover:not(:disabled) { background: var(--sun); border-color: var(--sun); color: var(--ink); }
  .svc-bar__btn:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
  .svc-bar__btn:disabled { opacity: 0.3; cursor: var(--cur); }

  .dark .svc {
    --svc-gap: 1.6vw;
    display: flex; gap: var(--svc-gap);
    margin: 2.6vh calc(var(--pad) * -1) 0 0; padding: 0 var(--pad) 4px 0;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    scrollbar-width: none; cursor: grab;
  }
  .dark .svc::-webkit-scrollbar { display: none; }
  .dark .svc::after { content: ""; flex: 0 0 1px; }
  .dark .svc.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
  .dark .svc.is-dragging * { pointer-events: none; }
  .dark .svc__item {
    flex: 0 0 calc((100% - 2 * var(--svc-gap)) / 2.5); scroll-snap-align: start;
    gap: 1.2vh 0.9vw; padding: 0 1.8vw 2vh 0; border: 0; border-radius: 1.2vw; overflow: hidden;
    background: color-mix(in srgb, var(--paper) 7%, var(--ink));
  }
  .dark .svc__img { aspect-ratio: 21 / 9; border-radius: 0; -webkit-user-drag: none; user-select: none; }
  .dark .svc__no { padding-left: 1.8vw; font-size: 18px; line-height: 1.55; }
  .dark .svc__title { font-size: clamp(22px, 1.9vw, 34px); }
  .dark .svc__points { margin-top: 1vh; padding-top: 0; border-top: 0; gap: 4px 1.4vw; font-size: clamp(13px, 0.85vw, 15px); line-height: 1.35; }
  .dark .svc__points li { gap: 8px; }
}

/* Wide screens with a mouse: each card shows its photo and title only, and
   the card grows to open its dot points underneath the title while the cursor
   is on it. The points row animates from 0fr to 1fr, so the card eases open
   rather than jumping. Cards align to the top, so only the hovered card grows.
   Touch screens keep the points listed under the title (above). */
@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
  .dark .svc { align-items: flex-start; }
  .dark .svc__body {
    display: grid; grid-template-rows: auto 0fr;
    transition: grid-template-rows 0.45s var(--ease-out);
  }
  .dark .svc__points {
    min-height: 0; overflow: hidden; margin-top: 0; opacity: 0;
    transition: opacity 0.3s var(--ease), margin-top 0.45s var(--ease-out);
  }
  .dark .svc__item:hover .svc__body { grid-template-rows: auto 1fr; }
  .dark .svc__item:hover .svc__points { margin-top: 1vh; opacity: 1; transition-delay: 0.08s, 0s; }
  .dark .svc.is-dragging .svc__body { grid-template-rows: auto 0fr; }
  .dark .svc.is-dragging .svc__points { margin-top: 0; opacity: 0; }
  .svc-bar__hint::after { content: " \00B7  Hover a card for details"; }
}

/* ------------------------------------- 13. Marquees ---- */
.quotes { padding: 12vh 0; display: grid; gap: 2vh; overflow: hidden; }
.marquee { overflow: hidden; }
.marquee__track { display: flex; width: max-content; }
.quote {
  display: flex; align-items: baseline; gap: 18px;
  padding-inline: 2.4vw;
  border-left: 1.5px solid color-mix(in srgb, var(--ink) 25%, transparent);
}
.quote p { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: -0.04em; font-size: clamp(26px, 3.4vw, 62px); line-height: 0.94; white-space: nowrap; }

/* ---------------------------------------- 15. Coverage ---- */
.coverage {
  padding: 10vh var(--pad) 14vh;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 5vw; align-items: center;
  background: var(--paper-2);
}
.coverage__title { font-size: clamp(48px, 9vw, 160px); }
.coverage__text > p { margin-top: 2vh; max-width: 44ch; color: var(--ink-70); }
.districts { margin: 3vh 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.districts li { padding-block: 9px; border-bottom: 1.5px solid color-mix(in srgb, var(--ink) 18%, transparent); font-family: var(--hand); font-size: 19px; }

/* ----------------------------------------- 16. Big CTA ---- */
.bigcta { padding: 18vh var(--pad) 2vh; min-height: 56vh; display: grid; place-items: center; text-align: center; background: var(--paper-2); }   /* the estimator follows straight on */
.bigcta__link { display: inline-block; }
.bigcta__text { font-size: clamp(48px, 12vw, 220px); letter-spacing: 0.02em; transition: color 0.35s var(--ease); }
.bigcta__link:hover .bigcta__text { color: var(--rust); }

/* ----------------------------------------- 17. Contact ---- */
.contact { padding: 6vh var(--pad) 10vh; }
.contact__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 5vw; align-items: end; }
.contact__title { font-size: clamp(44px, 8vw, 150px); }
.contact__note { font-size: clamp(18px, 1.5vw, 26px); color: var(--rust); }
/* Phone, email and ABN in one ruled row under the heading. */
.contact__details { margin-top: 3.5vh; display: flex; flex-wrap: wrap; gap: 2vh 6vw; padding-block: 1.8vh; border-block: 1.5px solid color-mix(in srgb, var(--ink) 20%, transparent); }
.contact__details dt { font-size: 13px; letter-spacing: 0.02em; color: var(--ink-45); }
.contact__details dd { margin: 3px 0 0; font-size: clamp(17px, 1.35vw, 24px); }
.contact__details a { transition: color 0.3s var(--ease); }
.contact__details a:hover { color: var(--rust); }
.contact__body { margin-top: 3.5vh; }
/* Four fields to a row, then load size beside the folded-up note, then send. */
.form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.4vh 2vw; align-items: end; }
.field--full { grid-column: 1 / -1; }
.field--wide { grid-column: span 2; }
.field--note.is-open { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; letter-spacing: 0.02em; opacity: 0.6; margin-bottom: 6px; }
.form__more {
  display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 10px 0;
  border: 0; border-bottom: 1.5px dashed color-mix(in srgb, var(--ink) 40%, transparent); background: none;
  font: inherit; color: var(--ink); text-align: left; cursor: var(--cur-link); transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.form__more:hover, .form__more:focus-visible { outline: none; border-bottom-color: var(--rust); }
.form__plus { font-weight: 600; color: var(--rust); }
.form__hint { color: var(--ink-45); font-size: 0.9em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field__unit { opacity: 0.8; }
.field input, .field textarea {
  width: 100%; font: inherit; color: inherit; background: transparent;
  border: 0; border-bottom: 1.5px solid var(--ink); padding: 10px 0; border-radius: 0;
  transition: border-color 0.25s var(--ease);
}
.field textarea { border: 1.5px solid var(--ink); border-radius: 14px; padding: 14px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-45); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--rust); }
.field.has-error input, .field.has-error textarea { border-color: var(--rust); }
.field__error { margin-top: 8px; font-family: var(--hand); font-size: 17px; color: var(--rust); }
.form__foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.form__note { font-size: 17px; color: var(--ink-45); }
.form-done { border: 1.5px solid var(--ink); border-radius: 2vw; padding: 4vh 3vw; display: grid; gap: 16px; justify-items: start; }
.form-done h3 { font-size: clamp(28px, 3.5vw, 56px); }
.form-done p { max-width: 52ch; color: var(--ink-70); }

/* ------------------------------------------ 18. Footer ---- */
.footer { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); padding: 8vh var(--pad) 3vh; border-radius: 3vw 3vw 0 0; }
.footer > * { position: relative; z-index: 1; }

/* Links in two columns, the badge in the middle (contact details now sit in the contact section). */
/* Equal side columns, so the badge sits dead centre. */
.footer__top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 4vw; align-items: center; }
.footer__nav ul { display: grid; grid-template-columns: repeat(2, max-content); gap: 4px 4vw; }
.footer__nav a { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: -0.01em; font-size: clamp(22px, 2.5vw, 46px); line-height: 1.04; transition: color 0.3s var(--ease); }
.footer__nav a:hover { color: var(--sun); }
.footer__logo { display: block; width: clamp(180px, 16vw, 290px); height: auto; }
/* One line, edge to edge. main.js fits the size to the width. */
.footer__wordmark {
  pointer-events: none;   /* decoration: its box overlaps the footer links (Contact) */
  margin-top: 5vh;
  font-size: 13.4vw;
  white-space: nowrap;
  line-height: 0.8;
  color: color-mix(in srgb, var(--paper) 14%, var(--ink));
  text-align: center;
}
.footer__base { margin-top: 2.4vh; padding-top: 2.5vh; border-top: 1.5px solid color-mix(in srgb, var(--paper) 22%, var(--ink)); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 15px; opacity: 0.75; }

/* The night road: the road strip from the top of the page, darkened, edge to
   edge under the name. truck.js drives the truck along it (tyres 60% down in
   the near lane, 30% in the far one) and sets --beam-x / --beam on the name,
   so its headlights light up the letters as they pass. */
.nightroad { height: clamp(84px, 8.6vw, 170px); margin: 1.4vw calc(var(--pad) * -1) 0; }
.nightroad__road {
  position: absolute; inset: 0;
  background: url("img/road-tile.webp") repeat-x left bottom / auto 100%;
  filter: brightness(0.36) saturate(0.55) sepia(0.3);
}
/* Soften the far edge into the footer and darken the ends, like the edge of the headlight throw. */
.nightroad::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, var(--ink) 0%, transparent 16%),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 70%, transparent), transparent 12%, transparent 88%, color-mix(in srgb, var(--ink) 70%, transparent));
}
.has-truck .nightroad { cursor: var(--cur-link); }
.nightroad__honk {
  display: none; position: absolute; right: var(--pad); bottom: 7%; z-index: 2;
  padding: 6px 2px; background: none; border: 0; color: var(--sun); opacity: 0.8;
  font-size: clamp(15px, 1.15vw, 19px); cursor: var(--cur-link); transition: opacity 0.3s var(--ease);
}
.nightroad__honk::after { content: " \2192"; font-family: var(--sans); }
.nightroad__honk:hover, .nightroad__honk:focus-visible { opacity: 1; }
.has-truck .nightroad__honk { display: block; }
/* HONK! over the cab: placed by main.js, clear above the truck so the canvas doesn't cover it. */
.nightroad__bubble {
  position: absolute; left: 50%; bottom: 162%; z-index: 2; pointer-events: none;
  font-size: clamp(30px, 3.2vw, 58px); line-height: 1; color: var(--sun);
  text-shadow: 0 0 22px rgba(232, 22, 31, 0.5);
  opacity: 0; translate: -50% 0;
}
.nightroad__bubble.is-on { animation: honkPop 1.1s var(--ease-out) both; }
@keyframes honkPop {
  0%   { opacity: 0; transform: scale(0.3) rotate(-10deg); }
  14%  { opacity: 1; transform: scale(1.18) rotate(-4deg); }
  28%  { transform: scale(1) rotate(-6deg); }
  75%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-24px) scale(1.04) rotate(-6deg); }
}
/* The name, lit from the road by the passing headlights. */
.has-truck .footer__wordmark {
  color: transparent;
  background-color: color-mix(in srgb, var(--paper) 14%, var(--ink));
  background-image: radial-gradient(ellipse 26vw 135% at var(--beam-x, -60vw) 118%,
    rgba(255, 255, 255, var(--beam, 0)) 0%,
    rgba(232, 22, 31, calc(var(--beam, 0) * 0.42)) 42%,
    transparent 74%);
  -webkit-background-clip: text; background-clip: text;
}

/* ------------------------------------ 18b. Rate estimator ---- */
/* Continues the "Get a quote" band: the same paper-2 ground. The map
   is a dark navigation-chart card; the estimate is a sticky dark card
   on the right (phones: at the end, with a total bar along the bottom). */
.est { position: relative; background: var(--paper-2); padding: 2vh var(--pad) 14vh; }
.est__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 2.4vw; align-items: start; }
.est__main { display: grid; gap: 3.2vh; min-width: 0; }
.est__noscript { text-align: center; padding: 4vh 0; }

/* ---- the map ---- */
.est-map {
  --ar: 959 / 614;
  position: relative; aspect-ratio: var(--ar); border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 40%, #1f1f23 0%, #121214 70%, #0a0a0b 100%);
  box-shadow: 0 30px 60px -30px rgba(6, 6, 7, 0.55), inset 0 0 0 1px rgba(232, 22, 31, 0.12);
  isolation: isolate;
}
.est-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.est-map__fx { touch-action: pan-y pinch-zoom; cursor: crosshair; }
.est-map__hud { position: absolute; left: 14px; right: 14px; top: 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; pointer-events: none; z-index: 3; }
.est-map__modes { display: flex; gap: 6px; padding: 4px; border-radius: var(--round); background: rgba(6, 6, 7, 0.78); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px rgba(232, 22, 31, 0.18); pointer-events: auto; }
.est-mode { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 7px; border: 0; border-radius: var(--round); background: transparent; color: rgba(255, 255, 255, 0.7); font: 500 13px/1 var(--sans); cursor: var(--cur-link); transition: background-color 0.25s var(--ease), color 0.25s var(--ease); }
.est-mode span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font: 700 12px/1 var(--display); color: #fff; background: var(--sun); }
.est-mode--b span { background: #fff; color: #0B0B0C; }
.est-mode[aria-pressed="true"] { background: rgba(255, 255, 255, 0.12); color: #fff; }
.est-mode:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
.est-map__legend { display: flex; gap: 14px; padding: 9px 13px; border-radius: var(--round); background: rgba(6, 6, 7, 0.7); font: 500 11.5px/1 var(--sans); color: rgba(255, 255, 255, 0.66); letter-spacing: 0.01em; }
.est-map__legend li { display: flex; align-items: center; gap: 7px; }
.est-map__legend li::before { content: ""; width: 16px; height: 2px; border-radius: 2px; background: var(--sun); box-shadow: 0 0 6px rgba(232, 22, 31, 0.8); }
.est-legend--us::before { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.7) 0 3px, transparent 3px 6px) !important; box-shadow: none !important; }
.est-legend--you::before { height: 3px !important; background: #fff !important; box-shadow: 0 0 8px rgba(255, 255, 255, 0.8) !important; }
.est-map__status, .est-map__readout {
  position: absolute; bottom: 14px; z-index: 3; margin: 0; padding: 8px 13px; border-radius: var(--round);
  background: rgba(6, 6, 7, 0.78); backdrop-filter: blur(6px); color: rgba(255, 255, 255, 0.75); font: 500 12px/1.2 var(--sans); pointer-events: none;
}
.est-map__status { right: 14px; }
.est-map__status::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--sun); vertical-align: 1px; animation: estBlink 1s ease-in-out infinite alternate; }
.est-map__status.is-done::before { background: #7bd389; animation: none; box-shadow: 0 0 6px #7bd389; }
.est-map__readout { left: 14px; color: #fff; }
.est-map__readout b { color: var(--sun); font-weight: 600; }
@keyframes estBlink { from { opacity: 0.25; } to { opacity: 1; } }
.est-map__tip {
  position: absolute; left: 0; top: 0; z-index: 4; max-width: 280px; padding: 8px 11px; border-radius: 10px; pointer-events: none;
  background: rgba(255, 255, 255, 0.96); color: var(--ink); font: 500 12.5px/1.4 var(--sans); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5);
}
.est-map__tip b { color: var(--rust); font-weight: 600; margin-right: 4px; }
.est-tip__shield { display: inline-block; padding: 1px 6px; margin-right: 4px; border-radius: 4px 4px 9px 9px; background: var(--sun); font: 700 12px/1.2 var(--display); }

/* pins: HTML on top of the canvas so they can be dragged (touch too) and focused */
.est-pin {
  position: absolute; left: 0; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px;
  margin: -14px 0 0 -14px; padding: 0; border: 0; background: none; cursor: grab; touch-action: none;
  transition: transform 0.18s var(--ease-out);
}
.est-pin.is-dragging { cursor: grabbing; transition: none; }
.est-pin__dot {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--sun); color: #fff; font: 700 15px/1 var(--display); box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(6, 6, 7, 0.85);
}
.est-pin--b .est-pin__dot { background: #fff; color: #0B0B0C; }
.est-pin__label {
  padding: 5px 10px; border-radius: var(--round); background: rgba(6, 6, 7, 0.88); color: #fff;
  font: 500 12px/1.2 var(--sans); white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(232, 22, 31, 0.25);
}
.est-pin.is-left { flex-direction: row-reverse; }
.est-pin:focus-visible { outline: none; }
.est-pin:focus-visible .est-pin__dot { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--rust); }

/* ---- pickup / delivery ---- */
.est-route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: start; }
.est-field { position: relative; min-width: 0; }
.est-field__label { display: block; margin-bottom: 9px; font-size: 13px; letter-spacing: 0.02em; color: var(--ink-70); }
.est-field__box { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 8px; border: 1.5px solid var(--ink); border-radius: var(--round); background: var(--paper); transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.est-field__box:focus-within { border-color: var(--rust); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rust) 16%, transparent); }
.est-field__badge { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sun); font: 700 15px/1 var(--display); color: #fff; }
.est-field[data-end="to"] .est-field__badge { background: #fff; color: #0B0B0C; }
.est-field input { flex: 1; min-width: 0; border: 0; background: none; padding: 8px 0; font: 500 16px/1.2 var(--sans); color: var(--ink); }
.est-field input:focus { outline: none; }
.est-field input::placeholder { color: var(--ink-45); font-weight: 400; }
.est-field__clear { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-45); font-size: 20px; line-height: 1; cursor: var(--cur-link); visibility: hidden; }
.est-field.is-set .est-field__clear { visibility: visible; }
.est-field__clear:hover { background: var(--paper-2); color: var(--ink); }
.est-field__list {
  position: absolute; left: 0; right: 0; top: calc(100% - 46px); z-index: 20; max-height: 320px; overflow: auto; margin-top: 4px; padding: 6px;
  border: 1.5px solid var(--ink); border-radius: 18px; background: var(--paper); box-shadow: 0 22px 40px -18px rgba(6, 6, 7, 0.5);
}
.est-field__list li { display: flex; gap: 12px; align-items: baseline; padding: 10px 12px; border-radius: 12px; cursor: var(--cur-link); font-size: 15px; }
.est-field__list li b { font: 600 17px/1 var(--display); letter-spacing: 0.02em; color: var(--rust); min-width: 3.2em; }
.est-field__list li.is-active, .est-field__list li:hover { background: var(--paper-2); }
.est-field__more { display: flex; gap: 8px; margin-top: 10px; align-items: center; flex-wrap: wrap; }
.est-field__hub, .est-input select {
  appearance: none; -webkit-appearance: none; border: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: var(--round);
  padding: 8px 32px 8px 14px; font: 500 13px/1.2 var(--sans); color: var(--ink); cursor: var(--cur-link);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23F4F4F5' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center / 10px;
}
.est-field__hub { max-width: 100%; }
.est-locate { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: var(--round); background: transparent; color: var(--ink-70); font: 500 13px/1 var(--sans); cursor: var(--cur-link); }
.est-locate svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.est-locate:hover { color: var(--rust); }
.est-locate.is-busy svg { animation: estSpin 1s linear infinite; }
@keyframes estSpin { to { transform: rotate(360deg); } }
.est-field__note { margin-top: 8px; font-family: var(--hand); font-size: 16px; color: var(--rust); }
.est-swap { align-self: center; margin-top: 18px; width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper); cursor: var(--cur-link); transition: transform 0.4s var(--ease-out), background-color 0.25s var(--ease); }
.est-swap svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transform: rotate(90deg); }
.est-swap:hover { background: var(--ink); color: var(--paper); transform: rotate(180deg); }

/* ---- step headings, the load ---- */
.est-step { display: flex; align-items: baseline; gap: 14px; margin-bottom: 2vh; font: 600 clamp(26px, 2.4vw, 40px)/1 var(--display); text-transform: uppercase; letter-spacing: -0.02em; }
.est-step span { font: 400 18px/1 var(--hand); color: var(--rust); letter-spacing: 0; }
.est-load, .est-opts { padding-top: 3vh; border-top: 1.5px solid var(--ink); }
.est-load__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: end; }
.est-seg { grid-column: span 2; display: flex; gap: 4px; padding: 4px; border: 1.5px solid var(--ink); border-radius: 20px; background: var(--paper); }
.est-seg button { flex: 1; padding: 10px 12px; border: 0; border-radius: 16px; background: transparent; color: var(--ink); font: 600 clamp(17px, 1.3vw, 21px)/1 var(--display); text-transform: uppercase; letter-spacing: -0.01em; cursor: var(--cur-link); transition: background-color 0.25s var(--ease), color 0.25s var(--ease); }
.est-seg button small { display: block; margin-top: 5px; font: 400 12px/1.2 var(--sans); text-transform: none; letter-spacing: 0; opacity: 0.7; }
.est-seg button[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.est-seg--sm { grid-column: auto; display: inline-flex; border-radius: 16px; }
.est-seg--sm button { font-size: 18px; padding: 8px 14px; border-radius: 12px; }
.est-pallets { grid-column: span 2; }
.est-pallets label { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-70); margin-bottom: 10px; }
.est-pallets output { font: 600 22px/1 var(--display); color: var(--ink); }
.est-pallets input[type="range"] { width: 100%; height: 6px; appearance: none; -webkit-appearance: none; border-radius: 6px; background: linear-gradient(90deg, var(--rust) var(--p, 45%), color-mix(in srgb, var(--ink) 18%, transparent) var(--p, 45%)); }
.est-pallets input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); cursor: grab; }
.est-pallets input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); cursor: grab; }
.est-input { display: grid; gap: 9px; font-size: 13px; color: var(--ink-70); }
.est-input small { opacity: 0.75; }
.est-input input { width: 100%; border: 0; border-bottom: 1.5px solid var(--ink); background: transparent; padding: 9px 0; font: 500 16px/1.2 var(--sans); color: var(--ink); border-radius: 0; }
.est-input input:focus { outline: none; border-bottom-color: var(--rust); }
.est-input select { width: 100%; font-size: 14px; padding-block: 10px; }

/* ---- options ---- */
.est-opts__intro { margin: -1vh 0 2.4vh; color: var(--ink-70); }
.est-opts__groups { display: grid; gap: 3vh; }
.est-group__title { margin-bottom: 1.4vh; font: 400 clamp(18px, 1.4vw, 23px)/1 var(--hand); color: var(--rust); }
.est-group__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.est-opt-wrap { position: relative; display: grid; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 22%, transparent); transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease-out); }
.est-opt-wrap:hover { z-index: 3; box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); }
.est-opt-wrap.is-on { background: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rust), 0 14px 26px -16px rgba(6, 6, 7, 0.7); }
/* Compact: icon, name and price on a short card. The description drops down
   underneath on hover or keyboard focus (on touch screens, once it's picked). */
.est-opt {
  position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 11px; row-gap: 3px;
  width: 100%; padding: 10px 12px; border: 0; background: none; text-align: left; color: var(--ink); cursor: var(--cur-link); border-radius: 14px;
}
.est-opt:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }
.est-opt__icon { grid-row: span 2; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--paper-2); }
.est-opt__icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.est-opt__body { display: block; padding-right: 24px; }
.est-opt__name { display: block; font: 600 16px/1.05 var(--display); text-transform: uppercase; letter-spacing: -0.01em; }
.est-opt__desc {
  position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px);
  padding: 10px 12px; border-radius: 12px; background: #232327; color: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 16px 30px -12px rgba(0, 0, 0, 0.85);
  font-size: 12.5px; line-height: 1.4; text-transform: none;
  opacity: 0; visibility: hidden; transform: translateY(-4px); pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s linear 0.18s;
}
@media (hover: hover) {
  .est-opt:hover .est-opt__desc, .est-opt:focus-visible .est-opt__desc { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}
@media (hover: none) {
  .est-opt-wrap.is-on .est-opt__desc { position: static; display: block; margin-top: 4px; padding: 0; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
}
.est-opt__price { grid-column: 2; justify-self: start; font: 600 12px/1.2 var(--sans); color: var(--rust); }
.est-opt__check { position: absolute; top: 50%; margin-top: -9px; right: 12px; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 30%, transparent); }
.est-opt-wrap.is-on .est-opt { color: var(--paper); }
.est-opt-wrap.is-on .est-opt__icon { background: rgba(255, 255, 255, 0.1); color: var(--sun); }
.est-opt-wrap.is-on .est-opt__price { color: var(--sun); }
.est-opt-wrap.is-on .est-opt__check { background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 100%; box-shadow: none; }
.est-qty { display: flex; align-items: center; gap: 10px; margin: 0 12px 10px 53px; padding: 6px; border-radius: var(--round); background: rgba(255, 255, 255, 0.08); color: var(--paper); font-size: 13px; }
.est-qty button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--sun); color: #fff; font: 600 18px/1 var(--sans); cursor: var(--cur-link); }
.est-qty output { font: 600 20px/1 var(--display); min-width: 1.4em; text-align: center; }
.est-qty span { flex: 1; opacity: 0.75; }
.est-qty--value { gap: 6px; padding: 6px 12px; }
.est-qty--value input { flex: 1; min-width: 0; border: 0; background: none; color: var(--paper); font: 600 16px/1.2 var(--sans); }
.est-qty--value input:focus { outline: none; }

/* hazardous materials: a wide panel with the DOT placards */
.est-haz { position: relative; z-index: 4; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 22%, transparent); transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.est-haz.is-on { background: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rust), 0 20px 40px -24px rgba(6, 6, 7, 0.8); }
.est-opt--haz { padding: 12px 14px; grid-template-columns: 30px minmax(0, 1fr) auto; }
.est-opt--haz .est-opt__body { padding-right: 0; }
.est-opt--haz .est-opt__price { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
.est-opt--haz .est-opt__icon { background: #FF2B35; color: #fff; }
.est-haz.is-on .est-opt--haz { color: var(--paper); }
.est-haz.is-on .est-opt--haz .est-opt__price { color: var(--sun); }
.est-opt--haz .est-opt__desc { right: auto; max-width: 520px; }
.est-haz__body { padding: 0 18px 20px; }
.est-haz__classes { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; }
.est-placard { display: grid; justify-items: center; gap: 6px; padding: 10px 4px 10px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.8); cursor: var(--cur-link); transition: background-color 0.25s var(--ease), transform 0.25s var(--ease-out); }
.est-placard svg { width: 100%; max-width: 64px; aspect-ratio: 1; filter: saturate(0.55) brightness(0.8); transition: filter 0.25s var(--ease), transform 0.35s var(--ease-out); }
.est-placard:hover svg { filter: none; transform: scale(1.06); }
.est-placard[aria-pressed="true"] { background: rgba(232, 22, 31, 0.14); box-shadow: inset 0 0 0 1.5px var(--sun); color: var(--paper); }
.est-placard[aria-pressed="true"] svg { filter: drop-shadow(0 0 10px rgba(255, 70, 78, 0.45)); transform: scale(1.08); }
.est-placard:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
.est-placard__name { font: 500 11.5px/1.25 var(--sans); text-align: center; }
.est-placard__price { font: 600 12px/1 var(--sans); color: var(--sun); }
.est-haz__pg { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; color: rgba(255, 255, 255, 0.75); font-size: 13px; }
.est-haz__pg .est-seg { background: transparent; border-color: rgba(255, 255, 255, 0.25); }
.est-haz__pg .est-seg button { color: var(--paper); }
.est-haz__pg .est-seg button[aria-checked="true"] { background: var(--sun); color: #fff; }
.est-haz__note { flex-basis: 100%; font-family: var(--hand); font-size: 16px; color: var(--sun); }
.est-included { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 3vh; font-size: 13px; }
.est-included__k { font-family: var(--hand); font-size: 18px; color: var(--rust); margin-right: 6px; }
.est-included__i { padding: 5px 11px; border-radius: var(--round); background: var(--paper); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent); }
.est-included__i::before { content: "✓ "; color: #3d8a4e; }

/* ---- the estimate ---- */
.est__side { position: sticky; top: 92px; }
.est-sum {
  position: relative; padding: 26px 24px 22px; border-radius: 24px; background: var(--ink); color: var(--paper);
  box-shadow: 0 30px 60px -30px rgba(6, 6, 7, 0.7);
  /* never taller than the screen: the line items scroll inside instead, so the buttons stay in view */
  display: flex; flex-direction: column; max-height: calc(100vh - 110px);
}
.est-sum > * { flex: none; }
.est-sum__k { font-size: 22px; color: var(--sun); }
.est-sum__route { display: grid; gap: 10px; margin-top: 14px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.est-sum__route div { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: baseline; gap: 10px; }
.est-sum__route dt { display: flex; align-items: center; gap: 7px; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.est-sum__route dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.est-sum__route dd b { font: 600 17px/1 var(--display); color: var(--sun); margin-right: 4px; letter-spacing: 0.02em; }
.est-sum__route dd i { color: rgba(255, 255, 255, 0.45); font-style: normal; }
.est-sum__badge { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font: 700 11px/1 var(--display); color: #fff; background: var(--sun); }
.est-sum__badge--b { background: #fff; color: #0B0B0C; }
.est-sum__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.est-sum__stats dt { font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.est-sum__stats dd { margin: 4px 0 0; font: 600 26px/1 var(--display); }
.est-sum__stats dd small { font-size: 0.55em; font-weight: 500; opacity: 0.7; margin-left: 1px; }
.est-sum__via { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin: 12px 0 0; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.est-sum__via:empty { display: none; }
.est-chip { padding: 2px 7px; border-radius: 4px 4px 9px 9px; background: var(--sun); color: #fff; font: 700 12px/1.3 var(--display); }
.est-sum__items { flex: 1 1 auto !important; min-height: 72px; display: grid; align-content: start; gap: 2px; margin-top: 14px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.25) transparent; }
.est-sum__items li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13.5px; border-bottom: 1px dashed rgba(255, 255, 255, 0.12); }
.est-sum__items li small { display: block; font-size: 11.5px; color: rgba(255, 255, 255, 0.5); }
.est-sum__items li b { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.est-sum__items li.is-new { animation: estIn 0.5s var(--ease-out); }
@keyframes estIn { from { opacity: 0; transform: translateX(10px); background: rgba(232, 22, 31, 0.12); } }
.est-sum__total { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1.5px solid rgba(255, 255, 255, 0.4); }
.est-sum__tlabel { font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.est-sum__tval { font-size: clamp(44px, 3.6vw, 62px); line-height: 0.9; color: var(--sun); font-variant-numeric: tabular-nums; }
.est-float { position: absolute; right: 0; top: -6px; font: 600 15px/1 var(--sans); color: #7bd389; pointer-events: none; animation: estFloat 1.1s var(--ease-out) forwards; }
@keyframes estFloat { from { opacity: 0; transform: translateY(8px); } 20% { opacity: 1; } to { opacity: 0; transform: translateY(-22px); } }
.est-sum__range { margin-top: 8px; font-size: 12.5px; color: rgba(255, 255, 255, 0.65); }
.est-sum__range b { color: var(--paper); font-weight: 600; }
.est-sum__notice { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border: 1.5px solid var(--sun); border-radius: 12px; background: rgba(232, 22, 31, 0.14); }
.est-sum__notice svg { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--sun); stroke-width: 2.2; stroke-linecap: round; }
.est-sum__notice p { font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, 0.85); }
.est-sum__notice strong { display: block; margin-bottom: 3px; font-family: var(--display); font-style: italic; font-weight: 600; font-size: 19px; line-height: 1.1; letter-spacing: 0.01em; text-transform: uppercase; color: #fff; }
.est-sum__flags { display: grid; gap: 6px; margin-top: 10px; }
.est-sum__flags li { padding: 8px 10px; border-radius: 10px; background: rgba(232, 22, 31, 0.16); color: #ffd1d3; font-size: 12.5px; line-height: 1.4; }
.est-sum__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.pill--sun { background: var(--sun); border-color: var(--sun); color: #fff; }
.pill--sun:hover { background: var(--paper); border-color: var(--paper); }
.pill--ghost { border-color: rgba(255, 255, 255, 0.4); color: var(--paper); }
.pill--ghost:hover { background: var(--paper); color: var(--ink); }
.est-copy__b { display: none; }
[data-copy].is-done .est-copy__a { display: none; }
[data-copy].is-done .est-copy__b { display: inline; }
.est-reset { border: 0; background: none; color: rgba(255, 255, 255, 0.6); font: 500 13px/1 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: var(--cur-link); padding: 8px 4px; }
.est-reset:hover { color: var(--paper); }
.est-sum:not(.is-ready) [data-send], .est-sum:not(.is-ready) [data-copy] { opacity: 0.4; pointer-events: none; }
.est-sum__fine { margin-top: 14px; font-size: 11.5px; line-height: 1.45; color: rgba(255, 255, 255, 0.45); }

/* phones: the total bar */
.est-bar { display: none; }

@media (max-width: 1100px) {
  .est__grid { grid-template-columns: minmax(0, 1fr); }
  .est__side { position: static; }
  .est-sum { max-height: none; }
  .est-sum__items { overflow: visible; }
  .est-haz__classes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .est { padding-bottom: 10vh; }
  .est-map { border-radius: 16px; aspect-ratio: auto; }
  .est-map::before { content: ""; display: block; aspect-ratio: var(--ar); }
  .est-map__hud { position: static; padding: 10px; flex-wrap: wrap; }
  .est-map { display: flex; flex-direction: column; }
  .est-map canvas { top: 0; height: auto; aspect-ratio: var(--ar); }
  .est-map__legend { display: none; }
  .est-map__modes { width: 100%; }
  .est-mode { flex: 1; justify-content: center; }
  .est-map__status { position: static; align-self: flex-end; margin: 0 10px 10px; }
  .est-map__readout { position: static; margin: 0 10px 10px; align-self: flex-start; }
  .est-pin__label { display: none; }   /* the small map stays clear; the fields below say the same */
  .est-route { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .est-swap { justify-self: center; margin: 0; }
  .est-load__grid { grid-template-columns: 1fr 1fr; }
  .est-seg, .est-pallets { grid-column: 1 / -1; }
  .est-input:last-child { grid-column: 1 / -1; }
  .est-group__grid { grid-template-columns: minmax(0, 1fr); }
  .est-haz__classes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .est-opt--haz { grid-template-columns: 34px minmax(0, 1fr); }
  .est-opt--haz .est-opt__price { grid-column: 2; grid-row: auto; justify-self: start; }
  .est-sum { padding: 22px 18px 18px; }
  .est-bar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; display: flex; align-items: center; gap: 12px;
    padding: 10px 10px 10px 18px; border-radius: var(--round); background: var(--ink); color: var(--paper);
    box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.6); transform: translateY(140%); transition: transform 0.45s var(--ease-out);
  }
  .est.has-route .est-bar.is-in { transform: none; }
  .est-bar__k { font-size: 12px; opacity: 0.65; }
  .est-bar__v { flex: 1; font-size: 28px; line-height: 1; color: var(--sun); }
  .est-bar__go { border: 0; border-radius: var(--round); padding: 10px 16px; background: var(--sun); color: #fff; font: 600 13px/1 var(--sans); }
}
@media (prefers-reduced-motion: reduce) {
  .est-map__status::before { animation: none; }
  .est-bar { transition: none; }
}

/* -------------------------------------- 19. Responsive ---- */
@media (max-width: 900px) {
  :root { --pad: 6vw; }
  .hide-sm { display: none; }
  .menu__cols, .contact__head, .footer__top, .dark__head { grid-template-columns: minmax(0, 1fr); }
  .stagecall { height: auto; padding: 6vh var(--pad) 64vh; display: grid; gap: 3vh; justify-items: start; }
  .stagecall > *:not(.model-mount) { position: static; transform: none; width: auto; max-width: none; text-align: left; }
  /* Stacked order with an empty band for the truck: headline,
     notes 1–3, [truck], notes 4–5, then the paragraph and link. The ring
     element doubles as the band; truck.js centres the truck on it here. */
  .stagecall { padding-bottom: 6vh; }
  .stagecall__title { order: -5; font-size: 14vw; display: block; }
  .note--l { order: -3; }
  .stagecall__ring { order: -2; visibility: hidden; width: 100%; height: 56vh; }
  .note--r { order: 1; }
  .stagecall__l1, .stagecall__l2 { position: static; display: block; text-align: left; }
  .note--r .note__k { flex-direction: row-reverse; justify-content: flex-end; }
  .note__pin { margin: 0 !important; }
    .statement { height: 300vh; }
  .statement__pin > .factnote { display: none; }
  .plant { height: calc(var(--h) * 0.62); }
  .badges__sticky { flex-direction: column; gap: 4vh; }
  .badges__kicker, .badges__title, .factstrip { position: static; transform: none; }
  .badges__title { font-size: 15vw; }
  .factstrip { width: 100vw; margin-inline: calc(var(--pad) * -1); }
  .footer__top { gap: 4vh; justify-items: start; }
  .footer__logo { justify-self: center; }
  .footer__base { justify-content: center; text-align: center; }
  /* Mobile polish: readable stat units, comfortable footer tap targets, and
     the "How it works" view label moved up under the counter, clear of the truck. */
  .badges .badge__unit { font-size: 11.5px; }
  .footer .footer__nav a { display: inline-block; padding-block: 9px; }
  .pinned .pinned__view { top: calc(12vh + 40px); bottom: auto; }
  /* The flip letters can't wrap, and the desktop 48px minimum spills off
     narrow phones; size it to the screen so it always fits on one line. */
  .bigcta .bigcta__text { font-size: 12.4vw; }
  /* The hidden spacer band under the hero: the stacking rule above sets
     width:auto, which made this square SVG as wide as it is tall (~56vh) and
     pushed the whole page ~100px wider than the phone. Pin it to the column. */
  .stagecall > .stagecall__ring { width: 100%; }
  .nightroad__bubble { bottom: 142%; }
  .menu__cols { align-items: start; gap: 6vh; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .form > .field { grid-column: 1 / -1; }
  .form__more { white-space: nowrap; }
  .form__hint { display: none; }
  .badges { height: auto; }
  .badges__sticky { position: static; height: auto; padding: 10vh var(--pad); }
  .badges__row { flex-wrap: wrap; gap: 4vw; }
  .badge { width: calc(50% - 2vw); height: auto; aspect-ratio: 1; }
  .circleband { --cb: calc(100vw / 2.6); }
  .dark { padding-top: 4vh; }
  .svc { grid-template-columns: minmax(0, 1fr); gap: 5vh; }
  .svc__item { gap: 2vh 3vw; }
  .svc__img { aspect-ratio: 3 / 2; }
  .svc__points { grid-template-columns: minmax(0, 1fr); }
  .svc__no { font-size: 19px; }
  .coverage { gap: 5vh; }
  .pinned { height: 240vh; }
  .step__no { font-size: clamp(64px, 22vw, 150px); }
  .step { inset: 0 0 40% 0; align-content: start; }
  .pinned__view { bottom: 10vh; }

  /* ---- Phones: the field-guide plate fits one screen ----
     Notes 01 and 04 sit above the truck with their labels facing down at it,
     notes 02, 03 and 05 sit below with labels facing up, and main.js draws a
     dashed leader line from each pin to its point on the truck, as on desktop. */
  .stagecall {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas:
      "title title title title title title"
      "n1 n1 n1 n4 n4 n4"
      "truck truck truck truck truck truck"
      "n2 n2 n3 n3 n5 n5";
    column-gap: 12px; row-gap: 2.4vh;
  }
  .stagecall > .stagecall__title { grid-area: title; }
  .stagecall > .stagecall__ring { grid-area: truck; height: 40svh; margin-block: 0.5vh; visibility: visible; }   /* the compass ring shows behind the truck, as on desktop */
  .stagecall > [data-anchor="sleeper"] { grid-area: n1; }
  .stagecall > [data-anchor="engine"]    { grid-area: n4; }
  /* Axles on the left, tanks in the middle: their points on the truck sit that way round,
     so the leader lines don't cross. */
  .stagecall > [data-anchor="axle"]   { grid-area: n2; }
  .stagecall > [data-anchor="tank"]   { grid-area: n3; }
  .stagecall > [data-anchor="light"] { grid-area: n5; }
  .stagecall > .note { width: 100%; }
  .stagecall > [data-anchor="sleeper"], .stagecall > [data-anchor="engine"] { display: flex; flex-direction: column-reverse; justify-content: flex-end; align-self: end; }
  .stagecall > [data-anchor="sleeper"] .note__t, .stagecall > [data-anchor="engine"] .note__t { margin: 0 0 4px; }
  .stagecall .note__k { font-size: 15px; gap: 6px; }
  .stagecall .note__t { font-size: 12.5px; line-height: 1.4; margin-top: 3px; }
  .stagecall > .stage-lines { position: absolute; inset: 0; width: 100%; height: 100%; grid-area: auto; }

  /* ---- Phones: the stat circles float up past the turning truck ----
     Like desktop: a pinned screen with the headline behind, and main.js
     (.is-drifting) floats the four circles up it, alternating sides. */
  .badges.is-drifting { height: 250vh; }
  .badges.is-drifting .badges__sticky { position: sticky; top: 0; height: 100svh; padding: 13vh var(--pad) 0; justify-content: flex-start; gap: 2vh; }
  .badges.is-drifting .badges__title { font-size: 17vw; }
  .badges.is-drifting .badges__row { position: absolute; inset: 0; display: block; }
  .badges.is-drifting .badge { position: absolute; top: 0; left: 29%; width: 46vw; transform: translate3d(-50%, 110vh, 0); will-change: transform; }
  .badges.is-drifting .badge:nth-child(even) { left: 71%; }
  .badges.is-drifting .factstrip { position: absolute; left: 0; right: 0; bottom: 4vh; margin: 0; width: auto; }

  /* ---- Phones: a shorter "Book an assessment" band ---- */
  .bigcta { min-height: 0; padding-block: 9vh 2vh; }

  /* ---- Phones: a compact footer ----
     No centre badge (the header already carries it), links in two even
     columns, contact details as label/value rows, and a tighter base line. */
  .footer { padding: 6vh var(--pad) 2.5vh; border-radius: 5vw 5vw 0 0; }
  .footer .footer__logo { display: none; }
  .footer .footer__top { gap: 3vh; }
  /* No footer links on phones (the menu covers them), so the footer is just
     the wordmark, the night road and the base line. */
  .footer .footer__top { display: none; }
  .footer { padding-top: 5vh; }
  .footer .footer__wordmark { margin-top: 0; }
  /* Contact details: stacked label/value rows. */
  .contact__details { margin-top: 3.5vh; flex-direction: column; gap: 1.2vh; padding-block: 2vh; }
  .contact__details > div { display: grid; grid-template-columns: 5.6em minmax(0, 1fr); align-items: baseline; gap: 12px; }
  .contact__details dd { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
  .footer .footer__base { margin-top: 2vh; padding: 1.8vh 0 0; flex-direction: column; align-items: center; gap: 2px; font-size: 12.5px; }
  .footer .footer__base p { margin: 0; white-space: nowrap; }

  /* ---- Phones: Services as a swipeable row of cards ----
     One card per service with the next one peeking in, so the section is a
     single screen instead of four stacked photos. Each card keeps its photo,
     number, title and checklist; the longer paragraph stays on desktop. */
  .dark { padding-bottom: 7vh; }
  .dark .dark__head { gap: 1.6vh; }
  .dark .dark__title { font-size: 21vw; }
  .dark .dark__intro { padding-bottom: 0; }
  .dark .dark__intro p { font-size: 15px; }
  .dark .dark__intro .dark__hint { margin-top: 1.2vh; font-size: 17px; }
  .dark .dark__intro::after { content: "Swipe for all six \2192"; display: block; margin-top: 2.4vh; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.55; }
  .dark .svc {
    display: flex; gap: 12px; margin: 2.4vh calc(var(--pad) * -1) 0; padding: 0 var(--pad) 6px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
    overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .dark .svc::-webkit-scrollbar { display: none; }
  .dark .svc::after { content: ""; flex: 0 0 1px; }
  .dark .svc__item {
    flex: 0 0 80vw; scroll-snap-align: start;
    gap: 1vh 10px; padding: 0 16px 14px 0; border: 0; border-radius: 16px; overflow: hidden;
    background: color-mix(in srgb, var(--paper) 8%, var(--ink));
  }
  .dark .svc__img { aspect-ratio: 2 / 1; border-radius: 0; }
  .dark .svc__no { padding-left: 16px; font-size: 18px; line-height: 1.5; }
  .dark .svc__title { font-size: 25px; }
  .dark .svc__points { margin-top: 0.8vh; padding-top: 0; border-top: 0; gap: 5px; font-size: 13.5px; line-height: 1.35; }
  .dark .svc__points li { gap: 8px; }

  /* ---- Phones: end the form at the button ----
     No "demonstration form" note, and no tall empty band before the footer. */
  .contact { padding-bottom: 5vh; }
  .contact .form__note { display: none; }
}
@media (max-width: 560px) {
  .districts { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 16vh; }
  .quote p { font-size: 26px; }
}

/* ---- Phones: a tighter pass, no empty bands ---- */
@media (max-width: 900px) {
  /* Hero: sized to its content, starting just under the logo, so the next
     headline peeks in at the bottom of the first screen. */
  .hero { min-height: 0; padding: 148px var(--pad) 7vh; }

  /* Road scene: bigger copy and a taller skyline close the gap between them;
     the changing word gets its own line so it never sits off-centre. */
  .statement__pin { padding-top: 13vh; }
  .statement__line { font-size: 11.5vw; line-height: 0.92; max-width: none; }
  .statement__line .cycler { display: block; width: auto !important; margin-top: 0.06em; }
  .statement__sub { margin-top: 2.2vh; font-size: 16.5px; }
  /* Phone road scene: the skyline on the left, the hills low along the right
     (behind the skyline's right end) and the tree on its own at the right. */
  .scenery--road { --city-h: 24vh; --hills-h: 5vh; --city-x: calc(var(--city-h) * 7 / 3 * -0.6); }
  .statement__pin .plant[data-plant-tree] { height: 12vh; left: 92%; scale: 1 1; }

  /* By the numbers: start a little higher. */
  .badges.is-drifting .badges__sticky { padding-top: 9vh; }

  /* Price estimator: extras two to a row, no icons, the tick in the corner. */
  .est__main { gap: 2.6vh; }
  .est-route { gap: 4px; }
  .est-swap { justify-self: end; position: relative; z-index: 2; width: 30px; height: 30px; margin: 0 0 -34px; }
  .est-swap svg { width: 14px; height: 14px; }
  .est-step { margin-bottom: 1.4vh; }
  .est-opts__intro { margin: -0.6vh 0 1.6vh; font-size: 14.5px; }
  .est-opts__groups { gap: 2.2vh; }
  .est-group__title { margin-bottom: 1vh; }
  .est-group__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .est-opt { grid-template-columns: minmax(0, 1fr); padding: 10px 11px; row-gap: 2px; }
  .est-opt__icon { display: none; }
  .est-opt__body { padding-right: 18px; }
  .est-opt__name { font-size: 14.5px; }
  .est-opt__price { grid-column: 1; font-size: 11.5px; }
  .est-opt__check { top: 10px; margin-top: 0; right: 9px; width: 15px; height: 15px; }
  .est-opt--haz { grid-template-columns: 30px minmax(0, 1fr); }
  .est-opt--haz .est-opt__icon { display: grid; }
  .est-opt--haz .est-opt__price { grid-column: 2; }
  .est-included { margin-top: 2vh; gap: 6px; font-size: 12.5px; }
  .est-included__i { padding: 4px 9px; }
  /* The summary: no empty box where the line items will go. */
  .est-sum__items { min-height: 0; margin-top: 0; }
  .est-sum__items:not(:empty) { margin-top: 10px; }
  .est-sum__actions { margin-top: 14px; }
}

/* ------------------------------- 20. Reduced motion ---- */
/* Every effect above resolves to a static end state: the pinned
   sequence unpins into a normal stacked list, marquees become plain
   scrollers, and nothing loops or moves. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; transition-delay: 0ms !important;
  }
  .preloader { display: none; }
  .rise__i { transform: none !important; }
  .menu [data-menu-link] { opacity: 1 !important; transform: none !important; }
  .badge:nth-child(n) { transform: none !important; }

  /* The badge stage pins without moving anything, but 150vh of held
     scroll is disorienting on its own, so it unpins here too. */
  .badges { height: auto !important; }
  .badges__sticky { position: static !important; height: auto !important; padding: 12vh var(--pad); }

  .pinned { height: auto !important; }
  .pinned__inner { position: static !important; height: auto !important; display: block; }
  .pinned__stage { position: static; }
  .steps { position: static; display: grid; gap: 8vh; }
  .step { position: static; opacity: 1 !important; transform: none !important; pointer-events: auto; }
  .pinned__foot, .pinned__view { display: none; }
  .badges__kicker, .badges__title, .factstrip { position: static !important; transform: none !important; }
  .badges__sticky { flex-direction: column; gap: 4vh; }
  .statement { height: auto !important; }
  .statement__pin { position: static !important; height: auto !important; padding-bottom: 46vh; }

  .marquee { overflow-x: auto; }
  .marquee__track { animation: none !important; transform: none !important; }
  .quote p { white-space: normal; }
}

/* Contact form: the spam trap stays off screen; the "didn't send" line. */
.form__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__fail { flex-basis: 100%; padding: 10px 12px; border: 1.5px solid var(--sun); border-radius: 10px; background: rgba(232, 22, 31, 0.14); font-size: 14px; line-height: 1.45; }
.form__fail a { color: inherit; font-weight: 600; text-decoration: underline; }
#quote-form button[type="submit"]:disabled { opacity: 0.6; cursor: progress; }

.datalist a { color: inherit; text-decoration: none; }
.datalist a:hover { color: var(--sun); }

/* Price option groups: the title is a big row you click (or tap) to open, on every
   screen size. Closed groups still say how many of their options are added. */
.est-opts__groups { gap: 10px; }
.est-group__title { margin: 0; }
.est-group__toggle {
  all: unset;
  box-sizing: border-box; width: 100%; min-height: 64px; padding: 12px 16px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center;
  border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent); border-radius: 16px; cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.est-group__toggle:hover { border-color: color-mix(in srgb, var(--ink) 45%, transparent); background: color-mix(in srgb, var(--ink) 4%, transparent); }
.est-group__toggle:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
.est-group__name { grid-column: 1; font: 400 22px/1.1 var(--hand); color: var(--rust); }
.est-group__meta { display: block; grid-column: 1; font: 500 12.5px/1.3 var(--sans); color: var(--ink-45); margin-top: 2px; }
.est-group__count { color: var(--sun); }
.est-group__chev { display: block; grid-column: 2; grid-row: 1 / span 2; position: relative; width: 32px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.est-group__chev::before, .est-group__chev::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 2px; background: var(--ink); border-radius: 2px; transform: translate(-50%, -50%); transition: transform 0.3s var(--ease); }
.est-group__chev::after { transform: translate(-50%, -50%) rotate(90deg); }
.est-group.is-open .est-group__chev::after { transform: translate(-50%, -50%) rotate(0deg); }
.est-group.has-on .est-group__toggle { border-color: var(--rust); }
.est-group:not(.is-open) .est-group__grid { display: none; }
.est-group.is-open .est-group__grid { margin-top: 10px; }
/* Computers: the closed rows sit two across to save space; an opened group
   spreads the full width so its options keep their three-across layout. */
@media (min-width: 901px) {
  .est-opts__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .est-group.is-open { grid-column: 1 / -1; }
}

/* Phones: a tighter contact form. Name + phone, and pickup + delivery, share a row. */
@media (max-width: 900px) {
  .contact__details { margin-top: 2vh; gap: 6px; padding-block: 12px; }
  .contact__body { margin-top: 2vh; }
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 14px; }
  .form > .field { grid-column: auto; }
  .form > .field--wide, .form > .field--note, .form > .field--full { grid-column: 1 / -1; }
  .field label { margin-bottom: 2px; font-size: 12px; }
  .field input { padding: 7px 0; font-size: 16px; }
  .field input::placeholder { font-size: 14px; }
  .form__more { padding: 8px 0; }
  .form__hint { display: none; }
}

/* ---- Estimate panel, tidied (same footprint) ----
   Tighter trip numbers and notice give the price list room, so it isn't cut
   off mid-line; the list gets a small heading and fades at the bottom when it
   scrolls; the total stays inside the card; one full-width main button with
   the two small actions on a line beneath it. */
.est-sum { padding: 24px 22px 20px; }
.est-sum__k { font-size: 21px; line-height: 1; }
.est-sum__route { gap: 8px; margin-top: 12px; padding-bottom: 12px; }
.est-sum__stats { gap: 10px 12px; padding: 12px 0; }
.est-sum__stats dt { font-size: 10.5px; letter-spacing: 0.06em; }
.est-sum__stats dd { margin-top: 3px; font-size: 21px; white-space: nowrap; }
.est-sum__via { margin-top: 10px; }
.est-sum__items { min-height: 96px; margin-top: 12px; gap: 0; }
.est-sum__items:empty { min-height: 0; margin-top: 0; }
.est-sum__items:not(:empty)::before {
  content: "Price breakdown"; display: block; padding-bottom: 4px;
  font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55);
}
.est-sum__items li { padding: 6px 0; font-size: 13px; line-height: 1.3; align-items: baseline; }
.est-sum__items li:last-child { border-bottom: 0; }
.est-sum__items li small { margin-top: 1px; font-size: 11px; }
.est-sum__items.is-scroll:not(.at-end) {
  -webkit-mask-image: linear-gradient(#000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 32px), transparent);
}
.est-sum__total { margin-top: 12px; padding-top: 12px; align-items: flex-end; }
.est-sum__tlabel { padding-bottom: 4px; font-weight: 500; }
.est-sum__tval { font-size: clamp(38px, 3vw, 50px); white-space: nowrap; padding-right: 0.08em; }
.est-sum__range { margin-top: 6px; font-size: 12px; }
.est-sum__notice { gap: 9px; margin-top: 12px; padding: 10px 12px; border-width: 1px; border-radius: 10px; }
.est-sum__notice svg { width: 18px; height: 18px; margin-top: 0; }
.est-sum__notice p { font-size: 12px; line-height: 1.4; }
.est-sum__notice strong { margin-bottom: 2px; font-size: 15px; letter-spacing: 0.02em; }
.est-sum__actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-top: 14px; }
.est-sum__actions [data-send] { grid-column: 1 / -1; width: 100%; justify-content: center; }
.est-sum__actions [data-copy] { justify-self: start; }
.est-sum__actions .est-reset { justify-self: end; }
/* the cargo-type and hazmat cards above the option rows always span the full width */
.est-opts__groups > :not(.est-group) { grid-column: 1 / -1; }

/* ---- Hero: the logo is the headline ----
   A big logo with a short line under it in place of the old slogan. The small
   header logo fades in only once you scroll and the header compacts, so the two
   never show at once. */
.hero__brand { font-size: inherit; line-height: 0; }
.hero__logo { display: block; width: clamp(260px, 36vw, 600px); height: auto; margin: 0 auto; }
.hero__tag { position: relative; margin-top: 2.2vh; font-size: clamp(26px, 3.2vw, 54px); line-height: 1; letter-spacing: 0.01em; }
.header__logo { transition: height 0.55s var(--ease-out), opacity 0.4s var(--ease); }
.header:not(.is-compact) .header__logo,
.header.is-over-halo .header__logo { opacity: 0; pointer-events: none; }   /* no corner logo over the halo road scene */
@media (max-width: 900px) {
  .hero__logo { width: min(78vw, 360px); }
  .hero__tag { font-size: clamp(26px, 8vw, 38px); }
  .hero__points { gap: 4px 20px; }
}


/* ---- Light halo behind the road scene ----
   The Unicorn Studio scene (a glowing planet horizon with slow light rays)
   fills the whole pinned section, top to bottom and edge to edge, at full
   strength. It is screened onto the page's black, so the scene's own black
   matches the page exactly and there is no edge where the section starts.
   main.js sizes the planet so its rim sits just above the skyline. */
/* Toned down (opacity 0.35) so the scene sits back behind the words, city and tree. */
.statement__sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; mix-blend-mode: screen; opacity: 0.35; }
/* The fine stars: a second scene on top at full strength, across the full width. */
.statement__rays { position: absolute; inset: 0; pointer-events: none; overflow: hidden; mix-blend-mode: screen; }
.statement__rays-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.statement__halo { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The pinned scene needs a solid backing for the screen blend to work against;
   without one the scene's black shows as a dark band. */
.statement__pin { background: var(--paper); }
/* A soft dark shadow under the words so they stay easy to read over the beam. */
.statement__line, .statement__sub { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55); }
/* Until the scene starts (or if WebGL isn't available) a plain glow stands in
   for it: a soft blue rim of light low in the sky. The scene's canvas covers it. */
.statement__halo {
  background:
    radial-gradient(ellipse 70% 16% at 50% 66%, rgba(200, 220, 255, 0.35), transparent 70%),
    radial-gradient(ellipse 90% 55% at 50% 70%, rgba(40, 80, 150, 0.45), transparent 75%),
    #000;
}

/* ---- "Built for the long haul", tidied ----
   One headline across the top (a small handwritten label, then "Built for the
   long haul." with the last words in red), the truck and its ring centred
   below it, and the five notes in two even columns either side. The notes run
   in the same top-to-bottom order as the parts they point to, so the dashed
   leader lines stay short and never cross. Each note heading is a red number
   and a white title instead of one handwritten red line. */
.note__k { gap: 10px; font-size: clamp(15px, 1.1vw, 19px); }
.note__n { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 1.2em; line-height: 1; color: var(--rust); }
.note__h { font-family: var(--sans); font-weight: 600; color: var(--ink); white-space: nowrap; }
.stagecall__kicker { display: block; font-family: var(--hand); font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; line-height: 1; font-size: clamp(17px, 1.4vw, 24px); color: var(--rust); margin-bottom: 0.45em; }
.stagecall__l2 { color: var(--rust); }
@media (min-width: 901px) {
  .stagecall__title { top: 7vh; display: block; text-align: center; font-size: clamp(40px, 4.4vw, 84px); line-height: 0.95; }
  .stagecall__l1, .stagecall__l2 { position: static; display: inline; }
  .stagecall__br { display: none; }
  .stagecall__ring { top: 57%; width: min(58vh, 40vw); }
  .note { transform: translateY(-50%); }        /* each top is the note's middle */
  .note[data-anchor="sleeper"] { top: 36%; }
  .note[data-anchor="tank"]    { top: 56%; }
  .note[data-anchor="axle"]    { top: 76%; }
  .note[data-anchor="engine"]  { top: 45%; }
  .note[data-anchor="light"]   { top: 67%; }
}
@media (max-width: 900px) {
  /* phones: right-hand notes read "04 Engine" with the pin after, like the others */
  .note--r .note__k { flex-direction: row; justify-content: flex-start; }
  .note--r .note__pin { order: 3; }
  .note__h { white-space: normal; }
  .note { transform: none; }
}

/* ---------------------- 22. Get a quote on phones ---- */
/* The "Bigger map" button and the big map are for phones only. */
.est-map__expand, .est-map__close, .est-map__backdrop { display: none; }

@media (max-width: 900px) {
  /* The map runs edge to edge, with a "Bigger map" button on it. */
  .est-map { margin-inline: calc(-1 * var(--pad)); border-radius: 0; box-shadow: none; }
  .est-map__hud { padding: 8px var(--pad) 10px; }
  .est-mode { padding: 12px 10px; font-size: 15px; }
  .est-map__status { margin: 0 var(--pad) 12px; font-size: 12px; }
  .est-map__readout { margin: 0 var(--pad) 10px; }
  .est-map__expand {
    position: absolute; right: 10px; top: 10px; z-index: 6; display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px; border: 0; border-radius: var(--round); background: rgba(6, 6, 7, 0.82); color: #fff;
    font: 600 13px/1 var(--sans); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); backdrop-filter: blur(6px);
  }
  .est-map__expand svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

  /* The big map: over the whole page, turned on its side on an upright phone. */
  .est-map__backdrop.is-on { display: block; position: fixed; inset: 0; z-index: 600; background: #060607; }
  html.est-big-open, html.est-big-open body { overflow: hidden; }
  .est-map.is-full {
    position: fixed; left: 50%; top: 50%; z-index: 601; margin: 0; display: block; aspect-ratio: var(--ar);
    width: min(calc(100vw - 16px), calc((100vh - 16px) * 1.5619)); height: auto;
    width: min(calc(100vw - 16px), calc((100dvh - 16px) * 1.5619));
    transform: translate(-50%, -50%); border-radius: 14px;
  }
  .est-map.is-full.is-turned {
    width: min(calc(100vh - 24px), calc((100vw - 16px) * 1.5619));
    width: min(calc(100dvh - 24px), calc((100vw - 16px) * 1.5619));
    transform: translate(-50%, -50%) rotate(90deg);
  }
  .est-map.is-full::before { display: none; }
  .est-map.is-full canvas { inset: 0; height: 100%; }
  .est-map.is-full .est-map__fx { touch-action: none; }
  .est-map.is-full .est-map__hud { position: absolute; left: 10px; top: 10px; right: auto; padding: 0; }
  .est-map.is-full .est-map__modes { width: auto; }
  .est-map.is-full .est-mode { flex: none; padding: 9px 14px; }
  .est-map.is-full .est-map__status, .est-map.is-full .est-map__expand { display: none; }
  .est-map.is-full .est-map__readout { position: absolute; left: 10px; bottom: 10px; margin: 0; }
  .est-map.is-full .est-map__close {
    display: block; position: absolute; right: 10px; top: 10px; z-index: 6; padding: 11px 20px; border: 0;
    border-radius: var(--round); background: var(--sun); color: #fff; font: 600 15px/1 var(--sans);
  }

  /* Bigger type and taps, tight spacing. */
  .est__main { gap: 22px; }
  .est-field__label { margin-bottom: 7px; font-size: 14px; }
  .est-field__box { padding: 7px 8px; }
  .est-field__badge { width: 34px; height: 34px; font-size: 17px; }
  .est-field input { font-size: 17px; padding: 9px 0; }
  .est-field__more { margin-top: 8px; gap: 6px; }
  .est-field__hub { font-size: 14px; }
  .est-locate { font-size: 14px; padding: 8px 10px; }
  .est-step { margin-bottom: 12px; font-size: 30px; }
  .est-step span { font-size: 19px; }
  .est-seg button { padding: 13px 10px; font-size: 19px; }
  .est-seg button small { font-size: 13px; }
  .est-input { font-size: 14px; gap: 6px; }
  .est-input input { font-size: 18px; }
  .est-input select { font-size: 15px; }
  .est-opts__intro { margin: -4px 0 12px; font-size: 15px; }
  .est-opts__groups { gap: 8px; }
  .est-group__toggle { min-height: 58px; padding: 10px 14px; }
  .est-group__name { font-size: 24px; }
  .est-group__meta { font-size: 13.5px; }
  .est-group.is-open .est-group__grid { margin-top: 8px; }

  /* The extras: two to a row, bigger names and prices, a clear tick. */
  .est-group__grid { gap: 8px; }
  .est-opt { padding: 13px 12px 12px; row-gap: 5px; min-height: 74px; align-content: start; }
  .est-opt__body { padding-right: 26px; }
  .est-opt__name { font-size: 17.5px; line-height: 1.02; }
  .est-opt__price { font-size: 14px; }
  .est-opt__check { top: 11px; right: 10px; width: 22px; height: 22px; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ink) 40%, transparent); }
  .est-opt-wrap { border-radius: 14px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 32%, transparent); }
  .est-opt-wrap:hover { transform: none; }
  .est-opt__desc { font-size: 13.5px; }
  .est-qty { margin: 0 10px 10px; font-size: 14px; }
  .est-qty button { width: 36px; height: 36px; }
  .est-included { font-size: 13.5px; }

  /* The estimate */
  .est-sum { padding: 20px 18px 18px; }
  .est-sum__k { font-size: 24px; }
  .est-sum__stats dt { font-size: 11.5px; }
  .est-sum__stats dd { font-size: 23px; }
  .est-sum__items li { font-size: 14px; }
  .est-sum__range { font-size: 13px; }
  .est-sum__notice p { font-size: 13px; }
}

/* An opened extra with a box under it (declared value, number of stops)
   stays inside its own column. */
.est-opt-wrap { min-width: 0; }
.est-qty--value input { width: 100%; }
@media (max-width: 900px) {
  /* declared value: the label sits over the number so the whole number fits */
  .est-qty--value { flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 12px; border-radius: 12px; }
  .est-qty--value span { flex: none; font-size: 12.5px; }
  .est-qty--value input { font-size: 18px; }
}
