/* ==========================================================================
   博业体育看台 · 共享样式 /assets/site.css
   母题：夜间看台 + 电子记分牌 · 深蓝绿近单色基底 + 荧光青 / 警报橙 / 记分牌琥珀
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, canvas { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink-0: #061A1C;
  --ink-1: #0C2A2C;
  --ink-2: #12403F;
  --rule: #2E6E6C;
  --rule-20: rgba(46, 110, 108, 0.20);
  --rule-40: rgba(46, 110, 108, 0.40);
  --paper: #EDF3F1;
  --paper-ink: #0E2224;
  --cyan: #38F2E0;
  --cyan-40: rgba(56, 242, 224, 0.40);
  --alarm: #FF5A2B;
  --amber: #FFB03A;
  --muted: #9DB8B6;

  --rail-w: 96px;
  --bar-h: 76px;
  --shell: 1440px;

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular,
               Menlo, Consolas, "Courier New", monospace;

  --t: 160ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. Base typography ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-0);
  background-image:
    repeating-linear-gradient(to bottom, rgba(56, 242, 224, 0.028) 0 1px, transparent 1px 4px),
    radial-gradient(120% 78% at 82% -10%, rgba(18, 64, 63, 0.62) 0%, rgba(6, 26, 28, 0) 62%);
  background-attachment: fixed, fixed;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 900; letter-spacing: -0.02em; line-height: 1.25; }
h1 { font-size: clamp(40px, 7vw, 96px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: clamp(20px, 2.4vw, 28px); }
strong { font-weight: 700; }
code, kbd, samp { font-family: var(--font-mono); font-size: 0.94em; }

::selection { background: var(--cyan); color: var(--ink-0); }

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

/* ---------- 4. Layout helpers ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: clamp(20px, 3.4vw, 56px);
}
.shell--narrow { max-width: 880px; }

.site-main { display: block; padding-top: var(--bar-h); }
.site-main--flush { padding-top: 0; }

[data-chapter] { scroll-margin-top: calc(var(--bar-h) + 24px); }

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
}
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.rule { height: 1px; background: var(--rule-20); border: 0; }
.rule--ticks {
  height: 9px;
  border-top: 1px solid var(--rule-20);
  background-image: repeating-linear-gradient(to right, var(--rule-40) 0 1px, transparent 1px 22px);
  background-position: 0 4px;
  background-size: 100% 5px;
  background-repeat: repeat-x;
}

.vnote {
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--muted);
}

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--ink-0);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transform: translateY(-180%);
  transition: transform var(--t) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 6. Header shell ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
}

/* 品牌轨道 */
.brand-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 130;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: var(--rail-w);
  padding: 24px 0 18px;
  background: var(--ink-1);
  border-right: 1px solid var(--rule-40);
}
.brand-rail__home { display: block; padding: 2px 0; }
.brand-rail__brand {
  display: block;
  writing-mode: vertical-rl;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.34em;
  line-height: 1;
  color: var(--paper);
  transition: color var(--t) var(--ease);
}
.brand-rail__home:hover .brand-rail__brand { color: var(--cyan); }

.brand-rail__seam {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--cyan), rgba(56, 242, 224, 0));
}

.rail-ticks {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
  overflow: hidden;
}
.rail-ticks:empty {
  background-image: repeating-linear-gradient(to bottom, var(--rule-40) 0 1px, transparent 1px 14px);
  background-position: center top;
  background-size: 10px 100%;
  background-repeat: repeat-y;
}

.rail-tick {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 4px 12px 4px 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-align: left;
}
.rail-tick__num { flex: 0 0 auto; opacity: 0.8; transition: opacity var(--t) var(--ease); }
.rail-tick__bar {
  flex: 1 1 auto;
  height: 1px;
  background: var(--rule);
  opacity: 0.55;
  transition: background var(--t) var(--ease), opacity var(--t) var(--ease), height var(--t) var(--ease);
}
.rail-tick:hover { color: var(--cyan); }
.rail-tick:hover .rail-tick__bar { background: var(--cyan); opacity: 1; }
.rail-tick.is-active { color: var(--cyan); }
.rail-tick.is-active .rail-tick__num { opacity: 1; }
.rail-tick.is-active .rail-tick__bar { background: var(--cyan); opacity: 1; height: 2px; }

.rail-tick::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  z-index: 6;
  padding: 3px 9px;
  background: var(--cyan);
  color: var(--ink-0);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-6px, -50%);
  pointer-events: none;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}
.rail-tick:hover::after,
.rail-tick:focus-visible::after { opacity: 1; transform: translate(0, -50%); }

