/* =========================================================
   星空体育官网 — 共享样式表 /assets/site.css
   星域深蓝黑底 + 荧光青 · 星芒紫 · 暖金
   ========================================================= */

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

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

body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dt, dd {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

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

button { background: none; border: 0; cursor: pointer; }

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

table { border-collapse: collapse; border-spacing: 0; }

/* ---------- 2. TOKENS ---------- */
:root {
  --c-bg: #070B18;
  --c-panel: #0E1630;
  --c-panel-2: #111B38;
  --c-line: #1C2740;
  --c-text: #E8EDF7;
  --c-muted: #9AA7C2;

  --c-cyan: #37E6D0;
  --c-violet: #8B6BFF;
  --c-gold: #F0B23C;

  --c-red: #B3323F;
  --c-red-soft: #E05560;

  --c-light: #F2F5FA;
  --c-ink: #0A0F1E;
  --c-ink-muted: #5A6480;

  --c-eng: #3D7BFF;
  --c-esp: #E14C7A;
  --c-ita: #4FC3A1;
  --c-ger: #E07A3C;
  --c-fra: #C86BFF;

  --grad-rise: linear-gradient(90deg, #12A67F, #37E6D0);
  --grad-rule: linear-gradient(90deg, #37E6D0, #8B6BFF, #F0B23C);
  --grad-panel: linear-gradient(150deg, #0E1630 0%, #070B18 72%);

  --f-head: 'Saira Condensed', 'Archivo Narrow', 'Noto Sans SC', system-ui, sans-serif;
  --f-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --f-num: 'JetBrains Mono', 'Roboto Mono', ui-monospace, monospace;

  --r-card: 14px;
  --r-row: 8px;
  --r-pill: 999px;

  --w-wide: 1280px;
  --w-mid: 960px;
  --w-narrow: 720px;

  --gutter: 24px;
  --header-h: 76px;
  --header-h-sm: 60px;
}

@media (max-width: 640px) {
  :root { --gutter: 18px; --header-h: 68px; --header-h-sm: 56px; }
}

/* ---------- 3. BASE ---------- */
body {
  min-height: 100vh;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
  background-color: var(--c-bg);
  background-image:
    linear-gradient(90deg, rgba(28, 39, 64, 0.34) 1px, transparent 1px),
    linear-gradient(180deg, rgba(28, 39, 64, 0.34) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  display: block;
  padding-top: var(--header-h);
}

/* ---------- 4. FOCUS ---------- */
:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

.section--light :focus-visible { outline-color: var(--c-ink); }

/* ---------- 5. TYPOGRAPHY ---------- */
.t-64 {
  font-family: var(--f-head);
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-transform: uppercase;
}

.t-40 {
  font-family: var(--f-head);
  font-size: clamp(28px, 4.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-transform: uppercase;
}

.t-28 {
  font-family: var(--f-head);
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.16;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.t-20 {
  font-family: var(--f-head);
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-num);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-violet);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.lede {
  font-size: 17px;
  line-height: 1.8;
  color: var(--c-muted);
  max-width: 38em;
}

.prose {
  max-width: 38em;
  font-size: 16px;
  line-height: 1.8;
}

.prose p + p { margin-top: 1.1em; }

.prose strong { color: var(--c-cyan); font-weight: 600; }

.num {
  font-family: var(--f-num);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 6. HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 11, 24, 0.55);
  border-bottom: 1px solid transparent;
  transition: background-color 0.28s ease, border-color 0.28s ease;
}

.site-header[data-scrolled="true"] {
  background: rgba(7, 11, 24, 0.97);
  border-bottom-color: var(--c-line);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--grad-rule);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: var(--gutter);
  z-index: 220;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--c-cyan);
  color: #061019;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 14px;
  outline-offset: 3px;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  transition: height 0.28s ease;
}

.site-header[data-scrolled="true"] .header-inner { height: var(--header-h-sm); }

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  flex: 0 1 auto;
  min-width: 0;
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #F0B23C 0 16%, #8B6BFF 46%, #0E1630 80%);
  box-shadow: 0 0 0 1px rgba(55, 230, 208, 0.45), 0 0 18px rgba(139, 107, 255, 0.4);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--c-cyan);
  opacity: 0.9;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.14;
}

.brand-name {
  font-family: var(--f-head);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--c-text);
  white-space: nowrap;
}

.brand-tagline {
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--c-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 导航 */
.site-nav { display: flex; align-items: center; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 11px;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--c-muted);
  transition: color 0.18s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 1px;
  background: var(--c-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.16s ease-out;
}

.nav-link:hover { color: var(--c-text); }
.nav-link:hover::after { transform: scaleX(1); }

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

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--grad-rule);
}

.nav-caption,
.nav-utility { display: none; }

