/* ============================================================
   KG Logistics — kglogistics.uk landing page
   Dark editorial / scroll-narrative styling
   ============================================================ */

:root {
  /* KG Logistics brand: navy ground, brushed-teal accent, silver support.
     Deliberately single-theme — the identity is a dark one. */
  --ink: #070b18;
  --ink-2: #0b1124;
  --ink-3: #121a31;
  --navy: #151c46;
  --line: rgba(226, 238, 240, 0.15);
  --line-soft: rgba(226, 238, 240, 0.075);
  --paper: #eaf2f3;
  --muted: rgba(234, 242, 243, 0.58);
  --muted-2: rgba(234, 242, 243, 0.4);
  --accent: #45b3ae;
  --accent-deep: #2a7e92;
  --accent-pale: #8fd8d0;
  --silver: #9fb0b5;

  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  /* technical face for instrument readouts, codes and tabular data */
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --pad: clamp(20px, 5vw, 88px);
  --maxw: 1560px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: var(--ink); }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 4px;
}
.skip:focus { top: 16px; }

/* ───────────────────────── shared type ───────────────────────── */

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(20px, 3vw, 34px);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(69, 179, 174, 0.55);
  animation: pulse 2.6s var(--ease-io) infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(69, 179, 174, 0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(69, 179, 174, 0); }
  100% { box-shadow: 0 0 0 0 rgba(69, 179, 174, 0); }
}

.h2,
.statement__big,
.contact__big,
.rail__title,
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.96;
  margin: 0;
  text-wrap: balance;
}

.h2 { font-size: clamp(2.2rem, 5.2vw, 5rem); }

/* split-text reveal ---------------------------------------- */
[data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* room for descenders so the mask never crops a "y" or "g" */
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}
[data-split] .w-i {
  display: inline-block;
  transform: translateY(110%) rotate(3deg);
  transition: transform 1.05s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: transform;
}
[data-split].is-in .w-i { transform: none; }

/* generic reveal -------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--delay, 0) * 110ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* buttons ---------------------------------------------------- */
.btn {
  --bg: transparent;
  --fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  isolation: isolate;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--ink); border-color: var(--accent); }
.btn span { position: relative; display: block; }

.btn--solid { --bg: var(--paper); --fg: var(--ink); border-color: var(--paper); }
.btn--sm { height: 42px; padding: 0 20px; font-size: 11px; }

/* keyboard focus must be obvious on a dark ground */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.btn:focus-visible { outline-offset: 4px; }

/* nav phone ---------------------------------------------------- */
.nav__tel {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 0;
  text-align: right;
  transition: color 0.35s var(--ease);
}
.nav__tel-k {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.nav__tel-v {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.nav__tel:hover { color: var(--accent); }

.hero__proof {
  margin: clamp(14px, 1.8vw, 22px) 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* what happens next -------------------------------------------- */
.next {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-top: 0;
}
.next li {
  display: flex;
  gap: 14px;
  padding: clamp(20px, 2.4vw, 30px) clamp(16px, 2vw, 26px);
  background: var(--ink);
  color: var(--muted);
  font-size: 14px;
}
.next b {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent);
}

/* ───────────────────────── preloader ───────────────────────── */

.loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--ink);
  transition: transform 1s var(--ease) 0.15s;
}
.loader.is-done { transform: translateY(-101%); }

.loader__inner { width: min(560px, 84vw); }

.loader__mark {
  width: clamp(220px, 34vw, 380px);
  height: auto;
  filter: drop-shadow(0 0 30px rgba(69, 179, 174, 0.35));
  animation: markIn 1.2s var(--ease) both;
}
@keyframes markIn {
  from { opacity: 0; transform: scale(0.88) rotate(-8deg); }
  to { opacity: 1; transform: none; }
}

.loader__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 14px 0 12px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.loader__count { color: var(--paper); font-variant-numeric: tabular-nums; }

.loader__bar { height: 1px; background: var(--line); overflow: hidden; }
.loader__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

