/* ==========================================================================
   LoadEx — design system
   Dark logistics-tech. Near-black base + signal-green accent.
   One token set, two registers (brand site + trip/ product app).
   All color is OKLCH. Do not hardcode hex in components.
   ========================================================================== */

/* ---- Font ----------------------------------------------------------------
   Hanken Grotesk for everything (headings, UI, body, numerals). Loaded in
   head.php via Google Fonts with a system fallback. Numbers use tabular-nums. */

:root {
  /* Surfaces — dark. Three layers: base (bg) / raised (surface) / inset (surface-2). */
  --bg:            oklch(0.165 0.018 256);   /* near-black cool base */
  --surface:       oklch(0.205 0.020 256);   /* raised card / panel */
  --surface-2:     oklch(0.240 0.021 256);   /* higher raise / table stripe */

  /* Ink — light on dark */
  --ink:           oklch(0.965 0.006 240);   /* primary text, headings */
  --ink-2:         oklch(0.780 0.012 245);   /* secondary text */
  --ink-3:         oklch(0.645 0.014 248);   /* muted — verified ≥4.5:1 on --bg */
  --border:        oklch(0.320 0.012 256);   /* hairline on dark */
  --border-strong: oklch(0.420 0.014 256);

  /* Accent — signal green (brightened for dark) */
  --accent:        oklch(0.800 0.180 150);   /* fills, live dots, active */
  --accent-text:   oklch(0.840 0.165 152);   /* green text / links on dark */
  --accent-deep:   oklch(0.880 0.140 150);   /* bright green on the dark-green wash */
  --accent-wash:   oklch(0.300 0.070 152);   /* dark green tint fill */
  --ink-on-accent: oklch(0.180 0.030 156);   /* dark text on a green fill */

  /* Deep band — recessed sections (footer, CTA, page hero) sit below the base */
  --dark:          oklch(0.128 0.016 256);
  --dark-2:        oklch(0.185 0.020 256);
  --on-dark:       oklch(0.965 0.006 240);
  --on-dark-2:     oklch(0.760 0.012 245);
  --accent-on-dark:oklch(0.830 0.170 150);

  /* State */
  --danger:  oklch(0.660 0.190 27);
  --warning: oklch(0.800 0.140 75);
  --success: var(--accent);
  --info:    oklch(0.700 0.120 240);

  /* Type — one family everywhere (mono aliases sans; numerals use tabular-nums) */
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: var(--font-sans);

  /* Radius */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);

  /* Elevation — deeper shadows read on a dark surface */
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.40);
  --shadow:    0 8px 30px -10px oklch(0 0 0 / 0.55);
  --shadow-lg: 0 30px 70px -22px oklch(0 0 0 / 0.65);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:  0.5s;

  /* z-index scale */
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-backdrop: 300;
  --z-drawer:   400;
  --z-modal:    500;
  --z-toast:    600;
  --z-tooltip:  700;
}

/* ---- Reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  font-size: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
  border-radius: 3px;
}
::selection { background: var(--accent); color: var(--ink-on-accent); }

/* ---- Typography ----------------------------------------------------------- */

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.75rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.85rem); }
h4 { font-size: 1.2rem; letter-spacing: -0.015em; }
p  { text-wrap: pretty; }

.lede { font-size: clamp(1.125rem, 1.05rem + 0.5vw, 1.375rem); color: var(--ink-2); line-height: 1.55; max-width: 60ch; }
.prose { max-width: 68ch; }
.prose p + p { margin-top: 1.1em; }

/* Tracked mono label — the "data eyebrow". Used deliberately, not on every section. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before {
  content: "";
  width: 0.45rem; height: 0.45rem;
  border-radius: var(--r-full);
  background: var(--accent);
  box-shadow: 0 0 0 0.18rem var(--accent-wash);
}

.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.text-accent { color: var(--accent-text); }
.text-muted  { color: var(--ink-3); }

/* ---- Layout --------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-wide { max-width: 1360px; }
.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.stack > * + * { margin-top: var(--stack-gap, 1rem); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--cluster-gap, 1rem); align-items: center; }

.section-head { max-width: 46rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head p { margin-top: 1rem; }

/* ---- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.75rem 1.4rem;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 0.975rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(0.2rem); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: oklch(0.90 0.045 150); box-shadow: var(--shadow); transform: translateY(-1px); }

.btn-accent { background: var(--accent); color: var(--ink-on-accent); }
.btn-accent:hover { background: oklch(0.78 0.175 150); box-shadow: 0 10px 30px -10px var(--accent); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); transform: translateY(-1px); }

.btn-link {
  min-height: auto; padding: 0; background: none; color: var(--ink);
  font-weight: 600; border-radius: 3px;
}
.btn-link:hover { color: var(--accent-text); }

.btn-lg { min-height: 52px; padding: 0.9rem 1.75rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* On dark band */
.on-dark .btn-ghost { color: var(--on-dark); border-color: oklch(1 0 0 / 0.25); }
.on-dark .btn-ghost:hover { border-color: var(--on-dark); background: oklch(1 0 0 / 0.06); }

