/* ============================================================
   金喜体育 · /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, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video, picture { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }
input, textarea, select { font: inherit; }

/* ---------- 2. Tokens ---------- */
:root {
  --pitch: #07100D;
  --ink: #0B2B24;
  --volt: #D8FF3E;
  --chalk: #F4F7EE;
  --char: #121612;
  --stone: #5C665F;
  --moss: #5F7A5A;
  --clay: #B96A4B;
  --rose: #E0417A;
  --cyan: #7BD3C4;

  --line-on-dark: rgba(244, 247, 238, 0.14);
  --line-on-light: rgba(18, 22, 18, 0.13);
  --volt-soft: rgba(216, 255, 62, 0.12);
  --cyan-soft: rgba(123, 211, 196, 0.16);

  --font-display: 'Barlow Condensed', 'Archivo Narrow', 'Noto Sans SC', 'Source Han Sans SC', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Roboto Mono', 'SFMono-Regular', ui-monospace, monospace;
  --font-body: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --shell: 1320px;
  --gutter: clamp(16px, 4vw, 44px);
  --radius-cut: 18px 6px 18px 6px;
  --shadow-lift: 0 22px 44px -26px rgba(7, 16, 13, 0.62);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-pad: clamp(10px, 1.4vw, 16px);
}

/* ---------- 3. Base ---------- */
body {
  background-color: var(--chalk);
  color: var(--char);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.02vw, 17.5px);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
h4 { font-size: 1.05rem; letter-spacing: 0.01em; }
strong { font-weight: 700; }
small { font-size: 0.8em; }

::selection { background: var(--volt); color: var(--char); }

#main-content:focus { outline: none; }

/* 焦点：荧光黄外环 + 玫红状态环，深浅底皆可见 */
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--volt);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(224, 65, 122, 0.55);
  border-radius: 2px;
}

/* ---------- 4. 布局与章节 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(48px, 7vw, 96px);
  position: relative;
}
.section--ink { background-color: var(--ink); color: var(--chalk); }
.section--pitch { background-color: var(--pitch); color: var(--chalk); }
.section--ink h1, .section--ink h2, .section--ink h3,
.section--pitch h1, .section--pitch h2, .section--pitch h3 { color: var(--chalk); }
.section--ink :where(a:not(.btn)), .section--pitch :where(a:not(.btn)) { color: var(--volt); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--volt);
  outline: 1px solid rgba(18, 22, 18, 0.2);
}
.section--ink .eyebrow, .section--pitch .eyebrow { color: var(--cyan); }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 46px;
  padding: 0.62em 1.35em;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 3px 12px 3px 12px;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
              color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn:active { transform: translateY(0); }

.btn--accent {
  background-color: var(--volt);
  color: var(--char);
  border-color: var(--volt);
}
.btn--accent:hover { background-color: #E7FF76; color: var(--char); }

.btn--outline {
  background-color: transparent;
  color: var(--chalk);
  border-color: rgba(244, 247, 238, 0.4);
}
.btn--outline:hover {
  color: var(--volt);
  border-color: var(--volt);
  background-color: rgba(216, 255, 62, 0.08);
}

.btn--ghost {
  background-color: transparent;
  color: rgba(244, 247, 238, 0.82);
  border-color: rgba(216, 255, 62, 0.3);
}
.btn--ghost:hover {
  color: var(--volt);
  border-color: var(--volt);
  background-color: rgba(216, 255, 62, 0.07);
}

.btn--sm { min-height: 38px; padding: 0.45em 1em; font-size: 0.92rem; }

/* ---------- 6. Skip link ---------- */
.skip-link {
  position: absolute;
  top: 6px;
  left: 12px;
  z-index: 999;
  padding: 10px 18px;
  background-color: var(--volt);
  color: var(--char);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 2px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid var(--rose);
  outline-offset: 2px;
}

/* ---------- 7. 头部：命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: var(--pitch);
  color: var(--chalk);
  border-bottom: 1px solid rgba(216, 255, 62, 0.2);
  background-image:
    repeating-linear-gradient(90deg, rgba(123, 211, 196, 0.09) 0 1px, transparent 1px 96px),
    linear-gradient(180deg, rgba(11, 43, 36, 0.95), rgba(7, 16, 13, 1));
}

/* 命令栏索引带 */
.cmd-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 6px var(--gutter);
  max-height: 40px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 247, 238, 0.56);
  border-bottom: 1px solid rgba(244, 247, 238, 0.08);
  transition: max-height 0.3s var(--ease), opacity 0.2s var(--ease), padding 0.3s var(--ease);
}
.cmd-rail__note { white-space: nowrap; }
.cmd-rail__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  white-space: nowrap;
}
.status-dot {
  width: 7px;
  height: 7px;
  flex: none;
  background-color: var(--volt);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(216, 255, 62, 0.6);
  animation: jx-pulse 2.4s ease-out infinite;
}
@keyframes jx-pulse {
  0% { box-shadow: 0 0 0 0 rgba(216, 255, 62, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(216, 255, 62, 0); }
  100% { box-shadow: 0 0 0 0 rgba(216, 255, 62, 0); }
}
.status-text { font-size: 0.68rem; letter-spacing: 0.12em; }

/* 头部滚动收起索引带 */
.site-header[data-compact] .cmd-rail {
  max-height: 0;
  padding-block: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 3vw, 40px);
  max-width: var(--shell);
  margin-inline: auto;
  padding: var(--header-pad) var(--gutter);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--chalk);
  flex: none;
}
.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--volt);
  border: 1px solid rgba(216, 255, 62, 0.7);
  background-image: linear-gradient(135deg, rgba(216, 255, 62, 0.2), transparent 62%);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.brand__mark::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 9px;
  height: 9px;
  background-color: var(--rose);
}
.brand:hover .brand__mark { background-color: rgba(216, 255, 62, 0.16); color: var(--chalk); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.brand__tagline {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--cyan);
  text-transform: uppercase;
}