/* 页头右侧 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.header-utility {
  font-size: 13px;
  color: var(--c-muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.header-utility:hover {
  color: var(--c-cyan);
  border-bottom-color: var(--c-cyan);
}

/* 移动端目录按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: rgba(14, 22, 48, 0.7);
  color: var(--c-text);
  font-size: 13px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  position: relative;
  z-index: 95;
  transition: border-color 0.2s ease, color 0.2s ease;
}

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

.nav-toggle-label { font-family: var(--f-head); font-weight: 700; }

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle-bars i {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

html.nav-open { overflow: hidden; }

/* ---------- 7. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--f-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-gold {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: var(--c-ink);
}

.btn-gold:hover { background: #FFC65C; border-color: #FFC65C; }

.btn-cyan {
  background: var(--c-cyan);
  border-color: var(--c-cyan);
  color: #061019;
}

.btn-cyan:hover { background: #5BF0DE; border-color: #5BF0DE; }

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

.btn-ghost:hover { border-color: var(--c-cyan); color: var(--c-cyan); }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- 8. LAYOUT ---------- */
.wrap {
  width: 100%;
  max-width: var(--w-wide);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.wrap--mid { max-width: var(--w-mid); }
.wrap--narrow { max-width: var(--w-narrow); }

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

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

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

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

.section { padding: 80px 0; }
.section--tight { padding: 48px 0; }

.section--panel {
  background: var(--c-panel);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.section--light {
  background: var(--c-light);
  color: var(--c-ink);
}

.section--light .lede,
.section--light .prose { color: #39425C; }

.section--light .eyebrow { color: #6B4FE0; }

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .section--tight { padding: 36px 0; }
}

/* ---------- 9. DECORATION ---------- */
.blob {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.16;
  border-radius: 48% 52% 38% 62% / 56% 44% 62% 38%;
  background: radial-gradient(circle at 32% 30%, var(--blob-color, var(--c-violet)), transparent 70%);
}

.blob--cyan { --blob-color: var(--c-cyan); }
.blob--violet { --blob-color: var(--c-violet); }
.blob--gold { --blob-color: var(--c-gold); }

.rule {
  height: 1px;
  border: 0;
  background: var(--c-line);
}

.rule--accent {
  height: 2px;
  background: var(--grad-rule);
  opacity: 0.75;
}

.js [data-reveal] {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.js [data-reveal].is-visible { opacity: 1; }

/* ---------- 10. PANELS & TAGS ---------- */
.panel {
  --panel-accent: var(--c-line);
  position: relative;
  background: var(--grad-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  padding: 28px;
  transition: border-color 0.22s ease-out, background-color 0.22s ease-out;
}

.panel::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -1px;
  width: 4px;
  height: 22px;
  border-radius: 0 4px 4px 0;
  background: var(--panel-accent);
}

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

.panel[data-accent="cyan"] { --panel-accent: var(--c-cyan); }
.panel[data-accent="violet"] { --panel-accent: var(--c-violet); }
.panel[data-accent="gold"] { --panel-accent: var(--c-gold); }
.panel[data-accent="red"] { --panel-accent: var(--c-red); }
.panel[data-accent="eng"] { --panel-accent: var(--c-eng); }
.panel[data-accent="esp"] { --panel-accent: var(--c-esp); }
.panel[data-accent="ita"] { --panel-accent: var(--c-ita); }
.panel[data-accent="ger"] { --panel-accent: var(--c-ger); }
.panel[data-accent="fra"] { --panel-accent: var(--c-fra); }

.league-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.league-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tag-color, var(--c-muted));
  flex: 0 0 auto;
}

.league-tag[data-league="eng"] { --tag-color: var(--c-eng); }
.league-tag[data-league="esp"] { --tag-color: var(--c-esp); }
.league-tag[data-league="ita"] { --tag-color: var(--c-ita); }
.league-tag[data-league="ger"] { --tag-color: var(--c-ger); }
.league-tag[data-league="fra"] { --tag-color: var(--c-fra); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: rgba(14, 22, 48, 0.65);
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.chip:hover { border-color: var(--c-cyan); color: var(--c-text); }

.chip[aria-pressed="true"] {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  background: rgba(55, 230, 208, 0.08);
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--chip-color, var(--c-muted));
}

.chip[data-league="eng"] { --chip-color: var(--c-eng); }
.chip[data-league="esp"] { --chip-color: var(--c-esp); }
.chip[data-league="ita"] { --chip-color: var(--c-ita); }
.chip[data-league="ger"] { --chip-color: var(--c-ger); }
.chip[data-league="fra"] { --chip-color: var(--c-fra); }

/* ---------- 11. DATA TABLE ---------- */
.data-table {
  width: 100%;
  font-size: 14px;
  text-align: left;
}

.data-table caption {
  padding-bottom: 12px;
  font-size: 13px;
  color: var(--c-muted);
  text-align: left;
}

.data-table thead th {
  padding: 11px 14px;
  background: rgba(14, 22, 48, 0.85);
  border-bottom: 1px solid var(--c-line);
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--c-line);
  vertical-align: baseline;
}

.data-table tbody tr { transition: background-color 0.18s ease; }
.data-table tbody tr:hover { background: var(--c-panel-2); }

.data-table tbody tr:hover td.num { transform: translateY(-1px); }

.data-table tbody td.num {
  transition: transform 0.18s ease-out;
  font-family: var(--f-num);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.data-table--wide { min-width: 720px; }

.table-scroll { overflow-x: auto; }

/* ---------- 12. MEDIA FRAME ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  background: var(--grad-panel);
  aspect-ratio: 16 / 9;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(232, 237, 247, 0.22) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.55;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(232, 237, 247, 0.055) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, rgba(55, 230, 208, 0.07), transparent 58%);
}

.media-frame > img,
.media-frame > video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.55) contrast(1.08) brightness(0.86);
}

.media-frame[data-ratio="21:9"] { aspect-ratio: 21 / 9; }
.media-frame[data-ratio="4:3"] { aspect-ratio: 4 / 3; }
.media-frame[data-ratio="1:1"] { aspect-ratio: 1 / 1; }
.media-frame[data-ratio="3:4"] { aspect-ratio: 3 / 4; }

/* ---------- 13. BREADCRUMBS ---------- */
.breadcrumbs { padding: 22px 0 0; }

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--c-muted);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.breadcrumbs li + li::before {
  content: "/";
  font-family: var(--f-num);
  color: var(--c-line);
}

.breadcrumbs a {
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

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

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

/* ---------- 14. FOOTER ---------- */
.site-footer {
  position: relative;
  margin-top: 96px;
  background: var(--c-panel);
  border-top: 1px solid var(--c-line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-rule);
  opacity: 0.7;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(230px, 1.2fr) minmax(0, 2.2fr) minmax(260px, 1.15fr);
  gap: 56px;
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 72px var(--gutter) 48px;
}

.brand--footer { margin-right: 0; }

.footer-slogan {
  margin-top: 18px;
  max-width: 26ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-muted);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-col-title {
  margin-bottom: 16px;
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-violet);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  position: relative;
  display: inline-block;
  width: fit-content;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-muted);
  transition: color 0.18s ease;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--c-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.16s ease-out;
}

