/* ==========================================================================
   爱游戏全站 · 共享站点样式 /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, figure, blockquote, dl, dd { margin: 0; }

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

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

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

button { background: none; border: 0; }

a { color: inherit; }

hr { border: 0; }

/* ---------- 2. 变量 ---------- */
:root {
  --midnight: #050B1B;
  --panel: #0A1430;
  --stroke: #1A2B57;
  --mist: #8E9CC2;
  --cyan: #3BF0DC;
  --violet: #8A6BFF;
  --lime: #B8FF3C;
  --paper: #F1F5FF;
  --amber: #FFC46B;
  --ink: #04121A;

  --gutter: clamp(18px, 4vw, 56px);
  --header-h: 103px;

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --pill: 999px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .42s;
  --dur-fast: .24s;
  --reveal-delay: 0ms;

  --fs-100: 12px;
  --fs-200: 14px;
  --fs-300: 16px;
  --fs-400: 20px;
  --fs-500: 28px;
  --fs-600: 40px;
  --fs-700: 64px;
  --fs-800: clamp(48px, 7vw, 104px);

  --font-body: "Noto Sans SC", "HarmonyOS Sans", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-display: var(--font-body);
}

/* ---------- 3. 基础排版与底色 ---------- */
body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-body);
  font-size: var(--fs-300);
  font-weight: 400;
  line-height: 1.9;
  color: var(--paper);
  background-color: var(--midnight);
  background-image:
    linear-gradient(90deg, rgba(26, 43, 87, .42) 1px, transparent 1px),
    radial-gradient(1100px 720px at 12% -12%, rgba(59, 240, 220, .10), transparent 62%),
    radial-gradient(900px 640px at 98% 2%, rgba(138, 107, 255, .13), transparent 62%),
    radial-gradient(760px 520px at 44% 108%, rgba(184, 255, 60, .05), transparent 62%);
  background-size: calc(100% / 12) 100%, 100% 100%, 100% 100%, 100% 100%;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: fixed, fixed, fixed, fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -.02em;
}

h1 { font-size: var(--fs-800); }
h2 { font-size: clamp(32px, 4.2vw, 64px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.01em; }
h4 { font-size: var(--fs-400); letter-spacing: 0; }

p { max-width: 34em; }

p.lead {
  font-size: var(--fs-400);
  line-height: 1.8;
  color: #C7D2EF;
}

a { text-decoration: none; }

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

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

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

/* ---------- 4. 布局容器 ---------- */
.shell {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--mist);
  text-transform: uppercase;
}

.chapter-no {
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--cyan);
}

.rule {
  height: 1px;
  background: var(--stroke);
  margin-block: clamp(24px, 4vw, 56px);
}

/* ---------- 5. 页头：框架式导航 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  background: rgba(5, 11, 27, .9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--stroke);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: min(220px, 24vw);
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  pointer-events: none;
}

.progress-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  z-index: 3;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 62%, var(--lime));
  will-change: transform;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 200;
  padding: 10px 22px;
  transform: translate(-50%, -160%);
  border-radius: 0 0 var(--pill) var(--pill);
  background: var(--cyan);
  color: var(--ink);
  font-size: var(--fs-200);
  font-weight: 600;
  letter-spacing: .04em;
  transition: transform var(--dur-fast) var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 30px;
  border-bottom: 1px solid var(--stroke);
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--mist);
}

.header-meta,
.header-coord { white-space: nowrap; }

.header-coord { color: #5C6C99; }

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  height: 72px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-height: 44px;
  border-radius: var(--radius-sm);
}

.brand-gate {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 22px;
  height: 30px;
  border: 2px solid var(--cyan);
  border-bottom: 0;
  border-radius: 11px 11px 0 0;
}

.brand-gate::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  transform: translateX(-50%);
}

.brand-gate--sm {
  width: 18px;
  height: 25px;
  border-radius: 9px 9px 0 0;
}

.brand-gate--sm::after { bottom: 4px; width: 6px; }

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: var(--fs-300);
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--paper);
}

.brand-tag {
  font-size: var(--fs-100);
  letter-spacing: .1em;
  color: var(--mist);
  white-space: nowrap;
}

/* 主导航 */
.main-nav { margin-inline: auto; }

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

