/* ============================================================
   /assets/site.css — 大江体育赛场 共享层
   深墨绿底色 + 荧光青刻度 + 热力色阶数据语言
   ============================================================ */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: var(--aqua-soft); }
table { border-collapse: collapse; }

/* ---------- tokens ---------- */
:root {
  --ink-deep: #06110F;
  --pitch-green: #0B211C;
  --data-line: #1E3A34;
  --neon-cyan: #2BE8C6;
  --aqua-soft: #7FF3DE;
  --track-orange: #FF7A2F;
  --heat-yellow: #FFD166;
  --heat-red: #FF4D4D;
  --score-white: #F2FBF7;
  --muted-slate: #8FA8A1;
  --glass-mint: rgba(180, 255, 235, 0.08);
  --glass-line: rgba(180, 255, 235, 0.18);
  --body-ink: #CFE3DD;

  --heat-scale: linear-gradient(90deg, var(--neon-cyan) 0%, var(--heat-yellow) 46%, var(--track-orange) 74%, var(--heat-red) 100%);

  --rail-w: 88px;
  --rail-open: 240px;
  --ruler-h: 24px;
  --topbar-h: 58px;
  --gutter: clamp(20px, 4vw, 64px);
  --max: 1440px;

  --font-display: "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --cut: 10px;
  --z-header: 70;
}

/* ---------- base typography ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  padding-top: var(--ruler-h);
  font-family: var(--font-body);
  font-size: clamp(15px, 0.6vw + 13px, 17px);
  font-weight: 400;
  line-height: 1.85;
  color: var(--body-ink);
  background-color: var(--ink-deep);
  background-image:
    linear-gradient(rgba(30, 58, 52, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 52, 0.42) 1px, transparent 1px),
    radial-gradient(92% 62% at 86% -10%, rgba(43, 232, 198, 0.09), transparent 62%);
  background-size: 68px 68px, 68px 68px, 100% 100%;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--score-white);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}
h1 { font-size: clamp(40px, 6vw, 96px); line-height: 1.02; }
h2 { font-size: clamp(26px, 3.4vw, 46px); }
h3 { font-size: clamp(19px, 2vw, 26px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
h4 { font-size: clamp(16px, 1.4vw, 19px); font-weight: 700; letter-spacing: 0; line-height: 1.4; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--score-white); font-weight: 700; }
code, .mono { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: 0.02em; }

:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection { background: var(--neon-cyan); color: #04120F; }

/* ---------- utilities / layout ---------- */
.canvas {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: clamp(28px, 4vw, 64px);
}

.grid { display: grid; gap: clamp(16px, 2.2vw, 30px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid--12 > .span-4 { grid-column: span 4; }
.grid--12 > .span-5 { grid-column: span 5; }
.grid--12 > .span-6 { grid-column: span 6; }
.grid--12 > .span-7 { grid-column: span 7; }
.grid--12 > .span-8 { grid-column: span 8; }
.grid--12 > .span-12 { grid-column: span 12; }

.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 32px);
  background: var(--pitch-green);
  border: 1px solid var(--data-line);
  border-radius: 2px;
}
.panel--flush { padding: 0; overflow: hidden; }

.glass {
  background: var(--glass-mint);
  border: 1px solid var(--glass-line);
  border-radius: 2px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.rule-line {
  height: 1px;
  border: 0;
  margin: clamp(20px, 3vw, 36px) 0;
  background: linear-gradient(90deg, var(--data-line) 0%, rgba(30, 58, 52, 0.1) 72%, transparent 100%);
}

/* ---------- labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aqua-soft);
  line-height: 1.6;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--neon-cyan);
  flex: 0 0 auto;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--aqua-soft);
  border: 1px solid rgba(127, 243, 222, 0.3);
  background: var(--glass-mint);
  border-radius: 1px;
  white-space: nowrap;
}
.tag--cyan { color: #04120F; background: var(--neon-cyan); border-color: var(--neon-cyan); font-weight: 700; }
.tag--orange { color: #160800; background: var(--track-orange); border-color: var(--track-orange); font-weight: 700; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none;
  color: var(--score-white);
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-12deg);
  opacity: 0;
  transition: left 0.42s var(--ease), opacity 0.2s linear;
  pointer-events: none;
}
.btn:hover::after, .btn:focus-visible::after { left: 112%; opacity: 1; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--neon-cyan); color: #04120F; }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--aqua-soft); color: #04120F; }

.btn--ghost { background: var(--glass-mint); border-color: var(--glass-line); color: var(--score-white); }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--neon-cyan); color: var(--neon-cyan); }

.btn--slash {
  background: var(--track-orange);
  color: #160800;
  padding-right: 30px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.btn--slash:hover, .btn--slash:focus-visible { background: var(--heat-yellow); color: #160800; }

/* ---------- data components ---------- */
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--neon-cyan);
  font-variant-numeric: tabular-nums;
}
.stat__unit { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted-slate); }
.stat__label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-slate); font-family: var(--font-mono); }

