/* Maven Freight & Logistics
   Brand world from the official logo: ink black, metallic gold, white. See DESIGN.md.
   Theme: agreement layout. Black bands (header, hero, fleet, footer), light bands between. Radius: 2px everywhere. */

:root {
  --ink: #0a0a0b;
  --ink-raised: #131315;
  --ink-high: #1b1b1e;
  --line: #2c2b29;
  --paper: #f4f2ee;
  --paper-muted: #b6b1a8;          /* 9.2:1 on --ink */
  --gold-hi: #e6c98a;
  --gold: #c9a25e;
  --gold-deep: #a0702a;
  --gold-text: #d4b06a;            /* 9.4:1 on --ink */
  --gold-sheen: rgba(255, 245, 220, 0.55);
  --ink-hover: #222225;
  --paper-soft: #dcd8d1;
  --shadow: rgba(0, 0, 0, 0.6);
  --gold-metal: linear-gradient(160deg, var(--gold-hi) 0%, var(--gold) 48%, #b3873f 100%);
  --radius: 2px;
  --max: 1240px;
  --nav-h: 72px;
  --section: clamp(72px, 10vw, 128px);
  --font: 'Archivo', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --z-nav: 100;
  --z-skip: 200;
  color-scheme: dark;
}


/* Band tokens. Default = black band (header, hero, fleet, footer). */
:root, .band-dark {
  --bg: var(--ink);
  --surface: var(--ink-raised);
  --surface-2: var(--ink-high);
  --surface-hover: var(--ink-hover);
  --fg: var(--paper);
  --fg-muted: var(--paper-muted);
  --rule: var(--line);
  --accent-text: var(--gold-text);
  --accent-hover: var(--gold-hi);
  --btn2-line: rgba(244, 242, 238, 0.6);
  --field-bg: var(--ink);
  --field-line: #45433f;
  --field-line-hover: #66625b;
  --danger: #ff8f7f;
  --success: #9ed8ae;
}
/* Light band: the white page of the agreement. */
.band-light {
  --bg: #fcfcfb;
  --surface: #f2f2f0;
  --surface-2: #fefefd;
  --surface-hover: #f7f6f3;
  --fg: #141416;                   /* 17.9:1 */
  --fg-muted: #55524c;             /* 7.6:1 */
  --rule: #dcdad5;
  --accent-text: #7d5a1e;          /* deep gold, 6.1:1 */
  --accent-hover: #5c4214;
  --btn2-line: rgba(20, 20, 22, 0.55);
  --field-bg: #fefefd;
  --field-line: #8f8b84;           /* 3.3:1 control boundary */
  --field-line-hover: #55524c;
  --danger: #b3261e;
  --success: #1e6b3a;
  color-scheme: light;
  background: var(--bg);
  color: var(--fg);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
address { font-style: normal; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }
.section { padding-block: var(--section); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: var(--z-skip);
  background: var(--gold); color: var(--ink); padding: 10px 16px;
  border-radius: var(--radius); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; }

/* ---------- Type ---------- */
.h2, .hero__title, .path__title, .footer__tag, .facts dd, .freight-item h3, .commit__list span {
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.04; }
.gold { color: var(--accent-text); }

/* The "— FREIGHT —" lockup from the logo */
.kicker {
  display: flex; align-items: center; gap: 14px;
  font-stretch: 112%; font-weight: 600; font-size: 0.8125rem;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent-text);
}
.kicker::before, .kicker::after { content: ""; height: 2px; width: 36px; background: var(--gold); flex-shrink: 0; }
@media (max-width: 480px) { .kicker { letter-spacing: 0.2em; gap: 10px; } .kicker::before, .kicker::after { width: 20px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  font-family: var(--font); font-stretch: 112%; font-weight: 700; font-size: 0.9375rem;
  letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: filter .2s var(--ease-out), background-color .2s var(--ease-out), border-color .2s var(--ease-out), transform .12s var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--primary {
  background: var(--gold-metal); color: var(--ink);
  box-shadow: inset 0 1px 0 var(--gold-sheen), 0 4px 12px -4px var(--shadow);
}
.btn--primary:hover { filter: brightness(1.08); }
.btn--secondary { background: transparent; color: var(--fg); border-color: var(--btn2-line); }
.btn--secondary:hover { border-color: var(--accent-hover); color: var(--accent-hover); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(10, 10, 11, 0.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }
.nav__brand { display: block; flex-shrink: 0; }
.nav__brand img { height: 34px; width: auto; }
.nav__links { display: none; gap: 36px; }
.nav__links a {
  text-decoration: none; font-weight: 500; font-size: 0.9375rem; color: var(--fg-muted);
  transition: color .2s var(--ease-out);
}
.nav__links a:hover { color: var(--accent-hover); }
@media (min-width: 900px) { .nav__links { display: flex; } }
@media (max-width: 420px) {
  .nav .btn--sm span { display: none; }
  .nav .btn--sm { width: 44px; padding: 0; }
  .nav__brand img { height: 28px; }
}

/* ---------- Hero: agreement-cover band ---------- */
.hero {
  display: grid;
  border-bottom: 4px solid var(--gold);
  background: var(--bg);
}
.hero__media { order: -1; aspect-ratio: 4 / 3; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 55%; }
.hero__copy { display: grid; gap: 20px; align-content: center; padding: 40px 16px 56px; }
.hero__title { font-size: clamp(1.5rem, 6.6vw, 3.5rem); line-height: 1.04; }
.hero__sub { max-width: 44ch; color: var(--fg-muted); font-size: 1.125rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 13fr) minmax(0, 11fr); min-height: calc(100dvh - var(--nav-h) - 4px); max-height: 860px; }
  .hero__media { order: 0; aspect-ratio: auto; position: relative; }
  .hero__media::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, var(--ink) 0%, rgba(10,10,11,0) 22%);
  }
  .hero__copy {
    padding-block: 64px;
    padding-left: max(32px, calc((100vw - var(--max)) / 2 + 32px));
    padding-right: 48px;
  }
  .hero__title { font-size: clamp(2.25rem, 3.4vw, 3.5rem); }
}

