/* American Miles — one shoot, one grade.
   Palette: night navy ground, white bodywork, brand red as the only accent. */
:root {
  --ink: #04070c;
  --night: #07111c;
  --navy: #0a2e4a;
  --navy-2: #0f3a5c;
  --steel: #8ea3b9;
  --line: rgba(160, 186, 212, 0.16);
  --white: #f3f6f9;
  --muted: #a9b8c7;
  --red: #db1932;
  --red-hot: #ff2b46;
  --green: #3ddc84;
  --amber: #f3a93b;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --f-logo: "Lexend", "Archivo", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--ink); color: var(--white);
  font-family: var(--f-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 400; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 4px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 920px; }
.pt0 { padding-top: 0 !important; }
.gap { height: clamp(40px, 6vw, 72px); }

/* ---------- Type ---------- */
h1, h2, h3, .h-display { font-family: var(--f-display); margin: 0; letter-spacing: -0.02em; line-height: 1.02; }
h1, .h-display { font-size: clamp(2.6rem, 7.4vw, 6.6rem); font-weight: 800; font-variation-settings: "wdth" 112; letter-spacing: -0.035em; line-height: 0.96; }
h2 { font-size: clamp(2.1rem, 5.2vw, 4.4rem); font-weight: 800; font-variation-settings: "wdth" 110; letter-spacing: -0.03em; }
.h2-md { font-size: clamp(1.8rem, 3.8vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--muted); max-width: 44ch; line-height: 1.55; }
.wide-lead { max-width: 60ch; }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); display: inline-flex; align-items: center; gap: 0.75em; margin: 0 0 1.25rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); }
.mile-tag { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.18em; color: var(--red-hot); display: block; margin-bottom: 1rem; }
.tag { display: inline-block; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid var(--line); padding: 7px 10px; color: var(--muted); margin: 0 0 1.25rem; }
.tag--red { border-color: var(--red); color: var(--white); background: rgba(219, 25, 50, 0.18); }
.req { color: var(--red-hot); margin-left: 2px; }

/* ---------- Buttons: restrained hover (tint + icon nudge, no lift) ---------- */
.btn {
  --bg: transparent; --fg: var(--white); --bd: rgba(243, 246, 249, 0.35);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0 1.35em; border-radius: 2px; overflow: hidden;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn:hover { border-color: rgba(243, 246, 249, 0.75); background-color: rgba(243, 246, 249, 0.06); }
.btn--primary { --bg: var(--red); --bd: var(--red); }
.btn--primary:hover { background-color: #c2142b; border-color: #c2142b; }
.btn--light { --bg: var(--white); --fg: var(--ink); --bd: var(--white); }
.btn--light:hover { background-color: #dfe6ed; border-color: #dfe6ed; }
.btn .ico { width: 18px; height: 18px; flex: none; transition: transform 0.3s var(--ease); }
.btn:hover .ico { transform: translateX(2px); }
.btn--sm { min-height: 42px; padding: 0 1em; font-size: 0.86rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.is-busy { color: transparent; }
.btn.is-busy::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--white); border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { color: var(--white); font-weight: 700; text-decoration: none; display: inline-flex; gap: 0.5em; align-items: center; min-height: 44px; }
.link-arrow::after { content: "→"; transition: transform 0.3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Ribbon / loader ---------- */
.ribbon { display: flex; height: 6px; width: 100%; }
.ribbon span:nth-child(1) { background: var(--navy-2); flex: 2; }
.ribbon span:nth-child(2) { background: var(--white); flex: 0.35; }
.ribbon span:nth-child(3) { background: var(--red); flex: 3; }
.loader { position: fixed; inset: 0; z-index: 300; background: var(--ink); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.js-loading .loader { display: flex; }
.loader img { width: 120px; animation: wing 0.9s var(--ease) both; }
.loader .ribbon { width: 180px; transform-origin: left; animation: ribbon 0.9s var(--ease) both; }
.loader.is-done { opacity: 0; transition: opacity 0.45s ease; pointer-events: none; }
@keyframes wing { from { opacity: 0; transform: translateX(-30px) skewX(-12deg); } to { opacity: 1; transform: none; } }
@keyframes ribbon { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); display: flex; align-items: center; transition: background 0.35s, backdrop-filter 0.35s; }
.site-header.is-solid { background: rgba(4, 7, 12, 0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; max-width: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); flex: none; min-height: 44px; }
.logo img { width: 44px; }
.logo-word { font-family: var(--f-logo); font-weight: 600; font-size: 1.28rem; letter-spacing: -0.02em; line-height: 1; }
.logo-word small { display: block; font-family: var(--f-mono); font-size: 0.5rem; letter-spacing: 0.2em; color: var(--steel); margin-top: 4px; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav > a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.94rem; padding: 10px 11px; min-height: 44px; display: inline-flex; align-items: center; }
.nav > a:hover, .nav > a[aria-current="page"] { color: var(--white); }
.nav > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); }
.nav .nav-apply { flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1.1; margin-left: 8px; padding: 6px 12px; border-left: 2px solid var(--red); background: rgba(219, 25, 50, 0.12); color: var(--white); }
.nav-apply strong { font-size: 0.92rem; }
.nav-apply small { font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.1em; color: var(--steel); text-transform: uppercase; }
.header-ctas { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.m-ctas { display: none; margin-left: auto; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 2px; }
.icon-btn .ico { width: 20px; height: 20px; }
.menu-btn, .menu-close { min-height: 44px; padding: 0 14px; background: none; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; font-weight: 700; font-size: 0.9rem; }
@media (max-width: 1399px) {
  .nav, .header-ctas { display: none; }
  .m-ctas { display: flex; }
}
@media (max-width: 479px) {
  .site-header .logo-word { display: none; }
  .m-ctas .btn--sm { padding: 0 0.8em; }
}
.mobile-menu { position: fixed; inset: 0; z-index: 200; background: var(--ink); padding: 0 var(--gutter) 40px; display: flex; flex-direction: column; overflow-y: auto; }
.mobile-menu__top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.mobile-menu nav a { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-family: var(--f-display); font-weight: 800; font-size: 2rem; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); font-variation-settings: "wdth" 110; }
.mobile-menu nav a[aria-current="page"] { color: var(--red-hot); }
.mobile-menu nav small { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--steel); font-weight: 400; text-transform: uppercase; }
.mobile-menu__ctas { display: grid; gap: 10px; margin-top: 24px; }

/* ---------- Odometer ---------- */
.odometer { position: fixed; right: 20px; top: 50%; z-index: 50; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.18em; color: var(--steel); pointer-events: none; opacity: 0; transition: opacity 0.4s; }
.odometer.is-on { opacity: 1; }
.odometer .num { font-size: 1.4rem; color: var(--white); letter-spacing: 0; }
.odometer .track { width: 2px; height: 120px; background: var(--line); position: relative; overflow: hidden; }
.odometer .track i { position: absolute; inset: 0; background: var(--red); transform-origin: top; transform: scaleY(var(--p, 0)); }
@media (max-width: 1024px) { .odometer { display: none; } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(88px, 12vw, 170px) 0; }
.section--tight { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.1fr 0.9fr; align-items: end; } }
.split-grid { display: grid; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (min-width: 960px) { .split-grid { grid-template-columns: 1fr 1fr; } .split-grid--text { align-items: start; } }

/* ---------- One grade for every photo ---------- */
.grade { position: relative; overflow: hidden; background: var(--night); }
.grade img { width: 100%; height: 100%; object-fit: cover; }
.grade::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 50%, rgba(4, 7, 12, 0.55) 100%), linear-gradient(180deg, rgba(4, 7, 12, 0) 55%, rgba(4, 7, 12, 0.75) 100%); }
.grade--day img { filter: saturate(0.55) brightness(0.72) contrast(1.12) hue-rotate(-6deg); }
.grade--day::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(10, 46, 74, 0.55) 0%, rgba(7, 17, 28, 0.15) 45%, rgba(4, 7, 12, 0.25) 100%); mix-blend-mode: multiply; }

