/* ============================================================
   HZYMTR — World Transit System
   A block-built city, a line without an end.
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "MiSans";
  src: url("../fonts/misans-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Smiley Sans";
  src: url("../fonts/smiley-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-latin-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plex-mono-latin-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plex-mono-latin-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plex-mono-latin-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Silkscreen";
  src: url("../fonts/silkscreen-latin-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Silkscreen";
  src: url("../fonts/silkscreen-latin-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --ink: #0e1913;
  --ink-soft: #13251c;
  --paper: #f1e9da;
  --paper-deep: #e6dcc9;
  --coral: #ff5b35;
  --coral-deep: #cf3e1f;
  --lime: #d7f26a;
  --mint: #b9dcd4;
  --moss: #16382b;

  --font-cn: "Smiley Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-sans: "MiSans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-en: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --font-pixel: "Silkscreen", "Courier New", monospace;

  --header-h: 84px;
  --edge: clamp(20px, 4.2vw, 72px);
  --line: rgba(14, 25, 19, 0.18);
  --line-light: rgba(241, 233, 218, 0.18);
  --muted: rgba(14, 25, 19, 0.62);
  --muted-light: rgba(241, 233, 218, 0.62);
  --shadow-hard: 6px 6px 0 var(--ink);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 10px);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.is-loading {
  overflow: hidden;
}
body.menu-open {
  overflow: hidden;
}
main {
  display: block;
}
h1, h2, h3, h4, p, figure, blockquote {
  margin: 0;
}
ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}
img, svg {
  display: block;
  max-width: 100%;
}
svg {
  overflow: visible;
}
::selection {
  background: var(--coral);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
.is-hidden {
  display: none !important;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: 1520px;
  margin-inline: auto;
  padding-inline: var(--edge);
}
.section-pad {
  padding-block: clamp(92px, 12vw, 176px);
}
.display {
  font-family: var(--font-cn);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.035em;
}
.text-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  text-stroke: 1.5px var(--ink);
}
.text-coral {
  color: var(--coral);
}
.mobile-break {
  display: none;
}
.micro-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}
.micro-label::before {
  width: 18px;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.6;
}
.section-index {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(24px, 3vw, 38px);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}
.section-index span {
  color: var(--coral);
  font-family: var(--font-pixel);
  font-size: 11px;
}
.section-index i {
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}
.section-index--light {
  color: var(--muted-light);
}
.section-index--light span {
  color: var(--lime);
}
.section-head {
  position: relative;
  margin-bottom: clamp(48px, 6.2vw, 92px);
}
.section-head-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  align-items: end;
  gap: clamp(28px, 6vw, 92px);
}
.section-head h2 {
  font-size: clamp(3.1rem, 8vw, 8.8rem);
  line-height: 1.16;
}
.section-lead {
  max-width: 340px;
  padding-bottom: 10px;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.1vw, 1.06rem);
  line-height: 1.9;
}
.section-head--light .section-lead {
  color: var(--muted-light);
}
.section-head--light h2 {
  color: var(--paper);
}
.slot {
  display: inline-block;
  min-width: 2.8em;
  border-bottom: 1px dashed currentColor;
  font-style: normal;
  letter-spacing: 0.02em;
  opacity: 0.7;
}
.slot--light {
  color: var(--paper);
  opacity: 0.55;
}
.slot--ink {
  color: var(--ink);
  opacity: 0.55;
}
.inline-link {
  display: inline;
  border-bottom: 1px solid currentColor;
  color: inherit;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.inline-link:hover {
  border-color: var(--coral);
  color: var(--coral);
}
.skip-link {
  position: fixed;
  z-index: 3000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform 0.25s ease;
}
.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Noise / progress ---------- */
.noise {
  position: fixed;
  z-index: 1200;
  inset: 0;
  pointer-events: none;
  background-image: url("../img/noise.png");
  background-size: 140px 140px;
  mix-blend-mode: multiply;
  opacity: 0.36;
}
.page-progress {
  position: fixed;
  z-index: 1500;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 91, 53, 0.12);
  pointer-events: none;
}
.page-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 52px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1;
  text-align: center;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-arrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  transition: transform 0.25s var(--ease-out);
}
.btn:hover .btn-arrow {
  transform: translate(2px, 2px);
}
.btn:active {
  transform: translate(2px, 2px);
}
.btn--solid {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 5px 5px 0 var(--coral);
}
.btn--solid:hover {
  box-shadow: 8px 8px 0 var(--coral);
  transform: translate(-2px, -2px);
}
.btn--ghost {
  background: transparent;
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 4px 4px 0 rgba(14, 25, 19, 0.2);
  transform: translate(-2px, -2px);
}
.btn--header {
  min-height: 40px;
  padding: 0 16px;
  border-width: 1px;
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
}
.btn--header:hover {
  background: var(--coral);
  color: var(--ink);
}
.btn--header .btn-arrow {
  font-size: 13px;
}
.btn--address {
  justify-content: flex-start;
  gap: 11px;
}
.address-label {
  color: currentColor;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.55;
}
.address-value {
  color: currentColor;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}