.brand-rail__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
}
.rail-chip {
  padding: 2px 6px;
  border: 1px solid rgba(255, 176, 58, 0.45);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.rail-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 46px;
  padding: 9px 0;
  border: 1px solid var(--rule-40);
  color: var(--muted);
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease);
}
.rail-top__glyph { font-family: var(--font-mono); font-size: 14px; line-height: 1; }
.rail-top__label { writing-mode: vertical-rl; font-size: 10px; letter-spacing: 0.24em; }
.rail-top:hover { border-color: var(--cyan); color: var(--cyan); }

/* 顶栏 */
.top-bar {
  position: relative;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.top-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 24px);
  max-width: var(--shell);
  min-height: var(--bar-h);
  margin: 0 auto;
  padding-inline: clamp(16px, 3.2vw, 44px);
  transition: min-height var(--t) var(--ease);
}
.site-header[data-scrolled="true"] .top-bar {
  background: rgba(6, 26, 28, 0.95);
  border-bottom-color: var(--rule-40);
}
.site-header[data-scrolled="true"] .top-bar__inner { min-height: 62px; }

.top-bar__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}
.top-bar__progress::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  opacity: 0;
  transition: transform 120ms linear, opacity var(--t) var(--ease);
}
.site-header[data-scrolled="true"] .top-bar__progress::after { opacity: 1; }

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  background: var(--ink-2);
  border: 1px solid var(--rule-40);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.brand:hover .brand__mark { background: var(--cyan); color: var(--ink-0); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 18px; font-weight: 900; letter-spacing: 0.06em; }
.brand__tag { margin-top: 3px; font-size: 11px; letter-spacing: 0.16em; color: var(--muted); }

/* 主导航 */
.primary-nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 26px);
}
.nav-link {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(237, 243, 241, 0.82);
  transition: color var(--t) var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transform: translateX(-50%);
  transition: width var(--t) var(--ease);
}
.nav-link:hover { color: var(--cyan); }
.nav-link:hover::after { width: 100%; }
.nav-link[aria-current="page"] { color: var(--cyan); font-weight: 700; }
.nav-link[aria-current="page"]::after { width: 100%; }

/* 右侧动作区 */
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: clamp(12px, 2vw, 32px);
}
.version-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--rule-40);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.version-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background var(--t) var(--ease), color var(--t) var(--ease),
              border-color var(--t) var(--ease);
}
.btn--primary { background: var(--alarm); color: var(--ink-0); }
.btn--primary:hover { background: var(--amber); }
.btn--cyan { background: var(--cyan); color: var(--ink-0); }
.btn--cyan:hover { background: var(--paper); }
.btn--ghost { border-color: var(--rule-40); color: var(--paper); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn__arrow {
  font-family: var(--font-mono);
  transition: transform var(--t) var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.top-cta__short { display: none; }

/* 移动按钮 */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 125;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--rule-40);
  transition: border-color var(--t) var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); }
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--paper);
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease),
              background var(--t) var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
.nav-toggle[data-open="true"] { border-color: var(--cyan); }
.nav-toggle[data-open="true"] .nav-toggle__bars span:nth-child(1) {
  background: var(--cyan);
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[data-open="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[data-open="true"] .nav-toggle__bars span:nth-child(3) {
  background: var(--cyan);
  transform: translateY(-5px) rotate(-45deg);
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(6, 26, 28, 0.68);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t) var(--ease);
}

/* ---------- 7. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 140px);
  background: var(--ink-1);
  border-top: 1px solid var(--rule-40);
  color: var(--paper);
}
.footer-scale {
  height: 15px;
  border-bottom: 1px solid var(--rule-20);
  background-image: repeating-linear-gradient(to right, var(--rule) 0 1px, transparent 1px 28px);
  background-position: 0 0;
  background-size: 100% 8px;
  background-repeat: repeat-x;
  opacity: 0.6;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 52px);
  padding-block: clamp(36px, 5vw, 68px) clamp(26px, 3vw, 40px);
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand__line {
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.footer-brand__note {
  margin-top: 8px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(237, 243, 241, 0.7);
}
.footer-col__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-20);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.footer-col__list { display: flex; flex-direction: column; gap: 2px; }
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 6px 0;
  font-size: 15px;
  color: rgba(237, 243, 241, 0.78);
  transition: color var(--t) var(--ease), gap var(--t) var(--ease);
}
.footer-link::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width var(--t) var(--ease);
}
.footer-link:hover { color: var(--cyan); gap: 8px; }
.footer-link:hover::before { width: 14px; }

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  padding-block: 22px;
  border-top: 1px solid var(--rule-20);
  border-bottom: 1px solid var(--rule-20);
}
.footer-contact__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
}
.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}
.footer-contact__val { color: rgba(237, 243, 241, 0.84); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  padding-block: 20px 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.footer-legal__line { margin: 0; }
.footer-top {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--rule-40);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease);
}
.footer-top:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- 8. Shared components ---------- */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.crumb a { transition: color var(--t) var(--ease); }
.crumb a:hover { color: var(--cyan); }
.crumb__sep { color: var(--rule); }
.crumb [aria-current="page"] { color: var(--paper); }