.footer-links a:hover { color: var(--c-text); }
.footer-links a:hover::after { transform: scaleX(1); }

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

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.contact-key {
  flex: 0 0 42px;
  padding-top: 1px;
  font-family: var(--f-num);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--c-muted);
}

.contact-val {
  min-width: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-text);
  word-break: break-word;
}

.contact-val--mono {
  font-family: var(--f-num);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.footer-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--c-line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-muted);
}

.footer-base {
  border-top: 1px solid var(--c-line);
  background: rgba(7, 11, 24, 0.55);
}

.footer-base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 32px;
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 20px var(--gutter);
  font-size: 13px;
  color: var(--c-muted);
}

.footer-legal { font-family: var(--f-num); font-size: 12px; letter-spacing: 0.02em; }

.footer-meta { margin-left: auto; }

/* ---------- 15. HEADER / FOOTER RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 44px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .header-actions { display: none; }

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

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: calc(var(--header-h) + 28px) var(--gutter) 40px;
    overflow-y: auto;
    background: var(--c-bg);
    background-image:
      linear-gradient(90deg, rgba(28, 39, 64, 0.4) 1px, transparent 1px),
      linear-gradient(180deg, rgba(28, 39, 64, 0.4) 1px, transparent 1px);
    background-size: 56px 56px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-14px);
    pointer-events: none;
    transition: opacity 0.26s ease, transform 0.26s ease, visibility 0.26s;
  }

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

  .nav-caption {
    display: block;
    font-family: var(--f-num);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-violet);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    counter-reset: navidx;
  }

  .nav-link {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid var(--c-line);
    font-family: var(--f-head);
    font-size: clamp(22px, 7vw, 30px);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--c-text);
  }

  .nav-link::after { display: none; }

  .nav-list .nav-link::before {
    counter-increment: navidx;
    content: counter(navidx, decimal-leading-zero);
    flex: 0 0 auto;
    font-family: var(--f-num);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--c-violet);
  }

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

  .nav-utility {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--c-line);
  }

  .nav-link--sub {
    padding: 6px 0;
    border-bottom: 0;
    font-family: var(--f-body);
    font-size: 15px;
    font-weight: 400;
    color: var(--c-muted);
  }

  .nav-link--sub::before { content: none; }
}

@media (max-width: 760px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 56px var(--gutter) 40px;
  }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .footer-slogan { max-width: 100%; }
  .footer-meta { margin-left: 0; }
  .site-footer { margin-top: 64px; }
}

@media (max-width: 460px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .brand-tagline { display: none; }
}

/* ---------- 16. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] { opacity: 1 !important; }

  .nav-link::after,
  .footer-links a::after { transform: scaleX(0); }
}
