:root {
  --bg: #edf3f9;
  --ink: #112438;
  --muted: #5e7184;
  --navy: #12385b;
  --blue: #2e6cb3;
  --line: #d7e1ea;
  --road: #1f2731;
  --road-line: #f5d37f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Manrope, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--progress, 0%);
  height: 4px;
  z-index: 20;
  background: linear-gradient(90deg, var(--blue), var(--navy));
}

.wrap {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(17, 36, 56, 0.22), rgba(17, 36, 56, 0.74)),
    url("https://images.unsplash.com/photo-1494412651409-8963ce7935a7?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.grid-map {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 48px 48px;
}

.route {
  position: absolute;
  inset: auto 8% 28% 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent);
  animation: route 4s linear infinite;
}

@keyframes route {
  from { transform: translateX(-30%); opacity: 0; }
  25% { opacity: 1; }
  to { transform: translateX(30%); opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.top,
.nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.top {
  padding: 18px 0 12px;
  color: rgba(255,255,255,.74);
  font-size: .84rem;
}

.nav {
  align-items: center;
  padding: 16px 0 30px;
}

.brand,
h1,
h2,
h3 {
  font-family: Sora, sans-serif;
  margin: 0;
}

.brand {
  color: #fff;
  font-size: 1.9rem;
}

.btn {
  display: inline-flex;
  padding: 14px 20px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  min-height: calc(100vh - 120px);
  padding-bottom: 34px;
}

.hero-copy {
  color: #fff;
  max-width: 880px;
}

.eyebrow {
  margin: 0 0 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 800;
  color: #cfe0ff;
}

h1 {
  font-size: clamp(3.4rem, 7vw, 6.6rem);
  line-height: .86;
  max-width: 720px;
}

p {
  line-height: 1.85;
}

.hero-copy p {
  max-width: 620px;
  color: rgba(255,255,255,.82);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.metrics article {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}

.truck-stage {
  display: grid;
  gap: 18px;
  width: 100%;
}

.truck-prompt {
  padding: 18px 22px;
  border-radius: 22px;
  background: rgba(10, 28, 46, .84);
  border: 1px solid rgba(255,255,255,.14);
  color: white;
  backdrop-filter: blur(12px);
  width: min(520px, 100%);
}

.road {
  position: relative;
  min-height: clamp(560px, 72vh, 860px);
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(6,18,30,.2), rgba(6,18,30,.7)),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0));
  border: 1px solid rgba(255,255,255,.14);
  width: min(1560px, calc(100vw - 36px));
  margin-left: calc(50% - min(780px, calc(50vw - 18px)));
}

.road::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background:
    linear-gradient(180deg, transparent, rgba(0,0,0,.22)),
    linear-gradient(180deg, #37414a, var(--road));
}

.lane {
  position: absolute;
  left: 4%;
  right: 4%;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 22px,
    var(--road-line) 22px 70px
  );
  opacity: .75;
}

.lane.one { bottom: 62%; }
.lane.two { bottom: 35%; }
.lane.three { bottom: 8%; }

.truck-link {
  position: absolute;
  left: 4%;
  width: 86%;
  text-decoration: none;
  color: inherit;
}

.truck-link[data-target="contact.html"] { bottom: 57.5%; }
.truck-link[data-target="sales.html"] { bottom: 30.5%; }
.truck-link[data-target="enquire.html"] { bottom: 3.5%; }

.truck {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  transition: transform .25s ease, filter .25s ease;
}

.truck-link:hover .truck {
  transform: translateX(18px);
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.28));
}

.truck-link.is-driving .truck {
  animation: driveOff .95s cubic-bezier(.22,.64,.25,1) forwards;
}

@keyframes driveOff {
  0% { transform: translateX(0) scale(1); opacity: 1; }
  100% { transform: translateX(135%) scale(1.04); opacity: 1; }
}

.cab,
.trailer {
  position: relative;
  height: 112px;
  border: 2px solid rgba(255,255,255,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.05));
  backdrop-filter: blur(6px);
}