/* ───────────────────────── cursor ───────────────────────── */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 250;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.3s;
}
.cursor span {
  display: block;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.35s var(--ease);
}
.cursor.is-on { opacity: 1; }
.cursor.is-hover span { transform: scale(2.6); }

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* ───────────────────────── nav ───────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--pad);
  transition: transform 0.6s var(--ease), background 0.5s var(--ease),
    border-color 0.5s var(--ease), padding 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  padding-block: 12px;
  background: rgba(7, 11, 24, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav.is-hidden { transform: translateY(-105%); }

.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__logo {
  width: clamp(34px, 3.2vw, 44px);
  height: auto;
  filter: drop-shadow(0 0 16px rgba(69, 179, 174, 0.3));
}
.nav__brandtext {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--font-display);
  line-height: 1;
}
.nav__brandtext b {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav__brandtext em {
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav__links { display: flex; gap: 30px; }
.nav__links a {
  position: relative;
  padding: 12px 2px; /* comfortable target on touch laptops and tablets */
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.35s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav__links a:hover { color: var(--paper); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__right { display: flex; align-items: center; gap: 14px; }

.menu-btn {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}
.menu-btn span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--paper);
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.menu-btn span + span { margin-top: 6px; }
.menu-btn em {
  font-family: var(--font-display);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* fullscreen menu ------------------------------------------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--ink-2);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease);
  display: grid;
  align-items: center;
  padding: 120px var(--pad) 60px;
}
.menu.is-open { clip-path: inset(0 0 0 0); }

.menu__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 48px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
}

.menu__list li { overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.menu__list a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  transform: translateY(110%);
  transition: transform 0.8s var(--ease), color 0.35s;
}
.menu.is-open .menu__list a { transform: none; }
.menu__list li:nth-child(1) a { transition-delay: 0.08s; }
.menu__list li:nth-child(2) a { transition-delay: 0.14s; }
.menu__list li:nth-child(3) a { transition-delay: 0.2s; }
.menu__list li:nth-child(4) a { transition-delay: 0.26s; }
.menu__list li:nth-child(5) a { transition-delay: 0.32s; }
.menu__list a:hover { color: var(--accent); }
.menu__list i {
  font-family: var(--font-display);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}

.menu__aside { color: var(--muted); font-size: 14px; }
.menu__aside p { margin: 0 0 18px; }
.menu__label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px !important;
}
.menu__aside a:hover { color: var(--accent); }

/* ───────────────────────── hero ───────────────────────── */

.hero {
  position: relative;
  min-height: 100vh; /* fallback for browsers without small-viewport units */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 160px var(--pad) clamp(40px, 6vw, 72px);
  overflow: hidden;
}

.hero__globe {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.hero__globe canvas {
  width: min(78vh, 62vw, 900px);
  height: min(78vh, 62vw, 900px);
  pointer-events: auto;
  cursor: grab;
  touch-action: pan-y;
}
.hero__globe canvas.is-grabbing { cursor: grabbing; }

.hero__globe-hint {
  position: absolute;
  top: 13%;
  right: var(--pad);
  bottom: auto;
  margin: 0;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
  opacity: 0;
  animation: hintIn 1s var(--ease) 2.6s forwards;
}
@keyframes hintIn { to { opacity: 1; } }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--ink) 4%, rgba(7, 11, 24, 0.55) 34%, transparent 62%),
    linear-gradient(to right, rgba(7, 11, 24, 0.82) 0%, rgba(7, 11, 24, 0.25) 46%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
}

.hero__title {
  font-size: clamp(2.9rem, 8.4vw, 9.4rem);
  font-weight: 700;
  max-width: 16ch;
}

.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  margin-top: clamp(32px, 5vw, 64px);
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--line-soft);
}

.hero__lede {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 19px);
}

