/* ============================================================
   Trade Links Logistics — homepage prototype
   Colours are tokens so the client's brand can drop in later.
   ============================================================ */

/* Responsive images keep their aspect ratio (width/height attributes reserve space, no layout shift) */
:where(img[width][height]) { height: auto; }
:root {
  --navy-950: #061029;
  --navy-900: #0a1a3f;
  --navy-800: #11275a;
  --navy-700: #1b3672;
  --ink: #0a1a3f;
  --white: #ffffff;
  --mist: rgba(255, 255, 255, 0.64);
  --line-dark: rgba(255, 255, 255, 0.12);
  --accent: #ff6a3d;
  --accent-2: #ffb547;
  --ok: #3ddc97;

  --font: "General Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Montserrat", ui-sans-serif, system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  font-size: 17px;
  line-height: 1.55;
  color: var(--white);
  background: var(--navy-950);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.mono { font-family: var(--mono); font-feature-settings: "zero"; letter-spacing: -0.01em; }
.accent { color: var(--accent); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mist);
}
.h2 {
  font-size: clamp(36px, 5.4vw, 76px); font-weight: 500; line-height: 1.02; letter-spacing: -0.035em;
  margin-top: 18px;
}
.lead { color: var(--mist); font-size: clamp(17px, 1.3vw, 19px); max-width: 46ch; margin-top: 22px; }

.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: inherit;
  font: 500 16px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: transform .4s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 15px; }
.btn--accent { background: var(--accent); color: var(--navy-950); }
.btn--accent:hover { background: #ff7f58; }
.btn--ghost { border-color: var(--line-dark); color: var(--white); }
.btn--ghost:hover { border-color: rgba(255,255,255,.4); }
.arrow { display: inline-block; transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.pill { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 5px 8px; border-radius: 999px; }
.pill--live { background: rgba(61, 220, 151, .14); color: var(--ok); display: inline-flex; align-items: center; gap: 6px; }
.pill--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- logo ---------- */
.nav__logo { display: flex; align-items: center; gap: 12px; }
.nav__img { display: block; height: 50px; width: auto; }
.footer__logo { display: block; height: 64px; width: auto; margin-bottom: 18px; }
@media (max-width: 720px) { .nav__img { height: 38px; } .footer__logo { height: 52px; } }
.logo-mark { position: relative; width: 30px; height: 30px; }
.logo-mark i { position: absolute; width: 18px; height: 18px; border: 2.5px solid var(--white); border-radius: 6px; }
.logo-mark i:first-child { left: 0; top: 0; }
.logo-mark i:last-child { right: 0; bottom: 0; border-color: var(--accent); }
.logo-word { display: flex; flex-direction: column; font-weight: 600; font-size: 18px; line-height: 1; letter-spacing: -0.02em; }
.logo-word small { font: 400 10px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mist); }
.logo-word--lg { font-size: 26px; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  transition: background-color .4s, backdrop-filter .4s, padding .4s var(--ease), transform .5s var(--ease);
}
.nav.is-scrolled { background: rgba(6, 16, 41, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 12px; border-bottom: 1px solid var(--line-dark); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__links { display: flex; gap: 32px; font-size: 15px; }
.nav__links a { color: var(--mist); transition: color .2s; }
.nav__links a:hover { color: var(--white); }
.nav__cta { display: flex; align-items: center; gap: 18px; }
.nav__phone { font: 400 14px var(--mono); color: var(--mist); }
.nav__portal { gap: 8px; }
.nav__portal svg { opacity: .8; }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-dark); background: none; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--white); transition: transform .4s var(--ease); }
.nav__burger span:first-child { top: 16px; }
.nav__burger span:last-child { top: 24px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 40; background: var(--navy-950);
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 var(--gutter);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-size: 40px; font-weight: 500; letter-spacing: -0.03em; }
.mobile-menu__phone { font: 400 16px var(--mono) !important; color: var(--mist); margin-top: 24px; }

/* ---------- shared hero bits (page hero, flight) ---------- */
.hero__grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 72px 72px; opacity: .35;
  mask-image: radial-gradient(ellipse at 30% 50%, #000 10%, transparent 70%);
}
.hero__lead { color: var(--mist); font-size: clamp(17px, 1.35vw, 20px); max-width: 40ch; margin-top: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.card {
  position: absolute; z-index: 3;
  background: rgba(10, 26, 63, .72); color: var(--white);
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  padding: 18px 20px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.55);
}
.card header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card__label { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--mist); }
.card small { color: var(--mist); font-size: 12px; }

/* ---------- MARQUEE ---------- */
.marquee { background: var(--accent); color: var(--navy-950); overflow: hidden; padding: 20px 0; }
.marquee__track { display: flex; width: max-content; gap: 36px; align-items: center; font-size: clamp(22px, 2.4vw, 34px); font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.marquee__track i { font-style: normal; font-size: .6em; opacity: .6; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tags li { font: 400 12px var(--mono); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-dark); color: var(--mist); }

/* ---------- ALL SERVICES + COVERAGE ---------- */
.svc-all { background: var(--navy-900); padding: clamp(80px, 10vw, 140px) var(--gutter); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(210px, auto); grid-auto-flow: dense; gap: 12px; margin-top: clamp(40px, 5vw, 72px); }
.bento__cell { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 26px; border-radius: var(--radius); background: var(--navy-800); border: 1px solid var(--line-dark); }
.bento__cell h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.bento__cell p { color: var(--mist); font-size: 15px; max-width: 42ch; }
.bento__cell--ocean { grid-column: span 2; grid-row: span 2; }
.bento__cell--haul { grid-column: span 2; }
.bento__cell--photo { border: 0; }
.bento__cell--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bento__cell--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,16,41,.05) 30%, rgba(6,16,41,.88)); }
.bento__cell--photo > div { position: relative; z-index: 1; display: grid; gap: 8px; }
.bento__cell--photo p { color: rgba(255,255,255,.82); }
.bento__cell--photo:hover img { transform: scale(1.04); }
.bento__cell--ocean h3 { font-size: clamp(28px, 2.6vw, 40px); }
.bento__cell--accent { background: var(--accent); border-color: var(--accent); color: var(--navy-950); }
.bento__cell--accent p { color: rgba(6,16,41,.78); }
.bento__cell--accent a { margin-top: 6px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.gateways-row { margin-top: clamp(48px, 6vw, 80px); }
.gateways-row__title { font-size: 18px; font-weight: 500; }
.gateways { margin-top: 20px; display: grid; gap: 0; border-top: 1px solid var(--line-dark); max-width: 520px; }
.gateways li { display: grid; grid-template-columns: 72px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line-dark); font-size: 17px; }
.gateways .mono { color: var(--accent); font-size: 12px; padding-top: 4px; }
.gateways--row { max-width: none; grid-template-columns: repeat(3, 1fr); column-gap: 32px; }

