/* =========================================================
   新利赛场 · 共享样式 /assets/site.css
   夜场计分牌视觉系统：浮岛导航 / 刻度线 / 有机信息岛
   ========================================================= */

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

html {
  background: #071A2B;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body, h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; }

/* ---------- 2. TOKENS ---------- */
:root {
  --ink-900: #071A2B;
  --ink-800: #0B2B24;
  --ink-700: #123F34;
  --pitch-500: #1F6B4F;
  --lime-500: #C8FF3D;
  --lime-300: #E4FF9E;
  --orange-500: #FF7A3D;
  --orange-200: #FFC2A3;
  --mist-100: #F4F7F2;
  --sage-400: #A9B8B1;
  --line-700: #2A4A42;
  --white: #FFFFFF;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-xs: 10px;
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --gap: clamp(16px, 2.4vw, 28px);
  --ease: cubic-bezier(.2, .7, .3, 1);
  --shadow-island: 0 24px 48px -34px rgba(0, 0, 0, .95);
}

/* ---------- 3. BASE ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.02vw, 17px);
  font-weight: 400;
  line-height: 1.75;
  color: var(--mist-100);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1100px 560px at 8% -8%, rgba(31, 107, 79, .50), transparent 68%),
    radial-gradient(820px 480px at 96% 2%, rgba(18, 63, 52, .55), transparent 70%),
    linear-gradient(180deg, #071A2B 0%, #08211F 48%, #0B2B24 100%);
  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.06;
  letter-spacing: -0.02em;
  color: var(--mist-100);
}

p a { color: var(--lime-300); }

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

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

#main-content { display: block; scroll-margin-top: 130px; }

/* ---------- 4. UTILITIES ---------- */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

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

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--lime-500);
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  transform: translate(-50%, -190%);
  transition: transform .2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ---------- 5. LAYOUT ---------- */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: clamp(18px, 4vw, 40px);
}
.wrap--wide { max-width: 1380px; }

.section { padding-block: clamp(56px, 8vw, 110px); }

.stack { display: grid; gap: var(--gap); align-content: start; }

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

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--asym { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }

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

/* ---------- 6. TYPE COMPONENTS ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lime-500);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .65;
}

.chapter-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(44px, 6.4vw, 92px);
  font-weight: 700;
  line-height: .88;
  letter-spacing: -0.04em;
  color: var(--lime-500);
  font-variant-numeric: tabular-nums;
}

.lede {
  max-width: 46ch;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.65;
  color: rgba(244, 247, 242, .84);
}

.panel-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.1vw, 27px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--line-700);
  border-radius: var(--radius-pill);
  background: rgba(18, 63, 52, .55);
  color: var(--sage-400);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
}
.tag--lime {
  border-color: rgba(200, 255, 61, .42);
  background: rgba(200, 255, 61, .14);
  color: var(--lime-300);
}
.tag--orange {
  border-color: rgba(255, 122, 61, .45);
  background: rgba(255, 122, 61, .16);
  color: var(--orange-200);
}

/* ---------- 7. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn--lime {
  background: var(--lime-500);
  color: var(--ink-900);
  box-shadow: 0 14px 30px -18px rgba(200, 255, 61, .9);
}
.btn--lime:hover { background: var(--lime-300); transform: translateY(-1px); }
.btn--ghost {
  border-color: var(--line-700);
  background: rgba(18, 63, 52, .60);
  color: var(--mist-100);
}
.btn--ghost:hover { border-color: rgba(200, 255, 61, .6); color: var(--lime-300); }
.btn--orange {
  background: var(--orange-500);
  color: #1E1109;
}
.btn--orange:hover { background: var(--orange-200); transform: translateY(-1px); }
.btn--sm { padding: 9px 15px; font-size: 13px; }
.btn--lg { padding: 15px 28px; font-size: 15px; }
.btn--block { width: 100%; }

/* ---------- 8. HEADER ---------- */
.site-header {
  --gutter: clamp(12px, 2.4vw, 28px);
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 14px var(--gutter) 0;
  background: linear-gradient(180deg, rgba(7, 26, 43, .94) 0%, rgba(7, 26, 43, .55) 62%, rgba(7, 26, 43, 0) 100%);
  transition: padding .22s var(--ease), background .22s var(--ease);
}
.site-header[data-scrolled] {
  padding-top: 8px;
  background: linear-gradient(180deg, rgba(7, 26, 43, .98) 0%, rgba(7, 26, 43, .72) 70%, rgba(7, 26, 43, 0) 100%);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 1.2vw, 18px);
  max-width: 1380px;
  margin: 0 auto;
}

.header-island {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line-700);
  border-radius: var(--radius-pill);
  background: rgba(11, 43, 36, .82);
  box-shadow: var(--shadow-island);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.header-island--brand { padding: 6px 18px 6px 8px; }
