/* AM Home Delivery homepage.
   Every size is in rem. The root font size is fixed at 16px up to a 1600px-wide
   window and then grows with the window (1vw), so the whole layout scales up
   proportionally on oversized screens instead of stretching or leaving gaps. */

:root {
  --ink: #04090f;
  --deep: #071426;
  --navy: #001f44;
  --line: rgba(255, 255, 255, 0.12);
  --red: #c0212d;
  --red-hot: #e8404b;
  --paper: #f4f1ea;
  --text: #c5cedc;
  --mute: #93a1b8;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --pad: clamp(1.25rem, 5vw, 5rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

html { font-size: 16px; scroll-behavior: smooth; }
@media (min-width: 1600px) { html { font-size: 1vw; } }

* { box-sizing: border-box; margin: 0; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* film grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 11.25rem;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 0.125rem solid var(--red-hot); outline-offset: 0.1875rem; }

h1, h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: 0.9; letter-spacing: -0.008em; }
h1 { font-size: min(clamp(3.75rem, 12.5vw, 13rem), 19svh); } /* also bounded by window height so the hero always fits */
h2 { font-size: clamp(2.75rem, 7vw, 6.75rem); }
h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.875rem; line-height: 1; letter-spacing: 0.01em; }
.red { color: var(--red-hot); font-style: normal; }
.eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); margin-bottom: 1.125rem; }
.eyebrow::before { content: ""; display: inline-block; width: 1.75rem; height: 0.125rem; background: var(--red); vertical-align: middle; margin-right: 0.75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 1.5rem;
  font: 600 0.9375rem/1 var(--body); letter-spacing: 0.02em;
  border: 1px solid transparent; border-radius: 0.125rem; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hot); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 2rem; padding: 1rem var(--pad); transition: background 0.3s, padding 0.3s; }