/* ---------- routes / cta panels (flight) ---------- */
.routes { margin-top: 16px; border-top: 1px solid rgba(255,255,255,.14); }
.routes li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 15px; }
.routes b { font-weight: 400; color: var(--accent-2); white-space: nowrap; }
.fl-panel--routes p:last-child, .fl-panel--cta p { margin-top: 16px; }

/* ---------- PROCESS (timeline) ---------- */
.process { background: var(--navy-950); padding: clamp(80px, 10vw, 140px) var(--gutter); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: clamp(40px, 5vw, 72px); }
.step { position: relative; padding-top: 32px; border-top: 1px solid var(--line-dark); }
.step::before { content: ""; position: absolute; left: 0; top: -2px; height: 3px; width: 100%; background: var(--accent); transform: scaleX(var(--fill, 0)); transform-origin: left; }
.step h3 { font-size: clamp(28px, 2.6vw, 40px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.step p { color: var(--mist); margin-top: 12px; font-size: 16px; max-width: 32ch; }

/* ---------- FIGURES ---------- */
.figures { background: var(--navy-900); display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line-dark); }
.figure { padding: clamp(36px, 5vw, 64px) var(--gutter); border-left: 1px solid var(--line-dark); }
.figure:first-child { border-left: 0; }
.figure b { display: block; font-size: clamp(48px, 6vw, 96px); font-weight: 400; letter-spacing: -0.05em; line-height: 1; }
.figure p { color: var(--mist); margin-top: 14px; font-size: 15px; max-width: 20ch; }
.figure[data-placeholder] b::after { content: "TBC"; font: 500 10px var(--mono); vertical-align: top; margin-left: 6px; color: var(--accent-2); letter-spacing: .1em; }

/* ---------- BENEFITS ---------- */
.benefits { background: var(--navy-950); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 100px); padding: clamp(80px, 10vw, 140px) var(--gutter); align-items: center; }
.benefits__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; clip-path: inset(12% 12% 12% 12% round var(--radius)); }
.benefits__media img { width: 100%; height: 100%; object-fit: cover; }
.benefit-list { margin-top: 40px; }
.benefit-list > div { display: grid; grid-template-columns: minmax(150px, .8fr) 1.2fr; gap: 20px; padding: 18px 0; }
.benefit-list > div + div { border-top: 1px solid var(--line-dark); }
.benefit-list dt { font-weight: 500; font-size: 18px; }
.benefit-list dd { color: var(--mist); font-size: 16px; }

/* ---------- QUOTE ---------- */
.quote { background: var(--navy-900); display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 100px); padding: clamp(80px, 10vw, 140px) var(--gutter); }
.contact-list { margin-top: 40px; display: grid; gap: 18px; }
.contact-list li { display: flex; flex-direction: column; }
.contact-list small { font: 400 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.contact-list a, .contact-list span { font-size: 20px; }
.contact-list a:hover { color: var(--accent); }
.form { background: var(--navy-800); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: clamp(20px, 3vw, 40px); display: grid; gap: 16px; align-content: start; }
.form__modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px; border-radius: 999px; background: var(--navy-950); }
.form__modes label { position: relative; cursor: pointer; }
.form__modes input { position: absolute; opacity: 0; pointer-events: none; }
.form__modes span { display: block; text-align: center; padding: 11px 6px; border-radius: 999px; font-size: 15px; color: var(--mist); transition: background-color .3s, color .3s; }
.form__modes input:checked + span { background: var(--white); color: var(--ink); }
.form__modes input:focus-visible + span { outline: 2px solid var(--accent); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field span { font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
.field input {
  height: 54px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid var(--line-dark);
  background: rgba(6,16,41,.5); color: var(--white); font: 400 16px var(--font); transition: border-color .2s, background-color .2s;
}
.field input::placeholder { color: rgba(255,255,255,.55); }
.field input:focus { outline: none; border-color: var(--accent); background: rgba(6,16,41,.8); }
.field input.is-invalid { border-color: #ff4d4d; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.form__msg { font-size: 14px; color: var(--accent-2); min-height: 1.4em; }

/* ---------- instant estimator ---------- */
.estimator { margin-top: 32px; padding: 22px; border-radius: var(--radius); background: var(--navy-800); border: 1px solid var(--line-dark); display: grid; gap: 14px; max-width: 520px; }
.estimator[hidden] { display: none; }
.estimator h3 { font-size: 18px; font-weight: 500; }
.estimator__modes { display: flex; flex-wrap: wrap; gap: 6px; }
.estimator__modes label { cursor: pointer; }
.estimator__modes input { position: absolute; opacity: 0; pointer-events: none; }
.estimator__modes span { display: block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-dark); font-size: 14px; color: var(--mist); transition: background-color .2s, color .2s, border-color .2s; }
.estimator__modes input:checked + span { background: var(--white); color: var(--ink); border-color: var(--white); }
.estimator__modes input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.estimator__row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.estimator select { height: 46px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-dark); background: rgba(6,16,41,.5); color: var(--white); font: 15px var(--font); width: 100%; }
.estimator select:focus { outline: none; border-color: var(--accent); }
.estimator__result { display: grid; gap: 4px; padding: 14px 0 2px; border-top: 1px solid var(--line-dark); }
.estimator__result b { font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; letter-spacing: -0.02em; color: var(--white); }
.estimator__result span { color: var(--mist); font-size: 14px; }
.estimator__result small { color: var(--mist); font-size: 13px; }
.estimator .btn { justify-self: start; }
.estimator__fine { font-size: 12px; color: var(--mist); }
@media (max-width: 640px) { .estimator__row { grid-template-columns: 1fr; } }

/* ---------- FOOTER ---------- */
.footer { background: var(--navy-950); padding: 0 var(--gutter) 32px; overflow: hidden; }
.footer__big { font-size: clamp(80px, 19vw, 320px); font-weight: 600; letter-spacing: -0.06em; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.14); padding-top: 60px; white-space: nowrap; }
.footer__cols { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; padding: 60px 0; border-bottom: 1px solid var(--line-dark); }
.footer__cols p { color: var(--mist); margin-top: 18px; max-width: 34ch; font-size: 15px; }
.footer__cols h5 { font: 400 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mist); margin-bottom: 14px; }
.footer__cols > div:not(:first-child) { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer__cols a:hover { color: var(--accent); }
.footer__cols > div:not(:first-child) a { color: var(--mist); }
.footer__cols > div:not(:first-child) a:hover { color: var(--accent); }
.footer__cols .footer__all { color: var(--white) !important; margin-top: 4px; }
.footer__contact { display: grid; gap: 6px; }
.footer__contact span { color: var(--mist); }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 13px; color: var(--mist); }