.header-island--actions { padding: 6px 8px 6px 12px; }

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 2px 4px;
  border-radius: var(--radius-pill);
}
.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--lime-500);
  box-shadow: 0 0 0 4px rgba(200, 255, 61, .12);
}
.brand-mark::before {
  content: "";
  position: absolute;
  left: 8px; right: 8px; top: 11px;
  height: 3px;
  border-radius: 2px;
  background: var(--ink-900);
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 8px; right: 14px; bottom: 11px;
  height: 3px;
  border-radius: 2px;
  background: var(--ink-900);
}
.brand-copy { display: grid; gap: 1px; min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .01em;
  color: var(--mist-100);
}
.brand-tagline {
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .07em;
  color: var(--sage-400);
  white-space: nowrap;
}

/* 栏目胶囊 */
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(244, 247, 242, .78);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav-link:hover { background: rgba(200, 255, 61, .10); color: var(--mist-100); }
.nav-link[aria-current="page"] {
  background: var(--lime-500);
  color: var(--ink-900);
  font-weight: 700;
}

/* 动作岛 */
.round-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  white-space: nowrap;
}
.round-chip-key { color: var(--sage-400); }
.round-chip-value {
  color: var(--lime-500);
  font-variant-numeric: tabular-nums;
}

/* 移动端开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--line-700);
  border-radius: var(--radius-pill);
  background: rgba(18, 63, 52, .72);
  color: var(--mist-100);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.nav-toggle:hover { border-color: rgba(200, 255, 61, .6); color: var(--lime-300); }
.nav-toggle-bars { display: inline-grid; gap: 4px; width: 16px; }
.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--lime-500);
  transition: transform .18s var(--ease);
}
.site-header[data-open] .nav-toggle-bars span:first-child { transform: translateY(3px) rotate(45deg); }
.site-header[data-open] .nav-toggle-bars span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* 轮次进度线 */
.scroll-track {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(42, 74, 66, .55);
  overflow: hidden;
}
.scroll-track-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--pitch-500) 0%, var(--lime-500) 62%, var(--orange-500) 100%);
}

/* ---------- 9. HEADER RESPONSIVE ---------- */
@media (max-width: 1239px) {
  .round-chip { display: none; }
}

@media (max-width: 1080px) {
  .brand-tagline { display: none; }
  .header-island--brand { padding: 6px 14px 6px 8px; }
  .nav-toggle { display: inline-flex; }
  .header-island--actions .btn--ghost { display: none; }
  .header-island--actions { padding: 6px 8px; }

  .nav-island {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: var(--gutter);
    right: var(--gutter);
    z-index: 90;
    padding: 14px;
    border-radius: 28px;
    background: rgba(9, 32, 27, .97);
    border: 1px solid var(--line-700);
    box-shadow: 0 34px 70px -34px rgba(0, 0, 0, .95);
  }
  .nav-island[data-open] { display: block; }

  .nav-island[data-open] .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    counter-reset: navidx;
  }
  .nav-island[data-open] .nav-list li { counter-increment: navidx; }
  .nav-island[data-open] .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 13px 16px;
    border-radius: 18px;
    background: rgba(18, 63, 52, .5);
    color: var(--mist-100);
    font-size: 16px;
    font-weight: 600;
  }
  .nav-island[data-open] .nav-link::after {
    content: counter(navidx, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .1em;
    color: var(--sage-400);
  }
  .nav-island[data-open] .nav-link:hover { background: rgba(31, 107, 79, .7); }
  .nav-island[data-open] .nav-link[aria-current="page"] {
    background: var(--lime-500);
    color: var(--ink-900);
  }
  .nav-island[data-open] .nav-link[aria-current="page"]::after { color: rgba(7, 26, 43, .62); }
}

@media (max-width: 560px) {
  .brand-name { font-size: 15.5px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 10px; }
  .brand-mark::before { top: 9px; left: 7px; right: 7px; }
  .brand-mark::after { bottom: 9px; left: 7px; right: 12px; }
  .header-island { border-radius: 22px; }
  .header-island--actions .btn--sm { padding: 8px 12px; font-size: 12.5px; }
  .nav-toggle-label { display: none; }
}

/* ---------- 10. PANELS ---------- */
.panel {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line-700);
  border-radius: var(--radius-md);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(31, 107, 79, .55), transparent 62%),
    linear-gradient(160deg, rgba(18, 63, 52, .78) 0%, rgba(11, 43, 36, .92) 100%);
}
.panel--flat {
  background: rgba(11, 43, 36, .62);
  border-color: rgba(42, 74, 66, .8);
}
.panel--lime {
  border-color: transparent;
  background: var(--lime-500);
  color: var(--ink-900);
}
.panel--orange {
  border-color: transparent;
  background: var(--orange-500);
  color: #1E1109;
}
.panel--lime .panel-title,
.panel--orange .panel-title { color: inherit; }

/* ---------- 11. MEDIA (图片容器基础规则) ---------- */
.media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line-700);
  border-radius: var(--radius-md);
  background-color: var(--ink-800);
  background-image:
    radial-gradient(120% 130% at 18% 0%, rgba(31, 107, 79, .62), transparent 62%),
    linear-gradient(155deg, #0B2B24 0%, #071A2B 72%);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 26, 43, 0) 46%, rgba(7, 26, 43, .74) 100%);
}
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--21x9 { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }

.media-cap {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 28px);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: rgba(7, 26, 43, .80);
  color: var(--mist-100);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

@media (max-width: 700px) {
  .media--21x9 { aspect-ratio: 16 / 9; }
}

/* ---------- 12. BREADCRUMBS ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--sage-400);
}
.breadcrumbs a { color: var(--sage-400); transition: color .18s var(--ease); }
.breadcrumbs a:hover { color: var(--lime-300); }
.breadcrumbs [aria-current="page"] { color: var(--mist-100); }
.crumb-sep { color: var(--line-700); }

/* ---------- 13. FILTER & CHAPTER LINKS ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--line-700);
  border-radius: var(--radius-pill);
  background: rgba(18, 63, 52, .50);
  color: rgba(244, 247, 242, .80);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.filter-btn:hover { border-color: rgba(200, 255, 61, .6); color: var(--lime-300); }
.filter-btn[aria-pressed="true"] {
  background: var(--lime-500);
  border-color: var(--lime-500);
  color: var(--ink-900);
}
[data-filter-item][hidden] { display: none !important; }

.chapter-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--sage-400);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.chapter-link:hover { background: rgba(18, 63, 52, .70); color: var(--mist-100); }
.chapter-link[data-active="true"] {
  background: var(--lime-500);
  color: var(--ink-900);
  font-weight: 700;
}

/* ---------- 14. PROSE ---------- */
.prose {
  max-width: 72ch;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.85;
  color: rgba(244, 247, 242, .88);
}
.prose > * + * { margin-top: 1.05em; }
.prose h2 {
  margin-top: 2em;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.25;
  color: var(--mist-100);
}
.prose h3 {
  margin-top: 1.6em;
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--lime-300);
}
.prose ul, .prose ol { display: grid; gap: .5em; }
.prose li { position: relative; padding-left: 1.25em; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .76em;
  width: 8px;
  height: 2px;
  background: var(--lime-500);
}
.prose strong { color: var(--mist-100); font-weight: 700; }
.prose a { color: var(--lime-300); border-bottom: 1px solid rgba(200, 255, 61, .4); }
.prose a:hover { border-bottom-color: var(--lime-300); }

/* ---------- 15. FOOTER ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(64px, 9vw, 140px);
  border-top: 1px solid var(--line-700);
  background: linear-gradient(180deg, #0B2B24 0%, #08241E 52%, #061B17 100%);
  color: var(--mist-100);
}
.footer-glow {
  position: absolute;
  z-index: 0;
  top: -180px;
  left: -12%;
  width: min(760px, 82vw);
  height: 440px;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(200, 255, 61, .16), rgba(200, 255, 61, 0));
}
.footer-ruler {
  position: relative;
  z-index: 1;
  height: 28px;
  border-bottom: 1px solid rgba(42, 74, 66, .55);
  background-image: repeating-linear-gradient(90deg, rgba(200, 255, 61, .45) 0 1px, rgba(200, 255, 61, 0) 1px 30px);
  background-repeat: repeat-x;
  background-position: left bottom;
  background-size: auto 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.footer-shell {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 60px) clamp(18px, 4vw, 40px) 0;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(0, 1.55fr);
  gap: clamp(28px, 4vw, 72px);
  padding-bottom: clamp(26px, 4vw, 46px);
  border-bottom: 1px solid rgba(42, 74, 66, .60);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--mist-100);
}
.footer-logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--lime-500);
  box-shadow: 0 0 0 4px rgba(200, 255, 61, .14);
}
.footer-brand-line {
  margin-top: 14px;
  max-width: 26ch;
  font-size: 13.5px;
  line-height: 1.65;
  letter-spacing: .02em;
  color: var(--sage-400);
}
.footer-round {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 20px;
}
.footer-round-num {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--lime-500);
  font-variant-numeric: tabular-nums;
}
.footer-round-sep { margin: 0 3px; color: var(--line-700); }
.footer-round-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sage-400);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 34px);
}
.footer-col { min-width: 0; }
.footer-col-title {
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lime-500);
}
.footer-links { display: grid; gap: 9px; }
.footer-link {
  display: inline-block;
  font-size: 14px;
  color: rgba(244, 247, 242, .72);
  transition: color .18s var(--ease), transform .18s var(--ease);
}
.footer-link:hover { color: var(--mist-100); transform: translateX(4px); }
.footer-link:focus-visible { color: var(--lime-300); }

.footer-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 34px);
  padding: clamp(22px, 3.4vw, 34px) 0;
  border-bottom: 1px solid rgba(42, 74, 66, .60);
}
.footer-contact-item { display: grid; gap: 6px; min-width: 0; }
.footer-contact-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage-400);
}
.footer-contact-value {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mist-100);
  overflow-wrap: anywhere;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 18px 0 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--sage-400);
}
.footer-copy { color: rgba(244, 247, 242, .72); }
.footer-icp { color: var(--sage-400); }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .footer-contact { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .footer-base { justify-content: flex-start; }
}

/* ---------- 16. MOTION ---------- */
html[data-js="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
html[data-js="on"] [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html[data-js="on"] [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
