/* ============================================================
   kaiyun线上买球 — 共享站点样式 /assets/site.css
   堆叠画板 · 居中刊头 · 档案标签 · 数据终端
   ============================================================ */

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

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

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

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

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

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

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

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

/* ---------- 2. Tokens ---------- */
:root {
  --ink-900: #070F1E;
  --ink-800: #0C1B33;
  --panel-700: #12274A;
  --line-600: #1E3A66;
  --emerald-500: #12C48B;
  --emerald-700: #0A8F65;
  --flare-500: #FF5A2B;
  --amber-400: #FFB84D;
  --ice-100: #E9F1FF;
  --mist-400: #9CB0CE;
  --slate-500: #5D7395;

  --text: var(--ice-100);
  --text-body: #C6D6EE;
  --muted: var(--mist-400);
  --line: var(--line-600);
  --accent: var(--emerald-500);
  --hot: var(--flare-500);

  --shell: 1360px;
  --pad: clamp(20px, 5vw, 72px);
  --gap: clamp(16px, 2.2vw, 28px);

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;

  --shadow-1: 0 2px 8px rgba(3, 8, 18, .35);
  --shadow-2: 0 10px 28px rgba(3, 8, 18, .45);
  --shadow-3: 0 22px 52px rgba(3, 8, 18, .55);

  --font-sans: "HarmonyOS Sans SC", "Source Han Sans SC", Inter, system-ui,
    -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: system-ui, -apple-system, "Noto Sans SC", "PingFang SC",
    "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, "Courier New", monospace;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 3. Base ---------- */
html { background-color: var(--ink-900); }

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  letter-spacing: .01em;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1000px 560px at 82% -12%, rgba(18, 196, 139, .13), transparent 62%),
    radial-gradient(820px 480px at 4% 1%, rgba(255, 90, 43, .08), transparent 60%),
    linear-gradient(rgba(30, 58, 102, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 102, .22) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 72px 72px, 72px 72px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.has-quickbar { padding-bottom: 58px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.01em;
  color: var(--text);
}

h1 { font-size: clamp(40px, 5vw, 56px); line-height: 1.1; }
h2 { font-size: clamp(28px, 3.2vw, 36px); line-height: 1.2; }
h3 { font-size: clamp(20px, 2vw, 22px); line-height: 1.35; }
h4 { font-size: 17px; line-height: 1.4; }

p { max-width: 68ch; }

strong, b { color: var(--text); font-weight: 700; }

::selection { background: rgba(18, 196, 139, .32); color: var(--ice-100); }

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

.num,
.mono,
time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "zero" 1;
  letter-spacing: -.01em;
}

/* ---------- 4. Layout primitives ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(268px, 100%), 1fr)); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

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

.stack { display: grid; gap: clamp(14px, 1.8vw, 22px); }

@media (max-width: 900px) {
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ---------- 5. Section / typography blocks ---------- */
.section { padding-block: clamp(48px, 7vw, 104px); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(22px, 3vw, 40px);
}

.section__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--emerald-500);
}

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

.section__title { font-size: clamp(28px, 3.2vw, 36px); }

.section__note {
  font-size: 14px;
  color: var(--muted);
  max-width: 46ch;
}

.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
}

.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.6em; font-size: clamp(24px, 2.4vw, 30px); }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .45em; }
.prose a { color: var(--emerald-500); border-bottom: 1px solid rgba(18, 196, 139, .4); }
.prose a:hover { border-bottom-color: var(--emerald-500); }

/* ---------- 6. Boards & panels (堆叠画板) ---------- */
.board {
  position: relative;
  background: linear-gradient(180deg, var(--panel-700) 0%, var(--ink-800) 100%);
  border: 1px solid var(--line-600);
  box-shadow: var(--shadow-2);
  padding: clamp(22px, 3.4vw, 46px);
  border-radius: var(--r-sm);
}

.board::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(18, 196, 139, .55) 30%, transparent 70%);
  opacity: .7;
  pointer-events: none;
}

.board--lift { margin-top: clamp(-46px, -3vw, -16px); }

.board--flush { background: none; border: 0; box-shadow: none; padding: 0; }