/* ---------- honeypot ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- DUTY TEASER (home): full-width receipt strip ---------- */
.duty-teaser { background: radial-gradient(900px 420px at 85% 0%, rgba(255,106,61,.14), transparent 70%), var(--navy-900); padding: clamp(80px, 10vw, 140px) var(--gutter); }
.duty-teaser__copy { max-width: 640px; }
.duty-teaser .btn { margin-top: 32px; }
.receipt-strip { margin: clamp(40px, 5vw, 64px) 0 0; border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.receipt-strip figcaption { padding: 14px 22px; font: 400 12px var(--mono); color: var(--mist); border-bottom: 1px solid var(--line-dark); }
.receipt-strip dl { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.receipt-strip dl > div { padding: 22px; display: grid; gap: 10px; align-content: space-between; }
.receipt-strip dl > div + div { border-left: 1px solid var(--line-dark); }
.receipt-strip dt { color: var(--mist); font-size: 14px; }
.receipt-strip dd { margin: 0; font-size: clamp(16px, 1.4vw, 20px); }
.receipt-strip__total { background: var(--accent); color: var(--navy-950); }
.receipt-strip__total dt { color: rgba(6,16,41,.75); }

/* ---------- PAGE HERO ---------- */
.page-hero { position: relative; padding: 160px var(--gutter) 64px; background: radial-gradient(1000px 600px at 85% 0%, rgba(27,54,114,.9), transparent 60%), var(--navy-950); overflow: hidden; }
.page-hero > * { position: relative; }
.page-hero__title { font-size: clamp(42px, 6vw, 92px); font-weight: 500; line-height: .98; letter-spacing: -0.045em; margin-top: 22px; }
.page-hero__title em { font-style: normal; color: var(--accent); }
.page-hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.page-hero__title .line > span { display: inline-block; }
.nav__links a[aria-current="page"] { color: var(--white); }

/* ---------- CALCULATOR ---------- */
.calc { background: var(--navy-950); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 3vw, 40px); padding: 0 var(--gutter) clamp(80px, 10vw, 140px); align-items: start; }
.calc__form { border: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.bands { display: grid; gap: 8px; }
.band { cursor: pointer; }
.band input { position: absolute; opacity: 0; pointer-events: none; }
.band > span { display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-dark); background: rgba(6,16,41,.5); transition: border-color .2s, background-color .2s; }
.band b { grid-row: span 2; font-size: 20px; font-weight: 500; }
.band em { font-style: normal; font-size: 15px; color: var(--white); text-transform: none; letter-spacing: 0; font-family: var(--font); }
.band small { font-size: 13px; color: var(--mist); font-family: var(--font); text-transform: none; letter-spacing: 0; }
.band input:checked + span { border-color: var(--accent); background: rgba(255,106,61,.1); }
.band input:checked + span b { color: var(--accent); }
.band input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field input[type=number] { -moz-appearance: textfield; font-family: var(--mono); }
.field input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }
.toggles { display: grid; gap: 10px; }
.toggle { display: flex; align-items: center; gap: 14px; cursor: pointer; padding: 12px 0; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle__ui { flex: none; width: 44px; height: 26px; border-radius: 999px; background: rgba(255,255,255,.14); position: relative; transition: background-color .25s; }
.toggle__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: transform .35s var(--ease); }
.toggle input:checked + .toggle__ui { background: var(--accent); }
.toggle input:checked + .toggle__ui::after { transform: translateX(18px); }
.toggle input:focus-visible + .toggle__ui { outline: 2px solid var(--accent); outline-offset: 2px; }
.toggle b { display: block; font-weight: 500; font-size: 15px; }
.toggle small { color: var(--mist); font-size: 13px; }
.calc__note { color: var(--mist); font-size: 13px; }
.field legend { font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mist); padding: 0; margin-bottom: 8px; }
.field input[type=month] { color-scheme: dark; font-family: var(--mono); }
.bands--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bands--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.band--plain > span { grid-template-columns: 1fr; row-gap: 2px; height: 100%; }
.result-error { margin-top: 16px; color: #ff8a8a; font-size: 14px; }
.result-ban { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid rgba(255,77,77,.5); background: rgba(255,77,77,.1); }
.result-ban b { font-weight: 600; color: #ff8a8a; }
.result-ban p { margin-top: 4px; font-size: 14px; color: var(--white); }
.calc__result.is-banned .result-total b { text-decoration: line-through; opacity: .4; }
.explainer__aside { color: var(--mist); margin-top: 16px; max-width: 34ch; }
.explainer__aside a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

.calc__result { position: sticky; top: 88px; }
.result-card { background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.result-card header { display: flex; justify-content: space-between; align-items: center; }
.result-total { margin-top: 18px; font-size: clamp(40px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.04em; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.result-total .mono:first-child { font-size: .32em; color: var(--mist); letter-spacing: 0; }
.result-total b { font-weight: 400; }
.result-sub { color: var(--mist); font-size: 13px; margin-top: 10px; }
.calc__result.is-error .result-total b { opacity: .35; }
.result-bar { display: flex; height: 10px; border-radius: 10px; overflow: hidden; margin: 24px 0 6px; background: rgba(255,255,255,.08); gap: 2px; }
.result-bar span { width: var(--w); background: var(--c); transition: width .6s var(--ease); position: relative; }
.result-bar em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.result-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; padding: 16px 0; border-block: 1px solid var(--line-dark); }
.result-meta dt { font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
.result-meta dd { font-size: 15px; margin-top: 4px; }
.result-lines { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.result-lines th { text-align: left; font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mist); padding: 10px 0; }
.result-lines td { padding: 9px 0; border-bottom: 1px solid var(--line-dark); }
.result-lines td small { color: var(--mist); font-size: 10px; }
.result-lines .num { text-align: right; }
.result-ins { font-size: 12px; color: var(--accent-2); margin-top: 12px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.explainer { background: var(--navy-900); padding: clamp(80px, 10vw, 140px) var(--gutter); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 100px); }
.explainer__head { grid-row: span 2; }
.explainer__head .h2 { font-size: clamp(36px, 4vw, 60px); }
.formula { display: grid; gap: 0; }
.formula li { padding: 24px 0; }
.formula li + li { border-top: 1px solid var(--line-dark); }
.formula h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.formula p { color: var(--mist); margin-top: 6px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--navy-800); border: 1px solid var(--line-dark); border-radius: var(--radius-sm); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 500; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--mist); padding-bottom: 20px; }

@media (max-width: 1080px) {
  .duty-teaser, .calc, .explainer { grid-template-columns: 1fr; }
  .calc__result { position: static; }
  .explainer__head { grid-row: auto; }
}
@media (max-width: 720px) {
  .page-hero { padding-top: 120px; }
  .receipt { transform: none; }
  .result-meta { grid-template-columns: 1fr 1fr; }
  .bands--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media print {
  .nav, .mobile-menu, .footer, .page-hero, .explainer, .calc__form, .result-actions, .skip { display: none !important; }
  body, .calc { background: #fff !important; color: #000; }
  .calc { display: block; padding: 0; }
  .result-card { background: #fff !important; border: 1px solid #ccc; color: #000; }
  .result-card *, .result-sub, .result-meta dt, .result-lines th, .result-lines td small { color: #000 !important; }
  .result-lines td { border-color: #ddd; }
  .calc__result::before { content: "Trade Links Logistics · Import duty estimate · +233 54 145 8781 · info@tradelinkslog.com"; display: block; font: 12px var(--mono); margin-bottom: 16px; }
}


/* ============================================================
   FLIGHT — scroll-driven 3D hero + chapters
   ============================================================ */
.flight { position: relative; background: #07114a; }
.flight__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; z-index: 0; }
.flight__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s var(--ease); }
.flight--ready .flight__stage canvas { opacity: 1; }
.flight__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 55% at 50% -8%, rgba(70, 100, 255, .32), transparent 70%), linear-gradient(180deg, transparent 70%, rgba(4, 9, 40, .55)); }
.flight--static .flight__stage { background: linear-gradient(180deg, rgba(7,17,74,.55), rgba(7,17,74,.92)), url(/assets/img/sm/hero-truck-1600.webp) center / cover; }
.flight--static .flight__pins, .flight--static .flight__indicator { display: none; }

.flight__pins { position: absolute; inset: 0; pointer-events: none; }
.fl-pin { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; transition: opacity .5s var(--ease); will-change: transform; }
.fl-pin.is-on { opacity: 1; }
@media (max-width: 720px) { .fl-pin--wide { display: none; } }
.fl-pin__ring { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(8, 20, 72, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); flex: none; }
.fl-pin__ring::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid transparent; border-top-color: #fff; border-right-color: rgba(255,255,255,.6); animation: spin 5s linear infinite; }
.fl-pin__ring::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px rgba(255,255,255,.9); }
.fl-pin.is-flip .fl-pin__label { left: auto; right: 30px; text-align: right; }
.fl-pin__label { position: absolute; left: 30px; top: -17px; font-size: 13px; line-height: 1.3; color: rgba(255,255,255,.92); white-space: nowrap; text-shadow: 0 1px 12px rgba(4,9,40,.8); }
.fl-pin__label small { display: block; font: 400 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
@keyframes spin { to { transform: rotate(360deg); } }

.flight__indicator { position: absolute; left: var(--gutter); bottom: 24px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; font-size: 12px; color: var(--mist); background: rgba(16, 36, 110, .45); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.flight__indicator b { color: var(--white); font-weight: 500; }
.flight__indicator-rule { width: 1px; height: 18px; background: rgba(255,255,255,.25); }
.flight__indicator.is-swap [data-num], .flight__indicator.is-swap [data-name] { animation: indSwap .7s var(--ease); }
@keyframes indSwap { from { opacity: 0; transform: translateY(8px); } }

.flight__content { position: relative; z-index: 1; margin-top: -100svh; }
.glass { background: linear-gradient(180deg, rgba(30, 56, 150, .5), rgba(10, 24, 86, .35)); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border-radius: var(--radius); }

/* hero */
.fl-hero { position: relative; height: 100svh; min-height: 640px; }
.fl-hero__title {
  position: absolute; right: var(--gutter); top: clamp(96px, 12svh, 140px); text-align: right; margin: 0;
  font-size: clamp(44px, 7.2vw, 120px); font-weight: 500; line-height: .95; letter-spacing: -0.045em;
}
.fl-hero__title em { font-style: normal; color: var(--accent); }
.fl-hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.fl-hero__title .line > span { display: inline-block; }
.fl-hero__box { position: absolute; left: var(--gutter); bottom: 84px; width: min(500px, calc(100% - 2 * var(--gutter))); padding: 26px 28px; }
.fl-hero__lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; margin-top: 14px; }
.fl-hero__box .hero__actions { margin-top: 24px; }

/* intro paragraph */
.fl-intro { min-height: 130svh; display: flex; align-items: center; justify-content: flex-end; padding: 0 var(--gutter); }
.fl-intro__inner { width: min(640px, 100%); border-top: 1px solid rgba(255,255,255,.2); padding-top: 18px; }
.fl-intro__text { margin-top: 18px; font-size: clamp(22px, 2.2vw, 34px); line-height: 1.25; letter-spacing: -0.02em; text-shadow: 0 2px 30px rgba(4,9,40,.6); }

/* chapters */
.fl-chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); column-gap: 40px; padding: 0 var(--gutter); }
.fl-title-wrap { position: sticky; top: 34svh; align-self: start; padding-top: 10svh; }
.fl-title { margin-top: 14px; font-size: clamp(52px, 8vw, 132px); font-weight: 400; line-height: .92; letter-spacing: -0.045em; text-shadow: 0 4px 40px rgba(4,9,40,.5); }
.fl-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.fl-title .line > span { display: inline-block; }
.fl-panels { display: grid; gap: 55svh; padding: 95svh 0 60svh; }
.fl-panel { overflow: hidden; }
.fl-panel img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.fl-panel__body { padding: 24px 26px 28px; }
.fl-panel h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.fl-panel p { color: var(--mist); margin-top: 10px; font-size: 16px; }
.fl-panel .tags { margin-top: 18px; }
.fl-link { display: inline-flex; gap: 8px; margin-top: 18px; color: var(--accent); font-weight: 500; }
.fl-link:hover .arrow { transform: translateX(4px); }
.fl-exit { height: 160svh; }

@media (max-width: 900px) {
  .fl-hero__title { left: var(--gutter); right: var(--gutter); text-align: left; }
  .fl-hero__box { bottom: 76px; padding: 20px; }
  .fl-chapter { grid-template-columns: 1fr; }
  .fl-title-wrap { top: 14svh; padding-top: 6svh; }
  .fl-title { font-size: clamp(48px, 13vw, 80px); }
  .fl-panels { padding-top: 75svh; gap: 45svh; }
  .fl-pin__label { font-size: 12px; }
  .fl-intro { min-height: 110svh; }
}
@media (prefers-reduced-motion: reduce) {
  .fl-pin__ring::before { animation: none; }
}


/* ---------- TRACKING ---------- */
.page-hero--short { padding-bottom: 40px; }
.track { background: var(--navy-950); padding: 0 var(--gutter) clamp(80px, 10vw, 140px); display: grid; gap: 24px; max-width: 1100px; }
.track__form { background: var(--navy-800); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); display: grid; gap: 16px; }
.track__form .btn { justify-self: start; }
.track__hint { color: var(--mist); font-size: 14px; }
.track__result { background: var(--navy-800); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 44px); display: grid; gap: 28px; }
.track__mode { font-size: 14px; color: var(--mist); }
.track__head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.track__head h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 500; margin-top: 6px; letter-spacing: -0.02em; }
.track__route { font-size: 20px; margin-top: 6px; }
.track__route span { color: var(--accent); }
.track__meta { display: grid; gap: 12px; min-width: 220px; }
.track__meta dt { font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
.track__meta dd { margin: 2px 0 0; font-size: 16px; }
.track__cancel { padding: 16px 20px; border-radius: var(--radius-sm); background: rgba(255,90,90,.12); color: #ffb3b3; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.stages::before, .stages::after { content: ""; position: absolute; top: 9px; left: calc(100% / 12); height: 3px; border-radius: 3px; }
.stages::before { right: calc(100% / 12); background: var(--line-dark); }
.stages::after { width: calc((100% - 100% / 6) * var(--at) / var(--n)); background: var(--accent); }
.stages li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px; text-align: center; font-size: 14px; color: var(--mist); }
.stages li span { width: 21px; height: 21px; border-radius: 50%; background: var(--navy-800); border: 3px solid rgba(255,255,255,.22); }
.stages li.is-done span { background: var(--accent); border-color: var(--accent); }
.stages li.is-now { color: var(--white); font-weight: 500; }
.stages li.is-now span { border-color: var(--accent); box-shadow: 0 0 0 6px rgba(255,106,61,.2); }
.track__h3 { font-size: 18px; font-weight: 500; margin-bottom: -12px; }
.updates { list-style: none; margin: 0; padding: 0; }
.updates li { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 16px 0;  }
.updates li + li { border-top: 1px solid var(--line-dark); }
.updates time { font-size: 13px; color: var(--mist); }
.updates time small { display: block; }
.updates p { color: var(--mist); margin-top: 4px; }
.track__help { font-size: 14px; color: var(--mist); }
.track__help a { color: var(--white); text-decoration: underline; }
@media (max-width: 720px) {
  .stages { grid-template-columns: 1fr; gap: 14px; }
  .stages::before, .stages::after { display: none; }
  .stages li { grid-template-columns: 21px 1fr; justify-items: start; text-align: left; align-items: center; }
  .updates li { grid-template-columns: 1fr; gap: 6px; }
}

@media (prefers-reduced-transparency: reduce) {
  .glass, .card, .flight__indicator, .nav.is-scrolled, .fl-pin__ring { background: var(--navy-800); backdrop-filter: none; -webkit-backdrop-filter: none; }
}


/* ---------- LEGAL & COMPLIANCE ---------- */
.legal { background: var(--navy-950); padding: 128px var(--gutter) clamp(80px, 10vw, 120px); }
.legal__head { max-width: 860px; }
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--mist); }
.crumbs a { color: var(--mist); text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--white); }
.legal__title { margin-top: 18px; font-size: clamp(40px, 5vw, 68px); font-weight: 500; line-height: 1.02; letter-spacing: -0.035em; }
.legal__intro { margin-top: 20px; font-size: clamp(17px, 1.4vw, 20px); color: var(--mist); max-width: 62ch; line-height: 1.6; }
.legal__intro a, .legal__doc a, .legal__contact a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,106,61,.7); }
.legal__intro a:hover, .legal__doc a:hover { text-decoration-color: var(--accent); }
.legal__meta { margin-top: 18px; font: 400 13px var(--mono); color: var(--mist); }
.legal__draft { margin-top: 20px; padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid rgba(255,181,71,.35); background: rgba(255,181,71,.08); font-size: 15px; max-width: 70ch; }
.tbc { display: inline-block; padding: 1px 9px; border-radius: 999px; background: rgba(255,181,71,.14); color: var(--accent-2); font: 500 12px var(--mono); white-space: nowrap; vertical-align: 1px; }

