/* ==========================================================================
   Caravan: "Night Haul, Cold Chain". Tokens locked in /DESIGN.md
   ========================================================================== */
:root {
  /* colour */
  --night: #0A1630;
  --night-2: #0D1C3D;
  --navy: #1E3A8A;
  --steel: #13244A;
  --frost: #5BC8F5;
  --amber: #F6A821;
  --amber-hi: #FFB938;
  --glacier: #F3F7FB;
  --white: #FFFFFF;
  --ink: #0F172A;
  --mist: #A9B6CC;
  --slate: #4B5870;
  --line-dark: rgba(255, 255, 255, .14);
  --line-light: #D6DEEA;
  --error: #FF8A8A;
  --error-light: #B42318;
  --success: #6EE7B7;

  /* type */
  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --fs-h1: clamp(2.5rem, min(1.2rem + 5.2vw, 11.5vh), 5.5rem);
  --fs-h2: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .5vw, 1.625rem);
  --fs-lead: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-mono: .8125rem;

  /* space */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --section: clamp(72px, 9vw, 128px);
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);

  /* shape & depth */
  --r-sm: 6px; --r-md: 16px; --r-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(5,12,28,.10), 0 4px 12px rgba(5,12,28,.12);
  --shadow-lg: 0 1px 2px rgba(5,12,28,.10), 0 8px 24px rgba(5,12,28,.18), 0 32px 64px -16px rgba(5,12,28,.45);
  --shadow-light: 0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.08), 0 24px 48px -20px rgba(15,23,42,.18);
  --glow: 0 0 0 1px rgba(91,200,245,.28), 0 12px 40px -8px rgba(91,200,245,.38);
  --glass-bg: rgba(255,255,255,.07);
  --glass-border: rgba(255,255,255,.14);

  /* motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-spring: cubic-bezier(.34,1.4,.64,1);
  --t-fast: 180ms; --t-mid: 240ms; --t-slow: 600ms;

  /* chrome */
  --topbar-h: 40px;
  --header-h: 88px;
  --header-h-sm: 64px;
  --mbar-h: 0px;

  /* z-index scale */
  --z-base: 1; --z-raised: 10; --z-header: 100; --z-mbar: 110; --z-menu: 120; --z-modal: 200;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h-sm) + 24px); }
body {
  margin: 0; font-family: var(--f-body); font-size: var(--fs-body); line-height: 1.65; color: var(--white);
  background: var(--night); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: var(--mbar-h); overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-stretch: 118%; font-weight: 800; line-height: 1.02; letter-spacing: -.01em; text-transform: uppercase; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 900; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.12; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 999; background: var(--amber); color: var(--night); padding: 12px 18px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--frost); outline-offset: 3px; border-radius: 4px; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section); }
.section--light { background: var(--glacier); color: var(--ink); }
.section--steel { background: var(--steel); }
.section--tight { padding-block: calc(var(--section) * .6); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s6); }
.stack > * + * { margin-top: var(--s5); }

/* ---------- type helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: var(--fs-mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--frost); margin-bottom: var(--s5); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section--light .eyebrow { color: var(--navy); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--mist); max-width: 60ch; }
.section--light .lead, .section--light .muted { color: var(--slate); }
.muted { color: var(--mist); }
.prose { max-width: 68ch; }
.prose p { color: var(--mist); }
.section--light .prose p { color: var(--slate); }
.prose a, .text-link { color: var(--frost); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.section--light .prose a, .section--light .text-link { color: var(--navy); }
.mono { font-family: var(--f-mono); letter-spacing: .06em; text-transform: uppercase; font-size: var(--fs-mono); }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6) var(--s8); align-items: end; margin-bottom: var(--s8); }
.section-head .lead { margin: 0; }
.section-head--stack { grid-template-columns: 1fr; max-width: 820px; }

/* the logo-arrow stroke under headings */
.arrow-rule { display: block; width: min(260px, 60%); height: 18px; margin-top: var(--s5); color: var(--frost); overflow: visible; }
.arrow-rule path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 320; stroke-dashoffset: 320; transition: stroke-dashoffset 1.4s var(--ease) .2s; }
.is-in .arrow-rule path, .arrow-rule.is-in path { stroke-dashoffset: 0; }
.section--light .arrow-rule { color: var(--navy); }

/* ---------- buttons ---------- */
.btn { --bg: transparent; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: var(--r-sm); border: 1px solid transparent; background: var(--bg); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-mid) var(--ease), color var(--t-fast); overflow: hidden; isolation: isolate; }
.btn .icon { transition: transform var(--t-mid) var(--ease); }
.btn:hover .icon--arrow, .btn:focus-visible .icon--arrow { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--primary { --bg: var(--amber); color: var(--night); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 8px 24px -8px rgba(246,168,33,.55); }
.btn--primary:hover { --bg: var(--amber-hi); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 14px 32px -8px rgba(246,168,33,.7); }
.btn--glass { color: var(--white); background: rgba(255,255,255,.06); border-color: rgba(91,200,245,.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--glass::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(91,200,245,.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn--glass:hover::after { transform: translateX(120%); }
.btn--glass:hover { border-color: var(--frost); box-shadow: var(--glow); }
.btn--navy { --bg: var(--navy); color: var(--white); }
.btn--navy:hover { --bg: #24459F; box-shadow: var(--shadow-sm); }
.btn--outline-dark { color: var(--navy); border-color: var(--navy); }
.btn--outline-dark:hover { background: var(--navy); color: var(--white); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s4); }
.magnetic { will-change: auto; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-sm); font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line-dark); background: rgba(255,255,255,.05); color: var(--white); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--frost); box-shadow: 0 0 0 3px rgba(91,200,245,.2); }
.chip--amber .dot { background: var(--amber); box-shadow: 0 0 0 3px rgba(246,168,33,.2); }
.section--light .chip { border-color: var(--line-light); background: var(--white); color: var(--ink); }

/* glass */
.glass { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--r-md); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), var(--shadow-lg); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); position: relative; }
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E"); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .masthead.is-scrolled .header, .mobile-menu, .modal__panel { background: rgba(19, 36, 74, .96); }
}