.panel {
  position: relative;
  padding: clamp(20px, 2.6vw, 34px);
  background: var(--ink-1);
  border: 1px solid var(--rule-40);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.panel--paper {
  background: var(--paper);
  color: var(--paper-ink);
  border-color: rgba(14, 34, 36, 0.16);
}
.panel--cyan { border-color: var(--cyan-40); }

.prose { max-width: 72ch; }
.prose p { margin-bottom: 1.2em; color: rgba(237, 243, 241, 0.86); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--paper); }
.prose a { color: var(--cyan); border-bottom: 1px solid var(--cyan-40); transition: border-color var(--t) var(--ease); }
.prose a:hover { border-bottom-color: var(--cyan); }
.prose--paper { padding: clamp(24px, 3vw, 48px); background: var(--paper); color: var(--paper-ink); }
.prose--paper p { color: var(--paper-ink); }
.prose--paper strong { color: var(--paper-ink); }
.prose--paper a { color: #0B5F58; border-bottom-color: rgba(11, 95, 88, 0.35); }

.chapter { position: relative; }
.chapter__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  color: rgba(46, 110, 108, 0.78);
}
.chapter__title {
  margin-top: 8px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
}
.chapter__note {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--cyan);
}
.stat__label { font-size: 13px; letter-spacing: 0.14em; color: var(--muted); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--rule-40);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.tag--cyan { color: var(--cyan); border-color: var(--cyan-40); }
.tag--alarm { color: var(--alarm); border-color: rgba(255, 90, 43, 0.55); }
.tag--amber { color: var(--amber); border-color: rgba(255, 176, 58, 0.5); }

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--rule-40);
  background-color: var(--ink-2);
  background-image:
    linear-gradient(148deg, rgba(18, 64, 63, 0.92), rgba(6, 26, 28, 0.96)),
    repeating-linear-gradient(45deg, rgba(56, 242, 224, 0.08) 0 1px, transparent 1px 12px);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.media-frame > img,
.media-frame > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, rgba(6, 26, 28, 0.3) 0 1px, transparent 1px 3px);
  opacity: 0.45;
}
.media-frame__tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  padding: 3px 9px;
  background: rgba(6, 26, 28, 0.82);
  border: 1px solid var(--cyan-40);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--paper { border-color: rgba(14, 34, 36, 0.16); }

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 9. Breakpoints ---------- */
@media (min-width: 1080px) {
  body { padding-left: var(--rail-w); }
  .brand-rail { display: flex; }
  .top-bar { margin-left: var(--rail-w); }
}

@media (max-width: 1079px) {
  :root { --bar-h: 64px; }

  .nav-toggle { display: grid; }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 115;
    display: block;
    width: min(84vw, 340px);
    margin: 0;
    padding: 92px 24px 32px;
    background: var(--ink-1);
    border-left: 1px solid var(--rule-40);
    overflow-y: auto;
    transform: translateX(102%);
    transition: transform 240ms var(--ease);
  }
  .site-header[data-nav-open="true"] .primary-nav { transform: translateX(0); }
  .site-header[data-nav-open="true"] .nav-scrim { opacity: 1; pointer-events: auto; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 6px 16px 14px;
    border-bottom: 1px solid var(--rule-20);
    border-left: 2px solid transparent;
    font-size: 17px;
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { border-left-color: var(--cyan); background: rgba(56, 242, 224, 0.06); }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .version-chip { display: none; }
  .footer-top { margin-left: 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid--12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-contact { flex-direction: column; gap: 8px; }
  .brand__name { font-size: 16px; }
  .brand__tag { display: none; }
  .top-cta__full { display: none; }
  .top-cta__short { display: inline; }
  .btn { padding: 9px 13px; font-size: 13px; letter-spacing: 0.06em; }
  .nav-toggle { width: 40px; height: 40px; }
}

@media (max-height: 640px) {
  .brand-rail__brand { font-size: 14px; letter-spacing: 0.22em; }
  .rail-ticks { gap: 4px; }
}

/* ---------- 10. Motion preference ---------- */
@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; }
}