/* ---------- Motion: reveals ---------- */
.js .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* The first screen's copy rises in with CSS, not GSAP: it's the page's largest paint, so it mustn't wait for the animation scripts.
   --intro (set in the page head) is when the headline starts: later behind the first-visit loader or the page-transition curtain. */
@keyframes hero-in { from { opacity: 0; transform: translate3d(0, 40px, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .js :is(.hero__content, .page-hero__content) :is(p, .btn-row, .glance, .tag):not(h1 *) { animation: hero-in 1.1s var(--ease) calc(var(--intro, 0.1s) + 0.35s) both; }
  .js :is(.hero__content, .page-hero__content) :is(p, .btn-row, .glance, .tag):not(h1 *):nth-child(3) { animation-delay: calc(var(--intro, 0.1s) + 0.45s); }
  .js :is(.hero__content, .page-hero__content) :is(p, .btn-row, .glance, .tag):not(h1 *):nth-child(n+4) { animation-delay: calc(var(--intro, 0.1s) + 0.55s); }
}
/* Staggered headlines: each word rises out of its own mask */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split .w > span { display: inline-block; }
.js .split .w > span { transform: translate3d(0, 105%, 0); transition: transform 0.95s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .split.is-in .w > span { transform: none; }
/* Diagonal photo reveal: a skewed panel wipes off the image */
.diag { isolation: isolate; }
.js .diag > img { transform: scale(1.12); transition: transform 1.4s var(--ease); }
.js .diag.is-in > img { transform: scale(1); }
.js .diag::before { content: ""; position: absolute; inset: -10% -40%; z-index: 3; background: var(--ink); transform: translate3d(0, 0, 0) skewX(-18deg); transition: transform 1.15s cubic-bezier(0.7, 0, 0.2, 1); transition-delay: var(--d, 0s); mix-blend-mode: normal; }
.js .diag.is-in::before { transform: translate3d(110%, 0, 0) skewX(-18deg); }
.js .grade--day.diag::before { background: var(--ink); }

/* ---------- Home hero ---------- */
.hero { height: 100vh; height: 100svh; }
@media (prefers-reduced-motion: no-preference) { .hero { height: 170vh; height: 170svh; } }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__media { position: absolute; inset: 0; transform: scale(calc(1.02 + var(--p, 0) * 0.08)); will-change: transform; }
.hero__media img, .hero__frames { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero__frames { opacity: 0; transition: opacity 0.6s; }
.hero__frames.is-live { opacity: 1; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 7, 12, 0.94) 0%, rgba(4, 7, 12, 0.78) 30%, rgba(4, 7, 12, 0.2) 55%, rgba(4, 7, 12, 0) 70%), linear-gradient(180deg, rgba(4, 7, 12, 0.5) 0%, rgba(4, 7, 12, 0) 25%, rgba(4, 7, 12, 0) 60%, var(--ink) 100%); }
.hero__dim { position: absolute; inset: 0; background: var(--ink); opacity: calc(clamp(0, (var(--p, 0) - 0.75) * 4, 1) * 0.7); }
.hero__content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(44px, 9vh, 110px); transform: translate3d(0, calc(var(--p, 0) * -10vh), 0); opacity: calc(1 - clamp(0, (var(--p, 0) - 0.55) * 3, 1)); }
.hero h1 { max-width: 11ch; margin-bottom: 0.32em; }
.hero h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--white); }
.hero__tagline { font-family: var(--f-mono); font-size: clamp(0.72rem, 1vw, 0.82rem); letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); max-width: 62ch; margin-bottom: 1rem; }
.hero .lead { max-width: 36ch; margin-bottom: 1.8rem; color: var(--white); }
@media (max-width: 899px) {
  .hero__shade { background: linear-gradient(180deg, rgba(4, 7, 12, 0.6) 0%, rgba(4, 7, 12, 0.2) 16%, rgba(4, 7, 12, 0.7) 36%, rgba(4, 7, 12, 0.95) 58%, var(--ink) 100%); }
  .hero__media img, .page-hero__media img { object-position: 72% 30%; }
}

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; min-height: 86vh; min-height: 86svh; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; transform: translate3d(0, calc(var(--p, 0) * 8%), 0) scale(1.06); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 50%; }
.page-hero .hero__shade { z-index: 1; }
.page-hero__content { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 60px); padding-bottom: clamp(56px, 9vh, 110px); }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 5.2rem); max-width: 14ch; margin-bottom: 0.35em; }
.page-hero .lead { margin-bottom: 1.6rem; }
.page-hero--plain { min-height: 0; }
.page-hero--plain .page-hero__content { padding-bottom: 32px; }
@media (min-width: 900px) {
  .page-hero__media { left: 30%; }
  .page-hero__media::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; z-index: 1; background: linear-gradient(90deg, var(--ink), rgba(4, 7, 12, 0)); }
  .page-hero .hero__shade { background: linear-gradient(90deg, var(--ink) 0%, rgba(4, 7, 12, 0.85) 30%, rgba(4, 7, 12, 0.1) 60%, rgba(4, 7, 12, 0) 75%), linear-gradient(180deg, rgba(4, 7, 12, 0.4) 0%, rgba(4, 7, 12, 0) 30%, rgba(4, 7, 12, 0) 70%, var(--ink) 100%); }
}