.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  right: var(--pad);
  top: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.hero__scroll i {
  width: 1px;
  height: 60px;
  background: linear-gradient(var(--accent), transparent);
  animation: drop 2.2s var(--ease-io) infinite;
  transform-origin: top;
}
@keyframes drop {
  0%   { transform: scaleY(0); }
  45%  { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ───────────────────────── hero HUD ───────────────────────── */

.hud {
  position: absolute;
  inset: clamp(84px, 11vh, 128px) var(--pad) clamp(28px, 4vh, 48px);
  z-index: 2; /* above the legibility wash, below the copy */
  pointer-events: none;
}

.hud__tick {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0 solid var(--line);
  opacity: 0;
  animation: hintIn 0.8s var(--ease) 2.2s forwards;
}
.hud__tick--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hud__tick--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hud__tick--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hud__tick--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

.hud__read {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  gap: clamp(16px, 2.4vw, 38px);
  margin: 0;
  opacity: 0;
  animation: hintIn 0.9s var(--ease) 2.4s forwards;
}
.hud__read > div { display: flex; flex-direction: column; gap: 5px; }
.hud__read dt {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.hud__read dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--silver);
  font-variant-numeric: tabular-nums;
}
.hud__read dd.is-open { color: var(--accent); }

/* ───────────────────────── ticker ───────────────────────── */

.ticker {
  border-block: 1px solid var(--line-soft);
  padding: 22px 0;
  overflow: hidden;
  background: var(--ink);
}
.ticker__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.ticker__set {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.7vw, 24px);
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.ticker__set i { color: var(--accent); font-style: normal; font-size: 0.7em; }

/* ───────────────────────── statement ───────────────────────── */

.statement { padding: clamp(90px, 13vw, 190px) 0; }

.statement__big {
  font-size: clamp(1.7rem, 3.6vw, 3.5rem);
  font-weight: 500;
  line-height: 1.08;
  max-width: 24ch;
  letter-spacing: -0.03em;
}

.statement__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  max-width: 900px;
  margin-left: auto;
  margin-top: clamp(40px, 6vw, 84px);
  color: var(--muted);
}
.statement__cols p { margin: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(56px, 8vw, 110px);
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
}
.stat {
  background: var(--ink);
  padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 28px);
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__num b { font-weight: inherit; }
.stat__unit {
  display: inline-block;
  margin-left: 0.32em;
  font-family: var(--font-mono);
  font-size: 0.34em;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  vertical-align: baseline;
}
.stat__label {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  max-width: 22ch;
}

/* ───────────────────────── services rail ───────────────────────── */

.rail { position: relative; }
.rail__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(24px, 4vw, 54px);
  overflow: hidden;
  padding-block: 90px 40px;
}

.rail__head { position: relative; }
.rail__title {
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  font-weight: 600;
}
.rail__progress {
  position: absolute;
  right: var(--pad);
  bottom: 6px;
  width: min(260px, 30vw);
  height: 1px;
  background: var(--line-soft);
}
.rail__progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
}

.rail__track {
  display: flex;
  align-items: stretch;
  gap: clamp(16px, 1.6vw, 26px);
  padding-inline: var(--pad);
  will-change: transform;
}

.card {
  position: relative;
  flex: 0 0 clamp(280px, 30vw, 430px);
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.4vw, 38px);
  border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
  overflow: hidden;
  transition: border-color 0.5s var(--ease), transform 0.6s var(--ease);
}
.card:hover { border-color: var(--line); transform: translateY(-6px); }
.card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.card:hover::before { transform: scaleX(1); }

.card__no {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted-2);
}
.card h3 {
  margin: 18px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.card p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.card ul { margin-top: auto; border-top: 1px solid var(--line-soft); }
.card li {
  padding: 11px 0 11px 18px;
  position: relative;
  font-size: 13.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
}
.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}
.card__art {
  position: absolute;
  right: -30px;
  top: -20px;
  width: 190px;
  opacity: 0.14;
  fill: none;
  stroke: var(--paper);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}
.card:hover .card__art { opacity: 0.3; transform: translate(-8px, 6px); }

