/* Straightshot Freight Co. splash page. Brand values come from tokens.css; this file is layout and components. */

:root {
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --m: max(var(--gutter), (100% - var(--max)) / 2); /* left edge of .wrap, for full-bleed grids */
  --section: clamp(80px, 10vw, 160px);
  --body: 1.125rem;
  --bar-h: 80px; /* sticky brand bar */
  --callbar-h: 0px; /* bottom call bar, phones only */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-bottom: var(--callbar-h); } /* focus never lands under the call bar */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--asphalt);
  font-family: var(--font-sans);
  font-size: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
a[href^="tel:"], a[href^="sms:"] { white-space: nowrap; }
a, button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--flare); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--bar-h) + 16px + var(--dd-bar-h, 0px)); } /* sticky bar + 16px, below the Durendal bar if any */
section[id] { scroll-margin-top: calc(var(--bar-h) + var(--dd-bar-h, 0px)); } /* sections land flush under the bar */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.ss-display { letter-spacing: -.02em; }
.ss-code { font-size: .875rem; } /* tokens set 12px; 14px keeps mono labels readable */
@media (max-width: 719px) { .ss-code { letter-spacing: .04em; } }

.skip { position: absolute; left: 12px; top: -200px; z-index: 20; padding: 12px 18px; background: var(--flare); color: var(--asphalt); font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border: 2px solid transparent; border-radius: var(--radius);
  font: inherit; font-size: 1rem; font-weight: 800; font-stretch: 110%; line-height: 1.1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  position: relative; isolation: isolate;
  transform: translateY(calc(var(--prs) * 2px));
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform var(--t-out) var(--ease-out);
}
.btn:active { transition-duration: .15s, .15s, .15s, var(--t-in); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--steel); border-color: var(--steel); color: var(--concrete); cursor: not-allowed; transform: none; }
.btn--flare { background: var(--flare); color: var(--asphalt); }
.btn--ink { background: var(--asphalt); color: var(--chalk); }
.btn--line { border-color: var(--asphalt); color: var(--asphalt); background: transparent; }
.btn--big { min-height: 56px; padding: 0 30px; font-size: 1.125rem; }
/* Arrow link. One line box for label and arrow (no flex: flex split them into two items, each with its own underline, with an
   un-underlined gap between). The label wraps like text; padding makes the 44px target around one line. */
.go {
  display: inline-block; padding-block: 9px; padding-block: calc((44px - 1lh) / 2);
  font-weight: 750; font-stretch: 110%;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .28em;
}
/* The arrow is drawn: Google's Archivo latin subset has no U+2192, so the glyph fell back to a thin system arrow.
   The box holds only a word joiner, so it never wraps away from the last word and carries no underline;
   the arrow sits on Archivo's arrow axis with a 2px stroke like the underline. The box is 1.4em, as wide as the old
   gap + glyph so nothing beside it moves: .25em gap, .84em arrow, the rest is room to travel on hover. */
.go::after {
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 56'%3E%3Cpath d='M0 28h75.5M58 10.5 75.5 28 58 45.5' fill='none' stroke='%23000' stroke-width='12'/%3E%3C/svg%3E");
  content: "\2060"; content: "\2060" / "";
  padding-left: 1.4em;
  background: currentColor;
  -webkit-mask: var(--arrow) .25em .34em / .84em .56em no-repeat;
          mask: var(--arrow) .25em .34em / .84em .56em no-repeat;
  forced-color-adjust: none; /* keeps the arrow in the link colour in Windows high-contrast mode */
  -webkit-mask-position: calc(.25em + var(--hov) * 4px + var(--prs) * 1px) .34em;
          mask-position: calc(.25em + var(--hov) * 4px + var(--prs) * 1px) .34em;
  transition: -webkit-mask-position 160ms var(--ease-out), mask-position 160ms var(--ease-out);
}

/* ---------- Control motion ----------
   --hov and --prs are 0 or 1. Hover only where a mouse can hover; press always, so touch gets the same move.
   Only transform, clip-path and mask-position animate, so nothing reflows. Reduced motion lands each state instantly. */
