/* ============================================================
   明博体育 · 共享站点样式 /assets/site.css
   ============================================================ */

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

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

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

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

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

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

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

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

summary { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

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

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #061A15;
  --panel: #0C2B22;
  --panel-2: #0F3329;
  --plateau: #144034;
  --lime: #C8FF4D;
  --lime-mist: #E6FFB4;
  --amber: #F2A93B;
  --slate: #8FA6B8;
  --slate-lt: #CFDAE4;
  --indigo: #241F4A;
  --wine: #5A1E33;
  --porcelain: #F4F7F1;
  --ice: #A9D8E6;
  --chrome: #09221B;
  --line: rgba(143, 166, 184, 0.30);
  --line-soft: rgba(143, 166, 184, 0.16);
  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 40px;
  --rail: 96px;
  --masthead-h: 72px;
  --shell: 1320px;
  --gutter: clamp(18px, 3.4vw, 44px);
  --font-display: 'Barlow Condensed', 'Oswald', 'Source Han Sans SC', 'Noto Sans SC', system-ui, sans-serif;
  --font-serif: 'Noto Serif SC', 'Songti SC', 'Source Han Serif SC', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- 3. Base ---------- */
body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--porcelain);
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(112deg, rgba(169, 216, 230, 0.050) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(64deg, rgba(169, 216, 230, 0.028) 0 1px, transparent 1px 46px),
    radial-gradient(120% 78% at 84% -12%, rgba(36, 31, 74, 0.55), transparent 62%);
  overflow-x: clip;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 6vw, 92px); line-height: 0.95; }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; }
h3 { font-size: clamp(19px, 2vw, 24px); line-height: 1.35; }
h4 { font-size: 17px; line-height: 1.45; letter-spacing: 0.02em; }

p { text-wrap: pretty; }
strong { font-weight: 700; color: var(--lime-mist); }

main { display: block; }

#main-content { scroll-margin-top: calc(var(--masthead-h) + 20px); }

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

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 300;
  transform: translate(-50%, -160%);
  padding: 12px 24px;
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  background: var(--lime);
  color: #08210F;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: transform 0.22s var(--ease);
}

.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- 5. Header ---------- */
.site-header {
  position: relative;
  z-index: 70;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 72;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  height: var(--masthead-h);
  padding: 0 var(--gutter);
  background: var(--chrome);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(12px) saturate(1.3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand__glyph {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-s);
  background: linear-gradient(150deg, var(--lime), #7DD82B);
  color: #08210F;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow: 0 0 0 1px rgba(200, 255, 77, 0.35), 0 10px 26px -14px rgba(200, 255, 77, 0.95);
}

.brand__type { display: flex; flex-direction: column; line-height: 1.12; }

.brand__name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--porcelain);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--slate);
  text-transform: uppercase;
}

.masthead__tagline {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--lime-mist);
  padding-left: 16px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}

.masthead__tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.refresh-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--slate-lt);
  white-space: nowrap;
}

.refresh-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 255, 77, 0.18);
  animation: chipPulse 2.8s ease-in-out infinite;
}

@keyframes chipPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.82); }
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.18s var(--ease),
              background-color 0.18s var(--ease),
              color 0.18s var(--ease),
              border-color 0.18s var(--ease);
}

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

.btn--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: #08210F;
}
.btn--lime:hover { background: var(--lime-mist); border-color: var(--lime-mist); }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--porcelain);
}
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }

.btn--amber {
  background: var(--amber);
  border-color: var(--amber);
  color: #2A1602;
}
.btn--amber:hover { background: #FFC066; border-color: #FFC066; }

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

/* ---------- 7. Nav toggle ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--porcelain);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.24s var(--ease), opacity 0.24s var(--ease);
}

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

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

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

/* ---------- 8. Rail nav (desktop) ---------- */
.site-nav {
  position: fixed;
  top: var(--masthead-h);
  left: 0;
  bottom: 0;
  z-index: 71;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 8px 14px;
  background: var(--chrome);
  border-right: 1px solid var(--line-soft);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.site-nav__caption {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--slate);
  text-align: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  margin: 0 auto 4px;
  transform: rotate(180deg);
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
}

.site-nav__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 13px 4px;
  border-radius: var(--radius-s);
  color: var(--slate-lt);
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease);
}

.site-nav__index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--slate);
  transition: color 0.22s var(--ease);
}

.site-nav__label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
}

.site-nav__link:hover {
  background: rgba(200, 255, 77, 0.08);
  color: var(--lime-mist);
}

