/* ============================================================
   球盟会主站 · 共享样式 /assets/site.css
   夜场墨绿基调 + 荧光青数据 + 暖橙焦点 + 暖纸阅读面
   ============================================================ */

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

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

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

ul, ol { list-style: none; }

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

table { border-collapse: collapse; width: 100%; }

/* ---------- 2. tokens ---------- */
:root {
  --ink: #06120F;
  --ink-2: #0E211C;
  --ink-3: #0B1A16;
  --paper: #F2E9DA;
  --paper-2: #E4D8C3;
  --neon: #34F5C5;
  --neon-soft: rgba(52, 245, 197, 0.14);
  --flame: #FF8A3D;
  --flame-soft: rgba(255, 138, 61, 0.16);
  --deep: #10483C;
  --slate: #2A3A46;
  --text: #E7F2ED;
  --muted: #93ADA6;
  --line: #1E3A33;
  --ink-text: #0A1A15;
  --ink-text-2: #3B5047;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "SFMono-Regular", "Cascadia Mono", Menlo,
    Consolas, "DejaVu Sans Mono", monospace;

  --r-sm: 10px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;

  --shell-w: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;

  --z-skip: 200;
  --z-header: 80;
  --z-dock: 70;

  --shadow-soft: 0 18px 40px -26px rgba(0, 0, 0, 0.9);
  --shadow-card: 0 28px 60px -34px rgba(0, 0, 0, 0.95);
}

/* ---------- 3. base ---------- */
body {
  min-height: 100vh;
  padding-top: calc(var(--header-h) + 28px);
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 450;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 球场灯光氛围 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 40% at 80% -8%, rgba(52, 245, 197, 0.16), transparent 70%),
    radial-gradient(46% 36% at 4% 2%, rgba(255, 138, 61, 0.11), transparent 72%),
    radial-gradient(90% 62% at 50% 112%, rgba(16, 72, 60, 0.55), transparent 72%);
}

/* 数据面板网格纹理 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(52, 245, 197, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 245, 197, 0.05) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(82% 62% at 50% 18%, #000 18%, transparent 82%);
  mask-image: radial-gradient(82% 62% at 50% 18%, #000 18%, transparent 82%);
}

main {
  position: relative;
  z-index: 1;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(34px, 6vw, 64px); }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
h4 { font-size: 18px; }

strong, b { font-weight: 800; }

::selection {
  background: var(--neon);
  color: #04150F;
}

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

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

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

.stack--wide { gap: clamp(32px, 5vw, 72px); }

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

.col-3 { grid-column: span 3; }
.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-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

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

.section-title {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 900;
}

.eyebrow {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--flame);
}

/* ---------- 5. typography utilities ---------- */
.mono,
.mono-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.mono-num {
  font-weight: 700;
  font-size: 1.2em;
  color: var(--neon);
}

.text-muted { color: var(--muted); }
.text-neon { color: var(--neon); }
.text-flame { color: var(--flame); }