/* ---------- Two paths ---------- */
.paths { background: var(--surface); border-bottom: 1px solid var(--rule); }
.paths__grid { display: grid; }
.path { display: grid; gap: 12px; align-content: start; padding-block: 44px; }
.path + .lane + .path { border-top: 1px solid var(--rule); }
.path p { color: var(--fg-muted); max-width: 42ch; }
.path__icon { font-size: 2rem; color: var(--accent-text); }
.path__title { font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.1; }
.path__link {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start; margin-top: 6px;
  min-height: 44px; color: var(--accent-text); text-decoration: none;
  font-stretch: 112%; font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.path__link i { transition: transform .25s var(--ease-out); }
.path__link:hover i { transform: translateX(4px); }
.path__link:hover { color: var(--accent-hover); }
.lane { display: none; }
@media (min-width: 900px) {
  .paths__grid { grid-template-columns: 1fr auto 1fr; gap: 64px; }
  .path { padding-block: 64px; }
  .path + .lane + .path { border-top: 0; }
  /* road center line from the logo */
  .lane {
    display: block; width: 4px; align-self: stretch; margin-block: 40px;
    background: repeating-linear-gradient(180deg, var(--fg) 0 22px, transparent 22px 40px);
    opacity: .85;
  }
}

/* ---------- About ---------- */
.about__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .about__grid { grid-template-columns: 7fr 5fr; gap: 64px; } }
.about__media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); }
.about__copy { display: grid; gap: 18px; color: var(--fg-muted); max-width: 60ch; }
.about__copy .h2 { color: var(--fg); margin-bottom: 4px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin: 14px 0 0; padding-top: 24px; border-top: 1px solid var(--rule); }
.facts dt { font-size: 0.8125rem; color: var(--fg-muted); }
.facts dd { margin: 2px 0 0; color: var(--fg); font-size: 1rem; line-height: 1.25; }

/* ---------- Freight ---------- */
.freight { background: var(--surface); border-block: 1px solid var(--rule); }
.freight__grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .freight__grid { grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; } }
.freight__intro { display: grid; gap: 18px; color: var(--fg-muted); }
.freight__intro .h2 { color: var(--fg); }
@media (min-width: 1024px) { .freight__intro { position: sticky; top: calc(var(--nav-h) + 40px); } }
.freight__media { margin-top: 12px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); }
.freight__list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden;
}
.freight-item {
  background: var(--surface-2); padding: 20px 16px; min-height: 140px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  transition: background-color .3s var(--ease-out);
}
.freight-item:hover { background: var(--surface-hover); }
.freight-item i { font-size: 2.125rem; color: var(--accent-text); }
.freight-item h3 { font-size: 0.9375rem; line-height: 1.2; }
@media (min-width: 768px) {
  .freight-item { padding: 32px 24px; min-height: 176px; }
  .freight-item h3 { font-size: 1.0625rem; }
}