.rail__end {
  flex: 0 0 clamp(240px, 24vw, 330px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  padding-right: var(--pad);
}
.rail__end p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* ───────────────────────── technical index ───────────────────────── */

.index {
  padding: clamp(90px, 13vw, 180px) 0;
  background: var(--ink-2);
  border-block: 1px solid var(--line-soft);
}
.index__head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: clamp(20px, 4vw, 60px);
  margin-bottom: clamp(36px, 5vw, 64px);
}
.index__head .section-label { grid-column: 1 / -1; margin-bottom: 0; }
.index__title { font-size: clamp(1.9rem, 4.2vw, 3.8rem); }
.index__note { margin: 0; color: var(--muted); font-size: 14px; max-width: 46ch; }

.index__scroll { overflow-x: auto; }

.index__table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.index__table th {
  padding: 0 14px 12px 0;
  text-align: left;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 1px solid var(--line);
}
.index__table td {
  padding: 15px 14px 15px 0;
  color: var(--silver);
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.35s var(--ease);
}
.index__table td:first-child { color: var(--muted-2); width: 1%; white-space: nowrap; }
.index__table td:nth-child(2) { color: var(--paper); }
.index__table .num { text-align: right; padding-right: 0; white-space: nowrap; }
.index__table tbody tr { transition: background 0.35s var(--ease); }
.index__table tbody tr:hover { background: rgba(69, 179, 174, 0.06); }
.index__table tbody tr:hover td { color: var(--paper); }

.mode {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 1px;
  background: var(--accent);
  vertical-align: middle;
}
.mode--sea { background: var(--accent-deep); }
.mode--air { background: var(--accent-pale); }
.mode--road { background: var(--accent); }
.mode--rail { background: var(--silver); }

/* ───────────────────────── road ───────────────────────── */

.road { position: relative; }
.road__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 5vh, 64px);
  overflow: hidden;
  padding-block: 90px 40px;
}
.road__title { font-size: clamp(2rem, 4.6vw, 4.2rem); }

.road__stage { position: relative; }

.road__truck {
  position: relative;
  z-index: 2;
  width: clamp(320px, 46vw, 620px);
  color: var(--accent);
  will-change: transform;
}
.road__truck svg { width: 100%; height: auto; overflow: visible; }

.truck__livery rect { fill: var(--accent); opacity: 0.75; }
.truck__word {
  fill: var(--paper);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.truck__sub {
  fill: var(--accent-pale);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
}

/* wheels are drawn from CSS so the markup stays legible */
.wheel {
  --r: 26;
}
.wheel::before { content: none; }

/* the lane is exactly as tall as the truck, so the road line can be
   pinned to the wheels rather than guessed against the section */
.road__lane { position: relative; }

.road__surface {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12.6%; /* wheel contact line of the 620x180 artwork */
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.road__dashes {
  position: absolute;
  inset: -1px 0 auto;
  height: 3px;
  background: repeating-linear-gradient(
    to right,
    var(--accent) 0 40px,
    transparent 40px 96px
  );
  opacity: 0.5;
  will-change: transform;
}

.road__notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 46px);
  width: 100%;
  max-width: var(--maxw);
  margin: clamp(30px, 6vh, 70px) auto 0;
  padding-inline: var(--pad);
  counter-reset: note;
}
.road__notes li {
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  opacity: 0.3;
  transition: opacity 0.5s var(--ease), border-color 0.5s var(--ease);
}
.road__notes li.is-live { opacity: 1; border-top-color: var(--accent); }
.road__notes b {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.road__notes span { color: var(--muted); font-size: 14px; }

/* ───────────────────────── journey ───────────────────────── */

.journey { position: relative; background: var(--ink-2); }
.journey__sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 100px;
  overflow: hidden;
}
.journey__wrap {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
}

