/* ==========================================================================
   乐鱼赛事 · 共享样式表 /assets/site.css
   深海蓝底 · 跃动橙 + 荧光青双强调 · 琥珀金关键数据
   ========================================================================== */

/* 1. Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  background: #061527;
  scroll-behavior: smooth;
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
ul[class], ol[class] { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }

/* 2. Tokens --------------------------------------------------------------- */
:root {
  --sea-900: #061527;
  --sea-800: #0D2540;
  --line: #17395C;
  --orange: #FF6A00;
  --cyan: #23E0D0;
  --amber: #FFC14D;
  --up: #38D98A;
  --down: #FF5C7A;
  --text: #C3D2E0;
  --muted: #8399AD;
  --white: #F4F8FC;
  --paper: #E8EFF6;
  --paper-ink: #0D2540;

  --font-display: "Archivo Narrow", "Arial Narrow", "Helvetica Neue", -apple-system,
    "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC",
    "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "IBM Plex Mono", SFMono-Regular, Menlo,
    Consolas, "Liberation Mono", monospace;

  --fs-12: 12px;
  --fs-13: 13px;
  --fs-15: 15px;
  --fs-17: 17px;
  --fs-22: 22px;
  --fs-32: 32px;
  --fs-48: clamp(30px, 4.4vw, 48px);
  --fs-72: clamp(42px, 7vw, 72px);

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --radius: 2px;
  --shadow-panel: 0 1px 0 rgba(244, 248, 252, 0.04), 0 24px 48px -36px rgba(0, 0, 0, 0.95);
  --shadow-hover: 0 1px 0 rgba(35, 224, 208, 0.35), 0 28px 56px -34px rgba(0, 0, 0, 1);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 220ms;
  --header-h: 112px;
}

/* 3. Base & typography ---------------------------------------------------- */
body {
  min-height: 100vh;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-17);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(35, 224, 208, 0.10), transparent 70%),
    radial-gradient(760px 480px at 92% 4%, rgba(255, 106, 0, 0.09), transparent 72%),
    repeating-linear-gradient(90deg, rgba(23, 57, 92, 0.32) 0 1px, transparent 1px 96px);
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--white);
}
h1 { font-size: var(--fs-72); }
h2 { font-size: var(--fs-48); }
h3 { font-size: var(--fs-22); }
h4 { font-size: var(--fs-17); font-weight: 800; letter-spacing: 0; }
p { text-wrap: pretty; }
[id] { scroll-margin-top: 130px; }

:where(a, button, [tabindex], summary):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 1px;
}

/* 4. Layout --------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.page-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: clamp(20px, 3.5vw, 48px);
}
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
}
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }
.hairline { height: 1px; margin: 0; border: 0; background: var(--line); }
.cut-band {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px);
  background: var(--sea-800);
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}
.prose {
  max-width: 68ch;
  font-size: var(--fs-17);
  line-height: 1.9;
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--fs-32); margin-top: 1.6em; }
.prose h3 { font-size: var(--fs-22); margin-top: 1.4em; }
.prose a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(35, 224, 208, 0.4);
}
.prose a:hover { border-bottom-color: var(--cyan); }
.prose ul, .prose ol { padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: 0.5em; }
.prose strong { color: var(--white); }
.prose--paper {
  background: var(--paper);
  color: var(--paper-ink);
  padding: clamp(20px, 3vw, 44px);
  border: 1px solid rgba(13, 37, 64, 0.14);
  border-radius: var(--radius);
}
.prose--paper h2, .prose--paper h3, .prose--paper strong { color: var(--paper-ink); }
.prose--paper a { color: #0d6f86; border-bottom-color: rgba(13, 111, 134, 0.45); }

/* 5. Index type & head bar ------------------------------------------------ */
.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
}
.num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}
.section-number {
  font-family: var(--font-mono);
  font-size: var(--fs-13);
  letter-spacing: 0.08em;
  color: var(--amber);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(20px, 3vw, 36px);
}
.section-head__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: var(--fs-22);
  line-height: 1.2;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  color: var(--muted);
}
.breadcrumbs__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs__item + .breadcrumbs__item::before { content: "/"; color: var(--line); }
.breadcrumbs__link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.breadcrumbs__link:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.breadcrumbs__current { color: var(--text); }