.btn, .go, .menu__toggle, .menu__nav a {
  --hov: 0; --prs: 0;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); /* moves on the first frame, settles flat, no overshoot */
  --t-in: 70ms; --t-out: 160ms;
}
@media (hover: hover) { .btn:hover, .go:hover, .menu__toggle:hover, .menu__nav a:hover { --hov: 1; } }
.btn:active, .go:active, .menu__toggle:active, .menu__nav a:active { --hov: 1; --prs: 1; }
.menu__nav a[aria-current] { --hov: 1; } /* current section (set on scroll): the hover bar stays drawn */
@media (max-width: 959px) { .menu__nav a[aria-current] { color: var(--flare); } }
.btn:disabled, .btn[aria-disabled="true"] { --hov: 0; --prs: 0; }

/* Flare and outline buttons: the hover fill sweeps in behind a 10deg edge, carrying a copy of the label in the hover
   colour, so the label changes colour exactly at the edge. --sx is 10deg across the button height. */
.btn--flare[data-label], .btn--line[data-label] { --sx: 9.2px; }
.btn--big[data-label] { --sx: 10.6px; }
.btn--flare[data-label]::after, .btn--line[data-label]::after {
  content: attr(data-label); content: attr(data-label) / "";
  position: absolute; inset: -2px; border-radius: inherit;
  display: flex; align-items: center; justify-content: center;
  background: var(--fill); color: var(--ink);
  clip-path: polygon(0 0, calc(var(--hov) * (100% + var(--sx))) 0, calc(var(--hov) * (100% + var(--sx)) - var(--sx)) 100%, 0 100%);
  transition: clip-path 200ms var(--ease-out);
}
.btn--flare { --fill: var(--ember); --ink: var(--chalk); }
.btn--line { --fill: var(--asphalt); --ink: var(--chalk); }
.btn[data-label]:active::after { transition-duration: 90ms; }

/* Dark button: the mark's middle bar, 45deg nose, shoots in under the label. */
.btn--ink { overflow: hidden; --bx: 20px; }
.btn--ink::after {
  content: ""; position: absolute; left: var(--bx); right: var(--bx); bottom: 7px; height: 5px;
  background: var(--flare);
  clip-path: polygon(0 0, calc(100% - 2.5px) 0, 100% 50%, calc(100% - 2.5px) 100%, 0 100%);
  transform: translateX(calc((1 - var(--hov)) * (-100% - var(--bx) - 4px)));
  transition: transform 220ms var(--ease-out);
}
.btn--ink:active::after { transition-duration: 90ms; }

/* Arrow link: the arrow travels 4px (5px on press) inside the room its box already has. */
.go { --go-hi: var(--flare); transform: translateY(calc(var(--prs) * 1px)); transition: transform var(--t-out) var(--ease-out), text-decoration-color 160ms ease; }
.go:active { transition-duration: var(--t-in), 160ms; text-decoration-color: var(--go-hi); }
.site-footer .go { --go-hi: var(--asphalt); } /* Flare ground: a Flare underline would vanish */

@media (hover: hover) {
  /* Buttons without a label copy keep the plain colour change. */
  .btn--flare:not([data-label]):hover { background: var(--ember); color: var(--chalk); }
  .btn--line:not([data-label]):hover { background: var(--asphalt); color: var(--chalk); }
  .go:hover { text-decoration-color: var(--go-hi); }
}

/* ---------- Utility bar + header ---------- */
/* Sticky: the 44px utility bar scrolls away, the brand bar stays. Below 960px the utility bar is gone (the bottom call
   bar carries dispatch) and the brand bar is 64px. */