.heat { display: flex; flex-direction: column; gap: 8px; }
.heat__bar {
  position: relative;
  height: 8px;
  border-radius: 1px;
  background-image: var(--heat-scale);
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(6, 17, 15, 0.55);
}
.heat__legend {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted-slate);
}

/* ---------- figure / image base ---------- */
.figure { position: relative; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.figure__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--data-line);
  border-radius: 2px;
  background-color: var(--pitch-green);
  background-image: radial-gradient(120% 120% at 80% 0%, rgba(43, 232, 198, 0.12), transparent 60%);
}
.figure__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06);
}
.figure__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(43, 232, 198, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 232, 198, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mix-blend-mode: screen;
}
.figure__caption {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted-slate);
  padding-left: 12px;
  border-left: 1px solid var(--data-line);
}
.figure--wide .figure__media { aspect-ratio: 21 / 9; }
.figure--tilt .figure__media {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

/* ---------- crumbs ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(18px, 2.6vw, 32px);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--muted-slate);
}
.crumbs a { color: var(--aqua-soft); text-decoration: none; }
.crumbs a:hover { color: var(--neon-cyan); }
.crumbs__sep { color: var(--data-line); }

/* ---------- prose ---------- */
.prose { max-width: 72ch; }
.prose > p { margin-bottom: 1.15em; }
.prose h2 { margin: 1.6em 0 0.55em; font-size: clamp(23px, 2.6vw, 34px); }
.prose h3 { margin: 1.4em 0 0.45em; }
.prose ul, .prose ol { display: flex; flex-direction: column; gap: 0.55em; margin-bottom: 1.15em; }
.prose li { position: relative; padding-left: 20px; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 9px;
  height: 1px;
  background: var(--neon-cyan);
}
.prose ol { counter-reset: prose-ol; }
.prose ol > li::before {
  counter-increment: prose-ol;
  content: counter(prose-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--aqua-soft);
}
.prose a { text-decoration-color: rgba(43, 232, 198, 0.45); text-underline-offset: 3px; }

/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: relative;
  z-index: var(--z-header);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #04120F;
  background: var(--neon-cyan);
  text-decoration: none;
  border-radius: 2px;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.scroll-progress {
  position: fixed;
  top: calc(var(--ruler-h) - 2px);
  left: var(--rail-w);
  right: 0;
  height: 2px;
  z-index: calc(var(--z-header) + 1);
  pointer-events: none;
  background: rgba(30, 58, 52, 0.6);
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background-image: var(--heat-scale);
  transition: width 0.12s linear;
}

/* ---- top ruler ---- */
.ruler {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: var(--ruler-h);
  z-index: calc(var(--z-header) - 2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 16px;
  background-color: rgba(6, 17, 15, 0.92);
  background-image: repeating-linear-gradient(90deg, rgba(43, 232, 198, 0.3) 0 1px, transparent 1px 18px);
  background-size: 100% 7px;
  background-position: 0 100%;
  background-repeat: repeat-x;
  border-bottom: 1px solid var(--data-line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.ruler__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: var(--aqua-soft);
  text-transform: uppercase;
}
.ruler__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted-slate);
  text-transform: uppercase;
}

/* ---- mobile topbar ---- */
.topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  z-index: calc(var(--z-header) - 3);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 16px;
  background: rgba(6, 17, 15, 0.94);
  border-bottom: 1px solid var(--data-line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.topbar__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--score-white);
}
.topbar__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.04em;
}
.topbar__ver {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--neon-cyan);
  border: 1px solid rgba(43, 232, 198, 0.35);
  padding: 1px 4px;
  border-radius: 1px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--score-white);
  background: var(--glass-mint);
  border: 1px solid var(--glass-line);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-toggle:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); }