/* ---- Pills / tags --------------------------------------------------------- */

.pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-full);
  font-size: 0.82rem; font-weight: 600;
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--border);
}
.pill-live { background: var(--accent-wash); color: var(--accent-deep); border-color: transparent; }
.pill-live .dot {
  width: 0.5rem; height: 0.5rem; border-radius: var(--r-full); background: var(--accent);
  position: relative;
}
.pill-live .dot::after {
  content: ""; position: absolute; inset: -3px; border-radius: inherit;
  border: 2px solid var(--accent); opacity: 0.5;
  animation: ping 1.8s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.6; } 100% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pill-live .dot::after { animation: none; } }

/* ---- Cards / surfaces ----------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.card-hover:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-3px); }

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }

/* ---- Stat / metric -------------------------------------------------------- */

.stat { display: flex; flex-direction: column; gap: 0.25rem; }
.stat .value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.stat .value .unit { color: var(--accent-text); }
.stat .label { font-size: 0.9rem; color: var(--ink-3); }
.on-dark .stat .value { color: var(--on-dark); }
.on-dark .stat .value .unit { color: var(--accent-on-dark); }
.on-dark .stat .label { color: var(--on-dark-2); }

/* ---- Accordion (native details) ------------------------------------------ */

.accordion { border-top: 1px solid var(--border); }
.accordion details { border-bottom: 1px solid var(--border); }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0.25rem;
  font-weight: 600; font-size: 1.075rem;
  cursor: pointer; list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .ico {
  flex: none; width: 1.5rem; height: 1.5rem;
  display: grid; place-items: center; color: var(--accent-text);
  transition: transform 0.3s var(--ease);
}
.accordion details[open] summary .ico { transform: rotate(45deg); }
.accordion .acc-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}
.accordion details[open] .acc-body { grid-template-rows: 1fr; }
.accordion .acc-body > div { overflow: hidden; }
.accordion .acc-body p { padding: 0 0 1.35rem; color: var(--ink-2); max-width: 60ch; }
@media (prefers-reduced-motion: reduce) {
  .accordion .acc-body { transition: none; }
}

/* ---- Forms ---------------------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.field .req { color: var(--accent-text); }
.input, .textarea, .select {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.95rem;
  font-size: 16px; /* no iOS zoom */
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent-text);
  box-shadow: 0 0 0 3px oklch(0.80 0.18 150 / 0.28);
}
.input:user-invalid, .textarea:user-invalid { border-color: var(--danger); }

/* ---- Dark band ------------------------------------------------------------ */

.on-dark { background: var(--dark); color: var(--on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--on-dark); }
.on-dark .lede, .on-dark p { color: var(--on-dark-2); }
.on-dark .eyebrow { color: var(--accent-on-dark); }
.on-dark .text-accent { color: var(--accent-on-dark); }

/* ---- Decorative: route lines (movement motif, not stock photos) ----------- */

.routeline {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 12%, var(--border-strong) 88%, transparent);
}
.routeline::after {
  content: ""; position: absolute; top: 50%; left: 0;
  width: 0.55rem; height: 0.55rem; margin-top: -0.275rem;
  border-radius: var(--r-full); background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 14px var(--accent);
  animation: route-travel 6s linear infinite;
}
@keyframes route-travel { from { left: 2%; } to { left: 98%; } }
@media (prefers-reduced-motion: reduce) { .routeline::after { animation: none; left: 50%; } }

/* ---- Scroll reveal -------------------------------------------------------- */
/* Content is visible by default; JS adds .reveal-ready to opt elements into
   an enhanced entrance, then .is-in when they enter the viewport. If JS never
   runs (or reduced-motion), content simply shows. */

.reveal-ready {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-ready.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-ready { opacity: 1; transform: none; transition: none; }
}