.site-header { position: sticky; top: calc(var(--dd-bar-h, 0px) - 44px); z-index: 5; background: var(--chalk); box-shadow: 0 1px 0 var(--guardrail); }
.util { height: 44px; background: var(--asphalt); color: var(--concrete); }
.util__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.util__live { display: flex; align-items: center; gap: 10px; color: var(--guardrail); }
.util__live::before {
  content: ""; width: 9px; height: 9px; background: var(--flare);
  transform: skewX(calc(var(--slant) * -1));
  animation: live 2.4s ease-in-out infinite;
}
@keyframes live { 50% { opacity: .3; } }
.util__links { display: flex; gap: 0 24px; }
.util__links a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
@media (hover: hover) { .util__links a:hover { text-decoration: underline; } }
@media (max-width: 599px) { .hide-sm { display: none; } }
.show-sm { display: none; }
@media (max-width: 599px) { .show-sm { display: inline; } }

.bar { display: flex; align-items: center; gap: 12px 20px; min-height: var(--bar-h); }
@media (max-width: 959px) {
  :root { --bar-h: 64px; --callbar-h: 56px; }
  .util { display: none; }
  .site-header { top: var(--dd-bar-h, 0px); }
  .bar .brand { padding: 10px 0; }
}
@media (min-width: 960px) { .menu__track { display: none; } } /* the utility bar has it */
.brand { display: block; margin-right: auto; padding: 14px 0; color: var(--asphalt); }
.brand svg { width: clamp(170px, 19vw, 256px); height: auto; }

.menu { order: 3; }
.bar__cta { order: 2; }
.menu__toggle {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px;
  border: 2px solid var(--asphalt); border-radius: var(--radius);
  font-weight: 800; font-stretch: 110%; cursor: pointer; list-style: none;
  --open: 0;
  transform: translateY(calc(var(--prs) * 2px)); transition: transform var(--t-out) var(--ease-out);
}
.menu__toggle:active { transition-duration: var(--t-in); }
.menu__toggle::-webkit-details-marker { display: none; }
/* Three stacked bars. Hover leans the stack forward: the top bar travels furthest, the middle half as far, the bottom
   stays put. Open folds the outer bars into a close cross and fires the middle bar out. */
.menu__bars { position: relative; flex: none; width: 18px; height: 3px; margin-right: 6px; }
.menu__bars::before, .menu__bars::after, .menu__bars > i {
  content: ""; position: absolute; inset: 0; background: currentColor;
  transition: transform 180ms var(--ease-out), opacity 180ms var(--ease-out);
}
.menu__bars::before { transform: translate(calc((1 - var(--open)) * var(--hov) * 6px), calc((1 - var(--open)) * -6px)) rotate(calc(var(--open) * 45deg)); }
.menu__bars > i { transform: translateX(calc((1 - var(--open)) * var(--hov) * 3px + var(--open) * 14px)); opacity: calc(1 - var(--open)); transition-delay: 30ms; }
.menu__bars::after { transform: translateY(calc((1 - var(--open)) * 6px)) rotate(calc(var(--open) * -45deg)); transition-delay: 60ms; }
.menu[open] > .menu__toggle { --open: 1; }
.menu[open] .menu__toggle { background: var(--asphalt); color: var(--chalk); }
.menu:not([open]) > .menu__nav { display: none; }
.menu__nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--asphalt); padding: 8px var(--gutter) 28px; }
.menu__nav a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--tarmac);
  color: var(--chalk); text-decoration: none;
  font-size: 1.875rem; font-weight: 900; font-style: italic; font-stretch: 125%; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.1;
}
@media (max-width: 959px) { .menu__nav { border-bottom: 3px solid var(--flare); } } /* edge against dark sections */
@media (max-width: 559px) { .bar__cta { display: none; } }
/* Phone menu quote link: Flare block like the bar button. Ink stays Asphalt even when it is the current section. */
.menu__nav .menu__quote a { margin-top: 20px; padding: 14px 16px; border: 0; border-radius: var(--radius); background: var(--flare); color: var(--asphalt); }
@media (min-width: 560px) { .menu__quote { display: none; } } /* the bar button covers it from here up */
@media (min-width: 960px) {
  .menu { order: 2; }
  .bar__cta { order: 3; }
  .menu__toggle { display: none; }
  .menu__nav { position: static; background: none; padding: 0; }
  .menu__nav ul { display: flex; gap: 4px; }
  .menu__nav a {
    display: flex; align-items: center; min-height: 44px; padding: 0 12px; border: 0;
    color: var(--asphalt); font-size: 1rem; font-weight: 650; font-style: normal; font-stretch: 110%; text-transform: none; letter-spacing: 0;
    position: relative; text-decoration: none;
    transform: translateY(calc(var(--prs) * 1px)); transition: transform var(--t-out) var(--ease-out);
  }
  .menu__nav a:active { transition-duration: var(--t-in); }
  /* A Flare bar with the mark's nose: in from the left, out to the right. */
  .menu__nav a::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 7px; height: 3px; background: var(--flare);
    clip-path: polygon(0 0, calc(100% - 1.5px) 0, 100% 50%, calc(100% - 1.5px) 100%, 0 100%);
    transform: scaleX(var(--hov)); transform-origin: calc((1 - var(--hov)) * 100%) 50%;
    transition: transform 200ms var(--ease-out);
  }
}
@media (max-width: 959px) { .menu__nav a:active { color: var(--flare); } }