.btn--address .btn-arrow {
  margin-left: auto;
}
.btn--ink {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 4px 4px 0 rgba(14, 25, 19, 0.18);
}
.btn--ink:hover {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  transform: translate(-2px, -2px);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 0 0 6px;
  border-bottom: 1px solid var(--ink);
  background: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.text-link span {
  transition: transform 0.25s var(--ease-out);
}
.text-link:hover {
  color: var(--coral-deep);
  border-color: var(--coral-deep);
}
.text-link:hover span {
  transform: translateX(4px);
}
.text-link--ink {
  border-color: var(--ink);
  color: var(--ink);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.status-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(215, 242, 106, 0.12);
  animation: statusPulse 2.8s ease-in-out infinite;
}
.status-pill--light i {
  background: var(--lime);
}
.status-pill.is-offline i {
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 91, 53, 0.14);
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  z-index: 2500;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 3.4vw, 54px) var(--edge);
  background: var(--ink);
  color: var(--paper);
  transition: transform 1s var(--ease-smooth), opacity 0.8s var(--ease-smooth);
  will-change: transform;
}
.loader.is-done {
  transform: translate3d(0, -102%, 0);
  opacity: 0.94;
  pointer-events: none;
}
.loader-top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: rgba(241, 233, 218, 0.42);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  line-height: 1.6;
  text-transform: uppercase;
}
.loader-center {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-left: clamp(0px, 7vw, 120px);
}
.loader-en {
  color: var(--paper);
  font-family: var(--font-en);
  font-size: clamp(4.2rem, 11.5vw, 11rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 0.82;
}
.loader-cn {
  margin-top: clamp(20px, 3vw, 38px);
  color: var(--coral);
  font-family: var(--font-cn);
  font-size: clamp(1.3rem, 2.3vw, 2.2rem);
  letter-spacing: 0.12em;
}
.loader-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.loader-track {
  position: relative;
  width: 100%;
  height: 2px;
  overflow: visible;
  background: rgba(241, 233, 218, 0.16);
}
.loader-train {
  position: absolute;
  top: -4px;
  left: 0;
  display: block;
  width: 34px;
  height: 10px;
  background: var(--coral);
  animation: loaderRun 1.35s var(--ease-out) infinite;
}
.loader-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(241, 233, 218, 0.52);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}
.loader-meta span:last-child {
  color: var(--lime);
  font-family: var(--font-pixel);
  font-size: 11px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  z-index: 900;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: transform 0.5s var(--ease-smooth), background-color 0.35s ease,
    border-color 0.35s ease, backdrop-filter 0.35s ease;
}
.site-header.is-scrolled {
  border-color: rgba(14, 25, 19, 0.12);
  background: rgba(241, 233, 218, 0.88);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
}
.site-header.is-hidden {
  transform: translate3d(0, -102%, 0);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  height: var(--header-h);
  padding-inline: var(--edge);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand-mark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  padding: 0 6px;
  background: var(--ink);
}
.brand-mark i {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--paper);
}
.brand-mark i:nth-child(2) {
  width: 68%;
  background: var(--coral);
}
.brand-mark i:nth-child(3) {
  width: 42%;
}
.brand-type {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-en);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.85;
}
.brand-type small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 6px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
  margin-left: auto;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}