.legal__body { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: clamp(32px, 6vw, 96px); margin-top: clamp(48px, 6vw, 72px); }
.legal__toc { position: sticky; top: 104px; align-self: start; }
.legal__toc-title { font-size: 14px; font-weight: 500; }
.legal__toc ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line-dark); }
.legal__toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--mist); font-size: 14px; transition: color .2s, border-color .2s; }
.legal__toc a:hover { color: var(--white); }
.legal__toc a[aria-current="true"] { color: var(--white); border-left-color: var(--accent); }
.legal__print { margin-top: 24px; background: none; border: 0; padding: 0; color: var(--mist); font: 400 14px var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.legal__print:hover { color: var(--white); }

.legal__doc { font-size: 17px; line-height: 1.68; color: rgba(255,255,255,.86); }
.legal__doc p { max-width: 70ch; }
.legal__doc p + p { margin-top: 14px; }
.legal__summary { padding: 26px 28px; border-radius: var(--radius); background: var(--navy-800); border: 1px solid var(--line-dark); }
.legal__summary h2 { font-size: 20px; font-weight: 500; color: var(--white); }
.legal__summary ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.legal__summary li { position: relative; padding-left: 26px; }
.legal__summary li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 2px; background: var(--accent); }
.legal__section { padding-top: 48px; scroll-margin-top: 96px; }
.legal__section h2, .legal__contact h2 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; color: var(--white); margin-bottom: 16px; }
.legal__section h3 { font-size: 17px; font-weight: 500; color: var(--white); margin-bottom: 6px; }
.legal__contact { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line-dark); }
.legal__doc code { font: 400 14px var(--mono); color: var(--white); background: rgba(255,255,255,.07); padding: 1px 6px; border-radius: 6px; }
.legal__doc .note { margin-top: 14px; font-size: 15px; color: var(--mist); }
.legal__doc .muted-line { color: var(--mist); font-size: 15px; }