/* ---- Utilities ------------------------------------------------------------ */

.sr-only {
  position: absolute; 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: 1rem; top: -3rem; z-index: var(--z-tooltip);
  background: var(--ink); color: var(--bg); padding: 0.6rem 1rem;
  border-radius: var(--r); transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.divider { height: 1px; background: var(--border); border: 0; }
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }
.flow-gap { display: flex; flex-direction: column; gap: 1.5rem; }

/* ==========================================================================
   Site chrome — header, drawer, footer
   ========================================================================== */

/* ---- Header --------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: oklch(0.165 0.018 256 / 0.72);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 20px -12px oklch(0.205 0.021 256 / 0.4);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 4.5rem;
}
.site-header.is-stuck .bar { min-height: 4rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; flex: none; }
.brand img { width: 2.1rem; height: auto; }
.brand .wordmark {
  font-size: 1.4rem; font-weight: 800; letter-spacing: -0.04em; color: var(--ink);
}
.brand .wordmark b { color: var(--accent-text); font-weight: 800; }

.main-nav { display: none; }
@media (min-width: 920px) {
  .main-nav { display: flex; align-items: center; gap: 0.35rem; }
}
.main-nav a {
  position: relative;
  padding: 0.5rem 0.85rem;
  font-size: 0.95rem; font-weight: 500; color: var(--ink-2);
  border-radius: var(--r-sm);
  transition: color 0.2s var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.current, .main-nav a.is-active { color: var(--ink); font-weight: 600; }
.main-nav a.current::after, .main-nav a.is-active::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.15rem;
  height: 2px; border-radius: 2px; background: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: 0.75rem; flex: none; }
.header-actions .btn { display: none; }
@media (min-width: 920px) { .header-actions .btn { display: inline-flex; } }

.menu-toggle {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--r-sm);
  color: var(--ink); border: 1px solid var(--border);
  background: var(--surface);
}
.menu-toggle:hover { border-color: var(--border-strong); }
@media (min-width: 920px) { .menu-toggle { display: none; } }
.menu-toggle svg { width: 1.35rem; height: 1.35rem; }

/* ---- Mobile drawer -------------------------------------------------------- */

.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer .backdrop {
  position: absolute; inset: 0; background: oklch(0.19 0.02 256 / 0.45);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.drawer.is-open .backdrop { opacity: 1; }
.drawer .panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(88vw, 22rem);
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 1.25rem 1.25rem 2rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  overflow-y: auto;
}
.drawer.is-open .panel { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .drawer .backdrop, .drawer .panel { transition: none; }
}
.drawer .panel .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.drawer .close-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: var(--r-sm); color: var(--ink-2); border: 1px solid var(--border);
}
.drawer .close-btn:hover { color: var(--ink); border-color: var(--border-strong); }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  padding: 0.85rem 0.5rem; font-size: 1.1rem; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.drawer nav a.current { color: var(--accent-text); }
.drawer .drawer-cta { margin-top: 1.25rem; }
.drawer .drawer-contact { margin-top: auto; padding-top: 1.5rem; display: grid; gap: 0.75rem; }
.drawer .drawer-contact a, .drawer .drawer-contact span { color: var(--ink-2); font-size: 0.95rem; }
.drawer .drawer-contact .lbl { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.1rem; }

/* ---- Footer --------------------------------------------------------------- */

.site-footer { background: var(--dark); color: var(--on-dark); }
.site-footer a { color: var(--on-dark-2); transition: color 0.2s var(--ease); }
.site-footer a:hover { color: var(--on-dark); }
.footer-top {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  padding-block: clamp(3rem, 6vw, 5rem);
}
@media (min-width: 720px) { .footer-top { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-top { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }

.footer-brand .wordmark { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.04em; color: var(--on-dark); display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-brand .wordmark b { color: var(--accent-on-dark); }
.footer-brand p { color: var(--on-dark-2); margin-top: 1rem; max-width: 34ch; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.footer-social a {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid oklch(1 0 0 / 0.14); border-radius: var(--r-sm); color: var(--on-dark-2);
}
.footer-social a:hover { border-color: var(--accent-on-dark); color: var(--accent-on-dark); }
.footer-social svg { width: 1.1rem; height: 1.1rem; }

.footer-col h4 { font-size: 0.78rem; font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 1.1rem; font-weight: 500; }
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col .contact-item { display: grid; gap: 0.15rem; margin-bottom: 1rem; }
.footer-col .contact-item .lbl { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-2); opacity: 0.7; }
.footer-col .contact-item a, .footer-col .contact-item span { color: var(--on-dark); font-weight: 500; }

.footer-bottom {
  border-top: 1px solid oklch(1 0 0 / 0.1);
  padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between;
  font-size: 0.875rem; color: var(--on-dark-2);
}

/* ---- Scroll-to-top button ------------------------------------------------- */

.to-top {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: var(--z-sticky);
  width: 46px; height: 46px; border-radius: var(--r-full);
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px) scale(0.9); pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.to-top.is-show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); color: var(--ink-on-accent); }
.to-top svg { width: 1.2rem; height: 1.2rem; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity 0.2s linear; } }