.nav-link i {
  color: var(--coral-deep);
  font-family: var(--font-mono);
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.02em;
  opacity: 0.7;
}
.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.3s var(--ease-out);
}
.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}
.nav-link.is-active i {
  color: var(--coral);
  opacity: 1;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 22px);
  flex: none;
}
.header-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.header-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6da63c;
  box-shadow: 0 0 0 3px rgba(109, 166, 60, 0.12);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.header-live.is-offline i {
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 91, 53, 0.14);
}
.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.menu-toggle-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 20px;
  height: 14px;
}
.menu-toggle-icon i {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), width 0.3s ease;
}
.menu-toggle-icon i:last-child {
  width: 70%;
  margin-left: auto;
}
body.menu-open .site-header {
  border-color: transparent;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.menu-open .brand-type,
body.menu-open .menu-toggle {
  color: var(--paper);
}
body.menu-open .brandmark,
body.menu-open .brand-mark {
  background: var(--paper);
}
body.menu-open .brand-mark i {
  background: var(--ink);
}
body.menu-open .brand-mark i:nth-child(2) {
  background: var(--coral);
}
body.menu-open .brand-type small {
  color: rgba(241, 233, 218, 0.55);
}
body.menu-open .menu-toggle-icon i {
  background: var(--paper);
}
body.menu-open .menu-toggle-icon i:first-child {
  transform: translateY(2.5px) rotate(45deg);
}
body.menu-open .menu-toggle-icon i:last-child {
  width: 100%;
  transform: translateY(-2.5px) rotate(-45deg);
}
body.menu-open .primary-nav,
body.menu-open .header-live,
body.menu-open .btn--header {
  pointer-events: none;
  opacity: 0;
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  z-index: 800;
  inset: 0;
  overflow: auto;
  background: var(--ink);
  color: var(--paper);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, -24px, 0);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out),
    visibility 0.45s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
}
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: calc(var(--header-h) + 20px) var(--edge) 30px;
}
.mobile-menu-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-light);
  color: var(--muted-light);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin-block: auto;
  padding-block: 34px;
}
.mobile-nav a {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(241, 233, 218, 0.1);
  transition: color 0.25s ease, padding-left 0.3s var(--ease-out);
}
.mobile-nav a:first-child {
  border-top: 1px solid rgba(241, 233, 218, 0.1);
}
.mobile-nav .num {
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 9px;
}
.mobile-nav .cn {
  font-family: var(--font-cn);
  font-size: clamp(2.4rem, 9vw, 4.6rem);
  line-height: 1;
}
.mobile-nav .en {
  align-self: center;
  color: rgba(241, 233, 218, 0.42);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}
.mobile-nav a:hover {
  padding-left: 8px;
  color: var(--lime);
}
.mobile-menu-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
}
.menu-ticket {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: rgba(241, 233, 218, 0.5);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}
.menu-ticket strong {
  color: var(--paper);
  font-family: var(--font-cn);
  font-size: 1.2rem;
  font-weight: 400;
}
.menu-ticket small {
  color: var(--coral);
  font-size: 8px;
}
.menu-train {
  width: min(42vw, 430px);
  overflow: hidden;
  opacity: 0.75;
}
.menu-train img {
  display: block;
  width: 340%;
  max-width: none;
  margin-left: -120%;
  height: auto;
}

