/* ==========================================================================
   竞博体育数据 · /assets/site.css
   共享外壳：浮岛胶囊头部 / 指挥台页脚 / 通用排版与图片容器
   ========================================================================== */

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

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

body, h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }

/* ---------- 2. tokens ---------- */
:root {
  --ink-900: #06101D;
  --ink-800: #0B1D31;
  --ink-700: #0F2740;
  --tactic: #153B5E;
  --orange: #FF7A1A;
  --flame: #FFB347;
  --cyan: #2DE2E6;
  --teal: #0C7C86;
  --violet: #6C5CE7;
  --paper: #F4EEDF;
  --mist: #93A7BA;

  --line: rgba(147, 167, 186, 0.22);
  --line-cyan: rgba(45, 226, 230, 0.34);
  --line-soft: rgba(147, 167, 186, 0.14);

  --font-display: "Oswald", "Barlow Condensed", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --shell: 1320px;
  --gutter: clamp(16px, 4vw, 44px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. base ---------- */
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(244, 238, 223, 0.9);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1100px 620px at 88% -12%, rgba(21, 59, 94, 0.72), transparent 68%),
    radial-gradient(760px 480px at 0% 6%, rgba(12, 124, 134, 0.22), transparent 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1 { font-size: clamp(44px, 7.2vw, 112px); line-height: 0.98; }
h2 { font-size: clamp(30px, 4vw, 56px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.24; }
h4 { font-size: 18px; line-height: 1.4; letter-spacing: 0; }

p { font-size: 1rem; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--flame); }

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

::selection { background: var(--orange); color: var(--ink-900); }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 400;
  transform: translateY(-180%);
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); color: var(--ink-900); }

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

.section { padding-block: clamp(48px, 7vw, 112px); }
.section--tight { padding-block: clamp(28px, 4vw, 64px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(24px, 3.5vw, 44px);
}

.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.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; }

/* ---------- 5. typographic helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
}

.rule-scale {
  position: relative;
  height: 1px;
  margin-block: clamp(28px, 4vw, 56px);
  background: var(--line);
}
.rule-scale::before {
  content: "";
  position: absolute;
  inset: -5px 0 auto;
  height: 5px;
  background-image: repeating-linear-gradient(90deg, var(--line-cyan) 0 1px, transparent 1px 16px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(21, 59, 94, 0.5);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}
.tag--live {
  color: var(--ink-900);
  background: var(--orange);
  border-color: var(--orange);
  font-weight: 700;
}
.tag--data {
  color: var(--cyan);
  border-color: var(--line-cyan);
  background: rgba(12, 124, 134, 0.16);
}

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(244, 238, 223, 0.86);
}
.prose p + p { margin-top: 1.1em; }
.prose h2 { margin-top: 1.6em; margin-bottom: 0.55em; font-size: clamp(26px, 3vw, 38px); }
.prose h3 { margin-top: 1.5em; margin-bottom: 0.45em; }
.prose ul { margin-block: 1em; }
.prose ul li {
  position: relative;
  padding-left: 1.35em;
}
.prose ul li + li { margin-top: 0.5em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 9px;
  height: 2px;
  background: var(--orange);
}
.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose--paper {
  max-width: none;
  padding: clamp(24px, 4vw, 56px);
  border-radius: 20px;
  border: 1px solid rgba(6, 16, 29, 0.12);
  background: var(--paper);
  color: #0E2036;
  box-shadow: 0 34px 70px -46px rgba(0, 0, 0, 0.9);
}
.prose--paper h2,
.prose--paper h3 { color: var(--ink-900); }
.prose--paper a { color: var(--teal); }
.prose--paper ul li::before { background: var(--orange); }

/* ---------- 6. buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn--primary {
  background: linear-gradient(180deg, #FF8C34, var(--orange));
  color: #08131F;
  box-shadow: 0 12px 26px -14px rgba(255, 122, 26, 0.95);
}
.btn--primary:hover {
  color: #08131F;
  transform: translateY(-1px);
  box-shadow: 0 18px 32px -14px rgba(255, 122, 26, 1);
}
.btn--ghost {
  border-color: var(--line);
  background: rgba(11, 29, 49, 0.6);
  color: var(--paper);
}
.btn--ghost:hover {
  color: var(--cyan);
  border-color: var(--line-cyan);
  background: rgba(45, 226, 230, 0.08);
}
.btn--sm { padding: 10px 16px; font-size: 13px; }

/* ---------- 7. breadcrumb ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: rgba(147, 167, 186, 0.45); }
.breadcrumb a { color: var(--mist); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--paper); }

/* ---------- 8. media frame (供页面阶段放图) ---------- */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  border: 1px solid rgba(45, 226, 230, 0.22);
  background: linear-gradient(145deg, var(--tactic), var(--ink-800) 58%, #08182A);
}
.media-frame > img,
.media-frame > picture > img,
.media-frame > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(45, 226, 230, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 226, 230, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 46%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(6, 16, 29, 0.78));
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--placeholder::before {
  background-image:
    repeating-linear-gradient(135deg, rgba(45, 226, 230, 0.09) 0 1px, transparent 1px 14px);
  background-size: auto;
}
.media-cap {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
}

