/* =========================================================
   616玩家站 · /assets/site.css
   共享外壳：深空战术面板 / Bento 模块 / 档案夹结构
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
  background: #050B18;
}

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

ul, ol { 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; text-decoration: none; }
table { border-collapse: collapse; }
p { text-wrap: pretty; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink-void: #050B18;
  --ink-hull: #0D1A2E;
  --line-blue: #1D2C46;
  --neon-violet: #8B5CF6;
  --electric-cyan: #22D3EE;
  --alert-orange: #FF7A1A;
  --wine: #3B1024;
  --indigo: #1B1440;
  --ink-text: #E8EEF7;
  --ink-mist: #93A6C4;
  --ok-green: #34D399;

  --font-display: "Archivo Narrow", "Oswald", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --rail-w: 250px;
  --pad-x: 64px;
  --content-max: 1320px;
  --gap: 24px;
  --radius: 14px;
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  background-color: var(--ink-void);
  color: var(--ink-text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(760px 520px at 84% -10%, rgba(139, 92, 246, 0.18), transparent 70%),
    radial-gradient(680px 480px at 10% 106%, rgba(34, 211, 238, 0.12), transparent 72%);
}

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

main,
.site-header,
.site-footer { position: relative; z-index: 1; }

main { display: block; }

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

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

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

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--electric-cyan);
  color: #04121A;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline-color: var(--neon-violet);
}

/* ---------- 5. Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: 2px;
  z-index: 95;
  pointer-events: none;
  background: rgba(29, 44, 70, 0.55);
}

.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-violet), var(--electric-cyan) 62%, var(--alert-orange));
}

/* ---------- 6. Mobile nav toggle ---------- */
.nav-toggle {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 90;
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid var(--line-blue);
  border-radius: 999px;
  background: rgba(13, 26, 46, 0.96);
  color: var(--ink-text);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

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

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 14px;
  height: 10px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-4.25px) rotate(-45deg); }

.nav-toggle__label { font-family: var(--font-mono); }

/* ---------- 7. Nav rail ---------- */
.nav-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  width: var(--rail-w);
  padding: 22px 16px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, #070F1F 0%, #050B18 100%);
  border-right: 1px solid var(--line-blue);
}

.nav-rail__spine {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 2px 10px 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-blue);
}

.nav-rail__spine-mark {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--electric-cyan);
}

.nav-rail__spine-text {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mist);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
}

.nav-list__item { display: block; }

.nav-link {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 14px;
  border-radius: 8px;
  color: var(--ink-mist);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 3px;
  transform: translateY(-50%);
  background: linear-gradient(180deg, var(--neon-violet), var(--electric-cyan));
  transition: height 0.18s ease;
}

.nav-link:hover {
  background: rgba(139, 92, 246, 0.11);
  color: var(--ink-text);
}

.nav-link:hover::before { height: 58%; }

.nav-link[aria-current="page"] {
  background: rgba(34, 211, 238, 0.1);
  color: var(--ink-text);
}

.nav-link[aria-current="page"]::before { height: 78%; }

.nav-link__index {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--neon-violet);
}

.nav-link__label {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-link__meter {
  position: relative;
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--line-blue);
  overflow: hidden;
}

.nav-link__meter::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--fill, 40%);
  border-radius: 2px;
  background: linear-gradient(90deg, var(--neon-violet), var(--electric-cyan));
}

.nav-rail__foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 10px 0;
  border-top: 1px solid var(--line-blue);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mist);
}

/* ---------- 8. Nav scrim ---------- */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 75;
  background: rgba(3, 7, 15, 0.76);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.nav-scrim[data-open] {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 861px) {
  .nav-scrim { display: none; }
}

/* ---------- 9. Masthead ---------- */
.masthead {
  padding: 18px var(--pad-x) 16px;
  border-bottom: 1px solid var(--line-blue);
  background: linear-gradient(180deg, rgba(13, 26, 46, 0.72), rgba(5, 11, 24, 0.4));
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  max-width: var(--content-max);
  margin-inline: auto;
}

.masthead__brand {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.masthead__brand a { transition: color 0.18s ease; }
.masthead__brand a:hover { color: var(--electric-cyan); }

.masthead__scope {
  flex: 1 1 300px;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-mist);
  letter-spacing: 0.02em;
}