/* ==========================================================================
   Masthead: top bar + sticky shrinking header
   ========================================================================== */
.masthead { position: fixed; inset: 0 0 auto 0; z-index: var(--z-header); transition: transform var(--t-slow) var(--ease); }
.masthead.is-scrolled { transform: translateY(calc(var(--topbar-h) * -1)); }
.topbar { height: var(--topbar-h); background: rgba(6, 14, 32, .92); border-bottom: 1px solid var(--line-dark); font-size: .875rem; color: var(--mist); }
.topbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s5); }
.topbar__info, .topbar__social { display: flex; align-items: center; gap: var(--s5); list-style: none; }
.topbar a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; transition: color var(--t-fast); }
.topbar a:hover { color: var(--white); }
.topbar .icon { width: 16px; height: 16px; color: var(--frost); }
.topbar__social a { width: 36px; justify-content: center; border-radius: var(--r-sm); }
.topbar__social a:hover { background: rgba(255,255,255,.08); }
.topbar__social .icon { color: var(--mist); }
.topbar__247 { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.topbar__247::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(110,231,183,.2); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(110,231,183,0); } }

.header { height: var(--header-h); transition: height var(--t-slow) var(--ease), background var(--t-slow) var(--ease), box-shadow var(--t-slow), border-color var(--t-slow); border-bottom: 1px solid transparent; background: linear-gradient(to bottom, rgba(10,22,48,.55), rgba(10,22,48,0)); }
.masthead.is-scrolled .header { height: var(--header-h-sm); background: rgba(10, 22, 48, .72); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); border-bottom-color: var(--line-dark); box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.header .container { height: 100%; display: flex; align-items: center; gap: var(--s6); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 52px; width: auto; aspect-ratio: 662 / 161; transition: height var(--t-slow) var(--ease); }
.masthead.is-scrolled .brand img { height: 38px; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; position: relative; }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; min-height: 44px; font-weight: 500; font-size: .9688rem; text-decoration: none; color: rgba(255,255,255,.86); background: none; border: 0; border-radius: var(--r-sm); transition: color var(--t-fast); }
.nav__link:hover, .nav__link[aria-current="page"], .nav__item--open > .nav__link { color: var(--white); }
.nav__link .icon { width: 16px; height: 16px; transition: transform var(--t-mid) var(--ease); }
.nav__item--open > .nav__link .icon { transform: rotate(180deg); }
.nav__indicator { position: absolute; bottom: 4px; height: 2px; border-radius: 2px; background: var(--frost); left: 0; width: 0; opacity: 0; transition: left var(--t-mid) var(--ease), width var(--t-mid) var(--ease), opacity var(--t-fast); pointer-events: none; }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--amber); border-radius: 2px; }
.nav__item { position: relative; }
.dropdown { position: absolute; top: calc(100% + 8px); left: -12px; min-width: 300px; padding: 10px; list-style: none; border-radius: var(--r-md); background: rgba(13, 28, 61, .9); border: 1px solid var(--glass-border); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top left; transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease), visibility 0s linear var(--t-mid); }
.nav__item--open .dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dropdown a { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 12px; border-radius: 10px; text-decoration: none; transition: background var(--t-fast); }
.dropdown a:hover, .dropdown a:focus-visible { background: rgba(91,200,245,.1); }
.dropdown .icon { grid-row: span 2; width: 22px; height: 22px; color: var(--frost); margin-top: 2px; }
.dropdown strong { font-weight: 600; }
.dropdown span { font-size: .875rem; color: var(--mist); }
.header__actions { display: flex; align-items: center; gap: var(--s3); }
.menu-toggle { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: var(--r-sm); border: 1px solid var(--line-dark); background: rgba(255,255,255,.06); }
.menu-toggle .icon { width: 24px; height: 24px; }

/* mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: var(--z-menu); background: rgba(8, 18, 40, .9); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity var(--t-mid) var(--ease), visibility 0s linear var(--t-mid); overflow-y: auto; }
.mobile-menu.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s6); }
.mobile-menu__top img { height: 38px; width: auto; }
.mobile-menu nav ul { list-style: none; }
.mobile-menu nav a { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-family: var(--f-display); font-stretch: 118%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.4rem, 6vw, 2rem); text-decoration: none; opacity: 0; transform: translateY(14px); transition: opacity .4s var(--ease), transform .4s var(--ease), color var(--t-fast); }
.mobile-menu nav a.sub { font-family: var(--f-body); font-stretch: 100%; text-transform: none; font-weight: 500; font-size: 1.0625rem; padding-left: 18px; color: var(--mist); }
.mobile-menu nav a[aria-current="page"] { color: var(--amber); }
.mobile-menu.is-open nav a { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 45ms + 80ms); }
.mobile-menu__cta { margin-top: auto; padding-top: var(--s6); display: grid; gap: var(--s3); }

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: clip; padding-top: calc(var(--topbar-h) + var(--header-h)); padding-bottom: clamp(140px, 16vw, 200px); isolation: isolate; }
.hero__media, .hero__shade, .hero__frost { position: absolute; inset: 0; }
.hero__media { z-index: -3; inset: -8% 0 -8% 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; transform: scale(1.06); animation: heroZoom 2.2s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.16); filter: saturate(.6) brightness(.8); } }
.hero__shade { z-index: -2; background:
  linear-gradient(180deg, rgba(10,22,48,.78) 0%, rgba(10,22,48,.25) 38%, rgba(10,22,48,.55) 70%, var(--night) 100%),
  linear-gradient(90deg, rgba(10,22,48,.92) 0%, rgba(10,22,48,.55) 48%, rgba(10,22,48,.05) 100%); }
.hero__frost { z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero__content { position: relative; grid-column: 1 / span 8; }
.hero .eyebrow { color: var(--frost); }
.hero h1 { max-width: 13ch; }
.hero h1 .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; }
.hero h1 .word > span { display: inline-block; transform: translateY(105%); animation: wordUp .9s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms + 250ms); }
@keyframes wordUp { to { transform: none; } }
.hero h1 .accent { color: var(--frost); }
.hero__slogan { margin-top: var(--s4); font-family: var(--f-display); font-stretch: 118%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.1rem, .9rem + .8vw, 1.5rem); letter-spacing: .02em; color: var(--amber); }
.hero__lead { margin-top: var(--s5); }
.hero .btn-row { margin-top: var(--s6); }
.fade-up { opacity: 0; transform: translateY(18px); animation: fadeUp .9s var(--ease) forwards; animation-delay: var(--d, .6s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.manifest { position: absolute; right: var(--gutter); bottom: -90px; width: min(380px, 40vw); padding: var(--s5); z-index: var(--z-raised); animation: bob 6s ease-in-out infinite; }
.manifest__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: var(--s3); border-bottom: 1px dashed var(--line-dark); margin-bottom: var(--s4); font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
.manifest__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); padding: 8px 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mist); }
.manifest__row strong { color: var(--white); font-weight: 500; font-size: 13px; text-align: right; }
.manifest__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s4); }
.manifest__chips .chip { animation: bob 5s ease-in-out infinite; animation-delay: calc(var(--i) * -1.4s); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; display: grid; justify-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); text-decoration: none; }
.scroll-cue span { width: 1px; height: 44px; background: linear-gradient(var(--frost), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- ticker ---------- */
.ticker { position: relative; border-block: 1px solid var(--line-dark); background: var(--night-2); overflow: hidden; padding-block: 20px; }
.ticker__track { display: flex; width: max-content; animation: ticker 42s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker ul { display: flex; list-style: none; }
.ticker li { display: inline-flex; align-items: center; gap: 18px; padding-inline: 18px; font-family: var(--f-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); white-space: nowrap; }
.ticker li::after { content: ""; width: 22px; height: 10px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 10'%3E%3Cpath d='M1 5h19M15 1l5 4-5 4' fill='none' stroke='%235BC8F5' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ==========================================================================
   Trifecta: container-door cards
   ========================================================================== */
.trifecta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); perspective: 1400px; }
.crate { position: relative; min-height: 520px; border-radius: var(--r-md); transform-style: preserve-3d; transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow); box-shadow: var(--shadow-lg); --rx: 0deg; --ry: 0deg; transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.crate__inside { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: var(--steel); display: flex; flex-direction: column; border: 1px solid var(--line-dark); }
.crate__inside picture { height: 44%; flex: none; overflow: hidden; }
.crate__inside img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.crate:hover .crate__inside img { transform: scale(1.05); }
.crate__body { padding: var(--s5); display: flex; flex-direction: column; flex: 1; }
.crate__body h3 { margin-bottom: var(--s3); }
.crate__body ul { list-style: none; display: grid; gap: 6px; margin-bottom: var(--s5); }
.crate__body li { display: flex; gap: 10px; font-size: .9688rem; color: var(--mist); }
.crate__body li::before { content: ""; width: 6px; height: 6px; margin-top: .62em; flex: none; border-radius: 1px; background: var(--frost); transform: rotate(45deg); }
.crate__body .text-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--amber); }
.crate__body .text-link:hover .icon { transform: translateX(4px); }
.crate__body .text-link .icon { transition: transform var(--t-mid) var(--ease); }
.crate__doors { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; border-radius: inherit; pointer-events: none; transform-style: preserve-3d; z-index: 2; }
.crate__door { position: relative; height: 100%; backface-visibility: hidden; transition: transform 1s var(--ease), opacity .6s var(--ease); background:
  linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 100%) 0 0 / 22px 100%,
  repeating-linear-gradient(90deg, #172C5C 0 9px, #1E3A8A 9px 12px, #1A3170 12px 22px),
  var(--navy);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 -60px 80px -40px rgba(0,0,0,.5); }