/* ---------- Fleet ---------- */
.fleet { position: relative; isolation: isolate; overflow: hidden; min-height: 560px; display: flex; align-items: flex-end; }
@media (min-width: 1024px) { .fleet { min-height: 700px; } }
.fleet__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.fleet__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,10,11,0.96) 0%, rgba(10,10,11,0.55) 38%, rgba(10,10,11,0) 68%); }
.fleet__content { padding-block: 56px; display: grid; gap: 14px; }
.fleet__content p { max-width: 52ch; color: var(--paper-soft); font-size: 1.125rem; }

/* ---------- Commitments ---------- */
.commit__title { margin-bottom: 36px; }
.commit__list { display: grid; grid-template-columns: 1fr; border-top: 2px solid var(--gold); }
@media (min-width: 640px) { .commit__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .commit__list { grid-template-columns: repeat(4, 1fr); } }
.commit__list li { display: flex; align-items: center; gap: 14px; padding: 26px 0; }
.commit__list span { font-size: 1.125rem; line-height: 1.15; }
.commit__list i { font-size: 1.75rem; color: var(--accent-text); flex-shrink: 0; }

/* ---------- Careers / form ---------- */
.careers { background: var(--surface); border-top: 1px solid var(--rule); }
.careers__grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .careers__grid { grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; } }
.careers__copy { display: grid; gap: 18px; color: var(--fg-muted); max-width: 52ch; }
.careers__copy .h2 { color: var(--fg); }

.apply { display: grid; gap: 20px; background: var(--surface-2); border: 1px solid var(--rule); border-top: 4px solid var(--gold); padding: 24px; } /* square: the gold rule is the agreement-cover device */
@media (min-width: 768px) { .apply { padding: 36px; } }
.field-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.optional { font-weight: 400; color: var(--fg-muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--fg);
  background: var(--field-bg); border: 1px solid var(--field-line); border-radius: var(--radius);
  padding: 12px 14px; min-height: 52px;
  transition: border-color .2s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none; padding-right: 40px; background-repeat: no-repeat; background-size: 6px 6px;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent-text) 50%), linear-gradient(135deg, var(--accent-text) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--field-line-hover); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__help { font-size: 0.875rem; color: var(--fg-muted); }
.field__error { font-size: 0.875rem; color: var(--danger); }
.apply__status { font-size: 0.9375rem; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--field-bg); }
.apply__status[data-tone="error"] { border-color: var(--danger); color: var(--danger); }
.apply__status[data-tone="info"] { border-color: var(--gold); color: var(--fg); }
.apply__status[data-tone="success"] { border-color: var(--success); color: var(--success); }

/* ---------- Footer: agreement footer rule ---------- */
.footer { padding-block: 72px 32px; border-top: 4px solid var(--gold); }
.footer__top { display: grid; gap: 32px; align-items: center; margin-bottom: 56px; }
.footer__logo { width: 168px; height: auto; }
.footer__tag { font-size: clamp(1.625rem, 3.6vw, 2.75rem); line-height: 1.05; color: var(--fg); }
@media (min-width: 900px) { .footer__top { grid-template-columns: auto 1fr; gap: 56px; } .footer__logo { width: 200px; } }
.footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; padding-top: 40px; border-top: 1px solid var(--rule); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: repeat(4, 1fr); } }
.footer h3 { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 8px; }
.footer address, .footer p { color: var(--fg); }
.footer__phone { font-stretch: 125%; font-weight: 800; font-size: 1.5rem; color: var(--fg); text-decoration: none; }
.footer__phone:hover { color: var(--accent-hover); }
.footer__email { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.footer__email:hover { color: var(--accent-hover); }
.footer__phone { display: block; }
.footer__legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 0.875rem; color: var(--fg-muted) !important; }

/* ---------- Motion: one entrance, content visible without JS ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .hero__media img { transform: scale(1.06); transition: transform 1.6s var(--ease-out); }
  .js .hero.is-in .hero__media img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .path__link i { transition: none; }
}