/* ---------- Hero ---------- */
.hero { background: var(--concrete); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero__copy { container-type: inline-size; padding: clamp(36px, 6vw, 72px) var(--gutter) clamp(40px, 6vw, 64px); }
.hero__lead {
  display: flex; align-items: center; gap: 14px; margin-bottom: clamp(12px, 1.6vw, 20px);
  font-size: clamp(1.125rem, 1.7vw, 1.5rem); font-weight: 800; font-stretch: 115%;
}
.hero__lead::before { /* the mark's middle bar: 10deg tail, 45deg nose */
  content: ""; flex: none; width: 44px; height: 12px; background: var(--flare);
  clip-path: polygon(2.1px 0, 38px 0, 44px 6px, 38px 12px, 0 12px);
}
.hero__title { font-size: min(14.6cqi, 7.5rem); }
.hero__sub { max-width: 40ch; margin-top: clamp(20px, 2.4vw, 32px); font-size: clamp(1.125rem, 1.35vw, 1.25rem); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3.4vw, 44px); }
.hero__drive { margin-top: 20px; }
/* Phones: a tighter stack so the rig shows on the first screen. */
@media (max-width: 719px) {
  .hero__copy { padding-block: 20px 14px; }
  .hero__lead { margin-bottom: 8px; }
  .hero__sub { margin-top: 12px; }
  .hero__actions { margin-top: 20px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__drive { margin-top: 4px; }
}

.hero__photo { position: relative; height: clamp(240px, 58vw, 460px); margin-left: 48px; }
.hero__stripe, .cut { position: absolute; top: 0; bottom: 0; transform: skewX(calc(var(--slant) * -1)); transform-origin: 0 100%; }
.hero__stripe { left: -48px; width: 36px; background: var(--flare); } /* bar 3 : gap 1, as in the mark */
.cut { left: 0; right: 0; overflow: hidden; }
.cut__art { position: absolute; inset: 0; background: var(--tarmac); transform: skewX(var(--slant)); transform-origin: 0 100%; }
.rig { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 82%; }
.cap { position: absolute; top: 16px; right: 16px; max-width: 60%; color: var(--guardrail); text-align: right; }
@media (max-width: 719px) {
  .hero__photo { height: clamp(200px, 56vw, 300px); }
  .rig { object-position: 50% 100%; } /* the rig sits low in the frame: keep it near the top of the box */
}

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); padding-left: var(--m); min-height: 660px; }
  .hero__copy { padding: clamp(56px, 6vw, 88px) 64px clamp(48px, 5vw, 72px) 0; align-self: center; }
  .hero__photo { height: auto; margin-left: 0; }
  .cap { top: 24px; right: 24px; }
}

