/* ==========================================================================
   AnchorPoint Transport Inc. — brand tokens
   Navy from the fleet / reference imagery, gold + off-white from the logo.
   ========================================================================== */
:root {
  /* Brand */
  --navy-950: #071226;
  --navy-900: #0B1A33;
  --navy-800: #102445;
  --navy-700: #17325E;
  --blue-600: #1F4E9C;           /* truck-paint blue, used sparingly */
  --gold: #C39A4E;
  --gold-hover: #D4AE66;
  --gold-dark: #7A5C22;          /* gold text on light backgrounds (AA) */
  --sun: #F2B35B;                /* sunset highlight */
  --off-white: #F4F4F2;
  --paper: #F3F5F9;

  /* Semantic */
  --bg: var(--navy-900);
  --surface: var(--navy-800);
  --border: rgba(244, 244, 242, .12);
  --text: var(--off-white);
  --text-muted: #B9C3D6;
  --ink: #0B1A33;
  --ink-muted: #46546E;
  --on-gold: var(--navy-950);
  --error: #FF8A7A;
  --error-dark: #B42318;
  --focus: var(--gold-hover);

  /* Type */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Kaushan Script", "Brush Script MT", cursive;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 120px);
  --radius: 6px;
  --radius-lg: 14px;
  --header-h: 80px;
  --shadow: 0 18px 40px -18px rgba(4, 12, 28, .55);

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0 0 1rem; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 1000;
  padding: 12px 18px; background: var(--gold); color: var(--on-gold); font-weight: 700; text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.text-gold { color: var(--gold); }
.text-gold-dark { color: var(--gold-dark); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px; font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--dark { color: var(--gold-dark); }
.eyebrow--sun { color: var(--off-white); }
.eyebrow--sun::before { background: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  font: 700 .9375rem/1 var(--font); letter-spacing: .02em; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) ease;
  touch-action: manipulation;
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 56px; padding: 16px 30px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); color: var(--on-gold); }
.btn--gold:hover { background: var(--gold-hover); }
.btn--ghost { background: rgba(7, 18, 38, .25); color: var(--off-white); border-color: rgba(244, 244, 242, .7); }
.btn--ghost:hover { background: var(--off-white); color: var(--navy-900); border-color: var(--off-white); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-950); font-size: .8125rem; color: var(--text-muted); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__note { display: flex; align-items: center; gap: 8px; margin: 0; }
.topbar__links { display: flex; gap: 24px; }
.topbar__links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--off-white); font-weight: 600; min-height: 40px; }
.topbar__links a:hover { color: var(--gold); }
.topbar .icon { width: 15px; height: 15px; color: var(--gold); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur) ease;
}
/* Blur lives on a pseudo-element so the fixed mobile nav isn't trapped inside the header's containing block */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(11, 26, 51, .94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.header.is-scrolled { box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .6); }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 58px; height: auto; }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: 1.3rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.brand__sub { margin-top: 5px; font-size: .6875rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }

.nav__list { display: flex; gap: 4px; }
.nav__list a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: .9375rem; font-weight: 600; text-decoration: none; color: var(--text-muted);
  transition: color var(--dur-fast) ease;
}
.nav__list a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out);
}
.nav__list a:hover, .nav__list a[aria-current] { color: var(--off-white); }
.nav__list a:hover::after, .nav__list a[aria-current]::after { transform: scaleX(1); }
.nav__cta-mobile { display: none; }

.nav-toggle {
  display: none; width: 48px; height: 48px; padding: 12px; margin-right: -12px;
  background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px;
}
.nav-toggle span { display: block; height: 2px; background: var(--off-white); border-radius: 2px; transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88vh, 820px); min-height: min(88dvh, 820px);
  display: flex; align-items: center;
  padding-block: clamp(80px, 12vw, 140px);
}
.hero__media { position: absolute; inset: 0; z-index: -1; background: var(--navy-950) url("../assets/img/truck-coast.jpg") center / cover no-repeat; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 18, 38, .92) 0%, rgba(7, 18, 38, .72) 38%, rgba(7, 18, 38, .15) 75%),
    linear-gradient(0deg, rgba(7, 18, 38, .85) 0%, rgba(7, 18, 38, 0) 30%);
}
.hero__inner { max-width: var(--container); }
.hero__title { max-width: 14ch; font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; letter-spacing: -.03em; }
.hero__lead { max-width: 54ch; margin: 24px 0 0; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: #DCE3EF; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__pause {
  position: absolute; right: var(--gutter); bottom: 24px;
  display: grid; place-items: center; width: 44px; height: 44px;
  color: var(--off-white); background: rgba(7, 18, 38, .55); border: 1px solid rgba(244, 244, 242, .35); border-radius: 50%; cursor: pointer;
  transition: background-color var(--dur-fast) ease;
}
.hero__pause:hover { background: rgba(7, 18, 38, .85); }
.hero__pause .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.hero__pause .icon--play, .hero__pause[aria-pressed="true"] .icon--pause { display: none; }
.hero__pause[aria-pressed="true"] .icon--play { display: block; }