.nav-toggle__bars { display: inline-flex; flex-direction: column; justify-content: center; gap: 3px; width: 16px; }
.nav-toggle__bars > span {
  display: block;
  height: 1.5px;
  background: var(--neon-cyan);
  transition: transform 0.22s var(--ease), opacity 0.18s linear;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars > span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars > span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars > span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---- rail nav ---- */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  z-index: var(--z-header);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 0 18px;
  background: linear-gradient(180deg, rgba(11, 33, 28, 0.97) 0%, rgba(6, 17, 15, 0.99) 100%);
  border-right: 1px solid var(--data-line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: width 0.32s var(--ease), transform 0.34s var(--ease);
}
.rail:hover, .rail:focus-within { width: var(--rail-open); }

.rail__lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 10px 15px;
  border-bottom: 1px solid var(--data-line);
}
.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.rail__brand-cn {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.34em;
  line-height: 1;
  color: var(--score-white);
  transition: color 0.2s var(--ease);
}
.rail__brand:hover .rail__brand-cn { color: var(--neon-cyan); }
.rail__brand-ver {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--neon-cyan);
  border: 1px solid rgba(43, 232, 198, 0.35);
  padding: 1px 3px;
  border-radius: 1px;
}
.rail__tag {
  display: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted-slate);
  white-space: nowrap;
  animation: railFade 0.26s var(--ease) both;
}
.rail:hover .rail__brand-cn, .rail:focus-within .rail__brand-cn {
  writing-mode: horizontal-tb;
  letter-spacing: 0.12em;
  font-size: 17px;
}
.rail:hover .rail__tag, .rail:focus-within .rail__tag { display: block; }

@keyframes railFade {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: none; }
}

.rail__list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 10px;
  overflow-y: auto;
  overflow-x: hidden;
}
.rail__item { flex: 0 0 auto; }
.rail__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 8px;
  color: var(--muted-slate);
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 0 2px 2px 0;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.rail:hover .rail__link, .rail:focus-within .rail__link { justify-content: flex-start; }
.rail__link::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, rgba(43, 232, 198, 0.22), transparent);
  transition: width 0.24s var(--ease);
  pointer-events: none;
}
.rail__link:hover { color: var(--score-white); background: var(--glass-mint); }
.rail__link:hover::after { width: 100%; }
.rail__no {
  flex: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--data-line);
  text-align: center;
  transition: color 0.2s var(--ease);
}
.rail__link:hover .rail__no { color: var(--aqua-soft); }
.rail__txt {
  display: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  animation: railFade 0.24s var(--ease) both;
}
.rail:hover .rail__txt, .rail:focus-within .rail__txt { display: block; }

.rail__link[aria-current="page"] {
  color: var(--neon-cyan);
  background: rgba(43, 232, 198, 0.08);
  border-left-color: var(--neon-cyan);
}
.rail__link[aria-current="page"] .rail__no { color: var(--neon-cyan); }
.rail__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--neon-cyan);
  transform: translateY(-50%);
}

.rail__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 14px 10px 0;
  border-top: 1px solid var(--data-line);
}
.rail__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  color: #04120F;
  background: var(--neon-cyan);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: background 0.22s var(--ease), font-size 0.22s var(--ease), padding 0.22s var(--ease);
}
.rail__cta:hover, .rail__cta:focus-visible { background: var(--aqua-soft); }
.rail:hover .rail__cta, .rail:focus-within .rail__cta {
  padding: 13px 12px;
  font-size: 13.5px;
  letter-spacing: 0.12em;
}
.rail__sub {
  display: none;
  padding: 4px 2px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--aqua-soft);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  animation: railFade 0.24s var(--ease) both;
}
.rail__sub:hover { color: var(--neon-cyan); }
.rail:hover .rail__sub, .rail:focus-within .rail__sub { display: block; }

.rail__meta {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 14px 18px 2px;
  border-top: 1px solid var(--data-line);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted-slate);
}
.rail__meta-line { font-family: var(--font-mono); letter-spacing: 0.04em; }

.nav-scrim { display: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  isolation: isolate;
  margin-top: clamp(48px, 8vw, 120px);
  padding: clamp(38px, 5vw, 76px) var(--gutter) 26px;
  background: linear-gradient(165deg, var(--pitch-green) 0%, #071714 50%, var(--ink-deep) 100%);
  border-top: 1px solid var(--data-line);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(30, 58, 52, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 52, 0.6) 1px, transparent 1px);
  background-size: 76px 76px;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(130% 115% at 100% 0%, #000 0%, transparent 68%);
  mask-image: radial-gradient(130% 115% at 100% 0%, #000 0%, transparent 68%);
}

.footer__scale {
  max-width: var(--max);
  margin: 0 auto clamp(26px, 3.4vw, 44px);
  height: 10px;
  border-top: 1px solid rgba(43, 232, 198, 0.3);
  background-image: repeating-linear-gradient(90deg, var(--data-line) 0 1px, transparent 1px 14px);
  background-size: 100% 10px;
  background-repeat: repeat-x;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 1.15fr;
  gap: clamp(24px, 4vw, 64px);
  max-width: var(--max);
  margin-inline: auto;
}

.footer__col { min-width: 0; }

.footer__brand {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--score-white);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer__brand:hover { color: var(--neon-cyan); }

.footer__ver {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--neon-cyan);
}
.footer__lead {
  margin-top: 14px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted-slate);
}
.footer__trust {
  margin-top: 18px;
  padding-left: 11px;
  border-left: 2px solid var(--neon-cyan);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: var(--aqua-soft);
}