.site-nav__link:hover .site-nav__index { color: var(--lime-mist); }

.site-nav__link[aria-current="page"] {
  background: linear-gradient(180deg, rgba(200, 255, 77, 0.20), rgba(200, 255, 77, 0.05));
  color: var(--lime);
  box-shadow: inset 0 0 0 1px rgba(200, 255, 77, 0.40);
}

.site-nav__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 3px;
  background: var(--lime);
}

.site-nav__link[aria-current="page"] .site-nav__index { color: var(--lime); }

.site-nav__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.site-nav__foot .btn {
  padding: 14px 9px;
  font-size: 12px;
  letter-spacing: 0.06em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.site-nav__note {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--slate);
  text-align: center;
}

.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 86;
  background: rgba(6, 26, 21, 0.74);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

/* ---------- 9. Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 130;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--amber) 70%, var(--wine));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
  will-change: transform;
}

/* ---------- 10. Layout utilities ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-body { padding-block: clamp(24px, 4vw, 56px); }

.section { padding-block: clamp(36px, 5.5vw, 80px); }

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

.section-head__title { font-family: var(--font-display); }
.section-head__note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--slate);
  max-width: 46ch;
}

.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(--amber);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}

.lede {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.8;
  color: var(--lime-mist);
  max-width: 62ch;
}

.rule {
  height: 1px;
  border: 0;
  background: var(--line-soft);
  margin-block: clamp(24px, 3vw, 40px);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 30px);
  grid-template-columns: 1fr;
}

.grid--asym,
.grid--wide { grid-template-columns: 1fr; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  padding: clamp(18px, 2.4vw, 30px);
}

.band {
  position: relative;
  border-radius: var(--radius-l);
  padding: clamp(26px, 4vw, 56px);
  background: linear-gradient(140deg, var(--plateau), var(--panel));
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

.band--indigo { background: linear-gradient(140deg, var(--indigo), #13102B); }
.band--wine { background: linear-gradient(140deg, var(--wine), #3A1421); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(12, 43, 34, 0.62);
  font-size: 13px;
  color: var(--slate-lt);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
              background-color 0.2s var(--ease);
}

.chip:hover { border-color: var(--lime); color: var(--lime-mist); }

.chip[aria-pressed="true"],
.chip.is-active {
  background: rgba(200, 255, 77, 0.12);
  border-color: var(--lime);
  color: var(--lime);
}

.metric {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--lime);
  line-height: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--slate);
}

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

.breadcrumb li + li::before {
  content: "›";
  color: var(--slate);
  opacity: 0.55;
}

.breadcrumb a { color: var(--slate-lt); transition: color 0.18s var(--ease); }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb [aria-current="page"] { color: var(--lime-mist); }

/* ---------- 11. Media frames ---------- */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-m);
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(90% 70% at 78% 8%, rgba(242, 169, 59, 0.20), transparent 62%),
    linear-gradient(160deg, rgba(20, 64, 52, 0.92), rgba(6, 26, 21, 0.98));
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 26, 21, 0.08), rgba(6, 26, 21, 0.74));
}

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

.media-frame__caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--slate-lt);
}

/* ---------- 12. Footer ---------- */
.site-footer {
  margin-top: clamp(56px, 8vw, 120px);
  position: relative;
  background: linear-gradient(180deg, #08211A, #04120E 72%);
  border-top: 1px solid var(--line-soft);
  color: var(--slate-lt);
  font-size: 14.5px;
  line-height: 1.8;
}

.site-footer::before {
  content: "";
  display: block;
  height: 6px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--line) 0 1px,
    transparent 1px 12px
  );
  opacity: 0.8;
}

.footer-shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(30px, 4.6vw, 62px) var(--gutter) clamp(22px, 3vw, 40px);
  display: grid;
  gap: clamp(26px, 3.4vw, 46px);
  grid-template-columns: 1fr;
}

.footer-brand__lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.footer-brand__glyph {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--lime);
  color: #08210F;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: var(--porcelain);
}

.footer-brand__line {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--lime-mist);
  margin-bottom: 8px;
}

.footer-brand__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--slate);
}

.footer-brand__icp {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--slate-lt);
}

.footer-col__title {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 16px;
}

.footer-nav__list { display: grid; gap: 9px; }

.footer-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--porcelain);
  transition: color 0.18s var(--ease);
}

.footer-nav__link::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--slate);
  transition: background-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.footer-nav__link:hover { color: var(--lime); }
.footer-nav__link:hover::before { background: var(--lime); transform: scale(1.5); }