.panel {
  position: relative;
  background: rgba(18, 39, 74, .55);
  border: 1px solid var(--line-600);
  border-radius: var(--r-sm);
  padding: clamp(16px, 2vw, 24px);
  box-shadow: var(--shadow-1);
  transition: transform .16s var(--ease), border-color .16s var(--ease),
    box-shadow .16s var(--ease);
}

.panel--interactive:hover {
  transform: translateY(-2px);
  border-color: var(--emerald-500);
  box-shadow: var(--shadow-2);
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

/* 档案式分割线 */
.rule {
  height: 1px;
  border: 0;
  background: var(--line-600);
  margin-block: clamp(18px, 2.4vw, 30px);
}

.rule--dashed {
  background: none;
  border-top: 1px dashed var(--line-600);
}

/* ---------- 7. Labels, badges, chips ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mist-400);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line-600);
  border-radius: 999px;
  background: rgba(18, 39, 74, .6);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
  white-space: nowrap;
}

.badge--live {
  color: var(--emerald-500);
  border-color: rgba(18, 196, 139, .42);
  background: rgba(18, 196, 139, .1);
}

.badge--hot {
  color: var(--flare-500);
  border-color: rgba(255, 90, 43, .42);
  background: rgba(255, 90, 43, .1);
}

.badge--warn {
  color: var(--amber-400);
  border-color: rgba(255, 184, 77, .42);
  background: rgba(255, 184, 77, .1);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--line-600);
  border-radius: 999px;
  background: rgba(18, 39, 74, .5);
  color: var(--mist-400);
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .16s var(--ease), color .16s var(--ease),
    border-color .16s var(--ease), background .16s var(--ease);
}

.chip:hover {
  color: var(--ice-100);
  border-color: var(--emerald-700);
  transform: translateY(-2px);
}

.chip[aria-pressed="true"],
.chip.is-active {
  color: var(--emerald-500);
  border-color: var(--emerald-500);
  background: rgba(18, 196, 139, .12);
}

/* ---------- 8. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--ice-100);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: transform .16s var(--ease), background .16s var(--ease),
    border-color .16s var(--ease), color .16s var(--ease);
}

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

.btn--primary {
  background: var(--emerald-500);
  border-color: var(--emerald-500);
  color: #04170F;
}

.btn--primary:hover {
  background: var(--emerald-700);
  border-color: var(--emerald-700);
}

.btn--hot {
  background: var(--flare-500);
  border-color: var(--flare-500);
  color: #210700;
}

.btn--hot:hover { background: #E24A1E; border-color: #E24A1E; }

.btn--ghost {
  border-color: var(--line-600);
  color: var(--ice-100);
}

.btn--ghost:hover {
  border-color: var(--emerald-500);
  color: var(--emerald-500);
}

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

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

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

.breadcrumb li + li::before {
  content: "/";
  color: var(--slate-500);
}

.breadcrumb a { color: var(--muted); transition: color .16s var(--ease); }
.breadcrumb a:hover { color: var(--emerald-500); }
.breadcrumb [aria-current="page"] { color: var(--ice-100); }

/* ---------- 10. Media frames ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-600);
  border-radius: var(--r-sm);
  background-color: var(--panel-700);
  background-image:
    linear-gradient(135deg, rgba(18, 39, 74, .95), rgba(7, 15, 30, .95)),
    repeating-linear-gradient(45deg, rgba(18, 196, 139, .07) 0 1px, transparent 1px 9px);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(7, 15, 30, .68) 100%);
  pointer-events: none;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--portrait { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--bare::after { display: none; }

/* ---------- 11. Tabs ---------- */
.tabs__list {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line-600);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs__list::-webkit-scrollbar { display: none; }

.tab {
  position: relative;
  flex: none;
  padding: 12px 18px;
  border: 0;
  background: none;
  color: var(--mist-400);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color .16s var(--ease);
}

.tab:hover { color: var(--ice-100); }

.tab[aria-selected="true"] { color: var(--ice-100); }

.tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--emerald-500);
}

.tabpanel { padding-top: clamp(16px, 2vw, 24px); }
.tabpanel[hidden] { display: none; }

