/* =========================================================
   KK赛场 · 共享外壳 /assets/site.css
   夜间赛场 · 数据脉冲 · 粗野主义边框
   ========================================================= */

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

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

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

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

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

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

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

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

/* ---------- 2. Tokens ---------- */
:root {
  --abyss-900: #070E1C;
  --abyss-800: #0A1424;
  --abyss-700: #0E1A30;
  --abyss-600: #122140;
  --slate-400: #6B7C93;
  --mist-050: #EEF3F8;

  --cyan: #2FF3D6;
  --orange: #FF7A2F;
  --violet: #7B5CFF;
  --plateau: #B9D7DA;
  --amber: #FFC24B;
  --green: #35D07F;

  --ink: var(--mist-050);
  --ink-dim: #A9B8C9;
  --ink-mute: var(--slate-400);

  --line-1: rgba(107, 124, 147, .22);
  --line-2: rgba(107, 124, 147, .45);
  --line-3: rgba(238, 243, 248, .12);

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

  --gutter: 24px;
  --maxw: 1440px;
  --rail-w: 48px;

  --shadow-hard: 8px 8px 0 var(--abyss-700);
  --shadow-cyan: 6px 6px 0 rgba(47, 243, 214, .18);
  --shadow-orange: 8px 8px 0 rgba(255, 122, 47, .22);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --rail-w: 0px; }
}

/* ---------- 3. Base typography ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--abyss-900);
  background-image:
    repeating-linear-gradient(90deg, rgba(107, 124, 147, .055) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(107, 124, 147, .038) 0 1px, transparent 1px 96px),
    radial-gradient(120% 80% at 82% -10%, rgba(47, 243, 214, .08) 0%, transparent 60%);
  background-attachment: scroll, scroll, fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.02;
  color: var(--ink);
  font-stretch: condensed;
}

p { text-wrap: pretty; }

::selection { background: var(--cyan); color: var(--abyss-900); }

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

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

.anno {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate-400);
}

/* ---------- 5. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(48px, 7vw, 96px); }

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

.grid > * { min-width: 0; }

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

@media (min-width: 900px) {
  .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; }
}

/* ---------- 6. Chapter ---------- */
.chapter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(14px, 2vw, 28px);
  align-items: start;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.chapter__num {
  font-family: var(--font-mono);
  font-size: clamp(46px, 6.4vw, 92px);
  font-weight: 700;
  line-height: .82;
  letter-spacing: -.06em;
  color: var(--abyss-600);
  user-select: none;
}

@supports (-webkit-text-stroke: 1px #000) {
  .chapter__num {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--line-2);
  }
}

.chapter__body { padding-top: 6px; }

.chapter__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.chapter__title {
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.08;
  letter-spacing: -.02em;
  position: relative;
  padding-top: 18px;
}

.chapter__title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--cyan);
}

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 2px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease);
}

.btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-cyan);
}

.btn:active { transform: translate(0, 0); box-shadow: none; }

.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--abyss-900);
}

.btn--primary:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--abyss-900);
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-orange);
}

.btn--ghost {
  border-color: var(--line-2);
  color: var(--ink-dim);
}

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

.btn--block { width: 100%; }

/* ---------- 8. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--cyan);
  color: var(--abyss-900);
  border: 2px solid var(--abyss-900);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
}

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

/* =========================================================
   9. HEADER · 框架式导航
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  grid-template-rows: auto auto;
  background: var(--abyss-900);
  border-bottom: 2px solid var(--line-2);
  box-shadow: 0 1px 0 rgba(47, 243, 214, .14);
}

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 5;
  background: rgba(47, 243, 214, .1);
  pointer-events: none;
}

.scroll-progress__fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan) 72%, var(--orange) 100%);
}

/* 左侧纵向旁注 */
.site-header__rail {
  grid-column: 1;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-right: 1px solid var(--line-1);
  background: linear-gradient(180deg, rgba(47, 243, 214, .1), rgba(47, 243, 214, 0) 62%);
}

.site-header__rail-dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(47, 243, 214, .16);
}

.site-header__rail-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .42em;
  color: var(--slate-400);
}

.site-header__rail-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--cyan);
}

/* 顶部状态带 */
.frame-bar {
  grid-column: 2;
  border-bottom: 1px solid var(--line-1);
  background: rgba(14, 26, 48, .6);
}

.frame-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 5px var(--gutter);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  line-height: 1.5;
  color: var(--slate-400);
}

.frame-bar__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  white-space: nowrap;
}

.frame-bar__tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--cyan);
}

.frame-bar__status { white-space: nowrap; }

.frame-bar__sep {
  margin: 0 8px;
  color: rgba(107, 124, 147, .7);
}

/* 主栏 */
.frame-main {
  grid-column: 2;
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gutter);
  min-height: 62px;
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding-right: 8px;
}