.ticks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; max-width: 70ch; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 7px; height: 12px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.cols p { font-size: 16px; color: var(--mist); }
.cols .ticks { margin-top: 8px; font-size: 16px; }
.cols + p { margin-top: 20px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0; }
.facts > div { padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.facts dt { font-size: 13px; color: var(--mist); }
.facts dd { margin: 4px 0 0; color: var(--white); font-size: 16px; }
.facts + p { margin-top: 16px; }
.legal-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 15px; line-height: 1.5; }
.legal-table th { text-align: left; font-weight: 500; font-size: 13px; color: var(--mist); padding: 0 16px 10px 0; border-bottom: 1px solid var(--line-dark); }
.legal-table td { padding: 14px 16px 14px 0; vertical-align: top; }
.legal-table tbody tr + tr td { border-top: 1px solid var(--line-dark); }
.legal-table td:first-child { color: var(--white); }
.legal-table + p { margin-top: 18px; }
.cookie-cat + .cookie-cat { margin-top: 32px; }
.cookie-cat > p { color: var(--mist); font-size: 16px; margin-bottom: 8px; }

.legal__more { margin-top: clamp(64px, 8vw, 104px); padding-top: 40px; border-top: 1px solid var(--line-dark); }
.legal__more h2 { font-size: 22px; font-weight: 500; }
.legal__more ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.legal__more a { display: grid; gap: 6px; height: 100%; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line-dark); transition: border-color .2s, background-color .2s; }
.legal__more a:hover { border-color: rgba(255,255,255,.3); background: var(--navy-900); }
.legal__more b { font-weight: 500; }
.legal__more span { color: var(--mist); font-size: 14px; line-height: 1.5; }

