/* ============================================================
   ONETRANSPORT (1TPT) — Cinematic Redesign Concept
   Palette: ink #0E0F12 · charcoal #15171C · orange #FF6F1E
   ============================================================ */

:root {
  --orange: #ff6f1e;
  --orange-deep: #e95909;
  --amber: #ff9500;   /* logo step 2 */
  --gold: #ffbf00;    /* logo step 3 */
  --yellow: #ffd21f;  /* logo step 4 */
  --grad: linear-gradient(95deg, #ff6f1e, #ff9500 38%, #ffbf00 72%, #ffd21f);
  --grad-steps: linear-gradient(90deg, #ff6f1e 0 25%, #ff9500 25% 50%, #ffbf00 50% 75%, #ffd21f 75% 100%);
  --ink: #0e0f12;
  --charcoal: #15171c;
  --panel: rgba(21, 23, 28, 0.55);
  --line: rgba(255, 255, 255, 0.08);
  --white: #f4f5f7;
  --grey: #9aa0ab;
  --grey-dim: #5c626e;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  background: var(--ink);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--orange); color: #fff; }

/* ---------- WebGL canvas + atmosphere ---------- */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(5, 6, 8, 0.55) 100%),
    linear-gradient(180deg, rgba(5, 6, 8, 0.35) 0%, transparent 12%, transparent 88%, rgba(5, 6, 8, 0.5) 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

main { position: relative; z-index: 2; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before {
  content: "";
  width: 2.8rem;
  height: 3px;
  background: var(--grad-steps);
  transform: skewX(-30deg);
}

.h-xl {
  font-size: clamp(3rem, 9vw, 8.2rem);
  line-height: 0.96;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}
@media (max-width: 560px) {
  .h-xl { font-size: clamp(1.8rem, 8.4vw, 3rem); letter-spacing: -0.02em; }
  .outline-text { -webkit-text-stroke-width: 1.4px; }
}

.h-lg {
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.lede {
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.65;
  color: var(--grey);
  font-weight: 400;
  max-width: 38rem;
}

.outline-text {
  color: transparent;
  -webkit-text-stroke: 2px rgba(244, 245, 247, 0.85);
}

.accent { color: var(--orange); }

.accent-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}
.btn .arr { transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }

.btn-primary { background: linear-gradient(100deg, var(--orange), var(--amber) 70%, var(--gold)); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(244, 245, 247, 0.35);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--orange); color: var(--orange); transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3.5rem);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(14, 15, 18, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo img { height: 42px; width: auto; display: block; }
.foot-logo img { height: 52px; }

.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta { padding: 0.65rem 1.3rem; font-size: 0.72rem; }
.nav-links a.nav-cta { color: #fff; }
.nav-links a.nav-cta:hover { color: #fff; }

@media (max-width: 920px) { .nav-links li:not(.nav-cta-li) { display: none; } }

/* ---------- Sections shared ---------- */
.section {
  position: relative;
  padding: clamp(5rem, 12vh, 9rem) clamp(1.25rem, 6vw, 5.5rem);
  max-width: 1480px;
  margin: 0 auto;
}

.section-head { margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.section-head .h-lg { margin-top: 1.1rem; }
.section-head .lede { margin-top: 1.2rem; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem clamp(1.25rem, 6vw, 5.5rem) 4rem;
  max-width: 1480px;
  margin: 0 auto;
  position: relative;
}

.hero h1 { margin: 1.4rem 0 1.8rem; }
.hero h1 .line { display: block; }
.hero .lede { max-width: 34rem; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }

.hero-meta {
  position: absolute;
  right: clamp(1.25rem, 6vw, 5.5rem);
  bottom: 9rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: right;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--grey-dim);
}
.hero-meta b { color: var(--grey); font-weight: 600; }
@media (max-width: 920px) { .hero-meta { display: none; } }

/* Floating live-status chips */
.hero-live {
  position: absolute;
  right: clamp(2rem, 7vw, 7rem);
  top: 22%;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  z-index: 3;
}
@media (max-width: 1280px) { .hero-live { display: none; } }

.live-chip {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.15rem;
  background: var(--panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  animation: chip-float 6s ease-in-out infinite;
}
.live-chip.c2 { margin-left: 2.6rem; animation-delay: -3s; }
.live-chip b { display: block; font-size: 0.78rem; font-weight: 600; }
.live-chip div span { font-size: 0.68rem; color: var(--grey); }
.live-chip .pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
  animation: pulse-dot 2s ease-out infinite;
}
.live-chip .pulse.gold { background: var(--gold); animation-delay: -1s; }
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(255, 111, 30, 0.45); }
  100% { box-shadow: 0 0 0 12px rgba(255, 111, 30, 0); }
}
html.reduced-motion .live-chip, html.reduced-motion .live-chip .pulse { animation: none; }

.scroll-cue {
  position: absolute;
  left: clamp(1.25rem, 6vw, 5.5rem);
  bottom: 2.4rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey-dim);
}
.scroll-cue .track {
  width: 1.5px;
  height: 52px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.scroll-cue .dot {
  display: block;
  width: 100%;
  height: 14px;
  background: var(--orange);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: translateY(-16px); }
  70%, 100% { transform: translateY(56px); }
}

/* ---------- Stats strip ---------- */
.stats { padding-top: 2rem; padding-bottom: 4rem; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
@media (max-width: 980px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.stat {
  position: relative;
  padding: 1.8rem 1.6rem 1.6rem;
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--orange);
  transform: skewY(-12deg) scaleY(1.4);
  transform-origin: top;
}
/* logo gradient ramp across the four stats */
.stat:nth-child(2)::before { background: var(--amber); }
.stat:nth-child(3)::before { background: var(--gold); }
.stat:nth-child(4)::before { background: var(--yellow); }
.stat:nth-child(2) .num small { color: var(--amber); }
.stat:nth-child(4) .num small { color: var(--yellow); }
.stat .num {
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
}
.stat .num small { font-size: 0.55em; color: var(--orange); font-weight: 700; }
.stat .label {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ---------- Partners marquee ---------- */
.partners { padding-top: 0; padding-bottom: 3rem; }
.partners .eyebrow { margin-bottom: 1.8rem; }

.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.logo-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  padding-right: clamp(2.5rem, 5vw, 4.5rem);
}
.marquee-group img {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity 0.3s, filter 0.3s;
}
.marquee-group img:hover { opacity: 1; filter: none; }
/* raster logos with baked-in white backgrounds: invert + screen-blend the box away */
.marquee-group img.logo-blend { filter: invert(1) grayscale(1) brightness(1.5); mix-blend-mode: screen; }
.marquee-group img.logo-blend:hover { filter: invert(1) grayscale(1) brightness(1.8); opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }
html.reduced-motion .marquee-track { animation: none; width: auto; flex-wrap: wrap; }
html.reduced-motion .logo-marquee { -webkit-mask-image: none; mask-image: none; }
html.reduced-motion .marquee-group[aria-hidden="true"] { display: none; }

/* ---------- Pinned journey (What we do) ---------- */
.pin-wrap { position: relative; height: 420vh; height: 420svh; }
.pin-stage-progress {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pin-content {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 6rem clamp(1.25rem, 6vw, 5.5rem) 3rem;
  max-width: 1480px;
  margin: 0 auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.stage.active { pointer-events: auto; }
.stage-inner { width: 100%; }

.stage .h-lg { margin: 1.1rem 0 1.2rem; max-width: 16em; }
.stage .lede { max-width: 33rem; }

.stage-index {
  position: absolute;
  right: clamp(1.25rem, 6vw, 5.5rem);
  top: 7rem;
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.10);
  user-select: none;
}

.card-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.4rem;
}
@media (max-width: 1080px) { .card-row { grid-template-columns: repeat(2, 1fr); } }

.f-card {
  padding: 1.4rem 1.3rem;
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.35s, transform 0.35s var(--ease);
}
.f-card:hover { border-color: rgba(255, 111, 30, 0.55); transform: translateY(-4px); }
.f-card .ico {
  width: 34px;
  height: 34px;
  margin-bottom: 0.9rem;
  display: grid;
  place-items: center;
  background: rgba(255, 111, 30, 0.12);
  border-radius: 9px;
  color: var(--orange);
}
.f-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.45rem; }
.f-card p { font-size: 0.8rem; line-height: 1.55; color: var(--grey); }

/* Stage 02 — copy + product visual columns */
.stage-cols {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.os-visual svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 32px 60px rgba(0, 0, 0, 0.55));
  animation: chip-float 8s ease-in-out infinite;
}
@media (max-width: 1080px) {
  .stage-cols { grid-template-columns: 1fr; }
  .os-visual { display: none; }
}
html.reduced-motion .os-visual svg { animation: none; }
html.reduced-motion .stage-cols .os-visual { display: block; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2.2rem; }
.chip {
  padding: 0.6rem 1.1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255, 111, 30, 0.10);
  border: 1px solid rgba(255, 111, 30, 0.35);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
/* chips step through the logo ramp */
.chip:nth-child(4n + 2) { border-color: rgba(255, 149, 0, 0.4); background: rgba(255, 149, 0, 0.09); }
.chip:nth-child(4n + 3) { border-color: rgba(255, 191, 0, 0.4); background: rgba(255, 191, 0, 0.08); }
.chip:nth-child(4n + 4) { border-color: rgba(255, 210, 31, 0.4); background: rgba(255, 210, 31, 0.07); }

/* Stage 3 — editions */
.editions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 2.4rem;
}
@media (max-width: 980px) { .editions { grid-template-columns: 1fr; } }

.edition {
  position: relative;
  padding: 2rem 1.8rem 1.8rem;
  background: var(--panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.edition::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -25%;
  width: 60%;
  height: 180%;
  background: linear-gradient(115deg, transparent 45%, rgba(255, 111, 30, 0.07) 45%, rgba(255, 111, 30, 0.07) 55%, transparent 55%);
  pointer-events: none;
}
.edition-vec {
  margin-bottom: 1.3rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
.edition-vec svg { display: block; width: 100%; height: auto; }

.edition .tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange);
}
.edition:nth-child(2) .tag { color: var(--amber); }
.edition h3 { font-size: 1.5rem; margin: 0.7rem 0 0.8rem; }
.edition p { font-size: 0.88rem; line-height: 1.65; color: var(--grey); }
.edition .clients {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.3rem;
  margin-top: 1.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-dim);
}
.edition .btn { margin-top: 1.6rem; padding: 0.7rem 1.4rem; font-size: 0.72rem; }