.masthead__stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--alert-orange);
  white-space: nowrap;
}

.masthead__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--alert-orange);
  box-shadow: 0 0 0 0 rgba(255, 122, 26, 0.5);
  animation: masthead-pulse 2.6s ease-out infinite;
}

@keyframes masthead-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 122, 26, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 122, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 122, 26, 0); }
}

/* ---------- 10. Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: 64px; }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  margin-bottom: 28px;
}

/* ---------- 11. Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-violet);
}

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

.h-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 6.6vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.16;
  letter-spacing: -0.015em;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.32;
  letter-spacing: 0;
}

.lede {
  max-width: 66ch;
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink-mist);
}

/* ---------- 12. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid var(--line-blue);
  border-radius: 999px;
  background: rgba(13, 26, 46, 0.92);
  color: var(--ink-text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
              background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--neon-violet);
  box-shadow: 0 12px 28px rgba(4, 10, 22, 0.72);
}

.btn--primary {
  border-color: transparent;
  background: linear-gradient(120deg, var(--neon-violet), var(--electric-cyan));
  color: #04101C;
  font-weight: 800;
}

.btn--primary:hover { border-color: transparent; }

.btn--ghost { background: transparent; }

.btn--alert {
  border-color: rgba(255, 122, 26, 0.55);
  color: var(--alert-orange);
  background: rgba(255, 122, 26, 0.08);
}

/* ---------- 13. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mist);
}

.breadcrumb a { transition: color 0.16s ease; }
.breadcrumb a:hover { color: var(--electric-cyan); }
.breadcrumb__sep { color: var(--line-blue); }
.breadcrumb [aria-current="page"] { color: var(--neon-violet); }

/* ---------- 14. Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.bento__cell {
  grid-column: span 4;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(13, 26, 46, 0.94), rgba(9, 18, 34, 0.72));
}

.bento__cell--3 { grid-column: span 3; }
.bento__cell--4 { grid-column: span 4; }
.bento__cell--5 { grid-column: span 5; }
.bento__cell--7 { grid-column: span 7; }
.bento__cell--8 { grid-column: span 8; }
.bento__cell--full { grid-column: span 12; }

/* ---------- 15. Panel ---------- */
.panel {
  padding: 24px;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius);
  background: var(--ink-hull);
}

/* ---------- 16. Tag ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--line-blue);
  border-radius: 999px;
  background: rgba(29, 44, 70, 0.35);
  color: var(--ink-mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  white-space: nowrap;
}

.tag--violet { color: #D9CBFF; border-color: rgba(139, 92, 246, 0.5); background: rgba(139, 92, 246, 0.16); }
.tag--cyan   { color: #B9F3FB; border-color: rgba(34, 211, 238, 0.5); background: rgba(34, 211, 238, 0.14); }
.tag--alert  { color: #FFD2AE; border-color: rgba(255, 122, 26, 0.5); background: rgba(255, 122, 26, 0.15); }
.tag--ok     { color: #B8F2DA; border-color: rgba(52, 211, 153, 0.5); background: rgba(52, 211, 153, 0.14); }

/* ---------- 17. Stat ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mist);
}

/* ---------- 18. Slash band ---------- */
.slash {
  padding: 64px var(--pad-x);
  background: var(--slash-tint, var(--indigo));
  clip-path: polygon(0 32px, 100% 0, 100% calc(100% - 32px), 0 100%);
}

.slash--indigo { --slash-tint: var(--indigo); }
.slash--wine { --slash-tint: var(--wine); }

/* ---------- 19. Fold ---------- */
.fold { border-top: 1px solid var(--line-blue); }
.fold:last-child { border-bottom: 1px solid var(--line-blue); }

.fold__head { margin: 0; }

.fold__trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 4px;
  color: var(--ink-text);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: left;
  cursor: pointer;
  transition: color 0.16s ease;
}

.fold__trigger:hover { color: var(--electric-cyan); }

.fold__index {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--neon-violet);
}

.fold__sign {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--neon-violet);
  transition: transform 0.2s ease;
}

.fold__trigger[aria-expanded="true"] .fold__sign { transform: rotate(45deg); }

.fold__body {
  padding: 0 4px 20px;
  color: var(--ink-mist);
}

.fold__body[hidden] { display: none; }