.crate__door--l { transform-origin: left center; border-radius: var(--r-md) 0 0 var(--r-md); }
.crate__door--r { transform-origin: right center; border-radius: 0 var(--r-md) var(--r-md) 0; }
.crate__door::before, .crate__door::after { content: ""; position: absolute; top: 7%; bottom: 36%; width: 6px; border-radius: 3px; background: linear-gradient(90deg, #8C9AB4, #DCE3EE 50%, #8C9AB4); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.crate__door--l::before { right: 26%; } .crate__door--l::after { right: 10%; }
.crate__door--r::before { left: 10%; } .crate__door--r::after { left: 26%; }
.crate__label { position: absolute; inset: auto 0 0 0; padding: var(--s5); z-index: 3; pointer-events: none; transition: opacity .4s var(--ease); background: linear-gradient(transparent, rgba(6,14,32,.85)); border-radius: 0 0 var(--r-md) var(--r-md); }
.crate__label .mono { color: var(--frost); display: block; margin-bottom: 8px; }
.crate__label h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
.crate__plate { position: absolute; top: var(--s5); left: var(--s5); z-index: 3; pointer-events: none; padding: 6px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 4px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: rgba(255,255,255,.85); background: rgba(6,14,32,.3); transition: opacity .4s var(--ease); }
.crate__hint { position: absolute; top: var(--s5); right: var(--s5); z-index: 3; pointer-events: none; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); transition: opacity .4s; }
.crate.is-open .crate__door--l, .crate:hover .crate__door--l, .crate:focus-within .crate__door--l { transform: rotateY(-108deg); }
.crate.is-open .crate__door--r, .crate:hover .crate__door--r, .crate:focus-within .crate__door--r { transform: rotateY(108deg); }
.crate.is-open :is(.crate__label, .crate__plate, .crate__hint), .crate:hover :is(.crate__label, .crate__plate, .crate__hint), .crate:focus-within :is(.crate__label, .crate__plate, .crate__hint) { opacity: 0; }
.crate.is-open .crate__doors, .crate:hover .crate__doors, .crate:focus-within .crate__doors { }
.crate__toggle { position: absolute; inset: 0; z-index: 4; background: none; border: 0; border-radius: inherit; }
.crate.is-open .crate__toggle, .crate:hover .crate__toggle { pointer-events: none; }
.crate:hover { box-shadow: var(--shadow-lg), var(--glow); }
@media (hover: hover) { .crate__toggle { display: none; } }
@media (hover: none) { .crate:hover .crate__door--l, .crate:hover .crate__door--r { transform: none; } .crate:hover :is(.crate__label, .crate__plate, .crate__hint) { opacity: 1; } .crate.is-open .crate__door--l { transform: rotateY(-108deg); } .crate.is-open .crate__door--r { transform: rotateY(108deg); } .crate.is-open :is(.crate__label,.crate__plate,.crate__hint) { opacity: 0; } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.stat { padding: var(--s5) var(--s6); }
.stat__num { display: block; font-family: var(--f-display); font-stretch: 118%; font-weight: 900; font-size: clamp(1.9rem, 1.3rem + 1.6vw, 2.75rem); line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; }
.stat__num small { font-size: .5em; color: var(--frost); margin-left: 2px; }
.stat__label { display: block; margin-top: var(--s3); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mist); line-height: 1.5; }

/* ==========================================================================
   Signature: overnight route
   ========================================================================== */
.route { --p: 0; background: radial-gradient(1200px 500px at 80% 0%, rgba(30,58,138,.55), transparent 70%), var(--night); overflow: hidden; }
.route__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s8); align-items: end; margin-bottom: var(--s8); }
.route__line { position: relative; padding-block: 56px 8px; }
.route__rail { position: absolute; left: 0; right: 36px; top: 76px; height: 3px; border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(169,182,204,.35) 0 12px, transparent 12px 22px); }
.route__fill { position: absolute; left: 0; top: 76px; height: 3px; width: calc((100% - 36px) * var(--p)); border-radius: 3px; background: linear-gradient(90deg, var(--frost), #9BE2FF); box-shadow: 0 0 18px rgba(91,200,245,.7); }
.route__head { position: absolute; right: 0; top: 62px; width: 36px; height: 31px; color: rgba(169,182,204,.5); transition: color .4s; }
.route.is-done .route__head { color: var(--frost); }
.route__truck { position: absolute; top: 46px; left: calc((100% - 36px) * var(--p)); translate: -50% 0; width: 54px; height: 26px; color: var(--amber); filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); transition: left .12s linear; }
.route__stops { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); list-style: none; position: relative; margin-right: 36px; }
.route__stop { display: grid; justify-items: center; gap: 10px; text-align: center; padding-top: 26px; position: relative; }
.route__stop::before { content: ""; position: absolute; top: 14px; width: 14px; height: 14px; border-radius: 50%; background: var(--night); border: 2px solid rgba(169,182,204,.5); transition: border-color .3s, background .3s, box-shadow .3s; }
.route__stop.is-passed::before { border-color: var(--frost); background: var(--frost); box-shadow: 0 0 0 6px rgba(91,200,245,.18); }
.route__stop b { font-family: var(--f-display); font-stretch: 118%; font-weight: 900; font-size: clamp(1.1rem, .8rem + .9vw, 1.7rem); margin-top: 14px; color: var(--mist); transition: color .3s; }
.route__stop.is-passed b { color: var(--white); }
.route__stop span { font-size: .8125rem; color: var(--mist); line-height: 1.3; }
.route__meta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s7); }

/* ---------- freight switcher ---------- */
.tabs { display: inline-flex; position: relative; padding: 6px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); gap: 4px; flex-wrap: wrap; }
.section--light .tabs { background: var(--white); border-color: var(--line-light); box-shadow: var(--shadow-sm); }
.tab { position: relative; z-index: 1; min-height: 44px; padding: 10px 18px; border: 0; background: none; border-radius: 6px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mist); transition: color var(--t-fast); }
.section--light .tab { color: var(--slate); }
.tab[aria-selected="true"] { color: var(--night); }
.tabs__pill { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 6px; background: var(--frost); transition: left var(--t-mid) var(--ease), width var(--t-mid) var(--ease); }
.section--light .tabs__pill { background: var(--navy); }
.section--light .tab[aria-selected="true"] { color: var(--white); }
.freight { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s8); align-items: center; }
.freight__panel { padding: clamp(24px, 4vw, 48px); animation: panelIn .5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
.freight__temp { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s5); }
.freight__temp .readout { font-family: var(--f-mono); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 500; letter-spacing: .02em; color: var(--frost); line-height: 1; }
.freight__panel h3 { margin-bottom: var(--s4); }
.freight__panel ul { list-style: none; display: grid; gap: 10px; margin-top: var(--s5); }
.freight__panel li { display: flex; gap: 12px; color: var(--mist); }
.freight__panel li .icon { color: var(--frost); margin-top: 3px; }