/* ---------- Proof strip ---------- */
.proof { background: var(--asphalt); color: var(--chalk); }
.proof__list { display: grid; gap: 1px; background: var(--tarmac); }
.stat { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; background: var(--asphalt); }
.stat__num { color: var(--flare); font-size: min(11vw, 3rem); white-space: nowrap; }
.stat__num span { margin-left: .14em; font-size: .4em; letter-spacing: 0; }
.stat__label { white-space: nowrap; color: var(--guardrail); text-align: right; }
@media (min-width: 720px) {
  .proof__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { display: block; padding: 32px 24px 36px; }
  .stat:first-child { padding-left: 0; }
  .stat__num { font-size: clamp(1.875rem, 4.6vw, 3rem); } /* three across: sized so "16,500 lb" fits a third */
  .stat__label { margin-top: 12px; text-align: left; }
}
@media (min-width: 1100px) {
  .proof__list { display: flex; justify-content: space-between; background: none; }
  .stat, .stat:nth-child(odd) { padding: 36px 0 44px; }
  .stat__num { font-size: clamp(3.75rem, 6.2vw, 6rem); }
}

/* ---------- Shared section type ---------- */
.h2 { font-size: min(12.8cqi, 4.5rem); }
.statement {
  max-width: 24ch; margin-top: clamp(16px, 2vw, 24px);
  font-size: clamp(1.5rem, 2.2vw, 1.875rem); font-weight: 700; font-stretch: 105%; line-height: 1.2; letter-spacing: -.01em;
}

/* ---------- Services ---------- */
.services { padding-block: var(--section); }
.services__grid { display: grid; gap: 40px 64px; }
.services__head { container-type: inline-size; }
.services__ph { display: none; }

.services__call { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 20px; font-weight: 600; }
.svc { border-top: 3px solid var(--asphalt); }
.svc__item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 6px 20px; padding: 28px 0 30px; border-bottom: 1px solid var(--guardrail); }
.svc__icon { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: square; stroke-linejoin: miter; }
.svc__icon .ic-a { stroke: var(--flare); }
.svc__title, .route__title, .drivers__title { font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: .95; }
.svc__body p { max-width: 52ch; margin-top: 12px; }
@media (min-width: 800px) {
  .svc__item { grid-template-columns: 64px minmax(0, 1fr) auto; column-gap: 28px; }
  .svc__icon { width: 64px; height: 64px; }
}
@media (min-width: 1100px) {
  .services__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .services__head { position: sticky; top: calc(var(--bar-h) + 32px + var(--dd-bar-h, 0px)); }
  .services__ph { display: block; margin-top: 40px; aspect-ratio: 1024 / 688; overflow: hidden; background: var(--tarmac); }
  .services__ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
}

/* ---------- Equipment ---------- */
.equipment { padding-block: var(--section); background: var(--concrete); }
.equipment__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 64px; }
.equipment__head { container-type: inline-size; }
.equipment__head .statement { max-width: 22ch; }
@media (min-width: 1100px) { .equipment__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }

.spec { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: .875rem; line-height: 1.45; }
.spec thead th {
  padding: 0 16px 12px 0; border-bottom: 3px solid var(--asphalt);
  color: var(--steel); font-size: .875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-align: left; white-space: nowrap;
}
.spec tbody th, .spec td { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--guardrail); text-align: left; vertical-align: top; }
.spec tbody th { font-weight: 700; white-space: nowrap; }
.spec tbody th::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; background: var(--flare); transform: skewX(calc(var(--slant) * -1)); }
.spec td[data-label="Payload"] { font-weight: 700; white-space: nowrap; }
@media (max-width: 859px) {
  .spec thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .spec, .spec tbody, .spec tr, .spec tbody th, .spec td { display: block; }
  .spec tr { margin-bottom: 12px; padding: 4px 16px 6px; background: var(--chalk); }
  .spec tbody th { padding: 14px 0 12px; border-bottom: 3px solid var(--asphalt); font-size: 1rem; }
  .spec td { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; padding: 11px 0; }
  .spec td::before { content: attr(data-label); padding-top: 1px; color: var(--steel); font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; }
  .spec td:last-child { border-bottom: 0; }
}
@media (min-width: 560px) and (max-width: 859px) {
  .spec tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .spec tr { margin: 0; }
}

