/* ViCargo — Home page (demo).
   Loads after colors.css + motion.css + directions.css + components.css. The page runs on
   Direction D (html[data-dir="d"]), so --page/--ink/--soft/--font/--pad/--mono all come from
   directions.css; everything below is additive and prefixed (home-/hero-/ld-/cargo-/svc-/
   route-/how-/quote-/rv) so nothing collides with the shared files. */

/* directions.css's shared --pad (clamp(20px, 5vw, 88px)) is tuned for the demo library,
   where most screenshots land at 1440px+. At the common laptop case of a 1920px panel
   scaled to 150% in Windows, the effective CSS viewport is ~1280px — narrow enough that
   .home-inner's 1180px cap never engages, so the only visible side margin is --pad
   itself, and at 1280px that resolves to a thin 64px. Overriding it here (home.css only
   loads on this page, so nothing else in the demo library is affected) raises the floor
   so every real desktop width gets a clearly visible gutter, not just the ones wide
   enough to trigger the content cap. */
:root { --pad: clamp(24px, 7vw, 96px); }

/* The hero owns the first viewport, so no .page top padding here — but anchored sections
   still have to clear the fixed bar when a nav link jumps to them. */
main section[id] { scroll-margin-top: var(--bar-h); }

/* ---------- nav: no field, colour and mark flip per section underneath ---------- */

.nav-mark { position: relative; display: block; width: 38px; height: 33px; } /* 38/33 = 981x851, the mark's own ratio */
.nav-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity var(--dur-base) ease; }
.mark-on-light { opacity: 0; }
#top-bar { transition: color var(--dur-base) ease; }   /* the #fff base comes from directions.css */
#top-bar.on-light { color: var(--ink-800); }
#top-bar.on-light .mark-on-dark { opacity: 0; }
#top-bar.on-light .mark-on-light { opacity: 1; }
#top-bar:not(.on-light) .nav-half a { text-shadow: 0 1px 3px rgba(6, 16, 26, .35); }
html.is-loading .nav-mark { visibility: hidden; }      /* the mark is still in flight out of the loader */
/* The open mobile menu is a full-height sheet with no bar behind it; over the video it
   would be unreadable, so it is the one place the nav takes a background. */
#top-bar.nav-open { background: var(--ink-700); color: #fff; }
#top-bar.nav-open .mark-on-dark { opacity: 1; }
#top-bar.nav-open .mark-on-light { opacity: 0; }
/* Over the hero video the mark is white now: it sits at the bar's left edge (2026-11-07 nav
   re-layout), above the dark foliage, where it used to be black over the bright roof at centre. */


/* ---------- loader ---------- */

#site-loader {
  position: fixed; inset: 0; z-index: 100; display: none;
  flex-direction: column; align-items: center; justify-content: center; color: #fff;
}
html.is-loading #site-loader { display: flex; }
html.is-loading body { overflow: hidden; }
/* The background is its own layer, not the loader's: the mark stays a child of the loader
   through the whole flight, so fading the loader itself would fade the mark with it. */
.ld-bg { position: absolute; inset: 0; background: var(--ink-900); }
#site-loader > :not(.ld-bg) { position: relative; z-index: 1; }

.ld-eyebrow {
  margin: 0 0 clamp(22px, 3.4vh, 38px); font-family: var(--mono);
  font-size: clamp(10px, 1vw, 12px); letter-spacing: .34em; color: #93A7BC;
}
/* the one element that survives the transition — everything else fades */
#fly-logo { width: clamp(132px, 17vw, 240px); }
#fly-logo img { width: 100%; }
.ld-word {
  margin: clamp(26px, 3.6vh, 42px) 0 0; font-family: "Outfit", system-ui, sans-serif;
  font-weight: 600; font-size: clamp(30px, 4.4vw, 58px); letter-spacing: .02em; line-height: 1;
}
.ld-tag {
  margin: 12px 0 0; font-family: var(--mono); font-size: clamp(9px, .85vw, 11px);
  letter-spacing: .36em; color: #7D93AB;
}
.ld-eyebrow, .ld-word, .ld-tag { text-transform: uppercase; }
.ld-meter {
  margin-top: clamp(34px, 5vh, 60px); width: min(320px, 56vw); height: 3px;
  background: rgba(255, 255, 255, .13); overflow: hidden;
}
.ld-meter i {
  display: block; height: 100%; background: var(--gradient-swoosh);
  transform: scaleX(var(--p, 0)); transform-origin: left;
}
.ld-pct {
  margin-top: 14px; font-family: var(--mono); font-size: 12px;
  font-variant-numeric: tabular-nums; color: #93A7BC;
}

/* ---------- hero: layout ----------
   #hero-slot / #hero / #stage / .skip keep their directions.css rules on purpose
   (slot height, .is-pinned, video object-fit). */

.hero-col { position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: clamp(96px, 14vh, 160px); }
.hero-copies { position: relative; }
.hero-copy {
  position: absolute; left: 0; bottom: 0; max-width: 15em;
  font-size: clamp(36px, 4.4vw, 68px); visibility: hidden;
}
.hero-copy.is-on { position: relative; visibility: visible; }
/* Before the first line is switched on by home.js (a few hundred ms in), the first copy still takes its
   place in the flow, invisible, so the block does not grow from 84px to its full height and push the
   text up when the intro starts (CLS). Once any copy is on, this stops matching. */