/* ---------- split / layered media ---------- */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s8); align-items: center; }
.split--rev > :first-child { order: 2; }
.layered { position: relative; padding: 0 12% 14% 0; }
.layered__a, .layered__b { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-lg); }
.layered__a img, .layered__b img { width: 100%; height: 100%; object-fit: cover; }
.layered__a { aspect-ratio: 4 / 3; }
.layered__b { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 714 / 323; border: 6px solid var(--night); }
.section--light .layered__b { border-color: var(--glacier); }
.layered__tag { position: absolute; left: -16px; bottom: 22%; padding: 14px 18px; z-index: 2; }
.layered__tag b { display: block; font-family: var(--f-display); font-stretch: 118%; font-weight: 900; font-size: 1.75rem; line-height: 1; }
.layered__tag span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
.section--light .layered__tag { background: rgba(255,255,255,.85); color: var(--ink); border-color: var(--line-light); box-shadow: var(--shadow-light); }
.section--light .layered__tag span { color: var(--slate); }
.media-frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- location ---------- */
.distances { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin-block: var(--s6); }
.distance { padding: var(--s5); border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line-light); box-shadow: var(--shadow-light); }
.distance b { display: block; font-family: var(--f-display); font-stretch: 118%; font-weight: 900; font-size: clamp(1.8rem, 1.4rem + 1vw, 2.4rem); line-height: 1; color: var(--navy); }
.distance b small { font-size: .45em; margin-left: 4px; color: var(--slate); }
.distance span { display: block; margin-top: 8px; font-size: .9375rem; color: var(--slate); }
.section:not(.section--light) .distance { background: rgba(255,255,255,.05); border-color: var(--line-dark); box-shadow: none; }
.section:not(.section--light) .distance b { color: var(--white); }
.section:not(.section--light) .distance span, .section:not(.section--light) .distance b small { color: var(--mist); }
.map-facade { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-light); box-shadow: var(--shadow-light); background:
  radial-gradient(circle at 50% 46%, rgba(246,168,33,.25) 0 26px, transparent 27px),
  linear-gradient(0deg, rgba(30,58,138,.06) 1px, transparent 1px) 0 0 / 34px 34px,
  linear-gradient(90deg, rgba(30,58,138,.06) 1px, transparent 1px) 0 0 / 34px 34px,
  linear-gradient(28deg, transparent 47%, rgba(30,58,138,.18) 47% 49%, transparent 49%),
  linear-gradient(-62deg, transparent 58%, rgba(30,58,138,.14) 58% 59.5%, transparent 59.5%),
  #E6EDF6; color: var(--ink); }
.map-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-facade__pin { color: var(--amber); width: 44px; height: 44px; filter: drop-shadow(0 6px 10px rgba(15,23,42,.3)); animation: bob 3s ease-in-out infinite; }
.map-facade__btn { position: absolute; bottom: 20px; left: 50%; translate: -50% 0; }
.map-facade__addr { position: absolute; top: 20px; left: 20px; right: 20px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.section:not(.section--light) .map-facade { border-color: var(--line-dark); }

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s5); margin-bottom: var(--s6); }
.gbadge { display: inline-flex; align-items: center; gap: 14px; }
.gbadge svg { width: 40px; height: 40px; }
.gbadge strong { display: block; font-weight: 600; font-size: 1.0625rem; }
.gbadge span { font-size: .9375rem; color: var(--slate); }
.section:not(.section--light) .gbadge span { color: var(--mist); }
.reviews__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.carousel__nav { display: flex; gap: 8px; }
.icon-btn { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line-light); background: var(--white); color: var(--navy); transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); }
.icon-btn:hover { background: var(--navy); color: var(--white); box-shadow: var(--shadow-sm); }
.icon-btn[disabled] { opacity: .4; pointer-events: none; }
.section:not(.section--light) .icon-btn { background: rgba(255,255,255,.06); border-color: var(--line-dark); color: var(--white); }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--s5)) / 3); gap: var(--s5); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 18px; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel::-webkit-scrollbar { display: none; }
.review { scroll-snap-align: start; display: flex; flex-direction: column; padding: var(--s5); border-radius: var(--r-md); background: rgba(255,255,255,.75); border: 1px solid var(--line-light); box-shadow: var(--shadow-light); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--ink); transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid); animation: panelIn .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-light), 0 20px 40px -20px rgba(30,58,138,.35); }
.review__top { display: flex; align-items: center; gap: 12px; margin-bottom: var(--s4); }
.review__avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: var(--white); background: var(--navy); flex: none; }
.review__who strong { display: block; font-weight: 600; line-height: 1.3; }
.review__who span { font-size: .875rem; color: var(--slate); }
.review__g { margin-left: auto; width: 22px; height: 22px; flex: none; }
.stars { display: flex; gap: 2px; color: var(--amber); margin-bottom: var(--s3); }
.stars .icon { width: 18px; height: 18px; }
.review__text { color: var(--slate); font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.review.is-expanded .review__text { -webkit-line-clamp: unset; display: block; }
.review__more { align-self: flex-start; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.review__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: var(--s4); }
.review__cat { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; background: rgba(30,58,138,.08); color: var(--navy); }
.review__sample { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #8A5A00; }
.reviews__note { margin-top: var(--s4); font-size: .875rem; color: var(--slate); }

/* ---------- teaser pair ---------- */
.teasers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
.teaser { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.teaser > picture { position: absolute; inset: 0; z-index: -2; }
.teaser > picture img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.teaser:hover > picture img { transform: scale(1.05); }
.teaser::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,22,48,.2), rgba(10,22,48,.92) 70%); }
.teaser h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); margin-bottom: var(--s3); }
.teaser p { color: var(--mist); max-width: 42ch; }
.teaser .btn { align-self: flex-start; margin-top: var(--s3); }