/* ---------- 9. header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding-top: clamp(10px, 1.6vw, 18px);
}

.header-shell {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.header-capsule {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 20px);
  padding: 9px 10px 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(45, 226, 230, 0.22);
  background: linear-gradient(180deg, rgba(15, 39, 64, 0.93), rgba(11, 29, 49, 0.9));
  box-shadow: 0 24px 48px -30px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(244, 238, 223, 0.07);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  transition: padding 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header[data-scrolled="true"] .header-capsule {
  padding-block: 6px;
  box-shadow: 0 30px 56px -28px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(244, 238, 223, 0.1);
}

/* brand */
.brand {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--paper);
  text-decoration: none;
}
.brand:hover { color: var(--paper); }

.brand-mark {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--flame), var(--orange));
  transform: rotate(-6deg);
  box-shadow: 0 10px 20px -14px rgba(255, 122, 26, 1);
}
.brand-mark-inner {
  position: absolute;
  inset: 8px 7px;
  display: block;
  border-left: 2px solid #08131F;
  border-bottom: 2px solid #08131F;
  border-radius: 1px;
}
.brand-mark-inner::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 0;
  width: 2px;
  height: 62%;
  background: #08131F;
  border-radius: 1px;
}

.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--paper);
  white-space: nowrap;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.2;
  letter-spacing: 0.22em;
  color: var(--cyan);
  white-space: nowrap;
}
.brand--footer .brand-name { font-size: 18px; }

/* nav */
.site-nav {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}
.nav-item { flex: 0 0 auto; }
.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 12px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--mist);
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--paper);
  background: rgba(45, 226, 230, 0.1);
}
.nav-link[aria-current="page"] {
  color: var(--cyan);
  font-weight: 700;
  background: rgba(45, 226, 230, 0.12);
  box-shadow: inset 0 0 0 1px rgba(45, 226, 230, 0.4);
}

.nav-extra { display: none; }
.nav-extra-hint {
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist);
}
.nav-extra-cta { margin-top: 12px; width: 100%; }

/* rail */
.header-rail {
  order: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}

.hint-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(244, 238, 223, 0.04);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--mist);
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.hint-btn:hover {
  color: var(--cyan);
  border-color: var(--line-cyan);
  background: rgba(45, 226, 230, 0.08);
}
.hint-btn[aria-expanded="true"] {
  color: var(--ink-900);
  background: var(--cyan);
  border-color: var(--cyan);
}
.hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: hint-pulse 2.6s var(--ease) infinite;
}
@keyframes hint-pulse {
  0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(45, 226, 230, 0); }
  40% { box-shadow: 0 0 0 5px rgba(45, 226, 230, 0.18); }
}

/* hint panel */
.collection-hint {
  position: absolute;
  top: calc(100% + 12px);
  right: var(--gutter);
  z-index: 8;
  width: min(320px, calc(100vw - 2 * var(--gutter)));
  padding: 16px 18px 17px;
  border-radius: 16px;
  border-left: 4px solid var(--orange);
  background: var(--paper);
  color: var(--ink-800);
  box-shadow: 0 28px 54px -24px rgba(0, 0, 0, 0.92);
  animation: hint-in 0.22s var(--ease);
}
.collection-hint::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 36px;
  width: 12px;
  height: 12px;
  background: var(--paper);
  transform: rotate(45deg);
}
@keyframes hint-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.hint-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--flame);
  color: var(--ink-800);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hint-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-800);
}