/* Compact pinned stages on shorter desktop viewports */
@media (min-width: 981px) and (max-height: 860px) {
  .stage { padding-top: 4.5rem; padding-bottom: 2rem; }
  .stage .h-lg { font-size: clamp(1.7rem, 3.6vw, 3rem); }
  .stage .lede { font-size: 0.95rem; }
  .stage .chip { padding: 0.5rem 0.9rem; font-size: 0.68rem; }
  .stage .chip-row { margin-top: 1.6rem; gap: 0.55rem; }
  .stage .f-card { padding: 1.1rem; }
  .stage .f-card .ico { margin-bottom: 0.6rem; }
  .stage .card-row { margin-top: 1.8rem; }
  .stage .edition { padding: 1.5rem 1.4rem 1.4rem; }
  .stage .edition-vec { margin-bottom: 1rem; }
  .stage .editions { margin-top: 1.8rem; }
  .stage-index { font-size: clamp(3rem, 7vw, 6rem); top: 5rem; }
}

/* Mobile / tablet: unpin the journey — stages become normal stacked sections */
@media (max-width: 980px) {
  .pin-wrap { height: auto; }
  .pin-content { position: static; height: auto; overflow: visible; display: block; }
  .stage {
    position: static;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto;
    padding: 3.5rem clamp(1.25rem, 6vw, 5.5rem);
  }
  .stage + .stage { border-top: 1px solid var(--line); }
  .stage-rail, .stage-index { display: none; }
  /* with no height cap, bring the stage visuals back */
  .stage .stage-cols .os-visual { display: block; }
}

