/* ============================================================
   3D SUBWAY — design system
   Dark, MTA-signage-inspired. Helvetica everywhere, like the
   Vignelli map intended.
   ============================================================ */

:root {
  --bg: #060608;
  --bg-alt: #0c0c10;
  --surface: #121218;
  --surface-2: #17171f;
  --line: #26262e;
  --text: #f5f5f2;
  --text-dim: #9b9ba6;
  --led: #ffb000;

  --mta-red: #EE352E;
  --mta-orange: #FF6319;
  --mta-yellow: #FCCC0A;
  --mta-green: #00933C;
  --mta-blue: #0039A6;
  --mta-purple: #B933AD;
  --mta-lgreen: #6CBE45;
  --mta-brown: #996633;
  --mta-grey: #A7A9AC;

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-led: "VT323", monospace;

  --radius: 14px;
  --pad: clamp(20px, 5vw, 72px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--mta-yellow); color: #000; }

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.05; letter-spacing: -0.02em; }

/* ---------- bullets ---------- */
.bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  flex: none;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.bullet.sm { width: 28px; height: 28px; font-size: 14px; }
.bullet.dark-text { color: #000; }
.b-red { background: var(--mta-red); }
.b-orange { background: var(--mta-orange); }
.b-yellow { background: var(--mta-yellow); color: #000; }
.b-green { background: var(--mta-green); }
.b-blue { background: var(--mta-blue); }
.b-purple { background: var(--mta-purple); }

/* ---------- LED text ---------- */
.led-text {
  font-family: var(--font-led);
  color: var(--led);
  text-shadow: 0 0 6px rgba(255, 176, 0, 0.55), 0 0 18px rgba(255, 176, 0, 0.25);
  letter-spacing: 0.08em;
}

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 22px;
  transition: opacity 0.5s ease, visibility 0.5s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-bullets { display: flex; gap: 12px; }
.preloader-bullets .bullet {
  width: 56px; height: 56px; font-size: 28px;
  transform: scale(0);
  animation: pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.preloader-bullets .bullet:nth-child(2) { animation-delay: 0.12s; }
.preloader-bullets .bullet:nth-child(3) { animation-delay: 0.24s; }
.preloader-board { display: grid; justify-items: center; gap: 10px; }
.preloader-text {
  font-size: 22px;
  color: rgba(255, 176, 0, 0.14);
  text-shadow: none;
  animation: none;
  transition: color 120ms ease, text-shadow 120ms ease;
}
.preloader.is-lit .preloader-text {
  color: var(--led);
  text-shadow: 0 0 6px rgba(255, 176, 0, 0.75), 0 0 22px rgba(255, 176, 0, 0.42);
  animation: led-blink 0.72s steps(2) infinite;
}
.preloader-arrival {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 28px; font-size: clamp(15px, 4.5vw, 20px); white-space: nowrap;
  color: rgba(255, 176, 0, 0.3);
  text-shadow: none;
  transition: color 120ms ease, text-shadow 120ms ease;
}
.arrival-route {
  display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%;
  background: var(--mta-orange); color: #fff; text-shadow: none;
  font-family: var(--font-main); font-size: 17px; font-weight: 900; letter-spacing: 0;
}
.arrival-route.light-route { color: #111; }
.arrival-eta { margin-left: 8px; }
.preloader-progress {
  display: grid; grid-template-columns: minmax(0, 250px) 48px; align-items: center; gap: 12px;
  width: min(330px, 78vw); margin-top: 4px;
  color: rgba(255, 176, 0, 0.3); font: 18px/1 var(--font-led); letter-spacing: 0.04em;
}
.progress-track { height: 8px; overflow: hidden; border: 1px solid rgba(255, 176, 0, 0.3); }
.progress-fill { display: block; width: 0; height: 100%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.progress-percent { text-align: right; }
.preloader.is-lit .preloader-arrival {
  color: var(--led);
  text-shadow: 0 0 6px rgba(255, 176, 0, 0.65), 0 0 18px rgba(255, 176, 0, 0.3);
}
.preloader.is-lit .preloader-text,
.preloader.is-lit .preloader-arrival,
.preloader.is-lit .preloader-progress { animation: led-blink 0.72s steps(1, end) infinite; }
.preloader.is-lit .preloader-progress { color: var(--led); }
.preloader.is-lit .progress-track { border-color: currentColor; }
.preloader.is-lit .arrival-eta { display: none; }
@keyframes pop-in { to { transform: scale(1); } }
@keyframes led-blink { 0%, 49.99% { opacity: 0.3; } 50%, 100% { opacity: 1; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  background: rgba(6, 6, 8, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(6, 6, 8, 0.88); }
.nav-logo { display: flex; align-items: center; gap: 7px; }
.nav-logo-text { font-weight: 900; letter-spacing: 0.14em; font-size: 17px; margin-left: 3px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 14px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--text-dim); text-transform: uppercase;
  position: relative; padding: 4px 0;
  transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--mta-yellow);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta-wrap { display: flex; align-items: center; gap: 14px; }
.nav-cta {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 100px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.nav-cta:hover { background: var(--text); color: #000; border-color: var(--text); }
.cart-trigger { background: transparent; color: var(--text); font-family: inherit; cursor: pointer; }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 7px; padding: 0 6px; border-radius: 50px; background: var(--mta-yellow); color: #08080a; }
.nav-burger { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px var(--pad) 0;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 2; max-width: 1100px; }
.hero-kicker {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 26px;
}
.hero-kicker .bullet.sm { font-size: 11px; }
.kicker-text {
  font-size: 14px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-dim);
}
.hero-title {
  font-size: clamp(52px, 9.5vw, 124px);
  font-weight: 900;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero-title .word {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
body.hero-ready .hero-title .line:nth-child(2) .word { transition-delay: 0.12s; }
body.hero-ready .hero-title .word { transform: translateY(0); }
.hero-title .accent {
  color: transparent;
  -webkit-text-stroke: 2px var(--text);
  transition: color 0.4s ease;
}
.hero-title .accent:hover { color: var(--mta-yellow); -webkit-text-stroke-color: var(--mta-yellow); }
.hero-sub {
  max-width: 560px; margin-top: 20px;
  color: var(--text-dim); font-size: clamp(16px, 1.6vw, 19px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px; border-radius: 100px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.03em;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s, color 0.25s, box-shadow 0.25s;
  will-change: transform;
}
.btn-primary { background: var(--mta-yellow); color: #000; }
.btn-primary:hover { box-shadow: 0 8px 32px rgba(252, 204, 10, 0.35); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--text-dim); transform: translateY(-2px); }

/* LED destination board */
.led-board {
  position: relative; z-index: 2;
  margin-top: clamp(24px, 4vh, 48px);
  margin-left: calc(var(--pad) * -1);
  margin-right: calc(var(--pad) * -1);
  background: #0a0a0c;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  overflow: hidden;
}
.led-board::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.35) 0 2px, transparent 2px 4px);
}
.led-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.led-track .led-text { font-size: clamp(22px, 3vw, 34px); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* trackbed + train */
.trackbed { position: relative; z-index: 2; height: 168px; margin-top: auto; }
.train-wrap {
  position: absolute; bottom: 44px; left: 0;
  width: min(920px, 78vw);
  will-change: transform;
  transform: translateX(-110%);
}
body.hero-ready .train-wrap {
  animation: drive-in 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}
@keyframes drive-in { to { transform: translateX(0); } }
/* after the entrance, JS drives a scroll-linked nudge via --train-x */
body.train-driven .train-wrap {
  animation: none;
  transform: translateX(var(--train-x, 0px));
  transition: transform 0.15s linear;
}
.wheel-spoke {
  transform-box: fill-box;
  transform-origin: center;
  animation: wheel-spin 1.1s linear infinite;
}
@keyframes wheel-spin { to { transform: rotate(360deg); } }
.train { width: 100%; height: auto; display: block; }
.car-window { transition: fill 0.4s; }
.train:hover .car-window { fill: #1a2743; }
.headlight { animation: headlight-glow 2.4s ease-in-out infinite; }
@keyframes headlight-glow { 50% { opacity: 0.5; } }
.rails {
  position: absolute; bottom: 40px; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #2e2e36, #3c3c46 40%, #2e2e36);
}
.rails::after {
  content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px;
  background: #222229;
}
.platform-edge {
  position: absolute; bottom: 0; left: 0; right: 0; height: 26px;
  background: var(--mta-yellow);
}
.tactile-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle 3px, rgba(0,0,0,0.4) 40%, transparent 45%);
  background-size: 18px 13px;
}

/* ---------- ticker ---------- */
.ticker {
  background: var(--mta-red);
  overflow: hidden;
  padding: 12px 0;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
}
.ticker-track {
  display: flex; width: max-content;
  animation: marquee 32s linear infinite;
  font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff;
}
.ticker-track span { white-space: nowrap; }
.ticker:hover .ticker-track, .led-board:hover .led-track { animation-play-state: paused; }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 12vh, 140px) var(--pad); }
.shop-console { margin: 0 var(--pad); padding: clamp(26px, 4vw, 48px); display: grid; grid-template-columns: minmax(230px, .75fr) minmax(480px, 1.25fr); gap: clamp(28px, 6vw, 80px); background: var(--surface); border: 1px solid var(--line); border-left: 7px solid var(--mta-yellow); border-radius: var(--radius); }
.shop-console-copy h2 { margin: 8px 0 16px; font-size: clamp(32px, 4vw, 54px); text-transform: uppercase; }
.shop-console-copy > p:last-child { color: var(--text-dim); }
.product-config { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product-config label { display: grid; gap: 7px; color: var(--text-dim); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.product-config .car-type-field[hidden] { display: none; }
.product-config select, .product-config input, .cart-line input { width: 100%; border: 1px solid #373741; border-radius: 8px; background: #0b0b0f; color: var(--text); font: 600 15px var(--font); padding: 13px 14px; }
.product-config select:focus, .product-config input:focus, .cart-line input:focus { outline: 2px solid var(--mta-yellow); outline-offset: 2px; }
.config-total { display: flex; align-items: center; justify-content: space-between; align-self: end; min-height: 50px; padding: 0 4px; color: var(--text-dim); }
.config-total strong { color: var(--mta-yellow); font-size: 24px; }
.form-status { min-height: 1.4em; grid-column: 1 / -1; color: var(--mta-yellow); }
.cart-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.68); backdrop-filter: blur(3px); }
.cart-drawer { position: fixed; inset: 0 0 0 auto; z-index: 80; width: min(520px, 100%); display: grid; grid-template-rows: auto 1fr auto; background: #0a0a0e; border-left: 1px solid var(--line); transform: translateX(102%); transition: transform .4s cubic-bezier(.22,1,.36,1); }
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 26px 28px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin-top: 3px; font-size: 30px; text-transform: uppercase; }
.cart-close { border: 0; background: transparent; color: var(--text); font-size: 40px; line-height: 1; cursor: pointer; }
.cart-items { padding: 10px 28px; overflow-y: auto; }
.cart-line { padding: 22px 0; border-bottom: 1px solid var(--line); }
.cart-line h3 { font-size: 16px; line-height: 1.35; }
.cart-line p { color: var(--text-dim); font-size: 13px; }
.line-actions { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center; margin-top: 14px; }
.line-actions strong { text-align: right; }
.line-actions button { border: 0; background: none; color: #ff817b; text-decoration: underline; cursor: pointer; }
.cart-empty { min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--text-dim); }
.cart-empty h3 { margin: 14px 0 4px; color: var(--text); }
.cart-summary { padding: 22px 28px 28px; border-top: 1px solid var(--line); background: var(--surface); }
.cart-summary > div { display: flex; justify-content: space-between; margin: 6px 0; }
.cart-summary .cart-total { margin: 15px 0; padding-top: 15px; border-top: 1px solid var(--line); font-size: 20px; }
.test-notice { margin-bottom: 12px; color: var(--led); font: 18px var(--font-led); letter-spacing: .06em; }
.continue-shopping-button { width: 100%; margin: 4px 0 2px; }
.checkout-button { width: 100%; margin-top: 10px; border: 0; cursor: pointer; }
.btn-paypal { background: #ffc439; color: #142c8e; }
.checkout-button:disabled { opacity: .45; cursor: not-allowed; }
.checkout-status { min-height: 1.4em; margin-top: 12px; color: #ff817b; font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
body.cart-open { overflow: hidden; }
.confirmation-page { min-height: 100svh; background: radial-gradient(circle at 82% 18%, rgba(0,147,60,.14), transparent 34%), var(--bg); }
.confirmation-nav { border-bottom-color: var(--line); }
.confirmation-main { min-height: 100svh; display: grid; place-items: center; padding: 120px var(--pad) 48px; }
.confirmation-board { width: min(820px, 100%); padding: clamp(28px, 6vw, 70px); border: 1px solid var(--line); border-radius: 4px; background: linear-gradient(145deg, rgba(23,23,31,.98), rgba(10,10,14,.98)); box-shadow: 0 28px 90px rgba(0,0,0,.42); }
.confirmation-journey { --train-run: clamp(180px, 55vw, 520px); display: grid; grid-template-columns: auto 1fr 92px; align-items: end; gap: 0; min-height: 96px; margin-bottom: 38px; overflow: hidden; }
.confirmation-check { align-self: center; margin-right: 14px; box-shadow: 0 0 0 7px rgba(0,147,60,.11); }
.confirmation-track { position: relative; align-self: end; height: 68px; border-bottom: 5px solid #55545d; background: repeating-linear-gradient(90deg, transparent 0 30px, #55545d 31px 36px, transparent 37px 58px) 0 100% / auto 11px no-repeat; }
.confirmation-track::after { content: ""; position: absolute; right: -20px; bottom: -5px; width: 40px; height: 5px; background: #55545d; }
.confirmation-train { position: absolute; z-index: 1; left: 0; bottom: 7px; width: 126px; height: 47px; display: flex; align-items: flex-start; gap: 7px; padding: 9px 9px 0 16px; border: 2px solid #d1d1d4; border-radius: 22px 6px 4px 4px; background: linear-gradient(#dedee1 0 64%, #8b8b92 65% 76%, #292930 77%); box-shadow: inset 8px 0 #b7b7bc; opacity: 0; }
.train-window { width: 19px; height: 15px; border: 2px solid #383840; background: #15151a; }
.train-door { width: 19px; height: 31px; margin-top: -2px; border: 2px solid #45454c; background: linear-gradient(90deg, #a8a8ae 47%, #4a4a51 48% 53%, #a8a8ae 54%); }
.train-light { position: absolute; left: 5px; bottom: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--mta-yellow); }
.confirmation-tunnel { position: relative; z-index: 2; height: 96px; display: grid; place-items: center; border: 8px solid #4b4a50; border-bottom: 0; border-radius: 54px 54px 0 0; background: radial-gradient(circle at 50% 72%, #17171d 0 36%, #09090c 37% 100%); box-shadow: inset 0 0 0 5px #24242a, -10px 0 20px rgba(0,0,0,.38); }
.confirmation-tunnel::before { content: ""; position: absolute; inset: -8px -8px auto; height: 44px; border-radius: 54px 54px 0 0; border-top: 3px dashed #6c6b72; }
.confirmation-board h1 { max-width: 680px; margin: 10px 0 18px; font-size: clamp(38px, 7vw, 78px); text-transform: uppercase; }
.confirmation-copy { max-width: 650px; color: var(--text-dim); font-size: clamp(17px, 2vw, 21px); }
.confirmation-ref { display: grid; gap: 7px; margin: 34px 0; padding: 18px 20px; border-left: 5px solid var(--mta-yellow); background: #09090c; }
.confirmation-ref span { color: var(--text-dim); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.confirmation-ref code { overflow-wrap: anywhere; color: var(--mta-yellow); font: 21px var(--font-led); letter-spacing: .04em; }
.confirmation-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.confirmation-board .test-notice { margin: 28px 0 0; }
.confirmation-board[data-state="verified"] .confirmation-train { animation: train-to-tunnel 2.8s cubic-bezier(.45,.05,.55,.95) .25s both; }
.confirmation-board[data-state="error"] .confirmation-check { background: var(--mta-red); box-shadow: 0 0 0 7px rgba(238,53,46,.11); }
@keyframes train-to-tunnel { 0% { transform: translateX(-125px); opacity: 0; } 12% { opacity: 1; } 78% { opacity: 1; } 100% { transform: translateX(var(--train-run)) scale(.78); opacity: 0; } }
@media (max-width: 620px) { .confirmation-journey { grid-template-columns: auto 1fr 74px; min-height: 80px; } .confirmation-tunnel { height: 80px; } .confirmation-train { width: 108px; } .train-window { width: 15px; } }
@media (prefers-reduced-motion: reduce) { .confirmation-board[data-state="verified"] .confirmation-train { animation: none; left: auto; right: 8px; opacity: 1; } }
.section-alt { background: var(--bg-alt); }

/* station sign header */
.station-sign { max-width: 820px; margin-bottom: clamp(40px, 6vh, 64px); }
.station-sign h2 {
  font-size: clamp(34px, 5.5vw, 64px);
  font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em;
}
.station-sign p { color: var(--text-dim); margin-top: 12px; font-size: 18px; max-width: 600px; }
.station-sign p b { color: var(--text); }
.sign-stripe {
  height: 8px; width: 120px; margin-top: 22px;
  background: var(--mta-red);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.25s;
}
.station-sign.visible .sign-stripe { transform: scaleX(1); }
.stripe-orange { background: var(--mta-orange); }
.stripe-green { background: var(--mta-green); }
.stripe-blue { background: var(--mta-blue); }
.stripe-yellow { background: var(--mta-yellow); }

/* ---------- fleet ---------- */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.car-card {
  --accent: var(--mta-red);
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s, background 0.35s;
}
.car-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.car-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 9%, transparent), transparent 65%);
  opacity: 0; transition: opacity 0.35s;
}
.car-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--surface-2); }
.car-card:hover::before { transform: scaleY(1); }
.car-card:hover::after { opacity: 1; }
.car-card-top { display: flex; align-items: center; justify-content: space-between; }
.car-card-top .bullet { width: 40px; height: 40px; font-size: 20px; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.car-card:hover .car-card-top .bullet { transform: rotate(360deg) scale(1.08); }
.car-era { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.car-card h3 { font-size: 34px; font-weight: 900; }
.car-card > p { color: var(--text-dim); font-size: 15px; flex: 1; }
.car-card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.price { font-weight: 800; font-size: 16px; }
.arrow { font-size: 20px; transition: transform 0.3s; }
.car-card:hover .arrow { transform: translateX(6px); }
.badge-new {
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em;
  background: var(--accent); color: #fff;
  padding: 5px 10px; border-radius: 5px;
}
.badge-sound { background: #EE352E; }

/* ---------- fleet image viewer ---------- */
body.gallery-open { overflow: hidden; }
.fleet-lightbox {
  position: fixed; inset: 0; z-index: 1200;
  display: grid; place-items: center;
  padding: clamp(12px, 3vw, 36px);
  background: rgba(8, 10, 12, 0.92);
  backdrop-filter: blur(14px);
  border: 0;
  width: 100%; max-width: none; height: 100%; max-height: none;
  color: var(--text); opacity: 0;
  transition: opacity 180ms ease;
}
.fleet-lightbox:not([open]) { display: none; }
.fleet-lightbox[open] { opacity: 1; }
.fleet-lightbox::backdrop { background: transparent; }
.lightbox-shell {
  width: min(1180px, 100%); height: min(90vh, 900px);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
}
.lightbox-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.lightbox-title { margin: 0; font-size: clamp(18px, 2vw, 25px); font-weight: 900; letter-spacing: -0.02em; }
.lightbox-count { color: var(--text-dim); font-size: 13px; letter-spacing: 0.12em; }
.lightbox-close, .lightbox-nav {
  border: 1px solid rgba(255,255,255,.24); background: rgba(24,27,31,.88); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.lightbox-close { width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto; }
.lightbox-nav { position: absolute; top: 50%; width: 52px; height: 72px; border-radius: 8px; transform: translateY(-50%); }
.lightbox-nav.prev { left: 12px; }
.lightbox-nav.next { right: 12px; }
.lightbox-close:hover, .lightbox-nav:hover { background: #EE352E; border-color: #EE352E; }
.lightbox-close:hover { transform: rotate(5deg) scale(1.04); }
.lightbox-nav:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-close:focus-visible, .lightbox-nav:focus-visible, .lightbox-thumb:focus-visible { outline: 3px solid #FCCC0A; outline-offset: 3px; }
.lightbox-stage {
  position: relative; min-height: 0; overflow: hidden;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.14); border-radius: 12px;
  background: radial-gradient(circle at 50% 42%, #292d31 0, #111417 70%);
}
.lightbox-image {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  min-width: 0; min-height: 0; padding: clamp(18px, 4vw, 54px);
  object-fit: contain; object-position: center; opacity: 1; transform: scale(1);
  transition: opacity 140ms ease, transform 180ms ease;
  user-select: none; -webkit-user-drag: none;
}
.lightbox-image.is-loading { opacity: .2; transform: scale(.985); }
.lightbox-strip {
  display: flex; gap: 9px; overflow-x: auto; padding: 3px 3px 10px;
  scroll-snap-type: x proximity; scrollbar-color: #EE352E rgba(255,255,255,.12);
}
.lightbox-thumb {
  flex: 0 0 92px; height: 62px; padding: 0; overflow: hidden;
  border: 2px solid transparent; border-radius: 6px; background: #191c20;
  opacity: .55; cursor: pointer; scroll-snap-align: center;
  transition: opacity 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox-thumb:hover { opacity: .85; transform: translateY(-2px); }
.lightbox-thumb.active { opacity: 1; border-color: #EE352E; }
.product-art a, .thumb-strip a,
a[href$=".jpg" i], a[href$=".jpeg" i], a[href$=".png" i], a[href$=".webp" i], a[href$=".jfif" i] { cursor: zoom-in; }
.site-lightbox.single-image .lightbox-nav,
.site-lightbox.single-image .lightbox-strip { display: none; }
.site-lightbox.single-image .lightbox-shell { grid-template-rows: auto minmax(0, 1fr); }
@media (max-width: 640px) {
  .fleet-lightbox { padding: 10px; }
  .lightbox-shell { height: 96vh; gap: 10px; }
  .lightbox-nav { width: 44px; height: 60px; background: rgba(16,18,21,.78); }
  .lightbox-nav.prev { left: 6px; }
  .lightbox-nav.next { right: 6px; }
  .lightbox-image { padding: 12px; }
  .lightbox-thumb { flex-basis: 76px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .fleet-lightbox, .lightbox-image, .lightbox-close, .lightbox-nav, .lightbox-thumb { transition: none; }
}

/* ---------- tiers ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.tier {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex; flex-direction: column; gap: 18px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s;
}
.tier:hover { transform: translateY(-6px); border-color: #3a3a46; }
.tier-featured {
  border-color: var(--mta-yellow);
  background: linear-gradient(180deg, rgba(252, 204, 10, 0.06), transparent 45%), var(--surface);
  position: relative;
}
.tier-featured::before {
  content: "MOST POPULAR";
  position: absolute; top: -12px; left: 30px;
  background: var(--mta-yellow); color: #000;
  font-size: 11px; font-weight: 900; letter-spacing: 0.12em;
  padding: 5px 12px; border-radius: 5px;
}
.tier-head { display: flex; gap: 16px; align-items: center; }
.tier-head h3 { font-size: 24px; font-weight: 800; }
.tier-tag { font-size: 11px; letter-spacing: 0.14em; color: var(--text-dim); margin-top: 4px; }
.tier-desc { color: var(--text-dim); font-size: 15px; }
.tier ul { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tier li { padding-left: 26px; position: relative; font-size: 15px; }
.tier li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--mta-yellow);
}
.tier:first-child li::before { background: var(--mta-green); }
.tier:last-child li::before { background: var(--mta-red); }
.tier .btn { align-self: flex-start; }
.tier-note {
  margin-top: 28px; color: var(--text-dim); font-size: 14px;
  border-left: 3px solid var(--mta-blue); padding-left: 16px;
}
.tier-note b { color: var(--text); }

/* ---------- structures ---------- */
.structures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.structure-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s;
}
.structure-card:hover { transform: translateY(-6px); border-color: var(--mta-green); }
.structure-art { background: #0a0a0d; padding: 30px 30px 0; }
.structure-art svg { width: 100%; height: auto; display: block; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.structure-card:hover .structure-art svg { transform: translateY(-4px) scale(1.02); }
.structure-info { padding: 26px 30px 30px; display: flex; flex-direction: column; gap: 8px; }
.structure-info h3 { font-size: 22px; font-weight: 800; }
.structure-info p { color: var(--text-dim); font-size: 15px; }
.structure-info .price { color: var(--mta-lgreen); }
.structure-console { scroll-margin-top: 96px; }
.structure-card .buy-links { display: flex; flex-wrap: wrap; gap: 8px; }
.structure-photo a { display: block; height: 100%; position: relative; }
.structure-photo a::after { content: "VIEW PRODUCT PAGE"; position: absolute; right: 14px; bottom: 14px; padding: 7px 10px; border-radius: 4px; background: rgba(8, 8, 10, .88); color: var(--mta-yellow); font: 700 16px/1 "VT323", monospace; letter-spacing: .06em; transform: translateY(4px); opacity: 0; transition: transform .25s, opacity .25s; }
.structure-card:hover .structure-photo a::after, .structure-photo a:focus-visible::after { transform: none; opacity: 1; }
@media (max-width: 600px) { .structure-photo a::after { transform: none; opacity: 1; } }
.structure-product-hero { max-width: 1380px; margin: 0 auto; min-height: 650px; padding: clamp(48px, 8vw, 112px) clamp(22px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); align-items: center; gap: clamp(36px, 7vw, 100px); }
.structure-product-copy h1 { max-width: 780px; margin: 10px 0 24px; font-size: clamp(50px, 7vw, 104px); line-height: .86; letter-spacing: -.06em; text-transform: uppercase; }
.structure-product-copy .crumb a { color: var(--mta-lgreen); }
.structure-product-copy .product-opts { margin-top: 28px; }
.structure-product-media { min-width: 0; }
.structure-main-photo { display: grid; width: 100%; aspect-ratio: 4 / 3; padding: 16px; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: #09090c; box-shadow: 22px 22px 0 rgba(0, 151, 87, .16); cursor: zoom-in; }
.structure-main-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.structure-main-photo.manhattan-photo { box-shadow: 22px 22px 0 rgba(255, 99, 25, .16); }
.manhattan-gallery { max-height: 270px; overflow-y: auto; padding-right: 4px; }
.structure-product-hero.manhattan > img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #09090c; box-shadow: 22px 22px 0 rgba(255, 99, 25, .16); }
.variant-thumbnails { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 18px; }
.variant-thumbnail { aspect-ratio: 4 / 3; padding: 4px; overflow: hidden; border: 2px solid transparent; border-radius: 6px; background: #111116; cursor: pointer; opacity: .62; transition: opacity .2s, border-color .2s, transform .2s; }
.variant-thumbnail:hover { opacity: 1; transform: translateY(-2px); }
.variant-thumbnail.active { opacity: 1; border-color: var(--mta-yellow); }
.variant-thumbnail img { width: 100%; height: 100%; object-fit: contain; display: block; }
.structure-lightbox { width: min(94vw, 1200px); height: min(92vh, 900px); padding: 46px 20px 20px; border: 1px solid #44444d; border-radius: 10px; background: #08080b; color: #fff; }
.structure-lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.structure-lightbox img { width: 100%; height: 100%; object-fit: contain; }
.structure-lightbox button { position: absolute; top: 8px; right: 12px; border: 0; background: none; color: #fff; font-size: 32px; cursor: pointer; }
.structure-details { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 8vw, 120px); padding: clamp(32px, 6vw, 70px); border: 1px solid var(--line); background: linear-gradient(135deg, var(--surface), #0b0b0e); }
.structure-details h2 { margin-top: 8px; font-size: clamp(34px, 5vw, 64px); line-height: .98; letter-spacing: -.04em; }
.structure-details ul { list-style: none; display: grid; gap: 18px; align-content: center; }
.structure-details li { position: relative; padding: 0 0 18px 28px; border-bottom: 1px solid var(--line); color: var(--text-dim); }
.structure-details li::before { content: ""; position: absolute; left: 0; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--mta-green); }
.structure-assembly { scroll-margin-top: 96px; }
.structure-assembly-heading { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); gap: clamp(24px, 6vw, 80px); align-items: end; margin-bottom: 28px; }
.structure-assembly-heading h2 { margin-top: 8px; font-size: clamp(34px, 5vw, 64px); line-height: .98; letter-spacing: -.04em; }
.structure-assembly-heading > p { color: var(--text-dim); line-height: 1.7; }
.structure-assembly-player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #0a0a0d; box-shadow: 18px 18px 0 rgba(0, 151, 87, .12); }
.structure-assembly-player video { position: absolute; inset: 0; width: 100%; height: 100%; }
.bulk-discount-board { margin-top: 24px; display: grid; grid-template-columns: repeat(3, auto); gap: 8px; }
.bulk-discount-board b, .bulk-discount-board small { grid-column: 1 / -1; }
.bulk-discount-board b { color: var(--mta-yellow); font: 20px/1 "VT323", monospace; letter-spacing: .08em; text-transform: uppercase; }
.bulk-discount-board span { padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; color: var(--text); font-size: 12px; text-align: center; }
.bulk-discount-board small { color: var(--text-dim); }
.structure-console .config-total { display: grid; grid-template-columns: auto 1fr; gap: 3px 16px; }
.structure-console .config-total strong { text-align: right; }
.structure-console .config-total small { grid-column: 1 / -1; color: var(--mta-lgreen); text-align: right; }
#galleryMount { margin-top: 72px; }
.gallery-loading { padding: 42px; border: 1px dashed var(--line); color: var(--text-dim); text-align: center; }
.listing-link { margin-top: 28px; padding: 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-left: 3px solid var(--mta-orange); background: var(--surface); }
@media (max-width: 800px) { .structure-product-hero { min-height: auto; grid-template-columns: 1fr; } .structure-product-media, .structure-product-hero.manhattan > img { order: -1; } .structure-main-photo { box-shadow: 12px 12px 0 rgba(0, 151, 87, .16); } .structure-main-photo.manhattan-photo { box-shadow: 12px 12px 0 rgba(255, 99, 25, .16); } .structure-details, .structure-assembly-heading { grid-template-columns: 1fr; } .listing-link { align-items: flex-start; flex-direction: column; } .bulk-discount-board { grid-template-columns: 1fr; } .bulk-discount-board b, .bulk-discount-board small { grid-column: auto; } .variant-thumbnails { grid-template-columns: repeat(5, minmax(54px, 1fr)); overflow-x: auto; } .manhattan-gallery { max-height: 250px; } }

/* ---------- arrival board / custom ---------- */
.arrival-board {
  max-width: 900px; margin: 0 auto;
  background: #08080a;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(30px, 5vw, 56px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(255, 176, 0, 0.06) inset;
}
.arrival-board::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.3) 0 2px, transparent 2px 4px);
}
.arrival-row { display: flex; align-items: center; gap: 20px; }
.arrival-dest { flex: 1; font-size: clamp(26px, 5vw, 54px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.arrival-time { text-align: right; font-size: clamp(24px, 4vw, 44px); line-height: 0.9; }
.arrival-time small { font-size: 0.4em; letter-spacing: 0.2em; }
.arrival-divider { height: 1px; background: var(--line); margin: 26px 0; }
.arrival-copy { color: var(--text-dim); font-size: 17px; max-width: 560px; margin-bottom: 28px; }

/* ---------- route / why ---------- */
.route { position: relative; max-width: 760px; padding-left: 34px; }
.route-line {
  position: absolute; left: 10px; top: 8px; bottom: 8px; width: 6px;
  background: var(--line); border-radius: 3px;
  overflow: hidden;
}
.route-line::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: var(--progress, 0%);
  background: var(--mta-blue);
  transition: height 0.1s linear;
}
.route-stop { display: flex; gap: 22px; padding: 22px 0; position: relative; }
.route-dot {
  position: absolute; left: -31px; top: 30px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 4px solid var(--mta-blue);
  z-index: 1;
}
.route-stop h4 { font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.route-stop p { color: var(--text-dim); font-size: 15px; }

/* ---------- faq ---------- */
.faq-list { max-width: 820px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.3s;
}
.faq-item[open] { border-color: var(--mta-yellow); }
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px;
  font-weight: 700; font-size: 17px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 400; font-size: 18px; color: var(--text-dim);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s, color 0.3s;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--mta-yellow); color: #000; border-color: var(--mta-yellow); }
.faq-item p { padding: 0 24px 22px; color: var(--text-dim); font-size: 15px; max-width: 680px; }
.faq-item a { color: var(--mta-yellow); }
.faq-item a:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); }
.mosaic {
  padding: clamp(36px, 6vw, 64px) var(--pad);
  background:
    linear-gradient(rgba(6,6,8,0.82), rgba(6,6,8,0.82)),
    repeating-linear-gradient(0deg, #17171d 0 26px, #101014 26px 28px),
    repeating-linear-gradient(90deg, #17171d 0 26px, #101014 26px 28px);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.mosaic-text {
  font-size: clamp(40px, 9vw, 110px);
  font-weight: 900; letter-spacing: 0.06em;
  color: transparent;
  -webkit-text-stroke: 2px #34343e;
  transition: -webkit-text-stroke-color 0.5s, color 0.5s;
}
.mosaic:hover .mosaic-text { color: rgba(252, 204, 10, 0.9); -webkit-text-stroke-color: transparent; }
.footer-cols {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 34px;
  padding: clamp(44px, 6vw, 70px) var(--pad);
}
.footer-brand { display: flex; align-items: center; gap: 6px; font-weight: 900; letter-spacing: 0.1em; font-size: 18px; }
.footer-note { color: var(--text-dim); font-size: 14px; margin-top: 14px; max-width: 280px; }
.footer-logo { width: 130px; border-radius: 8px; margin-top: 16px; opacity: 0.9; display: block; }
.footer-col h5 {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 16px;
}
.footer-col a { display: block; padding: 5px 0; font-size: 15px; color: var(--text); opacity: 0.85; transition: opacity 0.2s, transform 0.2s; }
.footer-col a:hover { opacity: 1; transform: translateX(4px); color: var(--mta-yellow); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
  padding: 22px var(--pad) 30px;
  border-top: 1px solid var(--line);
  color: var(--text-dim); font-size: 13px;
}
.footer-led { font-size: 18px; }

/* ============================================================
   SUBPAGES
   ============================================================ */

/* active nav link */
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { transform: scaleX(1); }

/* page hero (compact header band on subpages) */
.page-hero {
  padding: clamp(140px, 20vh, 200px) var(--pad) clamp(48px, 7vh, 80px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 100% at 30% 0%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 30% 0%, black 20%, transparent 70%);
}
.page-hero .crumb {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-dim);
  margin-bottom: 18px;
}
.page-hero h1 {
  font-size: clamp(42px, 7.5vw, 92px);
  font-weight: 900; text-transform: uppercase; letter-spacing: -0.025em;
}
.page-hero .lede { color: var(--text-dim); font-size: 18px; max-width: 620px; margin-top: 16px; }
.page-hero .lede b { color: var(--text); }

/* fleet page product rows */
.product-list { display: flex; flex-direction: column; gap: 18px; }
.product-row {
  --accent: var(--mta-red);
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr auto;
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  position: relative; overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s;
}
.product-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.product-row:hover { transform: translateX(6px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.product-row:hover::before { transform: scaleY(1); }
.product-art { color: var(--accent); }
.product-art svg { width: 100%; height: auto; display: block; }
.product-row:hover .product-art svg .pr-window { fill: #1a2743; }
.product-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.product-head .bullet { width: 38px; height: 38px; font-size: 19px; }
.product-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 900; }
.product-era { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.product-info > p { color: var(--text-dim); font-size: 15px; max-width: 520px; }
.product-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.opt-chip {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  border: 1px solid var(--line); border-radius: 100px;
  padding: 5px 12px; color: var(--text-dim);
}
.product-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.product-buy .price { font-size: 22px; }
.product-buy .price small { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; color: var(--text-dim); text-transform: uppercase; text-align: right; }
.buy-links { display: flex; gap: 10px; }
.btn.btn-small { padding: 11px 20px; font-size: 13px; }
.product-row.sale { border-color: var(--mta-red); }
.sale-badge {
  position: absolute; top: 0; right: 0;
  background: var(--mta-red); color: #fff;
  font-size: 11px; font-weight: 900; letter-spacing: 0.12em;
  padding: 6px 14px; border-radius: 0 0 0 10px;
}
.price-was { text-decoration: line-through; color: var(--text-dim); font-weight: 600; font-size: 15px; margin-right: 8px; }

/* how-to-order strip */
.order-strip {
  margin-top: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--mta-yellow);
  border-radius: var(--radius);
  padding: 28px 30px;
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.order-strip p { color: var(--text-dim); font-size: 15px; max-width: 640px; }
.order-strip p b { color: var(--text); }

/* blog timeline */
.timeline { position: relative; max-width: 860px; padding-left: 40px; }
.timeline::before {
  content: ""; position: absolute; left: 13px; top: 10px; bottom: 10px; width: 6px;
  background: var(--line); border-radius: 3px;
}
.post { position: relative; padding: 26px 0 34px; }
.post::before {
  content: ""; position: absolute; left: -37px; top: 36px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 4px solid var(--mta-orange);
}
.post:first-child::before { border-color: var(--mta-green); }
.post-date {
  display: inline-block;
  font-family: var(--font-led); font-size: 20px; color: var(--led);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.post h2 { font-size: clamp(24px, 3.4vw, 38px); font-weight: 900; margin-bottom: 12px; }
.post p { color: var(--text-dim); font-size: 16px; max-width: 680px; }
.post ul { margin: 14px 0 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.post li { padding-left: 24px; position: relative; font-size: 15px; color: var(--text-dim); }
.post li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--mta-orange);
}
.post .tag-new {
  display: inline-block; margin-left: 10px; vertical-align: middle;
  background: var(--mta-green); color: #fff;
  font-size: 11px; font-weight: 900; letter-spacing: 0.1em; padding: 4px 10px; border-radius: 5px;
}

/* gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.gallery-tile {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px dashed #33333d;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,0.03), transparent 70%),
    var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--text-dim);
  transition: border-color 0.3s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
.gallery-tile:hover { border-color: var(--mta-yellow); transform: translateY(-5px); }
.gallery-tile svg { width: 64px; height: 64px; opacity: 0.5; }
.gallery-tile span { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; }

/* videos */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; max-width: 760px; }
.video-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s;
}
.video-card:hover { transform: translateY(-6px); border-color: var(--mta-red); }
.video-thumb {
  aspect-ratio: 16 / 9;
  background: #0a0a0d;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.video-thumb iframe,
.video-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play-badge {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--mta-red);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.video-card:hover .play-badge { transform: scale(1.12); }
.play-badge::after {
  content: ""; margin-left: 6px;
  border-left: 22px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent;
}
.video-info { padding: 22px 24px 26px; }
.video-info h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.video-info p { color: var(--text-dim); font-size: 14px; }

/* process steps (custom page) */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; max-width: 1100px; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s;
}
.step:hover { transform: translateY(-5px); border-color: #3a3a46; }
.step .bullet { margin-bottom: 16px; }
.step h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 14px; }

/* ---------- real photos ---------- */
.product-art img {
  width: 100%; display: block;
  border-radius: 10px;
  background: #0a0a0d;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-row:hover .product-art img { transform: scale(1.03); }
.thumb-strip {
  display: flex; gap: 8px; margin-top: 16px;
  overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: thin; scrollbar-color: #2e2e36 transparent;
}
.thumb-strip a {
  flex: none; width: 78px; height: 58px;
  border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color 0.25s, transform 0.25s;
}
.thumb-strip a:hover { border-color: var(--accent, var(--mta-yellow)); transform: translateY(-2px); }
.thumb-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}
.photo-grid a {
  display: block; aspect-ratio: 4 / 3;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line);
}
.photo-grid img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
}
.photo-grid a:hover img { transform: scale(1.06); }
.media-band {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
  margin-top: clamp(36px, 5vh, 56px);
}
.media-band a {
  display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
}
.media-band a:first-child { grid-row: span 1; }
.media-band img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.media-band a:hover img { transform: scale(1.04); }
.post-thumbs { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.post-thumbs a {
  width: 132px; height: 96px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color 0.25s, transform 0.25s;
}
.post-thumbs a:hover { border-color: var(--mta-orange); transform: translateY(-3px); }
.post-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.structure-photo {
  display: block; aspect-ratio: 16 / 10; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.structure-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.structure-card:hover .structure-photo img { transform: scale(1.04); }
.card-photo {
  display: block; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 9px; border: 1px solid var(--line);
  margin-bottom: 4px;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.car-card:hover .card-photo img { transform: scale(1.05); }
.gallery-tile { position: relative; }
.gallery-tile > a { position: absolute; inset: 0; }
.gallery-tile.filled { border-style: solid; }
.gallery-tile.filled:hover { border-color: var(--mta-yellow); }

@media (max-width: 800px) {
  .media-band { grid-template-columns: 1fr 1fr; }
  .media-band a:first-child { grid-column: span 2; }
}

/* generic content block */
.content-narrow { max-width: 820px; }
.note-block {
  border-left: 3px solid var(--mta-blue);
  padding-left: 18px; color: var(--text-dim); font-size: 15px;
  max-width: 680px; margin-top: 28px;
}
.note-block b { color: var(--text); }

@media (max-width: 980px) {
  .product-row { grid-template-columns: 1fr; }
  .product-art { max-width: 320px; }
  .product-buy { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .product-buy .price small { text-align: left; }
}

/* ---------- reveal (JS adds .visible) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .shop-console { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .nav { padding-left: 16px; padding-right: 16px; }
  .nav-logo-text { display: none; }
  .nav-links { gap: clamp(8px, 1.5vw, 16px); }
  .nav-links a { font-size: 11px; letter-spacing: 0.035em; }
  .nav-cta:not(.cart-trigger) { display: none; }
  .nav-cta.cart-trigger { padding: 8px 10px; font-size: 11px; }
  .nav-cta-wrap { gap: 8px; }
}
@media (max-width: 600px) {
  .nav-links {
    position: fixed; inset: 0;
    background: rgba(6, 6, 8, 0.97);
    flex-direction: column; align-items: center; justify-content: center; gap: 34px;
    transform: translateY(-102%);
    visibility: hidden;
    transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s 0.45s;
    z-index: -1;
  }
  .nav-links a { font-size: 24px; }
  .nav.open .nav-links { transform: translateY(0); visibility: visible; transition-delay: 0s, 0s; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-burger span { width: 24px; height: 2px; background: var(--text); transition: transform 0.3s, opacity 0.3s; }
  .nav.open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav.open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .shop-console { margin: 0 14px; padding: 22px 18px; }
  .product-config { grid-template-columns: 1fr; }
  .nav-cta.cart-trigger { display: inline-flex; padding: 8px 11px; }
  .footer-cols { grid-template-columns: 1fr; }
  .trackbed { height: 140px; }
  .train-wrap { width: 130vw; bottom: 38px; }
  .arrival-row { flex-wrap: wrap; }
  .nav-cta { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .led-track, .ticker-track, .headlight, .preloader-text, .preloader-arrival, .preloader-progress, .wheel-spoke { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-title .word, .train-wrap, .sign-stripe { transform: none; transition: none; animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- order control ---------- */
.orders-admin-page { min-height: 100vh; background: #0d1014; color: #f4f0e6; }
.orders-admin-page::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .12; background: repeating-linear-gradient(0deg, transparent 0 19px, #fff 20px); }
.admin-header { min-height: 78px; padding: 16px clamp(20px,4vw,64px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #333942; font: 24px/1 "VT323", monospace; letter-spacing: .08em; position: relative; }
.admin-dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: #68b56b; box-shadow: 0 0 0 4px rgba(104,181,107,.14); }
.admin-shell { width: min(1320px, calc(100% - 32px)); margin: 0 auto; padding: clamp(48px,7vw,96px) 0; position: relative; }
.admin-login { max-width: 690px; border-left: 8px solid var(--mta-yellow); padding: 28px 0 28px clamp(20px,4vw,54px); }
.admin-login h1, .admin-dashboard h1 { margin: 4px 0 12px; font-size: clamp(46px,7vw,88px); line-height: .9; text-transform: uppercase; letter-spacing: -.055em; }
.admin-login p { color: #aab0b9; }
.admin-login label, .ship-form label { display: grid; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.admin-login-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 10px; }
.admin-login input, .ship-form input { min-width: 0; border: 1px solid #454c56; border-radius: 3px; background: #171b21; color: #fff; padding: 13px 14px; font: 600 15px "Archivo", sans-serif; outline: none; }
.admin-login input:focus, .ship-form input:focus { border-color: var(--mta-yellow); box-shadow: 0 0 0 3px rgba(245,196,0,.14); }
.admin-message, .row-message { min-height: 20px; color: #d8b94b; font: 18px/1.2 "VT323", monospace; }
.admin-title { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.admin-filter { display: flex; gap: 6px; margin: 28px 0; border-bottom: 1px solid #353b44; }
.admin-filter button { appearance: none; border: 0; border-bottom: 3px solid transparent; background: none; color: #9299a4; padding: 12px 18px; font: 800 12px "Archivo", sans-serif; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.admin-filter button.active { color: #fff; border-color: var(--mta-yellow); }
.orders-list { display: grid; gap: 12px; }
.order-row { display: grid; grid-template-columns: minmax(190px,.7fr) 1fr minmax(300px,1.35fr); gap: 24px; align-items: center; padding: 22px; background: #171b21; border: 1px solid #323842; border-left: 5px solid var(--mta-yellow); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.order-row.is-shipped { border-left-color: #68b56b; }
.order-route { display: grid; gap: 5px; }
.order-route strong { font: 26px/1 "VT323", monospace; letter-spacing: .04em; }
.order-route small, .order-info span { color: #8d95a0; font-size: 12px; }
.order-status { width: fit-content; padding: 4px 7px; background: var(--mta-yellow); color: #141414; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.is-shipped .order-status { background: #68b56b; }
.order-info p { margin: 7px 0; color: #adb3bd; font-size: 13px; line-height: 1.5; }
.ship-form { display: grid; grid-template-columns: 1fr 1.25fr auto; gap: 9px; align-items: end; }
.ship-form label small { color: #7e8691; font-weight: 500; }
.ship-form .row-message { grid-column: 1 / -1; margin: 0; }
.orders-empty { padding: 80px 24px; border: 1px dashed #424953; text-align: center; }
.orders-empty span { font: 30px "VT323", monospace; }
.orders-empty p { color: #858d98; }
@media (max-width: 1000px) { .order-row { grid-template-columns: .7fr 1.3fr; } .ship-form { grid-column: 1 / -1; } }
@media (max-width: 650px) { .admin-header > div { font-size: 18px; } .admin-login-row, .order-row, .ship-form { grid-template-columns: 1fr; } .admin-title { align-items: start; flex-direction: column; } .admin-filter { overflow-x: auto; } .ship-form { grid-column: auto; } .ship-form .row-message { grid-column: auto; } }