.brand__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--cyan);
  border: 2px solid var(--cyan);
  color: var(--abyss-900);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.06em;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              transform .18s var(--ease), box-shadow .18s var(--ease);
}

.brand__link:hover .brand__mark {
  background: transparent;
  color: var(--cyan);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(47, 243, 214, .2);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.1;
  color: var(--ink);
}

.brand__line {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  line-height: 1.2;
  color: var(--slate-400);
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: stretch;
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: stretch;
}

.site-nav__item { display: flex; }

.site-nav__link {
  display: flex;
  align-items: center;
  padding: 0 15px;
  border-left: 1px solid var(--line-1);
  color: var(--ink-dim);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.2;
  transition: color .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}

.site-nav__item:last-child .site-nav__link { border-right: 1px solid var(--line-1); }

.site-nav__link:hover {
  color: var(--cyan);
  background: rgba(47, 243, 214, .07);
  border-left-color: var(--cyan);
  transform: translateY(-2px);
}

.site-nav__link[aria-current="page"] {
  background: var(--cyan);
  border-left-color: var(--cyan);
  color: var(--abyss-900);
  font-weight: 700;
}

.site-nav__link[aria-current="page"]:hover {
  background: var(--cyan);
  color: var(--abyss-900);
  transform: none;
}

.site-nav__cta { display: none; }

/* 右侧动作 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 10px;
}

.header-actions__cta { display: inline-flex; }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border: 2px solid var(--line-2);
  background: transparent;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}

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

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s var(--ease), opacity .2s var(--ease),
              background-color .2s var(--ease);
}

.nav-toggle[aria-expanded="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: var(--abyss-900); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动导航面板 */
@media (max-width: 1079px) {
  .site-header { grid-template-columns: minmax(0, 1fr); }

  .site-header__rail { display: none; }

  .frame-bar, .frame-main { grid-column: 1; }

  .frame-bar__inner {
    font-size: 10px;
    letter-spacing: .08em;
    padding-block: 6px;
  }

  .frame-main {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-height: 0;
    padding: 10px var(--gutter);
  }

  .brand { padding-right: 0; }

  .header-actions {
    margin-left: auto;
    padding-left: 0;
  }

  .header-actions__cta { display: none; }

  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    flex: 1 1 100%;
    width: 100%;
    margin: 0;
    padding-top: 6px;
    border-top: 2px solid var(--line-2);
  }

  .site-header[data-open] .site-nav { display: block; }

  .site-nav__list { flex-direction: column; }

  .site-nav__item { width: 100%; }

  .site-nav__link {
    width: 100%;
    min-height: 52px;
    padding: 0 12px;
    border-left: 0;
    border-bottom: 1px solid var(--line-1);
    font-size: 16px;
  }

  .site-nav__item:last-child .site-nav__link { border-right: 0; }

  .site-nav__link:hover { transform: none; }

  .site-nav__cta {
    display: flex;
    width: 100%;
    margin: 14px 0 6px;
  }
}

@media (max-width: 640px) {
  .brand__line { display: none; }
  .frame-bar__tag { display: none; }
  .frame-bar__inner { justify-content: flex-start; }
}

@media (min-width: 1080px) {
  .site-nav__cta { display: none; }
}

/* =========================================================
   10. Breadcrumb / Tag / Chip
   ========================================================= */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--slate-400);
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-400);
}

.breadcrumb__item:not(:last-child)::after {
  content: "/";
  color: var(--line-2);
}

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

.breadcrumb__link {
  color: var(--ink-dim);
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.breadcrumb__link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  background: rgba(14, 26, 48, .7);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 1.6;
  white-space: nowrap;
}

.tag--cyan {
  border-color: var(--cyan);
  color: var(--cyan);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 2px solid var(--line-2);
  background: transparent;
  color: var(--ink-dim);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.3;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease),
              background-color .18s var(--ease);
}

.chip:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-cyan);
}

.chip--active,
.chip[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--abyss-900);
}

.chip--active:hover,
.chip[aria-pressed="true"]:hover {
  background: var(--cyan);
  color: var(--abyss-900);
  transform: none;
  box-shadow: none;
}

/* =========================================================
   11. Panel / Table / Link / Prose
   ========================================================= */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: 2px solid var(--line-2);
  background: linear-gradient(180deg, rgba(18, 33, 64, .72) 0%, rgba(7, 14, 28, .92) 100%);
  transition: border-color .18s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease);
}

.panel:hover {
  border-color: var(--cyan);
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-hard);
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-1);
}

.panel__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.3;
}

.data-table {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.data-table caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--slate-400);
}

.data-table th {
  padding: 10px 12px;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--slate-400);
  border-bottom: 2px solid var(--line-2);
  white-space: nowrap;
}