.footer__h {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--data-line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aqua-soft);
}

.footer__list { display: flex; flex-direction: column; gap: 9px; }
.footer__list--sub {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(30, 58, 52, 0.95);
}
.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #C6DAD4;
  text-decoration: none;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer__link::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 1px;
  background: var(--data-line);
  transition: width 0.2s var(--ease), background 0.2s var(--ease);
}
.footer__link:hover { color: var(--neon-cyan); transform: translateX(2px); }
.footer__link:hover::before { width: 16px; background: var(--neon-cyan); }

.footer__contact { display: flex; flex-direction: column; gap: 16px; }
.footer__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-slate);
}
.footer__value {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--score-white);
  word-break: break-word;
}
.footer__copy {
  margin-top: 8px;
  min-width: 96px;
  padding: 7px 12px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--neon-cyan);
  background: rgba(43, 232, 198, 0.08);
  border: 1px solid rgba(43, 232, 198, 0.35);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer__copy:hover { background: var(--neon-cyan); color: #04120F; border-color: var(--neon-cyan); }
.footer__copy.is-done { background: var(--track-orange); border-color: var(--track-orange); color: #160800; }

.footer__note {
  padding-left: 11px;
  border-left: 1px solid var(--data-line);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted-slate);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  max-width: var(--max);
  margin: clamp(30px, 4vw, 56px) auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--data-line);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted-slate);
}
.footer__copy-note { font-family: var(--font-mono); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-left: auto; }
.footer__icp { font-family: var(--font-mono); letter-spacing: 0.06em; color: var(--muted-slate); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--12 > .span-4,
  .grid--12 > .span-5 { grid-column: span 6; }
}

@media (max-width: 900px) {
  body {
    padding-left: 0;
    padding-top: var(--topbar-h);
    background-size: 56px 56px, 56px 56px, 100% 100%;
  }

  .ruler { display: none; }
  .topbar { display: flex; }

  .scroll-progress {
    top: calc(var(--topbar-h) - 2px);
    left: 0;
  }

  .rail,
  .rail:hover,
  .rail:focus-within {
    width: min(86vw, 330px);
    transform: translateX(-102%);
    box-shadow: 30px 0 90px rgba(0, 0, 0, 0.6);
    padding-top: 18px;
    overflow-y: auto;
  }
  .rail[data-open] { transform: translateX(0); }

  .rail__lockup {
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 12px;
    padding: 0 18px 16px;
  }
  .rail__brand {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }
  .rail__brand-cn,
  .rail:hover .rail__brand-cn,
  .rail:focus-within .rail__brand-cn {
    writing-mode: horizontal-tb;
    letter-spacing: 0.12em;
    font-size: 19px;
  }
  .rail__tag,
  .rail:hover .rail__tag,
  .rail:focus-within .rail__tag { display: block; }

  .rail__list { padding: 0 12px; overflow: visible; }
  .rail__link,
  .rail:hover .rail__link,
  .rail:focus-within .rail__link {
    justify-content: flex-start;
    padding: 13px 12px;
    font-size: 15px;
  }
  .rail__no { text-align: left; }
  .rail__txt,
  .rail:hover .rail__txt,
  .rail:focus-within .rail__txt { display: block; }
  .rail__link[aria-current="page"]::before { display: none; }

  .rail__actions { padding: 16px 12px 0; }
  .rail__cta,
  .rail:hover .rail__cta,
  .rail:focus-within .rail__cta {
    padding: 13px 12px;
    font-size: 13.5px;
    letter-spacing: 0.12em;
  }
  .rail__sub,
  .rail:hover .rail__sub,
  .rail:focus-within .rail__sub { display: block; }

  .rail__meta { display: flex; }

  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-header) - 1);
    background: rgba(3, 10, 9, 0.7);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }
  .nav-scrim[hidden] { display: none; }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__col--brand { grid-column: span 2; }
  .footer__lead { max-width: 46ch; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer__legal { margin-left: 0; }
}

@media (max-width: 640px) {
  .grid--12,
  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .grid--12 > .span-4,
  .grid--12 > .span-5,
  .grid--12 > .span-6,
  .grid--12 > .span-7,
  .grid--12 > .span-8,
  .grid--12 > .span-12 { grid-column: auto; }

  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .footer__col--brand { grid-column: auto; }
  .site-footer { padding-bottom: 32px; }
  .btn { width: 100%; }
  .figure--wide .figure__media { aspect-ratio: 16 / 9; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .btn:hover::after, .btn:focus-visible::after { opacity: 0; }
  .footer__link:hover { transform: none; }
}
