/* ==========================================================================
   小鸟体育综合 /assets/site.css
   共享外壳：框架式报头、画册版心、版权页页脚、基础组件
   ========================================================================== */

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

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

body,
h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, hr {
  margin: 0;
}

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

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

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

button { cursor: pointer; }

a { color: inherit; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink-950: #101225;
  --ink-900: #151832;
  --ink-800: #1D2142;
  --nebula: #4A3D75;
  --lime: #C8FF4D;
  --lime-soft: rgba(200, 255, 77, 0.12);
  --orange: #FF9B45;
  --rose: #FF5D8F;
  --rock: #3B3F4A;
  --cream: #F6F1E4;
  --mist: #9DB0D6;
  --clay: #B96A4C;
  --moss: #6F8B5E;

  --bg: var(--ink-950);
  --surface: var(--ink-800);
  --line: rgba(157, 176, 214, 0.22);
  --line-strong: var(--rock);
  --text: var(--cream);
  --text-dim: var(--mist);

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --size-display: clamp(2.75rem, 9vw, 7rem);
  --size-h2: clamp(1.75rem, 4vw, 3.25rem);
  --size-h3: clamp(1.25rem, 2.2vw, 1.75rem);
  --size-body: 1rem;

  --pad-x: clamp(16px, 3vw, 44px);
  --gap: clamp(16px, 2.4vw, 32px);
  --section-y: clamp(48px, 7vw, 104px);
  --frame-max: 1360px;
  --header-max: 1440px;

  --shadow-hard: 8px 8px 0 rgba(0, 0, 0, 0.45);
  --shadow-lift: 10px 10px 0 rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100%;
  background:
    radial-gradient(1100px 640px at 10% -8%, rgba(74, 61, 117, 0.55), transparent 62%),
    radial-gradient(820px 560px at 96% 4%, rgba(255, 155, 69, 0.12), transparent 60%),
    linear-gradient(178deg, #0b0d1d 0%, var(--ink-950) 42%, #0d1027 100%);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--size-body);
  line-height: 1.78;
  letter-spacing: 0.004em;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 6;
  margin-inline: clamp(6px, 1.6vw, 20px);
  border-left: 1px solid rgba(157, 176, 214, 0.14);
  border-right: 1px solid rgba(157, 176, 214, 0.14);
  pointer-events: none;
}

::selection {
  background: var(--lime);
  color: #0d1220;
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

a:focus-visible {
  border-radius: 2px;
}

#main-content { display: block; }
#main-content:focus { outline: none; }
#main-content:focus-visible {
  outline: 2px dashed var(--lime);
  outline-offset: -6px;
}

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 300;
  transform: translateY(-180%);
  background: var(--lime);
  color: #0d1220;
  padding: 0.7em 1.15em;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid #0d1220;
  box-shadow: var(--shadow-hard);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

/* ---------- 5. Typography utilities ---------- */
.display {
  font-size: var(--size-display);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.section-title {
  font-size: var(--size-h2);
  letter-spacing: -0.032em;
}

.section-title--serif {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.16;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}

.lede {
  max-width: 62ch;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.5vw, 1.19rem);
  line-height: 1.88;
  color: var(--mist);
}

.prose {
  max-width: 68ch;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.9;
  color: rgba(246, 241, 228, 0.9);
}

.prose p + p { margin-top: 1.1em; }
.prose h2, .prose h3 { margin-block: 1.6em 0.6em; }
.prose ul, .prose ol {
  list-style: disc;
  padding-left: 1.3em;
  margin-bottom: 1.1em;
}
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }

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

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: clamp(24px, 4vw, 48px);
}

