/* ==========================================================================
   星空体育入口 · 共享样式 /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, ol, ul { margin: 0; }

ul[class],
ol[class] { padding: 0; list-style: none; }

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

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

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

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

/* ---------- 2. Tokens ---------- */
:root {
  /* 品牌色 */
  --ink: #0B0714;
  --panel: #1C1522;
  --cream: #F3ECDF;
  --violet: #7A3BFF;
  --cyan: #2BE3C6;
  --orange: #FF6A2B;
  --alert: #E8443A;
  --dust: #9A93A8;
  --snow: #FFFFFF;
  --void: #2A1B4A;

  /* 语义层（深色为默认） */
  --bg: var(--ink);
  --bg-2: var(--panel);
  --bg-3: #241A33;
  --text: var(--cream);
  --text-dim: var(--dust);
  --text-strong: var(--snow);
  --line: rgba(243, 236, 223, 0.13);
  --line-soft: rgba(243, 236, 223, 0.07);
  --line-violet: rgba(122, 59, 255, 0.45);
  --grid-line: rgba(122, 59, 255, 0.13);
  --overlay: rgba(11, 7, 20, 0.97);
  --glow-a: rgba(122, 59, 255, 0.20);
  --glow-b: rgba(43, 227, 198, 0.08);

  /* 字体 */
  --font-sans: "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Courier New", monospace;

  /* 尺寸 */
  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --hdr-h: 68px;
  --r: 3px;
  --shadow-soft: 0 1px 0 rgba(255, 255, 255, 0.03), 0 16px 36px -24px var(--void);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

[data-theme="light"] {
  --bg: #EDE4D6;
  --bg-2: #F7F1E6;
  --bg-3: #E4D9C6;
  --text: #1C1522;
  --text-dim: #5B5368;
  --text-strong: #0B0714;
  --line: rgba(28, 21, 34, 0.15);
  --line-soft: rgba(28, 21, 34, 0.08);
  --line-violet: rgba(122, 59, 255, 0.5);
  --grid-line: rgba(122, 59, 255, 0.12);
  --overlay: rgba(243, 236, 223, 0.98);
  --glow-a: rgba(122, 59, 255, 0.14);
  --glow-b: rgba(43, 227, 198, 0.16);
  --shadow-soft: 0 16px 32px -26px rgba(28, 21, 34, 0.6);
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.008em;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px),
    radial-gradient(120% 90% at 78% -10%, var(--glow-a), transparent 62%),
    radial-gradient(90% 70% at 5% 8%, var(--glow-b), transparent 60%);
  background-size: 96px 96px, 96px 96px, auto, auto;
  background-repeat: repeat, repeat, no-repeat, no-repeat;
  background-attachment: fixed, fixed, fixed, fixed;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  font-stretch: condensed;
}

h1 { font-size: clamp(34px, 6.2vw, 68px); }
h2 { font-size: clamp(24px, 3.2vw, 34px); }
h3 { font-size: clamp(18px, 2vw, 22px); font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }

p { max-width: 68ch; }

strong, b { font-weight: 700; color: var(--text-strong); }

code, kbd, samp, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: clamp(32px, 5vw, 56px);
}

::selection { background: var(--violet); color: #fff; }

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

#main-content { scroll-margin-top: calc(var(--hdr-h) + 72px); }

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

.section {
  position: relative;
  padding-block: clamp(48px, 8vw, 96px);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  padding-bottom: 16px;
  margin-bottom: clamp(24px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
}

.section__hint {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.kicker::before {
  content: "";
  width: 14px;
  height: 1px;
  background: currentColor;
}

.grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 24px);
}

.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)); }

.panel {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-soft);
}