/* ---------- Proof strip ---------- */
.proof { background: var(--navy-950); border-block: 1px solid var(--border); }
.proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof__grid li { display: flex; align-items: center; gap: 14px; padding: 26px 20px; }
.proof__grid li + li { border-left: 1px solid var(--border); }
.proof__grid .icon { width: 30px; height: 30px; color: var(--gold); stroke-width: 1.75; }
.proof__grid strong { display: block; font-size: 1rem; font-weight: 700; }
.proof__grid span { display: block; font-size: .875rem; color: var(--text-muted); line-height: 1.4; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--tight { padding-top: 0; }
.section--light { background: var(--paper); color: var(--ink); }
.section--navy { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); }
.section__title { font-size: clamp(2rem, 4.4vw, 3.25rem); }
.section--light p { color: var(--ink-muted); }

/* ---------- Services + fleet split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg);
  min-height: 600px; display: flex; box-shadow: var(--shadow);
}
.panel__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.panel:hover .panel__bg { transform: scale(1.03); }
.panel::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.panel__body { padding: clamp(28px, 4vw, 48px); }
.panel__title { font-size: clamp(2rem, 3.6vw, 2.75rem); }
.panel__text { margin-top: 20px; font-size: 1.125rem; line-height: 1.6; }

.panel--services::before { background: linear-gradient(90deg, rgba(7, 18, 38, .97) 0%, rgba(11, 26, 51, .9) 55%, rgba(11, 26, 51, .55) 100%); }
.panel--services .panel__bg { object-position: 70% center; }
.panel--services .panel__title { margin-bottom: 28px; }
.panel--services .btn { margin-top: 32px; }

.service-list { display: grid; gap: 22px; }
.service-list li { display: flex; gap: 18px; align-items: flex-start; }
.service-list__icon {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none;
  border: 1.5px solid rgba(195, 154, 78, .55); border-radius: 10px; color: var(--gold);
}
.service-list__icon .icon { width: 26px; height: 26px; stroke-width: 1.75; }
.service-list h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; }
.service-list p { margin: 4px 0 0; color: var(--text-muted); font-size: .9375rem; }

.panel--fleet {
  align-items: flex-start; justify-content: flex-end; color: var(--ink);
  background: linear-gradient(180deg, #C9D6EA 0%, #E6E4E2 45%, #F3D8B4 70%);
}
.panel--fleet .panel__bg {
  top: auto; height: 56%; object-position: 62% 70%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
}
.panel--fleet .panel__body { max-width: 420px; }
.panel--fleet .panel__text { color: #22324F; font-weight: 500; }

/* ---------- Tiles ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 16px; padding-top: 16px; }
.tile {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg);
  min-height: 420px; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.tile__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.tile__body { padding: 32px; }
.tile__title { font-size: 1.625rem; letter-spacing: -.015em; }
.tile p { margin: 12px 0 0; }

.tile--safety { justify-content: flex-end; }
.tile--safety .tile__bg { object-position: 30% center; }
.tile--safety::before { background: linear-gradient(0deg, rgba(7, 18, 38, .97) 0%, rgba(7, 18, 38, .8) 45%, rgba(7, 18, 38, .1) 100%); }
.tile--safety p { color: var(--text-muted); }
.tile__icon { width: 44px; height: 44px; margin-bottom: 18px; fill: none; stroke: var(--gold); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.tile--chain { background: linear-gradient(180deg, #3D6FB8 0%, var(--blue-600) 55%, var(--navy-700) 100%); }
.tile--chain p { color: #DCE6F6; font-weight: 500; }
.tile__img { margin-top: auto; width: 100%; height: 210px; object-fit: cover; object-position: 60% 70%; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 28%); mask-image: linear-gradient(180deg, transparent 0%, #000 28%); }

.tile--motto .tile__bg { object-position: 40% center; }
.tile--motto::before { background: linear-gradient(180deg, rgba(11, 26, 51, .55) 0%, rgba(11, 26, 51, 0) 50%); }
.script {
  margin: 0 !important; font-family: var(--font-script); font-size: clamp(2.4rem, 3.6vw, 3rem); line-height: 1.05;
  transform: rotate(-6deg); transform-origin: left; text-shadow: 0 2px 18px rgba(7, 18, 38, .5);
}
.script__swash { width: 75%; margin-top: 6px; fill: none; stroke: var(--off-white); stroke-width: 3; stroke-linecap: round; transform: rotate(-6deg); }

.safety-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.safety-grid li { padding: 28px; background: var(--navy-800); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.safety-grid .icon { width: 28px; height: 28px; color: var(--gold); stroke-width: 1.75; margin-bottom: 16px; }
.safety-grid h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; }
.safety-grid p { margin: 8px 0 0; font-size: .9375rem; color: var(--text-muted); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about__badge {
  position: absolute; right: -16px; bottom: -24px; max-width: 200px;
  padding: 20px 22px; background: var(--navy-900); color: var(--off-white); border-radius: var(--radius-lg); border-top: 3px solid var(--gold); box-shadow: var(--shadow);
}
.about__badge strong { display: block; font-size: 2.25rem; font-weight: 800; line-height: 1; color: var(--gold); }
.about__badge span { display: block; margin-top: 6px; font-size: .875rem; font-weight: 600; line-height: 1.35; }
.about__copy .section__title { margin-bottom: 24px; }

.checklist { display: grid; gap: 12px; margin-top: 24px; }
.checklist li { position: relative; padding-left: 34px; font-weight: 600; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C39A4E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- Service area ---------- */
.area { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.area__copy .section__title { margin-bottom: 24px; }
.area__copy p { color: var(--text-muted); max-width: 46ch; }
.area__copy .btn { margin-top: 12px; }
.area__lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lane { padding: 24px; background: rgba(7, 18, 38, .5); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: var(--radius); }
.lane h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 8px; }
.lane p { margin: 0; font-size: .9375rem; color: var(--text-muted); }