.journey__steps { position: relative; }
.journey__steps::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line-soft);
}
.journey__steps li {
  position: relative;
  padding: clamp(14px, 1.6vw, 22px) 0 clamp(14px, 1.6vw, 22px) clamp(20px, 2.4vw, 36px);
  opacity: 0.28;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transform: translateX(-6px);
}
.journey__steps li::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s var(--ease);
}
.journey__steps li.is-active { opacity: 1; transform: none; }
.journey__steps li.is-active::before { transform: scaleY(1); }
.journey__steps h3 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}
.journey__steps i {
  font-family: var(--font-display);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.journey__steps p {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 15px;
}

/* stage ------------------------------------------------------ */
.journey__stage { display: grid; place-items: center; }
.stage {
  position: relative;
  /* explicit height rather than aspect-ratio so older Safari keeps the square */
  width: min(520px, 78vw, 52vh);
  height: min(520px, 78vw, 52vh);
  display: grid;
  place-items: center;
}
.stage__tick {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 0 solid var(--line);
}
.stage__tick--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.stage__tick--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.stage__tick--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.stage__tick--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

.stage__grid path { stroke: var(--line-soft); stroke-width: 1; fill: none; }
.stage__place {
  fill: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
}
.stage__trail {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.stage__map {
  position: absolute;
  inset: 6%;
  width: 88%;
  height: 88%;
  overflow: visible;
}
.stage__route {
  stroke: var(--line);
  stroke-width: 2;
  stroke-dasharray: 6 8;
}
.stage__pin { fill: var(--paper); opacity: 0.65; }
.stage__mover {
  fill: var(--accent);
  filter: drop-shadow(0 0 14px rgba(69, 179, 174, 0.8));
  transition: transform 0.9s var(--ease);
}

.stage__read {
  position: absolute;
  left: 0;
  bottom: 3%;
  display: flex;
  gap: clamp(12px, 1.8vw, 26px);
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--line-soft);
  background: rgba(7, 11, 24, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.stage__read > div { display: flex; flex-direction: column; gap: 5px; }
.stage__read dt {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.stage__read dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  white-space: nowrap;
}

.stage__meter {
  position: absolute;
  right: 0;
  bottom: 4%;
  width: 40%;
  height: 1px;
  background: var(--line-soft);
}
.stage__meter i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.5s linear;
}

/* ───────────────────────── sectors / accordion ───────────────────────── */

.sectors { padding: clamp(90px, 13vw, 190px) 0; }
.acc { margin-top: clamp(40px, 6vw, 84px); border-top: 1px solid var(--line-soft); }
.acc__item { border-bottom: 1px solid var(--line-soft); }

.acc__head {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 40px);
  width: 100%;
  padding: clamp(20px, 2.6vw, 34px) 0;
  text-align: left;
  transition: color 0.4s var(--ease);
}
.acc__head:hover { color: var(--accent); }
.acc__no {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted-2);
}
.acc__title {
  flex: 1;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}
.acc__icon {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}
.acc__icon::before,
.acc__icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: currentColor;
  transition: transform 0.5s var(--ease);
}
.acc__icon::after { transform: rotate(90deg); }
.acc__head[aria-expanded="true"] .acc__icon::after { transform: rotate(0deg); }

.acc__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.65s var(--ease);
}
.acc__body > div { overflow: hidden; }
.acc__item.is-open .acc__body { grid-template-rows: 1fr; }
.acc__body p,
.acc__body ul {
  max-width: 68ch;
  margin: 0 0 20px clamp(0px, 6vw, 96px);
  color: var(--muted);
}
.acc__body li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  font-size: 14.5px;
}
.acc__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 1px;
  background: var(--accent);
}
.acc__body ul { padding-bottom: 14px; }

/* ───────────────────────── band ───────────────────────── */

.band {
  padding: clamp(60px, 9vw, 120px) 0 clamp(90px, 13vw, 170px);
  background: var(--ink-2);
  border-block: 1px solid var(--line-soft);
}
.band__marquee { overflow: hidden; margin-bottom: clamp(50px, 8vw, 100px); }
.band__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.band__set {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
  width: max-content;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  white-space: nowrap;
  will-change: transform;
}
.band__set i { color: var(--accent); font-style: normal; }