.footer-contact__row {
  display: grid;
  gap: 2px;
  margin-bottom: 12px;
}

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

.footer-contact__value {
  color: var(--porcelain);
  font-size: 14.5px;
  word-break: break-word;
}

.footer-contact__note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-soft);
  font-size: 13px;
  color: var(--slate);
}

/* archive fold */
.archive {
  background: rgba(90, 30, 51, 0.18);
  border: 1px solid rgba(242, 169, 59, 0.22);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.archive__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  list-style: none;
  transition: background-color 0.2s var(--ease);
}

.archive__head::-webkit-details-marker { display: none; }
.archive__head:hover { background: rgba(242, 169, 59, 0.08); }

.archive__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--amber);
}

.archive__count {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(242, 169, 59, 0.18);
  color: var(--amber);
}

.archive__mark {
  margin-left: auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--slate);
  border-bottom: 2px solid var(--slate);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease);
}

.archive[open] .archive__mark {
  transform: rotate(225deg) translateY(-2px);
  border-color: var(--amber);
}

.archive__list { padding: 2px 0 12px; }

.archive__item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding: 9px 16px 9px 20px;
}

.archive__item::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--wine);
}

.archive__ver {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--amber);
}

.archive__desc { font-size: 13px; color: var(--slate-lt); }

.archive__date {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--slate);
}

.archive:not([open]) .archive__item:nth-child(n + 4) { display: none; }

.footer-base {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 18px var(--gutter) 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--slate);
}

.footer-base__links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-base__links a { color: var(--slate-lt); transition: color 0.18s var(--ease); }
.footer-base__links a:hover { color: var(--lime); }

/* ---------- 13. Desktop / rail breakpoint ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail); }

  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    z-index: 73;
    width: var(--rail);
    height: var(--masthead-h);
    background: var(--chrome);
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    pointer-events: none;
  }

  .grid--asym {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .grid--wide {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  }

  .footer-shell {
    grid-template-columns: 1.15fr 0.85fr 1.3fr 1.35fr;
  }
}

@media (min-width: 760px) and (max-width: 1023px) {
  .footer-shell { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 14. Mobile / tablet ---------- */
@media (max-width: 1023px) {
  .masthead {
    height: auto;
    min-height: 64px;
    gap: 10px;
    padding: 10px 16px;
  }

  .brand__sub { display: none; }
  .masthead__tagline { display: none; }
  .refresh-chip { display: none; }

  .nav-toggle { display: inline-flex; margin-left: auto; }

  .nav-scrim { display: block; }

  .site-header[data-open] .nav-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 92;
    width: auto;
    height: auto;
    max-height: 82vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 14px calc(18px + env(safe-area-inset-bottom));
    gap: 12px;
    background: #09261E;
    border-right: 0;
    border-top: 1px solid var(--line);
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -26px 60px -30px rgba(0, 0, 0, 0.9);
    transform: translateY(calc(100% + 20px));
    visibility: hidden;
    transition: transform 0.36s var(--ease), visibility 0.36s var(--ease);
  }

  .site-header[data-open] .site-nav {
    transform: translateY(0);
    visibility: visible;
  }

  .site-nav__caption {
    writing-mode: horizontal-tb;
    transform: none;
    text-align: left;
    padding: 0 8px;
    margin: 0 0 2px;
    letter-spacing: 0.28em;
  }

  .site-nav__list { flex: 0 0 auto; gap: 2px; }

  .site-nav__link {
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    padding: 13px 16px;
    border-radius: 14px;
  }

  .site-nav__label {
    writing-mode: horizontal-tb;
    font-size: 16px;
    letter-spacing: 0.1em;
  }

  .site-nav__index { font-size: 11px; }

  .site-nav__link[aria-current="page"]::before {
    left: auto;
    right: 16px;
    top: 50%;
    bottom: auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transform: translateY(-50%);
  }

  .site-nav__foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
  }

  .site-nav__foot .btn {
    writing-mode: horizontal-tb;
    padding: 11px 22px;
    font-size: 13px;
  }

  .site-nav__note { display: none; }

  html.nav-open { overflow: hidden; }
}

@media (max-width: 479px) {
  .masthead .btn--lime { display: none; }
  .brand__name { font-size: 19px; }
  .brand__glyph { width: 36px; height: 36px; font-size: 20px; }
}

/* ---------- 15. Motion preferences ---------- */
@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;
  }

  .refresh-chip::before { animation: none; }
  .scroll-progress { display: none; }
  .site-nav { transition: none; }
}
