:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --bg: #fbfbfd;
  --bg-2: #f2f3f6;
  --night: #060c18;
  --night-2: #0d1830;
  --navy: #10203a;
  --silver: #c6ccd6;
  --accent: #3d6fd8;
  --accent-night: #8fb2ff;
  --line: #d9dce3;
  --radius-l: 28px;
  --radius-m: 20px;
  --spring: cubic-bezier(.22, 1, .36, 1);      /* settles like a critically damped spring */
  --ease-press: cubic-bezier(.3, 0, .2, 1);
  --page: min(1080px, calc(100% - 44px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 52px; }

.eyebrow {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
h2 {
  font-size: clamp(2rem, 5.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 700;
  margin-top: .4rem;
}
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -.01em; }

/* ───── Translucent nav ───── */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(6, 12, 24, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  color: #f5f5f7;
  transition: background-color .4s ease;
}
.nav.is-light { background: rgba(251, 251, 253, .76); color: var(--ink); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.nav-inner { width: var(--page); margin: auto; height: 52px; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; letter-spacing: .02em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; font-size: .85rem; }
.nav-links a { opacity: .78; transition: opacity .2s ease; }
.nav-links a:hover { opacity: 1; }
.nav-end { display: flex; align-items: center; gap: .6rem; }
#language {
  background: none; border: 0; cursor: pointer; font-size: .82rem; opacity: .78;
  min-width: 40px; min-height: 40px;
}
#language:hover { opacity: 1; }
#language[hidden] { display: none; }

/* ───── Buttons ───── */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.4rem;
  border-radius: 999px;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 1rem;
  transition: transform .18s var(--ease-press), background-color .2s ease, opacity .2s ease;
  will-change: transform;
}
.pill:hover { background: #3363c9; }
.pill:active { transform: scale(.96); transition-duration: .08s; }
.pill-sm { min-height: 32px; padding: 0 .9rem; font-size: .8rem; }
.pill-ghost { background: transparent; color: var(--accent-night); box-shadow: inset 0 0 0 1.5px currentColor; }
.pill-ghost:hover { background: rgba(143, 178, 255, .1); }
.link-arrow { color: var(--accent); font-weight: 500; display: inline-flex; align-items: center; gap: .2rem; }
.link-arrow::after { content: "›"; font-size: 1.3em; line-height: 1; transition: transform .25s var(--spring); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ───── Hero ───── */
.hero { background: var(--night); color: #f5f5f7; text-align: center; padding-top: clamp(3.5rem, 9vw, 6.5rem); overflow: clip; }
.hero-copy { width: var(--page); margin: auto; }
.hero .eyebrow { color: #a1a1a6; }
.hero h1 {
  margin-top: .9rem;
  font-size: clamp(2rem, 8.4vw, 6rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 700;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 .line-2 > span {
  background: linear-gradient(100deg, #f5f5f7 10%, #c6ccd6 45%, #8fb2ff 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { max-width: 30ch; margin: 1.2rem auto 0; font-size: clamp(1.1rem, 2vw, 1.35rem); color: #a1a1a6; line-height: 1.45; }
.hero-cta { margin-top: 1.8rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .8rem 1.6rem; }
.hero .link-arrow { color: var(--accent-night); font-size: 1.05rem; }
.hero-stage { margin-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2rem, 6vw, 4rem); }
.hero-frame {
  width: min(1240px, 100%); margin: auto;
  border-radius: var(--radius-l);
  overflow: hidden;
  transform-origin: 50% 0;
  transform: scale(var(--hero-scale, .86));
  will-change: transform;
}
.hero-frame img { aspect-ratio: 16 / 8.2; object-fit: cover; object-position: 50% 60%; transform: scale(var(--hero-zoom, 1.12)); will-change: transform; }

/* ───── Scroll-lit statement ───── */
.statement { background: var(--night); color: #f5f5f7; padding: clamp(4rem, 12vw, 9rem) 0; }
.scrub {
  width: min(900px, calc(100% - 44px)); margin: auto;
  font-size: clamp(1.75rem, 4.6vw, 3.3rem);
  line-height: 1.22; letter-spacing: -.02em; font-weight: 700;
}
.scrub .w { opacity: .18; transition: opacity .35s ease; }
.scrub .w.on { opacity: 1; }

/* ───── Sections ───── */
.section { padding: clamp(4.5rem, 11vw, 8rem) 0; }
.section-head { width: var(--page); margin: 0 auto clamp(2rem, 5vw, 3.25rem); }
.section-dark { background: var(--night); color: #f5f5f7; }
.section-dark .eyebrow { color: #a1a1a6; }

/* Bento */
.bento {
  width: var(--page); margin: auto;
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(190px, auto);
}
.tile {
  position: relative;
  border-radius: var(--radius-m);
  background: var(--bg-2);
  padding: 1.5rem;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .3rem;
  overflow: hidden;
  transition: transform .5s var(--spring), box-shadow .5s var(--spring);
}
.tile p { color: var(--ink-2); }
.tile-no { position: absolute; top: 1.3rem; left: 1.5rem; font-size: .8rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (hover: hover) {
  .tile:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 18px 40px -18px rgba(16, 32, 58, .35); }
}
.tile-hero { grid-column: span 2; grid-row: span 2; color: #fff; padding: 0; justify-content: flex-end; }
.tile-photo img { position: absolute; inset: 0; height: 100%; object-fit: cover; transition: transform 1.2s var(--spring); }
.tile-photo:hover img { transform: scale(1.05); }
.tile-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,12,24,.82), rgba(6,12,24,0) 55%); }
.tile-text { position: relative; z-index: 1; padding: 1.7rem; }
.tile-hero h3 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -.025em; }
.tile-hero p { color: #d2d2d7; }
.tile-wide { grid-column: span 2; }
.tile-dark { background: var(--navy); color: #f5f5f7; }
.tile-dark p, .tile-dark .tile-no { color: #a9b4c7; }
.grille {
  position: absolute; inset: -20% -10% auto auto; width: 62%; aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 50%, transparent 31%, rgba(198,204,214,.25) 32%, rgba(198,204,214,.25) 34%, transparent 35%) 0 0 / 56px 56px,
    linear-gradient(rgba(198,204,214,.2) 2px, transparent 2px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(198,204,214,.2) 2px, transparent 2px) 0 0 / 56px 56px;
  -webkit-mask: radial-gradient(circle at 70% 30%, #000 20%, transparent 68%);
  mask: radial-gradient(circle at 70% 30%, #000 20%, transparent 68%);
  transform: rotate(var(--grille-rot, 0deg));
  transition: transform 1.4s var(--spring);
}
.tile-dark:hover .grille { --grille-rot: 8deg; }
.tile-ask { grid-column: span 2; background: linear-gradient(135deg, #e7eefc, #f2f3f6); }
.tile-ask h3 { color: var(--accent); }
.tile-go {
  position: absolute; top: 1.2rem; right: 1.2rem;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 1.1rem;
  transition: transform .45s var(--spring);
}
.tile-ask:hover .tile-go { transform: translateX(4px) rotate(-45deg); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.chips li {
  padding: .4rem .9rem; border-radius: 999px; font-size: .88rem;
  background: rgba(255,255,255,.08); color: #d2d2d7;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}

/* Horizontal rail */
.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: min(78vw, 720px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: calc((100% - min(1080px, 100% - 44px)) / 2);
  padding: 0 calc((100% - min(1080px, 100% - 44px)) / 2) 8px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.card {
  position: relative; scroll-snap-align: start;
  border-radius: var(--radius-m); overflow: hidden;
  cursor: zoom-in;
  transform: scale(var(--card-scale, 1));
  opacity: var(--card-fade, 1);
  transition: transform .5s var(--spring), opacity .5s ease;
}
.card img { aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1s var(--spring); }
.card:hover img { transform: scale(1.04); }
.card:active { --card-scale: .98; }
.card-cap {
  position: absolute; left: 14px; bottom: 14px;
  padding: .45rem .85rem; border-radius: 999px;
  font-size: .85rem; font-weight: 500; color: #f5f5f7;
  background: rgba(20, 24, 34, .5);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
}
.rail-ctrl { width: var(--page); margin: 1.4rem auto 0; display: flex; justify-content: flex-end; gap: .7rem; }
.round {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; font-size: 1.35rem; line-height: 1;
  background: rgba(255,255,255,.12); color: #f5f5f7;
  transition: transform .18s var(--ease-press), background-color .2s ease, opacity .3s ease;
}
.round:hover { background: rgba(255,255,255,.2); }
.round:active { transform: scale(.9); }
.round:disabled { opacity: .3; cursor: default; }

/* Sticky story */
.story {
  width: var(--page); margin: auto;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem 4rem;
}
.story-pin { position: sticky; top: 30vh; align-self: start; }
.story-num { font-size: clamp(5rem, 14vw, 10rem); font-weight: 700; letter-spacing: -.05em; line-height: .9; font-variant-numeric: tabular-nums; }
.story-num span { display: inline-block; background: linear-gradient(180deg, var(--navy), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.story-num span.flip { animation: flip .55s var(--spring); }
.story-num small { font-size: .22em; letter-spacing: 0; color: var(--ink-2); margin-left: .4rem; }
.story-bar { margin-top: 1.5rem; height: 3px; width: 160px; border-radius: 3px; background: var(--line); overflow: hidden; }
.story-bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, .33)); transition: transform .6s var(--spring); }
.story-steps { display: grid; gap: 0; }
.step { min-height: 46vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transform: translateY(10px); transition: opacity .6s ease, transform .7s var(--spring); }
.step.active { opacity: 1; transform: none; }
.step h3 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -.025em; }
.step p { margin-top: .6rem; font-size: 1.15rem; color: var(--ink-2); max-width: 32ch; }
@keyframes flip { from { opacity: 0; transform: translateY(40%); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* Contact */
.contact {
  background: radial-gradient(120% 90% at 50% 0%, var(--night-2), var(--night) 70%);
  color: #f5f5f7; text-align: center;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 9vw, 6rem);
}
.contact .eyebrow { color: #a1a1a6; }
.phone {
  display: inline-block; margin-top: .6rem;
  font-size: clamp(3rem, 11vw, 7.5rem); font-weight: 700; letter-spacing: -.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, #f5f5f7 20%, #8fb2ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact-cta { margin-top: 2rem; display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; }
.address-card {
  width: min(760px, calc(100% - 44px)); margin: clamp(3rem, 7vw, 4.5rem) auto 0;
  padding: 1.6rem 1.8rem; border-radius: var(--radius-m);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.2rem 2rem;
  text-align: left;
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.address-card address { margin-top: .5rem; font-style: normal; color: #d2d2d7; line-height: 1.6; }
.address-links { display: flex; gap: 1.4rem; }
.contact .link-arrow { color: var(--accent-night); }

footer { background: var(--night); color: #86868b; font-size: .8rem; border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { width: var(--page); margin: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem; padding: 1.3rem 0; }

/* Floating WhatsApp (phones) */
.floating {
  position: fixed; z-index: 9;
  right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom));
  box-shadow: 0 10px 30px -8px rgba(6,12,24,.55);
  transition: transform .5s var(--spring), opacity .3s ease;
}
.floating.is-away { opacity: 0; transform: translateY(24px) scale(.9); pointer-events: none; }
@media (min-width: 821px) { .floating { display: none; } }

/* Lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; overflow: hidden; }
.lightbox::backdrop { background: rgba(6, 12, 24, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background-color .4s ease, backdrop-filter .4s ease, -webkit-backdrop-filter .4s ease, display .4s allow-discrete, overlay .4s allow-discrete; }
.lightbox.show::backdrop { background: rgba(6, 12, 24, .82); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.lightbox img {
  position: absolute; inset: 0; margin: auto;
  width: auto; height: auto; max-width: min(92vw, 1200px); max-height: 84dvh;
  border-radius: 18px; transform-origin: 0 0;
}
.lightbox-close { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; opacity: 0; transition: opacity .3s ease, transform .18s var(--ease-press); }
.lightbox.show .lightbox-close { opacity: 1; }

/* ───── Entrance reveals ───── */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1.1s var(--spring); }
.js .reveal.in { opacity: 1; transform: none; }
.js .bento .reveal:nth-child(2) { transition-delay: .06s; }
.js .bento .reveal:nth-child(3) { transition-delay: .12s; }
.js .bento .reveal:nth-child(4) { transition-delay: .08s; }
.js .bento .reveal:nth-child(5) { transition-delay: .14s; }
.js .bento .reveal:nth-child(6) { transition-delay: .2s; }
.js .bento .reveal:nth-child(7) { transition-delay: .1s; }
.js .reveal.in:hover { transition-delay: 0s; }

.js .hero h1 .line > span { transform: translateY(105%); animation: rise 1.1s var(--spring) .1s forwards; }
.js .hero h1 .line-2 > span { animation-delay: .22s; }
.js .hero .reveal { transition-delay: .45s; }
.js .hero .hero-cta { transition-delay: .55s; }
.js .hero-frame { opacity: 0; animation: fade 1.2s ease .5s forwards; }
@keyframes rise { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* ───── Responsive ───── */
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(160px, auto); }
  .tile-hero { grid-row: span 2; min-height: 340px; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-end { margin-left: auto; }
  .story { grid-template-columns: 1fr; }
  .story-pin { top: 52px; z-index: 2; padding: .8rem 0; background: linear-gradient(var(--bg) 75%, transparent); display: flex; align-items: center; gap: 1.2rem; }
  .story-num { font-size: 3.4rem; }
  .story-bar { margin: 0; flex: 1; max-width: 160px; }
  .step { min-height: 38vh; }
  .footer-inner { padding-bottom: 5rem; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile-hero, .tile-wide, .tile-ask { grid-column: auto; }
  .tile { min-height: 150px; }
  .hero-frame { border-radius: 20px; }
  .hero-frame img { aspect-ratio: 4 / 3.4; }
  .rail { grid-auto-columns: 84vw; }
  .rail-ctrl { display: none; }
}

/* ───── Accessibility preferences ───── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity .4s ease; }
  .js .hero h1 .line > span { transform: none; animation: fade .5s ease both; opacity: 0; }
  .hero-frame { transform: none !important; }
  .hero-frame img { transform: none !important; }
  .scrub .w { opacity: 1 !important; }
  .step { opacity: 1; transform: none; min-height: 0; padding: 1.2rem 0; }
  .story-num span.flip { animation: none; }
  .tile, .tile:hover, .card, .tile-photo img, .card img, .grille, .tile-go { transform: none !important; transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--night); }
  .nav.is-light { background: var(--bg); }
  .card-cap { background: rgba(20,24,34,.9); }
  .address-card { background: var(--night-2); }
}

/* ───── Journey stage: workshop → lorry → gate ───── */
.journey { background: var(--night); color: #f5f5f7; height: 280vh; position: relative; }
.journey-sticky {
  position: sticky; top: 52px; height: calc(100vh - 52px); min-height: 520px;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(1rem, 3vh, 1.8rem);
  width: min(1080px, calc(100% - 44px)); margin: auto;
}
.journey-head { text-align: center; }
.journey .eyebrow { color: #a1a1a6; }
.journey h2 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); }
.stage {
  border-radius: var(--radius-l); overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.06);
  max-height: 62vh; aspect-ratio: 2 / 1; margin-inline: auto; width: 100%;
}
.stage svg { display: block; width: 100%; height: 100%; }
.stage .label { font: 700 13px/1 -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; letter-spacing: .12em; fill: #c6ccd6; }
.stage .cab-text { font: 700 9px/1 "PingFang TC", sans-serif; fill: #10203a; }

/* ambient loops (like the shipping scene: route flows, pins pulse) */
.stage .route { animation: routemove 1.6s linear infinite; }
.stage .route-dot { offset-path: path("M140 100 Q 415 -10 690 100"); offset-rotate: 0deg; offset-distance: var(--route, 0%); filter: drop-shadow(0 0 6px #8fb2ff); }
.stage .pin circle, .stage .halo { transform-box: fill-box; transform-origin: center; }
.stage .pin circle:not(.halo) { animation: pulse 2.4s ease-in-out infinite; }
.stage .halo { animation: halo 2.4s ease-out infinite; }
.stage .p2 circle { animation-delay: 1.2s; }
.stage .stars circle { animation: twinkle 3s ease-in-out infinite; }
.stage .stars circle:nth-child(2n) { animation-delay: 1.3s; }
.stage .stars circle:nth-child(3n) { animation-delay: .6s; }

/* welding: glow flickers, sparks spray and fall */
.stage .weld-glow { transform-box: fill-box; transform-origin: center; animation: flicker .18s steps(2) infinite alternate; }
.stage .sparks circle { animation: spark 1.2s cubic-bezier(.2,.6,.4,1) var(--d) infinite; opacity: 0; }
.stage .arm { animation: torch 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 100% 0; }

/* lorry: driven by scroll (--x, --spin set from JS), bobbing on the road */
.stage .lorry { transform: translateX(var(--x, 250px)); }
.stage .lorry-bob { animation: bob .5s ease-in-out infinite alternate; animation-play-state: var(--driving, paused); }
.stage .spokes { transform-box: fill-box; transform-origin: center; transform: rotate(var(--spin, 0deg)); }
.stage .cargo, .stage .strap { transition: opacity .5s ease, transform .9s var(--spring); }

/* installed state */
.stage .new-gate { opacity: 0; transform: translateY(-26px); transition: opacity .5s ease, transform .9s var(--spring); }
.stage .done { opacity: 0; transform: scale(.3); transform-box: fill-box; transform-origin: center; transition: opacity .3s ease .35s, transform .7s cubic-bezier(.34,1.56,.64,1) .35s; }
.stage .house-light { opacity: .35; transition: opacity 1s ease; }
.stage.installed .new-gate { opacity: 1; transform: none; }
.stage.installed .done { opacity: 1; transform: none; }
.stage.installed .house-light { opacity: 1; }
.stage.installed .cargo, .stage.installed .strap { opacity: 0; transform: translateY(-20px); }
.stage.away .weld-glow, .stage.away .sparks { visibility: hidden; }

.stage-steps { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; counter-reset: s; }
.stage-steps li {
  counter-increment: s;
  padding: .5rem 1rem; border-radius: 999px; font-size: .9rem; font-weight: 600;
  color: #86868b; background: rgba(255,255,255,.05);
  transition: color .4s ease, background-color .4s ease, transform .5s var(--spring);
}
.stage-steps li::before { content: counter(s) "  "; opacity: .6; }
.stage-steps li.on { color: #fff; background: var(--accent); transform: scale(1.04); }

@keyframes routemove { to { stroke-dashoffset: -24; } }
@keyframes pulse { 50% { transform: scale(1.2); } }
@keyframes halo { from { transform: scale(1); opacity: .55; } to { transform: scale(3); opacity: 0; } }
@keyframes twinkle { 50% { opacity: .25; } }
@keyframes flicker { from { opacity: .75; transform: scale(.9); } to { opacity: 1; transform: scale(1.08); } }
@keyframes spark {
  0% { opacity: 1; transform: translate(0, 0); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 26px)); }
}
@keyframes torch { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-6deg); } }
@keyframes bob { to { transform: translateY(-1.5px); } }

@media (max-width: 700px) {
  .journey { height: 240vh; }
  .stage { border-radius: 18px; }
  .stage-steps li { font-size: .8rem; padding: .4rem .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .journey { height: auto; }
  .journey-sticky { position: static; height: auto; min-height: 0; padding: 4rem 0; }
  .stage *, .stage { animation: none !important; transition: none !important; }
  .stage .sparks { display: none; }
}

/* Phones: taller frame, camera pans with the lorry */
@media (max-width: 700px) {
  .stage { aspect-ratio: 1 / 1; max-height: 56vh; position: relative; }
  .stage svg { width: auto; height: 100%; max-width: none; transform: translateX(var(--pan, 0px)); will-change: transform; }
}

/* ───── Footer links ───── */
.footer-inner a { color: #c6ccd6; text-underline-offset: 3px; }
.footer-inner a:hover { color: #fff; text-decoration: underline; }
.footer-inner [lang="ms"] { flex-basis: 100%; order: 3; color: #6e6e73; }
.footer-inner a { order: 2; }

/* ───── Privacy page ───── */
.legal { width: min(720px, calc(100% - 44px)); margin: auto; padding: clamp(3rem, 8vw, 5rem) 0; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.03em; line-height: 1.1; margin: .4rem 0 1rem; }
.legal-lead { font-size: 1.2rem; line-height: 1.5; color: var(--ink); margin-bottom: 2rem; }
.legal section { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.legal h2 { font-size: 1.15rem; letter-spacing: 0; margin: 0 0 .5rem; }
.legal p, .legal li { color: #3a3a3f; }
.legal ul { list-style: disc; padding-left: 1.2rem; display: grid; gap: .4rem; }
.legal a:not(.link-arrow) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal code { font-size: .9em; background: var(--bg-2); padding: .1em .35em; border-radius: 5px; }
.legal hr { border: 0; border-top: 6px solid var(--bg-2); margin: 3rem 0; }
.legal-back { margin-top: 2.5rem; }

/* ───── 404 ───── */
.notfound { min-height: 100dvh; display: grid; place-items: center; background: var(--night); color: #f5f5f7; text-align: center; }
.notfound h1 { font-size: clamp(2.2rem, 7vw, 4rem); letter-spacing: -.03em; margin: .4rem 0 .6rem; }
.notfound p[lang="en"] { color: #a1a1a6; }
.notfound .eyebrow { color: #8fb2ff; font-size: 1rem; }
