/* ============================================================
   果博东方 · 球王会赛事数据指挥台
   共享样式 / assets/site.css
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, blockquote, dl, dd, hr { margin: 0; padding: 0; }

ul, ol { list-style: none; }

img, svg, video, canvas { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

table { border-collapse: collapse; width: 100%; }

hr { border: 0; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #0B1F1A;
  --ink-deep: #081613;
  --carbon: #101314;
  --rock: #2A2F2C;
  --bone: #F2EDE3;
  --moss: #4A6B54;
  --cyan: #3FE0C8;
  --ember: #FF8A3D;
  --amber: #FFC247;
  --clay: #B5623C;
  --mist: #9AA7A0;

  --line: rgba(154, 167, 160, 0.18);
  --line-soft: rgba(154, 167, 160, 0.1);
  --line-strong: rgba(63, 224, 200, 0.42);

  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;

  --shell: 1360px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 520px at 10% -8%, rgba(63, 224, 200, 0.1), transparent 68%),
    radial-gradient(760px 460px at 94% 6%, rgba(181, 98, 60, 0.11), transparent 70%),
    radial-gradient(1100px 720px at 48% 104%, rgba(74, 107, 84, 0.2), transparent 74%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--bone);
}

h1 { font-size: clamp(40px, 7vw, 104px); }
h2 { font-size: clamp(26px, 3.6vw, 50px); }
h3 { font-size: clamp(20px, 2.3vw, 30px); }
h4 { font-size: clamp(17px, 1.6vw, 21px); }

::selection {
  background: rgba(255, 194, 71, 0.32);
  color: var(--bone);
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mono,
.data-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ---------- 4. Layout ---------- */
.shell,
.page {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(44px, 6vw, 96px); }
.section--tight { padding-block: clamp(26px, 3.4vw, 54px); }

.section__head {
  display: grid;
  gap: 12px;
  max-width: 64ch;
  margin-bottom: clamp(20px, 2.8vw, 38px);
}

.section__title { font-size: clamp(26px, 3.6vw, 50px); }

.grid {
  display: grid;
  gap: clamp(14px, 1.8vw, 26px);
}

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

@media (min-width: 760px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1040px) {
  .grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 7; }
  .col-8 { grid-column: span 8; }
  .col-12 { grid-column: span 12; }
}

@media (min-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 5. Typography helpers ---------- */
.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.5;
  color: var(--mist);
}

.label--cyan { color: var(--cyan); }
.label--amber { color: var(--amber); }
.label--clay { color: var(--clay); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  flex: none;
  background: currentColor;
  opacity: 0.7;
}

.prose {
  font-size: 16.5px;
  line-height: 1.78;
  color: rgba(242, 237, 227, 0.78);
}

.prose > * + * { margin-top: 1.05em; }
.prose p { max-width: 40em; }
.prose h2,
.prose h3 { margin-top: 1.6em; color: var(--bone); }
.prose strong { color: var(--bone); font-weight: 800; }
.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(63, 224, 200, 0.4);
}
.prose a:hover { border-bottom-color: var(--cyan); }

.heading-rule {
  display: flex;
  align-items: center;
  gap: 16px;
}

.heading-rule::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(63, 224, 200, 0.5), transparent);
}

.rule {
  height: 1px;
  background: var(--line);
}

.color-band {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--moss) 34%, var(--amber) 68%, var(--ember));
}