/* Stage progress rail */
.stage-rail {
  position: absolute;
  left: clamp(1.25rem, 6vw, 5.5rem);
  bottom: 2.6rem;
  display: flex;
  gap: 0.6rem;
  z-index: 5;
}
.stage-rail .seg {
  width: 56px;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.stage-rail .seg i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
}
#seg-2 { background: var(--amber); }
#seg-3 { background: var(--gold); }

/* ---------- Diagonal divider ---------- */
.diag-divider {
  position: relative;
  height: 9rem;
  z-index: 2;
}
.diag-divider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  clip-path: polygon(0 56%, 100% 44%, 100% 45.2%, 0 57.2%);
  opacity: 0.55;
}

/* ---------- Testimonials ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
@media (max-width: 1080px) { .quotes { grid-template-columns: 1fr; max-width: 44rem; } }

.quote {
  position: relative;
  padding: 2.1rem 1.8rem 1.7rem;
  background: var(--panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.quote-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.quote .qmark {
  font-size: 3rem;
  line-height: 0.5;
  font-weight: 800;
  color: var(--orange);
  transform: translateY(0.35em);
}
.q-logo {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  transition: opacity 0.3s, filter 0.3s;
}
.quote:hover .q-logo { opacity: 1; filter: none; }
.quote p { font-size: 0.92rem; line-height: 1.7; color: #cdd1d8; flex: 1; }
.quote .who { margin-top: 1.5rem; font-size: 0.78rem; }
.quote .who b { display: block; color: var(--white); font-weight: 600; }
.quote .who span { color: var(--grey-dim); }

/* ---------- CTA / enquiry ---------- */
.cta-section {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 980px) { .cta-section { grid-template-columns: 1fr; } }