.equipment__foot { display: grid; gap: 2px; margin-top: clamp(48px, 6vw, 80px); }
@media (min-width: 900px) { .equipment__foot { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.ph { position: relative; min-height: 280px; overflow: hidden; background: var(--tarmac); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph .cap { top: auto; right: auto; bottom: 18px; left: 20px; text-align: left; }
.drivers { padding: clamp(28px, 4vw, 48px); background: var(--asphalt); color: var(--concrete); }
.drivers__title { color: var(--chalk); }
.drivers > p { margin-top: 16px; }
.checks { margin: 20px 0 28px; }
.checks li { display: flex; gap: 14px; padding: 10px 0; border-top: 1px solid var(--tarmac); }
.checks li::before { content: ""; flex: none; width: 18px; height: 8px; margin-top: .6em; background: var(--flare); clip-path: polygon(1.4px 0, 14px 0, 18px 4px, 14px 8px, 0 8px); }

/* ---------- How it works: one straight line ---------- */
.how { padding-block: var(--section); background: var(--asphalt); color: var(--concrete); }
.how__head { container-type: inline-size; }
.how .h2 { color: var(--chalk); }
.route { position: relative; display: grid; gap: 48px; margin-top: clamp(48px, 6vw, 88px); padding-left: 44px; counter-reset: step; }
.route::before { /* the mark's middle bar: 10deg tail, 45deg nose. Vertical on phones, nose pointing down */
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 16px; background: var(--flare);
  clip-path: polygon(0 2.8px, 100% 0, 100% calc(100% - 8px), 50% 100%, 0 calc(100% - 8px));
}
.route__step { position: relative; counter-increment: step; }
.route__step::after { /* station marker on the line */
  content: ""; position: absolute; top: 14px; left: -44px; width: 16px; height: 16px; background: var(--chalk);
}
.route__step::before {
  content: counter(step); display: block; margin-bottom: 10px; color: var(--flare);
  font-size: clamp(3.75rem, 6vw, 4.5rem); font-weight: 900; font-style: italic; font-stretch: 125%; line-height: .85; letter-spacing: -.02em;
}
.route__log { margin-bottom: 14px; color: var(--guardrail); }
.route__log time { color: var(--flare); }
.route__title { color: var(--chalk); }
.route__step > p:last-child { max-width: 34ch; margin-top: 14px; }
@media (min-width: 900px) {
  .route { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 64px 0 0; }
  .route::before { right: 0; bottom: auto; width: auto; height: 16px; clip-path: polygon(2.8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%); }
  .route__step::after { top: -64px; left: 0; }
}

/* Scroll-driven timeline: as the section scrolls through, the bar draws from its tail to its nose and each stop
   arrives in order (06:12, 07:40, 11:55). Enhancement only: without support, or with reduced motion, the finished
   state shows. --route-p is the drawn share of the bar, so the 45deg nose keeps its shape while it travels. */
@property --route-p { syntax: "<number>"; inherits: false; initial-value: 1; }
@property --stop-y { syntax: "<length>"; inherits: true; initial-value: 0px; } /* inherited so the station marker can cancel its step's rise and stay on the line */
.route::before { clip-path: polygon(0 2.8px, 100% 0, 100% calc(var(--route-p) * 100% - 8px), 50% calc(var(--route-p) * 100%), 0 calc(var(--route-p) * 100% - 8px)); }
@media (min-width: 900px) {
  .route::before { clip-path: polygon(2.8px 0, calc(var(--route-p) * 100% - 8px) 0, calc(var(--route-p) * 100%) 50%, calc(var(--route-p) * 100% - 8px) 100%, 0 100%); }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .route { view-timeline: --route block; }
    .route::before { animation: route-draw linear both; animation-timeline: --route; animation-range: cover 8% cover 46%; }
    .route__step { transform: translateY(var(--stop-y)); animation: route-stop linear both; animation-timeline: --route; }
    .route__step::after { transform: translateY(calc(-1 * var(--stop-y))); }
    .route__step:nth-child(1) { animation-range: cover 8% cover 18%; }
    .route__step:nth-child(2) { animation-range: cover 21% cover 31%; }
    .route__step:nth-child(3) { animation-range: cover 34% cover 44%; }
  }
}
@keyframes route-draw { from { --route-p: .03; } to { --route-p: 1; } }
@keyframes route-stop { from { opacity: 0; --stop-y: 14px; } to { opacity: 1; --stop-y: 0px; } }

/* ---------- Coverage ---------- */
.coverage { padding-block: var(--section); }
.coverage__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px 64px; }
.coverage__copy { container-type: inline-size; }
.coverage__copy > p:not(.statement) { max-width: 46ch; margin-top: 20px; }
.ranges { margin-top: 32px; border-top: 3px solid var(--asphalt); }
.ranges div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--guardrail); }
.ranges dt { padding-top: 4px; font-weight: 700; }
.map { min-width: 0; background: var(--asphalt); }
.map__bar { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; background: var(--asphalt); color: var(--concrete); }
/* The map keeps a readable minimum width and scrolls inside its own box on small phones; the page never scrolls sideways. */
.map__scroll { overflow-x: auto; }
.map__art { position: relative; min-width: 620px; }
.map__art img { display: block; width: 100%; height: auto; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__labels text {
  paint-order: stroke; stroke: var(--asphalt); stroke-width: 6px; stroke-linejoin: round; fill: var(--chalk);
  font-family: var(--font-mono); font-size: 24px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
}
.map__labels .map__mi { fill: var(--dust); font-weight: 700; }
.map__labels .map__ring { fill: var(--guardrail); font-size: 18px; }
.map__labels .map__hub { font-weight: 700; }
@media (min-width: 960px) { .coverage__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; } }