/* ---- Page hero (inner pages) ---------------------------------------------- */

.page-hero {
  position: relative;
  background: var(--dark); color: var(--on-dark);
  padding-block: clamp(4rem, 9vw, 7rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 100% at 85% 0%, oklch(0.735 0.17 150 / 0.16), transparent 60%),
    linear-gradient(180deg, transparent, oklch(0.16 0.02 256 / 0.4));
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--on-dark); max-width: 18ch; }
.page-hero .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1.25rem; font-size: 0.9rem; color: var(--on-dark-2); font-family: var(--font-mono); }
.page-hero .crumbs a:hover { color: var(--accent-on-dark); }
.page-hero .crumbs .sep { opacity: 0.5; }
.page-hero .crumbs .here { color: var(--accent-on-dark); }

/* ==========================================================================
   Homepage
   ========================================================================== */

/* ---- Hero ----------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 10%, black, transparent 75%);
  mask-image: radial-gradient(120% 90% at 70% 10%, black, transparent 75%);
}
.hero-grid {
  display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }

.hero-copy h1 { margin-top: 1.25rem; max-width: 15ch; }
.hero-copy h1 .hl { color: var(--accent-text); }
.hero-copy .lede { margin-top: 1.5rem; }
.hero-cta { margin-top: 2rem; --cluster-gap: 0.85rem; }
.hero-trust { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1.25rem 2.25rem; align-items: center; }
.hero-trust .stat .value { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.hero-trust .vr { width: 1px; height: 2.4rem; background: var(--border); }

/* Dispatch panel (live tracking mock) */
.dispatch {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  position: relative;
}
.dispatch .d-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.dispatch .d-id { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-3); letter-spacing: 0.02em; }
.dispatch .d-id b { color: var(--ink); font-weight: 600; }

.route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.85rem; }
.route .node { display: flex; flex-direction: column; gap: 0.15rem; }
.route .node.to { text-align: right; }
.route .node .city { font-weight: 700; font-size: 1.05rem; }
.route .node .code { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-3); letter-spacing: 0.08em; }
.route .track { position: relative; height: 2px; background: var(--border-strong); border-radius: 2px; }
.route .track .done { position: absolute; inset: 0 38% 0 0; background: var(--accent); border-radius: 2px; }
.route .track .truck {
  position: absolute; top: 50%; left: 62%; transform: translate(-50%, -50%);
  width: 1.8rem; height: 1.8rem; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-full);
  color: var(--accent-text); box-shadow: var(--shadow-sm);
  animation: truck-move 5s var(--ease) infinite alternate;
}
.route .track .truck svg { width: 1rem; height: 1rem; }
@keyframes truck-move { from { left: 30%; } to { left: 78%; } }
@media (prefers-reduced-motion: reduce) { .route .track .truck { animation: none; } }