.cta-copy .h-lg { margin: 1.1rem 0 1.3rem; }

.enquiry {
  padding: 2.2rem 2rem;
  background: var(--panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.enquiry .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 560px) { .enquiry .grid2 { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.9rem; }
.field label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
}
.field input,
.field textarea {
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.8rem 0.95rem;
  outline: none;
  transition: border-color 0.3s;
  resize: vertical;
}
.field input:focus,
.field textarea:focus { border-color: var(--orange); }

.enquiry .btn { width: 100%; justify-content: center; margin-top: 0.4rem; }
.form-note { margin-top: 0.9rem; font-size: 0.72rem; color: var(--grey-dim); text-align: center; }
.form-success {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
  color: var(--white);
  background: rgba(255, 111, 30, 0.14);
  border: 1px solid rgba(255, 111, 30, 0.5);
  border-radius: 9px;
  text-align: center;
}

/* ---------- Footer ---------- */
footer {
  position: relative;
  z-index: 2;
  background: #07080a;
  border-top: 1px solid var(--line);
  padding: 3.5rem clamp(1.25rem, 6vw, 5.5rem) 2.2rem;
}
.foot-grid {
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
}
.foot-brand p { margin-top: 0.9rem; font-size: 0.82rem; color: var(--grey-dim); max-width: 22rem; line-height: 1.6; }
.foot-col h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1rem;
}
.foot-col a {
  display: block;
  font-size: 0.84rem;
  color: var(--grey-dim);
  text-decoration: none;
  margin-bottom: 0.55rem;
  transition: color 0.3s;
}
.foot-col a:hover { color: var(--orange); }
.foot-base {
  max-width: 1480px;
  margin: 2.8rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.72rem;
  color: var(--grey-dim);
}