.nav-item { display: flex; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--pill);
  color: var(--mist);
  font-size: var(--fs-200);
  letter-spacing: .03em;
  white-space: nowrap;
  transition:
    color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
  opacity: .7;
}

.nav-link:hover {
  color: var(--paper);
  background: rgba(59, 240, 220, .09);
}

.nav-link[aria-current="page"] {
  color: var(--paper);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--cyan);
}

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

/* 页头行动区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* ---------- 6. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--fs-200);
  font-weight: 500;
  letter-spacing: .04em;
  white-space: nowrap;
  text-decoration: none;
  transition:
    transform var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.btn-primary {
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 0 14px 34px -18px rgba(59, 240, 220, .9);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px -18px rgba(59, 240, 220, 1);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--stroke);
}

.btn-ghost:hover {
  color: var(--violet);
  border-color: var(--violet);
  transform: translateY(-2px);
}

.btn-lime {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 14px 34px -18px rgba(184, 255, 60, .8);
}

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

/* 移动导航开关 */
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--paper);
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ---------- 7. 面板 / 堆叠面板 ---------- */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 3vw, 36px);
}

.panel--raised {
  box-shadow: 0 44px 84px -54px rgba(0, 0, 0, .95);
}

.panel--accent {
  border-color: rgba(59, 240, 220, .5);
  box-shadow: inset 0 0 0 1px rgba(59, 240, 220, .14);
}

.panel--invert {
  background: var(--paper);
  color: var(--midnight);
  border-color: var(--paper);
}

.panel--invert .eyebrow,
.panel--invert .chapter-no { color: #3A4A73; }

.panel--invert .tag {
  background: rgba(10, 20, 48, .07);
  color: #2B3A61;
  border-color: rgba(10, 20, 48, .18);
}

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

/* ---------- 8. 标签胶囊 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--pill);
  border: 1px solid rgba(138, 107, 255, .35);
  background: rgba(138, 107, 255, .14);
  color: #C4B4FF;
  font-size: var(--fs-100);
  font-weight: 500;
  letter-spacing: .08em;
  white-space: nowrap;
}

.tag--cyan {
  background: rgba(59, 240, 220, .12);
  border-color: rgba(59, 240, 220, .35);
  color: var(--cyan);
}

.tag--lime {
  background: rgba(184, 255, 60, .12);
  border-color: rgba(184, 255, 60, .35);
  color: var(--lime);
}

.tag--amber {
  background: rgba(255, 196, 107, .12);
  border-color: rgba(255, 196, 107, .35);
  color: var(--amber);
}

/* ---------- 9. 数据指标 ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: .02em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.stat-value--cyan { color: var(--cyan); }
.stat-value--lime { color: var(--lime); }
.stat-value--amber { color: var(--amber); }

.stat-label {
  font-size: var(--fs-100);
  letter-spacing: .18em;
  color: var(--mist);
}

/* ---------- 10. 索引列表 ---------- */
.index-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--stroke);
}

.index-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 18px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--stroke);
  color: var(--paper);
  transition:
    background-color var(--dur-fast) var(--ease),
    padding-left var(--dur-fast) var(--ease);
}

.index-row:hover {
  background: rgba(59, 240, 220, .06);
  padding-left: 12px;
}

.index-key {
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--cyan);
}

.index-name {
  font-size: var(--fs-300);
  letter-spacing: .02em;
}

.index-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  letter-spacing: .04em;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
}

/* ---------- 11. 面包屑 / 正文 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 20px;
  font-size: var(--fs-100);
  letter-spacing: .1em;
  color: var(--mist);
}

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

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

.breadcrumb a { color: var(--mist); }
.breadcrumb a:hover { color: var(--cyan); }

.prose { max-width: 34em; }

.prose p { margin-bottom: 1.2em; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 { margin: 1.8em 0 .6em; }
.prose h3:first-child { margin-top: 0; }

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(59, 240, 220, .4);
}

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

/* ---------- 12. 图片容器基础规则 ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  background-image:
    linear-gradient(135deg, rgba(59, 240, 220, .10), rgba(138, 107, 255, .13) 55%, rgba(5, 11, 27, .35)),
    linear-gradient(0deg, var(--panel), var(--panel));
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--wide { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--portrait { aspect-ratio: 3 / 4; }

.media-caption {
  display: block;
  margin-top: 10px;
  font-size: var(--fs-100);
  letter-spacing: .1em;
  color: var(--mist);
}

.media-gate::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(48px, 7vw, 76px);
  aspect-ratio: 2 / 3;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(59, 240, 220, .5);
  border-bottom: 0;
  border-radius: var(--pill) var(--pill) 0 0;
  pointer-events: none;
}

/* ---------- 13. 门形留白 ---------- */
.gate-space {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(120px, 18vw, 220px);
}