.dispatch .d-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-top: 1.5rem; }
.dispatch .d-cell { background: var(--surface-2); border-radius: var(--r); padding: 0.8rem 0.9rem; }
.dispatch .d-cell .k { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.dispatch .d-cell .v { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 1.05rem; margin-top: 0.2rem; }
.dispatch .d-foot { margin-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.dispatch .d-foot .eta { font-size: 0.9rem; color: var(--ink-2); }
.dispatch .d-foot .eta b { color: var(--ink); font-family: var(--font-mono); }

/* floating mini-cards on the dispatch */
.dispatch .float-card {
  position: absolute; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: var(--shadow); padding: 0.7rem 0.9rem;
  display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; font-weight: 600;
}
.dispatch .float-card .ic { width: 1.9rem; height: 1.9rem; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-deep); }
.dispatch .float-card.fc-1 { left: -1rem; bottom: -2.6rem; animation: bob 4s var(--ease) infinite; }
.dispatch .float-card.fc-2 { right: -1rem; top: -1rem; animation: bob 4s var(--ease) infinite 1.5s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (max-width: 540px) { .dispatch .float-card { display: none; } }
@media (prefers-reduced-motion: reduce) { .dispatch .float-card { animation: none; } }

/* ---- Stat band ------------------------------------------------------------ */

.statband { border-block: 1px solid var(--border); background: var(--surface); }
.statband .row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; padding-block: clamp(2.25rem, 4vw, 3rem); }
@media (min-width: 760px) { .statband .row { grid-template-columns: repeat(4, 1fr); } }
.statband .stat { gap: 0.4rem; }
.statband .stat .label { font-size: 0.85rem; }

/* ---- Services ------------------------------------------------------------- */

.svc-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.5vw, 1.85rem);
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.svc:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-3px); }
.svc .ic { width: 2.75rem; height: 2.75rem; border-radius: var(--r); display: grid; place-items: center; background: var(--ink); color: var(--bg); }
.svc:hover .ic { background: var(--accent); color: var(--ink-on-accent); }
.svc .ic svg { width: 1.4rem; height: 1.4rem; }
.svc h3 { font-size: 1.2rem; }
.svc p { color: var(--ink-2); font-size: 0.975rem; }
.svc .more { margin-top: auto; font-weight: 600; font-size: 0.9rem; color: var(--accent-text); display: inline-flex; align-items: center; gap: 0.35rem; }
.svc .more svg { width: 1rem; height: 1rem; transition: transform 0.25s var(--ease); }
.svc:hover .more svg { transform: translateX(3px); }
/* let the first card span wide on large screens for rhythm */
@media (min-width: 1000px) { .svc.feature { grid-column: span 1; } }

/* ---- How it works (numbered sequence — legitimately ordered) -------------- */

.steps { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: clamp(2.5rem, 4vw, 3.5rem); counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-top: 2.5rem; }
.step .n { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; color: var(--accent-text); }
.step h3 { font-size: 1.3rem; margin-top: 0.5rem; }
.step p { color: var(--ink-2); margin-top: 0.6rem; max-width: 34ch; }
.step .marker {
  position: absolute; top: 0; left: 0;
  width: 1.85rem; height: 1.85rem; border-radius: var(--r-full);
  display: grid; place-items: center;
  background: var(--accent-wash); color: var(--accent-deep);
  font-family: var(--font-mono); font-weight: 600; font-size: 0.9rem;
}
@media (min-width: 820px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 0.9rem; left: 2.4rem; right: -0.75rem;
    height: 1px; background: var(--border-strong);
  }
}

/* ---- Coverage (dark band with photo) -------------------------------------- */

.coverage { position: relative; overflow: hidden; }
.coverage .cov-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 920px) { .coverage .cov-grid { grid-template-columns: 1fr 1fr; } }
.coverage .cov-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid oklch(1 0 0 / 0.1); }
.coverage .cov-photo img { width: 100%; height: 100%; object-fit: cover; }
.coverage .cov-photo .badge {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  background: oklch(0.19 0.02 256 / 0.72); backdrop-filter: blur(8px);
  border: 1px solid oklch(1 0 0 / 0.12); border-radius: var(--r);
  padding: 0.85rem 1rem; display: flex; align-items: center; gap: 0.85rem;
}
.coverage .cov-photo .badge .stat .value { font-size: 1.5rem; }
.coverage .cov-list { display: grid; gap: 1rem; margin-top: 2rem; }
.coverage .cov-list li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--on-dark-2); }
.coverage .cov-list svg { flex: none; width: 1.3rem; height: 1.3rem; color: var(--accent-on-dark); margin-top: 0.1rem; }
.coverage .cov-list b { color: var(--on-dark); font-weight: 600; }

/* ---- Why / features ------------------------------------------------------- */

.feat-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 640px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
.feat { display: flex; gap: 1rem; padding: 1.25rem; border-radius: var(--r-lg); transition: background 0.25s var(--ease); }
.feat:hover { background: var(--surface); box-shadow: var(--shadow-sm); }
.feat .ic { flex: none; width: 2.5rem; height: 2.5rem; border-radius: var(--r); display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-deep); }
.feat .ic svg { width: 1.3rem; height: 1.3rem; }
.feat h3 { font-size: 1.15rem; }
.feat p { color: var(--ink-2); margin-top: 0.35rem; font-size: 0.95rem; }