/* ---------- Dispatch ---------- */
.parallax-frame { aspect-ratio: 1 / 1; }
.parallax-frame img { object-position: 40% 50%; }
.js .parallax-frame.is-in img { transform: translate3d(0, calc((var(--p, 0.5) - 0.5) * -6%), 0) scale(1.08); }
@media (min-width: 960px) { .parallax-frame--land { aspect-ratio: 4 / 3; } }
.status-label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.16em; color: var(--green); margin-bottom: 1.25rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s 4; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); } 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.split-grid h2 { margin-bottom: 0.4em; }

/* ---------- Fleet ---------- */
.lineup { display: grid; gap: 16px; }
@media (min-width: 760px) { .lineup { grid-template-columns: repeat(3, 1fr); } }
.truck-card { border: 1px solid var(--line); background: var(--night); overflow: hidden; }
.truck-card .grade { aspect-ratio: 3 / 2; }
.truck-card__body { padding: 18px 22px 22px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.truck-card__no { font-family: var(--f-mono); font-size: 0.75rem; color: var(--steel); letter-spacing: 0.08em; }
.fleet-line { margin-top: 24px; font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--steel); text-transform: uppercase; }

/* ---------- Reveal moment: dock door rises on the full rig ---------- */
.dock { height: 100vh; }
@media (prefers-reduced-motion: no-preference) { .dock { height: 240vh; } }
.dock__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.dock__media { position: absolute; inset: 0; transform: scale(calc(1.2 - var(--p2, 0) * 0.2)); }
.dock__media img { width: 100%; height: 100%; object-fit: cover; object-position: 18% 50%; }
.dock__door { position: absolute; inset: 0; z-index: 2; background: repeating-linear-gradient(180deg, #121c27 0 54px, #0b131c 54px 58px, #1a2633 58px 60px), #0e1822; transform: translate3d(0, calc(var(--p1, 0) * -100%), 0); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7); will-change: transform; }
.dock__door::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: repeating-linear-gradient(-45deg, var(--amber) 0 16px, #111 16px 32px); }
.dock__label { position: absolute; z-index: 3; left: 0; right: 0; top: 50%; transform: translate3d(0, -50%, 0); text-align: center; pointer-events: none; }
.dock__label .h-display { font-size: clamp(3rem, 11vw, 10rem); transform: scale(calc(1 + var(--p1, 0) * 0.2)); opacity: calc(1 - var(--p2, 0) * 1.4); text-shadow: 0 10px 50px rgba(0, 0, 0, 0.5); }
.dock__caption { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 6vh, 64px); opacity: calc((var(--p2, 0) - 0.4) * 2.5); transform: translate3d(0, calc((1 - var(--p2, 0)) * 30px), 0); }
.dock__caption dl { display: flex; gap: clamp(24px, 5vw, 64px); margin: 0; flex-wrap: wrap; }
.dock__caption dt { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.16em; color: var(--steel); text-transform: uppercase; }
.dock__caption dd { margin: 4px 0 0; font-weight: 800; font-size: clamp(1.2rem, 2.4vw, 1.8rem); font-variation-settings: "wdth" 110; text-transform: uppercase; }

/* ---------- Service floors ---------- */
.floors { border-top: 1px solid var(--line); }
.floor { display: grid; gap: 10px 40px; padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--line); position: relative; isolation: isolate; }
.floor::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(219, 25, 50, 0.12), transparent 70%); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease); }
.floor:hover::before, .floor:focus-within::before { transform: scaleX(1); }
@media (min-width: 900px) { .floor { grid-template-columns: 80px 1fr 1.1fr auto; align-items: center; } }
.floor__no { font-family: var(--f-mono); color: var(--red-hot); font-size: 0.85rem; letter-spacing: 0.1em; }
.floor h3 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); font-weight: 800; font-variation-settings: "wdth" 110; letter-spacing: -0.03em; }
.floor p { margin: 0; color: var(--muted); }
.floor__links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Map ---------- */
.map-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .map-grid { grid-template-columns: 1.5fr 1fr; } }
.map { margin: 0; position: relative; }
/* Truck and trip clock: only when js/motion.js drives them along the loop */
.map .rig { display: none; }
.has-gsap .map .rig { display: inline; }
.map .rig rect { fill: var(--white); }
.map .rig .rig__cab { fill: var(--red-hot); }
.map-clock:not([hidden]) { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; gap: 4px; font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.12em; color: var(--steel); text-transform: uppercase; pointer-events: none; padding: 10px 14px 10px 0; background: linear-gradient(90deg, rgba(5, 9, 15, 0.92) 70%, rgba(5, 9, 15, 0)); }
.map-clock b { font-size: clamp(1.1rem, 2.2vw, 1.6rem); color: var(--white); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
@media (max-width: 699px) {
  .map-clock:not([hidden]) { position: static; margin-bottom: 14px; background: none; padding: 0; }
}
.map svg { width: 100%; height: auto; overflow: visible; }
.map .dot { fill: rgba(142, 163, 185, 0.42); }
/* 94 dedicated routes: thin and faint so the network reads as a whole and the red loop stays on top. */
.map .lane { fill: none; stroke: rgba(190, 208, 226, 0.32); stroke-width: 1; }
.map .stop { fill: rgba(232, 240, 248, 0.85); }
.map .loop { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.map .loop-glow { fill: none; stroke: var(--red); stroke-width: 12; opacity: 0.18; filter: blur(6px); }
.map .city circle { fill: var(--white); }
.map .city.hub circle { fill: var(--red-hot); }
.map .city text { fill: var(--muted); font-family: var(--f-mono); font-size: 13px; }
.map .city.hub text { fill: var(--white); font-weight: 700; }
.map .lbl-m { display: none; }
.map .pulse { fill: none; stroke: var(--red-hot); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-out 4; }
@keyframes ring { from { transform: scale(0.4); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
@media (max-width: 700px) {
  .map .lbl-d { display: none; }
  .map .city.hub .lbl-m { display: inline; font-size: 30px; }
  .map .loop { stroke-width: 5; }
}
.map-legend { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 18px; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--steel); text-transform: uppercase; }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.map-legend i { width: 22px; height: 3px; background: var(--red); }
.map-legend i.dash { height: 1px; background: rgba(190, 208, 226, 0.6); }
.lane-text h3 { font-size: 1rem; font-family: var(--f-mono); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); margin: 0 0 12px; }
.lane-text h3:not(:first-child) { margin-top: 32px; }
.lanes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lanes li { display: grid; grid-template-columns: 62px 1fr auto; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.lanes li b { font-family: var(--f-mono); font-size: 0.7rem; color: var(--red-hot); font-weight: 500; letter-spacing: 0.06em; }
.lanes li small { display: block; color: var(--steel); font-size: 0.8rem; margin-top: 4px; line-height: 1.5; }
.lanes li > span:last-child { font-family: var(--f-mono); font-size: 0.75rem; color: var(--steel); white-space: nowrap; }
.lanes li.reset b, .lanes li.reset span { color: var(--green); }
.loop-summary { margin: 14px 0 0; font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--white); }
.route-summary { margin: 0 0 12px; font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--white); }
.route-list { border-top: 1px solid var(--line); }
.route-list summary { cursor: pointer; padding: 12px 0; min-height: 44px; font-weight: 600; color: var(--white); }
.route-list summary:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }
.route-list h4 { margin: 18px 0 6px; font-family: var(--f-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); }
.route-list .lanes li { grid-template-columns: 34px 1fr auto; padding: 8px 0; font-size: 0.9rem; }