/* ---------- 6. Buttons & chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 11px 20px;
  border: 1px solid rgba(63, 224, 200, 0.45);
  border-radius: 999px;
  background: rgba(63, 224, 200, 0.06);
  color: var(--bone);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  border-color: var(--cyan);
  background: rgba(63, 224, 200, 0.14);
  box-shadow: 0 0 0 3px rgba(63, 224, 200, 0.1);
}

.btn--amber {
  border-color: rgba(255, 194, 71, 0.6);
  background: linear-gradient(120deg, var(--amber), var(--ember));
  color: #101314;
}

.btn--amber:hover {
  box-shadow: 0 12px 30px -14px rgba(255, 138, 61, 0.95), 0 0 0 3px rgba(255, 194, 71, 0.18);
}

.btn--ghost {
  border-color: var(--line);
  background: transparent;
  color: rgba(242, 237, 227, 0.78);
}

.btn--ghost:hover {
  border-color: var(--ember);
  background: rgba(255, 138, 61, 0.07);
  color: var(--bone);
  box-shadow: none;
}

.btn--compact {
  padding: 9px 16px;
  font-size: 13px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: rgba(242, 237, 227, 0.76);
}

.chip--cyan { border-color: rgba(63, 224, 200, 0.45); color: var(--cyan); }
.chip--ember { border-color: rgba(255, 138, 61, 0.45); color: var(--ember); }
.chip--clay { border-color: rgba(181, 98, 60, 0.5); color: #D98C63; }

/* ---------- 7. Cards / stats / timeline ---------- */
.card {
  position: relative;
  padding: clamp(16px, 1.8vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: linear-gradient(158deg, rgba(42, 47, 44, 0.68) 0%, rgba(16, 19, 20, 0.86) 100%);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover { border-color: var(--line-strong); }
.card--warm:hover { border-color: rgba(255, 138, 61, 0.6); }

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card__title {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--bone);
}

.card__meta {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.card__body {
  font-size: 15px;
  line-height: 1.72;
  color: rgba(242, 237, 227, 0.72);
}

.stat { display: grid; gap: 6px; }

.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--amber);
}

.stat__value--cyan { color: var(--cyan); }

.stat__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--mist);
}

.timeline {
  position: relative;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), rgba(74, 107, 84, 0.7) 60%, transparent);
}

.timeline__item {
  position: relative;
  padding-bottom: 22px;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--cyan);
}

.timeline__item--warm::before { border-color: var(--ember); }