.hero-copies:not(:has(.is-on)):not(:has(.is-leaving)) .hero-copy[data-station="0"] { position: relative; }
.hero-copy h1, .hero-copy h2 {
  margin: 0; font-size: 1em; font-weight: 300; line-height: 1.06;
  letter-spacing: -.025em; color: #fff; text-wrap: balance;
}
.hero-accent { color: var(--cyan-400); }
.hero-label {
  position: relative; width: fit-content; margin: 0 0 11px; padding-bottom: 7px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #E6EDF5;
}
.hero-sub { margin: 20px 0 0; max-width: 30em; font-size: clamp(17px, 1.25vw, 21px); line-height: 1.55; color: #DCE5EE; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- hero: the scene control (phones) ----------
   Its own corner, under the menu button — away from Skip video and the buttons below, so
   nothing is crowded. Left/right arrows instead of a single cycling tap: cyan (the hero's own
   accent colour, already used on "Moving Europe") while that direction can still go, dimmed to
   plain white once it can't — no wraparound, so the dimming is a real state, not decoration.
   The label is uppercase but deliberately smaller than "Skip video"'s 13px: caps run wider per
   letter and the word is longer, so matching the font-size would NOT match the width — this size
   is tuned so the two measure the same. */
.hero-scene {
  position: absolute; z-index: 3; right: var(--pad);
  top: calc(var(--bar-h) + max(env(safe-area-inset-top, 0px), 14px) + 14px);
  display: flex; align-items: center; gap: 10px;
}
.hero-scene[hidden] { display: none; }
.hs-label {
  font: 400 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}
.hs-arrow {
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(6, 16, 26, .22);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  color: var(--cyan-400); transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.hs-arrow svg { width: 20px; height: 20px; }
.hs-arrow:active { transform: scale(.9); }
.hs-arrow:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.hs-arrow:disabled { color: rgba(255, 255, 255, .34); cursor: default; }
.hs-arrow:disabled:active { transform: none; }

.hero-skip {
  position: absolute; z-index: 3; right: var(--pad); bottom: clamp(96px, 14vh, 160px);
  font: 400 13px/1 var(--mono); letter-spacing: .08em; color: rgba(255, 255, 255, .62);
  text-decoration: none; padding: 6px 0; transition: color var(--dur-fast) ease;
}
.hero-skip::after {
  content: ""; display: block; margin-top: 6px; height: 3px;
  background: var(--gradient-swoosh); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-sweep);
}
@media (hover: hover) and (pointer: fine) { .hero-skip:hover { color: #fff; } .hero-skip:hover::after { transform: scaleX(1); } }
.hero-skip:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; }

/* static on purpose — nothing loops in peripheral vision */
.hero-cue {
  position: absolute; z-index: 3; left: 50%; bottom: 28px; transform: translateX(-50%); margin: 0;
  font: 400 11px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .6);
  transition: opacity var(--dur-base) ease;
}
#hero.has-moved .hero-cue { opacity: 0; }

/* ---------- hero: the darkening ----------
   base is always on (readable nav, readable bottom row, one tone across three separately
   rendered clips). focus only while a station speaks. veil is the 360ms pulse over a cut.
   Only opacity animates, which is why changing the per-station values mid-bridge is invisible. */

#stage .hero-shade-base, #stage .hero-shade-focus, #stage .hero-veil { position: absolute; inset: 0; pointer-events: none; }
/* the clips dissolve over each other on phones (home.js) using z-index; that stays inside this box, so the shading and the text above it keep their normal order */
.hero-videos { position: absolute; inset: 0; z-index: 0; isolation: isolate; }
/* While the hero holds, a swipe belongs to the stations, not to the page. On a phone it holds without
   position:fixed (home.js pin()), so the hero stays an ordinary block at the top of the page and the
   phone's own top strip keeps reading the section the visitor is actually on. */
#hero.is-pinned, #hero.is-holding { touch-action: none; overscroll-behavior: none; }
.hero-shade-base {
  background:
    linear-gradient(180deg, rgb(6 16 26 / .45) 0, rgb(6 16 26 / 0) 140px),
    linear-gradient(0deg,   rgb(6 16 26 / .55) 0, rgb(6 16 26 / 0) 32%),
    rgb(10 23 36 / .06);
}
.hero-shade-focus {
  --side: .78; --pool: .70; --dim: .20;
  background:
    linear-gradient(90deg, rgb(6 16 26 / var(--side)) 0%, rgb(6 16 26 / calc(var(--side) * .6)) 34%, rgb(6 16 26 / 0) 62%),
    radial-gradient(120% 90% at 0% 100%, rgb(6 16 26 / var(--pool)) 0%, rgb(6 16 26 / 0) 60%),
    rgb(6 16 26 / var(--dim));
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-sweep);                                   /* out: 420ms */
}
#hero.is-speaking .hero-shade-focus { opacity: 1; transition-duration: var(--dur-deliberate); }  /* in: 700ms */
#hero[data-station="0"] .hero-shade-focus { --side: .78; --pool: .70; --dim: .20; }  /* yard: pale concrete */
#hero[data-station="2"] .hero-shade-focus { --side: .70; --pool: .62; --dim: .16; }  /* highway: mid green */
/* --dim is one .04 step above the plan's .18: at the airport the bright pixels in the
   headline box (lit terminal windows, aircraft tails) sit to the right of where --side
   still reaches, so raising --side/--pool left the headline at 3.10:1, barely over the
   3:1 floor. --dim is the only lever that covers them. Still well under the .28 cap. */