/* ---------- Clients / facts / models ---------- */
.clients { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 0; margin: 0; }
@media (min-width: 640px) { .clients { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .clients { grid-template-columns: repeat(6, 1fr); } }
.clients li { list-style: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 124px; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients img { max-height: 38px; width: auto; max-width: 100%; filter: grayscale(1) invert(1) brightness(1.6); opacity: 0.72; transition: opacity 0.3s; }
.clients img[src*="ups"] { max-height: 56px; }
.clients li:hover img { opacity: 1; }
.clients span { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.08em; color: var(--steel); text-transform: uppercase; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts div { background: var(--ink); padding: clamp(24px, 3vw, 40px); }
.facts dt { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; font-variation-settings: "wdth" 115; letter-spacing: -0.04em; }
.facts dd { margin: 12px 0 0; font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.16em; color: var(--steel); text-transform: uppercase; }
.models { margin-top: clamp(48px, 7vw, 96px); }
.wide { aspect-ratio: 16 / 9; margin: 0; }
.wide--cine { aspect-ratio: 21 / 9; }
@media (max-width: 700px) { .wide, .wide--cine { aspect-ratio: 4 / 3; } }
.models__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; margin: 22px 0 0; }
.models__row div { display: flex; align-items: baseline; gap: 12px; }
.models__row dt { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; font-variation-settings: "wdth" 115; }
.models__row dd { margin: 0; font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.16em; color: var(--steel); text-transform: uppercase; }
.models__row p { margin: 0; font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.25rem); }

/* ---------- Depot ---------- */
.depot { height: 100vh; }
@media (prefers-reduced-motion: no-preference) { .depot { height: 140vh; } }
.depot__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.depot__stage .grade { position: absolute; inset: 0; }
.depot__stage img { transform: scale(calc(1.18 - var(--p, 0) * 0.14)); }
.depot__stage .grade::after { background: linear-gradient(0deg, rgba(4, 7, 12, 0.96) 0%, rgba(4, 7, 12, 0.7) 32%, rgba(4, 7, 12, 0) 62%), linear-gradient(90deg, rgba(4, 7, 12, 0.6) 0%, rgba(4, 7, 12, 0) 50%); }
.depot__copy { position: absolute; inset: auto 0 0 0; z-index: 2; padding-bottom: clamp(48px, 10vh, 110px); }
.depot__copy h2 { max-width: 12ch; margin-bottom: 0.4em; transform: translate3d(0, calc((1 - var(--p, 0)) * 36px), 0); }

/* ---------- Closing call to action ---------- */
.final { position: relative; min-height: 88vh; min-height: 88svh; display: flex; align-items: center; overflow: hidden; }
.final .grade { position: absolute; inset: 0; }
.final .grade img { object-position: 70% 50%; transform: translate3d(0, calc((var(--p, 0.5) - 0.5) * 6%), 0) scale(1.08); }
.final__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(4, 7, 12, 0.94) 0%, rgba(4, 7, 12, 0.65) 45%, rgba(4, 7, 12, 0.2) 100%); }
.final__copy { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 120px; }
.final__copy h2 { font-size: clamp(2.6rem, 6.6vw, 6rem); max-width: 12ch; margin-bottom: 0.4em; }
.final__copy .lead { margin-bottom: 2rem; color: var(--white); }
.final .lead a { color: inherit; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); border-top: 1px solid var(--line); padding-top: clamp(64px, 9vw, 120px); }
.footer-logo { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); text-decoration: none; margin-bottom: clamp(48px, 7vw, 88px); }
.footer-logo img { width: clamp(64px, 12vw, 160px); }
.footer-logo .logo-word { font-size: clamp(2.3rem, 9.5vw, 8.4rem); letter-spacing: -0.04em; }
.footer-logo .logo-word small { font-size: clamp(0.55rem, 1.2vw, 0.95rem); margin-top: 10px; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 48px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.foot-h { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.16em; color: var(--steel); text-transform: uppercase; font-weight: 500; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid a { text-decoration: none; color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }
.footer-grid a:hover { color: var(--white); }
.footer-grid address { font-style: normal; color: var(--muted); margin-bottom: 8px; }
.footer-grid p { margin: 0; }
.footer-grid .big { font-size: 1.15rem; color: var(--white); font-weight: 700; }
.social { display: flex; gap: 10px; }
.social a { width: 44px; height: 44px; border: 1px solid var(--line); justify-content: center; border-radius: 2px; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-base { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding: 16px 0 20px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--steel); }
.footer-base nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-base a { color: var(--steel); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer-base a:hover { color: var(--white); }

/* ---------- Cards / services / careers ---------- */
.cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--ink); padding: clamp(24px, 3vw, 40px); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; }
.card__no { font-family: var(--f-mono); font-size: 0.75rem; color: var(--red-hot); letter-spacing: 0.12em; display: block; margin-bottom: 20px; }
.service { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(72px, 10vw, 130px) 0; border-top: 1px solid var(--line); scroll-margin-top: var(--header-h); }
@media (min-width: 960px) { .service { grid-template-columns: 1fr 1fr; } .service--rev .service__media { order: 2; } }
.service__media { aspect-ratio: 4 / 3; }
/* Services: large 01 / 02 / 03 numbers from tablet-landscape up. */
@media (min-width: 960px) {
  .service .mile-tag { font-family: var(--f-display); font-size: clamp(4.5rem, 8vw, 7.5rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.02em; margin-bottom: 0.25em; }
}
.service h2 { margin-bottom: 0.5em; }
.equip { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 8px 0 26px; font-weight: 700; }
.equip b { font-family: var(--f-mono); font-size: 0.7rem; color: var(--steel); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.position { display: grid; gap: 20px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); background: linear-gradient(135deg, rgba(10, 46, 74, 0.35), transparent 60%); }
@media (min-width: 900px) { .position { grid-template-columns: 1fr auto; align-items: center; } }
.position h3 { font-size: clamp(1.4rem, 2.8vw, 2.1rem); font-weight: 800; font-variation-settings: "wdth" 108; margin-bottom: 8px; }
.position p { margin: 0; }
.newbie { margin-top: 28px; padding: 22px 24px; border-left: 3px solid var(--red); background: rgba(219, 25, 50, 0.08); }
.newbie h3 { margin-bottom: 6px; }
.newbie p { margin: 0; color: var(--muted); }
.req-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 720px) { .req-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .req-list { grid-template-columns: repeat(3, 1fr); } }
.req-list li { background: var(--ink); padding: 22px 24px; display: flex; gap: 14px; align-items: flex-start; font-weight: 700; }
.req-list .ico { width: 22px; height: 22px; color: var(--red-hot); flex: none; }
.eeo { margin-top: 28px; color: var(--muted); max-width: 70ch; }

/* Departure board */
.board { border: 1px solid var(--line); background: #05090f; font-family: var(--f-mono); overflow-x: auto; }
.board table { width: 100%; border-collapse: collapse; min-width: 560px; }
.board caption { text-align: left; padding: 16px 20px; font-size: 0.72rem; letter-spacing: 0.16em; color: var(--steel); text-transform: uppercase; border-bottom: 1px solid var(--line); }
.board th { text-align: left; font-weight: 500; font-size: 0.68rem; letter-spacing: 0.14em; color: var(--steel); text-transform: uppercase; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.board td { padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--amber); }
.board td.city { color: var(--white); text-transform: uppercase; }
.board tr.reset td { color: var(--green); }
.board td.status { color: var(--green); text-transform: uppercase; }
.board td.status.is-pending { color: var(--amber); }
.has-gsap .board .flap { opacity: 1; transform: none; transition: none; }
.board-gap { margin-top: clamp(40px, 6vw, 72px); }
.board .flap { display: inline-block; }
.js .board .flap { opacity: 0; transform: rotateX(90deg); transition: transform 0.5s var(--ease), opacity 0.5s; transition-delay: var(--d, 0s); }
.js .board.is-in .flap { opacity: 1; transform: none; }
.board__summary { margin: 0; padding: 14px 20px; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--white); }

/* ---------- Forms ---------- */
.form-shell { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(15, 58, 92, 0.25), rgba(4, 7, 12, 0) 40%); padding: clamp(20px, 4vw, 44px); margin-bottom: 24px; scroll-margin-top: calc(var(--header-h) + 16px); }
.form-title { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 16px; }
.form-progress { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); margin-bottom: 8px; }
.form-steps { display: flex; gap: 6px; margin-bottom: 24px; }
.form-steps span { flex: 1; height: 3px; background: var(--line); }
.form-steps span.is-active { background: var(--red); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.group { padding-top: 8px; margin-bottom: 32px; }
.group > legend { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.16em; color: var(--steel); text-transform: uppercase; margin-bottom: 18px; padding: 0; }
.fields { display: grid; gap: 18px; }
@media (min-width: 640px) { .fields--2 { grid-template-columns: 1fr 1fr; } .fields .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 7px; align-content: start; }
.field > label, .field > legend { font-size: 0.88rem; font-weight: 600; color: var(--white); padding: 0; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; font-size: 16px; background: rgba(4, 7, 12, 0.6); border: 1px solid rgba(160, 186, 212, 0.3); border-radius: 2px; color: var(--white); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--white); }
.field [aria-invalid="true"] { border-color: var(--red-hot); }
.hint { font-size: 0.8rem; color: var(--steel); font-weight: 400; }
.err { margin: 0; min-height: 0; font-size: 0.85rem; color: var(--red-hot); }
.err:empty { display: none; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 0.92rem; color: var(--muted); min-height: 44px; padding: 10px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 2px 0 0; accent-color: var(--red); }
.check a { color: var(--white); }
.checks { display: grid; gap: 0 18px; }
.screener { display: grid; gap: 4px; }
.doc__help { margin: 6px 0 0; }
.doc__help a { color: var(--white); }
@media (min-width: 640px) { .checks { grid-template-columns: repeat(3, 1fr); } }
.careers-hint { margin: 0; padding: 12px 14px; border-left: 3px solid var(--red); background: rgba(219, 25, 50, 0.1); }
.careers-hint a { color: var(--white); font-weight: 700; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 26px; align-items: center; }
.form-actions .hint { margin: 0; }
.form-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; margin-bottom: 20px; border: 1px solid var(--red); background: rgba(219, 25, 50, 0.14); }
.form-banner p { margin: 0; flex: 1 1 260px; }
.form-done { outline: none; }
.form-done h3 { margin-bottom: 8px; }
.form-done a { color: var(--white); }
.form-status { margin-top: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.docs { display: grid; gap: 14px; }
.doc { border: 1px dashed rgba(160, 186, 212, 0.35); padding: 16px 18px; display: grid; gap: 10px; }
.doc.has-files { border-style: solid; }
.doc.is-later .doc__input { display: none; }
.doc__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; }
.doc__head label { font-weight: 700; }
.doc__input { width: 100%; min-height: 48px; padding: 10px; background: rgba(4, 7, 12, 0.6); border: 1px solid rgba(160, 186, 212, 0.3); border-radius: 2px; }
.doc__files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.doc__file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 12px; background: rgba(15, 58, 92, 0.35); }
.doc__name { flex: 1 1 160px; overflow-wrap: anywhere; font-size: 0.92rem; }
.doc__file progress { flex: 1 1 120px; height: 6px; accent-color: var(--red); }
.doc__ok { color: var(--green); font-weight: 700; font-size: 0.88rem; }
.doc__file.is-error { background: rgba(219, 25, 50, 0.14); }
.doc__replace { background: none; border: 0; color: var(--white); text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0 4px; }
.help summary { cursor: pointer; color: var(--white); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.help p { color: var(--muted); margin: 4px 0 0; font-size: 0.92rem; }

.contact-grid { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1.3fr 0.7fr; align-items: start; } }
.details { display: grid; gap: 28px; position: sticky; top: calc(var(--header-h) + 24px); }
.details dl { margin: 0; display: grid; gap: 22px; }
.details dt { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.16em; color: var(--steel); text-transform: uppercase; }
.details dd { margin: 6px 0 0; font-size: 1.1rem; }
.details dd a { text-decoration: none; }
.details .big { font-size: 1.6rem; font-weight: 800; }
.details .grade { aspect-ratio: 4 / 3; display: none; }
@media (min-width: 1000px) { .details .grade { display: block; } }
.page-hero--plain .lead a { color: var(--white); }