/* hub */
.hub { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.hub__docs { list-style: none; margin: 0; padding: 0; }
.hub__group { margin: 56px 0 8px; font: 400 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.hub__docs h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -0.02em; }
.hub__docs a { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; padding: 26px 0; border-top: 1px solid var(--line-dark); }
.hub__docs li:last-child a { border-bottom: 1px solid var(--line-dark); }
.hub__docs h2 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.02em; transition: color .2s; }
.hub__docs p { grid-column: 1; color: var(--mist); margin-top: 6px; max-width: 60ch; font-size: 16px; }
.hub__docs .arrow { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 22px; color: var(--mist); transition: transform .3s var(--ease), color .2s; }
.hub__docs a:hover h2 { color: var(--accent); }
.hub__docs a:hover .arrow { transform: translateX(6px); color: var(--accent); }
.hub__facts { position: sticky; top: 104px; padding: 26px; border-radius: var(--radius); background: var(--navy-800); border: 1px solid var(--line-dark); }
.hub__facts h2 { font-size: 18px; font-weight: 500; margin-bottom: 6px; }
.hub__facts .facts { grid-template-columns: 1fr; }
.hub__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* forms: privacy line */
.form__privacy { font-size: 13px; color: var(--mist); }
.form__privacy a, .track__hint a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }

/* footer legal links */
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__legal a, .footer__legal button { color: var(--mist); font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.footer__legal a:hover, .footer__legal button:hover { color: var(--white); }
.footer__credit { color: var(--mist); }
.footer__credit a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,106,61,.7); }
.footer__credit a:hover { text-decoration-color: var(--accent); }