/* toggle */
.nav-toggle {
  order: 4;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(21, 59, 94, 0.42);
  color: var(--paper);
  cursor: pointer;
}
.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 15px;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
}
.header-shell[data-open] .nav-toggle-bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.header-shell[data-open] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.header-shell[data-open] .nav-toggle-bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* reading progress */
.read-progress {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: rgba(244, 238, 223, 0.08);
  overflow: hidden;
  pointer-events: none;
}
.read-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--cyan) 68%, var(--flame));
  transition: width 0.15s linear;
}

/* ---------- 10. footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 140px);
  border-top: 1px solid rgba(45, 226, 230, 0.18);
  background: linear-gradient(180deg, #08151F, #050D16 58%, #040A12);
}
.site-footer::before {
  content: "";
  display: block;
  height: 14px;
  opacity: 0.55;
  background-image: repeating-linear-gradient(90deg, rgba(45, 226, 230, 0.55) 0 1px, transparent 1px 22px);
  background-size: 22px 100%;
  background-position: 0 50%;
  background-repeat: repeat-x;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(40px, 5vw, 72px);
}

.footer-brand { min-width: 0; }
.footer-tagline {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}
.footer-note {
  max-width: 36ch;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(147, 167, 186, 0.88);
}

.footer-col,
.footer-contact { min-width: 0; }

.footer-col-title {
  position: relative;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
}
.footer-col-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 26px;
  height: 2px;
  background: var(--orange);
}

.footer-links li + li { margin-top: 9px; }
.footer-links a {
  display: inline-block;
  padding: 2px 0;
  font-size: 14.5px;
  color: var(--mist);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}
.footer-links a:hover {
  color: var(--cyan);
  transform: translateX(3px);
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-list li + li { margin-top: 12px; }
.contact-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}
.contact-value {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--paper);
  word-break: break-word;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(45, 226, 230, 0.06);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--mist);
  cursor: pointer;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.to-top:hover {
  color: var(--ink-900);
  background: var(--cyan);
  border-color: var(--cyan);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  padding-block: 20px 30px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(147, 167, 186, 0.75);
}
.footer-copy { margin-right: auto; }
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.legal-links a { color: var(--mist); }
.legal-links a:hover { color: var(--cyan); }
.footer-icp { color: rgba(147, 167, 186, 0.6); }

/* ---------- 11. reveal motion ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 12. responsive ---------- */
@media (max-width: 1150px) {
  .site-header { padding-top: 10px; }

  .header-capsule {
    flex-wrap: wrap;
    padding: 8px 10px 8px 14px;
    border-radius: 22px;
  }

  .brand { order: 1; }
  .header-rail { order: 2; }
  .nav-toggle { order: 3; display: inline-flex; }
  .hint-btn { display: none; }

  .site-nav {
    order: 4;
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    z-index: 7;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    max-height: min(72vh, 560px);
    overflow-y: auto;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(45, 226, 230, 0.28);
    background: linear-gradient(180deg, rgba(15, 39, 64, 0.98), rgba(8, 21, 35, 0.98));
    box-shadow: 0 34px 66px -30px rgba(0, 0, 0, 1);
  }
  .header-shell[data-open] .site-nav {
    display: flex;
    animation: drawer-in 0.24s var(--ease);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav-link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 15.5px;
  }

  .nav-extra {
    display: block;
    padding: 14px 6px 4px;
    border-top: 1px dashed rgba(147, 167, 186, 0.28);
  }

  .read-progress { left: 18px; right: 18px; }

  .collection-hint {
    left: 0;
    right: 0;
    width: auto;
  }
  .collection-hint::before { display: none; }
}

@keyframes drawer-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
}

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

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-sub { display: none; }
  .footer-base { gap: 10px 18px; }
  .footer-copy { flex: 1 0 100%; }
}

@media (max-width: 520px) {
  .header-rail { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand,
  .footer-contact { grid-column: auto; }
}

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

/* ---------- 13. 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 !important;
    transform: none !important;
  }
  .hint-dot { animation: none !important; }
}