/* ==========================================================================
   Quote / form
   ========================================================================== */
.quote { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s8); align-items: start; }
.quote__aside h2 { margin-bottom: var(--s5); }
.contact-lines { list-style: none; display: grid; gap: var(--s3); margin-top: var(--s6); }
.contact-lines a, .contact-lines div { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.04); transition: border-color var(--t-fast), background var(--t-fast); }
.contact-lines a:hover { border-color: var(--frost); background: rgba(91,200,245,.06); }
.contact-lines .icon { color: var(--frost); width: 22px; height: 22px; }
.contact-lines small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mist); }
.contact-lines strong { font-weight: 600; }
.form { padding: clamp(24px, 4vw, 44px); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 500; font-size: .9375rem; }
.field .req { color: var(--amber); }
.input, .select, .textarea { width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: rgba(6,14,32,.45); color: var(--white); font-size: 1rem; transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast); }
.textarea { min-height: 132px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9B6CC' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.select option { color: var(--ink); }
.input::placeholder, .textarea::placeholder { color: rgba(169,182,204,.75); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(255,255,255,.35); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--frost); box-shadow: 0 0 0 4px rgba(91,200,245,.18); background: rgba(6,14,32,.6); }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--error); box-shadow: 0 0 0 4px rgba(255,138,138,.14); }
.field__error { font-size: .875rem; color: var(--error); min-height: 0; }
.field__error:empty { display: none; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.segmented legend { margin-bottom: 8px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; }
.segmented span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mist); cursor: pointer; transition: all var(--t-fast); }
.segmented input:checked + span { border-color: var(--frost); color: var(--white); background: rgba(91,200,245,.14); box-shadow: inset 0 0 0 1px var(--frost); }
.segmented input:focus-visible + span { outline: 2px solid var(--frost); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; color: var(--mist); }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--frost); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); margin-top: var(--s6); }
.form__foot small { color: var(--mist); font-size: .875rem; }
.form__status { margin-top: var(--s4); padding: 14px 16px; border-radius: 10px; font-size: .9688rem; display: flex; gap: 12px; align-items: flex-start; }
.form__status--ok { background: rgba(110,231,183,.12); border: 1px solid rgba(110,231,183,.4); }
.form__status--err { background: rgba(255,138,138,.1); border: 1px solid rgba(255,138,138,.4); }
.form__status .icon { flex: none; margin-top: 2px; }
.check-anim path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s var(--ease) .1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(10,22,48,.3); border-top-color: var(--night); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero { position: relative; overflow: clip; isolation: isolate; padding-top: calc(var(--topbar-h) + var(--header-h) + clamp(48px, 8vw, 110px)); padding-bottom: clamp(64px, 8vw, 110px); }
.page-hero__media { position: absolute; inset: -10% 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,22,48,.95) 0%, rgba(10,22,48,.78) 50%, rgba(10,22,48,.45) 100%), linear-gradient(180deg, rgba(10,22,48,.6), transparent 40%, var(--night) 100%); }
.page-hero h1 { font-size: clamp(2.3rem, 1.2rem + 4.2vw, 4.6rem); max-width: 16ch; }
.page-hero .lead { margin-top: var(--s5); }
.page-hero .btn-row { margin-top: var(--s6); }
.page-hero .chip { margin-bottom: var(--s5); }
.crumbs { margin-bottom: var(--s6); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mist); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(169,182,204,.5); }
.crumbs a { text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.crumbs a:hover { color: var(--white); }
.crumbs [aria-current] { color: var(--frost); }

.rows { display: grid; gap: var(--s4); }
.row-card { display: grid; grid-template-columns: auto 1fr; gap: var(--s4); padding: var(--s5); border-radius: var(--r-md); border: 1px solid var(--line-dark); background: rgba(255,255,255,.04); transition: border-color var(--t-mid), background var(--t-mid), transform var(--t-mid) var(--ease); }
.row-card:hover { border-color: rgba(91,200,245,.5); background: rgba(91,200,245,.05); transform: translateX(4px); }
.row-card .icon { width: 26px; height: 26px; color: var(--frost); margin-top: 2px; }
.row-card h3 { font-size: 1.125rem; margin-bottom: 6px; }
.row-card p { margin: 0; color: var(--mist); font-size: 1rem; }
.section--light .row-card { background: var(--white); border-color: var(--line-light); box-shadow: var(--shadow-light); }
.section--light .row-card .icon { color: var(--navy); }
.section--light .row-card p { color: var(--slate); }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-light) 0 10px, transparent 10px 18px); }
.step { position: relative; counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--white); font-family: var(--f-mono); font-size: 13px; box-shadow: 0 0 0 6px var(--glacier); margin-bottom: var(--s4); }
.step h3 { font-size: 1.125rem; margin-bottom: 8px; }
.step p { color: var(--slate); font-size: 1rem; margin: 0; }

.faq { display: grid; gap: var(--s3); max-width: 900px; }
.faq details { border-radius: 12px; border: 1px solid var(--line-light); background: var(--white); box-shadow: var(--shadow-light); overflow: hidden; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: 20px 22px; font-weight: 600; font-size: 1.0625rem; cursor: pointer; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--navy); transition: transform var(--t-mid) var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: var(--slate); }
.faq details > div p { margin: 0; }