/* 导航 */
.site-nav { justify-self: center; min-width: 0; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-item { flex: none; }
.nav-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 12px 12px;
  text-decoration: none;
  color: rgba(244, 247, 238, 0.78);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-link__idx {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--cyan);
  transition: color 0.2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  background-color: var(--volt);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease);
}
.nav-link:hover { color: var(--chalk); background-color: rgba(216, 255, 62, 0.07); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--volt); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] .nav-link__idx { color: var(--volt); }

/* 头部行动区 */
.header-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid rgba(216, 255, 62, 0.4);
  border-radius: 2px;
  color: var(--chalk);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-toggle:hover { color: var(--volt); border-color: var(--volt); background-color: rgba(216, 255, 62, 0.07); }
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.24s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background-color: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle__label { white-space: nowrap; }

/* 阅读进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background-color: rgba(216, 255, 62, 0.12);
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background-image: linear-gradient(90deg, var(--cyan), var(--volt) 58%, var(--rose));
  transition: transform 0.12s linear;
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  background-color: var(--pitch);
  color: var(--chalk);
  border-top: 1px solid rgba(216, 255, 62, 0.24);
  overflow: hidden;
}
.footer-band {
  position: absolute;
  inset: 0 0 auto 0;
  height: 180px;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(123, 211, 196, 0.14) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(123, 211, 196, 0.1) 0 1px, transparent 1px 72px),
    radial-gradient(120% 90% at 88% 0%, rgba(216, 255, 62, 0.16), transparent 62%);
  mask-image: linear-gradient(180deg, #000, transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 92%);
  opacity: 0.85;
}
.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 1.05fr;
  gap: clamp(26px, 4vw, 64px);
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 76px) var(--gutter) clamp(30px, 4vw, 48px);
}
.footer-primary { min-width: 0; }
.footer-brand {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: var(--chalk);
}
.footer-brand::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 14px;
  background-image: linear-gradient(90deg, var(--volt), var(--rose));
}
.footer-lead-note {
  max-width: 46ch;
  margin-top: 16px;
  font-size: 0.94rem;
  line-height: 1.8;
  color: rgba(244, 247, 238, 0.66);
}
.footer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.footer-col { min-width: 0; }
.footer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.footer-title::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  background-color: var(--volt);
}
.footer-list { display: flex; flex-direction: column; }
.footer-list > li { border-bottom: 1px solid rgba(244, 247, 238, 0.1); }
.footer-list > li:last-child { border-bottom: 0; }
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 9px 0;
  text-decoration: none;
  color: rgba(244, 247, 238, 0.8);
  font-size: 0.96rem;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-link::before {
  content: "";
  width: 8px;
  height: 2px;
  flex: none;
  background-color: var(--clay);
  transition: width 0.2s var(--ease), background-color 0.2s var(--ease);
}
.footer-link:hover { color: var(--volt); transform: translateX(3px); }
.footer-link:hover::before { width: 16px; background-color: var(--volt); }

.footer-meta { display: grid; gap: 12px; }
.footer-meta__row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(244, 247, 238, 0.12);
}
.footer-meta__row:last-child { border-bottom: 0; padding-bottom: 0; }
.footer-meta__term {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
  filter: brightness(1.35);
}
.footer-meta__desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(244, 247, 238, 0.88);
  word-break: break-word;
}

.footer-base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 18px var(--gutter) 26px;
  border-top: 1px solid rgba(244, 247, 238, 0.12);
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(244, 247, 238, 0.52);
}
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.footer-link--legal {
  padding: 4px 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(244, 247, 238, 0.66);
}
.footer-link--legal::before { display: none; }
.footer-link--legal:hover { color: var(--volt); transform: none; }

/* ---------- 9. 通用内容组件 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}
.breadcrumbs a { text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 1px; }
.breadcrumbs a:hover { color: var(--char); border-bottom-color: var(--moss); }
.breadcrumbs__sep { color: var(--clay); }
.breadcrumbs [aria-current="page"] { color: var(--char); }
.section--ink .breadcrumbs, .section--pitch .breadcrumbs { color: rgba(244, 247, 238, 0.55); }
.section--ink .breadcrumbs a:hover, .section--pitch .breadcrumbs a:hover { color: var(--chalk); }
.section--ink .breadcrumbs [aria-current="page"],
.section--pitch .breadcrumbs [aria-current="page"] { color: var(--volt); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.24em 0.7em;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  background-color: rgba(92, 102, 95, 0.16);
  color: var(--char);
  border: 1px solid rgba(18, 22, 18, 0.12);
}
.tag--volt { background-color: var(--volt); color: var(--char); border-color: var(--volt); }
.tag--clay { background-color: rgba(185, 106, 75, 0.16); color: #7B3D26; border-color: rgba(185, 106, 75, 0.4); }
.tag--rose { background-color: rgba(224, 65, 122, 0.14); color: #A31B4F; border-color: rgba(224, 65, 122, 0.42); }
.tag--moss { background-color: rgba(95, 122, 90, 0.18); color: #33452F; border-color: rgba(95, 122, 90, 0.4); }
.section--ink .tag, .section--pitch .tag { color: var(--chalk); border-color: rgba(244, 247, 238, 0.24); }
.section--ink .tag--volt, .section--pitch .tag--volt { color: var(--char); border-color: transparent; }

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 2.1em; }
.prose h3 { margin-top: 1.7em; }
.prose ul, .prose ol { padding-left: 1.15em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.42em; }
.prose a { color: inherit; text-decoration: underline; text-decoration-color: var(--moss); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--volt); }
.prose blockquote {
  padding-left: 1.1em;
  border-left: 3px solid var(--volt);
  color: var(--stone);
}

/* 可复用图片容器：页面阶段放置 <img> / <picture> 占位 */
.img-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-cut);
  border: 1px solid rgba(18, 22, 18, 0.16);
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(90deg, rgba(123, 211, 196, 0.14) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(123, 211, 196, 0.1) 0 1px, transparent 1px 56px),
    linear-gradient(155deg, var(--ink), var(--pitch));
}
.img-frame img,
.img-frame picture { width: 100%; height: 100%; }
.img-frame img { object-fit: cover; }
.img-frame picture { display: block; }
.img-frame::after {
  content: "";
  position: absolute;
  right: -16%;
  bottom: -26%;
  width: 58%;
  height: 62%;
  background-image: radial-gradient(circle at 70% 30%, rgba(216, 255, 62, 0.3), transparent 66%);
  pointer-events: none;
}
.img-frame--hero { aspect-ratio: 16 / 9; }
.img-frame--wide { aspect-ratio: 21 / 9; }
.img-frame--card { aspect-ratio: 4 / 3; }
.img-frame--square { aspect-ratio: 1 / 1; }
.img-frame__label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 0.24em 0.7em;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--char);
  background-color: var(--volt);
}