/* ---------- 5. Buttons & tags ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.18s var(--ease);
}

.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #14060B;
}

.btn--primary:hover { background: #FF8551; border-color: #FF8551; }
.btn--primary:active { transform: translateY(1px); }

.btn--ghost {
  background: rgba(122, 59, 255, 0.1);
  border-color: var(--line-violet);
  color: var(--text);
}

.btn--ghost:hover { background: rgba(122, 59, 255, 0.22); }

.btn--line {
  border-color: var(--line);
  color: var(--text-dim);
}

.btn--line:hover { color: var(--text-strong); border-color: var(--line-violet); }

.btn--sm { padding: 9px 14px; font-size: 12px; }
.btn--block { width: 100%; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 2px;
  line-height: 1.6;
}

.tag--live { color: var(--cyan); border-color: rgba(43, 227, 198, 0.4); }
.tag--alert { color: var(--alert); border-color: rgba(232, 68, 58, 0.45); }
.tag--action { color: var(--orange); border-color: rgba(255, 106, 43, 0.45); }

/* ---------- 6. Breadcrumb / prose ---------- */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.crumb > * + *::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-violet);
}

.crumb a { color: var(--text-dim); transition: color 0.18s var(--ease); }
.crumb a:hover { color: var(--cyan); }
.crumb [aria-current="page"] { color: var(--cyan); }

.prose { max-width: 74ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* ---------- 7. Figure ---------- */
.figure {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background-color: var(--bg-3);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px),
    linear-gradient(150deg, var(--void), var(--panel) 62%, var(--ink));
  background-size: 44px 44px, 44px 44px, auto;
  box-shadow: var(--shadow-soft);
}

.figure__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--cream);
  background: linear-gradient(to top, rgba(11, 7, 20, 0.9), rgba(11, 7, 20, 0));
}

.figure--16x9 { aspect-ratio: 16 / 9; }
.figure--4x3 { aspect-ratio: 4 / 3; }
.figure--1x1 { aspect-ratio: 1 / 1; }
.figure--21x9 { aspect-ratio: 21 / 9; }

/* ---------- 8. Tabs ---------- */
.tabs { position: relative; }

.tabs__list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  max-width: 100%;
  padding: 3px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.tabs__tab {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease);
}

.tabs__tab:hover { color: var(--text-strong); }

.tabs__tab[aria-selected="true"] {
  background: var(--violet);
  color: #fff;
}

.tabs__panel { margin-top: clamp(20px, 3vw, 28px); }
.tabs__panel[hidden] { display: none; }

/* ---------- 9. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #14060B;
  background: var(--orange);
  border-radius: 2px;
  transform: translateY(-240%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

/* ---------- 10. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}

/* 10.1 状态带 */
.status-bar {
  max-height: 60px;
  overflow: hidden;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-soft);
  transition: max-height 0.32s var(--ease), opacity 0.32s var(--ease);
}

.status-bar[data-collapsed] {
  max-height: 8px;
  opacity: 0.75;
}

.status-bar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  padding-block: 5px;
  font-size: 12.5px;
  line-height: 1.6;
}

.status-bar__flag {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(43, 227, 198, 0.14);
}

.status-bar.is-alert .status-bar__flag {
  background: var(--alert);
  box-shadow: 0 0 0 3px rgba(232, 68, 58, 0.18);
}

.status-bar__text {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  color: var(--text-dim);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.status-bar__label {
  margin-right: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.status-bar__toggle {
  flex: none;
  padding: 4px 6px;
  font-size: 12px;
  color: var(--text-dim);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.18s var(--ease);
}

.status-bar__toggle:hover { color: var(--cyan); }

/* 10.2 刊头 */
.masthead {
  position: relative;
  background: var(--bg);
  border-bottom: 1px solid var(--line-violet);
}

.masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet), var(--cyan), transparent);
  opacity: 0.5;
}

.masthead__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 24px;
  min-height: var(--hdr-h);
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__coord {
  flex: none;
  padding: 4px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  border: 1px solid var(--line-violet);
  border-radius: 2px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand__word {
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-strong);
  font-stretch: condensed;
}

.brand__line {
  overflow: hidden;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 10.3 导航 */
.site-nav {
  justify-self: center;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.3vw, 18px);
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 3px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease), background-color 0.22s var(--ease);
}

.site-nav__link:hover { color: var(--text-strong); }
.site-nav__link:hover::after { transform: scaleX(1); }

.site-nav__link[aria-current="page"] { color: var(--text-strong); }

.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--violet);
}