#hero[data-station="4"] .hero-shade-focus { --side: .74; --pool: .66; --dim: .22; }  /* airport: grey + blue */
.hero-veil { background: #06101A; opacity: 0; }

/* ---------- hero: choreography ---------- */

.hero-copy > * { opacity: 0; transform: translateX(-14px); }
.hero-copy.is-on > * {
  opacity: 1; transform: none;
  transition: opacity var(--dur-slow) var(--ease-sweep), transform 520ms var(--ease-sweep);
  transition-delay: calc(180ms + var(--k, 0) * 70ms);     /* enters 180ms after the shade starts */
}
.hero-copy > :nth-child(2) { --k: 1; }
.hero-copy > :nth-child(3) { --k: 2; }
.hero-copy.is-leaving > * {
  opacity: 0; transform: translateX(14px);                /* leaves in the direction of travel */
  transition: opacity var(--dur-base) ease, transform var(--dur-base) var(--ease-sweep); transition-delay: 0s;
}
.hero-copy:not(.is-on):not(.is-leaving) > * { transition: none; }   /* invisible reset back to -14px */

/* ---------- hero: mobile / touch ----------
   No pin, scene0 only, text across the full width at the bottom — so the shade comes from
   below instead of from the left. */
@media (max-width: 860px), (hover: none), (pointer: coarse) {
  .hero-shade-focus {
    --dim: .18;
    background: linear-gradient(0deg, rgb(6 16 26 / .86) 0%, rgb(6 16 26 / .5) 45%, rgb(6 16 26 / 0) 75%), rgb(6 16 26 / var(--dim));
  }
  /* ---------- iPhone: the strip around the clock / Dynamic Island ----------
     iOS 26 Safari paints that strip in <body>'s own background colour (confirmed 2026-11 — it no
     longer reads theme-color). Every other page has a near-white body already, same as the strip,
     so the seam never shows; Home opens on a dark video, so its body needs to be dark to match.
     Doing that would darken every section below the hero too, since none of them paint their own
     background and all just show body through — so every section that isn't already dark gets an
     explicit light one here, keeping body's colour from ever actually being seen. */
  body.is-home { background: var(--ink-900); }
  body.is-home section[data-nav="light"] { background: var(--page); }
  /* The logo and menu button get a real gap from the top edge either way: env(safe-area-inset-top)
     on a device where it reports one, or a flat 14px where it currently reads 0 — which, on iOS 26
     in portrait, is every device today (viewport-fit=cover is a no-op there — open WebKit bug
     306465). The max() makes this pick whichever is larger on its own, so it starts using the real
     inset instead of the flat value the day Apple ships a fix, with no further edit here. */
  body.is-home #top-bar { padding-top: max(env(safe-area-inset-top, 0px), 14px); }
  body.is-home #top-bar:not(.nav-open) { height: calc(var(--bar-h) + max(env(safe-area-inset-top, 0px), 14px)); }
  /* The hero is taller than the screen by the height of that strip and the page opens already
     scrolled down by exactly that much (home.js), so the top of the video sits above the screen
     edge and the strip has video behind it. The copy is anchored to the hero's bottom, so it does
     not move. --vc-lead is measured from the safe area by home.js and is 0 where there is none. */
  /* the same value home.js measures (max of the safe area and 28px), known from the first paint so the hero
     is not resized afterwards (CLS) */
  :root { --vc-lead: max(env(safe-area-inset-top, 0px), 28px); }
  body.is-home #hero-slot, body.is-home #hero { height: calc(100dvh + var(--vc-lead, 0px)); }
  /* the two buttons stack, so neither runs into the Skip video link on the right */
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-skip { bottom: clamp(40px, 8vh, 72px); }
  .hero-cue { display: none; }   /* "Scroll" has no meaning on a phone: the scene control and Skip video do the work */
  .hero-col { bottom: clamp(40px, 8vh, 72px); }
  .hero-copy { font-size: clamp(32px, 8.4vw, 44px); }
}

/* ---------- welcome: two trucks bleed off opposite edges, text sits between/above ---------- */

.wc-sec {
  position: relative; overflow-x: hidden; overflow-y: visible;
  padding: clamp(96px, 13vw, 180px) var(--pad) clamp(64px, 8vw, 120px);
}
.wc-head { position: relative; z-index: 2; max-width: 46em; margin-inline: auto; text-align: center; }
.wc-lead {
  margin: 0; font-size: clamp(16px, 1.4vw, 19px); font-weight: 400; color: var(--soft);
  opacity: 0; transform: translateX(-14px);
}
.wc-h1 {
  margin: 14px 0 0; font-size: clamp(42px, 6vw, 84px); font-weight: 300; letter-spacing: -.025em;
  line-height: 1.02; color: var(--ink);
  opacity: 0; transform: translateX(-14px);
}
.wc-sub {
  margin: clamp(20px, 2.6vw, 28px) auto 0; max-width: 34em; font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.6; color: var(--soft);
  opacity: 0; transform: translateX(-14px);
}
.wc-sec.is-in .wc-lead { opacity: 1; transform: none; transition: opacity var(--dur-slow) var(--ease-sweep), transform 520ms var(--ease-sweep); }
.wc-sec.is-in .wc-h1 { opacity: 1; transform: none; transition: opacity var(--dur-slow) var(--ease-sweep), transform 520ms var(--ease-sweep); transition-delay: 70ms; }
.wc-sec.is-in .wc-sub { opacity: 1; transform: none; transition: opacity var(--dur-slow) var(--ease-sweep), transform 520ms var(--ease-sweep); transition-delay: 140ms; }

/* the logo standing in for the "V" of ViCargo — the image IS the letter, so its alt text
   is the letter; sized in em so it tracks the clamped heading. */
.wc-mark {
  display: inline-block; height: var(--mark-h, .80em); vertical-align: baseline;
  margin-right: var(--mark-gap, .03em); transform: translateY(var(--mark-shift, 0em));
}
.wc-mark img { display: block; height: 100%; width: auto; }
.wc-sec[data-mark="overhang"] { --mark-h: 1em; --mark-gap: -.14em; --mark-shift: .04em; }
.wc-sec[data-mark="overhang"] .wc-mark { position: relative; z-index: 1; }

/* normal flex flow, not absolute positioning: an absolutely positioned truck doesn't
   contribute to its parent's height, so the gap above (wc-fleet's margin-top) is the one
   number that controls separation from the heading. */
.wc-fleet {
  position: relative; z-index: 1; margin-top: clamp(32px, 5vw, 64px);
  display: flex; justify-content: space-between; align-items: flex-end;
}
.wc-truck {
  position: relative; width: clamp(360px, 34vw, 600px); height: auto; flex: none;
  filter: drop-shadow(0 28px 30px rgba(10, 23, 36, .14));
  opacity: 0; transition: opacity 640ms var(--ease-sweep), transform 640ms var(--ease-sweep);
}
.wc-truck--white { margin-left: clamp(-140px, -8vw, -40px); transform: translateX(-56px); }
.wc-truck--blue { margin-right: clamp(-140px, -8vw, -40px); transform: translateX(56px); }
.wc-sec.is-in .wc-truck--white { opacity: 1; transform: none; }
.wc-sec.is-in .wc-truck--blue { opacity: 1; transform: none; transition-delay: 90ms; }

@media (max-width: 760px) {
  .wc-sec { padding-top: clamp(72px, 16vw, 110px); min-height: 0; padding-bottom: clamp(40px, 8vw, 64px); }
  .wc-fleet { flex-direction: column; align-items: stretch; gap: clamp(8px, 3vw, 20px); margin-top: clamp(24px, 8vw, 40px); }
  .wc-truck { width: clamp(260px, 78vw, 420px); align-self: flex-start; }
  .wc-truck--white { margin: 0 0 0 clamp(-100px, -16vw, -30px); }
  .wc-truck--blue { align-self: flex-end; margin: 0 clamp(-100px, -16vw, -30px) 0 0; }
}

/* ---------- sections: shared ---------- */

.home-sec { --sec-pt: clamp(96px, 12vw, 176px); padding: var(--sec-pt) var(--pad); }
.home-inner { position: relative; width: min(100%, 1180px); margin-inline: auto; }
.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; }
/* Section tag: pinned to the top-left corner of the section's content column, not attached to
   any text. A mono label with a straight gradient line under it that ends in a short straight
   flick (drawn by home.js, same as the hero label). Light text on the dark sections. */
.sec-tag {
  position: absolute; left: 0; top: calc(var(--sec-pt) * -1 + clamp(28px, 3vw, 40px)); margin: 0;
  display: block; padding-bottom: 7px;
  font-family: var(--mono); font-size: 12px; font-weight: 400; line-height: 1.2; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-900); white-space: nowrap;
  transition: opacity var(--dur-slow) var(--ease-sweep), transform var(--dur-slow) var(--ease-sweep);
}
/* The label underline: one straight stroke plus a straight flick, built per label by home.js
   (gradient needs the label's own width). Drawn left to right once when the label appears. */
.hl-line { position: absolute; left: 0; bottom: 0; overflow: visible; pointer-events: none; }
.hl-line path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hero-copy.is-on .hl-line path, .sec-tag.is-in .hl-line path { animation: hl-draw 620ms var(--ease-sweep) both; }
@keyframes hl-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-copy.is-on .hl-line path, .sec-tag.is-in .hl-line path { animation: none; } }
/* Routes: its map frame is hand-placed against the section itself, so .home-inner must not
   become the containing block here; the tag anchors to the section and mirrors the column edge. */