.band__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 60px);
}
.band__label { grid-column: 1 / -1; margin-bottom: 0; }
.band__k {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 22px;
  margin-right: 12px;
  padding-inline: 6px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  vertical-align: middle;
}
.band__item h3 {
  display: flex;
  align-items: center;
  margin: 0 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.band__item p { margin: 0; color: var(--muted); font-size: 15px; }

/* ───────────────────────── contact ───────────────────────── */

.contact { padding: clamp(90px, 13vw, 190px) 0; }
.contact__big { font-size: clamp(2.6rem, 8vw, 8rem); font-weight: 700; }
.contact__lede {
  max-width: 46ch;
  margin: clamp(24px, 3vw, 40px) 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 18px);
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(44px, 6vw, 80px);
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.field { position: relative; background: var(--ink); }
.field--wide { grid-column: 1 / -1; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 30px clamp(16px, 2vw, 26px) 14px;
  background: transparent;
  border: 0;
  color: var(--paper);
  font: inherit;
  resize: vertical;
  outline: none;
}
.field select { appearance: none; padding-top: 32px; cursor: pointer; }
.field select option { background: var(--ink-2); }

.field label {
  position: absolute;
  left: clamp(16px, 2vw, 26px);
  top: 24px;
  font-size: 15px;
  color: var(--muted-2);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.35s var(--ease), color 0.35s var(--ease);
}
.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label,
.field label.label--static {
  transform: translateY(-12px) scale(0.72);
  color: var(--muted);
}
.field:focus-within { background: var(--ink-3); }
.field::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.field:focus-within::after { transform: scaleX(1); }
.field.is-error::after { background: #ff3b3b; transform: scaleX(1); }

.form__foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: clamp(18px, 2vw, 26px) clamp(16px, 2vw, 26px);
  background: var(--ink);
}
.form__note { margin: 0; font-size: 14px; color: var(--muted); min-height: 1.2em; }
.form__note.is-ok { color: var(--accent); }

.contact__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  margin-top: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-top: 0;
}
.ccard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 2.6vw, 34px) clamp(16px, 2vw, 26px);
  background: var(--ink);
  transition: background 0.45s var(--ease);
}
a.ccard:hover { background: var(--ink-3); }
.ccard__k {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.ccard__v {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.ccard__arrow {
  display: inline-block;
  color: var(--accent);
  transition: transform 0.45s var(--ease);
}
a.ccard:hover .ccard__arrow { transform: translate(3px, -3px); }


/* ───────────────────────── facility ───────────────────────── */

.site { padding: clamp(90px, 13vw, 180px) 0; }
.site__title { font-size: clamp(2.2rem, 5.6vw, 5.2rem); }
.site__lede {
  max-width: 60ch;
  margin: clamp(20px, 3vw, 32px) 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 18px);
}

.site__hero {
  margin: clamp(40px, 6vw, 80px) 0 0;
  position: relative;
}
.site__hero img {
  width: 100%;
  height: clamp(260px, 52vh, 560px);
  object-fit: cover;
  filter: saturate(0.88) contrast(1.04) brightness(0.86);
}
.site__hero figcaption,
.site__shot figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.site__hero figcaption { padding: 12px var(--pad) 0; }

.site__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
  margin-top: clamp(30px, 4vw, 56px);
}
.site__shot { margin: 0; }
.site__shot img {
  width: 100%;
  height: clamp(180px, 22vh, 260px);
  object-fit: cover;
  border: 1px solid var(--line-soft);
  filter: saturate(0.86) contrast(1.05) brightness(0.84);
  transition: filter 0.6s var(--ease), border-color 0.6s var(--ease);
}
.site__shot:hover img { filter: none; border-color: var(--line); }
.site__shot figcaption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
}
.site__shot figcaption b {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--paper);
}