/* 10.4 工具区 */
.masthead__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.theme-toggle:hover { color: var(--text-strong); border-color: var(--line-violet); }

.theme-toggle[aria-pressed="true"] {
  color: var(--cyan);
  border-color: rgba(43, 227, 198, 0.5);
}

.theme-toggle__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-violet);
  border-radius: var(--r);
  cursor: pointer;
}

.nav-toggle__bars {
  position: relative;
  width: 16px;
  height: 10px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.22s var(--ease), top 0.22s var(--ease),
    bottom 0.22s var(--ease);
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  bottom: 4px;
  transform: rotate(-45deg);
}

/* ---------- 11. Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(72px, 10vw, 128px);
  color: var(--text-dim);
  background: var(--bg-2);
  border-top: 1px solid var(--line-violet);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet), var(--cyan), transparent);
  opacity: 0.45;
}

.site-footer__inner { padding-block: clamp(44px, 6vw, 78px) 26px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
}

.footer-brand__word {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  font-stretch: condensed;
}

.footer-brand__line {
  margin-top: 12px;
  max-width: 32ch;
  font-size: 14px;
  line-height: 1.7;
}

.footer-brand__note {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

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

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

.footer-col__link {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.18s var(--ease);
}

.footer-col__link:hover { color: var(--text-strong); }

.footer-contact {
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: clamp(26px, 4vw, 40px);
  border-top: 1px solid var(--line);
}

.footer-contact__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px 32px;
}

.footer-contact__row { display: grid; gap: 4px; }

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer-contact__value {
  font-size: 14px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.footer-contact__hint {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-dim);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(30px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.footer-legal__copy {
  max-width: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12.5px;
}

.footer-legal__links a {
  color: var(--text);
  transition: color 0.18s var(--ease);
}

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

/* ---------- 12. Progress & readout ---------- */
.progress {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  height: 2px;
  pointer-events: none;
}

.progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--cyan) 68%, var(--orange));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.12s linear;
}

.readout {
  position: fixed;
  right: clamp(12px, 2vw, 28px);
  bottom: clamp(14px, 2.4vw, 30px);
  z-index: 96;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  background: var(--bg-2);
  border: 1px solid var(--line-violet);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.readout[data-active] { display: inline-flex; }

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

.readout__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

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

/* ---------- 13. Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

/* ---------- 14. Responsive ---------- */
@media (max-width: 1180px) and (min-width: 941px) {
  .brand__line { display: none; }
  .site-nav__list { gap: 8px; }
  .site-nav__link { font-size: 13px; }
  .masthead__inner { gap: 12px 16px; }
}

@media (max-width: 940px) {
  .is-nav-open,
  .is-nav-open body { overflow: hidden; }

  .nav-toggle { display: inline-flex; }

  .masthead__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand toggle"
      "tools tools";
    gap: 12px;
    min-height: 0;
    padding-block: 12px;
  }

  .brand { grid-area: brand; }
  .brand__line { display: none; }
  .nav-toggle { grid-area: toggle; }
  .masthead__tools { grid-area: tools; }

  .masthead__tools .btn--primary {
    flex: 1 1 auto;
  }

  .site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 90;
    justify-self: stretch;
    max-height: 100vh;
    padding: 104px var(--gutter) 32px;
    overflow-y: auto;
    background: var(--overlay);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line-violet);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-102%);
    transition: transform 0.34s var(--ease), opacity 0.24s var(--ease),
      visibility 0.24s var(--ease);
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    counter-reset: navco;
  }

  .site-nav__item {
    counter-increment: navco;
    border-bottom: 1px solid var(--line-soft);
  }

  .site-nav__link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 2px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
  }

  .site-nav__link::before {
    content: "0" counter(navco);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--cyan);
    opacity: 0.72;
  }

  .site-nav__link::after { display: none; }
  .site-nav__link[aria-current="page"] { color: var(--cyan); }

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

@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: auto; }

  .status-bar__text { white-space: normal; }
  .status-bar { max-height: 90px; }
  .status-bar[data-collapsed] { max-height: 6px; }

  .brand__coord { 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 [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .progress__bar { transition: none; }
}
