/* RailVerse website: orange poster hero, cream content, dark depot. Fonts are the game's own (assets/fonts, OFL). */
@font-face { font-family: 'Plus Jakarta Sans'; src: url('assets/fonts/plus-jakarta-sans.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('assets/fonts/barlow-condensed-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('assets/fonts/barlow-condensed-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --orange: #ff6a13;
  --orange-hi: #ff9447;
  --orange-d: #c94a00;
  --amber: #ffb627;
  --ink: #1d120b;
  --ink-2: #2a1a10;
  --ink-3: #3d2819;
  --cream: #fff5e8;
  --paper: #fffaf3;
  --sand: #f8e6cf;
  --text: #24170f;
  --muted: #6b5444;
  --line: rgba(36, 23, 15, 0.14);
  --on-dark: #fff3e3;
  --on-dark-muted: #d4bda6;
  --lamp-green: #34e08a;
  --lamp-yellow: #ffc61a;
  --lamp-red: #ff3d2e;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --header-h: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 0.95; letter-spacing: 0.005em; text-transform: uppercase; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--amber); }

.wrap { width: min(100%, var(--wrap)); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--on-dark); border-radius: 10px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 15px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange-d); }
.eyebrow::before { content: ''; width: 28px; height: 6px; border-radius: 3px; background: currentColor; }
.on-dark .eyebrow { color: var(--orange-hi); }

/* ------------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--orange); transition: background-color .25s, box-shadow .25s; }
.site-header.is-scrolled { background: var(--cream); box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(29, 18, 11, .5); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 2px var(--ink); }
.brand span { font: 700 26px/1 var(--display); letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink); }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); transition: background-color .2s; }
.main-nav a:hover { background: rgba(29, 18, 11, .1); }
.main-nav a[aria-current="page"] { background: var(--ink); color: var(--on-dark); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(29, 18, 11, .12); }
.lang-switch button { border: 0; background: transparent; color: var(--ink); font: 700 13px/1 var(--body); padding: 7px 10px; border-radius: 999px; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--paper); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.header-cta { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--on-dark); text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; }
.header-cta:hover { background: var(--ink-3); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: rgba(29, 18, 11, .12); cursor: pointer; position: relative; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { position: absolute; left: 11px; width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); content: ''; transition: transform .25s, opacity .2s; }
.menu-toggle span { top: 20px; }
.menu-toggle span::before { left: 0; top: -7px; }
.menu-toggle span::after { left: 0; top: 7px; }
.is-open .menu-toggle span { background: transparent; }
.is-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.is-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------ buttons */
.store-links { display: flex; flex-wrap: wrap; gap: 12px; }
.store-button { display: inline-flex; align-items: center; gap: 12px; min-width: 196px; padding: 10px 20px 10px 16px; border-radius: 14px; background: var(--ink); color: var(--on-dark); text-decoration: none; box-shadow: 0 6px 0 -1px rgba(0, 0, 0, .25); transition: transform .15s, box-shadow .15s; }
.store-button:hover { transform: translateY(-2px); box-shadow: 0 9px 0 -2px rgba(0, 0, 0, .25); }
.store-button:active { transform: translateY(2px); box-shadow: 0 2px 0 -1px rgba(0, 0, 0, .25); }
.store-button svg { width: 26px; height: 30px; flex: none; }
.store-button span { display: flex; flex-direction: column; line-height: 1.1; }
.store-button small { font-size: 12px; opacity: .8; }
.store-button strong { font-size: 19px; letter-spacing: -0.01em; }
.store-button-light { background: var(--paper); color: var(--ink); }
.store-button .soon { display: none; }
.store-button.is-soon { opacity: .6; cursor: default; box-shadow: none; transform: none; }
.store-button.is-soon .soon { display: inline; }
.store-button.is-soon .ready { display: none; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 44%, rgba(255, 220, 160, .55), transparent 34%),
    radial-gradient(rgba(29, 18, 11, .08) 1.2px, transparent 1.4px) 0 0 / 14px 14px,
    var(--orange);
  padding: clamp(28px, 6vw, 72px) 0 0;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.hero-copy { position: relative; z-index: 2; padding-bottom: clamp(40px, 7vw, 96px); }
.sign { display: inline-block; position: relative; margin-bottom: 26px; padding: 8px 18px 7px; background: var(--paper); border: 3px solid var(--ink); border-radius: 6px; font: 700 17px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.sign::before, .sign::after { content: ''; position: absolute; top: 100%; width: 5px; height: 14px; background: var(--ink); }
.sign::before { left: 18%; }
.sign::after { right: 18%; }
.hero h1 { font-size: clamp(54px, 7.2vw, 100px); color: var(--ink); }
.hero h1 span { display: block; }
.hero h1 .hl { display: inline-block; margin-top: 10px; padding: 4px 18px 0; background: var(--ink); color: var(--orange-hi); transform: rotate(-1.6deg); transform-origin: left; border-radius: 6px; }
.hero-text { max-width: 33em; margin: 26px 0 30px; font-size: clamp(17px, 1.6vw, 19px); color: rgba(29, 18, 11, .86); font-weight: 500; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 0; margin-top: 34px; padding-top: 22px; border-top: 3px solid rgba(29, 18, 11, .85); }
.hero-stats div { flex: 1 1 25%; min-width: 72px; padding-right: 10px; }
.hero-stats strong { display: block; font: 700 clamp(38px, 4.4vw, 54px)/0.9 var(--display); color: var(--ink); }
.hero-stats span { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(29, 18, 11, .75); }

/* The logo stands at the far end of a track that runs down to the bottom of the hero. */
.hero-art { position: relative; z-index: 1; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 150px; }
.hero-logo { position: relative; z-index: 2; width: min(100%, 540px); margin: 0 auto; filter: drop-shadow(0 18px 24px rgba(80, 26, 0, .35)); animation: hero-float 6s ease-in-out infinite; }
@keyframes hero-float { 50% { transform: translateY(-8px); } }

/* A floor plane in 3D: the sleepers scroll towards the reader. */
.track { position: absolute; left: 0; right: 0; bottom: 0; height: 210px; perspective: 300px; perspective-origin: 50% 0; overflow: hidden; pointer-events: none; z-index: 1; }
.track-plane {
  position: absolute; top: 0; left: 50%; width: 76px; height: 600px; margin-left: -38px;
  transform-origin: 50% 0; transform: rotateX(80deg);
  background:
    linear-gradient(90deg, transparent 18%, #8d8f94 18%, #e9eaec 21%, #8d8f94 24%, transparent 24%, transparent 76%, #8d8f94 76%, #e9eaec 79%, #8d8f94 82%, transparent 82%),
    repeating-linear-gradient(180deg, transparent 0 5px, #4a2d1a 5px 8px),
    linear-gradient(90deg, transparent 9%, #7a6a5c 9%, #9a8a7b 50%, #7a6a5c 91%, transparent 91%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%);
  mask-image: linear-gradient(180deg, transparent, #000 22%);
  animation: sleepers .42s linear infinite;
}
@keyframes sleepers { to { background-position: 0 0, 0 8px, 0 0; } }

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { margin-top: 14px; font-size: clamp(42px, 5.6vw, 72px); }
.section-head p { margin-top: 18px; max-width: 40em; color: var(--muted); font-size: 18px; }
.on-dark .section-head p { color: var(--on-dark-muted); }

/* features as stops on a line map */
.line-map { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px 32px; }
.stop { position: relative; padding-top: 50px; }
.stop::before { content: ''; position: absolute; top: 11px; left: 0; right: -32px; height: 8px; border-radius: 4px; background: var(--orange); }
.stop:nth-child(3n)::before { right: 0; }
.stop::after { content: ''; position: absolute; top: 1px; left: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); border: 6px solid var(--ink); }
.stop-code { display: inline-block; margin-bottom: 10px; padding: 3px 9px 2px; border-radius: 6px; background: var(--ink); color: var(--paper); font: 700 15px/1.2 var(--display); letter-spacing: 0.12em; }
.stop h3 { font-size: 30px; margin-bottom: 10px; }
.stop p { color: var(--muted); font-size: 16px; }

/* five steps at every station */
.steps-band { background: var(--sand); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 18px 0 0; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 16px; border-radius: 14px; background: var(--orange); border: 3px solid var(--ink); font: 700 30px/1 var(--display); color: var(--ink); position: relative; z-index: 1; }
.steps li::after { content: ''; position: absolute; top: 25px; left: 54px; right: 0; border-top: 3px dashed rgba(29, 18, 11, .45); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 24px; margin-bottom: 6px; }
.steps p { font-size: 15px; color: var(--muted); }

/* the depot: dark section with the trains */
.depot { background: radial-gradient(circle at 15% 0%, rgba(255, 106, 19, .2), transparent 40%), var(--ink); color: var(--on-dark); }
.trains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.train { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--ink-2); border: 1px solid rgba(255, 243, 227, .08); overflow: hidden; transition: transform .2s, border-color .2s; }
.train:hover { transform: translateY(-4px); border-color: rgba(255, 148, 71, .5); }
.train-art { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(ellipse at 50% 78%, rgba(255, 148, 71, .35), transparent 62%), linear-gradient(180deg, #3a2516, #2a1a10); }
.train-art img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 4% 6% 2%; transition: transform .35s; }
.train:hover .train-art img { transform: translateX(10px); }
.train-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.train-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.train h3 { font-size: 34px; }
.train-top .free { font: 700 20px/1 var(--display); letter-spacing: 0.03em; color: var(--lamp-green); white-space: nowrap; }
.train-kind { color: var(--on-dark-muted); font-size: 15px; }
.depot-sub { margin: clamp(44px, 6vw, 72px) 0 22px; }
.depot-sub h3 { font-size: clamp(30px, 3.6vw, 42px); }
.depot-sub p { margin-top: 10px; max-width: 40em; color: var(--on-dark-muted); font-size: 17px; }
.unlocks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.unlocks span { padding: 3px 10px; border-radius: 999px; background: rgba(255, 148, 71, .14); color: var(--orange-hi); font-size: 13px; font-weight: 700; }

/* call to action with a signal that clears to green */
.cta { position: relative; overflow: hidden; background: radial-gradient(rgba(29, 18, 11, .08) 1.2px, transparent 1.4px) 0 0 / 14px 14px, var(--orange); }
.cta-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.cta h2 { font-size: clamp(48px, 7vw, 92px); color: var(--ink); }
.cta p { margin: 18px 0 28px; max-width: 32em; font-size: 18px; font-weight: 500; color: rgba(29, 18, 11, .86); }
.signal { display: flex; flex-direction: column; align-items: center; }
.signal-head { display: flex; flex-direction: column; gap: 12px; padding: 18px 16px; border-radius: 40px; background: var(--ink); box-shadow: 0 0 0 4px rgba(29, 18, 11, .25), 0 24px 40px -18px rgba(0, 0, 0, .6); }
.lamp { width: 58px; height: 58px; border-radius: 50%; background: #3a2a20; box-shadow: inset 0 4px 8px rgba(0, 0, 0, .6); position: relative; }
.lamp::after { content: ''; position: absolute; left: -6px; right: -6px; top: -8px; height: 30px; border-top: 7px solid #0d0805; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.lamp-green.is-lit { background: var(--lamp-green); box-shadow: 0 0 26px 4px rgba(52, 224, 138, .7), inset 0 -6px 10px rgba(0, 0, 0, .2); }
.lamp-yellow.is-lit { background: var(--lamp-yellow); box-shadow: 0 0 26px 4px rgba(255, 198, 26, .7), inset 0 -6px 10px rgba(0, 0, 0, .2); }
.lamp-red.is-lit { background: var(--lamp-red); box-shadow: 0 0 26px 4px rgba(255, 61, 46, .7), inset 0 -6px 10px rgba(0, 0, 0, .2); }
.signal-post { width: 14px; height: 120px; background: linear-gradient(90deg, #2b1d14, #5a4434, #2b1d14); }
.signal-base { width: 70px; height: 14px; border-radius: 4px 4px 0 0; background: var(--ink); }

/* ------------------------------------------------------------------ policy pages */
.page-hero { position: relative; background: radial-gradient(rgba(29, 18, 11, .08) 1.2px, transparent 1.4px) 0 0 / 14px 14px, var(--orange); padding: clamp(36px, 6vw, 72px) 0 clamp(40px, 6vw, 64px); border-bottom: 3px solid var(--ink); }
.page-hero h1 { font-size: clamp(50px, 8vw, 100px); color: var(--ink); max-width: 12em; }
.page-hero p { margin-top: 18px; max-width: 40em; font-size: 18px; font-weight: 500; color: rgba(29, 18, 11, .86); }
.page-hero p a { font-weight: 700; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; font-weight: 700; text-decoration: none; color: var(--ink); }
.back-link:hover span:last-child { text-decoration: underline; }
.policy-date { display: inline-block; margin-top: 22px; padding: 6px 14px; border-radius: 999px; background: var(--ink); color: var(--on-dark); font-size: 14px; font-weight: 600; }
.policy-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(64px, 9vw, 110px); align-items: start; }
.policy-nav { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 2px; padding-left: 18px; border-left: 3px solid var(--line); }
.policy-nav p { margin-bottom: 10px; font: 700 14px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.policy-nav a { position: relative; padding: 6px 0; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--muted); }
.policy-nav a:hover { color: var(--text); }
.policy-nav a.is-current { color: var(--orange-d); }
.policy-nav a.is-current::before { content: ''; position: absolute; left: -21px; top: 6px; bottom: 6px; width: 3px; background: var(--orange); }
.policy-article { max-width: 760px; }
.policy-article section + section { margin-top: 44px; padding-top: 40px; border-top: 1px solid var(--line); }
.policy-article h2 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 16px; }
.policy-article p + p { margin-top: 14px; }
.policy-article a { color: var(--orange-d); font-weight: 600; text-underline-offset: 3px; }
.policy-article ul { margin: 14px 0 0; padding-left: 22px; }
.policy-article li + li { margin-top: 6px; }
.contact-address a { display: inline-block; margin: 2px 0; padding: 10px 18px; border-radius: 12px; background: var(--ink); color: var(--on-dark) !important; text-decoration: none; font-weight: 700; }

/* ------------------------------------------------------------------ footer */
.site-footer { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark-muted); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 36px; }
.footer-brand strong { display: block; margin-bottom: 10px; font: 700 34px/1 var(--display); text-transform: uppercase; color: var(--on-dark); }
.footer-brand p { max-width: 24em; font-size: 15px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h2 { margin-bottom: 6px; font-size: 18px; letter-spacing: 0.14em; color: var(--orange-hi); }
.footer-col a { text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--on-dark); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 243, 227, .12); font-size: 13px; }
.footer-rail { position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(90deg, var(--orange) 0 26px, var(--ink) 26px 34px); opacity: .9; }

/* ------------------------------------------------------------------ reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal[data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 2px; margin: 0; padding: 10px var(--gutter) 18px; background: var(--cream); box-shadow: 0 18px 30px -20px rgba(0, 0, 0, .5); border-bottom: 3px solid var(--ink); display: none; }
  .is-open .main-nav { display: flex; }
  .main-nav a { padding: 12px 14px; font-size: 16px; }
  .header-tools { margin-left: auto; }
  .is-open.site-header { background: var(--cream); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 0; }
  .steps li:nth-child(3)::after { display: none; }
}
@media (max-width: 760px) {
  .trains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .line-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stop:nth-child(3n)::before { right: -24px; }
  .stop:nth-child(2n)::before { right: 0; }
}
@media (max-width: 860px) {
  .trains { gap: 16px; }
  .line-map { column-gap: 24px; }
  .stop::before { right: -24px; }
  .policy-layout { grid-template-columns: 1fr; }
  .policy-nav { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
/* A landscape phone (about 850 x 380): the hero keeps two columns but shrinks. */
@media (max-width: 860px) and (min-width: 600px) {
  .hero h1 { font-size: clamp(44px, 7.4vw, 64px); }
  .hero-stats strong { font-size: 34px; }
  .hero-text { margin: 18px 0 22px; font-size: 16px; }
}
/* Short landscape screens (phones held sideways): a lower header and a compact hero. */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --header-h: 56px; }
  .brand img { width: 34px; height: 34px; border-radius: 9px; }
  .brand span { font-size: 23px; }
  .hero { padding-top: 22px; }
  .sign { margin-bottom: 18px; font-size: 14px; padding: 6px 14px 5px; }
  .hero h1 { font-size: clamp(36px, 5.2vw, 56px); }
  .hero h1 .hl { margin-top: 6px; padding: 3px 12px 0; }
  .hero-text { margin: 14px 0 18px; font-size: 15px; }
  .hero-stats { margin-top: 20px; padding-top: 14px; }
  .hero-stats strong { font-size: 32px; }
  .hero-copy { padding-bottom: 40px; }
  .hero-art { padding-bottom: 110px; }
  .track { height: 160px; perspective: 230px; }
  .track-plane { width: 56px; margin-left: -28px; }
  .store-links { gap: 10px; }
  .store-button { min-width: 0; padding: 8px 14px 8px 12px; gap: 10px; }
  .store-button svg { width: 22px; height: 26px; }
  .store-button strong { font-size: 16px; }
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 30px; }
  .section-head h2 { font-size: clamp(34px, 5vw, 52px); }
  .page-hero h1 { font-size: clamp(40px, 6vw, 64px); }
}
@media (max-width: 599px) {
  body { font-size: 16px; }
  .header-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art { padding-bottom: 64px; }
  .hero-logo { width: min(86%, 420px); }
  .hero-copy { padding-bottom: 56px; }
  .track { height: 110px; perspective: 160px; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
  .track-plane { width: 60px; margin-left: -30px; }
  .line-map { grid-template-columns: 1fr; gap: 0; }
  .stop { padding: 0 0 34px 50px; }
  .stop::before, .stop:nth-child(n)::before { top: 0; bottom: 0; left: 10px; right: auto; width: 8px; height: auto; }
  .stop:last-child::before { bottom: auto; height: 28px; }
  .stop::after { top: 0; }
  .stop-code { margin-top: 2px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps li { display: grid; grid-template-columns: 54px 1fr; column-gap: 16px; padding: 0; }
  .steps li::before { grid-row: 1 / 3; margin: 0; }
  .steps li::after { display: block !important; top: 54px; bottom: -22px; left: 25px; right: auto; border-top: 0; border-left: 3px dashed rgba(29, 18, 11, .45); }
  .steps li:last-child::after { display: none !important; }
  .trains { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; justify-items: start; }
  .signal { flex-direction: row; align-items: center; }
  .signal-head { flex-direction: row; padding: 12px 16px; }
  .lamp { width: 40px; height: 40px; }
  .signal-post, .signal-base { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .site-footer, .policy-nav, .skip-link, .back-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .page-hero { background: none; border: 0; padding: 0 0 12pt; }
  .policy-layout { display: block; padding: 0; }
  .policy-date { background: none; color: #000; padding: 0; }
  .policy-article a { color: #000; }
  .contact-address a { background: none; color: #000 !important; padding: 0; }
}