/* ---------- 12. Reveal / motion protocol ---------- */
html.js-on [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}

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

html.js-on [data-reveal][hidden] { display: none; }

/* ---------- 13. Header ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 12px 22px;
  border-radius: 0 0 var(--r-md) var(--r-md);
  background: var(--emerald-500);
  color: #04170F;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  transition: top .2s var(--ease);
}

.skip-link:focus { top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(7, 15, 30, .97) 0%, rgba(12, 27, 51, .93) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-600);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}

.site-header.is-condensed { box-shadow: var(--shadow-3); }

/* 报头 */
.masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  padding-block: clamp(12px, 1.6vw, 20px);
  transition: padding .28s var(--ease);
}

.masthead__stat {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--mist-400);
  white-space: nowrap;
}

.masthead__stat .num {
  color: var(--emerald-500);
  font-size: 13px;
}

.pulse {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--emerald-500);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(18, 196, 139, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(18, 196, 139, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 196, 139, 0); }
}

.brand {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 11px;
  padding-inline: 6px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 17px;
  color: #04170F;
  background: linear-gradient(140deg, var(--emerald-500), var(--emerald-700) 62%, #0A5C46);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  transition: width .28s var(--ease), height .28s var(--ease), font-size .28s var(--ease);
}

.brand__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.brand__name {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(19px, 2.4vw, 28px);
  line-height: 1.06;
  letter-spacing: .01em;
  color: var(--ice-100);
  transition: font-size .28s var(--ease);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate-500);
  transition: opacity .2s var(--ease);
}

.masthead__actions {
  grid-column: 3;
  justify-self: end;
}

.site-header.is-condensed .masthead__inner { padding-block: 8px; }
.site-header.is-condensed .brand__name { font-size: clamp(17px, 1.9vw, 21px); }
.site-header.is-condensed .brand__mark { width: 28px; height: 28px; font-size: 14px; }
.site-header.is-condensed .brand__sub { opacity: 0; }

/* 移动导航按钮 */
.nav-toggle {
  grid-column: 3;
  justify-self: end;
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--line-600);
  border-radius: var(--r-md);
  background: rgba(18, 39, 74, .6);
  color: var(--ice-100);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: border-color .16s var(--ease), color .16s var(--ease);
}

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

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars i {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) {
  transform: translateY(4.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(-4.5px) rotate(-45deg);
}

/* 主导航 */
.site-nav {
  border-top: 1px solid var(--line-600);
  background: rgba(7, 15, 30, .42);
}

.site-nav__list {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(4px, 2.4vw, 38px);
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav__list::-webkit-scrollbar { display: none; }

.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 2px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--mist-400);
  white-space: nowrap;
  transition: color .16s var(--ease), transform .16s var(--ease);
}

.site-nav__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--slate-500);
  transition: color .16s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--emerald-500);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s var(--ease);
}

.site-nav__link:hover {
  color: var(--ice-100);
  transform: translateY(-2px);
}

.site-nav__link:hover .site-nav__idx { color: var(--emerald-500); }

.site-nav__link[aria-current="page"] { color: var(--ice-100); }
.site-nav__link[aria-current="page"] .site-nav__idx { color: var(--emerald-500); }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- 14. Quickbar ---------- */
.quickbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  visibility: hidden;
  transform: translateY(110%);
  background: linear-gradient(180deg, rgba(12, 27, 51, .96) 0%, rgba(7, 15, 30, .99) 100%);
  border-top: 1px solid var(--line-600);
  box-shadow: 0 -10px 30px rgba(3, 8, 18, .6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .36s var(--ease), visibility .36s var(--ease);
}

.quickbar.is-visible {
  visibility: visible;
  transform: translateY(0);
}

.quickbar__track {
  height: 2px;
  background: rgba(30, 58, 102, .7);
}

.quickbar__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--emerald-500) 0%, var(--amber-400) 62%, var(--flare-500) 100%);
  transition: width .12s linear;
}

.quickbar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 9px;
  min-height: 52px;
}

.quickbar__chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 2px;
}