.notice { padding: clamp(130px, 20vh, 200px) 0 clamp(80px, 12vh, 140px); min-height: 80vh; display: flex; align-items: center; }
.notice h1 { font-size: clamp(2.4rem, 6vw, 5rem); max-width: 16ch; margin-bottom: 0.4em; }
.notice .lead { max-width: 52ch; }
.notice .btn-row { margin-top: 24px; }
.notice p a { color: var(--white); }
.big-404 { font-family: var(--f-display); font-weight: 800; font-size: clamp(6rem, 24vw, 20rem); line-height: 0.85; color: transparent; -webkit-text-stroke: 1.5px var(--steel); font-variation-settings: "wdth" 120; letter-spacing: -0.05em; }
.links-404 { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.legal { padding-top: calc(var(--header-h) + 72px); }
.prose { max-width: 72ch; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 0.4em; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 2em 0 0.6em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose p, .prose li { color: var(--muted); }
.prose a, .prose b { color: var(--white); }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; max-width: 560px; background: var(--night); border: 1px solid var(--line); padding: 20px; display: grid; gap: 14px; }
.cookie p { margin: 0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .hero__stage, .dock__stage, .depot__stage { position: relative; }
  .dock__door, .js .diag::before { display: none; }
  .dock__label .h-display, .dock__caption, .hero__content { opacity: 1 !important; transform: none !important; }
  .hero__dim { opacity: 0; }
}
.tm-note { margin: 0; padding: 0 0 18px; font-size: 0.78rem; color: var(--steel); max-width: 90ch; }
.collect-note { margin: 16px 0 0; font-size: 0.82rem; color: var(--steel); }
.collect-note a { color: var(--white); }
.job-link { text-decoration: none; }
.job-link:hover { text-decoration: underline; }
.position .link-arrow { margin-top: 6px; }
.job ul { padding-left: 1.2em; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 18px; }
.share__label { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); margin-right: 4px; }
.share__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 2px; background: none; color: var(--white); font-size: 0.86rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: border-color 0.25s, background-color 0.25s; }
.share__link:hover { border-color: rgba(243, 246, 249, 0.6); background-color: rgba(243, 246, 249, 0.05); }
.share__status { font-size: 0.85rem; color: var(--green); }
.prose .share__link { color: var(--white); }
.apply-section { scroll-margin-top: var(--header-h); }
.apply-section .lead { margin-bottom: 24px; }