/* ---------- 6. Layout ---------- */
.container {
  width: min(var(--frame-max), 100% - var(--pad-x) * 2);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.section--ruled {
  border-top: 1px solid var(--line);
}

.grid {
  display: grid;
  gap: var(--gap);
}

.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid--asym { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.grid--halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.stack {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

.stack--tight { gap: 12px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: var(--gap);
}

/* ---------- 7. Panels & tags ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  background: linear-gradient(180deg, rgba(29, 33, 66, 0.94), rgba(16, 18, 37, 0.94));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-hard);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.panel:hover,
.panel:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(200, 255, 77, 0.5);
}

.panel--light {
  background: var(--cream);
  color: var(--ink-950);
  border-color: var(--ink-950);
  box-shadow: 8px 8px 0 rgba(59, 63, 74, 0.55);
}

.panel--light h2,
.panel--light h3 { color: var(--ink-950); }

.panel--light .lede,
.panel--light p { color: #2a2e3d; }

.panel--slant {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.26em 0.62em;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  color: var(--mist);
  background: rgba(157, 176, 214, 0.06);
}

.tag--team {
  color: var(--orange);
  border-color: rgba(255, 155, 69, 0.6);
  background: rgba(255, 155, 69, 0.1);
}

.tag--watch {
  color: var(--rose);
  border-color: rgba(255, 93, 143, 0.6);
  background: rgba(255, 93, 143, 0.1);
}

.tag--ok {
  color: var(--moss);
  border-color: rgba(111, 139, 94, 0.75);
  background: rgba(111, 139, 94, 0.14);
}

.tag--series {
  color: var(--clay);
  border-color: rgba(185, 106, 76, 0.7);
  background: rgba(185, 106, 76, 0.12);
}

.tag--live {
  color: var(--lime);
  border-color: rgba(200, 255, 77, 0.6);
  background: var(--lime-soft);
}

/* ---------- 8. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 44px;
  padding: 0.78em 1.35em;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
              color 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn--primary {
  background: var(--lime);
  color: #0d1220;
  border-color: var(--lime);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
}

.btn--primary:hover {
  background: #d6ff70;
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.6);
}

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  color: var(--lime);
  border-color: var(--lime);
  transform: translateY(-2px);
}

.btn--rose {
  background: transparent;
  color: var(--rose);
  border-color: rgba(255, 93, 143, 0.65);
}

.btn--rose:hover {
  background: rgba(255, 93, 143, 0.14);
  border-color: var(--rose);
  transform: translateY(-2px);
}

.btn:active { transform: translateY(0); }

/* ---------- 9. Breadcrumbs & index ---------- */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.5em;
  color: var(--rock);
}

.breadcrumbs a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.breadcrumbs a:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.breadcrumbs [aria-current="page"] {
  color: var(--cream);
}

.index-list {
  border-top: 1px solid var(--line);
}

.index-list > li {
  border-bottom: 1px solid var(--line);
}

.index-list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 4px;
  color: var(--cream);
  text-decoration: none;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), padding-inline-start 0.18s var(--ease);
}

.index-list a:hover {
  background: var(--lime-soft);
  color: var(--lime);
  padding-inline-start: 12px;
}

.index-no {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

/* ---------- 10. Media frame ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(150deg, rgba(74, 61, 117, 0.9), rgba(29, 33, 66, 0.92) 55%, #0d1024 100%);
  box-shadow: var(--shadow-hard);
}

.media-frame > img,
.media-frame > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(205deg, rgba(200, 255, 77, 0.08), transparent 46%, rgba(255, 93, 143, 0.08));
}

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

.media-note {
  position: absolute;
  inset: auto 14px 14px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 241, 228, 0.72);
}

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

/* ---------- 11. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(12, 14, 30, 0.98) 0%, rgba(22, 25, 50, 0.95) 100%);
  border-bottom: 1px solid var(--line-strong);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.24s var(--ease);
}

.site-header[data-scrolled="true"] {
  box-shadow: 0 18px 34px -26px #000;
}

.header-frame {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  width: min(var(--header-max), 100%);
  margin-inline: auto;
  padding: 0 var(--pad-x);
  min-height: 80px;
  transition: min-height 0.24s var(--ease);
}

.site-header[data-scrolled="true"] .header-frame {
  min-height: 64px;
}

/* brand block */
.header-brand {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 18px);
  flex: 0 0 auto;
  padding-right: clamp(10px, 1.6vw, 24px);
  border-right: 1px solid var(--line);
  align-self: stretch;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--lime);
  background:
    radial-gradient(circle at 30% 18%, rgba(200, 255, 77, 0.24), transparent 62%),
    linear-gradient(150deg, rgba(74, 61, 117, 0.9), rgba(16, 18, 37, 0.95));
  clip-path: polygon(0 0, 100% 0, 100% 74%, 50% 100%, 0 74%);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 10px 8px 12px;
  background: var(--lime);
  clip-path: polygon(0 64%, 52% 0, 96% 28%, 48% 54%, 92% 76%, 42% 100%);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--mist);
  white-space: nowrap;
}

.watch-entry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--cream);
  text-decoration: none;
  border: 1px solid rgba(255, 93, 143, 0.45);
  border-radius: 999px;
  background: rgba(255, 93, 143, 0.1);
  white-space: nowrap;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.watch-entry:hover {
  border-color: var(--rose);
  background: rgba(255, 93, 143, 0.18);
  box-shadow: 0 0 0 3px rgba(255, 93, 143, 0.14);
}

.watch-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 3px rgba(255, 93, 143, 0.22);
  flex: 0 0 auto;
}

.watch-label { white-space: nowrap; }

.watch-count {
  color: var(--rose);
  font-weight: 500;
}

/* nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 10px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease), top 0.22s var(--ease);
}

.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { top: 8px; }

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

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

.nav-toggle-text { white-space: nowrap; }

/* nav */
.site-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(2px, 1.1vw, 20px);
}