/* ---------- OneTransportOS page ---------- */
.os-hero {
  min-height: 92vh;
  min-height: 92svh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding: 8rem clamp(1.25rem, 6vw, 5.5rem) 4rem;
  max-width: 1480px;
  margin: 0 auto;
}
@media (max-width: 1080px) {
  .os-hero { grid-template-columns: 1fr; min-height: auto; }
  .os-hero .os-visual { display: none; }
}
.os-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 1.2rem 0 1.4rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2.6rem, 6vh, 4.2rem) 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row:nth-child(even) .feature-vec { order: -1; }
@media (max-width: 980px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .feature-vec { order: 0; }
}

.feature-copy h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-bottom: 0.9rem; letter-spacing: -0.02em; }
.feature-copy > p { font-size: 0.95rem; line-height: 1.7; color: var(--grey); max-width: 34rem; }
.feature-list { list-style: none; margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.95rem; }
.feature-list li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--grey);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.75rem;
  height: 3px;
  background: var(--grad-steps);
  transform: skewX(-30deg);
}
.feature-list b { color: var(--white); font-weight: 600; }

.feature-vec {
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.feature-vec svg { display: block; width: 100%; height: auto; }

/* Edition tabs */
.edition-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-bottom: 2.6rem;
}
.edition-tab {
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.edition-tab:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }
.edition-tab .tag {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.45rem;
  transition: color 0.3s;
}
.edition-tab b { display: block; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.edition-tab .tab-sub { display: block; margin-top: 0.35rem; font-size: 0.78rem; color: var(--grey); }
.edition-tab.active { border-color: rgba(255, 111, 30, 0.6); background: rgba(255, 111, 30, 0.08); }
.edition-tab.active .tag { color: var(--orange); }
.edition-tab[data-target="school-bus"].active { border-color: rgba(255, 191, 0, 0.55); background: rgba(255, 191, 0, 0.06); }
.edition-tab[data-target="school-bus"].active .tag { color: var(--gold); }

.edition-panel { display: none; }
.edition-panel.active { display: block; }
.edition-panel .reveal { opacity: 1; }

/* Feature browser: numbered rail (all features at a glance) + detail panel */
.feature-browser {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) 1.55fr;
  gap: 1.4rem;
  align-items: start;
}
.feature-rail {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  position: sticky;
  top: 86px;
}
.rail-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--grey);
  text-align: left;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.rail-btn i {
  font-style: normal;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--grey-dim);
  transition: color 0.3s;
}
.rail-btn:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.25); transform: translateX(3px); }
.rail-btn.active {
  color: var(--white);
  border-color: rgba(255, 111, 30, 0.55);
  background: rgba(255, 111, 30, 0.08);
  transform: translateX(5px);
}
.rail-btn.active i { color: var(--orange); }
#school-bus .rail-btn.active { border-color: rgba(255, 191, 0, 0.5); background: rgba(255, 191, 0, 0.06); }
#school-bus .rail-btn.active i { color: var(--gold); }

.feature-detail {
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  overflow: hidden;
}
.feature-detail .feature-row { display: none; }
.feature-detail .feature-row.active { display: block; }
.feature-detail .feature-vec {
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  margin-bottom: 1.4rem;
}
.feature-detail .feature-copy h3 { font-size: 1.4rem; margin-bottom: 0.8rem; }
.feature-detail .feature-copy > p { font-size: 0.92rem; }