.annot {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.34em;
  line-height: 1;
  color: var(--muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.annot--inline {
  writing-mode: horizontal-tb;
  letter-spacing: 0.24em;
}

.annot--neon { color: var(--neon); }

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

/* ---------- 6. components ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 2.8vw, 34px);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

.panel--flat { box-shadow: none; }

.panel--paper {
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  border-color: rgba(6, 18, 15, 0.14);
  color: var(--ink-text);
}

.panel--deep {
  background: linear-gradient(158deg, var(--deep), #0A2620 78%);
}

.panel--slate {
  background: linear-gradient(158deg, var(--slate), #16232B 78%);
}

.panel--paper h1,
.panel--paper h2,
.panel--paper h3,
.panel--paper h4,
.panel--paper .panel-title,
.panel--paper .section-title { color: var(--ink-text); }

.panel--paper .panel-sub,
.panel--paper .text-muted,
.panel--paper .figure-cap { color: var(--ink-text-2); }

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-title {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 900;
}

.panel-sub {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
}

.panel-index {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--neon);
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid rgba(52, 245, 197, 0.32);
  border-radius: var(--r-pill);
  background: var(--neon-soft);
  color: var(--neon);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.tag-chip--flame {
  color: var(--flame);
  background: var(--flame-soft);
  border-color: rgba(255, 138, 61, 0.38);
}

.tag-chip--muted {
  color: var(--muted);
  background: rgba(42, 58, 70, 0.55);
  border-color: var(--line);
}

.tag-chip--solid {
  color: #04150F;
  background: var(--neon);
  border-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(14, 33, 28, 0.72);
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--neon);
  color: #04150F;
  border-color: transparent;
  box-shadow: 0 16px 32px -20px rgba(52, 245, 197, 0.95);
}

.btn--primary:hover { background: #22DFB0; }

.btn--flame {
  background: var(--flame);
  color: #1B0A01;
  border-color: transparent;
  box-shadow: 0 16px 32px -20px rgba(255, 138, 61, 0.9);
}

.btn--flame:hover { background: #FF9C5C; }

.btn--ghost { background: transparent; }
.btn--ghost:hover { border-color: var(--neon); color: var(--neon); }

.btn--small {
  padding: 9px 16px;
  font-size: 13.5px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-sep { color: rgba(147, 173, 166, 0.55); }

.breadcrumb-link {
  color: var(--muted);
  transition: color 0.2s ease;
}

.breadcrumb-link:hover { color: var(--neon); }

.breadcrumb-current {
  color: var(--text);
  font-weight: 700;
}

.prose {
  font-size: 17px;
  line-height: 1.9;
}

.prose > * + * { margin-top: 1.2em; }

.prose h2, .prose h3 { margin-top: 1.6em; }

.prose a:not(.btn) {
  color: var(--neon);
  border-bottom: 1px solid rgba(52, 245, 197, 0.4);
}

.panel--paper .prose a:not(.btn) {
  color: #0B5C48;
  border-bottom-color: rgba(11, 92, 72, 0.35);
}

.prose ul,
.prose ol { padding-left: 1.2em; }

.prose ul { list-style: none; }

.prose ul li {
  position: relative;
  padding-left: 18px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 9px;
  height: 2px;
  background: var(--flame);
}

.prose ol { list-style: decimal; }

.prose li + li { margin-top: 0.5em; }

.card {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(14, 33, 28, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 245, 197, 0.45);
  background: rgba(16, 40, 34, 0.88);
}

.card--hot {
  border-color: rgba(255, 138, 61, 0.55);
  background: linear-gradient(118deg, rgba(255, 138, 61, 0.16), rgba(14, 33, 28, 0.86) 58%);
}

.card--fold::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-bottom-left-radius: 16px;
  background: linear-gradient(225deg, rgba(52, 245, 197, 0.3), transparent 62%);
  pointer-events: none;
}

.card-num {
  flex: 0 0 auto;
  min-width: 2.6ch;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--neon);
}

.card--hot .card-num { color: var(--flame); }

.card-body { min-width: 0; }

.card-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 24px);
}

.stat {
  min-width: 104px;
  padding: 14px 16px;
  background: rgba(42, 58, 70, 0.42);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--neon);
}

.stat-label {
  margin-top: 4px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.figure-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(140deg, rgba(16, 72, 60, 0.6), rgba(42, 58, 70, 0.55));
}

.figure-frame::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 26px;
  height: 26px;
  border-top: 2px solid rgba(52, 245, 197, 0.6);
  border-left: 2px solid rgba(52, 245, 197, 0.6);
  border-top-left-radius: 8px;
  pointer-events: none;
}

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

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

.figure-cap {
  margin-top: 10px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.divider {
  height: 1px;
  border: 0;
  margin: clamp(20px, 3vw, 34px) 0;
  background: linear-gradient(90deg, var(--line), rgba(30, 58, 51, 0.12));
}

.divider--dashed {
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  background: rgba(14, 33, 28, 0.66);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}

.filter-chip {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.filter-chip:hover {
  color: var(--text);
  background: rgba(52, 245, 197, 0.12);
}

.filter-chip[aria-pressed="true"] {
  background: var(--neon);
  color: #04150F;
}

.filter-item[hidden] { display: none !important; }

/* ---------- 7. header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  padding: 14px var(--gutter) 0;
  pointer-events: none;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: var(--z-skip);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--neon);
  color: #04150F;
  font-size: 14px;
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: calc(var(--z-header) + 1);
  pointer-events: none;
  background: transparent;
}

.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--neon), var(--flame));
  transition: transform 0.12s linear;
}

.header-shell {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: var(--shell-w);
  margin-inline: auto;
}

.brand-island {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 12px;
  background: rgba(14, 33, 28, 0.84);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: padding 0.28s ease, background 0.28s ease;
}

.brand-island:hover { background: rgba(16, 40, 34, 0.94); }

.brand-mark {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--neon), #1BAF8C 72%);
  color: #04150F;
  font-size: 19px;
  font-weight: 900;
  box-shadow: 0 0 0 1px rgba(52, 245, 197, 0.35), 0 10px 24px -14px rgba(52, 245, 197, 0.9);
  transition: width 0.28s ease, height 0.28s ease, font-size 0.28s ease;
}

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

.brand-name {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.brand-tag {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.nav-capsule {
  pointer-events: auto;
  display: flex;
  align-items: center;
  padding: 6px;
  background: rgba(14, 33, 28, 0.84);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: padding 0.28s ease;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(52, 245, 197, 0.1);
}

.nav-link[aria-current="page"] {
  color: #04150F;
  background: var(--neon);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: rgba(14, 33, 28, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--neon);
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }

.nav-toggle-text { letter-spacing: 0.1em; }

.site-header[data-compact] .brand-island {
  padding: 7px 15px 7px 8px;
}

.site-header[data-compact] .brand-mark {
  flex-basis: 32px;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  font-size: 16px;
}

.site-header[data-compact] .brand-tag { display: none; }

.site-header[data-compact] .nav-capsule { padding: 4px; }

.site-header[data-compact] .nav-link {
  padding: 7px 13px;
  font-size: 14px;
}

.nav-dock {
  position: fixed;
  right: var(--gutter);
  bottom: 26px;
  z-index: var(--z-dock);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  background: rgba(14, 33, 28, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

.nav-dock[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.dock-chip {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.dock-chip:hover {
  color: #04150F;
  background: var(--neon);
}

.dock-top {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 138, 61, 0.45);
  color: var(--flame);
  font-size: 13px;
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease;
}

.dock-top:hover {
  color: #1B0A01;
  background: var(--flame);
}

.mobile-dock { display: none; }

.dock-link {
  flex: 1;
  padding: 10px 6px;
  border-radius: var(--r-pill);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease;
}

.dock-link:hover,
.dock-link:focus-visible {
  color: #04150F;
  background: var(--neon);
}

/* ---------- 8. footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(56px, 8vw, 112px);
  padding: clamp(40px, 6vw, 72px) var(--gutter) calc(26px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 72, 60, 0.36), rgba(6, 18, 15, 0.98) 58%);
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1.6fr) minmax(230px, 1fr);
  gap: clamp(24px, 4vw, 56px);
  width: 100%;
  max-width: var(--shell-w);
  margin-inline: auto;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.footer-logo::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 12px rgba(52, 245, 197, 0.8);
}

.footer-line {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.footer-meta-item {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(42, 58, 70, 0.42);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

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

.footer-col-title {
  margin-bottom: 14px;
  color: var(--neon);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

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

.footer-link {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-link:hover { color: var(--neon); }

.footer-contact-title {
  margin-bottom: 14px;
  color: var(--flame);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.footer-contact-list {
  display: grid;
  gap: 12px;
}

.footer-contact-item {
  display: grid;
  gap: 2px;
}

.footer-contact-key {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.footer-contact-value {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  word-break: break-all;
}

.footer-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: var(--shell-w);
  margin: clamp(28px, 4vw, 44px) auto 0;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.footer-legal-text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.footer-legal-text--soft { color: rgba(147, 173, 166, 0.72); }

/* ---------- 9. motion ---------- */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  will-change: opacity, transform;
}

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

/* ---------- 10. responsive ---------- */
@media (max-width: 1080px) {
  .footer-shell { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .col-3, .col-4, .col-5 { grid-column: span 6; }
  .col-7, .col-8, .col-9 { grid-column: span 12; }
}

@media (max-width: 960px) {
  :root { --header-h: 70px; }

  body {
    padding-top: calc(var(--header-h) + 20px);
    padding-bottom: 78px;
  }

  .site-header { padding: 10px var(--gutter) 0; }

  .brand-island { padding: 8px 16px 8px 9px; }

  .brand-mark {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 17px;
  }

  .brand-tag { display: none; }

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

  .nav-capsule {
    position: fixed;
    top: calc(var(--header-h) + 6px);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
  }

  .site-header[data-open] .nav-capsule {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-link {
    justify-content: space-between;
    padding: 13px 16px;
    font-size: 16px;
    background: rgba(42, 58, 70, 0.32);
  }

  .nav-link[aria-current="page"] { background: var(--neon); }

  .site-header[data-compact] .nav-link {
    padding: 13px 16px;
    font-size: 16px;
  }

  .nav-dock { display: none; }

  .mobile-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-dock);
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 6px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: rgba(6, 18, 15, 0.95);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .grid-12 { gap: 16px; }

  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9 { grid-column: span 12; }

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

  .footer-contact { grid-column: auto; }

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

  .filter-bar { border-radius: var(--r-lg); }

  .stat { flex: 1 1 46%; }
}

@media (max-width: 420px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .card { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.12s !important;
    transition-delay: 0ms !important;
  }

  .js-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .scroll-progress-bar { transition: none; }

  .nav-dock,
  .nav-capsule { transform: none; }
}