/* facility specification ---------------------------------------- */
.spec {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(30px, 4vw, 52px) 0 0;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.spec > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(18px, 2.2vw, 28px) clamp(14px, 1.8vw, 24px);
  background: var(--ink);
}
.spec dt {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.spec dd {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.9vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.spec dd span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}
.site__lede a { color: var(--accent); border-bottom: 1px solid rgba(69,179,174,.4); }
.site__lede a:hover { border-bottom-color: var(--accent); }

/* floor plan ---------------------------------------------------- */
.plan {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  margin: clamp(40px, 6vw, 76px) 0 0;
  padding-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line-soft);
}
.plan__svg { width: 100%; height: auto; }
.plan__walls path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: miter;
}
.plan__walls path:first-child { fill: rgba(69, 179, 174, 0.06); }
.plan__yard path {
  fill: rgba(159, 176, 181, 0.05);
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 5 5;
}
.plan__doors path {
  stroke: var(--accent-pale);
  stroke-width: 5;
  stroke-linecap: round;
}
.plan__compass path { stroke: var(--muted-2); stroke-width: 1.5; fill: none; }
.plan text {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.plan .plan__dim { fill: var(--muted-2); font-size: 10px; letter-spacing: 0.1em; }
.plan .plan__room { font-size: 10px; letter-spacing: 0.08em; }
.plan__yard text, .plan__compass text { fill: var(--muted-2); font-size: 10px; letter-spacing: 0.2em; }
.plan figcaption {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  max-width: 44ch;
}
.plan figcaption b {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ───────────────────────── team ───────────────────────── */

.team { padding: clamp(90px, 13vw, 180px) 0; background: var(--ink-2); border-block: 1px solid var(--line-soft); }
.team__lede { max-width: 56ch; margin: clamp(20px, 3vw, 32px) 0 0; color: var(--muted); }

.team__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(40px, 6vw, 76px);
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.person {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(24px, 3vw, 38px) clamp(18px, 2vw, 28px);
  background: var(--ink-2);
  transition: background 0.5s var(--ease);
}
.person:hover { background: var(--ink-3); }
.person__initials {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.person h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.person__role {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-pale);
}
.person__contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  word-break: break-word;
}
.person__contact a:hover { color: var(--accent); }

/* ───────────────────────── footer brand ───────────────────────── */

.foot__lockup {
  width: min(560px, 76%);
  height: auto;
  margin: clamp(50px, 8vw, 96px) 0 clamp(24px, 3vw, 40px);
  opacity: 0.9;
}
.foot__badges { display: flex; flex-direction: column; gap: 12px; }
.foot__bifa {
  width: 78px;
  height: auto;
  padding: 8px 10px;
  background: var(--paper);
  border-radius: 4px;
}
.foot__badges span { font-size: 12.5px; color: var(--muted-2); max-width: 28ch; }

/* ───────────────────────── footer ───────────────────────── */

.foot { padding: clamp(60px, 8vw, 100px) 0 30px; border-top: 1px solid var(--line-soft); }
.foot__top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 60px);
  color: var(--muted);
  font-size: 14px;
}
.foot__label {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.foot__addr { margin: 0; }
.foot__nav { display: flex; flex-direction: column; }
.foot__nav a { padding: 10px 0; }
.foot__nav a:hover,
.foot__link:hover { color: var(--accent); }
.foot__link { display: block; padding: 10px 0; }
.menu__aside a { display: inline-block; padding: 6px 0; }

.foot__word {
  margin: clamp(50px, 8vw, 100px) 0 clamp(24px, 3vw, 40px);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 13.6vw, 15rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  white-space: nowrap;
  transition: color 0.6s var(--ease);
  cursor: default;
}
.foot__word:hover { color: rgba(244, 242, 237, 0.06); }

.foot__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted-2);
}
.totop {
  padding: 12px 0;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.35s var(--ease);
}
.totop:hover { color: var(--accent); }

/* ───────────────────────── responsive ───────────────────────── */