#routes { position: relative; }
#routes .home-inner { position: static; }
#routes .section-head p { text-wrap: pretty; }
#routes .sec-tag { left: max(var(--pad), calc((100% - 1180px) / 2)); top: clamp(28px, 3vw, 40px); }
.sec-tag--pre { opacity: 0; transform: translateY(8px); }
.sec-tag--pre.is-in { opacity: 1; transform: none; }
.is-dark .sec-tag { color: #E6EDF5; }
@media (prefers-reduced-motion: reduce) { .sec-tag { transition: none; } .sec-tag--pre { opacity: 1; transform: none; } }
/* "Alcuni carichi trasportati finora" is long enough to clip the viewport's right edge (text +
   its underline flick) below ~380px -- every other .sec-tag label is short enough to clear it. */
@media (max-width: 380px) { #bz-about .sec-tag { font-size: 10.5px; letter-spacing: .12em; } }

.is-dark { background: var(--ink-700); color: #fff; }
.is-dark .section-head h2 { color: #fff; }
/* Services heading: wide enough for two lines on desktop; phones get a shorter wording, the full
   sentence runs to four lines at 390px. */
#services .section-head { max-width: 60em; }
.svc-h-short { display: none; }
@media (max-width: 600px) { .svc-h-full { display: none; } .svc-h-short { display: inline; } }
.is-dark .section-head p { color: #9CB0C4; }
.accent-cyan { color: var(--cyan-400); }
.is-dark ::selection { background: var(--cyan-400); color: var(--ink-900); }

/* ---------- services ---------- */

/* ===========================================================================
   SERVICES GRID
   Dividers, not cards: the cells share hairlines and have no fill, border box
   or shadow of their own, so the section stays one surface instead of six
   floating tiles. --svc-line is set from devicePixelRatio in the script, so
   every hairline lands on a whole number of device pixels and every one reads
   at the same weight at any display scaling.
   =========================================================================== */
.svc-grid { margin-top: clamp(52px, 6vw, 84px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.svc-cell {
  position: relative; isolation: isolate; display: block; text-decoration: none; color: #fff;
  padding: clamp(28px, 2.6vw, 38px) clamp(20px, 1.8vw, 28px) clamp(32px, 3vw, 44px);
  border-top: var(--svc-line, 1px) solid rgba(255, 255, 255, .13);
  transition: transform var(--dur-fast) var(--ease-out);
}
.svc-cell:not(:nth-child(4n+1)) { border-left: var(--svc-line, 1px) solid rgba(255, 255, 255, .13); }
/* The outer columns lose their outer padding so the first cell's text starts on
   the same line as the heading and the last one ends on the container edge. */
.svc-cell:nth-child(4n+1) { padding-left: 0; }
.svc-cell:nth-child(4n) { padding-right: 0; }

/* The wash rises from the grid's outer edge toward the middle rule, so the two
   rows lean into each other instead of both pointing the same way. */
.svc-cell::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, .055), transparent 72%);
  transition: opacity 200ms var(--ease-out);
}
.svc-cell:nth-child(n+5)::before { background: linear-gradient(to bottom, rgba(255, 255, 255, .055), transparent 72%); }

/* The hovered cell's own rule lights up in the house gradient and draws left to
   right — the same brand move as the Credentials and FAQ rules. */
.svc-cell::after {
  content: ""; position: absolute; left: 0; right: 0; top: calc(var(--svc-line, 1px) * -1);
  height: var(--svc-line, 1px); background: var(--gradient-swoosh);
  clip-path: inset(0 100% 0 0); transition: clip-path 260ms var(--ease-sweep);
}

.svc-ic { display: block; width: 36px; height: 36px; color: #fff; }
.svc-ic svg { display: block; width: 100%; height: 100%; }
.svc-ac { color: var(--cyan-400); }

.svc-t {
  display: block; margin-top: 26px; font-size: 19px; font-weight: 400; line-height: 1.3; letter-spacing: -.01em;
  transition: transform 200ms var(--ease-out);
}
.svc-d { display: block; margin-top: 10px; max-width: 24em; font-size: 15px; line-height: 1.6; color: #9CB0C4; }

@media (hover: hover) and (pointer: fine) {
  .svc-cell:hover::before { opacity: 1; }
  .svc-cell:hover::after { clip-path: inset(0); }
  .svc-cell:hover .svc-t { transform: translateX(6px); }
}
.svc-cell:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -6px; }
.svc-cell:focus-visible::after { clip-path: inset(0); }
.svc-cell:focus-visible .svc-t { transform: translateX(6px); }
.svc-cell:active { transform: scale(.99); }

@media (max-width: 1099px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-cell:not(:nth-child(2n+1)) { border-left: var(--svc-line, 1px) solid rgba(255, 255, 255, .13); }
  .svc-cell:nth-child(2n+1) { border-left: 0; }
  .svc-cell:nth-child(4n+1), .svc-cell:nth-child(4n) { padding-left: clamp(20px, 2vw, 30px); padding-right: clamp(20px, 2vw, 30px); }
  .svc-cell:nth-child(2n+1) { padding-left: 0; }
  .svc-cell:nth-child(2n) { padding-right: 0; }
  .svc-cell:nth-child(n+3)::before { background: linear-gradient(to bottom, rgba(255, 255, 255, .055), transparent 72%); }
  .svc-cell:nth-child(-n+2)::before { background: linear-gradient(to top, rgba(255, 255, 255, .055), transparent 72%); }
}
/* phones: the eight services stay two by two (four short rows) instead of one long column */
@media (max-width: 639px) {
  .svc-grid { margin-top: 36px; }
  .svc-cell { padding: 22px 14px 24px; }
  .svc-cell:nth-child(2n+1) { padding-left: 0; padding-right: 14px; }
  .svc-cell:nth-child(2n) { padding-left: 14px; padding-right: 0; }
  .svc-ic { width: 28px; height: 28px; }
  .svc-t { margin-top: 16px; font-size: 16px; line-height: 1.25; }
  .svc-d { margin-top: 8px; max-width: none; font-size: 12.5px; line-height: 1.5; }
}

/* ===========================================================================
   Entrance. The authored moment of this section is the icons drawing
   themselves — the thing the section is actually about — over a plain rise of
   the text. Line drawing is already the house language here: the Routes map
   draws its corridors the same way, with pathLength="1".
   .svc-pre is added by the script only when .is-in will follow, so with no
   script, or under reduced motion, everything simply renders as it is.
   =========================================================================== */
.svc-pre .svc-cell { opacity: 0; transform: translateY(var(--reveal-distance, 22px)); }
.svc-pre.is-in .svc-cell {
  opacity: 1; transform: none;
  transition: opacity var(--dur-slow) var(--ease-sweep) calc(var(--i, 0) * 70ms),
              transform var(--dur-slow) var(--ease-sweep) calc(var(--i, 0) * 70ms);
}
.svc-pre .svc-ic-c .svc-p { stroke-dasharray: 1; stroke-dashoffset: 1; }
.svc-pre.is-in .svc-ic-c .svc-p {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 620ms var(--ease-sweep) calc(var(--i, 0) * 70ms + 140ms);
}
@media (prefers-reduced-motion: reduce) {
  .svc-pre .svc-cell, .svc-pre.is-in .svc-cell { opacity: 1; transform: none; transition: none; }
  .svc-pre .svc-ic-c .svc-p, .svc-pre.is-in .svc-ic-c .svc-p { stroke-dasharray: none; stroke-dashoffset: 0; transition: none; }
  .svc-cell::after { transition: none; }
}

/* ---------- routes ---------- */

.routes-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.route-map-frame { display: block; width: 100%; }
.route-map-img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .routes-layout { grid-template-columns: 1fr; } }

/* Phones: the map sits under the text and runs edge to edge. It is drawn about twice as large as
   the page column and anchored to the right, so the map's own right edge is the edge of the
   screen; the top, bottom and left melt into the page with eased masks instead of showing a
   box. Sizes are in vw so the same crop holds at every phone width. */
@media (max-width: 860px) {
  #routes { overflow: hidden; padding-bottom: 0; }
  .route-map-frame {
    position: relative; left: 50%; width: 100vw; margin: 12px 0 0 -50vw; height: 64vw; overflow: hidden;
    --F: 15vw;
    -webkit-mask-image:
      linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,.12) calc(var(--F) * .25), rgba(0,0,0,.38) calc(var(--F) * .5), rgba(0,0,0,.72) calc(var(--F) * .75), #000 var(--F), #000 calc(100% - var(--F)), rgba(0,0,0,.72) calc(100% - var(--F) * .75), rgba(0,0,0,.38) calc(100% - var(--F) * .5), rgba(0,0,0,.12) calc(100% - var(--F) * .25), rgba(0,0,0,0) 100%),
      linear-gradient(to right, rgba(0,0,0,0) 0, rgba(0,0,0,.4) 2vw, #000 7vw);
    -webkit-mask-composite: source-in;
            mask-image:
      linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,.12) calc(var(--F) * .25), rgba(0,0,0,.38) calc(var(--F) * .5), rgba(0,0,0,.72) calc(var(--F) * .75), #000 var(--F), #000 calc(100% - var(--F)), rgba(0,0,0,.72) calc(100% - var(--F) * .75), rgba(0,0,0,.38) calc(100% - var(--F) * .5), rgba(0,0,0,.12) calc(100% - var(--F) * .25), rgba(0,0,0,0) 100%),
      linear-gradient(to right, rgba(0,0,0,0) 0, rgba(0,0,0,.4) 2vw, #000 7vw);
            mask-composite: intersect;
  }
  .route-map-img { position: absolute; right: 0; top: -21vw; width: 190vw; height: auto; max-width: none; }
}

/* ≥861px: hand-placed via the drag/resize tool (routes-map-demo.html) against this same
   section at the director's own ~1280 CSS px screen — same measured environment as --pad
   above. Frame is a fixed crop window; the image inside it is oversized and offset so the
   window shows the part of the map he chose, same mechanism as a photo cropper. */
@media (min-width: 861px) {
  #routes { position: relative; }
  #routes .section-head { max-width: 400px; }
  /* Locked: min-height is the hard floor, not a suggestion — it's frame.top + frame.height
     plus a margin, so the section is always tall enough to fully contain the frame. The frame
     itself clips (overflow:hidden) and nothing inside it is taller than the frame, so the map
     can never bleed into Services above or Credentials below, at any viewport width ≥861px. */
  .routes-layout { min-height: 694px; }
  /* Close the empty band under the map without moving anything inside Routes or Credentials:
     the layout box (which centres the text) keeps its height, only the next section is pulled
     up so it starts 60px under the map frame's bottom edge (frame bottom = 679px). */
  #routes { padding-bottom: 0; margin-bottom: calc(45px - var(--sec-pt)); }
  .route-map-frame {
    position: absolute; left: 2px; right: 0; top: 2px;
    height: 677px; overflow: hidden;
    /* the bottom 200px melts into the white page: an eased multi-stop mask, because a plain
       two-stop ramp still reads as a band */
    --L: 200px;
    -webkit-mask-image: linear-gradient(to bottom,
      #000 0, #000 calc(100% - var(--L)),
      rgba(0,0,0,.97) calc(100% - var(--L) * .85),
      rgba(0,0,0,.88) calc(100% - var(--L) * .70),
      rgba(0,0,0,.72) calc(100% - var(--L) * .55),
      rgba(0,0,0,.52) calc(100% - var(--L) * .40),
      rgba(0,0,0,.30) calc(100% - var(--L) * .25),
      rgba(0,0,0,.12) calc(100% - var(--L) * .12),
      rgba(0,0,0,0) 100%);
            mask-image: linear-gradient(to bottom,
      #000 0, #000 calc(100% - var(--L)),
      rgba(0,0,0,.97) calc(100% - var(--L) * .85),
      rgba(0,0,0,.88) calc(100% - var(--L) * .70),
      rgba(0,0,0,.72) calc(100% - var(--L) * .55),
      rgba(0,0,0,.52) calc(100% - var(--L) * .40),
      rgba(0,0,0,.30) calc(100% - var(--L) * .25),
      rgba(0,0,0,.12) calc(100% - var(--L) * .12),
      rgba(0,0,0,0) 100%);
  }
  /* width/shift as percentages of the frame's own (now viewport-wide) box, same ratio as the
     original fixed 1550px-in-a-1275px-frame crop (1550/1275, shift -92/1550) -- keeps the exact
     same composition at the reference width and scales it, instead of clipping flat past 1277px
     on anything wider (found 2026-11-11: the fixed-px frame left a hard edge on every desktop
     wider than the ~1280px screen it was hand-placed against). height:auto preserves the image's
     native aspect ratio as width scales, so nothing stretches. */
  .route-map-img {
    position: absolute; left: 50%; top: 50%; width: 121.57%; height: auto; max-width: none;
    transform: translate(-50%, -50%) translate(-5.935%, 0);
  }
}

/* ---------- credentials: register rows ----------
   These are state and EU registrations, not certification schemes: no issuing body hands
   out a seal for a website, so the row carries the issuer's own mark instead of an invented
   badge. No 01/02/03 — the order of a register carries no information. */

/* Row scale: a first ~0.8x pass, then a measured second pass of another ~0.9x on top of
   that (the director compared a fixed-size element — the Contact-us button, min-height
   52px, untouched by either pass — across two of his own screenshots and reported a 71px
   vs 78px physical result, i.e. ×0.91) at the same scaled-display 100% zoom (1920
   physical panel at Windows 150%, ~1280 CSS px effective viewport). Net ≈0.72x of the
   original row. Body copy and functional/caption text hold their floors (14px body,
   11px functional) through both passes — neither pass goes below them. */
.ra-list { margin: clamp(29px, 3.6vw, 47px) 0 0; padding: 0; list-style: none; }
.ra-list li {
  display: flex; align-items: baseline; gap: clamp(12px, 2.2vw, 29px);
  padding: clamp(16px, 2.2vw, 23px) 0; border-top: 1px solid var(--border-default);
}
.ra-list li:last-child { border-bottom: 1px solid var(--border-default); }
.ra-main { flex: 1; min-width: 0; }
.ra-name {
  margin: 0; font-size: clamp(15px, 1.6vw, 23px); font-weight: 300;
  letter-spacing: -.02em; line-height: 1.15; color: var(--ink);
}
.ra-desc { margin: 7px 0 0; font-size: 14px; line-height: 1.6; color: var(--soft); max-width: 40em; }
/* 137px is just past the widest issuer mark (122px, capped below) — captions wrap to two
   lines where needed, and the whole group sits flush against the row's own right edge. */
.ra-data { flex: none; width: 137px; text-align: right; }
/* The issuing body's mark replaces an "issued by / name" text line. The three source marks
   differ wildly in shape (MIT is a square emblem with no wordmark, Albo and REN are wide
   wordmark lockups), so they're capped by height and left-aligned — centring or right-aligning
   each on its own width left a ragged edge; left-aligned, all three share one left edge. */
.ra-logo-row { display: flex; justify-content: flex-start; align-items: center; min-height: 24px; }
.ra-logo { display: block; max-height: 100%; max-width: 122px; width: auto; object-fit: contain; }
.ra-cap { display: block; margin-top: 5px; text-align: left; font-size: 12px; line-height: 1.4; color: var(--text-muted); }
/* The MIT mark ships on its own solid field in official use (client-supplied reference:
   rgb(61,102,197)) — the other two are wordmark lockups and stay plain. */
.ra-logo-chip {
  display: inline-flex; align-items: center; justify-content: center;
  background: #3D66C5; border-radius: 6px; padding: 5px 7px;
}
.ra-logo-chip .ra-logo { max-height: 19px; }
/* CMR keeps the text form — no insurer is known yet, so there is no mark to show. */
.ra-issued { display: block; font: 400 12px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.ra-auth { display: block; margin-top: 5px; font-size: 14px; line-height: 1.45; color: var(--text-body); }
@media (max-width: 860px) {
  .ra-list li { flex-wrap: wrap; gap: 14px; }
  .ra-data { width: 100%; text-align: center; }
  /* Centred and a size up from the desktop row — on its own row (ra-main stays above,
     left-aligned as running text should), so there is room to grow it without the row's
     own top/bottom lines moving: only the row below shifts down a little to fit it. */
  .ra-logo-row { justify-content: center; min-height: 32px; }
  .ra-logo { max-width: 160px; }
  .ra-logo-chip { padding: 7px 9px; border-radius: 8px; }
  .ra-logo-chip .ra-logo { max-height: 25px; }
  .ra-cap { text-align: center; font-size: 13px; }
  .ra-issued, .ra-auth { text-align: center; }
}

/* Pending values: a rule, never invented digits — the director still owes the CMR insurer,
   and a plausible-looking string would be a fabricated credential. */
.cr-pending { display: inline-block; min-width: 7ch; vertical-align: 2px; color: var(--text-muted); border-bottom: 1px solid var(--border-strong); }

/* Entrance: the rule above each row draws left to right as the row rises, a record being
   entered — its own gesture, not a repeat of Welcome's slide-in or the Routes map draw.
   Real borders carry the no-JS path; the drawn copy is a pseudo-element layered over them. */
.cr-row { position: relative; }
/* The rule spans the row's own box (the .home-inner column), so it keeps the same left and
   right gutters as the content. The scaleX draw grows from the left edge of that box. */
.cr-row::before, .ra-list .cr-row:last-child::after {
  content: ""; position: absolute; left: 0; right: 0;
  height: 3px; background: var(--gradient-swoosh); transform-origin: left;
}
.cr-row::before { top: -2px; }
.ra-list .cr-row:last-child::after { top: auto; bottom: -2px; }

.cr-anim .cr-row { opacity: 0; transform: translateY(var(--reveal-distance, 22px)); }
.cr-anim .cr-row::before, .cr-anim .cr-row::after { transform: scaleX(0); }
.cr-anim.is-in .cr-row {
  opacity: 1; transform: none;
  transition: opacity var(--dur-slow) var(--ease-sweep) calc(var(--i, 0) * 70ms),
              transform var(--dur-slow) var(--ease-sweep) calc(var(--i, 0) * 70ms);
}
.cr-anim.is-in .cr-row::before, .cr-anim.is-in .cr-row::after {
  transform: scaleX(1);
  transition: transform var(--dur-slow) var(--ease-sweep) calc(var(--i, 0) * 70ms);
}
@media (prefers-reduced-motion: reduce) {
  .cr-anim .cr-row, .cr-anim.is-in .cr-row { opacity: 1; transform: none; transition: none; }
  .cr-anim .cr-row::before, .cr-anim.is-in .cr-row::before,
  .cr-anim .cr-row::after, .cr-anim.is-in .cr-row::after { transform: scaleX(1); transition: none; }
}

/* ---------- testimonials: spotlight quote switcher (ported from variants.html V4) ---------- */

.tm-spot { display: flex; flex-direction: column; align-items: center; gap: 36px; padding: 32px 0; text-align: center; }

.tm-spot-quote-wrap { position: relative; max-width: 640px; padding: 0 36px; min-height: 260px; display: flex; align-items: center; justify-content: center; }
.tm-spot-quote-wrap.is-long { max-width: 820px; }
.tm-spot-mark {
  position: absolute; font-family: "Outfit", Georgia, serif; font-size: 72px; line-height: 1;
  color: var(--border-default); user-select: none;
  transition: opacity 320ms var(--ease-out, ease), transform 320ms var(--ease-out, ease);
}
.tm-spot-mark-start { top: -18px; left: -4px; }
.tm-spot-mark-end { bottom: -46px; right: -4px; }
.tm-spot-quote {
  margin: 0; font-size: clamp(20px, 2.4vw, 28px); font-weight: 300; line-height: 1.5; color: var(--ink-800);
  transition: opacity 320ms var(--ease-out, ease), filter 320ms var(--ease-out, ease), transform 320ms var(--ease-out, ease), font-size 260ms ease;
}
.tm-spot-quote.is-long { font-size: clamp(18px, 2vw, 24px); }

.tm-spot-quote.is-out { opacity: 0; filter: blur(3px); transform: translateX(-14px); }
.tm-spot-mark-start.is-out { opacity: 0; transform: translateX(-14px); }
.tm-spot-mark-end.is-out { opacity: 0; transform: translateX(-14px); }

.tm-spot-quote.is-in-start { opacity: 0; filter: blur(3px); transform: translateX(14px); transition: none; }
.tm-spot-mark-start.is-in-start, .tm-spot-mark-end.is-in-start { opacity: 0; transform: translateX(14px); transition: none; }

.tm-spot-link { font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--blue-700); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 160ms ease; display: inline-flex; align-items: center; gap: 6px; }
.tm-spot-link span { transition: transform 160ms var(--ease); }
.tm-spot-link:hover { border-color: var(--blue-700); }
.tm-spot-link:hover span { transform: translateX(3px); }

.tm-spot-avatars { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; max-width: 560px; }
.tm-spot-pill {
  display: flex; align-items: center; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  padding: 2px; transition: background-color 300ms ease;   /* the pill's width now changes at once, only colour and opacity are animated */
}
.tm-spot-pill:hover:not(.is-active) { background: color-mix(in srgb, var(--blue-600) 7%, white); }
.tm-spot-initial {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: -.01em;
  transition: box-shadow 300ms ease, background 300ms ease, color 300ms ease, border-color 300ms ease;
}
.tm-spot-pname { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; font-size: 14px; font-weight: 500; color: var(--ink-800); margin-left: 0; transition: opacity 300ms ease; }
.tm-spot-pill:hover:not(.is-active) .tm-spot-pname { max-width: 160px; opacity: 1; margin-left: 8px; }
.tm-spot-pill.is-active { background: var(--ink-800); padding: 4px 18px 4px 4px; }
.tm-spot-pill.is-active .tm-spot-pname { max-width: 160px; opacity: 1; margin-left: 10px; color: #fff; }

/* Icon style: gradient — the only one carried over live (A/B tonal/outline were demo-only alternatives) */
#tm-spot.icons-gradient .tm-spot-initial {
  color: #fff; background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  box-shadow: 0 2px 6px rgba(10,23,36,.2), inset 0 1px 0 rgba(255,255,255,.22);
}
#tm-spot.icons-gradient .tm-spot-pill.is-active .tm-spot-initial {
  box-shadow: 0 4px 10px rgba(10,23,36,.28), inset 0 1px 0 rgba(255,255,255,.3), inset 0 0 0 1.5px rgba(255,255,255,.35);
}

@media (prefers-reduced-motion: reduce) {
  .tm-spot-quote, .tm-spot-pill, .tm-spot-initial, .tm-spot-pname, .tm-spot-link span { transition: none; }
}

@media (max-width: 640px) {
  .tm-spot-quote-wrap { padding: 0 24px; min-height: 410px; }
  .tm-spot-mark { font-size: 54px; }
  .tm-spot-mark-start { top: -10px; }
  .tm-spot-mark-end { bottom: -34px; }
}

/* ---------- numbers: crane and container behind the figures ----------
   Ported from _demo/numbers-emons-demo.html (colourway A). The stage is a sticky
   100vh pane inside a 2.6-viewport wrap; numbers-rig.js drives the WebGL object. */


  /* ---------- stage: canvas behind, figures centred over it (Emons) ---------- */
  .ne-wrap { position: relative; }
  .ne-stage { position: relative; height: 100vh; min-height: 640px; overflow: hidden; }
  .ne-canvas { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; }
  .ne-figs {
    position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
    /* the block sits above centre so the figures clear the container instead of crossing it */
    padding: 0 var(--pad) 21vh; pointer-events: none;
  }
  .ne-grid {
    --col-gap: clamp(120px, 18vw, 280px);
    position: relative;
    margin: 0; display: grid; grid-template-columns: repeat(2, auto); justify-content: center;
    column-gap: var(--col-gap); row-gap: clamp(36px, 5vh, 64px);
  }
  .ne-item { position: relative; display: flex; flex-direction: column-reverse; align-items: center; text-align: center; }
  .ne-fig {
    margin: 0; font-family: var(--mono); font-weight: 400; font-variant-numeric: tabular-nums;
    font-size: clamp(52px, 7vw, 112px); line-height: 1; letter-spacing: -.03em; color: var(--ink-800);
  }
  .ne-lab { margin: 12px 0 0; max-width: 15em; font-size: clamp(15px, 1.2vw, 19px); line-height: 1.5; color: var(--ink-800); }
  .ne-note { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; font-weight: 500; color: var(--ink-800); }

  @media (min-width: 861px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .ne-stage { position: sticky; top: 0; }
  }
  /* narrow screens: figures above the object instead of over it */
  @media (max-width: 860px) {
    .ne-stage { height: auto; min-height: 0; display: flex; flex-direction: column; padding-top: clamp(56px, 14vw, 88px); }
    .ne-figs { position: relative; inset: auto; order: 0; padding-bottom: 0; }
    .ne-canvas { position: relative; inset: auto; order: 1; height: clamp(270px, 82vw, 480px); margin-top: 18px; }
    .ne-grid { --col-gap: clamp(24px, 7vw, 48px); }
    .ne-fig { font-size: clamp(38px, 11vw, 56px); }
  }

/* ---------- reveals ---------- */

.rv {
  opacity: 0; transform: translateY(var(--reveal-distance, 22px));
  transition: opacity var(--dur-slow) var(--ease-sweep) calc(var(--i, 0) * 70ms),
              transform var(--dur-slow) var(--ease-sweep) calc(var(--i, 0) * 70ms);
}
.rv.is-in { opacity: 1; transform: none; }

/* ---------- operations text + fleet carousel ---------- */

/* ===========================================================================
   BLOCK 3: operations text + fleet carousel. Real fleet photos only; each card is
   captioned with what is on the trailer.
   =========================================================================== */
/* Heading and the two actions on the left, the operations text on the right, the
   carousel under both. Top-aligned so the heading leads the block instead of sitting
   on the same baseline as the last line of copy. */
.ab-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ab-copy { margin: 0; max-width: 34em; font-size: 18px; line-height: 1.6; color: var(--soft); text-align: left; }
.ab-links { margin-top: clamp(28px, 3vw, 40px); display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .ab-top { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- fleet carousel (vanilla port of Gallery4) ---------- */
.fc { --fc-edge: max(var(--pad), calc((100vw - 1180px) / 2)); margin-top: clamp(40px, 5vw, 72px); }
.fc-bar { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 20px; }
.fc-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--steel-400); background: transparent;
  color: var(--ink); display: grid; place-items: center; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.fc-btn svg { width: 20px; height: 20px; }
.fc-btn:hover:not(:disabled) { background: var(--steel-100); }
.fc-btn:active:not(:disabled) { transform: scale(.97); }
.fc-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.fc-btn:disabled { opacity: .35; cursor: default; }

.fc-bleed { margin-inline: calc(50% - 50vw); }
.fc-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: var(--fc-edge); scroll-padding-inline: var(--fc-edge); overscroll-behavior-x: contain;
  cursor: grab; outline-offset: -2px;
}
.fc-track::-webkit-scrollbar { display: none; }
.fc-track.is-drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.fc-track:focus-visible { outline: 2px solid var(--focus-ring); }

.fc-card {
  position: relative; flex: 0 0 min(520px, 82vw); aspect-ratio: 16 / 10; margin: 0;
  border-radius: 12px; overflow: hidden; background: var(--steel-100); scroll-snap-align: start;
}
.fc-card img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover;
  transition: transform 300ms var(--ease-out); user-select: none; -webkit-user-drag: none;
}
.fc-card:hover img { transform: scale(1.05); }
.fc-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(10, 23, 36, .82) 0%, rgba(10, 23, 36, .42) 24%, rgba(10, 23, 36, 0) 52%);
}
.fc-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px 24px; margin: 0; font-size: 18px; font-weight: 500; line-height: 1.3; color: #fff; }