.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 4px;
  color: var(--mist);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--rock);
  transition: color 0.18s var(--ease);
}

.nav-link:hover {
  color: var(--cream);
  border-bottom-color: var(--lime);
}

.nav-link:hover .nav-index { color: var(--lime); }

.nav-link[aria-current="page"] {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.nav-link[aria-current="page"] .nav-index { color: var(--lime); }

.nav-foot { display: none; }

/* util */
.header-util {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.util-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist);
  white-space: nowrap;
}

.util-dot {
  width: 6px;
  height: 6px;
  background: var(--rose);
  flex: 0 0 auto;
}

.header-cta {
  font-size: 13px;
  padding: 0.7em 1.1em;
}

/* scroll meter */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(157, 176, 214, 0.14);
  overflow: hidden;
}

.scroll-meter-fill {
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--lime), var(--orange));
  transition: width 0.12s linear;
}

/* ---------- 12. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 128px);
  border-top: 1px solid var(--line-strong);
  background:
    radial-gradient(900px 420px at 6% 0%, rgba(74, 61, 117, 0.5), transparent 66%),
    radial-gradient(620px 340px at 96% 8%, rgba(255, 155, 69, 0.08), transparent 70%),
    linear-gradient(180deg, #12142c 0%, #0b0d1c 72%);
  color: var(--cream);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: clamp(16px, 6vw, 120px);
  width: 72px;
  height: 6px;
  background: var(--lime);
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
}

.footer-frame {
  display: grid;
  grid-template-columns: minmax(250px, 1.15fr) minmax(0, 1.6fr) minmax(230px, 1fr);
  gap: clamp(24px, 4vw, 56px);
  width: min(var(--frame-max), 100%);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 80px) var(--pad-x) clamp(28px, 4vw, 48px);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cream);
}

.footer-brand .brand-mark {
  width: 32px;
  height: 32px;
}

.footer-wordmark {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(21px, 2.6vw, 28px);
  letter-spacing: -0.02em;
}

.footer-lede {
  max-width: 34ch;
  margin: 16px 0 22px;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist);
}

.footer-cta { font-size: 13px; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.footer-col-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
}

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

.footer-link {
  display: inline-block;
  color: var(--mist);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.footer-link:hover {
  color: var(--cream);
  border-bottom-color: var(--lime);
}

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

.contact-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.contact-item {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.contact-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}

.contact-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: var(--cream);
  overflow-wrap: anywhere;
}

.contact-item--address .contact-val {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(246, 241, 228, 0.86);
}

.contact-note {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.8;
  color: var(--mist);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  width: min(var(--frame-max), 100%);
  margin-inline: auto;
  padding: 18px var(--pad-x) 26px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.footer-fine { margin: 0; }

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

.footer-legal .footer-link {
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ---------- 13. Responsive ---------- */
@media (max-width: 1280px) {
  .util-hint { display: none; }
}

@media (max-width: 1120px) {
  .nav-link { font-size: 13px; }
  .brand-tagline { display: none; }
}

@media (max-width: 1040px) {
  html { scroll-padding-top: 84px; }

  .header-frame {
    min-height: 66px;
    flex-wrap: nowrap;
  }

  .site-header[data-scrolled="true"] .header-frame { min-height: 60px; }

  .header-brand {
    border-right: 0;
    padding-right: 0;
  }

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

  .header-util { display: none; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    background: linear-gradient(180deg, #161934 0%, #0d1028 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 26px 44px -30px #000;
    transition: max-height 0.28s var(--ease), opacity 0.2s linear, visibility 0.2s linear;
  }

  .site-nav[data-open="true"] {
    max-height: min(78vh, 560px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--pad-x);
  }

  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-item:last-child { border-bottom: 0; }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 16px 2px;
    font-size: 16px;
    border-bottom: 0;
    border-left: 2px solid transparent;
    padding-left: 10px;
  }

  .nav-link[aria-current="page"] {
    border-left-color: var(--lime);
    background: var(--lime-soft);
  }

  .nav-footer-none { display: none; }

  .nav-foot {
    display: block;
    padding: 16px var(--pad-x) 26px;
  }

  .nav-foot .btn { width: 100%; }

  .grid--asym,
  .grid--halves { grid-template-columns: minmax(0, 1fr); }

  .footer-frame { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-statement { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body::after { display: none; }

  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 15px; }
  .watch-label { display: none; }
  .watch-entry { padding: 4px 10px; }

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

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

  .footer-base { flex-direction: column; align-items: flex-start; }

  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .nav-toggle-text { display: none; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 14. 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;
    scroll-behavior: auto !important;
  }

  .panel:hover,
  .panel:focus-within,
  .btn:hover { transform: none; }
}