/* consent */
.consent { border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 0; width: min(520px, calc(100vw - 32px)); background: var(--navy-800); color: var(--white); box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.consent::backdrop { background: rgba(4,9,30,.6); }
.consent__form { padding: 28px; display: grid; gap: 16px; }
.consent h2 { font-size: 22px; font-weight: 500; }
.consent p { color: var(--mist); font-size: 15px; }
.consent a { color: var(--white); text-decoration: underline; }
.consent__cats { list-style: none; margin: 0; padding: 0; display: grid; }
.consent__cats li + li { border-top: 1px solid var(--line-dark); }
.consent__toggle { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; cursor: pointer; }
.consent__toggle input { position: absolute; opacity: 0; pointer-events: none; }
.consent__switch { flex: none; margin-top: 2px; width: 40px; height: 24px; border-radius: 999px; background: rgba(255,255,255,.16); position: relative; transition: background-color .25s; }
.consent__switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); transition: transform .3s var(--ease); }
.consent__toggle input:checked + .consent__switch { background: var(--accent); }
.consent__toggle input:checked + .consent__switch::after { transform: translateX(16px); }
.consent__toggle input:disabled + .consent__switch { opacity: .55; }
.consent__toggle input:focus-visible + .consent__switch { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent__toggle b { display: block; font-weight: 500; }
.consent__toggle small { display: block; color: var(--mist); font-size: 14px; margin-top: 2px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent-banner { position: fixed; z-index: 60; left: 16px; bottom: 16px; width: min(460px, calc(100vw - 32px)); padding: 20px 22px; display: grid; gap: 14px; border-radius: var(--radius); background: var(--navy-800); border: 1px solid var(--line-dark); box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); font-size: 15px; }
.consent-banner a { color: var(--white); text-decoration: underline; }

@media (max-width: 960px) {
  .legal__body, .hub { grid-template-columns: 1fr; }
  .legal__toc, .hub__facts { position: static; }
  .legal__toc ol { grid-template-columns: 1fr 1fr; border-left: 0; gap: 0 16px; }
  .legal__toc a { border-left: 0; padding-left: 0; }
}
@media (max-width: 640px) {
  .legal { padding-top: 104px; }
  .cols, .facts, .legal__toc ol { grid-template-columns: 1fr; }
  .legal-table thead { display: none; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table tr { padding: 12px 0; }
  .legal-table tbody tr + tr { border-top: 1px solid var(--line-dark); }
  .legal-table tbody tr + tr td { border-top: 0; }
  .legal-table td { padding: 2px 0; }
  .footer__legal { gap: 6px 16px; }
}
@media print {
  .nav, .mobile-menu, .footer, .legal__toc, .legal__more, .legal__draft, .consent-banner, .skip { display: none !important; }
  body, .legal { background: #fff !important; color: #000; }
  .legal { padding: 0; }
  .legal__body { display: block; margin-top: 16px; }
  .legal__doc, .legal__intro, .legal__meta, .legal__doc .note, .cols p, .facts dt, .legal-table th, .cookie-cat > p, .crumbs, .crumbs a { color: #222 !important; }
  .legal__title, .legal__section h2, .legal__section h3, .legal__summary h2, .facts dd, .legal-table td:first-child, .legal__doc a { color: #000 !important; }
  .legal__summary { background: #f3f3f3; border-color: #ccc; }
  .facts > div, .legal-table th, .legal-table tbody tr + tr td, .legal__contact { border-color: #ccc !important; }
  .legal__section { break-inside: avoid-page; padding-top: 24px; }
}

/* tracking: documents and PoD */
.track__docs { display: grid; gap: 16px; }
.doc-check { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.doc-check li { display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid rgba(255,181,71,.45); background: rgba(255,181,71,.07); }
.doc-check li span { grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-2); color: var(--navy-950); font-weight: 600; font-size: 14px; }
.doc-check li small { color: var(--mist); font-size: 13px; }
.doc-check li.is-done { border-color: rgba(61,220,151,.4); background: rgba(61,220,151,.07); }
.doc-check li.is-done span { background: var(--ok); }
.doc-upload { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 12px; align-items: end; }
.doc-upload select, .doc-upload input[type=file] { width: 100%; height: 54px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-dark); background: rgba(6,16,41,.5); color: var(--white); font: 15px var(--font); }
.doc-upload input[type=file] { padding: 14px; height: auto; }
.track__pod { padding: 14px 18px; border-radius: var(--radius-sm); background: rgba(61,220,151,.1); border: 1px solid rgba(61,220,151,.35); }
.track__pod a { color: var(--white); text-decoration: underline; }
@media (max-width: 720px) { .doc-upload { grid-template-columns: 1fr; } }

/* free-time clocks on tracking */
.track__clocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tclock { padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line-dark); display: grid; gap: 4px; }
.tclock small { color: var(--mist); font-size: 13px; }
.tclock b { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.tclock span { color: var(--mist); font-size: 14px; }
.tclock--warn { border-color: rgba(255,181,71,.5); background: rgba(255,181,71,.07); }
.tclock--warn b { color: var(--accent-2); }
.tclock--charging, .tclock--over { border-color: rgba(255,106,61,.55); background: rgba(255,106,61,.09); }
.tclock--charging b, .tclock--over b { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links, .nav__phone { display: none; }
  .nav__burger { display: block; }
  .benefits, .quote { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__cell--ocean { grid-row: span 1; min-height: 320px; }
  .receipt-strip dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .receipt-strip dl > div:nth-child(4) { border-left: 0; }
  .receipt-strip dl > div:nth-child(n+4) { border-top: 1px solid var(--line-dark); }
  .steps { grid-template-columns: 1fr 1fr; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figure:nth-child(3) { border-left: 0; }
  .figure:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__portal { display: none; }
  .nav .btn--sm { display: none; }
  .card { padding: 14px 16px; }
  .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento__cell, .bento__cell--ocean, .bento__cell--haul { grid-column: auto; grid-row: auto; }
  .bento__cell--photo { min-height: 260px; }
  .receipt-strip dl { grid-template-columns: 1fr 1fr; }
  .receipt-strip dl > div:nth-child(odd) { border-left: 0; }
  .receipt-strip dl > div:nth-child(4) { border-left: 1px solid var(--line-dark); }
  .receipt-strip dl > div:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .gateways--row { grid-template-columns: 1fr; }
  .step { min-height: 220px; }
  .benefit-list > div { grid-template-columns: 1fr; gap: 4px; }
  .form__row { grid-template-columns: 1fr; }
  .form__modes span { font-size: 13px; }
  .figure b { font-size: 44px; }
  .footer__cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .benefits__media { clip-path: none; }
}

/* Route, service and guide pages */
.route-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 40px; max-width: 1100px; border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; background: var(--line-dark); }
.route-facts > div { background: rgba(6,16,41,.72); padding: 18px 20px; }
.route-facts dt { font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
.route-facts dd { margin-top: 6px; font-size: 15px; line-height: 1.4; }
.page-hero .crumbs { margin-bottom: 4px; }
.legal--content { padding-top: 8px; }
.legal--content .legal__body { margin-top: 24px; }
.legal__doc ol, .legal__doc ul { padding-left: 1.2em; display: grid; gap: 8px; }
.legal__toc .legal__toc-cta { display: inline-flex; margin: 24px 0 0; padding: 0 18px; border: 0; color: var(--navy-950); font-size: 15px; }
.legal__toc .legal__toc-cta:hover { color: var(--navy-950); }
.content-cta { margin-top: 56px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: radial-gradient(600px 300px at 100% 0%, rgba(255,106,61,.16), transparent 70%), var(--navy-800); border: 1px solid var(--line-dark); }
.content-cta h2 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.02em; }
.content-cta p { color: var(--mist); margin-top: 10px; max-width: 56ch; }
.content-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.legal--content .legal__meta { margin-top: 28px; }
.hub__docs--wide { margin-top: clamp(40px, 5vw, 64px); max-width: 1000px; }
.hub__switch { margin-top: 32px; }
.hub__switch a { font-size: 18px; color: var(--white); }
.hub__switch a:hover { color: var(--accent); }
@media (max-width: 900px) {
  .route-facts { grid-template-columns: 1fr 1fr; }
  .legal__toc-cta { display: none; }
}

/* About */
.about-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(64px, 8vw, 120px) var(--gutter); background: var(--navy-950); }
.about-split .h2 em { font-style: normal; color: var(--accent); }
.about-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.about-list a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 16px; transition: color .2s; }
.about-list a:hover { color: var(--accent); }
.about-list .arrow { transition: transform .3s var(--ease); }
.about-list a:hover .arrow { transform: translateX(4px); }
.about-split__media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.about-split__media img { width: 100%; height: 100%; object-fit: cover; }
.about-regs { padding: clamp(48px, 6vw, 80px) var(--gutter); background: var(--navy-900); border-block: 1px solid var(--line-dark); }
.about-regs__title { font-size: clamp(24px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.02em; }
.about-regs__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.about-regs__grid dt { font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
.about-regs__grid dd { margin-top: 8px; font-size: 17px; }
.about-regs__more { margin-top: 28px; }
.about-regs__more a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,106,61,.7); }
.team { padding: clamp(72px, 9vw, 130px) var(--gutter); background: var(--navy-950); }
.team__grid { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 32px 24px; }
.person img, .person__initials { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--navy-800); }
.person__initials { display: grid; place-items: center; font-size: 44px; font-weight: 500; letter-spacing: -0.03em; color: var(--mist); border: 1px solid var(--line-dark); }
.person h3 { margin-top: 16px; font-size: 19px; font-weight: 500; }
.person__role { color: var(--accent); font-size: 14px; margin-top: 2px; }
.person__bio { color: var(--mist); font-size: 14px; margin-top: 10px; line-height: 1.55; }
.person__link { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--mist); }
.person__link:hover { color: var(--white); }
.clients { padding: clamp(56px, 7vw, 96px) var(--gutter); background: var(--navy-900); }
.clients__title { font-size: 18px; font-weight: 500; color: var(--mist); }
.clients__grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.clients__grid li { display: grid; place-items: center; height: 96px; padding: 18px; border: 1px solid var(--line-dark); border-radius: var(--radius-sm); }
.clients__grid img { max-width: 100%; max-height: 52px; object-fit: contain; filter: grayscale(1) brightness(1.6); opacity: .8; transition: filter .3s, opacity .3s; }
.clients__grid li:hover img { filter: none; opacity: 1; }
.content-band { padding: clamp(48px, 6vw, 96px) var(--gutter); background: var(--navy-950); }
.content-band .content-cta { margin-top: 0; max-width: 1100px; }

/* Case studies */
.cases { padding: 0 var(--gutter) clamp(80px, 10vw, 140px); background: var(--navy-950); }
.cases--teaser { padding-top: clamp(72px, 9vw, 130px); }
.cases__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.case-grid { list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.cases > .case-grid:first-child { margin-top: 0; }
.case-card { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--navy-800); border: 1px solid var(--line-dark); transition: border-color .25s, transform .4s var(--ease); }
.case-card:hover { border-color: rgba(255,255,255,.3); transform: translateY(-3px); }
.case-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.case-card__body { padding: 22px 24px 26px; display: grid; gap: 10px; align-content: start; flex: 1; }
.case-card__meta { font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
.case-card h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.case-card p { color: var(--mist); font-size: 15px; line-height: 1.55; }
.case-card__metric { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-dark); }
.case-card__metric b { color: var(--white); font-weight: 500; font-family: var(--mono); }
.cases__empty { max-width: 640px; padding: 48px 0; }
.cases__empty h2 { font-size: 28px; font-weight: 500; }
.cases__empty p { color: var(--mist); margin-top: 12px; }
.cases__empty a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.case-hero__title { font-size: clamp(36px, 4.6vw, 68px); max-width: 20ch; }
.case-photo { margin: 0 var(--gutter); border-radius: var(--radius); overflow: hidden; max-height: 620px; }
.case-photo img { width: 100%; height: 100%; max-height: 620px; object-fit: cover; }
.case-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; margin: 40px var(--gutter) 0; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.case-metrics div { background: var(--navy-900); padding: 26px 28px; display: grid; gap: 6px; }
.case-metrics b { font: 500 clamp(28px, 3vw, 40px) var(--mono); letter-spacing: -0.03em; color: var(--accent); }
.case-metrics span { color: var(--mist); font-size: 15px; }
.case-body { max-width: 760px; padding: clamp(48px, 6vw, 80px) var(--gutter) clamp(64px, 8vw, 110px); display: grid; gap: 40px; }
.case-body h2 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 12px; }
.case-body p { color: var(--mist); font-size: 17px; line-height: 1.7; }
.case-body p + p { margin-top: 14px; }
.case-body .content-cta { margin-top: 0; }
.case-quote { margin: 0; padding: 28px 32px; border-left: 2px solid var(--accent); background: var(--navy-900); border-radius: 0 var(--radius) var(--radius) 0; }
.case-quote p { color: var(--white); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; }
.case-quote footer { margin-top: 12px; color: var(--mist); font-size: 14px; }
.cases--more { border-top: 1px solid var(--line-dark); padding-top: clamp(56px, 7vw, 96px); }
.cases__more-title { font-size: 22px; font-weight: 500; }
@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr; }
  .about-split__media { aspect-ratio: 16 / 10; }
  .about-regs__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .about-list { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
}

/* ---------- contact page ---------- */
.contact { padding: 0 var(--gutter) clamp(64px, 8vw, 120px); display: grid; gap: clamp(40px, 5vw, 64px); }
.contact__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.contact__card { display: grid; gap: 6px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line-dark); background: rgba(255,255,255,.03); transition: border-color .3s, transform .4s var(--ease); }
.contact__card:hover { border-color: rgba(255,255,255,.3); transform: translateY(-3px); }
.contact__card small { font: 400 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.contact__card b { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.contact__card span { color: var(--mist); font-size: 14px; }
.contact__card--multi a:hover b { color: var(--accent); }
.contact__card--multi b { transition: color .2s; }
.contact__card--accent { background: radial-gradient(300px 200px at 100% 0%, rgba(255,106,61,.25), transparent 70%), var(--navy-800); border-color: rgba(255,106,61,.4); }
.contact__info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); padding-top: 32px; border-top: 1px solid var(--line-dark); }
.contact__info .h3, .contact__faq .h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 14px; }
.contact__addr { font-style: normal; line-height: 1.6; margin-bottom: 16px; }
.contact__note { color: var(--mist); }
.contact__links { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 12px; }
.contact__links a:hover { color: var(--accent); }
.facts--single { grid-template-columns: 1fr; }
.contact__faq { max-width: 820px; }
.contact__faq details { border-bottom: 1px solid var(--line-dark); padding: 16px 0; }
.contact__faq summary { cursor: pointer; font-size: 17px; }
.contact__faq details p { color: var(--mist); margin-top: 10px; }
@media (max-width: 1000px) { .contact__cards { grid-template-columns: 1fr 1fr; } .contact__info { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .contact__cards { grid-template-columns: 1fr; } }
.hub__group + .hub__docs--wide { margin-top: 0; }
.hub__docs h3 { transition: color .2s; }
.hub__docs a:hover h3 { color: var(--accent); }