.timeline { list-style: none; position: relative; display: grid; gap: var(--s7); padding-left: 40px; --tl: 0; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line-dark); }
.timeline::after { content: ""; position: absolute; left: 11px; top: 6px; width: 2px; height: calc((100% - 12px) * var(--tl)); background: linear-gradient(var(--frost), var(--amber)); box-shadow: 0 0 12px rgba(91,200,245,.6); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -36px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--night); border: 2px solid var(--frost); }
.timeline .mono { color: var(--frost); display: block; margin-bottom: 6px; }
.timeline h3 { margin-bottom: 8px; }
.timeline p { color: var(--mist); margin: 0; max-width: 56ch; }

.dept { padding: var(--s5); border-radius: var(--r-md); }
.dept h3 { font-size: 1.125rem; margin-bottom: 6px; }
.dept p { color: var(--mist); font-size: .9688rem; margin-bottom: var(--s3); }
.dept a { color: var(--frost); font-weight: 600; text-decoration: none; word-break: break-all; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; }
.dept a:hover { text-decoration: underline; }
.dept .team { font-size: .875rem; color: var(--mist); margin: var(--s3) 0 0; }

.doc { display: flex; align-items: center; gap: var(--s4); padding: var(--s5); border-radius: var(--r-md); text-decoration: none; transition: border-color var(--t-mid), box-shadow var(--t-mid), transform var(--t-mid) var(--ease); }
.doc:hover { border-color: var(--frost); box-shadow: var(--shadow-lg), var(--glow); transform: translateY(-3px); }
.doc__type { flex: none; width: 52px; height: 60px; border-radius: 8px; display: grid; place-items: end center; padding-bottom: 8px; background: linear-gradient(135deg, var(--navy), #2A4DB0); font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; position: relative; }
.doc__type::before { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 14px 14px 0; border-color: transparent var(--night) rgba(255,255,255,.3) transparent; }
.doc strong { display: block; font-weight: 600; }
.doc span { font-size: .875rem; color: var(--mist); }
.doc .icon { margin-left: auto; color: var(--frost); }
.store-badges { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s4); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; padding-block: clamp(64px, 8vw, 104px); background: linear-gradient(110deg, var(--navy), #152B6B 55%, var(--night)); isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 10px, transparent 10px 22px); mask-image: linear-gradient(90deg, transparent, #000 40%, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000); }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s6); }
.cta-band h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.2rem); max-width: 18ch; }
.cta-band p { color: var(--mist); margin: var(--s3) 0 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { position: relative; overflow: hidden; background: #060E20; padding-top: clamp(64px, 8vw, 104px); color: var(--mist); isolation: isolate; }
.footer__watermark { position: absolute; z-index: -1; right: -4%; bottom: 70px; width: min(900px, 80vw); opacity: .035; pointer-events: none; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr)); gap: var(--s7); padding-bottom: var(--s8); }
.footer__brand img { height: 44px; width: auto; margin-bottom: var(--s5); }
.footer__brand p { font-size: .9688rem; max-width: 36ch; }
.footer h2 { font-family: var(--f-mono); font-stretch: 100%; font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--white); margin-bottom: var(--s5); }
.footer ul { list-style: none; display: grid; gap: 4px; }
.footer a { text-decoration: none; transition: color var(--t-fast); display: inline-flex; align-items: center; gap: 10px; min-height: 36px; }
.footer a:hover { color: var(--white); }
.footer address { font-style: normal; display: grid; gap: 4px; }
.footer address .icon { width: 18px; height: 18px; color: var(--frost); }
.footer__social { display: flex; gap: 8px; margin-top: var(--s5); }
.footer__social a { width: 44px; height: 44px; justify-content: center; border-radius: 10px; border: 1px solid var(--line-dark); }
.footer__social a:hover { border-color: var(--frost); background: rgba(91,200,245,.08); }
.footer__reg { margin-top: var(--s5); font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--mist); }
.footer__bottom { border-top: 1px solid var(--line-dark); padding-block: var(--s5) calc(var(--s5) + 8px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s4); font-size: .875rem; }
.footer-credit { margin: 0; line-height: 1.7; }
.footer-credit a { display: inline; min-height: 0; color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer__legal { display: flex; gap: var(--s4); }

/* ---------- mobile action bar ---------- */
.mbar { display: none; }
@media (max-width: 767px) {
  :root { --mbar-h: calc(64px + env(safe-area-inset-bottom)); }
  .mbar { position: fixed; z-index: var(--z-mbar); inset: auto 0 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(6,14,32,.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line-dark); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border-radius: 10px; font-weight: 600; text-decoration: none; }
  .mbar__call { background: var(--amber); color: var(--night); }
  .mbar__wa { background: #1FA855; color: var(--white); }
}

/* back to top */
.to-top { position: fixed; right: 20px; bottom: calc(20px + var(--mbar-h)); z-index: var(--z-raised); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(13,28,61,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--white); display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity var(--t-mid), transform var(--t-mid) var(--ease), visibility 0s linear var(--t-mid); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke-width: 2.5; }
.to-top .ring .bg { stroke: rgba(255,255,255,.12); }
.to-top .ring .fg { stroke: var(--frost); stroke-dasharray: 151; stroke-dashoffset: calc(151 - 151 * var(--sp, 0)); stroke-linecap: round; }
.to-top .icon { transform: rotate(-90deg); }

/* ==========================================================================
   Demo popup
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 20px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6,14,32,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .4s var(--ease); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel { position: relative; width: min(540px, 100%); max-height: calc(100svh - 40px); overflow: auto; padding: clamp(28px, 5vw, 44px); border-radius: var(--r-lg); background: linear-gradient(160deg, rgba(30,58,138,.55), rgba(10,22,48,.85)); border: 1px solid rgba(91,200,245,.35); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); box-shadow: var(--shadow-lg), 0 0 80px -20px rgba(91,200,245,.45); opacity: 0; transform: scale(.94) translateY(10px); transition: opacity .45s var(--ease), transform .55s var(--ease-spring); }
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); background: rgba(255,255,255,.06); display: grid; place-items: center; transition: background var(--t-fast), transform var(--t-mid) var(--ease); }
.modal__close:hover { background: rgba(255,255,255,.14); transform: rotate(90deg); }
.modal__arrow { width: 120px; height: 24px; color: var(--frost); margin-bottom: var(--s5); animation: bob 4s ease-in-out infinite; }
.modal__arrow path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 160; stroke-dashoffset: 160; }
.modal.is-open .modal__arrow path { animation: drawArrow 1.2s var(--ease) .3s forwards; }
@keyframes drawArrow { to { stroke-dashoffset: 0; } }
.modal__badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--s4); }
.modal h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); margin-bottom: var(--s4); }
.modal p { color: #D3DCEA; }
.modal__days { display: flex; gap: 6px; margin: var(--s5) 0; }
.modal__days span { flex: 1; height: 6px; border-radius: 3px; background: var(--frost); opacity: .9; }
.modal__days span:nth-child(n+2) { opacity: calc(1 - var(--n) * .08); }
.modal .btn-row { margin-top: var(--s5); }

/* ==========================================================================
   Reveal & 3D tilt
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease), filter var(--t-slow) var(--ease); transition-delay: calc(var(--stagger, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
[data-tilt] { transition: transform .5s var(--ease); transform-style: preserve-3d; }
.tilt-shine { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 5; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.16), transparent 45%); opacity: 0; transition: opacity .3s; }
[data-tilt]:hover .tilt-shine { opacity: 1; }

/* 404 */
.notfound { min-height: 100svh; display: grid; align-items: center; }
.notfound__code { font-family: var(--f-mono); font-size: clamp(5rem, 3rem + 10vw, 11rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(91,200,245,.6); margin-bottom: var(--s4); }
.link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s6); }

/* legal prose */
.legal h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); margin: var(--s7) 0 var(--s4); }
.legal p, .legal li { color: var(--slate); }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; margin-bottom: 1em; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav, .header__actions .btn--glass { display: none; }
  .menu-toggle { display: inline-flex; }
  .header__actions { margin-left: auto; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar__addr { display: none; }
}
@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: var(--s5) var(--s4); }
  .section-head, .route__grid, .freight, .split, .quote { grid-template-columns: 1fr; gap: var(--s6); }
  .split--rev > :first-child { order: 0; }
  .trifecta { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .crate { min-height: 480px; }
  .hero__content { grid-column: 1 / -1; }
  .manifest { position: relative; right: auto; bottom: auto; width: 100%; max-width: 420px; margin-top: var(--s7); }
  .hero { padding-bottom: 96px; }
  .hero .grid-12 { display: block; }
  .carousel { grid-auto-columns: calc((100% - var(--s5)) / 2); }
  .teasers, .cols-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s6); }
  .steps::before { display: none; }
  .route__stops { grid-template-columns: 1fr; margin-right: 0; gap: 0; padding-left: 44px; }
  .route__rail, .route__fill { left: 15px; right: auto; top: 0; bottom: 36px; width: 3px; height: auto; }
  .route__rail { background: repeating-linear-gradient(180deg, rgba(169,182,204,.35) 0 12px, transparent 12px 22px); }
  .route__fill { height: calc((100% - 36px) * var(--p)); bottom: auto; background: linear-gradient(180deg, var(--frost), #9BE2FF); }
  .route__head { left: 0; right: auto; top: auto; bottom: 0; rotate: 90deg; }
  .route__truck { left: -11px; top: calc((100% - 36px) * var(--p)); translate: 0 -50%; rotate: 90deg; transition: top .12s linear; }
  .route__line { padding-block: 0 44px; }
  .route__stop { grid-template-columns: auto 1fr; justify-items: start; text-align: left; align-items: baseline; gap: 14px; padding: 12px 0; }
  .route__stop::before { left: -36px; top: 18px; }
  .route__stop b { margin-top: 0; min-width: 2.2em; }
}
@media (max-width: 767px) {
  :root { --topbar-h: 0px; --header-h: 72px; --header-h-sm: 60px; --fs-body: 1.0625rem; }
  .topbar { display: none; }
  .brand img { height: 40px; }
  .masthead.is-scrolled .brand img { height: 34px; }
  .header__actions .btn--primary { display: none; }
  .stats { grid-template-columns: 1fr; }
  .distances { grid-template-columns: 1fr; }
  .form__grid, .cols-2 { grid-template-columns: 1fr; }
  .carousel { grid-auto-columns: 88%; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--s6); }
  .steps { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: 1fr; }
  .layered { padding: 0 8% 18% 0; }
  .layered__tag { left: 8px; }
  .to-top { width: 46px; height: 46px; right: 14px; }
  .scroll-cue { display: none; }
  .btn-row .btn { flex: 1 1 auto; }
  .hero h1 { max-width: none; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .hero h1 .word > span { transform: none; }
  .fade-up { opacity: 1; transform: none; }
  .hero__frost { display: none; }
  .crate.is-open .crate__door--l, .crate:hover .crate__door--l, .crate:focus-within .crate__door--l,
  .crate.is-open .crate__door--r, .crate:hover .crate__door--r, .crate:focus-within .crate__door--r { transform: none; opacity: 0; }
  .ticker__track { animation: none; }
  .arrow-rule path { stroke-dashoffset: 0; }
}

/* tilt for non-crate elements (crates read --rx/--ry in their own transform) */
[data-tilt]:not(.crate) { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