/* ---------- Job page ---------- */
.glance { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 8px 0 28px; max-width: 980px; }
.glance { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 639px) { .glance div { padding: 10px 12px; } .glance dd { font-size: 0.88rem; } .job-hero h1 { font-size: 2.2rem; } }
@media (min-width: 1000px) { .glance { grid-template-columns: repeat(3, 1fr); } }
.glance div { background: var(--ink); padding: 14px 16px; }
.glance dt { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.glance dd { margin: 4px 0 0; font-weight: 700; line-height: 1.35; }
.job-layout { display: grid; gap: 48px; padding-bottom: clamp(64px, 9vw, 120px); }
.job-main { min-width: 0; }
.job-main .prose { max-width: 68ch; }
.job-aside { min-width: 0; scroll-margin-top: calc(var(--header-h) + 12px); container-type: inline-size; }
.apply-title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 16px; }
.apply-call { margin: 14px 0 0; }
.apply-call a { color: var(--white); }
/* Job pages: nothing may cover the application form, so the header scrolls away with the page
   instead of floating over it (scroll targets then only need a small gap). */
body:has([data-job-page]) .site-header { position: absolute; }
html:has([data-job-page]) { scroll-padding-top: 16px; }
body:has([data-job-page]) .form-shell { scroll-margin-top: 16px; }
/* Wide screens: details on the left; the form stays in view in the right column while the page scrolls,
   and scrolls inside its column when a step is taller than the screen. */
