/* =========================================================
   Rapid Road Haulage Limited
   ========================================================= */

:root {
  --navy: #0B3C7A;
  --navy-900: #061F42;
  --blue: #1E90E0;
  --sky: #2EC4F5;
  --red: #E53935;
  --red-600: #C62828;
  --amber: #FFC247;
  --ink: #0F1B2D;
  --muted: #5B6B82;
  --line: #E2E9F2;
  --bg: #FFFFFF;
  --bg-alt: #F3F7FC;
  --asphalt: #2A2E35;

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 60, 122, .10);
  --shadow-lg: 0 24px 60px rgba(6, 31, 66, .20);
  --nav-h: 76px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0; }
p { margin: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Shared bits ---------- */
.eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--sky); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(229, 57, 53, .35); }
.btn--red:hover { background: var(--red-600); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--outline { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn--outline:hover { background: #fff; color: var(--navy); }
.btn--sm { padding: 10px 20px; font-size: .92rem; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .35s ease, box-shadow .35s ease;
}
.nav.is-scrolled { box-shadow: 0 6px 24px rgba(6,31,66,.10); }
.nav.is-hidden { transform: translateY(-100%); }
/* no header over the landing animation; it slides in once the visitor moves on */
.nav.is-away { transform: translateY(-100%); box-shadow: none; pointer-events: none; }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 44px; height: 44px; mix-blend-mode: multiply; }
.brand__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-head); }
.brand__text strong { color: var(--navy); font-weight: 800; font-size: 1.15rem; letter-spacing: .01em; }
.brand__text small { color: var(--blue); font-weight: 500; font-size: .66rem; letter-spacing: .16em; margin-top: 4px; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--ink); font-size: .95rem; position: relative; padding: 6px 0; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--navy); }