/* 6. Buttons, tags, panels ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  font-size: var(--fs-15);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--sea-900);
}
.btn--primary:hover {
  background: #ff7d1f;
  border-color: var(--amber);
  box-shadow: 0 12px 28px -16px rgba(255, 106, 0, 0.95);
}
.btn--ghost { border-color: var(--line); color: var(--white); }
.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(35, 224, 208, 0.25);
}
.btn--line {
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  color: var(--text);
}
.btn--line:hover { color: var(--amber); border-color: var(--amber); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 1px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag--live { color: var(--cyan); border-color: rgba(35, 224, 208, 0.45); }
.tag--hot { color: var(--amber); border-color: rgba(255, 193, 77, 0.45); }

.panel {
  position: relative;
  padding: clamp(18px, 2.2vw, 28px);
  background: var(--sea-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.panel:hover { border-color: rgba(35, 224, 208, 0.45); box-shadow: var(--shadow-hover); }
.panel--flat { background: transparent; box-shadow: none; }
.panel--flat:hover { box-shadow: none; }
.panel__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.panel__body { font-size: var(--fs-15); line-height: 1.8; }

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--fs-32);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}
.stat__label {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  color: var(--muted);
}
.stat--amber .stat__value { color: var(--amber); }
.stat--up .stat__value { color: var(--up); }
.stat--down .stat__value { color: var(--down); }

/* 7. Mirror & media frame ------------------------------------------------- */
.mirror {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: stretch;
  gap: clamp(12px, 2vw, 28px);
}
.mirror__line { width: 1px; background: var(--cyan); opacity: 0.55; }
.mirror__side { min-width: 0; }
.mirror__side--home { text-align: right; }
.mirror__side--away { text-align: left; }

.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(35, 224, 208, 0.12), rgba(6, 21, 39, 0) 55%),
    repeating-linear-gradient(90deg, rgba(23, 57, 92, 0.5) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(23, 57, 92, 0.35) 0 1px, transparent 1px 72px),
    var(--sea-800);
}
.media-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  z-index: 2;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(35, 224, 208, 0.55) 0 1px, transparent 1px 24px);
}
.media-frame__inner { position: absolute; inset: 0; }
.media-frame__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  color: var(--text);
  background: linear-gradient(0deg, rgba(6, 21, 39, 0.94), rgba(6, 21, 39, 0));
}
.media-frame__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 4px 10px;
  background: var(--orange);
  color: var(--sea-900);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }

/* 8. Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 21, 39, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header[data-scrolled] { box-shadow: 0 18px 40px -34px rgba(0, 0, 0, 1); }
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 90;
  transform: translateY(-220%);
  padding: 12px 18px;
  background: var(--orange);
  color: var(--sea-900);
  font-size: var(--fs-15);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus, .skip-link:focus-visible { transform: none; }
.scroll-rail { height: 2px; background: rgba(23, 57, 92, 0.8); }
.scroll-rail__bar {
  display: block;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--amber) 58%, var(--orange));
}
.header-meta {
  border-bottom: 1px solid var(--line);
  background: rgba(13, 37, 64, 0.55);
}
.header-meta__shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 36px;
}
.header-meta__note {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.14em;
  color: var(--muted);
}
.meta-rail { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.meta-link {
  display: inline-block;
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.meta-link:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

.header-bar { position: relative; }
.header-shell {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
  min-height: 72px;
  padding-block: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  color: var(--white);
  text-decoration: none;
}
.brand__mark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 8px 7px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(35, 224, 208, 0.16), rgba(255, 106, 0, 0.06));
}
.brand__mark i { display: block; width: 100%; height: 2px; background: var(--cyan); }
.brand__mark i:nth-child(2) { width: 72%; background: var(--amber); }
.brand__mark i:nth-child(3) { width: 44%; background: var(--orange); }
.brand__text { display: block; }
.brand__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--white);
}
.brand__line {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle__bars { display: flex; flex-direction: column; gap: 3px; width: 16px; }
.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle__label { line-height: 1; }
.site-header[data-open] .nav-toggle { border-color: var(--orange); color: var(--orange); }
.site-header[data-open] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.site-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.nav-list__item { display: block; }
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  font-size: var(--fs-15);
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.nav-link:hover {
  color: var(--white);
  background: rgba(35, 224, 208, 0.08);
  border-bottom-color: var(--cyan);
}
.nav-link[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 106, 0, 0.1);
  border-bottom-color: var(--orange);
}
.header-cta { flex: 0 0 auto; white-space: nowrap; }

/* 9. Footer & to-top ------------------------------------------------------ */
.site-footer {
  margin-top: clamp(48px, 8vw, 120px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 37, 64, 0.92), rgba(6, 21, 39, 1));
  color: var(--text);
}
.footer-ruler {
  height: 10px;
  border-bottom: 1px solid rgba(23, 57, 92, 0.6);
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 48px);
  background-repeat: repeat-x;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(250px, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px);
}
.footer-brand { min-width: 0; }
.footer-brand__name {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.015em;
  color: var(--white);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.footer-brand__name:hover { color: var(--amber); }
.footer-brand__tag {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.14em;
  color: var(--cyan);
}
.footer-brand__desc {
  margin-top: 16px;
  max-width: 36ch;
  font-size: var(--fs-15);
  line-height: 1.8;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.footer-col { padding-top: 16px; border-top: 1px solid var(--line); }
.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--amber);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  display: inline-block;
  padding-bottom: 2px;
  font-size: var(--fs-15);
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer-link:hover { color: var(--white); border-bottom-color: var(--cyan); }
.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px clamp(20px, 3vw, 40px);
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.footer-contact__item { display: flex; flex-direction: column; gap: 6px; }
.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.footer-contact__value { font-size: var(--fs-15); line-height: 1.7; color: var(--white); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding: 20px 0 32px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  color: var(--muted);
}
.footer-legal, .footer-note, .footer-meta { color: var(--muted); }
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 37, 64, 0.94);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) linear,
    border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.to-top[data-visible] { opacity: 1; visibility: visible; }
.to-top:hover { border-color: var(--cyan); color: var(--cyan); }

/* 10. Reveal -------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* 11. Responsive ---------------------------------------------------------- */
@media (max-width: 1180px) {
  .header-meta__note { display: none; }
}
@media (max-width: 1080px) {
  .span-3, .span-4, .span-5 { grid-column: span 6; }
  .span-7, .span-8, .span-9 { grid-column: span 12; }
}
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    margin: 0;
    padding: 10px var(--gutter) 18px;
    background: rgba(13, 37, 64, 0.98);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 1);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }
  .site-header[data-open] .site-nav,
  .site-nav[data-open] { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link {
    width: 100%;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
  }
  .nav-link:hover,
  .nav-link[aria-current="page"] {
    border-bottom-color: var(--line);
    border-left-color: var(--orange);
    padding-left: 12px;
  }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  .header-cta { display: none; }
  .brand__line { display: none; }
  .header-meta__shell { min-height: 32px; }
  .meta-rail { gap: 2px 16px; }
}
@media (max-width: 640px) {
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .span-3, .span-4, .span-5, .span-6,
  .span-7, .span-8, .span-9, .span-12 { grid-column: span 6; }
  .mirror { grid-template-columns: 1fr; gap: 16px; }
  .mirror__line { width: auto; height: 1px; }
  .mirror__side--home { text-align: left; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cut-band { clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%); }
}

/* 12. Motion preferences -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .to-top { transition: none; }
}