.gate-space::before {
  content: "";
  width: clamp(84px, 11vw, 140px);
  aspect-ratio: 2 / 3;
  border: 1px solid var(--stroke);
  border-bottom: 0;
  border-radius: var(--pill) var(--pill) 0 0;
}

/* ---------- 14. 12 栏网格 ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}

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

/* ---------- 15. 滚动显现协议 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* ---------- 16. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 140px);
  border-top: 1px solid var(--stroke);
  background-image: linear-gradient(180deg, rgba(10, 20, 48, .92), rgba(5, 11, 27, .99));
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  width: clamp(90px, 12vw, 140px);
  aspect-ratio: 2 / 1;
  transform: translate(-50%, -100%);
  border: 1px solid var(--stroke);
  border-bottom: 0;
  border-radius: var(--pill) var(--pill) 0 0;
  background: var(--midnight);
  pointer-events: none;
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(250px, 1.3fr) minmax(0, 2.1fr) minmax(220px, 1.1fr);
  gap: clamp(28px, 4vw, 64px);
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: clamp(40px, 5vw, 72px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-radius: var(--radius-sm);
}

.footer-note {
  font-size: var(--fs-200);
  line-height: 1.8;
  letter-spacing: .02em;
  color: var(--mist);
  max-width: 30em;
}

.footer-cta { margin-top: 4px; }

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

.footer-col { display: flex; flex-direction: column; }

.footer-col-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--mist);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  display: inline-block;
  padding: 6px 0;
  font-size: var(--fs-200);
  letter-spacing: .03em;
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.footer-list a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(59, 240, 220, .5);
}

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

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

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-label {
  font-size: var(--fs-100);
  letter-spacing: .18em;
  color: var(--mist);
}

.footer-value {
  font-size: var(--fs-200);
  line-height: 1.7;
  color: var(--paper);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid var(--stroke);
  font-size: var(--fs-100);
  letter-spacing: .08em;
  color: var(--mist);
}

.footer-base-note { max-width: none; }

.footer-base-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.footer-base a { color: var(--mist); }
.footer-base a:hover { color: var(--cyan); }

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1279px) {
  .brand-tag { display: none; }
  .header-actions .btn-ghost { display: none; }
  .nav-link { padding: 0 10px; }
}

@media (max-width: 1023px) {
  :root { --header-h: 65px; }

  .header-bar { display: none; }
  .header-inner { height: 64px; gap: 12px; }

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

  .main-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    bottom: 0;
    margin: 0;
    padding: 24px var(--gutter) 48px;
    overflow-y: auto;
    background: rgba(5, 11, 27, .98);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--stroke);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity var(--dur-fast) var(--ease),
      transform var(--dur-fast) var(--ease),
      visibility var(--dur-fast) linear;
  }

  .main-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

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

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 18px;
    font-size: var(--fs-300);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-sm);
    background: var(--panel);
  }

  .nav-index {
    font-size: var(--fs-100);
    opacity: 1;
    color: var(--cyan);
  }

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

  .footer-brand { grid-column: 1 / -1; }

  .footer-columns { grid-column: 1 / -1; }

  .footer-contact { grid-column: 1 / -1; }

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

@media (max-width: 767px) {
  .header-meta,
  .header-coord { letter-spacing: .08em; }

  .btn { padding: 0 16px; }

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

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

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

  .grid-12 { gap: 14px; }
}

@media (max-width: 420px) {
  .header-actions .btn-primary { padding: 0 14px; font-size: var(--fs-100); }
  .footer-columns { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 18. 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;
    transition-delay: 0ms !important;
  }

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

  .progress-rail { transition: none; }
}