/* ---- Quote + FAQ ---------------------------------------------------------- */

.qa-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 920px) { .qa-grid { grid-template-columns: 1fr 1fr; } }
.quote-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow); }
.quote-card .form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin-top: 1.5rem; }
.quote-card .form-grid .full { grid-column: 1 / -1; }
.quote-card .fineprint { margin-top: 1rem; font-size: 0.82rem; color: var(--ink-3); }

/* ---- CTA band ------------------------------------------------------------- */

.cta-band { position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 120% at 80% 0%, oklch(0.735 0.17 150 / 0.18), transparent 55%); pointer-events: none; }
.cta-band .inner { position: relative; display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; text-align: center; }
@media (min-width: 860px) { .cta-band .inner { grid-template-columns: 1.4fr 1fr; text-align: left; } }
.cta-band h2 { max-width: 16ch; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
@media (min-width: 860px) { .cta-band .cta-actions { justify-content: flex-end; } }

/* ==========================================================================
   Inner pages
   ========================================================================== */

/* ---- Legal / long-form prose ---------------------------------------------- */

.legal { max-width: 760px; margin-inline: auto; }
.legal .meta { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-3); margin-bottom: 2rem; }
.legal .lead { font-size: 1.2rem; color: var(--ink-2); line-height: 1.6; margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.4rem; margin-top: 2.5rem; margin-bottom: 0.85rem; letter-spacing: -0.02em; }
.legal h2:first-of-type { margin-top: 0; }
.legal h2 .idx { font-family: var(--font-mono); color: var(--accent-text); font-size: 0.95rem; margin-right: 0.5rem; }
.legal p { color: var(--ink-2); margin-bottom: 1rem; }
.legal ul { display: grid; gap: 0.6rem; margin: 0.5rem 0 1.25rem; }
.legal ul li { position: relative; padding-left: 1.5rem; color: var(--ink-2); }
.legal ul li::before { content: ""; position: absolute; left: 0.1rem; top: 0.65rem; width: 0.4rem; height: 0.4rem; border-radius: var(--r-full); background: var(--accent); }
.legal ul li b { color: var(--ink); font-weight: 600; }
.legal a { color: var(--accent-text); font-weight: 600; }
.legal .contact-box { margin-top: 2.5rem; padding: 1.5rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); }
.legal .contact-box ul li::before { display: none; }
.legal .contact-box ul li { padding-left: 0; }

/* ---- About ---------------------------------------------------------------- */

.about-intro { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .about-intro { grid-template-columns: 1fr 1fr; } }
.about-intro .ai-photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4; border: 1px solid var(--border); box-shadow: var(--shadow); }
.about-intro .ai-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-intro p { color: var(--ink-2); margin-top: 1.25rem; }

.mv-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 820px) { .mv-grid { grid-template-columns: 1fr 1fr; } }
.mv { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.25rem); }
.mv .ic { width: 3rem; height: 3rem; border-radius: var(--r); display: grid; place-items: center; background: var(--ink); color: var(--bg); margin-bottom: 1.1rem; }
.mv.vision .ic { background: var(--accent); color: var(--ink-on-accent); }
.mv .ic svg { width: 1.5rem; height: 1.5rem; }
.mv h3 { font-size: 1.5rem; }
.mv ul { display: grid; gap: 0.85rem; margin-top: 1.25rem; }
.mv ul li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink-2); }
.mv ul li svg { flex: none; width: 1.2rem; height: 1.2rem; color: var(--accent-text); margin-top: 0.15rem; }

.values-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 700px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---- Contact -------------------------------------------------------------- */

.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 920px) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; } }
.contact-info { display: grid; gap: 1rem; }
.contact-info .ci {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.25rem 1.4rem;
}
.contact-info .ci .ic { flex: none; width: 2.75rem; height: 2.75rem; border-radius: var(--r); display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-deep); }
.contact-info .ci .ic svg { width: 1.3rem; height: 1.3rem; }
.contact-info .ci .k { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.contact-info .ci .v { font-weight: 600; font-size: 1.05rem; margin-top: 0.15rem; }
.contact-info .ci .v a:hover { color: var(--accent-text); }
.contact-info .hours { background: var(--dark); color: var(--on-dark); border-color: transparent; }
.contact-info .hours .k { color: var(--on-dark-2); }
.contact-info .hours .v { color: var(--on-dark); }