@media (min-width: 1101px) {
  /* headline left, globe held to the right — the copy never crosses the sphere */
  .hero__globe { place-items: center end; padding-right: clamp(20px, 3vw, 64px); }
  .hero__globe canvas { width: min(66vh, 44vw, 700px); height: min(66vh, 44vw, 700px); }
  .hero__title { max-width: 10ch; font-size: clamp(3rem, 6.4vw, 7.4rem); }
  .hero__lede { max-width: 44ch; }
  .hero__scroll { display: none; } /* the globe hint carries the affordance here */
}

@media (max-width: 1100px) {
  .nav__links { display: none; }
  .hero__globe { align-items: start; padding-top: 8vh; }
  .hero__globe canvas { width: min(58vh, 88vw); height: min(58vh, 88vw); }
  .menu-btn { display: flex; }
  .journey__wrap { grid-template-columns: 1fr; }
  .journey__stage { order: -1; }
  .stage { width: min(340px, 62vw); }
  .band__grid { grid-template-columns: 1fr; }
  .menu__grid { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .hero__foot { grid-template-columns: 1fr; align-items: start; }
  .hud { display: none; } /* the instrument frame needs room it doesn't have here */
  .index__head { grid-template-columns: 1fr; }
  .next { grid-template-columns: 1fr; }
  .site__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .road__notes { grid-template-columns: 1fr; gap: 14px; }
  .road__notes li { padding-top: 12px; }
  .road__truck { width: min(88vw, 460px); }
  .hero__scroll { display: none; }
  .statement__cols { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .form { grid-template-columns: 1fr; }
  .contact__cards { grid-template-columns: 1fr; }
  .rail__progress { display: none; }
  .journey__steps li { opacity: 1; transform: none; }

  /* the pinned rail degrades to a swipeable strip */
  .rail__sticky {
    position: static;
    height: auto;
    padding-block: 60px;
    gap: 28px;
  }
  .rail__track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .card,
  .rail__end { scroll-snap-align: start; }
  .card { flex-basis: min(78vw, 340px); }
  .card:hover { transform: none; }
}

@media (max-width: 900px) {
  .nav__tel { display: none; } /* the number is in the menu at this width */
}

@media (max-width: 620px) {
  .foot__top { grid-template-columns: 1fr; }
  .btn { height: 48px; padding: 0 22px; }
  .nav__brandtext { display: none; }
  /* the quote CTA lives in the menu at this size — keep the bar uncluttered */
  .nav__right > .btn { display: none; }
  .menu-btn { min-height: 44px; }
  .stats { grid-template-columns: 1fr; }
  .stat { display: flex; align-items: baseline; gap: 16px; }
  .stat__label { margin-top: 0; }
  .foot__lockup { width: 86%; }
  .site__grid, .team__grid { grid-template-columns: 1fr; }
}

/* Short viewports — landscape phones, small laptops, split-screen tablets.
   Pinned sections would clip their own content, so they unpin. */
@media (max-height: 620px) {
  .rail__sticky {
    position: static;
    height: auto;
    padding-block: 60px;
  }
  .rail__track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .card, .rail__end { scroll-snap-align: start; }

  .journey__sticky {
    position: static;
    min-height: 0;
    overflow: visible;
    padding-block: 70px;
  }
  .journey__steps li { opacity: 1; transform: none; }
  .journey__stage { display: none; }
  .hero { padding-top: 110px; }
  .road__sticky { position: static; height: auto; padding-block: 60px; }
}

/* Touch / no-hover devices: nothing should depend on a hover state,
   and nothing should get stuck in one after a tap. */
@media (hover: none) {
  .card:hover { transform: none; }
  .card:hover .card__art { opacity: 0.14; transform: none; }
  .btn:hover::before { transform: translateY(101%); }
  .btn:hover { color: var(--fg); border-color: var(--line); }
  .btn--solid:hover { border-color: var(--paper); }
  .foot__word:hover { color: transparent; }
  .acc__head { -webkit-tap-highlight-color: transparent; }
}

/* ───────────────────────── reduced motion ───────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal],
  [data-split] .w-i { opacity: 1 !important; transform: none !important; }
  .journey__steps li { opacity: 1; transform: none; }
  .cursor { display: none; }
}