/* 渐显钩子 */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 10. 响应式 ---------- */
@media (max-width: 1180px) {
  .nav-link { padding-inline: 9px; font-size: 0.98rem; }
  .cmd-rail__note { letter-spacing: 0.1em; }
}

@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-primary { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand__name { font-size: 1.2rem; }
  .header-actions { order: 2; margin-left: auto; }
  .header-actions .btn--ghost { display: none; }
  .nav-toggle { display: inline-flex; order: 3; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 88;
    padding: 6px var(--gutter) 22px;
    background-color: var(--pitch);
    background-image:
      repeating-linear-gradient(90deg, rgba(123, 211, 196, 0.1) 0 1px, transparent 1px 72px);
    border-top: 1px solid rgba(216, 255, 62, 0.24);
    border-bottom: 1px solid rgba(216, 255, 62, 0.24);
    box-shadow: 0 26px 40px -28px rgba(0, 0, 0, 0.9);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: max-height 0.32s var(--ease), opacity 0.22s var(--ease),
                transform 0.28s var(--ease), visibility 0.28s linear;
  }
  .site-nav[data-open] {
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px dashed rgba(244, 247, 238, 0.14); }
  .nav-item:last-child { border-bottom: 0; }
  .nav-link {
    justify-content: flex-start;
    padding: 15px 4px;
    font-size: 1.22rem;
    letter-spacing: 0.08em;
  }
  .nav-link::after { left: 0; right: 0; bottom: 0; height: 2px; }
  .nav-link__idx { font-size: 0.68rem; color: var(--cyan); }

  .cmd-rail { font-size: 0.64rem; }
  .cmd-rail__note { display: none; }
  .cmd-rail__status { margin-left: auto; }
}

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-base { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .header-actions { display: none; }
  .footer-actions .btn { flex: 1 1 auto; }
  .footer-meta__row { grid-template-columns: 46px 1fr; }
}

@media (max-width: 420px) {
  .brand__mark { width: 34px; height: 34px; font-size: 1rem; }
  .brand__tagline { display: none; }
  .nav-toggle__label { display: none; }
}

@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;
  }
  .status-dot { animation: none; box-shadow: 0 0 0 3px rgba(216, 255, 62, 0.25); }
  [data-reveal] { opacity: 1; transform: none; }
  .btn:hover, .footer-link:hover { transform: none; }
}