@media (min-width: 960px) {
  .job-layout { grid-template-columns: minmax(0, 1fr) clamp(440px, 45%, 600px); align-items: start; gap: 48px; }
  .job-aside {
    position: sticky; top: 16px;
    max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
    padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  }
  .job-aside .form-shell { padding: 22px; scroll-margin-top: 0; }
  .job-aside .checks { grid-template-columns: 1fr 1fr; }
}
/* The form column decides its own field layout: paired fields once it's wide enough. */
@container (max-width: 499px) { .job-aside .fields--2 { grid-template-columns: 1fr; } }
@container (min-width: 500px) { .job-aside .checks { grid-template-columns: repeat(3, 1fr); } }
.apply-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(4, 7, 12, 0.94); border-top: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transform: translateY(110%); transition: transform 0.35s var(--ease); }
.apply-bar .btn { flex: 1; }
.apply-bar .icon-btn { width: 48px; height: 48px; flex: none; }
.apply-bar.is-on { transform: none; }
@media (min-width: 960px) { .apply-bar { display: none; } }
.form-reassure { margin: 0 0 14px; font-size: 0.92rem; color: var(--white); }
.form-reassure::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; background: var(--green); border-radius: 50%; vertical-align: middle; }
.consents { margin-top: 22px; }
.form-shell .group[data-step] { margin-bottom: 0; }