/* ---------- Drivers ---------- */
.drivers { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.drivers__copy .section__title { margin-bottom: 24px; }
.drivers__copy p { color: var(--text-muted); max-width: 56ch; }
.drivers__copy .btn { margin-top: 12px; }
.drivers__req { padding: 36px; background: var(--navy-800); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.drivers__req h3 { font-size: 1.25rem; margin-bottom: 20px; }
.drivers__req li { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--border); font-weight: 600; }
.drivers__req li span { font-size: .875rem; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }

/* ---------- Quote form ---------- */
.quote { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.quote__intro .section__title { margin-bottom: 20px; }
.contact-list { display: grid; gap: 20px; margin-top: 32px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { width: 42px; height: 42px; padding: 10px; color: var(--gold); background: var(--navy-900); border-radius: 50%; }
.contact-list__label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.contact-list div { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--gold-dark); text-decoration: underline; }

.form { padding: clamp(24px, 4vw, 40px); background: #fff; border-radius: var(--radius-lg); box-shadow: 0 24px 48px -28px rgba(11, 26, 51, .35); border: 1px solid #E1E6EF; }
.form fieldset { margin: 0 0 24px; padding: 0; border: 0; }
.form legend { padding: 0; margin-bottom: 16px; font-size: 1.125rem; font-weight: 800; color: var(--ink); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: .875rem; font-weight: 700; color: var(--ink); }
.req { color: var(--error-dark); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 500 1rem/1.4 var(--font); color: var(--ink);
  background: var(--paper); border: 1.5px solid #CBD3E1; border-radius: var(--radius);
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #6B778C; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9AA6BC; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-700); background: #fff; box-shadow: 0 0 0 3px rgba(195, 154, 78, .45); }
.field__error { margin: 6px 0 0; font-size: .875rem; font-weight: 600; color: var(--error-dark) !important; }
.field__error:empty { display: none; }
.field.has-error input { border-color: var(--error-dark); }
.form__summary { margin-bottom: 24px; padding: 16px 18px; border: 1.5px solid var(--error-dark); border-radius: var(--radius); background: #FEF3F2; color: var(--error-dark); }
.form__summary ul { margin-top: 8px; padding-left: 18px; list-style: disc; }
.form__summary a { color: var(--error-dark); font-weight: 600; }
.form__note { margin: 14px 0 0; font-size: .875rem; text-align: center; }
.form__success { margin: 16px 0 0; padding: 14px 16px; border-radius: var(--radius); background: #ECFDF3; color: #05603A !important; font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(64px, 9vw, 110px); }
.cta-band__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 18, 38, .95), rgba(11, 26, 51, .7)); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band__title { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); padding-top: 64px; font-size: .9375rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1fr; gap: 32px; padding-bottom: 48px; }
.footer__brand img { width: 220px; }
.footer__heading { margin-bottom: 16px; font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.footer__list { display: grid; gap: 4px; color: var(--text-muted); }
.footer__list li { overflow-wrap: anywhere; }
.footer__list a { display: inline-block; padding: 6px 0; text-decoration: none; }
.footer__list a:hover { color: var(--off-white); text-decoration: underline; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 20px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .875rem; }
.footer__bottom p { margin: 0; }
.footer__bottom a { text-decoration: none; padding: 10px 0; }
.footer__bottom a:hover { color: var(--gold); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header__cta { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--nav-top, 120px) 0 0 0; z-index: 99;
    padding: 24px var(--gutter) 40px; background: var(--navy-900); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { width: 100%; min-height: 56px; padding: 0; font-size: 1.25rem; color: var(--off-white); border-bottom: 1px solid var(--border); }
  .nav__list a::after { display: none; }
  .nav__list a[aria-current] { color: var(--gold); }
  .nav__cta-mobile { display: flex; width: 100%; margin-top: 28px; min-height: 56px; }

  .proof__grid { grid-template-columns: repeat(2, 1fr); }
  .proof__grid li:nth-child(3) { border-left: 0; }
  .proof__grid li:nth-child(n+3) { border-top: 1px solid var(--border); }

  .split { grid-template-columns: 1fr; }
  .panel--fleet { min-height: 480px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile--motto { grid-column: 1 / -1; min-height: 320px; }
  .safety-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .about, .area, .drivers, .quote { grid-template-columns: 1fr; }
  .about__badge { right: 12px; }
  .about__copy { margin-top: 16px; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .topbar__note, .topbar__links .topbar__email { display: none; }
  .topbar__inner { justify-content: flex-end; }
  .brand__mark { width: 46px; }
  .brand__name { font-size: 1.05rem; }
  .brand__sub { font-size: .625rem; letter-spacing: .26em; }
  .hero { min-height: auto; padding-block: 96px 88px; }
  .hero__shade { background: linear-gradient(0deg, rgba(7, 18, 38, .95) 0%, rgba(7, 18, 38, .7) 55%, rgba(7, 18, 38, .45) 100%); }
  .hero__actions .btn { width: 100%; }
  .proof__grid { grid-template-columns: 1fr; }
  .proof__grid li { padding: 18px 4px; }
  .proof__grid li + li { border-left: 0; border-top: 1px solid var(--border); }
  .panel { min-height: 0; }
  .panel--fleet { min-height: 420px; }
  .tiles, .safety-grid, .area__lanes, .form__row { grid-template-columns: 1fr; }
  .form__row { gap: 0; }
  .tile { min-height: 360px; }
  .cta-band__actions, .cta-band__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .panel:hover .panel__bg { transform: none; }
}
.safety-grid p.safety-grid__id { margin-top: 12px; font-size: .875rem; font-weight: 700; letter-spacing: .04em; color: var(--gold); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Driver application page
   ========================================================================== */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(56px, 8vw, 104px); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 18, 38, .95) 0%, rgba(7, 18, 38, .78) 50%, rgba(7, 18, 38, .35) 100%); }
.page-hero__title { max-width: 18ch; font-size: clamp(2.2rem, 5.5vw, 3.75rem); line-height: 1.05; letter-spacing: -.03em; }
.page-hero__lead { max-width: 56ch; margin: 20px 0 0; font-size: 1.125rem; color: #DCE3EF; }


.field__label { display: block; margin-bottom: 8px; font-size: .875rem; font-weight: 700; color: var(--ink); }
.field__help { margin: 6px 0 0; font-size: .8125rem; }
.optional { font-weight: 500; color: var(--ink-muted); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Position cards */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__box {
  display: block; height: 100%; padding: 16px 18px 16px 50px; border: 1.5px solid #CBD3E1; border-radius: var(--radius-lg);
  background: var(--paper); transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.choice__box::before {
  content: ""; position: absolute; left: 18px; top: 19px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #9AA6BC; background: #fff; transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.choice__box strong { display: block; color: var(--ink); font-size: 1rem; }
.choice__box span { display: block; margin-top: 2px; font-size: .875rem; color: var(--ink-muted); }
.choice:hover .choice__box { border-color: #9AA6BC; }
.choice input:checked + .choice__box { border-color: var(--navy-900); background: #fff; box-shadow: 0 0 0 1px var(--navy-900); }
.choice input:checked + .choice__box::before { border-color: var(--navy-900); box-shadow: inset 0 0 0 4px #fff; background: var(--gold); }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Pill radios / checkboxes */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px;
  font-size: .9375rem; font-weight: 600; color: var(--ink); background: var(--paper);
  border: 1.5px solid #CBD3E1; border-radius: 999px; transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.pill:hover span { border-color: #9AA6BC; }
.pill input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: var(--off-white); }
.pill input[type="checkbox"]:checked + span::before { content: "✓"; margin-right: 6px; color: var(--gold); font-weight: 800; }
.pill input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }


/* File upload */
.file { position: relative; }
.file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file__ui {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 14px 16px;
  color: var(--ink-muted); background: var(--paper); border: 1.5px dashed #9AA6BC; border-radius: var(--radius);
  font-weight: 600; transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.file__ui .icon { color: var(--navy-700); }
.file__name { overflow-wrap: anywhere; }
.file:hover .file__ui { border-color: var(--navy-700); background: #fff; }
.file input:focus-visible + .file__ui { outline: 3px solid var(--gold); outline-offset: 2px; }
.file.has-file .file__ui { border-style: solid; border-color: var(--navy-900); color: var(--ink); background: #fff; }
.field.has-error .file__ui { border-color: var(--error-dark); }
.field.has-error .pill span, .field.has-error .choice__box { border-color: var(--error-dark); }

/* Consent */
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .9375rem; color: var(--ink); line-height: 1.5; }
.check input { width: 22px; height: 22px; min-height: 0; flex: none; margin: 1px 0 0; accent-color: var(--navy-900); }

/* Submit loading */
.btn.is-loading { opacity: .75; cursor: progress; }
.btn.is-loading::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }


/* Thank-you page */
.thanks { position: relative; isolation: isolate; min-height: calc(100vh - var(--header-h)); min-height: calc(100dvh - var(--header-h)); display: flex; align-items: center; padding-block: 64px; }
.thanks__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.thanks::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(7, 18, 38, .82); }
.thanks__card { max-width: 560px; margin-inline: auto; padding: clamp(28px, 5vw, 48px); text-align: center; background: #fff; color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.thanks__card p { color: var(--ink-muted); }
.thanks__card a:not(.btn) { color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.thanks__icon { width: 64px; height: 64px; margin: 0 auto 20px; fill: none; stroke: var(--gold); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.thanks__title { margin-bottom: 16px; font-size: clamp(1.75rem, 4vw, 2.25rem); }
.thanks__actions { margin-top: 28px; }

@media (max-width: 640px) {
  .choices { grid-template-columns: 1fr; }
}

/* ---------- Step-by-step application ---------- */
.page-hero--compact { padding-block: clamp(48px, 7vw, 80px) clamp(96px, 12vw, 136px); }
.page-hero--compact .page-hero__title { max-width: 20ch; font-size: clamp(2rem, 4.6vw, 3.25rem); }
.page-hero--compact .page-hero__lead { margin: 12px auto 0; }

.apply-wrap { padding-bottom: var(--section-y); background: var(--paper); color: var(--ink); }
.wizard {
  position: relative; max-width: 680px; margin: calc(-1 * clamp(64px, 9vw, 96px)) auto 0;
  padding: clamp(24px, 5vw, 44px); background: #fff; border-radius: var(--radius-lg);
  border: 1px solid #E1E6EF; box-shadow: 0 24px 48px -28px rgba(11, 26, 51, .45);
}

.wizard__progress { margin-bottom: 32px; }
.wizard__count { margin: 0 0 10px; font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); }
.wizard__steps { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: .875rem; font-weight: 600; color: #6B778C; }
.wizard__steps li[hidden] { display: none; }
.wizard__steps li.is-current { color: var(--ink); font-weight: 800; }
.wizard__steps li.is-done { color: var(--ink-muted); }
.wizard__bar { height: 6px; background: #E6EAF1; border-radius: 999px; overflow: hidden; }
.wizard__bar span { display: block; height: 100%; background: var(--gold); border-radius: inherit; transform-origin: left; transform: scaleX(.25); transition: transform var(--dur) var(--ease-out); }

.wizard__panel { margin: 0; padding: 0; border: 0; min-width: 0; }
.wizard__panel[hidden] { display: none; }
.wizard__title { padding: 0; margin-bottom: 24px; font-size: clamp(1.375rem, 3vw, 1.75rem); font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.wizard__title:focus { outline: none; }
.wizard__hint { margin: -12px 0 20px; font-size: .9375rem; color: var(--ink-muted); }
.wizard .field { margin-bottom: 20px; }
.wizard .field[hidden] { display: none; }
.wizard .field label:not(.pill):not(.check), .wizard .field__label { font-size: .9375rem; }

.wizard .choice__box { display: flex; align-items: center; min-height: 64px; padding: 14px 16px 14px 52px; }
.wizard .choice__box::before { top: 50%; transform: translateY(-50%); }
.wizard .choice__box strong { font-size: 1rem; }
.wizard__panel.has-error .choice__box { border-color: var(--error-dark); }

.wizard__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid #E6EAF1; }
.wizard__nav .btn--gold { margin-left: auto; }
.wizard__nav .btn[hidden] { display: none; }
.btn--text { min-height: 48px; padding: 12px 8px; color: var(--ink); background: none; border: 0; }
.btn--text:hover { color: var(--gold-dark); }
.wizard__nav .icon { width: 18px; height: 18px; }

.apply-help { max-width: 680px; margin: 24px auto 0; text-align: center; font-size: .9375rem; color: var(--ink-muted); }
.apply-help a { color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .wizard__steps { font-size: .75rem; }
  .wizard__nav .btn--gold { flex: 1; }
  .wizard .form__row { grid-template-columns: 1fr; }
}
.page-hero--compact .page-hero__inner { text-align: center; }
.page-hero--compact .page-hero__title { margin-inline: auto; }
.page-hero--compact .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--gold); }
.page-hero--compact::before { background: linear-gradient(180deg, rgba(7, 18, 38, .9) 0%, rgba(7, 18, 38, .72) 100%); }
.wizard__req-note { margin: 10px 0 0; font-size: .8125rem; color: var(--ink-muted); text-align: right; }
.wizard .req { color: var(--error-dark); font-weight: 700; }

/* ---------- Apply page video with frosted captions ---------- */
.page-hero__split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.page-hero--video .page-hero__inner, .page-hero--video .page-hero__copy { text-align: left; }
.page-hero--video .page-hero__title { margin-inline: 0; }
.page-hero--video .page-hero__lead { margin: 12px 0 0; }
.page-hero--video .eyebrow::after { display: none; }

.promo {
  position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--navy-950);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .6); border: 1px solid rgba(244, 244, 242, .14);
  container-type: inline-size;
}
.promo__video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Captions sit in the lower third over a soft fade, so they never cover faces */
.promo__captions {
  position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  display: grid; align-items: end; padding: 0 6% 6.5%;
  background: linear-gradient(to top, rgba(7, 18, 38, .88) 0%, rgba(7, 18, 38, .45) 55%, rgba(7, 18, 38, 0) 100%);
  pointer-events: none;
}
.promo__caption {
  grid-area: 1 / 1; margin: 0; padding-right: 12%;
  font-size: clamp(15px, 4.4cqw, 30px); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(10px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}
.promo__caption strong { color: var(--gold); }
.promo__caption.is-active { opacity: 1; transform: none; }

/* Handshake scene: zoom toward the drivers so lettering on the truck's side is out of frame */
.promo__video { transform-origin: 100% 45%; }
.promo.is-cropped .promo__video { transform: scale(1.32); }

.promo__pause {
  position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 44px; height: 44px;
  color: #fff; background: rgba(7, 18, 38, .6); border: 1px solid rgba(244, 244, 242, .35); border-radius: 50%; cursor: pointer;
}
.promo__pause .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.promo__pause .icon--play, .promo__pause[aria-pressed="true"] .icon--pause { display: none; }
.promo__pause[aria-pressed="true"] .icon--play { display: block; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 860px) {
  .page-hero__split { grid-template-columns: 1fr; }
  .page-hero--video .page-hero__copy { text-align: center; }
  .page-hero--video .page-hero__title { margin-inline: auto; }
  .page-hero--video .page-hero__lead { margin: 12px auto 0; }
}