/* ---------- Quote ---------- */
.quote { padding-block: var(--section); background: var(--asphalt); color: var(--concrete); }
.quote__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px 64px; }
.quote__copy { container-type: inline-size; }
.quote .h2 { color: var(--chalk); }
.quote__phone { margin-top: 32px; }
.quote__phone span { display: block; color: var(--guardrail); font-weight: 600; }
.quote__phone a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; color: var(--flare); font-size: min(9cqi, 3rem); text-decoration: none; }
@media (hover: hover) { .quote__phone a:hover { text-decoration: underline; text-decoration-thickness: 3px; } }
/* minmax(0, 1fr): an auto track grows to the date picker's intrinsic width and pushed the form past a 320px screen. */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: start; padding: clamp(20px, 3vw, 40px); background: var(--tarmac); }
.field { min-width: 0; }
.field label {
  display: block; margin-bottom: 8px; color: var(--concrete);
  font-family: var(--font-mono); font-size: .875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
/* Dark fields on the Tarmac panel: Asphalt well, Guardrail edge (4.9:1 on Tarmac), Flare edge on focus and error. */
.field input, .field textarea {
  width: 100%; min-width: 0; min-height: 52px; padding: 12px 14px;
  border: 1px solid var(--guardrail); border-radius: var(--radius);
  background: var(--asphalt); color: var(--chalk); color-scheme: dark; font: inherit; font-size: var(--body);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 112px; resize: vertical; line-height: 1.45; }
.field ::placeholder { color: var(--guardrail); opacity: 1; } /* 7.9:1 on Asphalt */
.field input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .85; }
.field :is(input, textarea):focus-visible { outline: 0; border-color: var(--flare); box-shadow: 0 0 0 1px var(--flare); }
.field [aria-invalid="true"] { border-color: var(--flare); box-shadow: inset 4px 0 0 var(--flare); }
.field [aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 1px var(--flare), inset 4px 0 0 var(--flare); }
.field__error { display: flex; gap: 10px; margin-top: 8px; color: var(--dust); font-size: 1rem; font-weight: 600; line-height: 1.35; }
.field__error::before { content: ""; flex: none; width: 18px; height: 8px; margin-top: .4em; background: var(--flare); clip-path: polygon(1.4px 0, 14px 0, 18px 4px, 14px 8px, 0 8px); }
.field__error[hidden] { display: none; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.form__note { max-width: 32ch; color: var(--guardrail); font-size: 1rem; line-height: 1.4; }
.form[hidden] { display: none; }

/* Confirmation, shown in place of the form after a valid submit */
.done { padding: clamp(20px, 3vw, 40px); background: var(--tarmac); border-top: 5px solid var(--flare); }
.done[hidden] { display: none; }
.done__title { color: var(--chalk); font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: .95; }
.done__title:focus { outline: 0; }
.done > p { max-width: 46ch; margin-top: 16px; }
.done__list { margin-top: 24px; border-top: 1px solid var(--steel); }
.done__list div { display: grid; gap: 2px 16px; padding: 12px 0; border-bottom: 1px solid var(--steel); }
@media (min-width: 480px) { .done__list div { grid-template-columns: 9rem minmax(0, 1fr); } }
.done__title { scroll-margin-top: calc(var(--bar-h) + 48px + var(--dd-bar-h, 0px)); }
.done__list dt { color: var(--guardrail); }
.done__list dd { color: var(--chalk); font-weight: 700; overflow-wrap: anywhere; }
.done__call a { color: var(--chalk); font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; text-decoration-thickness: 2px; }
.done .btn { margin-top: 24px; }
.btn--line-dark { border-color: var(--chalk); color: var(--chalk); background: transparent; }
@media (hover: hover) { .btn--line-dark:hover { background: var(--chalk); color: var(--asphalt); } }

/* ---------- Bottom call bar: phones and tablets only ---------- */
.callbar { display: none; }
@media (max-width: 959px) {
  body { padding-bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom, 0px)); }
  .callbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; z-index: 6; left: 0; right: 0; bottom: 0;
    height: calc(var(--callbar-h) + env(safe-area-inset-bottom, 0px));
    padding: 0 var(--gutter) env(safe-area-inset-bottom, 0px);
    background: var(--asphalt); color: var(--chalk); border-top: 3px solid var(--flare); text-decoration: none;
  }
  .callbar__label { display: flex; align-items: center; gap: 10px; font-weight: 800; font-stretch: 110%; }
  .callbar__label::before {
    content: ""; width: 9px; height: 9px; background: var(--flare);
    transform: skewX(calc(var(--slant) * -1)); animation: live 2.4s ease-in-out infinite;
  }
  .callbar__num { color: var(--flare); letter-spacing: .02em; }
}
@media (min-width: 560px) { .form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field--full { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .quote__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

/* ---------- Footer: one full field of Flare, logo one-colour Asphalt ---------- */
.site-footer { padding-top: clamp(64px, 8vw, 120px); background: var(--flare); color: var(--asphalt); }
.site-footer :focus-visible { outline-color: var(--asphalt); }
.footer__top { display: grid; gap: 56px; }
.footer__brand { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px 56px; }
.footer__logo { width: clamp(300px, 34vw, 480px); height: auto; color: var(--asphalt); --ss-accent: currentColor; }
.footer__tag { font-size: clamp(2.25rem, 6vw, 6rem); }
.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.footer__h { margin-bottom: 6px; }
@media (max-width: 479px) { .footer__cols > div:first-child { grid-column: 1 / -1; } }
.footer__cols p { font-weight: 600; }
.footer__cols a:not(.go) { display: inline-flex; align-items: center; min-height: 44px; text-decoration-thickness: 2px; }
.footer__ids { font-size: .875rem; line-height: 1.8; }
.footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: clamp(56px, 7vw, 96px); padding: 20px 0 28px; border-top: 2px solid var(--asphalt);
  font-size: .875rem; font-weight: 600;
}
@media (min-width: 1024px) {
  .footer__top { gap: 80px; }
  .footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
}

/* ---------- Motion: only the live-dispatch pulse and control feedback ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