/* ---------- 8. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: clamp(16px, 2vw, 26px);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.breadcrumb a {
  color: rgba(242, 237, 227, 0.66);
  transition: color 0.18s ease;
}

.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb__sep { color: rgba(154, 167, 160, 0.45); }
.breadcrumb [aria-current="page"] { color: var(--bone); }

/* ---------- 9. Media frames ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: linear-gradient(150deg, #101314 0%, #0B1F1A 55%, #16302A 100%);
  isolation: isolate;
}

.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--band { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame > img,
.media-frame > svg,
.media-frame > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.06);
}

.media-frame__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(63, 224, 200, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 224, 200, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  mix-blend-mode: screen;
}

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: rgba(242, 237, 227, 0.82);
  background: linear-gradient(180deg, transparent, rgba(8, 22, 19, 0.92));
}

/* ---------- 10. Skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -72px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  background: var(--amber);
  color: #101314;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: top 0.18s ease;
}

.skip-link:focus { top: 0; }

/* ---------- 11. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(11, 31, 26, 0.93);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 13px var(--gutter);
  transition: padding 0.2s ease;
}

.site-header[data-scrolled] .header-inner { padding-block: 6px; }

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid rgba(63, 224, 200, 0.42);
  border-radius: 11px;
  background:
    radial-gradient(circle at 28% 22%, rgba(63, 224, 200, 0.4), transparent 62%),
    linear-gradient(150deg, rgba(255, 138, 61, 0.22), rgba(16, 19, 20, 0.9));
  box-shadow: inset 0 0 0 1px rgba(255, 194, 71, 0.08);
  transition: border-color 0.18s ease;
}

.brand:hover .brand__mark { border-color: var(--cyan); }

.brand__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(255, 194, 71, 0.9);
}

.brand__text { display: block; }

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--bone);
}

.brand__line {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.cmd-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 18px);
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.cmd-nav::-webkit-scrollbar { height: 0; width: 0; }

.cmd-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 1 auto;
}

.cmd-nav__list > li { flex: none; }

.cmd-nav__list a {
  position: relative;
  display: block;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: rgba(242, 237, 227, 0.62);
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.cmd-nav__list a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.6;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.cmd-nav__list a:hover { color: var(--bone); }
.cmd-nav__list a:hover::after { transform: scaleX(1); }

.cmd-nav__list a[aria-current="page"] {
  padding-left: 18px;
  color: var(--bone);
  border-color: rgba(63, 224, 200, 0.55);
  background: rgba(63, 224, 200, 0.08);
}

.cmd-nav__list a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.cmd-nav__list a[aria-current="page"]::after {
  transform: scaleX(1);
  opacity: 1;
}

.cmd-jump {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.cmd-jump a {
  display: block;
  padding: 5px 9px;
  border: 1px dashed rgba(154, 167, 160, 0.35);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: var(--mist);
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.cmd-jump a:hover {
  color: var(--ember);
  border-color: rgba(255, 138, 61, 0.75);
  border-style: solid;
  background: rgba(255, 138, 61, 0.07);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 40px;
  border: 1px solid rgba(63, 224, 200, 0.35);
  border-radius: 11px;
  color: var(--bone);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.nav-toggle:hover {
  border-color: var(--cyan);
  background: rgba(63, 224, 200, 0.08);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--amber) 55%, var(--ember));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.12s linear;
  opacity: 0.9;
}

/* ---------- 12. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 90px);
  border-top: 1px solid rgba(74, 107, 84, 0.55);
  color: rgba(242, 237, 227, 0.72);
  background: linear-gradient(180deg, rgba(11, 31, 26, 0.1) 0%, rgba(16, 19, 20, 0.92) 20%, #101314 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 22%, var(--amber) 50%, var(--ember) 78%, transparent);
  opacity: 0.6;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.8fr)) minmax(0, 1.15fr);
  gap: clamp(22px, 3vw, 48px);
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(38px, 5.4vw, 72px) var(--gutter) clamp(26px, 3vw, 40px);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--bone);
}

.footer-brand__note {
  margin-top: 12px;
  max-width: 26em;
  font-size: 14px;
  line-height: 1.72;
  color: rgba(242, 237, 227, 0.6);
}

.footer-brand__meta { margin-top: 16px; }

.footer-col__title {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.footer-col__list {
  display: grid;
  gap: 10px;
}

.footer-col__list a {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  font-size: 14.5px;
  color: rgba(242, 237, 227, 0.72);
  transition: color 0.18s ease;
}

.footer-col__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.footer-col__list a:hover { color: var(--bone); }
.footer-col__list a:hover::after { transform: scaleX(1); }

.footer-contact__list {
  display: grid;
  gap: 13px;
  font-size: 13.5px;
  line-height: 1.68;
}

.footer-contact__list li {
  display: grid;
  gap: 3px;
}

.footer-contact__list .label { color: var(--moss); }

.footer-contact__list .mono {
  font-size: 14px;
  color: rgba(242, 237, 227, 0.86);
  word-break: break-all;
}

.footer-base {
  border-top: 1px solid var(--line);
  background: rgba(8, 22, 19, 0.7);
}

.footer-base__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px var(--gutter) 26px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

.footer-base__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-base__links a {
  color: rgba(242, 237, 227, 0.66);
  transition: color 0.18s ease;
}

.footer-base__links a:hover { color: var(--cyan); }

.footer-base__icp { font-family: var(--font-mono); letter-spacing: 0.02em; }

/* ---------- 13. Reveal ---------- */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.js-ready [data-reveal="in"] {
  opacity: 1;
  transform: none;
}

/* ---------- 14. Responsive ---------- */
@media (max-width: 1180px) {
  .cmd-jump { display: none; }
}

@media (max-width: 1080px) {
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .cmd-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    max-height: 76vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px var(--gutter) 22px;
    background: linear-gradient(180deg, #101314 0%, #0B1F1A 100%);
    border-bottom: 1px solid rgba(63, 224, 200, 0.25);
    box-shadow: 0 26px 52px -30px rgba(0, 0, 0, 0.95);
  }

  .cmd-nav[data-open] { display: flex; }

  .cmd-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    flex: 0 0 auto;
  }

  .cmd-nav__list a {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
  }

  .cmd-nav__list a::after { left: 14px; right: 14px; bottom: 6px; }
  .cmd-nav__list a[aria-current="page"] { padding-left: 24px; }
  .cmd-nav__list a[aria-current="page"]::before { left: 9px; }

  .cmd-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 0 0 auto;
  }

  .cmd-jump a {
    padding: 7px 11px;
    font-size: 11.5px;
  }

  .btn--compact { padding: 8px 13px; font-size: 12.5px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .header-inner { gap: 10px; }

  .brand__line { display: none; }

  .site-header[data-scrolled] .header-inner { padding-block: 9px; }
}

@media (max-width: 620px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-base__inner { flex-direction: column; align-items: flex-start; }
  .btn--compact { display: none; }
}

/* ---------- 15. 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;
  }

  .js-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .header-progress { transition: none; }
}