.data-table td {
  padding: 12px;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--line-1);
  transition: color .15s var(--ease), background-color .15s var(--ease);
}

.data-table tbody tr:hover td {
  background: var(--abyss-700);
  color: var(--ink);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  border-bottom: 1px solid transparent;
  transition: gap .18s var(--ease), border-color .18s var(--ease);
}

.link-more::after {
  content: "→";
  font-family: var(--font-mono);
}

.link-more:hover {
  gap: 14px;
  border-bottom-color: var(--cyan);
}

.prose {
  max-width: 38em;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-dim);
}

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

.prose h2, .prose h3 {
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -.01em;
}

.prose h2 { font-size: 26px; }
.prose h3 { font-size: 20px; }

.prose strong { color: var(--ink); font-weight: 700; }

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(47, 243, 214, .45);
}

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

.prose ul, .prose ol { padding-left: 1.1em; }
.prose ul li { list-style: square; }
.prose ol li { list-style: decimal; }
.prose li::marker { color: var(--cyan); }

.prose blockquote {
  padding: 16px 20px;
  border-left: 4px solid var(--orange);
  background: rgba(14, 26, 48, .7);
  color: var(--ink);
}

/* =========================================================
   12. Media containers
   ========================================================= */
.media {
  position: relative;
  display: block;
  border: 2px solid var(--line-2);
  background: var(--abyss-700);
  overflow: hidden;
  transition: border-color .18s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(47, 243, 214, .12);
  pointer-events: none;
}

.media:hover {
  border-color: var(--cyan);
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-hard);
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }

.media__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media__ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 120px;
  background-color: var(--abyss-800);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(107, 124, 147, .18) 0 2px,
    transparent 2px 12px
  );
  color: var(--slate-400);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
}

.media__cap {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  line-height: 1.6;
  color: var(--slate-400);
}

/* =========================================================
   13. Reveal
   ========================================================= */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

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

/* =========================================================
   14. FOOTER · 版权页
   ========================================================= */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 8vw, 120px);
  border-top: 2px solid var(--line-2);
  background: linear-gradient(180deg, var(--abyss-900) 0%, #050A14 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 128px;
  height: 2px;
  background: var(--cyan);
}

.footer-frame {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(40px, 5vw, 64px) var(--gutter) 32px;
}

/* masthead */
.footer-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-1);
}

.footer-masthead__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.footer-brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.06em;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              transform .18s var(--ease);
}

.footer-brand:hover .footer-brand__mark {
  background: var(--cyan);
  color: var(--abyss-900);
  transform: translate(-2px, -2px);
}

.footer-brand__name {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: .95;
  color: var(--ink);
}

.footer-brand__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--slate-400);
}

.footer-masthead__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--slate-400);
  text-align: right;
  white-space: nowrap;
}

/* nav columns */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line-1);
}

.footer-col__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink);
}

.footer-col__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--cyan);
}

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

.footer-col__link {
  position: relative;
  display: inline-block;
  padding-left: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-dim);
  transition: color .18s var(--ease), padding-left .18s var(--ease);
}

.footer-col__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 14px;
  background: var(--orange);
  transform: translateY(-50%) scaleY(0);
  transform-origin: center;
  transition: transform .18s var(--ease);
}

.footer-col__link:hover {
  color: var(--cyan);
  padding-left: 14px;
}

.footer-col__link:hover::before { transform: translateY(-50%) scaleY(1); }

/* meta */
.footer-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-1);
}

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

.footer-meta__label {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-meta__contact {
  display: grid;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-dim);
  word-break: break-word;
}

.footer-meta__contact > span:first-child { color: var(--ink); }

.footer-note {
  max-width: 34em;
  font-size: 13px;
  line-height: 1.8;
  color: var(--slate-400);
}

/* legal */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 24px;
}

.footer-legal__copy {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  line-height: 1.6;
  color: var(--slate-400);
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.footer-legal__link {
  display: inline-block;
  padding: 0 14px;
  border-left: 1px solid var(--line-1);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-dim);
  transition: color .18s var(--ease);
}

.footer-legal__links li:first-child .footer-legal__link {
  padding-left: 0;
  border-left: 0;
}

.footer-legal__link:hover { color: var(--cyan); }

/* footer responsive */
@media (max-width: 900px) {
  .footer-masthead {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .footer-masthead__meta {
    text-align: left;
    letter-spacing: .14em;
  }

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

@media (max-width: 700px) {
  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 30px 0;
  }

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

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

/* =========================================================
   15. Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

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

  .btn:hover,
  .chip:hover,
  .panel:hover,
  .media:hover,
  .site-nav__link:hover,
  .brand__link:hover .brand__mark,
  .footer-brand:hover .footer-brand__mark {
    transform: none;
  }
}