/* ================= GSAP motion layer (js/motion.js) ================= */
/* Headlines stay hidden only until they are split (site.js or GSAP), so they never flash unstyled. */
.js .split:not(.is-split) { visibility: hidden; }
/* GSAP drives .reveal itself: no CSS transition fighting its tweens. */
.has-gsap .reveal { transition: none; }

/* Page-transition curtain. The animation is only a safety net if GSAP never arrives. */
/* It sweeps across like a passing truck: in from the left on leaving, out to the right on arrival. */
.curtain { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--red); transform: translateX(-101%); pointer-events: none; }
.curtain img { width: 96px; height: auto; filter: brightness(0) invert(1); }
.curtain__lane { position: absolute; left: 0; right: 0; top: calc(50% + 64px); height: 6px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0 56px, transparent 56px 112px); }
.curtain-on .curtain__lane, .curtain.is-moving .curtain__lane { animation: lane-run 0.3s linear infinite; }
@keyframes lane-run { to { background-position: -112px 0; } }
.curtain-on .curtain { transform: none; animation: curtain-safety 0.01s 2.5s forwards; }
@keyframes curtain-safety { to { transform: translateX(101%); } }


/* Big moving text band. Without GSAP it simply sits still. */
.band { overflow: hidden; padding: clamp(28px, 5vw, 64px) 0; border-block: 1px solid var(--line); white-space: nowrap; }
.band__track { display: inline-flex; will-change: transform; }
.band__track span { display: inline-flex; align-items: center; font-family: var(--f-display, inherit); font-weight: 800; font-size: clamp(3rem, 11vw, 9.5rem); line-height: 1; letter-spacing: -0.02em; font-variation-settings: "wdth" 125; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.5px rgba(232, 240, 248, 0.55); }
.band__track i { font-style: normal; color: var(--red); -webkit-text-stroke: 0; font-size: 0.45em; margin: 0 0.6em; }

/* Client logos as an endless strip (built by js/motion.js). */
.marquee { overflow: hidden; border-block: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee .clients { display: flex; flex-wrap: nowrap; border: 0; }
.marquee .clients li { width: clamp(180px, 22vw, 280px); flex: none; border-top: 0; }

/* Lenis smooth scroll (lenis@1.3.4/dist/lenis.css, inlined). */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* "Why businesses choose American Miles" (About): heading pinned while the reasons scroll past. */
.stack { padding: clamp(64px, 9vw, 120px) 0; }
.stack__grid { display: grid; gap: 32px; }
.stack__head h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); max-width: 11ch; }
.stack__bar { height: 2px; background: var(--line); margin-top: 28px; max-width: 420px; }
.stack__bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--red); }
.stack__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.stack__item { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(15, 58, 92, 0.28), rgba(4, 7, 12, 0.2)); padding: clamp(22px, 3vw, 36px); display: grid; gap: 6px 28px; }
.stack__item h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); margin: 0; }
.stack__item p { margin: 0; color: var(--muted); }
@media (min-width: 960px) {
  .stack__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); }
  .stack__head { position: sticky; top: calc(var(--header-h) + 48px); align-self: start; }
  .stack__item { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); align-items: center; min-height: 180px; }
  .stack__item .card__no { align-self: start; }
}