.fc-dots { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.fc-dot { width: 20px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.fc-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--steel-300); transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.fc-dot[aria-current="true"]::before { background: var(--blue-500); transform: scale(1.25); }
.fc-dot:focus-visible { outline: 2px solid var(--focus-ring); border-radius: 50%; }

.bz-pre .fc-card { opacity: 0; transform: translateY(var(--reveal-distance)); }
.bz-pre.is-in .fc-card { opacity: 1; transform: none; transition: opacity var(--dur-slow) var(--ease-sweep) calc(var(--i, 0) * 70ms), transform var(--dur-slow) var(--ease-sweep) calc(var(--i, 0) * 70ms); }

@media (max-width: 860px) { .fc-bar { display: none; } .fc-track { gap: 14px; } .fc-dots { gap: 0; } .fc-dot { width: 17px; height: 44px; margin-block: -13px; } }
@media (prefers-reduced-motion: reduce) {
  .fc-card img, .fc-dot::before { transition: none; }
  .fc-card:hover img { transform: none; }
  .bz-pre .fc-card, .bz-pre.is-in .fc-card { opacity: 1; transform: none; transition: none; }
}
}

/* ---------- freight + storage (ported from business-demo.html, blocks 1-2) ---------- */

/* .bz-item and .bz-pre are the shared reveal of the business blocks (freight columns,
   storage text, FAQ rows). */