.cab {
  width: 22%;
  min-width: 210px;
  border-radius: 24px 16px 16px 16px;
}

.cab::before {
  content: "";
  position: absolute;
  inset: 14px 24px 38px 24px;
  border-radius: 14px;
  background: rgba(180, 216, 255, .22);
}

.trailer {
  flex: 1;
  border-radius: 20px;
  margin-left: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

.truck-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: white;
}

.truck-label span {
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .7rem;
  color: rgba(255,255,255,.72);
}

.truck-label strong {
  font-family: Sora, sans-serif;
  font-size: 1.8rem;
}

.truck-note {
  color: rgba(255,255,255,.72);
  font-size: 1rem;
  max-width: 360px;
}

.wheel,
.wheel::before {
  position: absolute;
  bottom: -18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #111;
  border: 4px solid #59626a;
}

.wheel::before {
  content: "";
  inset: -4px;
}

.wheel.w1 { left: 24px; }
.wheel.w2 { left: 92px; }
.wheel.w3 { right: 34px; }
.wheel.w4 { right: 108px; }
.wheel.w5 { right: 182px; }

.hint {
  margin-top: 8px;
  color: rgba(255,255,255,.68);
  font-size: .9rem;
  text-align: right;
}

.content {
  padding: 82px 0 100px;
}

.shell {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 24px;
}

.rail {
  position: sticky;
  top: 22px;
  align-self: start;
}

.rail h2 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: .9;
}

.rail p,
.chapter p,
.panel p {
  line-height: 1.85;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 18px;
}

.chapter,
.panel {
  padding: 26px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  transform: translateY(26px);
  opacity: 0;
  transition: transform .55s ease, opacity .55s ease;
}

.chapter.show,
.panel.show {
  transform: translateY(0);
  opacity: 1;
}

.chapter .tag {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--blue);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 800;
}

.chapter h3 {
  font-size: 2.1rem;
  line-height: .96;
}

.diagram {
  min-height: 260px;
  border-radius: 24px;
  margin-top: 18px;
  background:
    linear-gradient(180deg, rgba(18,56,91,.08), rgba(18,56,91,.16)),
    url("https://images.unsplash.com/photo-1494412574643-ff11b0a5c1c3?auto=format&fit=crop&w=1400&q=80") center/cover;
}

.cta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 22px;
  padding: 28px;
  border-radius: 30px;
  background: var(--navy);
  color: white;
}

.cta p,
.cta h2 {
  color: white;
}

.page {
  min-height: 100vh;
  padding: 26px 0 80px;
}

.page-hero {
  min-height: 58vh;
  border-radius: 34px;
  overflow: hidden;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(17,36,56,.16), rgba(17,36,56,.7)),
    url("https://images.unsplash.com/photo-1494412651409-8963ce7935a7?auto=format&fit=crop&w=1600&q=80") center/cover;
  color: white;
}

.page-hero p {
  color: rgba(255,255,255,.82);
  max-width: 640px;
}

.page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 28px;
}

.info-card {
  padding: 26px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
}

@media (max-width: 980px) {
  .hero-grid,
  .metrics,
  .shell,
  .page-grid {
    grid-template-columns: 1fr;
  }

  .top,
  .nav,
  .cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .rail {
    position: relative;
    top: 0;
  }

  .truck-link {
    left: 3%;
    width: 90%;
  }

  .road {
    width: 100%;
    margin-left: 0;
    min-height: 560px;
  }

  .lane.one { bottom: 58%; }
  .lane.two { bottom: 32%; }
  .lane.three { bottom: 6%; }

  .truck-link[data-target="contact.html"] { bottom: 53.5%; }
  .truck-link[data-target="sales.html"] { bottom: 27.5%; }
  .truck-link[data-target="enquire.html"] { bottom: 1.5%; }

  .cab {
    min-width: 110px;
  }

  .trailer {
    padding: 0 14px;
  }
}