@media (max-width: 980px) {
  .feature-browser { grid-template-columns: 1fr; }
  .feature-rail {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  .rail-btn { flex: none; white-space: nowrap; }
  .rail-btn.active, .rail-btn:hover { transform: none; }
}

@media (max-width: 680px) { .edition-tabs { grid-template-columns: 1fr; } }

/* ---------- Shared SVG animation kit (used by inline vectors) ---------- */
.glass { fill: rgba(21, 23, 28, 0.72); stroke: rgba(255, 255, 255, 0.1); }
.tile  { fill: rgba(255, 255, 255, 0.04); stroke: rgba(255, 255, 255, 0.09); }
.lbl   { font: 600 9px Poppins, sans-serif; letter-spacing: 0.18em; fill: #9aa0ab; }
.val   { font: 700 19px Poppins, sans-serif; fill: #f4f5f7; }
.ttl   { font: 700 11px Poppins, sans-serif; letter-spacing: 0.22em; fill: #f4f5f7; }
.draw  { stroke-dasharray: 620; stroke-dashoffset: 620; animation: osDraw 2.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.draw-long { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: osDraw 2.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.d2 { animation-delay: 0.35s; }
.d3 { animation-delay: 0.7s; }
@keyframes osDraw { to { stroke-dashoffset: 0; } }
svg .node { animation: osPulse 2.6s ease-in-out infinite; }
.n2 { animation-delay: -0.9s; }
.n3 { animation-delay: -1.7s; }
@keyframes osPulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
svg .bar { transform-box: fill-box; transform-origin: bottom; animation: osGrow 2.8s ease-in-out infinite alternate; }
.b2 { animation-delay: -0.8s; }
.b3 { animation-delay: -1.6s; }
.b4 { animation-delay: -2.2s; }
@keyframes osGrow { from { transform: scaleY(0.4); } to { transform: scaleY(1); } }
svg .ring { transform-box: fill-box; transform-origin: center; animation: osSpin 14s linear infinite; }
@keyframes osSpin { to { transform: rotate(360deg); } }
svg .pop { transform-box: fill-box; transform-origin: center; opacity: 0; animation: osPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 0.9s; }
.p2 { animation-delay: 1.5s; }
.p3 { animation-delay: 2.1s; }
.p4 { animation-delay: 2.7s; }
@keyframes osPop { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: scale(1); } }
svg .fillx { transform-box: fill-box; transform-origin: left; animation: osGrowX 3s ease-in-out infinite alternate; }
@keyframes osGrowX { from { transform: scaleX(0.55); } to { transform: scaleX(1); } }
svg .scan { animation: osScan 2.6s ease-in-out infinite alternate; }
@keyframes osScan { to { transform: translateX(134px); } }
svg .cycle { animation: osCycle 8s ease-in-out infinite; }
@keyframes osCycle {
  0%, 100% { fill: #ff6f1e; }
  25% { fill: #ff9500; }
  50% { fill: #ffbf00; }
  75% { fill: #ffd21f; }
}
@media (prefers-reduced-motion: reduce) {
  .draw, .draw-long { animation-duration: 0.01s; }
  svg .pop { animation-duration: 0.01s; animation-delay: 0s; }
  svg .node, svg .bar, svg .ring, svg .fillx, svg .cycle, svg .scan { animation: none; }
}

/* ---------- Reveal helpers ---------- */
.reveal { opacity: 0; }
html.reduced-motion .reveal,
html.no-webgl .reveal { opacity: 1 !important; transform: none !important; }

/* ---------- Reduced motion / fallback ---------- */
html.reduced-motion .scroll-cue .dot { animation: none; }
html.reduced-motion .pin-wrap { height: auto; }
html.reduced-motion .pin-content { position: static; height: auto; overflow: visible; display: block; }
html.reduced-motion .stage {
  position: static;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
html.reduced-motion .stage-rail { display: none; }

html.no-webgl #scene { display: none; }
html.no-webgl body {
  background:
    radial-gradient(ellipse 90% 60% at 70% 10%, rgba(255, 111, 30, 0.12), transparent 60%),
    radial-gradient(ellipse 70% 50% at 15% 80%, rgba(255, 111, 30, 0.07), transparent 60%),
    var(--ink);
}