.quickbar__chips::-webkit-scrollbar { display: none; }

.quickbar__links {
  display: flex;
  gap: 16px;
  flex: none;
  font-size: 13px;
  color: var(--muted);
}

.quickbar__links a { transition: color .16s var(--ease); }
.quickbar__links a:hover { color: var(--emerald-500); }

.quickbar__top {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border: 1px solid var(--line-600);
  border-radius: 999px;
  background: transparent;
  color: var(--ice-100);
  font-size: 13px;
  cursor: pointer;
  transition: border-color .16s var(--ease), color .16s var(--ease), transform .16s var(--ease);
}

.quickbar__top:hover {
  border-color: var(--emerald-500);
  color: var(--emerald-500);
  transform: translateY(-2px);
}

/* ---------- 15. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 140px);
  background: linear-gradient(180deg, var(--ink-800) 0%, var(--ink-900) 100%);
  border-top: 1px solid var(--line-600);
  color: var(--muted);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--emerald-500) 20%, var(--flare-500) 54%, transparent 84%);
  opacity: .7;
  pointer-events: none;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 56px);
  padding-block: clamp(44px, 6vw, 80px) clamp(30px, 4vw, 56px);
}

.footer__brand-name {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.15;
  color: var(--ice-100);
  letter-spacing: .01em;
}

.footer__tagline {
  margin-top: 12px;
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.footer__icp {
  display: inline-block;
  margin-top: 18px;
  padding: 5px 11px;
  border: 1px solid var(--line-600);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-500);
  letter-spacing: .02em;
}

.footer__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--emerald-500);
}

.footer__list {
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.65;
}

.footer__list a {
  display: inline-block;
  color: var(--muted);
  transition: color .16s var(--ease), transform .16s var(--ease);
}

.footer__list a:hover {
  color: var(--emerald-500);
  transform: translateX(4px);
}

.footer__list--contact li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: start;
}

.footer__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--slate-500);
  padding-top: 3px;
}

.footer__list--contact .num { font-size: 13px; color: var(--text-body); word-break: break-all; }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
  padding-block: 18px;
  border-top: 1px solid var(--line-600);
  font-size: 13px;
  color: var(--slate-500);
}

.footer__copy { max-width: none; }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__legal a {
  color: var(--muted);
  transition: color .16s var(--ease);
}

.footer__legal a:hover { color: var(--emerald-500); }

/* ---------- 16. Responsive ---------- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .masthead__inner { padding-block: 10px; }
  .masthead__stat { display: none; }
  .masthead__actions { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand { justify-self: center; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
    border-top: 1px solid var(--line-600);
    border-bottom: 1px solid var(--line-600);
    background: linear-gradient(180deg, var(--ink-800) 0%, var(--ink-900) 100%);
    box-shadow: var(--shadow-3);
    transition: max-height .34s var(--ease), opacity .22s var(--ease),
      visibility .34s var(--ease);
  }

  .site-nav[data-open] {
    max-height: min(72vh, 540px);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    overflow-y: auto;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding-block: 6px 22px;
    overflow: visible;
  }

  .site-nav__link {
    padding: 15px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line-600);
    transform: none;
  }

  .site-nav__link:hover { transform: none; }
  .site-nav__link::after { display: none; }
  .site-nav__link[aria-current="page"] { color: var(--emerald-500); }
  .site-nav__idx { font-size: 11px; }

  .quickbar__links { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  h1 { font-size: clamp(32px, 9vw, 44px); }
  .brand__sub { display: none; }
  .brand__mark { width: 30px; height: 30px; font-size: 15px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__base { flex-direction: column; align-items: flex-start; }
  .quickbar__inner { gap: 10px; }
  .quickbar__top { padding: 6px 12px; font-size: 12px; }
  body.has-quickbar { padding-bottom: 62px; }
}

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

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

  .pulse { animation: none; box-shadow: 0 0 0 3px rgba(18, 196, 139, .18); }

  .btn:hover,
  .chip:hover,
  .panel--interactive:hover,
  .quickbar__top:hover,
  .site-nav__link:hover,
  .footer__list a:hover { transform: none; }
}