/* ---------- Page HUD ---------- */
.page-hud {
  position: fixed;
  z-index: 600;
  top: 50%;
  right: clamp(10px, 1.7vw, 28px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  color: #fff;
  mix-blend-mode: difference;
  transform: translateY(-50%);
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
body.hud-suppressed .page-hud,
body.at-footer .page-hud {
  visibility: hidden;
  opacity: 0;
}
.hud-caption {
  writing-mode: vertical-rl;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
}
.hud-route {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 17px;
  padding-block: 4px;
  pointer-events: auto;
}
.hud-track {
  position: absolute;
  top: 6px;
  right: 4px;
  bottom: 6px;
  width: 1px;
  background: rgba(255, 255, 255, 0.32);
}
.hud-route a {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  line-height: 1;
}
.hud-route a i {
  display: block;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: transparent;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.hud-route a span {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  transition: max-width 0.35s var(--ease-out), opacity 0.25s ease;
}
.hud-route a:hover span,
.hud-route a.is-active span {
  max-width: 70px;
  opacity: 1;
}
.hud-route a.is-active i {
  background: #fff;
  transform: scale(1.15);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(24px, 5vh, 58px));
  padding-bottom: 196px;
  overflow: hidden;
  background: var(--paper);
}
.hero-bg {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(14, 25, 19, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 25, 19, 0.055) 1px, transparent 1px);
  background-size: clamp(60px, 6vw, 96px) clamp(60px, 6vw, 96px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.45) 56%, transparent 88%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.45) 56%, transparent 88%);
}
.hero-sun {
  position: absolute;
  top: clamp(80px, 11vh, 150px);
  right: clamp(-180px, -6vw, -40px);
  width: clamp(300px, 39vw, 650px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--coral);
  transform: translate3d(0, var(--parallax-y, 0), 0);
  will-change: transform;
}
.hero-sun::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    to bottom,
    transparent 0 33%,
    rgba(241, 233, 218, 0.14) 33% 38%,
    transparent 38% 66%,
    rgba(241, 233, 218, 0.1) 66% 69%,
    transparent 69%
  );
  content: "";
}
.hero-sun::after {
  position: absolute;
  top: 12%;
  left: -24%;
  width: 148%;
  height: 1px;
  background: rgba(14, 25, 19, 0.2);
  content: "";
  transform: rotate(-22deg);
}
.cloud {
  position: absolute;
  display: flex;
  align-items: flex-end;
  gap: 0;
  opacity: 0.72;
  filter: drop-shadow(6px 6px 0 rgba(14, 25, 19, 0.04));
}
.cloud i {
  display: block;
  height: 18px;
  background: #faf3e7;
}
.cloud i:nth-child(1) {
  width: 34px;
  height: 12px;
}
.cloud i:nth-child(2) {
  width: 72px;
  height: 26px;
}
.cloud i:nth-child(3) {
  width: 44px;
  height: 15px;
}
.cloud--one {
  top: 23vh;
  left: 42vw;
  animation: cloudDrift 16s ease-in-out infinite alternate;
}
.cloud--two {
  top: 39vh;
  left: 3vw;
  transform: scale(0.72);
  opacity: 0.5;
  animation: cloudDrift 22s ease-in-out -8s infinite alternate-reverse;
}
.cloud--two i:nth-child(2) {
  width: 102px;
  height: 18px;
}
.hero-mountain {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
}
.hero-mountain--back {
  bottom: 138px;
  height: clamp(160px, 27vh, 270px);
  background: #bdcdb5;
  clip-path: polygon(
    0 72%, 0 58%, 4% 58%, 4% 48%, 9% 48%, 9% 60%, 14% 60%, 14% 38%, 17% 38%, 17% 28%,
    22% 28%, 22% 38%, 27% 38%, 27% 20%, 30% 20%, 30% 10%, 34% 10%, 34% 28%, 40% 28%,
    40% 44%, 46% 44%, 46% 30%, 50% 30%, 50% 16%, 54% 16%, 54% 28%, 59% 28%, 59% 48%,
    64% 48%, 64% 34%, 69% 34%, 69% 18%, 74% 18%, 74% 32%, 79% 32%, 79% 46%, 84% 46%,
    84% 30%, 88% 30%, 88% 20%, 91% 20%, 91% 34%, 95% 34%, 95% 50%, 100% 50%, 100% 100%, 0 100%
  );
}
.hero-mountain--mid {
  bottom: 138px;
  height: clamp(120px, 19vh, 200px);
  background: #8fa88b;
  opacity: 0.8;
  clip-path: polygon(
    0 76%, 0 62%, 5% 62%, 5% 52%, 11% 52%, 11% 64%, 16% 64%, 16% 44%, 21% 44%, 21% 32%,
    25% 32%, 25% 52%, 31% 52%, 31% 40%, 36% 40%, 36% 58%, 42% 58%, 42% 46%, 47% 46%,
    47% 34%, 51% 34%, 51% 22%, 55% 22%, 55% 40%, 60% 40%, 60% 54%, 67% 54%, 67% 38%,
    72% 38%, 72% 26%, 77% 26%, 77% 46%, 83% 46%, 83% 36%, 88% 36%, 88% 54%, 94% 54%,
    94% 44%, 100% 44%, 100% 100%, 0 100%
  );
}
.hero-ground {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(138px, 17vh, 178px);
  background: var(--ink);
}
.hero-ground::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background-image: linear-gradient(to right, var(--lime) 0 45px, var(--ink) 45px 70px);
  background-size: 70px 100%;
  content: "";
  opacity: 0.85;
}
.hero-ghost {
  position: absolute;
  z-index: 1;
  bottom: clamp(148px, 19vh, 205px);
  left: -0.8vw;
  color: transparent;
  font-family: var(--font-en);
  font-size: clamp(8rem, 20vw, 20rem);
  line-height: 0.7;
  -webkit-text-stroke: 1px rgba(14, 25, 19, 0.12);
  letter-spacing: 0.005em;
  white-space: nowrap;
  transform: translate3d(0, var(--parallax-y, 0), 0);
  will-change: transform;
}
.hero-rail {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: clamp(76px, 9.5vh, 100px);
  left: 0;
  height: 22px;
}
.rail-line {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--ink);
  box-shadow: 0 5px 0 rgba(241, 233, 218, 0.12);
}
.rail-sleepers {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 10px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(241, 233, 218, 0.22) 0 4px,
    transparent 4px 34px
  );
  opacity: 0.75;
}
.hero-train-clip {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: clamp(88px, 8.8vw, 128px);
  overflow: hidden;
  pointer-events: none;
}
.hero-train {
  position: absolute;
  bottom: 0;
  left: 0;
  width: clamp(1200px, 120vw, 1900px);
  animation: heroTrain 28s linear 1.2s infinite;
  will-change: transform;
}
.hero-train .train-art {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 0 rgba(241, 233, 218, 0.08));
}
.hero-coords {
  position: absolute;
  top: 33vh;
  right: 2.2vw;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
  opacity: 0.6;
}
.hero-inner {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: center;
  gap: clamp(36px, 6vw, 100px);
  min-height: calc(100svh - 310px);
  padding-top: 18px;
}
.hero-copy {
  min-width: 0;
  max-width: 940px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow-code {
  color: var(--coral-deep);
  font-weight: 600;
}
.eyebrow-rule {
  width: 44px;
  height: 1px;
  background: var(--ink);
  opacity: 0.35;
}
.hero-title {
  margin-top: clamp(18px, 3vw, 34px);
}
.hero-line {
  display: block;
  overflow: hidden;
  overflow: clip;
  overflow-clip-margin: 0.24em;
}
.hero-line--sm {
  padding-left: 0.05em;
  font-family: var(--font-cn);
  font-size: clamp(2rem, 4vw, 4.4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
}
.hero-line--xl {
  display: flex;
  align-items: flex-end;
  margin-top: clamp(2px, 0.8vw, 12px);
  margin-left: -0.055em;
  color: var(--ink);
  font-family: var(--font-cn);
  font-size: clamp(5.4rem, 15vw, 16rem);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.76;
}
.hero-line > span {
  display: block;
}
.hero-period {
  flex: none;
  width: clamp(17px, 2vw, 34px);
  height: clamp(17px, 2vw, 34px);
  margin: 0 0 clamp(16px, 2.2vw, 42px) 0.08em;
  background: var(--coral);
}
html.js .hero-line > span {
  transform: translate3d(0, 115%, 0);
  transition: transform 1.2s var(--ease-smooth);
}
html.js .hero-line--sm > span {
  transition-delay: 0.18s;
}
html.js .hero-line--xl > span {
  transition-delay: 0.3s;
}
html.js .hero-period {
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.5s ease 0.82s, transform 0.6s var(--ease-out) 0.82s;
}
html.js body.is-ready .hero-line > span {
  transform: translate3d(0, 0, 0);
}
html.js body.is-ready .hero-period {
  opacity: 1;
  transform: scale(1);
}
.hero-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px clamp(24px, 4vw, 58px);
  margin-top: clamp(22px, 2.6vw, 38px);
}
.hero-en {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding-top: 6px;
  font-family: var(--font-en);
  font-size: clamp(0.95rem, 1.28vw, 1.3rem);
  letter-spacing: 0.11em;
  line-height: 1;
}
.hero-en::before {
  width: 20px;
  height: 1px;
  background: var(--coral);
  content: "";
}
.hero-desc {
  max-width: 440px;
  color: var(--muted);
  font-size: clamp(0.88rem, 1.02vw, 1rem);
  line-height: 1.95;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(26px, 3.2vw, 42px);
}
.hero-board {
  position: relative;
  justify-self: end;
  width: min(100%, 360px);
  padding: 22px 20px 16px;
  border: 1px solid rgba(241, 233, 218, 0.16);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 12px 12px 0 rgba(14, 25, 19, 0.15);
}
.hero-board::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--coral);
  content: "";
}
.board-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-light);
  color: var(--muted-light);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.13em;
}
.board-line {
  padding-left: 10px;
  border-left: 2px solid var(--coral);
}
.board-num {
  color: var(--paper);
  font-family: var(--font-en);
  font-size: 30px;
  line-height: 0.7;
}
.board-route {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 27px;
  margin: 18px 4px 12px;
}
.board-track {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(241, 233, 218, 0.22);
}
.board-route i {
  position: relative;
  z-index: 1;
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(241, 233, 218, 0.22);
}
.board-route i.is-done {
  background: rgba(241, 233, 218, 0.78);
}
.board-route i.is-current {
  width: 10px;
  height: 10px;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 91, 53, 0.14);
}
.board-train {
  position: absolute;
  z-index: 2;
  top: 3px;
  left: 62%;
  width: 22px;
  height: 17px;
  border-bottom: 3px solid var(--coral);
  background: var(--paper);
  transform: translateX(-50%);
}
.board-train::before,
.board-train::after {
  position: absolute;
  top: 3px;
  width: 5px;
  height: 5px;
  background: var(--ink);
  content: "";
}
.board-train::before {
  left: 4px;
}
.board-train::after {
  right: 4px;
}
.board-destination {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-light);
}
.board-cn {
  font-family: var(--font-sans);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.board-en {
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
}
.board-info {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 16px 0 14px;
}
.board-info > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.board-info span:first-child {
  color: rgba(241, 233, 218, 0.42);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}
.live-tag {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 3px;
  border: 1px solid rgba(215, 242, 106, 0.55);
  color: var(--lime);
  font-family: var(--font-pixel);
  font-size: 5px;
  font-style: normal;
  letter-spacing: 0.04em;
  line-height: 1;
  vertical-align: 1px;
}
.board-info strong {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: right;
}
.board-info .status-pill {
  font-size: 9px;
}
.board-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line-light);
  color: rgba(241, 233, 218, 0.45);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}