.nav__toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav__toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .3s, opacity .3s; border-radius: 2px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO: the logo comes alive ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; isolation: isolate; color: #fff; background: #020B1C;
}
.stage__night, .stage__dawn, .stage__photo, .stage__shade { position: absolute; inset: 0; z-index: -1; }
.stage__night { background: linear-gradient(180deg, #020B1C 0%, #061F42 55%, #0B3C7A 100%); }
.stars { position: absolute; inset: 0; }
.stars i {
  position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff;
  animation: twinkle var(--d, 3s) ease-in-out infinite alternate; animation-delay: var(--delay, 0s);
}
@keyframes twinkle { from { opacity: .15; } to { opacity: .9; } }
.stage__dawn {
  opacity: 0;
  background:
    radial-gradient(ellipse 80% 55% at 72% 105%, rgba(255,170,80,.9) 0%, rgba(229,90,53,.45) 35%, transparent 70%),
    linear-gradient(180deg, rgba(11,60,122,0) 40%, rgba(255,150,80,.25) 100%);
}
.stage__photo { opacity: 0; left: 36%; }
.stage__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.stage__shade {
  opacity: 0;
  background:
    linear-gradient(90deg, #061F42 0%, #061F42 36%, rgba(6,31,66,.75) 44%, rgba(6,31,66,0) 62%),
    linear-gradient(0deg, rgba(6,31,66,.7) 0%, rgba(6,31,66,0) 30%);
}

.stage {
  position: relative; height: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 40px;
  padding-top: 0;
}
.stage__copy { display: grid; align-items: center; }
.copy { grid-area: 1 / 1; max-width: 560px; }
.copy--story, .copy--final { opacity: 0; visibility: hidden; }

.hero__title { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin-bottom: 20px; }
.hero__title .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__title .word > span { display: inline-block; }
.hero__title .hl { color: var(--sky); }
.hero__lead { font-size: 1.12rem; color: rgba(255,255,255,.82); margin-bottom: 30px; max-width: 480px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.story__lines { display: grid; }
.story__line {
  grid-area: 1 / 1; opacity: 0;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.15; letter-spacing: -.01em;
}
.story__line em { font-style: normal; color: var(--sky); }
.story__km { margin-top: 34px; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 12px; max-width: 360px; }
.story__km-num { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.story__km-label { color: rgba(255,255,255,.65); font-size: .9rem; }
.story__bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.15); overflow: hidden; }
.story__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), #FFB35C); }

.final__brand { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.hero__slot { width: 96px; height: 96px; flex: none; }
.final__word { display: flex; flex-direction: column; font-family: var(--font-head); line-height: 1; }
.final__word strong { font-size: 1.9rem; font-weight: 800; letter-spacing: .01em; }
.final__word small { font-size: .82rem; letter-spacing: .2em; color: var(--sky); margin-top: 6px; font-weight: 500; }
.final__title { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin-bottom: 18px; }
.final__title span { color: var(--sky); white-space: nowrap; }

.stage__art { display: flex; justify-content: center; align-items: center; }
.mark-wrap { line-height: 0; will-change: transform; }
.mark { width: min(44vw, 560px, 68vh); height: auto; overflow: hidden; }
.mark__ring { fill: none; stroke: url(#ringGrad); stroke-width: 70; }
.mark__wedge { fill: url(#ringGrad); }
.mark__asphalt { fill: #14171C; }
.mark__edge { stroke: #fff; stroke-width: 3; }
.mark__dash { stroke: #fff; stroke-width: 5; stroke-dasharray: 22 16; }
.mark__trail { stroke: var(--sky); stroke-width: 9; stroke-linecap: round; filter: url(#mGlow); }
.mark__beam { fill: url(#mBeam); }
.mark__trailer { fill: #1E7FD0; stroke: #fff; stroke-width: 3; }
.mark__ribs { stroke: rgba(255,255,255,.45); stroke-width: 2; fill: none; }
.mark__cab { fill: var(--red); stroke: #fff; stroke-width: 3; }
.mark__truck.is-idle .mark__truck-body { animation: idle .18s linear infinite alternate; }
@keyframes idle { from { transform: translateY(-.6px); } to { transform: translateY(.6px); } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none;
}
.hero__scroll small { font-family: var(--font-head); font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.hero__scroll-road { display: block; width: 22px; height: 40px; border: 2px solid rgba(255,255,255,.7); border-radius: 12px; position: relative; }
.hero__scroll-road span {
  position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; background: #fff; border-radius: 2px;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* no animation: show the finished logo + promise */
.hero--static .copy--intro, .hero--static .copy--story, .hero--static .hero__slot, .hero--static .hero__scroll { display: none; }
.hero--static .copy--final { opacity: 1; visibility: visible; }

/* =========================================================
   THE JOURNEY
   ========================================================= */
.journey {
  position: relative;
  background-color: #E6F0FA;
  background-image: radial-gradient(rgba(6,31,66,.06) 1px, transparent 1.6px);
  background-size: 22px 22px;
  padding: 140px 0 380px;
  overflow: hidden;
}
.road { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 0; overflow: visible; }
.road path { fill: none; stroke-linecap: butt; stroke-linejoin: round; }
.road__shoulder { stroke: #CDD3DB; }
.road__asphalt { stroke: var(--asphalt); }
.road__edge { stroke: rgba(255,255,255,.85); }
.road__trail { stroke: url(#trail); stroke-opacity: .55; }
.road__dash { stroke: #fff; stroke-dasharray: 18 16; }

.truck__beam { fill: url(#beam); }
.truck__shadow { fill: rgba(0,0,0,.28); transform: translate(3px, 4px); }
.truck__trailer { fill: var(--blue); stroke: #fff; stroke-width: 1.5; }
.truck__ribs { stroke: rgba(255,255,255,.45); stroke-width: 1.2; fill: none; }
.truck__cab { fill: var(--red); stroke: #fff; stroke-width: 1.5; }

/* scenery (drawn by JS) */
.tree { fill: #7E9B45; }
.tree__core { fill: #5F7B2F; }
.rock { fill: #C9B79A; }
.box { stroke: rgba(0,0,0,.18); stroke-width: 1; }

/* road markers (drawn by JS) */
.pin__ring { fill: #fff; stroke: var(--navy); stroke-width: 4; transition: fill .3s, stroke .3s; }
.pin__pulse { fill: rgba(229,57,53,.45); opacity: 0; transform-box: fill-box; transform-origin: center; }
.pin.is-reached .pin__ring { fill: var(--red); stroke: #fff; }
.pin.is-reached .pin__pulse { animation: pinPulse 2s ease-out infinite; }
@keyframes pinPulse { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.6); } }

.rsign rect { fill: var(--navy); }
.rsign .rsign__inner { fill: none; stroke: rgba(255,255,255,.7); stroke-width: 1.2; }
.rsign text { font-family: var(--font-head); fill: #fff; }
.rsign .rsign__km { fill: var(--sky); font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.rsign .rsign__place { font-size: 14px; font-weight: 700; letter-spacing: .04em; }

.barrier__arm { stroke: var(--red); stroke-width: 7; stroke-linecap: round; }
.barrier__stripes { stroke: #fff; stroke-width: 7; stroke-dasharray: 9 9; }
.barrier__post { fill: var(--navy); stroke: #fff; stroke-width: 2; }
.booth { fill: #fff; stroke: var(--navy); stroke-width: 2; }
.booth__roof { fill: var(--navy); }

.finish { fill: var(--red); stroke: #fff; stroke-width: 3; }

/* stops */
.journey__stops { display: flex; flex-direction: column; gap: 300px; }
.stop {
  position: relative; z-index: 1;
  width: 56%;
  background: #fff; border-radius: 22px; padding: clamp(24px, 3.2vw, 40px);
  box-shadow: var(--shadow-lg);
}
/* the card the truck is passing lights up; passed stops get a tick */
.stop::after {
  content: ""; position: absolute; inset: -4px; border-radius: 26px; pointer-events: none;
  border: 3px solid var(--sky); box-shadow: 0 0 0 6px rgba(46,196,245,.15), 0 30px 60px rgba(30,144,224,.25);
  opacity: 0; transition: opacity .5s;
}
.stop.is-current::after { opacity: 1; }
.stop.is-current .sign__km { animation: signPulse 1.6s ease-in-out infinite; }
@keyframes signPulse { 0%, 100% { background: var(--red); } 50% { background: #FF6F5B; } }
.sign__km::after { content: ""; }
.stop.is-passed .sign__km::after { content: " \2713"; }
.stop--right { margin-left: auto; }
.stop--left { margin-right: auto; }
.stop--dark { background: linear-gradient(160deg, #0E4A93 0%, var(--navy-900) 70%); color: #fff; }

.sign {
  display: inline-flex; align-items: stretch; margin-bottom: 18px;
  border-radius: 8px; overflow: hidden; font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 4px 12px rgba(6,31,66,.15);
}
.sign__km { background: var(--red); color: #fff; padding: 7px 12px; }
.sign__place { background: var(--navy); color: #fff; padding: 7px 14px; }
.sign--light .sign__place { background: #fff; color: var(--navy); }

.stop__title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.stop__title .accent { color: var(--blue); }
.stop--dark .stop__title { color: #fff; }
.stop__lead { color: var(--muted); font-size: 1.04rem; margin-top: 12px; }
.stop--dark .stop__lead { color: rgba(255,255,255,.78); }
.stop__sub { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin: 28px 0 14px; }

.steps-mini { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.steps-mini span {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px;
  background: var(--bg-alt); color: var(--navy); font-weight: 600; font-size: .9rem;
}
.steps-mini b {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: #fff; font-family: var(--font-head); font-size: .75rem;
}

/* services (stop 1) */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.service {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1px solid var(--line);
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.service:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.service__icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(30,144,224,.12), rgba(46,196,245,.2));
}
.service__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service h4 { font-size: 1rem; color: var(--navy); margin-bottom: 2px; }
.service p { color: var(--muted); font-size: .88rem; line-height: 1.5; }

/* fleet (stop 2) */
.fleet__img { position: relative; border-radius: 16px; overflow: hidden; margin-top: 20px; aspect-ratio: 16 / 10; }
.fleet__img img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 45%; }
.fleet__badge {
  position: absolute; right: 14px; bottom: 14px; background: var(--navy); color: var(--sky);
  padding: 10px 16px; border-radius: 12px; font-family: var(--font-head); font-size: .75rem; line-height: 1.2;
}
.fleet__badge strong { display: block; color: #fff; font-size: 1.3rem; letter-spacing: .12em; }
.fleet__grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin: 22px 0; }
.fleet__grid svg { width: 100%; height: auto; }
.fleet__grid .body { fill: var(--line); transition: fill .3s; }
.fleet__grid .cab { fill: #D5DEEA; transition: fill .3s; }
.fleet__grid svg.on .body { fill: var(--blue); }
.fleet__grid svg.on .cab { fill: var(--red); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 34px; font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* numbers (stop 3) */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.stat { background: var(--bg-alt); border-radius: 16px; padding: 20px; }
.stat__num { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); color: var(--navy); line-height: 1; letter-spacing: -.02em; }
.stat__num small { font-size: .4em; font-weight: 600; color: var(--blue); margin-left: 4px; letter-spacing: 0; }
.stat__label { display: block; color: var(--muted); margin-top: 8px; font-size: .9rem; line-height: 1.4; }
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.trust__item {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--navy); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; line-height: 1.25;
}
.trust__item svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--sky); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* routes (stop 4) */
.routes__map { margin-top: 20px; }
.corridor-map {
  height: clamp(340px, 46vh, 460px); border-radius: 16px; overflow: hidden;
  background: #0d1b2e; border: 1px solid rgba(255,255,255,.12);
}
.corridor-map .osm-dark { filter: invert(1) hue-rotate(200deg) brightness(.85) contrast(.9) saturate(.6); }
.corridor-map__hint { font-size: .78rem; color: rgba(255,255,255,.55); margin-top: 8px; }
.corridor-map .leaflet-control-attribution { background: rgba(6,31,66,.75); color: rgba(255,255,255,.6); font-size: 10px; }
.corridor-map .leaflet-control-attribution a { color: var(--sky); }
.corridor-map .leaflet-bar a { background: var(--navy); color: #fff; border-color: rgba(255,255,255,.15); }
.corridor-map .leaflet-bar a:hover { background: var(--blue); }
.leaflet-tooltip.city-label {
  background: transparent; border: 0; box-shadow: none; padding: 0;
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 12px; text-shadow: 0 1px 3px rgba(0,0,0,.9);
}
.leaflet-tooltip.city-label::before { display: none; }
.leaflet-tooltip.city-label--hub { font-size: 14px; }
.leaflet-tooltip.city-label--border { color: var(--amber); font-weight: 600; font-style: italic; font-size: 11px; }
.map-diamond { width: 10px; height: 10px; background: var(--amber); border: 2px solid #061F42; transform: rotate(45deg); }
.map-hub { width: 16px; height: 16px; border-radius: 50%; background: var(--red); border: 3px solid #fff; position: relative; }
.map-hub::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: rgba(229,57,53,.5); animation: pinPulse 2s ease-out infinite; z-index: -1; }
.map-truck-icon svg { width: 30px; height: 16px; overflow: visible; filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); }
.route-glow { filter: blur(3px); }
.route-line { transition: opacity .4s; }
.leaflet-popup-content-wrapper { border-radius: 12px; font-family: var(--font-body); }
.leaflet-popup-content { margin: 10px 14px; font-size: .88rem; line-height: 1.4; }
.leaflet-popup-content strong { font-family: var(--font-head); color: var(--navy); }

.route-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.route-card {
  display: block; width: 100%; font: inherit; text-align: left; cursor: pointer;
  border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 12px 14px; background: rgba(255,255,255,.04);
  font-size: .85rem; color: rgba(255,255,255,.78); line-height: 1.45;
  transition: background .4s, border-color .4s, opacity .4s, transform .4s;
}
.route-card:hover { border-color: rgba(46,196,245,.55); }
.route-card:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.route-card__head { display: flex; align-items: center; gap: 8px; }
.route-card__name { font-family: var(--font-head); font-size: 1.05rem; color: #fff; }
.route-card__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); }
.route-card__km { display: block; font-family: var(--font-head); font-weight: 600; color: var(--sky); margin: 4px 0; }
.route-card__line { display: block; }
.route-card__meta { display: block; color: #fff; font-weight: 600; margin-top: 4px; }
.route-cards.is-playing .route-card { opacity: .45; }
.route-cards.is-playing .route-card.is-active, .route-cards .route-card.is-selected { opacity: 1; background: rgba(46,196,245,.12); border-color: rgba(46,196,245,.55); transform: translateY(-4px); }
.route-cards.has-selection .route-card:not(.is-selected) { opacity: .5; }
.routes__legend { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.legend-diamond { width: 9px; height: 9px; background: var(--amber); transform: rotate(45deg); display: inline-block; flex: none; }


/* borders (stop 5) */
.borders { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.borders li { display: flex; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--bg-alt); }
.borders h4 { color: var(--navy); font-size: 1.02rem; }
.borders p { color: var(--muted); font-size: .9rem; }
.borders__gate {
  flex: none; width: 46px; height: 12px; border-radius: 6px;
  background: repeating-linear-gradient(90deg, var(--red) 0 8px, #fff 8px 16px);
  box-shadow: 0 0 0 2px var(--navy); transform-origin: 6px 50%; transform: rotate(0deg);
  transition: transform .8s cubic-bezier(.5,1.6,.4,1);
}
.stop.is-reached .borders__gate { transform: rotate(-35deg); }
.stop.is-reached .borders li:nth-child(2) .borders__gate { transition-delay: .2s; }
.stop.is-reached .borders li:nth-child(3) .borders__gate { transition-delay: .4s; }

/* destinations (stop 6) */
.dest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.dest__col { background: var(--bg-alt); border-radius: 14px; padding: 16px; }
.dest__col h4 { display: flex; align-items: center; gap: 8px; color: var(--navy); font-size: 1.05rem; margin-bottom: 6px; }
.dest__col h4 span { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.dest__col p { color: var(--muted); font-size: .92rem; line-height: 1.7; }

/* contact (stop 7) */
.contact__list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 16px; }
.contact__list li { display: flex; gap: 14px; align-items: center; }
.contact__list svg {
  width: 44px; height: 44px; padding: 11px; flex: none; border-radius: 12px; background: rgba(46,196,245,.16);
  fill: none; stroke: var(--sky); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.contact__list span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--sky); font-weight: 600; }
.contact__list div { font-size: 1.02rem; font-weight: 500; line-height: 1.4; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }

.quote { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: clamp(18px, 3vw, 28px); display: grid; gap: 14px; }
.quote h3 { color: #fff; font-size: 1.25rem; }
.quote__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quote label { display: grid; gap: 6px; font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.85); }
.quote input, .quote select, .quote textarea {
  font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink);
  border: 1.5px solid transparent; border-radius: 10px; padding: 11px 13px; background: #fff; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.quote input:focus, .quote select:focus, .quote textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(46,196,245,.25); }
.quote .is-invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(229,57,53,.3); }
.quote textarea { resize: vertical; }
.quote__error { color: #FFB3B0; font-size: .9rem; }
.quote__error:empty { display: none; }
.quote__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- FINALE: delivered ---------- */
.finale {
  position: relative; height: 100vh; height: 100svh; min-height: 620px;
  display: flex; align-items: center; overflow: hidden; isolation: isolate; color: #fff;
  background: radial-gradient(ellipse 90% 80% at 28% 55%, #0E4A93 0%, #061F42 65%);
}
.finale__glow {
  position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(circle at 28% 52%, rgba(46,196,245,.35) 0%, rgba(255,170,80,.12) 30%, transparent 55%);
}
.finale__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding-top: 40px; }
.finale__art { position: relative; display: flex; justify-content: center; }
.finale__art .mark { width: min(40vw, 480px, 60vh); }
.stamp {
  position: absolute; right: 2%; bottom: 6%;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff; border: 3px solid #fff; border-radius: 12px; padding: 10px 18px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: .16em; text-transform: uppercase;
  box-shadow: 0 16px 40px rgba(229,57,53,.45); transform: rotate(-12deg);
}
.stamp span { font-size: 1.3em; line-height: 1; }
.finale__title { font-size: clamp(2rem, 4.4vw, 3.5rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
.finale__title span { color: var(--sky); }
.finale__lead { color: rgba(255,255,255,.8); font-size: 1.1rem; margin: 16px 0 28px; max-width: 520px; }
.finale__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 560px; }
.cta {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; text-decoration: none;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  transition: transform .2s, background .2s, border-color .2s;
}
.cta:hover { transform: translateY(-3px); background: rgba(255,255,255,.14); border-color: rgba(46,196,245,.6); }
.cta svg { width: 40px; height: 40px; padding: 9px; flex: none; border-radius: 10px; background: rgba(46,196,245,.16); fill: none; stroke: var(--sky); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cta strong { display: block; font-family: var(--font-head); font-size: 1rem; line-height: 1.2; }
.cta small { display: block; color: rgba(255,255,255,.65); font-size: .8rem; line-height: 1.3; margin-top: 2px; word-break: break-word; }
.cta--primary { background: var(--red); border-color: var(--red); box-shadow: 0 10px 26px rgba(229,57,53,.4); }
.cta--primary:hover { background: var(--red-600); border-color: var(--red-600); }
.cta--primary svg { background: rgba(255,255,255,.2); stroke: #fff; }
.cta--primary small { color: rgba(255,255,255,.85); }
.finale__sign { margin-top: 24px; font-family: var(--font-head); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sky); }

.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.confetti i { position: absolute; width: 8px; height: 14px; border-radius: 2px; margin: -7px 0 0 -4px; }

/* ---------- CONTACT ---------- */
.contact { padding: clamp(80px, 10vw, 130px) 0; background: linear-gradient(160deg, #0E4A93 0%, var(--navy-900) 70%); color: #fff; }
.contact__inner { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact__title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.01em; }
.contact__lead { color: rgba(255,255,255,.78); margin-top: 14px; font-size: 1.05rem; }

.finish-line rect.w { fill: #fff; }
.finish-line rect.b { fill: #111; }

/* ---------- Bridge truck: from the landing page onto the road ---------- */
.bridge-truck {
  position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none;
  width: 200px; height: 80px; margin: -40px 0 0 -100px;
  opacity: 0; will-change: transform;
}
.bridge-truck svg { width: 200px; height: 80px; overflow: visible; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }

/* ---------- HUD (odometer) ---------- */
.hud {
  position: fixed; left: 20px; bottom: 20px; z-index: 90;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px;
  min-width: 210px; padding: 12px 16px 12px 12px; border-radius: 16px;
  background: rgba(6,31,66,.92); color: #fff; box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .4s, transform .4s;
}
.hud.is-visible { opacity: 1; transform: none; }
.hud__icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--red); fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hud__km { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; line-height: 1; font-variant-numeric: tabular-nums; }
.hud__place { font-size: .78rem; color: var(--sky); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; margin-top: 3px; white-space: nowrap; }
.hud__bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.15); overflow: hidden; margin-top: 6px; }
.hud__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--sky)); }

/* ---------- FOOTER ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.72); padding: 56px 0 24px; font-size: .95rem; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: start; }
.footer__brand { display: flex; gap: 16px; align-items: center; }
.footer__logo { background: #fff; border-radius: 14px; padding: 6px; flex: none; }
.footer__logo img { width: 52px; height: 52px; }
.footer__brand strong { display: block; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.footer__brand small { display: block; color: var(--sky); font-family: var(--font-head); letter-spacing: .16em; font-size: .7rem; margin: 4px 0 8px; }
.footer__links, .footer__contact { display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; font-size: .85rem; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.45); transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .stop { width: 60%; }
  .services, .stats, .trust { grid-template-columns: 1fr; }
  .route-cards, .dest { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --nav-h: 68px; }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 12px var(--gutter) 24px; box-shadow: 0 20px 30px rgba(6,31,66,.12);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .3s, opacity .3s, visibility .3s;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 16px; }

  .stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; gap: 8px; padding-top: 28px; padding-bottom: 90px; }
  .stage__art { order: -1; }
  .mark { width: min(70vw, 40vh, 380px); }
  .stage__copy { align-self: start; }
  .copy { max-width: none; }
  .stage__photo { left: 0; bottom: auto; height: 52%; }
  .stage__shade { background: linear-gradient(0deg, #061F42 0%, #061F42 50%, rgba(6,31,66,.6) 58%, rgba(6,31,66,0) 75%); }
  .hero__eyebrow { font-size: .68rem; letter-spacing: .14em; }
  .hero__title { font-size: clamp(2rem, 8.5vw, 3rem); margin-bottom: 12px; }
  .hero__lead { font-size: 1rem; margin-bottom: 20px; }
  .story__line { font-size: clamp(1.4rem, 6vw, 2rem); }
  .story__km { margin-top: 20px; }
  .hero__slot { width: 64px; height: 64px; }
  .final__brand { margin-bottom: 14px; }
  .final__word strong { font-size: 1.4rem; }
  .final__title { font-size: clamp(1.9rem, 8vw, 2.8rem); margin-bottom: 12px; }
  .hero__scroll { bottom: 16px; }

  /* the road runs down the left edge; stops sit to its right */
  .journey { padding: 90px 0 320px; }
  .journey__stops { gap: 48px; } /* road.js sets this to the exact road width */
  .stop, .stop--right { width: auto; margin-left: 46px; margin-right: 0; }
  .stop--left { width: auto; margin-left: 0; margin-right: 46px; }
  .services, .stats, .trust { grid-template-columns: 1fr 1fr; }
  .finale { height: auto; min-height: 100vh; min-height: 100svh; padding: calc(var(--nav-h) + 12px) 0 32px; }
  .finale__inner { grid-template-columns: 1fr; gap: 18px; padding-top: 0; }
  .finale__art .mark { width: min(58vw, 34vh, 320px); }
  .stamp { right: 4%; bottom: 2%; font-size: .9rem; padding: 7px 12px; }
  .finale__title { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .finale__lead { font-size: 1rem; margin: 10px 0 18px; }
  .finale__ctas { gap: 8px; }
  .cta { padding: 10px; gap: 10px; }
  .cta svg { width: 34px; height: 34px; padding: 7px; }
  .cta small { display: none; }
  .finale__sign { margin-top: 16px; font-size: .68rem; }
  .contact__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .brand__mark { width: 38px; height: 38px; }
  .brand__text strong { font-size: 1rem; }
  .hero__actions .btn { flex: 1 1 auto; }

  .stop, .stop--right { margin-left: 34px; padding: 22px 18px; border-radius: 18px; }
  .stop--left { margin-left: 0; margin-right: 34px; }
  .services, .stats, .trust, .quote__row { grid-template-columns: 1fr; }
  .fleet__grid { gap: 5px; }
  .sign { font-size: .7rem; }
  .quote__actions .btn { flex: 1 1 100%; }
  .footer__inner { grid-template-columns: 1fr; }

  .hud { left: 50%; bottom: 14px; min-width: 0; padding: 8px 12px 8px 8px; gap: 2px 10px; transform: translate(-50%, 20px); }
  .hud.is-visible { transform: translate(-50%, 0); }
  .hud__icon { width: 28px; height: 28px; padding: 5px; }
  .hud__km { font-size: 1.05rem; }
  .hud__place { font-size: .68rem; }
  .wa-float { right: 12px; bottom: 12px; width: 52px; height: 52px; }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