.bz-item { border-top: 1px solid var(--border-default); padding-top: 24px; }

.fr-sec { padding-bottom: clamp(48px, 6vw, 88px); }
.c-grid { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.c-card { margin: 0; }
.c-art { aspect-ratio: 16 / 9; border: 1px solid var(--border-default); border-radius: 12px; display: grid; place-items: center; padding: 8px 12px; color: var(--ink-700); }
.c-art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.c-card h3 { margin: 24px 0 0; font-size: 22px; font-weight: 500; line-height: 1.3; color: var(--ink-900); }
.c-card p { margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: var(--steel-600); max-width: 30em; }
.t-load { fill: var(--blue-500); }
.t-load-2 { fill: var(--cyan-400); }
.t-free { fill: none; stroke: var(--blue-500); stroke-width: 1.5; stroke-dasharray: 4 4; }
.t-dim { fill: none; stroke: var(--blue-700); stroke-width: 1.5; }
.c-grid > .bz-item { border-top: 0; padding-top: 0; }
@media (max-width: 860px) { .c-grid { grid-template-columns: 1fr; gap: 36px; } }

.fr-link { color: var(--blue-600); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color var(--dur-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .fr-link:hover { color: var(--blue-700); } }
.fr-link:active { color: var(--blue-800, var(--blue-700)); }
.fr-link:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: 2px; }

/* Storage: dark band, text left, partner-warehouse photo right. The two columns carry
   .bz-item for the shared reveal only, so its hairline and top padding are cancelled. */
.st-d { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.st-d > .bz-item { border-top: 0; padding-top: 0; }
.st-d-body h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 500; letter-spacing: -.02em; line-height: 1.3; color: #fff; }
.st-d-body p { margin: 16px 0 0; max-width: 36em; font-size: 17px; line-height: 1.65; color: #9CB0C4; }
.st-d-photo { position: relative; aspect-ratio: 836 / 665; }
.st-d-clip { position: absolute; inset: 0; border-radius: 20px; overflow: hidden; }
/* soft, colour-tinted elevation behind the rounded corners, just enough to read as a placed object */
.st-d-photo::after {
  content: ""; position: absolute; inset: 0; border-radius: 20px;
  box-shadow: 0 1px 2px rgba(10, 23, 36, .10), 0 18px 40px -12px rgba(10, 23, 36, .30);
  pointer-events: none;
}
.st-d-photo img { width: 100%; height: 100%; max-width: none; display: block; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 860px) { .st-d { grid-template-columns: 1fr; } .st-d-photo { order: -1; aspect-ratio: 16 / 10; } }

/* ---------- FAQ (ported from business-demo.html, block 4) ---------- */

/* ===========================================================================
   BLOCK 4: FAQ. Native details/summary: works with the keyboard and a screen
   reader with no script. The answer fades in on open; closing is instant, so the
   list never makes the reader wait on a decision they have already made.
   =========================================================================== */
/* Same two-pass scale as Credentials, same reason — see the note above .ra-list. */
.fq-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(23px, 4.3vw, 69px); align-items: start; }
.fq-list { margin: 0; padding: 0; }
/* .fq-item also carries .bz-item (for the shared reveal only, see .bz-pre below) — cancel
   .bz-item's padding-top: 24px here, or it stacks on summary's own 16px/16px and pushes
   the question and chevron down off-centre between this row's two lines. */
.fq-item { position: relative; padding-top: 0; border-top: var(--fq-line, 1px) solid var(--border-default); }
.fq-item:last-child { border-bottom: var(--fq-line, 1px) solid var(--border-default); }
.fq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 17px;
  padding: 16px 0; font-size: clamp(14px, 1.2vw, 15px); font-weight: 400; line-height: 1.35; color: var(--ink);
  transition: color var(--dur-fast) var(--ease-out);
}
.fq-item summary::-webkit-details-marker { display: none; }
.fq-ic {
  flex: none; width: 14px; height: 14px; background: var(--ink);
  transition: transform 200ms var(--ease-out), background-color var(--dur-fast) var(--ease-out);
  -webkit-mask: url("icons/chevron-down.svg") no-repeat center / contain;
  mask: url("icons/chevron-down.svg") no-repeat center / contain;
}
.fq-item[open] .fq-ic { transform: rotate(180deg); }
.fq-item summary:active .fq-ic { transform: scale(.85); }
.fq-item[open] summary:active .fq-ic { transform: rotate(180deg) scale(.85); }
.fq-sub { margin: 11px 0 0; font-size: 14px; line-height: 1.4; color: var(--soft); }
.fq-state { margin: 0; font-family: var(--font-head); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; line-height: 1.2; font-size: var(--head-md); color: var(--ink); }
.section-head .fq-state { color: var(--ink); max-width: none; font-size: var(--head-md); }
.fq-state + .fq-help { margin-top: 22px; }
.fq-help { margin: 20px 0 0; font-size: 14px; line-height: 1.6; color: var(--soft); }
.fq-help a { color: var(--ink); font-weight: 500; text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .fq-help a:hover { color: var(--blue-700); } }
/* Tool: data-lines="gradient" swaps the hairlines for the swoosh rule (as on Credentials);
   data-chev="blue" colours the chevrons. Independent, so all four combinations work.
   The gradient is a real border-image, so the browser snaps it to a whole device pixel
   exactly like the hairline and every row renders the same weight at any display scaling. */
[data-chev="blue"] .fq-ic { background: var(--blue-500); }
[data-lines="gradient"] .fq-item { border-image: var(--gradient-swoosh) 1; }
.fq-cta { margin-top: 20px; }
.fq-a { padding: 0 31px 19px 0; }
.fq-a p { margin: 0; max-width: 38em; font-size: 14px; line-height: 1.65; color: var(--soft); }
.fq-item[open] .fq-a { animation: fq-in 200ms var(--ease-out); }
@keyframes fq-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (hover: hover) and (pointer: fine) { .fq-item summary:hover { color: var(--blue-700); } .fq-item summary:hover .fq-ic { background: var(--blue-700); } }
.fq-item summary:focus-visible { outline-offset: 4px; }
@media (max-width: 860px) { .fq-layout { grid-template-columns: 1fr; } .fq-a { padding-right: 0; } }

/* ===========================================================================
   Entrance. The script adds .bz-pre only when it will also add .is-in, so with no
   script or under reduced motion everything is simply already there.
   Text blocks rise as the house reveals do; the photos uncover bottom to top, which
   is none of Welcome's slide, the Routes line draw or the Credentials rule draw.
   =========================================================================== */
.bz-pre .bz-item { opacity: 0; transform: translateY(var(--reveal-distance, 22px)); }
.bz-pre.is-in .bz-item {
  opacity: 1; transform: none;
  transition: opacity var(--dur-slow) var(--ease-sweep) calc(var(--i, 0) * 70ms),
              transform var(--dur-slow) var(--ease-sweep) calc(var(--i, 0) * 70ms);
}
@media (prefers-reduced-motion: reduce) {
  .bz-pre .bz-item, .bz-pre.is-in .bz-item { opacity: 1; transform: none; transition: none; }
    .fq-item[open] .fq-a { animation: none; }
  .fq-ic { transition: none; }
}