/* ---------- 20. Data table ---------- */
.data-table {
  width: 100%;
  font-size: 14.5px;
  line-height: 1.65;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line-blue);
  vertical-align: top;
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mist);
  white-space: nowrap;
}

.data-table td.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.data-table tbody tr { transition: background-color 0.16s ease; }
.data-table tbody tr:hover { background: rgba(139, 92, 246, 0.08); }

/* ---------- 21. Media frame ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius);
  background: var(--ink-hull);
}

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

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

.media-frame__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(232, 238, 247, 0.05) 0 1px, transparent 1px 4px);
}

.media-frame__ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mist);
  background: repeating-linear-gradient(135deg, rgba(29, 44, 70, 0.6) 0 10px, rgba(13, 26, 46, 0.6) 10px 20px);
}

/* ---------- 22. Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 23. Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 92;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid rgba(34, 211, 238, 0.42);
  border-radius: 999px;
  background: rgba(9, 18, 34, 0.94);
  color: var(--electric-cyan);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease, border-color 0.18s ease;
}

.back-to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover { border-color: var(--electric-cyan); }

/* ---------- 24. Footer ---------- */
.site-footer {
  margin-top: 0;
  border-top: 1px solid var(--line-blue);
  background: linear-gradient(180deg, rgba(13, 26, 46, 0.55), rgba(5, 11, 24, 1) 62%);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.95fr;
  gap: 40px 48px;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 56px var(--pad-x) 40px;
}

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

.footer-sheet__title {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-blue);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-violet);
}

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

.footer-index a {
  font-size: 14.5px;
  color: var(--ink-mist);
  transition: color 0.16s ease;
}

.footer-index a:hover { color: var(--electric-cyan); }

.footer-index--sub {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-blue);
}

.footer-data {
  display: grid;
  gap: 14px;
}

.footer-data__row {
  display: grid;
  gap: 3px;
}

.footer-data__term {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mist);
}

.footer-data__desc {
  font-size: 14.5px;
  color: var(--ink-text);
  word-break: break-word;
}

.footer-data__desc.mono { font-variant-numeric: tabular-nums; }

.footer-legal p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-mist);
}

.footer-legal p + p { margin-top: 10px; }

.footer-legal p.mono {
  font-size: 13px;
  color: var(--ink-text);
  letter-spacing: 0.1em;
}

.footer-legal__sig { color: var(--neon-violet); }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 18px var(--pad-x) 30px;
  border-top: 1px solid var(--line-blue);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-mist);
}

/* ---------- 25. Responsive ---------- */
@media (max-width: 1180px) {
  :root {
    --rail-w: 214px;
    --pad-x: 40px;
  }
}

@media (max-width: 1024px) {
  .bento__cell,
  .bento__cell--3,
  .bento__cell--4,
  .bento__cell--5 { grid-column: span 6; }

  .bento__cell--7,
  .bento__cell--8 { grid-column: span 12; }

  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root {
    --rail-w: 0px;
    --pad-x: 20px;
    --gap: 18px;
  }

  body { padding-left: 0; }

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

  .nav-rail {
    width: min(82vw, 320px);
    transform: translateX(-102%);
    transition: transform 0.26s cubic-bezier(0.2, 0.7, 0.2, 1);
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.22), 26px 0 64px rgba(0, 0, 0, 0.62);
  }

  .nav-rail[data-open] { transform: translateX(0); }

  .masthead { padding: 62px var(--pad-x) 14px; }
  .masthead__inner { gap: 6px 14px; }
  .masthead__brand { font-size: 19px; }
  .masthead__scope { display: none; }
  .masthead__stamp { margin-left: auto; font-size: 10.5px; letter-spacing: 0.08em; }

  .section { padding-block: 44px; }
  .slash { padding: 52px var(--pad-x); clip-path: polygon(0 20px, 100% 0, 100% calc(100% - 20px), 0 100%); }

  .back-to-top { right: 14px; bottom: 14px; padding: 10px 14px; }
}

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

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

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px var(--pad-x) 28px;
  }

  .footer-index { grid-template-columns: 1fr; }

  .data-table { font-size: 13.5px; }
  .data-table th,
  .data-table td { padding: 10px 8px; }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .back-to-top {
    transform: none;
  }
}