.top.is-stuck { background: rgba(4, 9, 15, 0.86); backdrop-filter: blur(0.75rem); border-bottom: 1px solid var(--line); padding-block: 0.5rem; }
.brand img { height: 3.25rem; width: auto; }
.nav { display: flex; gap: 1.75rem; margin-left: auto; font-size: 0.875rem; font-weight: 500; }
.nav a { position: relative; opacity: 0.8; padding: 0.5rem 0; }
.nav a:hover { opacity: 1; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.125rem; height: 0.125rem; background: var(--red-hot); transform: scaleX(0); transform-origin: left; transition: transform 0.25s; }
.nav a:hover::after { transform: scaleX(1); }
.top-cta { display: flex; align-items: center; gap: 1.25rem; }
.phone { font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.top-cta .btn { min-height: 2.5rem; padding: 0 1.125rem; }
.menu-btn { display: none; width: 2.75rem; height: 2.75rem; padding: 0; background: none; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 0.125rem; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 0.6875rem; right: 0.6875rem; height: 0.125rem; background: #fff; transition: transform 0.25s, top 0.25s; }
.menu-btn span:first-child { top: 1rem; }
.menu-btn span:last-child { top: 1.5625rem; }
.menu-btn.is-open span:first-child { top: 1.25rem; transform: rotate(45deg); }
.menu-btn.is-open span:last-child { top: 1.25rem; transform: rotate(-45deg); }

/* ---------- media slots: a video or still fades in over a designed placeholder ---------- */
.clip { position: absolute; inset: 0; overflow: hidden; background: var(--deep); }
.clip video, .clip canvas, .clip .still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.clip video, .clip .still { opacity: 0; transition: opacity 1s; }
.clip.has-clip .still, .clip.has-video video { opacity: 1; }
.clip[data-video] .still, .clip[data-video] video { animation: none; } /* footage and its still must line up exactly */
.clip.has-clip .slot-tag, .clip.has-clip::before, .clip.has-clip canvas { display: none; }
.slot-tag { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.375rem 0.625rem; border: 1px dashed rgba(255, 255, 255, 0.4); color: rgba(255, 255, 255, 0.75); background: rgba(4, 9, 15, 0.5); }
.clip[data-n]::before { content: attr(data-n); position: absolute; right: -0.04em; bottom: -0.2em; font: 900 clamp(12.5rem, 30vw, 28.75rem)/1 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16); }
.clip[data-clip="first"] { background: radial-gradient(120% 90% at 15% 20%, #123a6b 0%, #071426 55%, #04090f 100%); }
.clip[data-clip="middle"] { background: radial-gradient(120% 90% at 80% 80%, #5b1118 0%, #0a1930 50%, #04090f 100%); }
.clip[data-clip="last"] { background: radial-gradient(120% 90% at 70% 15%, #a8632b 0%, #10294a 50%, #04090f 100%); }
.clip[data-clip="home"] { background: radial-gradient(120% 90% at 30% 70%, #6b5a3f 0%, #1a2638 55%, #04090f 100%); }
.clip[data-clip="reverse"] { background: radial-gradient(120% 90% at 50% 10%, #1d4e63 0%, #0a1930 55%, #04090f 100%); }
.clip[data-clip="crew"] { background: radial-gradient(120% 90% at 60% 30%, #2a3f63 0%, #0a1930 55%, #04090f 100%); }
.clip[data-clip="close"] { background: radial-gradient(100% 120% at 50% 100%, #7a141c 0%, #071426 60%, #04090f 100%); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-media { will-change: transform; }
.hero-media .still, .hero-media video { object-position: 70% 55%; animation: drift 24s var(--ease) both; }
@keyframes drift { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 9, 15, 0.82) 0%, rgba(4, 9, 15, 0.45) 38%, rgba(4, 9, 15, 0) 70%),
    linear-gradient(180deg, rgba(4, 9, 15, 0.6) 0%, rgba(4, 9, 15, 0) 24%, rgba(4, 9, 15, 0) 58%, rgba(4, 9, 15, 0.94) 100%); }
.hero-inner { position: relative; z-index: 2; width: 100%; padding: 9rem var(--pad) 3rem; }
.hero h1 { margin-bottom: 1.75rem; text-shadow: 0 0.25rem 4rem rgba(0, 0, 0, 0.45); }
.hero h1 .line { display: block; overflow: hidden; padding-top: 0.06em; margin-top: -0.06em; }
.hero h1 .line > span { display: block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.hero .eyebrow, .hero .lede, .dock { opacity: 0; transform: translateY(1rem); transition: opacity 0.9s 0.5s, transform 0.9s 0.5s var(--ease); }
.is-ready .hero h1 .line > span { transform: none; }
.is-ready .hero h1 .line:nth-child(2) > span { transition-delay: 0.1s; }
.is-ready .hero h1 .line:nth-child(3) > span { transition-delay: 0.2s; }
.is-ready .hero .eyebrow, .is-ready .hero .lede, .is-ready .dock { opacity: 1; transform: none; }
.is-ready .dock { transition-delay: 0.9s; }
.is-ready .hero .eyebrow { transition-delay: 2.5s; transition-duration: 2s; transition-timing-function: ease-in-out; } /* the "#1 provider" line comes in last, and slowly */
.lede { font-size: clamp(1.125rem, 1.6vw, 1.5rem); max-width: 28em; color: #e3e8f1; }

/* action dock */
.dock { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; margin: 0 var(--pad) 2.5rem; background: rgba(6, 14, 26, 0.55); backdrop-filter: blur(1.125rem) saturate(1.3); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 0.25rem; }
.dock > * { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; padding: 0 1.5rem; border-right: 1px solid var(--line); font-weight: 600; font-size: 0.9375rem; transition: background 0.25s; }
.dock > *:last-child { border-right: 0; }
.dock a::after { content: "→"; font-size: 1.125rem; transition: transform 0.25s; }
.dock a:hover { background: rgba(255, 255, 255, 0.08); }
.dock a:hover::after { transform: translateX(0.375rem); }
.dock a.is-primary { background: var(--red); }
.dock a.is-primary:hover { background: var(--red-hot); }
.zip label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.zip input { flex: 1; min-width: 0; height: 2.75rem; padding: 0 0.875rem; font: 500 1rem var(--body); color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 0.125rem; }
.zip input::placeholder { color: rgba(255, 255, 255, 0.62); }
/* Form hint text bright enough for WCAG AA contrast, 4.5:1 (1 Dec 2026). */
.form ::placeholder { color: rgba(255, 255, 255, 0.62); opacity: 1; }
.zip button { height: 2.75rem; min-height: 0; padding: 0 1.125rem; }
.hero .slot-tag { left: auto; right: var(--pad); top: 6rem; bottom: auto; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); border-block: 1px solid var(--line); background: var(--ink); }
.stat { padding: 2.5rem clamp(1rem, 2.5vw, 2.5rem) 2.25rem; border-right: 1px solid var(--line); transition: background 0.3s; }
.stat:last-child { border-right: 0; }
.stat:hover { background: var(--deep); }
.stat b { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(3.5rem, 6.5vw, 6rem); line-height: 0.9; font-variant-numeric: tabular-nums; }
.stat b::after { content: ""; display: block; width: 2.25rem; height: 0.1875rem; margin-top: 0.875rem; background: var(--red); }
.stat span { display: block; margin-top: 0.625rem; font-size: 0.875rem; color: var(--mute); max-width: 14em; }

/* ---------- sections ---------- */
section { position: relative; }
.sec-head, .miles-head { padding: clamp(5rem, 11vw, 10rem) var(--pad) 3.5rem; max-width: 68.75rem; }
.sec-head p:not(.eyebrow), .miles-head p:not(.eyebrow) { margin-top: 1.5rem; max-width: 36em; color: var(--text); font-size: 1.1875rem; }

/* every mile */
.miles-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); padding: 0 var(--pad) 5rem; align-items: start; }
.miles-stage { position: sticky; top: 6rem; height: min(72vh, 45rem); border: 1px solid var(--line); border-radius: 0.1875rem; overflow: hidden; }
.miles-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 7.5rem rgba(0, 0, 0, 0.45); }
.stage-clip { opacity: 0; transition: opacity 0.7s; }
.stage-clip.is-on { opacity: 1; }
.stage-clip .still, .stage-clip video { transform: scale(1.06); transition: opacity 1s, transform 6s var(--ease); }
.stage-clip.is-on .still, .stage-clip.is-on video { transform: scale(1); }
.miles-steps li { min-height: 62vh; padding: 1.75rem 0 2.5rem; border-top: 1px solid var(--line); opacity: 0.35; transition: opacity 0.4s; }
.miles-steps li.is-on { opacity: 1; }
.miles-steps .num { font: 800 0.9375rem var(--display); letter-spacing: 0.2em; color: var(--red-hot); }
.miles-steps h3 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 900; margin: 0.625rem 0 1.125rem; }
.miles-steps p { max-width: 30em; color: var(--text); }

/* by hand: photo mosaic */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(15rem, 26vw, 25rem); gap: 0.75rem; padding: 0 var(--pad) clamp(3.75rem, 8vw, 7.5rem); }
.ph { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 0.1875rem; }
.ph-a { grid-column: span 7; grid-row: span 2; }
.ph-b, .ph-c { grid-column: span 5; }
.ph-d, .ph-e, .ph-f { grid-column: span 4; }
.ph .clip { background: linear-gradient(135deg, #12233c, #071426 60%, #04090f); transition: transform 1.2s var(--ease); }
.ph:nth-child(even) .clip { background: linear-gradient(215deg, #3a2a22, #0d1a2e 55%, #04090f); }
.ph:hover .clip { transform: scale(1.04); }
.ph .slot-tag { left: 1rem; top: 1rem; bottom: auto; }
.ph figcaption { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 4rem 1.375rem 1.25rem; font-size: 0.875rem; color: #d5dce8; background: linear-gradient(180deg, transparent, rgba(4, 9, 15, 0.92)); }
.ph figcaption b { display: block; font: 800 1.5rem/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.01em; color: #fff; margin-bottom: 0.375rem; }
.ph-a figcaption b { font-size: clamp(1.75rem, 3vw, 2.75rem); }

/* services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.card { position: relative; display: flex; flex-direction: column; gap: 1.125rem; padding: 2.75rem clamp(1.5rem, 3vw, 3rem) 2.5rem; background: var(--ink); transition: background 0.3s; }
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 0.1875rem; width: 0; background: var(--red-hot); transition: width 0.4s; }
.card:hover { background: var(--navy); }
.card:hover::before { width: 100%; }
.card-n { font: 900 0.9375rem var(--display); letter-spacing: 0.2em; color: var(--red-hot); }
.card h3 { font-size: clamp(1.875rem, 3vw, 2.75rem); }
.card p { color: var(--text); }
.card ul { margin-top: auto; padding-top: 0.75rem; font-size: 0.9375rem; }
.card li { padding: 0.625rem 0; border-top: 1px solid var(--line); }
.more { font-weight: 600; font-size: 0.9375rem; }
.more::after { content: " →"; transition: margin 0.2s; }
.card:hover .more::after { margin-left: 0.5rem; }

/* network */
.network { background: linear-gradient(180deg, var(--ink), var(--deep) 30%, var(--ink)); }
.map-wrap { position: relative; padding: 0 var(--pad); max-width: 87.5rem; margin: 0 auto; }
#map { width: 100%; height: auto; overflow: visible; }
#map .state { fill: rgba(255, 255, 255, 0.035); stroke: rgba(255, 255, 255, 0.16); stroke-width: 0.6; }
#map .lane { fill: none; stroke: var(--red-hot); stroke-width: 1; opacity: 0.55; stroke-dasharray: 3 7; animation: lane 2.4s linear infinite; }
@keyframes lane { to { stroke-dashoffset: 40; } } /* direction reversed (Gabe 30 Nov 2026); -40 runs the other way */
#map .dot { fill: #fff; cursor: pointer; }
#map .halo { fill: var(--red-hot); opacity: 0.35; transform-box: fill-box; transform-origin: center; animation: halo 2.6s ease-out infinite; }
#map .hq .dot { fill: var(--red-hot); }
@keyframes halo { 0% { transform: scale(0.4); opacity: 0.6; } 100% { transform: scale(2.4); opacity: 0; } }
.map-tip { position: absolute; z-index: 3; pointer-events: none; padding: 0.5rem 0.75rem; background: #fff; color: var(--ink); font-size: 0.8125rem; font-weight: 600; border-radius: 0.125rem; transform: translate(-50%, -140%); white-space: nowrap; }
.terminals { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.875rem, 1fr)); gap: 0 1.5rem; padding: 2rem var(--pad) 0; font-size: 0.875rem; }
.terminals li { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.625rem 0; border-top: 1px solid var(--line); color: var(--text); }
.terminals li b { color: #fff; font-weight: 600; }
.terminals li.is-hot { color: var(--red-hot); }
.network-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; padding: 2.5rem var(--pad) 0; }

/* why */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); padding: clamp(5rem, 11vw, 10rem) var(--pad); align-items: center; }
.why-copy p:not(.eyebrow) { margin: 1.75rem 0 2rem; color: var(--text); font-size: 1.1875rem; max-width: 32em; }
.why-clip { position: relative; inset: auto; aspect-ratio: 4 / 5; border: 1px solid var(--line); border-radius: 0.1875rem; }

/* tech */
.tech { background: var(--paper); color: var(--ink); }
.tech .eyebrow { color: #5a6577; }
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(4, 9, 15, 0.14); border-top: 1px solid rgba(4, 9, 15, 0.14); }
.tech-grid > div { background: var(--paper); padding: 2.25rem clamp(1.25rem, 2.5vw, 2.5rem) 4rem; }
.tech-grid h3 { font-size: 1.625rem; margin-bottom: 0.875rem; }
.tech-grid p { font-size: 1rem; color: #2c3644; }

/* proof */
.proof { padding-bottom: 6.25rem; }
.logos { overflow: hidden; border-block: 1px solid var(--line); padding: 2.125rem 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.logos-track { display: flex; gap: 4.5rem; width: max-content; align-items: center; animation: marquee 40s linear infinite; }
.logos-track img { height: 2.375rem; width: auto; opacity: 0.85; }
@keyframes marquee { to { transform: translateX(calc(-1 * var(--set, 50%))); } } /* --set = one copy of the row, measured in app.js */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); margin: 4rem var(--pad) 2.5rem; border: 1px solid var(--line); }
.quote { background: var(--ink); padding: clamp(1.5rem, 3vw, 2.75rem); display: flex; flex-direction: column; gap: 1.25rem; }
.quote blockquote { font-size: 1.25rem; line-height: 1.4; }
.quote.big { grid-column: 1 / -1; background: var(--navy); position: relative; overflow: hidden; }
.quote.big::after { content: "1.9%"; position: absolute; right: 2%; bottom: -0.22em; font: 900 clamp(8.75rem, 22vw, 21.25rem)/1 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14); pointer-events: none; }
.quote.big > * { position: relative; z-index: 1; }
.quote.big blockquote { font: 900 clamp(2.25rem, 5vw, 4.75rem)/0.95 var(--display); text-transform: uppercase; max-width: 16em; }
.quote.big p { max-width: 40em; color: var(--text); }
.quote figcaption { margin-top: auto; font-size: 0.875rem; color: var(--mute); }
.quote figcaption b { display: block; color: #fff; font-weight: 600; }
.proof > .btn { margin-left: var(--pad); }

/* close */
.close { min-height: 80vh; display: flex; align-items: center; border-top: 1px solid var(--line); overflow: hidden; }
.close .clip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 9, 15, 0.85), rgba(4, 9, 15, 0.2)); }
.close-inner { position: relative; z-index: 2; padding: 6.25rem var(--pad); }
.close h2 { font-size: clamp(3.25rem, 9vw, 9.5rem); margin-bottom: 2.5rem; }
.close-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* footer */
.foot { display: grid; grid-template-columns: auto 1fr 1fr 1.4fr; gap: 2.5rem; padding: 3.5rem var(--pad) 2rem; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--text); }
.foot img { width: 8.75rem; height: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-content: start; }
.foot a:hover { color: #fff; text-decoration: underline; }
.legal { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--mute); font-size: 0.8125rem; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(1.75rem); transition: opacity 0.8s, transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .menu-btn { display: block; }
  .top-cta { margin-left: auto; }
  .top.is-stuck { backdrop-filter: none; background: rgba(4, 9, 15, 0.96); } /* a blurred header would trap the full-screen menu */
  .nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 0.25rem; padding: 6rem var(--pad) 2.5rem; margin: 0; background: rgba(4, 9, 15, 0.97); opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a { font: 900 clamp(2.25rem, 9vw, 4rem)/1.1 var(--display); text-transform: uppercase; opacity: 1; padding: 0.375rem 0; }
  .nav a::after { display: none; }
  .dock { grid-template-columns: 1fr 1fr; }
  .dock > * { border-bottom: 1px solid var(--line); }
  .dock > .zip { grid-column: 1 / -1; border-right: 0; }
  .dock > *:nth-child(3) { border-right: 0; }
  .dock > *:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .phone { display: none; }
  .brand img { height: 2.625rem; }
  /* phone: the "#1 provider" line sits up in the sky, clear of the truck; the headline stays at the bottom */
  .hero-inner { flex: 1; display: flex; flex-direction: column; padding-top: 7.5rem; padding-bottom: 1.75rem; }
  .hero-copy { flex: 1; display: flex; flex-direction: column; }
  .hero .eyebrow { margin-bottom: auto; padding-bottom: 2rem; max-width: 22rem; line-height: 1.7; }
  /* phone: the footage gets its own band below the "#1 provider" line, so the truck and its logo
     are clear of the text; the headline starts where the band fades out */
  .hero-media { inset: 6.5rem 0 auto 0; height: 50svh; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 70%, transparent 100%); }
  .hero-media .still, .hero-media video { object-position: 88% 50%; }
  .hero-shade { background: linear-gradient(180deg, rgba(4, 9, 15, 0.5) 0%, rgba(4, 9, 15, 0) 22%, rgba(4, 9, 15, 0) 40%, rgba(4, 9, 15, 0.9) 58%, var(--ink) 100%); }
  .dock { margin-bottom: 1.25rem; }
  .dock > * { min-height: 3.5rem; padding: 0 1rem; font-size: 0.875rem; }
  .dock > .zip { min-height: 4rem; }
  .zip label { display: none; }
  .hero .slot-tag { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:last-child { grid-column: 1 / -1; }
  .miles-grid { grid-template-columns: 1fr; }
  .miles-stage { top: 4rem; height: 38vh; z-index: 2; }
  .miles-steps li { min-height: 46vh; }
  .cards, .why, .quotes { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .tech-grid > div { padding-bottom: 2.25rem; }
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .ph, .ph-a { grid-column: auto; grid-row: auto; min-height: 18.75rem; }
  .ph-a { min-height: 26rem; }
  .quote.big::after { display: none; }
  .foot { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero .eyebrow, .hero .lede, .dock { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
}


/* ================= inner pages ================= */
.page-hero { position: relative; min-height: min(62svh, 40rem); display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero .still { animation: drift 20s var(--ease) both; }
.page-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 9, 15, 0.8), rgba(4, 9, 15, 0.25) 70%), linear-gradient(180deg, rgba(4, 9, 15, 0.55), rgba(4, 9, 15, 0) 35%, rgba(4, 9, 15, 0.9)); }
.page-hero-inner { position: relative; z-index: 2; width: 100%; padding: 10rem var(--pad) 3.5rem; }
.page-hero h1 { font-size: clamp(3rem, 8vw, 8.5rem); max-width: 12em; }
.page-hero-plain { min-height: 0; background: linear-gradient(180deg, var(--deep), var(--ink)); }
.crumbs { margin-bottom: 1.25rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.crumbs i { margin: 0 0.625rem; font-style: normal; opacity: 0.5; }
.crumbs a:hover, .crumbs span { color: #fff; }

.sec { padding: clamp(3.5rem, 7vw, 7rem) var(--pad); border-bottom: 1px solid var(--line); }
.prose { max-width: 52rem; }
.prose h2 { font-size: clamp(2.25rem, 4.5vw, 4.5rem); margin-bottom: 1.5rem; }
.prose h3 { margin: 2.25rem 0 0.75rem; }
.prose h4 { margin: 1.5rem 0 0.5rem; font-size: 1.0625rem; }
.prose p { margin-bottom: 1.125rem; color: var(--text); font-size: 1.125rem; }
.prose strong, .prose b { color: #fff; font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 1.25rem; }
.prose li { position: relative; padding-left: 1.375rem; margin-bottom: 0.5rem; color: var(--text); }
.prose li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.4375rem; height: 0.4375rem; background: var(--red-hot); }
.prose a, .item a { color: #fff; text-decoration: underline; text-decoration-color: var(--red-hot); text-underline-offset: 0.25em; }
.prose a:hover, .item a:hover { color: var(--red-hot); }
.prose table { width: 100%; max-width: 46rem; border-collapse: collapse; margin-top: 0.5rem; }
.prose td { padding: 0.875rem 1rem 0.875rem 0; border-top: 1px solid var(--line); color: var(--text); vertical-align: top; }
.prose + .prose { margin-top: 1rem; }

.items { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1px; margin-top: 3rem; background: var(--line); border: 1px solid var(--line); }
.items:first-child { margin-top: 0; }
.items + .prose { margin-top: 3.5rem; }
.item { padding: 2.25rem 2rem 2.5rem; background: var(--ink); transition: background 0.3s; }
.item:hover { background: var(--deep); }
.item-n { font: 900 0.9375rem var(--display); letter-spacing: 0.2em; color: var(--red-hot); }
.item h3 { margin: 0.75rem 0 0.875rem; font-size: 2rem; }
.item p { color: var(--text); margin-bottom: 0.5rem; }
.item ul { margin-top: 1rem; }
.item li { padding: 0.5rem 0; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.sec .cards { margin-top: 3rem; border: 1px solid var(--line); }
.cards-1 { grid-template-columns: 1fr; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.faqs { max-width: 62rem; margin-top: 3rem; border-bottom: 1px solid var(--line); }
.faq { border-top: 1px solid var(--line); }
.faq summary { position: relative; padding: 1.5rem 3.5rem 1.5rem 0; cursor: pointer; list-style: none; font: 800 1.625rem/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%); font: 400 2rem/1 var(--body); color: var(--red-hot); transition: transform 0.25s; }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .prose { padding-bottom: 1.5rem; }
.quotes-all { margin: 3rem 0 0; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.split-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); border-radius: 0.1875rem; }
.embed { margin-top: 2rem; background: #fff; border-radius: 0.25rem; overflow: hidden; }
.embed iframe { display: block; width: 100%; height: 34rem; border: 0; }
.sec-locations .map-wrap { padding: 0; margin-bottom: 3.5rem; }
.sitemap li { font-size: 1.125rem; }
.sitemap .depth-1 { margin-left: 1.75rem; }
.sitemap .depth-2 { margin-left: 3.5rem; }
.inner .close { min-height: 60vh; }

/* forms */
.form-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; color-scheme: dark; }
.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field.wide { grid-column: 1 / -1; }
.field > label, .field legend { display: block; width: 100%; padding: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.req { color: var(--red-hot); font-style: normal; }
.form input:not([type="radio"]):not([type="checkbox"]), .form select, .form textarea { display: block; width: 100%; height: 3.25rem; margin-top: 0.5rem; padding: 0 1rem; font: 500 1rem var(--body); letter-spacing: 0; text-transform: none; color: #fff; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 0.125rem; transition: border-color 0.2s, background 0.2s; }
.form textarea { height: auto; padding: 0.875rem 1rem; resize: vertical; }
.form input[type="file"] { height: auto; padding: 0.875rem 1rem; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--red-hot); background: rgba(255, 255, 255, 0.1); }
.subfields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.75rem; }
.choices { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 0.625rem; }
.choice { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 0.125rem; font-size: 0.9375rem; font-weight: 500; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.choice input { accent-color: var(--red-hot); }
.choice:has(input:checked) { border-color: var(--red-hot); background: rgba(232, 64, 75, 0.14); }
.hint { margin-top: 0.375rem; font-size: 0.8125rem; color: var(--mute); }
.field.note { color: var(--text); }
.form-msg { margin-top: 1rem; padding: 1rem 1.125rem; border: 1px solid var(--red-hot); border-radius: 0.125rem; color: #fff; }
.form-msg a { text-decoration: underline; }
.form-side { position: sticky; top: 7rem; padding: 2rem; border: 1px solid var(--line); border-radius: 0.1875rem; background: var(--deep); }
.form-side h2 { font-size: 2.25rem; }

@media (max-width: 820px) {
  .page-hero { min-height: 22rem; }
  .page-hero-inner { padding-top: 7rem; padding-bottom: 2.25rem; }
  .split, .form-wrap, .form, .subfields { grid-template-columns: 1fr; }
  .cards-2, .cards-4 { grid-template-columns: 1fr; }
  .items { grid-template-columns: 1fr; }
  .form-side { position: static; }
  .faq summary { font-size: 1.375rem; }
  .embed iframe { height: 28rem; }
}
@media (min-width: 821px) and (max-width: 1100px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }

/* a short text block: heading on the left, copy on the right */
@media (min-width: 1000px) {
  .sec > .prose.lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: clamp(2rem, 6vw, 7rem); max-width: none; align-items: start; }
  .sec > .prose.lead > h2 { grid-column: 1; grid-row: 1 / span 12; margin-bottom: 0; }
  .sec > .prose.lead > :not(h2) { grid-column: 2; }
}


/* ================= one photo grade =================
   The night stills are navy with red accents. Daylight photos (in-home work, the crew,
   the street) get the same cool, slightly muted grade so the site reads as one shoot.
   It is applied here, not baked into the files, so replacement photos pick it up too. */
.clip[data-grade] .still, .clip[data-grade] video { filter: saturate(0.78) contrast(1.1) brightness(0.9); }
.clip[data-grade]::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(180deg, rgba(0, 60, 140, 0.42), rgba(0, 20, 60, 0.5)); }
.clip[data-grade] .slot-tag { z-index: 3; }

/* ================= typography pass ================= */
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
body { font-kerning: normal; font-optical-sizing: auto; hyphens: manual; }
h1, h2, h3, h4, .quote blockquote, .faq summary, .ph figcaption b { text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; }
h2 { letter-spacing: -0.012em; }
h3 { letter-spacing: 0.004em; }
.eyebrow, .crumbs, .slot-tag, .zip label { font-feature-settings: "case" 1; }
.stat b, .card-n, .item-n, .miles-steps .num { font-variant-numeric: tabular-nums lining-nums; }
/* comfortable measure: no paragraph runs wider than about 70 characters */
.card p, .item p, .tech-grid p, .quote blockquote, .why-copy p, .miles-steps p { max-width: 34em; }
.prose p, .prose li { max-width: 40em; }
.lede { line-height: 1.45; }
.quote blockquote { line-height: 1.45; }
.quote.big blockquote { line-height: 0.95; }
/* consistent rhythm: every section heading sits the same distance above its content */
.sec-head, .miles-head { padding-bottom: 3.5rem; }
.sec-head h2 + p, .miles-head h2 + p { margin-top: 1.75rem; }
.card h3, .item h3, .tech-grid h3 { line-height: 1.02; }

@media (max-width: 820px) {
  body { font-size: 1rem; line-height: 1.6; }
  h2 { font-size: clamp(2.5rem, 11vw, 3.5rem); line-height: 0.92; }
  .sec-head, .miles-head { padding-top: 4.5rem; padding-bottom: 2.25rem; }
  .sec-head p:not(.eyebrow), .miles-head p:not(.eyebrow), .why-copy p:not(.eyebrow), .prose p { font-size: 1.0625rem; }
  .eyebrow { font-size: 0.75rem; letter-spacing: 0.14em; }
  .stat b { font-size: 3.25rem; }
  .stat { padding: 1.75rem 1.25rem 1.5rem; }
  .miles-steps h3 { font-size: 2.5rem; }
  .card { padding: 2.25rem 1.25rem 2rem; }
  .card h3 { font-size: 2rem; }
  .ph figcaption { padding: 3.5rem 1.125rem 1.125rem; }
  .ph figcaption b, .ph-a figcaption b { font-size: 1.625rem; }
  .quote blockquote { font-size: 1.125rem; }
  .quote.big blockquote { font-size: 2.25rem; }
  .close h2 { font-size: clamp(2.75rem, 13vw, 4rem); }
  .tech-grid h3 { font-size: 1.5rem; }
  .terminals { grid-template-columns: 1fr 1fr; }
  .foot { font-size: 0.9375rem; }
  .page-hero h1 { font-size: clamp(2.5rem, 12vw, 3.75rem); }
  .item { padding: 1.75rem 1.25rem 2rem; }
  .item h3 { font-size: 1.75rem; }
  .sec { padding-inline: var(--pad); padding-block: 3.5rem; }
}


/* ================= top banner on phones =================
   On an iPhone the page can show through the status-bar strip above a fixed header.
   This extends the banner's dark background upward so nothing is visible above the banner. */
.top::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 12rem; background: var(--ink); }
@media (max-width: 1100px) { .top.is-stuck { background: var(--ink); } } /* fully solid: no text ghosting through */
.hero-media[data-src] canvas { display: none; } /* the light-streak placeholder is only for a hero with no media */

/* ---------- Services index (homepage): three rows instead of three tall cards ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1.1fr) minmax(0, 1fr) 3rem; align-items: center; gap: clamp(1rem, 3vw, 3rem); padding: clamp(1.75rem, 3vw, 2.75rem) var(--pad); border-bottom: 1px solid var(--line); transition: background 0.3s; }
.svc::before { content: ""; position: absolute; left: 0; top: -1px; height: 0.1875rem; width: 0; background: var(--red-hot); transition: width 0.5s var(--ease); }
.svc:hover, .svc:focus-visible { background: var(--navy); }
.svc:hover::before, .svc:focus-visible::before { width: 100%; }
.svc-n { font: 900 0.9375rem var(--display); letter-spacing: 0.2em; color: var(--red-hot); }
.svc h3 { font-size: clamp(2rem, 4.2vw, 4rem); line-height: 1; text-wrap: balance; }
.svc p { color: var(--text); max-width: 30em; }
.svc-go { justify-self: end; font-size: 1.75rem; color: var(--mute); transition: transform 0.3s var(--ease), color 0.3s; }
.svc:hover .svc-go, .svc:focus-visible .svc-go { transform: translateX(0.5rem); color: #fff; }
@media (max-width: 820px) {
  .svc { grid-template-columns: 1.75rem minmax(0, 1fr) 1.5rem; row-gap: 0.625rem; padding-block: 1.75rem; align-items: start; }
  .svc h3 { font-size: 2rem; }
  .svc p { grid-column: 2; grid-row: 2; font-size: 1rem; }
  .svc-go { grid-column: 3; grid-row: 1; font-size: 1.375rem; }
  .svc-n { padding-top: 0.5rem; }
}

/* ---------- Small interactions ---------- */
/* Buttons: a lift on hover, a press on tap. */
.btn { transition: background 0.2s, border-color 0.2s, box-shadow 0.25s, transform 0.2s var(--ease); }
.btn-red:hover { box-shadow: 0 0.625rem 1.75rem -0.625rem rgba(232, 64, 75, 0.7); }
.btn:active, .menu-btn:active { transform: scale(0.96); box-shadow: none; transition-duration: 0.05s; }
.dock a:active { background: rgba(255, 255, 255, 0.16); }
.dock a.is-primary:active { background: var(--red); }
.svc:active { background: var(--navy); }
.menu-btn { transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease); }
.menu-btn:hover, .menu-btn.is-open { border-color: #fff; }

/* The page you are on stays marked in the menu. */
.nav a[aria-current] { opacity: 1; }
.nav a[aria-current]::after { transform: scaleX(1); }

/* Phone menu: the links rise in one after another instead of the whole panel blinking on. */
@media (max-width: 1100px) {
  .nav { transition: opacity 0.35s var(--ease), visibility 0.35s; }
  .nav a { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.2s, transform 0.2s, color 0.2s; }
  .nav.is-open a { opacity: 1; transform: none; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.2s; }
  .nav.is-open a:nth-child(1) { transition-delay: 0.08s; }
  .nav.is-open a:nth-child(2) { transition-delay: 0.13s; }
  .nav.is-open a:nth-child(3) { transition-delay: 0.18s; }
  .nav.is-open a:nth-child(4) { transition-delay: 0.23s; }
  .nav.is-open a:nth-child(5) { transition-delay: 0.28s; }
  .nav.is-open a:nth-child(6) { transition-delay: 0.33s; }
  .nav a:active, .nav a[aria-current] { color: var(--red-hot); }
}

/* ZIP box: answers focus, and nudges when the ZIP is not five digits. */
.zip input { transition: border-color 0.2s, background 0.2s; }
.zip input:focus { outline: 0; border-color: #fff; background: rgba(255, 255, 255, 0.14); }
.zip.is-bad input { border-color: var(--red-hot); }
.zip.is-bad { animation: nudge 0.4s var(--ease); }
@keyframes nudge { 20% { transform: translateX(-0.375rem); } 50% { transform: translateX(0.3125rem); } 80% { transform: translateX(-0.125rem); } }

/* Forms: the label lights up with its field; a field you have left shows whether it is filled in right. */
.field > label, .field legend { transition: color 0.2s; }
.field:focus-within > label, .field:focus-within > legend { color: #fff; }
.form .is-touched.is-touched:invalid { border-color: var(--red-hot); background: rgba(232, 64, 75, 0.08); }
.form [required].is-touched:valid { border-color: rgba(255, 255, 255, 0.6); }
.choice:hover { border-color: rgba(255, 255, 255, 0.55); }
.choice:active { transform: scale(0.97); }
.form-msg:not([hidden]) { animation: rise 0.45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(0.5rem); } }

/* Questions open smoothly (browsers that cannot animate this just open them). */
.faq summary { transition: color 0.2s; }
.faq summary:hover { color: #fff; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size 0.4s var(--ease), opacity 0.4s, content-visibility 0.4s allow-discrete; }
  .faq[open]::details-content { block-size: auto; opacity: 1; }
}

/* The page-to-page cross-fade is off (29 Nov): it ran on top of each page's own opening, so
   coming back to the homepage from another page flashed on Gabe's iPhone. The opening does the job. */
@view-transition { navigation: none; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .nav a, .nav.is-open a { transform: none; transition: none; }
  .zip.is-bad, .form-msg:not([hidden]) { animation: none; }
  .btn:active, .menu-btn:active, .choice:active { transform: none; }
}

/* ---------- Hero actions: no box. One ZIP field with one red button, two quiet links, sliding in after the headline. ---------- */
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.75rem; margin-top: 2.5rem; }
.hero-actions .zip { display: flex; width: min(100%, 27rem); height: 3.5rem; }
.hero-actions .zip input { flex: 1; min-width: 0; height: 100%; padding: 0 1.125rem; font-size: 1.0625rem; background: rgba(4, 9, 15, 0.5); backdrop-filter: blur(0.75rem); border: 1px solid rgba(255, 255, 255, 0.4); border-right: 0; border-radius: 0.125rem 0 0 0.125rem; }
.hero-actions .zip input::placeholder { color: rgba(255, 255, 255, 0.65); }
.hero-actions .zip button { height: 100%; padding: 0 1.5rem; border-radius: 0 0.125rem 0.125rem 0; white-space: nowrap; }
.hero-links { display: flex; gap: 2.25rem; font-weight: 600; font-size: 0.9375rem; }
.hero-links a { position: relative; padding: 0.625rem 0; white-space: nowrap; }
.hero-links a::after { content: "→"; display: inline-block; margin-left: 0.5rem; transition: transform 0.25s var(--ease); }
.hero-links a::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0.25rem; height: 0.0625rem; background: rgba(255, 255, 255, 0.45); transform-origin: left; transition: background 0.25s; }
.hero-links a:hover::after { transform: translateX(0.375rem); }
.hero-links a:hover::before { background: var(--red-hot); }

/* The slide: the ZIP field comes in from the left, then each link a beat later. */
.hero-actions .zip, .hero-links a { opacity: 0; transform: translateX(-3rem); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); }
.is-ready .hero-actions .zip, .is-ready .hero-links a { opacity: 1; transform: none; }
.is-ready .hero-actions .zip { transition-delay: 1.2s; }
.is-ready .hero-links a:nth-child(1) { transition-delay: 1.5s; }
.is-ready .hero-links a:nth-child(2) { transition-delay: 1.65s; }

@media (max-width: 820px) {
  .hero-actions { margin-top: 1.5rem; gap: 0.75rem 0; }
  .hero-actions .zip { width: 100%; height: 3.25rem; }
  .hero-actions .zip button { padding: 0 1.125rem; }
  .hero-links { gap: 1.75rem; font-size: 0.875rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-actions .zip, .hero-links a { opacity: 1; transform: none; transition: none; }
}

/* Phone hero: headline through the links sit higher (Gabe 29 Nov: "move it up 20%"). */
@media (max-width: 820px) {
  .hero-inner { padding-bottom: calc(1.75rem + 10svh); }
  .hero-media { height: 43svh; } /* keeps the truck clear of the raised headline */
}

/* ---------- Hero entrance: one sequence ----------
   Headline lines, then the sentence, the ZIP field, and the two links: each rises the same short
   distance on the same curve and starts while the one before is still settling, so it reads as
   one movement. The truck starts driving as the last piece lands (app.js, 1.4s). The
   "#1 provider" line stays the slow closing beat (Gabe 29 Nov). */
.hero { --rise: cubic-bezier(0.22, 1, 0.36, 1); }
.hero h1 .line > span { transition: transform 1.25s var(--rise); }
.hero .lede, .hero-actions .zip, .hero-links a { opacity: 0; transform: translateY(1.25rem); transition: opacity 1s ease-out, transform 1.15s var(--rise); }
.is-ready .hero .lede, .is-ready .hero-actions .zip, .is-ready .hero-links a { opacity: 1; transform: none; }
.is-ready .hero h1 .line:nth-child(1) > span { transition-delay: 0.15s; }
.is-ready .hero h1 .line:nth-child(2) > span { transition-delay: 0.27s; }
.is-ready .hero h1 .line:nth-child(3) > span { transition-delay: 0.39s; }
.is-ready .hero .lede { transition-delay: 0.7s; }
.is-ready .hero-actions .zip { transition-delay: 0.88s; }
.is-ready .hero-links a:nth-child(1) { transition-delay: 1.04s; }
.is-ready .hero-links a:nth-child(2) { transition-delay: 1.16s; }
@media (prefers-reduced-motion: reduce) {
  .hero h1 .line > span, .hero .lede, .hero-actions .zip, .hero-links a { opacity: 1; transform: none; transition: none; }
}

/* Footage takes over from its own first frame with no fade, so the swap cannot be seen. */
.clip[data-video] video { transition: none; }

/* The hero picture waits for the entrance, so picture and headline arrive as one movement. */
html:not(.is-ready) .hero-media.has-clip .still { opacity: 0; }
/* Last frame laid over footage that was reset by the back button. */
.clip .still.still-end { opacity: 1; transition: none; animation: none; }

/* Phone hero with the still photo (footage off): the truck sits further right in the photo than in the footage. */
@media (max-width: 820px) {
  .hero-media:not([data-video]) .still { object-position: 100% 50%; animation: none; }
}

/* ---------- Hero entrance: nothing that makes phone browsers flash ----------
   iPhone Safari flickers when a moving or fading element also has a blurred backdrop, a big blurred
   shadow, or a mask, and when an element is promoted to its own layer only for the length of its
   animation. So: none of those in the hero, and every moving piece keeps its layer throughout. */
.hero h1 { text-shadow: none; }
.hero-actions .zip input { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(4, 9, 15, 0.72); }
.hero h1 .line > span, .hero .eyebrow, .hero .lede, .hero-actions .zip, .hero-links a { will-change: transform, opacity; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.hero-media .still { will-change: opacity; }
@media (max-width: 820px) {
  /* The soft top and bottom edges of the picture are painted over it instead of masked out of it. */
  .hero-media { -webkit-mask-image: none; mask-image: none; background: var(--ink); will-change: auto; }
  .hero-media::after { content: ""; position: absolute; inset: -1px 0; z-index: 1; pointer-events: none; display: block;
    background: linear-gradient(180deg, var(--ink) 0, rgba(4, 9, 15, 0) 16%, rgba(4, 9, 15, 0) 70%, var(--ink) 100%); }
}

/* ---------- Opening: nothing is drawn until it is ready, then it arrives once ----------
   (Gabe 29 Nov: "the opening of the page needs to show smoothly".) Before, the header and a
   placeholder label were drawn first, text changed font after appearing, and sections were drawn,
   hidden by the script, then faded in. Now the page head marks the document "js" before anything
   is drawn, everything on the first screen stays hidden until fonts and picture are in (is-ready),
   and it all fades in together. Only opacity and a short rise are animated: no clipping. */
.clip[data-src] .slot-tag, .clip[data-src]::before, .hero-media[data-src] canvas { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .top { transition: opacity 0.9s ease-out, background 0.3s, padding 0.3s; }
  .js:not(.is-ready) .top { opacity: 0; }
  .js .page-hero-inner { transition: opacity 0.9s ease-out 0.1s; }
  .js:not(.is-ready) .page-hero-inner { opacity: 0; }
  .hero-media .still { transition: opacity 1.4s ease-out; }
  .hero h1 .line { overflow: visible; }
  .hero h1 .line > span { opacity: 0; transform: translateY(1.25rem); transition: opacity 1s ease-out, transform 1.15s var(--rise); }
  .is-ready .hero h1 .line > span { opacity: 1; transform: none; }
  /* Sections that fade in on scroll start hidden from the first paint, not after the script runs. */
  .js :is(.sec-head, .miles-head, .ph, .card, .svc, .quote, .tech-grid > div, .why-copy, .why-clip, .close-inner, .sec > .prose, .item, .faq, .split-img, .form-wrap):not(.is-in) { opacity: 0; transform: translateY(1.75rem); }
}

/* ---------- Opening: one fade (Gabe 29 Nov: staged entrance "still flashes" on his iPhone) ----------
   The whole page is one layer that fades in once, after fonts and the hero picture are in. Nothing
   on the first screen moves or fades on its own. Test switches, set in the page head from the
   address: ?open=rise is the staged entrance, ?open=fade the single fade, ?open=none no fade.
   Since 29 Nov (Gabe: staged "looks good now") the page head picks rise on desktop and fade on phones. */
@media (prefers-reduced-motion: no-preference) {
  .js:is(.open-fade, .open-none) body { transition: opacity 0.9s ease-out; }
  .js:is(.open-fade, .open-none):not(.is-ready) body { opacity: 0; }
  .js.open-none body { transition: none; }
  .js:is(.open-fade, .open-none) .top { opacity: 1 !important; transition: background 0.3s, padding 0.3s; }
  .js:is(.open-fade, .open-none) .page-hero-inner { opacity: 1 !important; transition: none; }
  .js:is(.open-fade, .open-none) .hero :is(h1 .line > span, .eyebrow, .lede, .hero-actions .zip, .hero-links a) { opacity: 1 !important; transform: none !important; transition: none !important; will-change: auto; -webkit-backface-visibility: visible; backface-visibility: visible; }
  .js:is(.open-fade, .open-none) .hero-media .still { transition: none; will-change: auto; }
}

/* ---------- Big screens: scale by the shorter side ----------
   The page grows with the window width above 1600px. On an ultra-wide screen (very wide, not tall)
   that made everything too big for the height (Gabe 29 Nov). So the scale is now held to what a
   16:9 window of the same height would get. */
@media (min-width: 1600px) { html { font-size: max(16px, min(0.8333vw, 1.4815vh)); } } /* 16px on a 1920x1080 window, growing past that */
/* On screens wider than 2:1 the content keeps to a centred column (twice the window height wide);
   pictures and backgrounds still run edge to edge. */
@media (min-width: 1600px) and (min-aspect-ratio: 2/1) { :root { --pad: max(5rem, calc((100vw - 200vh) / 2)); } }
@media (min-width: 1600px) and (min-aspect-ratio: 2/1) {
  .sec-head, .miles-head { max-width: calc(58.75rem + var(--pad) * 2); }
  .map-wrap { max-width: calc(77.5rem + var(--pad) * 2); }
}

/* Type was too big on regular and wide screens (Gabe 29 Nov): smaller headline sizes on desktop. */
@media (min-width: 821px) {
  h1 { font-size: min(clamp(3.75rem, 9vw, 9.5rem), 14svh); }
  h2 { font-size: clamp(2.75rem, 5.5vw, 5.5rem); }
  .lede { font-size: clamp(1.125rem, 1.4vw, 1.3125rem); }
  .close h2 { font-size: clamp(3.25rem, 7vw, 7.5rem); }
  .page-hero h1 { font-size: clamp(3rem, 6.5vw, 7rem); }
}

/* Desktop hero: the headline block sits in the middle of the screen, not at the bottom
   (Gabe 29 Nov: "this looks too low"). */
@media (min-width: 821px) {
  .hero { justify-content: center; }
  .hero-inner { padding-top: 8.5rem; padding-bottom: 4rem; }
}

/* ---------- Phone entrance trials (29 Nov) ----------
   The staged entrance flashes on Gabe's iPhone and cannot be reproduced here, so three versions of
   it sit behind test links for him to compare: ?open=a fades in place (no movement), ?open=b moves
   but with no forced layers and plain text rendering, ?open=c uses keyframe animations in place of
   transitions. Gabe found all three smooth on his iPhone (29 Nov), so phones now open with b
   (page head script); ?open=fade is the single fade if it ever flashes again. */
.open-a .hero :is(h1 .line > span, .eyebrow, .lede, .hero-actions .zip, .hero-links a) { transform: none !important; transition-property: opacity !important; }
html.open-b { text-rendering: auto; }
.open-b .hero :is(h1 .line > span, .eyebrow, .lede, .hero-actions .zip, .hero-links a), .open-b .hero-media .still { will-change: auto; -webkit-backface-visibility: visible; backface-visibility: visible; }
@keyframes rise-in { from { opacity: 0; transform: translateY(1.25rem); } }
@keyframes fade-in { from { opacity: 0; } }
.open-c .hero :is(h1 .line > span, .eyebrow, .lede, .hero-actions .zip, .hero-links a) { transition: none !important; will-change: auto; }
.open-c.is-ready .hero :is(h1 .line > span, .lede, .hero-actions .zip, .hero-links a) { animation: rise-in 1.15s cubic-bezier(0.22, 1, 0.36, 1) both; }
.open-c.is-ready .hero h1 .line:nth-child(1) > span { animation-delay: 0.15s; }
.open-c.is-ready .hero h1 .line:nth-child(2) > span { animation-delay: 0.27s; }
.open-c.is-ready .hero h1 .line:nth-child(3) > span { animation-delay: 0.39s; }
.open-c.is-ready .hero .lede { animation-delay: 0.7s; }
.open-c.is-ready .hero-actions .zip { animation-delay: 0.88s; }
.open-c.is-ready .hero-links a:nth-child(1) { animation-delay: 1.04s; }
.open-c.is-ready .hero-links a:nth-child(2) { animation-delay: 1.16s; }
.open-c.is-ready .hero .eyebrow { animation: fade-in 2s ease-in-out 2.5s both; }

/* The headline does not animate (Gabe 29 Nov: "still a little glitchy"): it is simply there when
   the page opens, and the rest comes in around it as before. */
.hero h1 .line > span { transform: none !important; transition: none !important; animation: none !important; will-change: auto; }

/* Hero footage opens the page itself (no picture-to-video swap): it waits hidden like the still,
   fades in with the opening, and if it has to take over from the still later it cross-fades. */
.hero-media[data-video] video { transition: opacity 1.4s ease-out; }
html:not(.is-ready) .hero-media.has-video video { opacity: 0; }

/* Extended footage: the second clip sits on top of the first and is shown, with no fade, only
   once it is drawing frames (see data-video-next in app.js). */
.clip video.next-video { opacity: 0; transition: none; }
.clip video.next-video.on { opacity: 1; }

/* Tracking box on the Tracking page: the same field and red button as the home hero. */
.zip.track-page { display: flex; width: min(100%, 30rem); height: 3.5rem; margin-bottom: 1.75rem; }
.zip.track-page input { flex: 1; min-width: 0; height: 100%; padding: 0 1.125rem; font-size: 1.0625rem; border-right: 0; border-radius: 0.125rem 0 0 0.125rem; }
.zip.track-page button { height: 100%; padding: 0 1.5rem; border-radius: 0 0.125rem 0.125rem 0; white-space: nowrap; }

/* =====================================================================================
   Home page, second design (body class "v2"; went live on the preview 30 Nov 2026 after
   Gabe's review). These rules sit on top of the first design above: a sharper end to the
   hero, a quiet proof row, and daylight for the in-home section. The first design's page
   is kept at tools/home-before-v2.html.
   ===================================================================================== */

/* Hero: the headline keeps the middle of the screen; tracking and the two links sit in one
   strip along the base, with a hairline above it and no box. */
.v2 .hero-strip { position: relative; z-index: 2; display: flex; flex-wrap: nowrap; align-items: center; gap: 1rem 2.5rem; margin: 0 var(--pad); padding: 1.125rem 0 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.v2 .strip-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); white-space: nowrap; }
.v2 .hero-strip .zip { width: min(100%, 23rem); height: 3rem; }
.v2 .hero-strip .zip input { font-size: 1rem; }
.v2 .hero-strip .hero-links { margin-left: auto; }
@media (min-width: 821px) {
  .v2 .hero-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 2rem; }
}
@media (max-width: 820px) {
  .v2 .hero-strip { flex-wrap: wrap; gap: 0.75rem 0; margin-top: 1.5rem; padding: 1rem 0 calc(1.25rem + 6svh); }
  .v2 .strip-label { display: none; }
  .v2 .hero-strip .zip { width: 100%; height: 3.25rem; }
  .v2 .hero-strip .hero-links { margin-left: 0; }
}

/* Proof row: no boxes. Three numbers carry it; the other two facts are a line of text. */
.v2 .stats { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem clamp(2rem, 5vw, 5rem); padding: 1.75rem var(--pad) 2rem; border: 0; }
.v2 .stat { display: flex; align-items: center; gap: 0.875rem; padding: 0; border: 0; background: none; }
.v2 .stat b { font-size: clamp(2.75rem, 4.2vw, 4rem); line-height: 0.85; }
.v2 .stat b::after { display: none; }
.v2 .stat span { margin: 0; max-width: 7.5em; font-size: 0.875rem; line-height: 1.3; color: var(--text); }
.v2 .proof-more { margin-left: auto; display: grid; gap: 0.25rem; font-size: 0.9375rem; color: var(--mute); }
.v2 .proof-more b { color: #fff; font-weight: 600; }
@media (max-width: 820px) {
  .v2 .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.125rem 0.75rem; padding: 1.5rem var(--pad) 1.75rem; }
  .v2 .stat { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .v2 .stat:last-child { grid-column: auto; }
  .v2 .stat b { font-size: 2.5rem; }
  .v2 .stat span { font-size: 0.8125rem; }
  .v2 .proof-more { grid-column: 1 / -1; margin: 0; padding-top: 1rem; border-top: 1px solid var(--line); }
}

/* Daylight: warm off-white, ink type, one large photo edge to edge, then the work at close range. */
.v2 .day { background: var(--paper); color: #2c3644; padding-bottom: clamp(4rem, 8vw, 7.5rem); }
.v2 .day .sec-head { padding-top: clamp(4rem, 8vw, 7.5rem); padding-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.v2 .day h2 { color: var(--ink); }
.v2 .day .eyebrow { color: #5a6577; }
.v2 .day .sec-head p:not(.eyebrow) { color: #3a4656; }
.v2 .day figure { margin: 0; }
.v2 .day-img { position: relative; overflow: hidden; background: #e4dfd4; }
.v2 .day-img .clip { background: #e4dfd4; }
.v2 .day-lead .day-img { aspect-ratio: 16 / 9; max-height: 92svh; width: 100%; }
.v2 .day-lead .still { object-position: 50% 70%; }
.v2 .day figcaption { display: grid; gap: 0.25rem; padding-top: 0.875rem; font-size: 0.9375rem; line-height: 1.45; color: #4a5565; }
.v2 .day figcaption b { font: 600 1.0625rem/1.3 var(--body); letter-spacing: -0.005em; color: var(--ink); }
.v2 .day-lead figcaption { padding: 1.125rem var(--pad) 0; grid-template-columns: minmax(0, 22rem) minmax(0, 30rem); gap: 0.25rem clamp(1.5rem, 5vw, 5rem); }
.v2 .day-lead figcaption b { font-size: 1.25rem; }
.v2 .day-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(2rem, 4vw, 3.5rem) clamp(0.75rem, 1.5vw, 1.5rem); padding: clamp(2.5rem, 5vw, 4.5rem) var(--pad) 0; }
.v2 .day-item { grid-column: span 2; }
.v2 .day-item:nth-child(-n+2) { grid-column: span 3; }
.v2 .day-item .day-img { aspect-ratio: 3 / 2; border-radius: 0.125rem; }
.v2 .day-item .still { transition: opacity 0.6s, transform 1.2s var(--ease); }
.v2 .day-item:hover .still { transform: scale(1.03); }
.v2 .day figcaption span { max-width: 30em; }
@media (max-width: 820px) {
  .v2 .day-lead .day-img { aspect-ratio: 4 / 3; }
  .v2 .day-lead .still { object-position: 42% 60%; }
  .v2 .day-lead figcaption { grid-template-columns: 1fr; }
  .v2 .day-grid { grid-template-columns: 1fr 1fr; }
  .v2 .day-item, .v2 .day-item:nth-child(-n+2) { grid-column: auto; }
  .v2 .day-item:first-child { grid-column: 1 / -1; }
}

/* Supporting type: step and service names in the sentence-case sans, so the condensed
   capitals are left for the hero, section titles and figures. */
.v2 .miles-steps h3, .v2 .svc h3 { font-family: var(--body); font-weight: 600; text-transform: none; letter-spacing: -0.015em; line-height: 1.12; }
.v2 .miles-steps h3 { font-size: clamp(1.625rem, 2.6vw, 2.25rem); margin: 0.5rem 0 0.875rem; }
.v2 .svc h3 { font-size: clamp(1.5rem, 2.4vw, 2.125rem); }

/* Every-mile sequence: the next photo arrives over the last one, so the frame never dips to
   black, and the steps waiting their turn stay readable. */
.v2 .stage-clip { transition: opacity 0.35s ease 0.35s; }
.v2 .stage-clip.is-on { z-index: 1; transition-delay: 0s; }
.v2 .stage-clip .still, .v2 .stage-clip video { transition: opacity 0.3s, transform 6s var(--ease); }
.v2 .miles-steps li { min-height: 50vh; opacity: 0.6; transition: opacity 0.25s; }
.v2 .miles-steps li.is-on { opacity: 1; }
@media (max-width: 820px) { .v2 .miles-steps li { min-height: 40vh; } }

/* Daylight intro (polish, 30 Nov 2026): the heading and copy are there the moment the section
   enters, with no reveal, so the off-white panel is never blank; the photo keeps its own fade.
   On desktop the paragraph sits to the right of the heading, level with its last line. */
.js .v2 .day .sec-head.reveal, .js .v2 .day .sec-head.reveal:not(.is-in) { opacity: 1; transform: none; transition: none; }
@media (min-width: 821px) {
  .v2 .day .sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); column-gap: clamp(2rem, 6vw, 7rem); align-items: end; max-width: none; }
  .v2 .day .sec-head .eyebrow { grid-column: 1 / -1; }
  .v2 .day .sec-head p:not(.eyebrow) { margin: 0 0 0.5rem; }
}
@media (max-width: 820px) {
  .v2 .day .sec-head h2 + p { margin-top: 1.5rem; }
}

/* The deliveries counter is a long number: on phones it takes the full first row. */
.v2 .stat b { white-space: nowrap; }
@media (max-width: 820px) {
  .v2 .stat-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 0.875rem; }
  .v2 .stat-wide b { font-size: 3rem; }
}

/* Proof row with four numbers: the numbers share the first row; the three facts sit on one
   quiet line beneath them. */
.v2 .stats { justify-content: space-between; }
.v2 .stat b { font-size: clamp(2.5rem, 3.8vw, 4rem); }
.v2 .proof-more { flex-basis: 100%; margin: 0; display: flex; flex-wrap: wrap; gap: 0.375rem 2.75rem; padding-top: 1.125rem; border-top: 1px solid var(--line); }
@media (min-width: 821px) and (max-width: 1280px) { .v2 .stat-wide { flex-basis: 100%; } }
@media (max-width: 820px) {
  .v2 .stat b { font-size: 2.5rem; }
  .v2 .stat-wide b { font-size: 3rem; }
  .v2 .proof-more { display: grid; gap: 0.25rem; padding-top: 1rem; }
}

/* The tracking row is back directly under the hero sentence (Gabe 30 Nov 2026), not in a strip
   along the base; the .hero-strip rules above are no longer used by the page. */

/* ---------- Coverage search (/coverage/): the site's own ZIP box and answer ---------- */
.zip.cov-form { display: flex; width: min(100%, 30rem); height: 3.5rem; margin-top: 1.75rem; }
.zip.cov-form input { flex: 1; min-width: 0; height: 100%; padding: 0 1.125rem; font-size: 1.0625rem; border-right: 0; border-radius: 0.125rem 0 0 0.125rem; }
.zip.cov-form button { height: 100%; padding: 0 1.5rem; border-radius: 0 0.125rem 0.125rem 0; white-space: nowrap; }
.zip.cov-form.is-busy button { opacity: 0.6; pointer-events: none; }
.cov-result { margin: clamp(2.5rem, 5vw, 4rem) var(--pad) 0; padding: clamp(1.5rem, 3vw, 2.75rem); border: 1px solid var(--line); border-radius: 0.1875rem; background: var(--deep); }
.cov-result[data-state="yes"] { border-top: 0.1875rem solid var(--red); }
.cov-result[data-state="wait"] { background: none; }
.cov-zip { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); margin-bottom: 0.875rem; }
.cov-title { font-size: clamp(2rem, 4.5vw, 3.75rem); font-weight: 900; line-height: 0.95; color: var(--paper); }
.cov-note { margin-top: 1rem; max-width: 36em; color: var(--text); }
.cov-result[data-state="wait"] .cov-note { margin: 0; }
.cov-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: clamp(1.5rem, 3vw, 2.25rem) 0 0; border-top: 1px solid var(--line); }
.cov-fact { padding: 1.125rem 1.5rem 1.125rem 0; border-bottom: 1px solid var(--line); }
.cov-fact.is-wide { grid-column: 1 / -1; }
.cov-fact dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.cov-fact dd { margin: 0.375rem 0 0; font-size: 1.0625rem; color: #fff; }
.cov-fact.is-wide:first-child dd { font: 800 clamp(1.5rem, 2.6vw, 2.125rem)/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.cov-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
@media (max-width: 820px) {
  .zip.cov-form { width: 100%; height: 3.25rem; }
  .zip.cov-form button { padding: 0 1.125rem; }
  .cov-facts { grid-template-columns: 1fr 1fr; }
  .cov-fact { padding-right: 1rem; }
}

/* Daylight lead photo on very wide screens (Gabe 30 Nov 2026: "gets cut off when in ultrawide").
   It ran edge to edge and was capped in height, which cropped the crew's heads and feet. Now the
   whole 16:9 frame always shows: it is as wide as the screen allows without growing taller than
   the window, and sits centred when the screen is wider than that. Normal screens keep it edge to edge. */
.v2 .day-lead .day-img { max-height: none; }
@media (min-aspect-ratio: 19/10) { /* wider than a normal 16:9 screen; on those it stays edge to edge */
  .v2 .day-lead .day-img { width: min(100%, calc(88svh * 16 / 9)); margin-inline: auto; }
}

/* Numbers under the hero: six counters in a grid, three across and two down. Each column is as wide
   as its longest number, so the second row lines up under the first. This replaces the single row
   plus a line of text; the earlier .v2 .stats rules above are overridden here. */
.v2 .stats { display: grid; grid-template-columns: auto auto auto; grid-template-areas: "a b c" "d e f"; justify-content: space-between; align-items: center; gap: 1.75rem clamp(2rem, 5vw, 5rem); padding: 2rem var(--pad) 2.25rem; }
.v2 .stat { flex-basis: auto; }
.v2 .s-a { grid-area: a; } .v2 .s-b { grid-area: b; } .v2 .s-c { grid-area: c; }
.v2 .s-d { grid-area: d; } .v2 .s-e { grid-area: e; } .v2 .s-f { grid-area: f; }
.v2 .stat span { max-width: 9em; }
@media (max-width: 960px) {
  /* narrower screens: the two long numbers take a full row each, the other four sit two by two,
     so professionals still falls under terminals */
  .v2 .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "a a" "d d" "b c" "e f"; justify-content: stretch; gap: 1.25rem 1rem; padding: 1.5rem var(--pad) 1.75rem; }
  .v2 .s-a, .v2 .s-d { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 0.875rem; } /* the long numbers: a full row each */
  .v2 .s-b, .v2 .s-e { grid-column: 1; } .v2 .s-c, .v2 .s-f { grid-column: 2; }
  .v2 .stat:not(.stat-wide) { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .v2 .stat b { font-size: 2.5rem; }
  .v2 .stat-wide b { font-size: 2.75rem; }
}

/* Tracking box while the tracking page loads (30 Nov 2026): the button says "Tracking…" with a turning ring. */
.zip.is-busy .btn { cursor: progress; opacity: 0.9; }
.zip.is-busy .btn::after { content: ""; display: inline-block; width: 0.875em; height: 0.875em; margin-left: 0.5em; vertical-align: -0.1em; border: 2px solid rgba(255, 255, 255, 0.45); border-top-color: #fff; border-radius: 50%; animation: zip-spin 0.7s linear infinite; }
@keyframes zip-spin { to { transform: rotate(360deg); } }

/* Coverage result: the section already has the side padding. A second one squeezed the box on wide, short windows (30 Nov). */
.cov-result { margin-left: 0; margin-right: 0; max-width: 68rem; }

/* Section title bar (home page, 30 Nov): the current section's headline stays under the menu.
   Desktop: headline type. Phone: a slim label. */
.secbar { position: fixed; left: 0; right: 0; z-index: 49; padding: 0.625rem var(--pad); background: rgba(4, 9, 15, 0.95); border-bottom: 1px solid var(--line); color: #fff; font: 800 1.75rem/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; opacity: 0; visibility: hidden; transform: translateY(-0.5rem); transition: opacity 0.25s, transform 0.25s, visibility 0.25s; pointer-events: none; }
.secbar.is-on { opacity: 1; visibility: visible; transform: none; }
.secbar span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.secbar span::before { content: ""; display: inline-block; width: 0.4em; height: 0.4em; margin-right: 0.5em; vertical-align: 0.15em; background: var(--red-hot); }
.v2 .miles-stage { top: calc(var(--secbar-b, 5.25rem) + 0.75rem); }
@media (max-width: 760px) { .secbar { padding-block: 0.5rem; font: 600 0.75rem/1.2 var(--body); letter-spacing: 0.14em; } }
@media (prefers-reduced-motion: reduce) { .secbar { transition: none; } }

/* Desktop: the pinned bar carries the real headline at its real size (30 Nov). */
.secbar.is-full { padding-block: 1rem; background: var(--ink); transform: none; transition: opacity 0.12s, visibility 0.12s; }
.secbar.is-full span { white-space: normal; overflow: visible; }
.secbar.is-full span::before { display: none; }
@media (min-width: 761px) { .v2 .miles-stage { height: min(72vh, 45rem, calc(100vh - var(--secbar-b, 5.25rem) - 2.25rem)); } }

/* Form sent (30 Nov) */
.form-msg.is-ok { border-color: var(--line); background: rgba(255, 255, 255, 0.04); }
.form.is-busy button[type="submit"] { opacity: 0.7; cursor: progress; }

/* The big 1.9% behind the quote shows whole, centred, not run off the bottom edge (Gabe 30 Nov: looked cut off). */
.quote.big::after { bottom: auto; top: 50%; transform: translateY(-50%); font-size: clamp(6rem, 18vw, 17rem); line-height: 0.9; }
.quote.big::after { -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.3); } /* outline easier to see (Gabe 30 Nov) */

/* Header logo the same size as the footer's (Gabe 1 Dec 2026); the bar grows with it. */
.brand img { width: 8.75rem; height: auto; }
/* Phones: a little smaller so Vendor Login stays on one line. */
@media (max-width: 760px) { .brand img { width: 7.25rem; height: auto; } .brand { flex: none; } .top-cta .btn { white-space: nowrap; } }