.board-foot strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--lime);
  font-size: 9px;
  font-weight: 500;
}
.live-bar {
  display: inline-block;
  width: 22px;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--lime) 0 2px, transparent 2px 5px);
  opacity: 0.75;
  animation: liveBars 1.2s steps(2) infinite;
}
.voxel {
  position: absolute;
  width: 84px;
  height: 92px;
}
.voxel--board {
  z-index: 3;
  top: -57px;
  right: 20px;
  transform: none;
  animation: voxelSvgFloat 6s ease-in-out infinite;
}
.voxel--board svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(6px 7px 0 rgba(14, 25, 19, 0.16));
}
@keyframes voxelSvgFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -7px, 0); }
}
.hero-bottom {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  color: var(--paper);
}
.hero-bottom-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 20px;
  padding-bottom: 22px;
}
.hero-loc {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: rgba(241, 233, 218, 0.38);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
}
.hero-loc strong {
  color: rgba(241, 233, 218, 0.75);
  font-weight: 400;
  letter-spacing: 0.06em;
}
.hero-words {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: rgba(241, 233, 218, 0.55);
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 0.06em;
}
.hero-words i {
  display: block;
  width: 4px;
  height: 4px;
  background: var(--coral);
}
.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: rgba(241, 233, 218, 0.52);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  transition: color 0.25s ease;
}
.scroll-cue:hover {
  color: var(--paper);
}
.scroll-cue-line {
  position: relative;
  display: block;
  width: 1px;
  height: 36px;
  overflow: hidden;
  background: rgba(241, 233, 218, 0.22);
}
.scroll-cue-line i {
  position: absolute;
  top: -9px;
  left: 0;
  width: 1px;
  height: 9px;
  background: var(--coral);
  animation: scrollDrop 2.2s ease-in-out infinite;
}

/* ---------- Ticker ---------- */
.ticker {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  height: clamp(52px, 5.4vw, 64px);
  overflow: hidden;
  border-top: 1px solid rgba(241, 233, 218, 0.12);
  border-bottom: 1px solid rgba(241, 233, 218, 0.12);
  background: var(--ink);
  color: var(--paper);
}
.ticker-track {
  display: flex;
  flex: none;
  align-items: center;
  width: max-content;
  animation: tickerRun 34s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
.ticker-group {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.2vw, 34px);
  padding-right: clamp(20px, 2.2vw, 34px);
  font-family: var(--font-en);
  font-size: clamp(1.15rem, 1.9vw, 1.8rem);
  letter-spacing: 0.055em;
  line-height: 1;
  white-space: nowrap;
}
.ticker-group i {
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 13px;
  font-style: normal;
}
