/* ==========================================================================
   华体会看台 · 共享站点样式 /assets/site.css
   母题：夜赛看台指挥中心 —— 球场夜色底 / 草皮绿结构线 / 灯光黄操作层
   ========================================================================== */

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

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

body { margin: 0; }

h1, h2, h3, h4, h5, p, figure, blockquote { margin: 0; }

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

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

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

a { color: inherit; }

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

/* ---------- 2. Tokens ---------- */
:root {
  /* 底色层 */
  --ink-950: #0B1524;
  --ink-900: #111F33;
  --ink-800: #16263D;
  --turf-900: #1E3A2F;

  /* 主色与强调 */
  --turf-600: #2FA36B;
  --turf-300: #8FE388;
  --amp: #FFD447;
  --live: #FF7A1A;
  --aqua: #37E0C4;

  /* 文字与结构线 */
  --paper: #F2F5F7;
  --muted: #8A98A8;
  --line: #D8E0E8;
  --line-soft: rgba(216, 224, 232, 0.12);
  --line-mid: rgba(216, 224, 232, 0.2);

  /* 字体 */
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "Roboto Mono", "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  /* 字号阶梯 */
  --step--1: 0.8125rem;
  --step-0: clamp(1rem, 0.95rem + 0.22vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --step-3: clamp(1.85rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.2vw, 3.5rem);
  --step-5: clamp(2.9rem, 1.6rem + 5.4vw, 4.6rem);

  /* 结构 */
  --shell: 1240px;
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. Base ---------- */
body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--paper);
  background-color: var(--ink-950);
  background-image:
    radial-gradient(1100px 520px at 84% -10%, rgba(47, 163, 107, 0.22), transparent 62%),
    radial-gradient(760px 460px at 0% 4%, rgba(55, 224, 196, 0.1), transparent 58%),
    radial-gradient(900px 700px at 52% 118%, rgba(255, 212, 71, 0.07), transparent 60%);
  background-repeat: no-repeat;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

#main-content {
  display: block;
  scroll-margin-top: 9rem;
}

/* ---------- 4. Utilities ---------- */
.shell {
  width: min(var(--shell), calc(100% - clamp(1.5rem, 5vw, 4rem)));
  margin-inline: auto;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aqua);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--turf-600);
  border-radius: 2px;
}

.display {
  font-size: var(--step-4);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.section {
  padding-block: clamp(2rem, 5vw, 3.6rem);
}

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.6rem;
  z-index: 300;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--amp);
  color: var(--ink-950);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  transform: translateY(-240%);
  transition: transform 0.2s var(--ease);
}

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

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 21, 36, 0.94);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.24s var(--ease);
}

.site-header[data-open] {
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.6);
}

.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(216, 224, 232, 0.08);
  pointer-events: none;
  z-index: 2;
}

.scroll-meter__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--turf-600), var(--aqua) 55%, var(--amp));
  transition: width 0.1s linear;
}

/* 刊头 */
.masthead {
  position: relative;
}

.masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 163, 107, 0.55), rgba(255, 212, 71, 0.45), transparent);
}

.masthead__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.35rem 1.25rem;
  padding-block: clamp(0.55rem, 1.4vw, 0.95rem);
}

.masthead__meta {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 0;
}

.masthead__meta .mono {
  color: var(--turf-300);
  border: 1px solid rgba(143, 227, 136, 0.34);
  border-radius: 999px;
  padding: 0.08rem 0.5rem;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
}

.masthead__meta--right {
  justify-self: end;
}

.masthead__year {
  color: var(--amp);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.masthead__core {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  min-width: 0;
}

.masthead__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  padding: 0.1rem 0.3rem;
  border-radius: var(--radius-sm);
}

.masthead__mark {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--turf-300);
  border: 1px solid rgba(143, 227, 136, 0.4);
  border-radius: 4px;
  padding: 0.1rem 0.34rem;
  transform: rotate(-1.6deg);
  background: rgba(47, 163, 107, 0.14);
}

.masthead__name {
  display: inline-block;
  font-size: clamp(1.3rem, 0.95rem + 1.6vw, 1.95rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: var(--paper);
  transform: rotate(-1.3deg);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .masthead__name {
    background: linear-gradient(100deg, #F2F5F7 28%, #8FE388 76%, #FFD447 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
  }
}

.masthead__tagline {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-align: center;
}

/* ---------- 7. Navigation ---------- */
.nav-bar {
  position: relative;
  background: linear-gradient(180deg, rgba(17, 31, 51, 0.78), rgba(11, 21, 36, 0.5));
  border-top: 1px solid rgba(216, 224, 232, 0.08);
}

.nav-bar__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding-block: 0.35rem;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.1rem, 0.8vw, 0.9rem);
  flex-wrap: nowrap;
}

.site-nav__link {
  display: inline-block;
  padding: 0.46rem 0.72rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(242, 245, 247, 0.86);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.site-nav__link:hover {
  color: var(--amp);
  border-color: rgba(255, 212, 71, 0.34);
  background: rgba(255, 212, 71, 0.08);
}

.site-nav__link[aria-current="page"] {
  color: var(--ink-950);
  background: var(--amp);
  border-color: var(--amp);
  font-weight: 800;
  box-shadow: 0 0 0 3px rgba(255, 212, 71, 0.14), 0 6px 16px rgba(255, 212, 71, 0.18);
}

.site-nav__link[aria-current="page"]:hover {
  color: var(--ink-950);
  background: var(--amp);
}

.nav-cta {
  flex: 0 0 auto;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.85rem 0.42rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(143, 227, 136, 0.36);
  background: rgba(47, 163, 107, 0.16);
  color: var(--paper);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-toggle:hover {
  background: rgba(47, 163, 107, 0.26);
  border-color: var(--turf-300);
}

.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 18px;
}

.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--turf-300);
  transition: transform 0.2s var(--ease), opacity 0.16s var(--ease);
}

.nav-toggle__label {
  line-height: 1;
}

.site-header[data-open] .nav-toggle__bars i:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.site-header[data-open] .nav-toggle__bars i:nth-child(2) {
  opacity: 0;
}

.site-header[data-open] .nav-toggle__bars i:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ---------- 8. Buttons ---------- */
.btn {
  --btn-bg: var(--amp);
  --btn-fg: var(--ink-950);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 212, 71, 0.18);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease),
    background-color 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 212, 71, 0.26);
}

.btn:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: 0 2px 8px rgba(255, 212, 71, 0.3);
}

.btn--amp {
  --btn-bg: var(--amp);
  --btn-fg: var(--ink-950);
}

.btn--line {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  border-color: rgba(143, 227, 136, 0.45);
  box-shadow: none;
}

.btn--line:hover {
  background: rgba(47, 163, 107, 0.16);
  border-color: var(--turf-300);
  box-shadow: none;
}

.btn--sm {
  padding: 0.42rem 0.88rem;
  font-size: 0.8125rem;
}

/* ---------- 9. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 6rem);
  background:
    linear-gradient(180deg, rgba(30, 58, 47, 0.6) 0%, rgba(17, 31, 51, 0.94) 30%, var(--ink-950) 100%);
  border-top: 1px solid var(--line-soft);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--turf-600), var(--aqua) 46%, var(--amp));
  opacity: 0.85;
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  padding-block: clamp(2.2rem, 5vw, 3.8rem);
}

.foot-brand__mark {
  display: inline-block;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.65rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--paper);
  transform: rotate(-1.1deg);
  transform-origin: left center;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

.foot-brand__line {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--turf-300);
}

.foot-brand__note {
  margin-top: 0.9rem;
  max-width: 34ch;
  font-size: 0.8125rem;
  line-height: 1.75;
  color: var(--muted);
}

.foot-contact {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.35rem;
  font-size: 0.8125rem;
}

.foot-contact__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 0.75rem;
  color: rgba(242, 245, 247, 0.88);
  overflow-wrap: anywhere;
}

.foot-contact__key {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aqua);
  border: 1px solid rgba(55, 224, 196, 0.3);
  border-radius: 4px;
  padding: 0.05rem 0.38rem;
  white-space: nowrap;
}

.foot-menus {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.foot-col {
  min-width: 0;
}

.foot-col__title {
  position: relative;
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px dashed var(--line-mid);
}

.foot-col__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 30px;
  height: 2px;
  background: var(--turf-600);
}

.foot-list {
  display: grid;
  gap: 0.55rem;
}

.foot-list__link {
  font-size: 0.9rem;
  color: rgba(242, 245, 247, 0.85);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.foot-list__link:hover {
  color: var(--amp);
  border-bottom-color: rgba(255, 212, 71, 0.5);
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-block: 1.1rem 1.7rem;
  border-top: 1px solid rgba(216, 224, 232, 0.1);
  font-size: 0.78rem;
  color: var(--muted);
}

.foot-bottom__copy {
  letter-spacing: 0.03em;
}

.foot-bottom__legal {
  letter-spacing: 0.12em;
  color: rgba(138, 152, 168, 0.92);
}

/* ---------- 10. Content components ---------- */
.crumbs {
  padding-block: 1rem 0.25rem;
}

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.crumbs__list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.crumbs__list li + li::before {
  content: "/";
  color: rgba(138, 152, 168, 0.55);
}

.crumbs__link {
  color: rgba(242, 245, 247, 0.82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.crumbs__link:hover {
  color: var(--amp);
  border-bottom-color: rgba(255, 212, 71, 0.45);
}

.prose {
  max-width: 72ch;
}

.prose > :first-child {
  margin-top: 0;
}

.prose p {
  margin-top: 1em;
  color: rgba(242, 245, 247, 0.88);
}

.prose h2 {
  margin-top: 2.1em;
  font-size: var(--step-2);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.prose h3 {
  margin-top: 1.7em;
  font-size: var(--step-1);
  font-weight: 800;
  line-height: 1.35;
}

.prose ul,
.prose ol {
  margin-top: 1em;
  padding-left: 1.4em;
}

.prose ul { list-style: square; }
.prose ol { list-style: decimal; }

.prose li {
  margin-top: 0.4em;
  color: rgba(242, 245, 247, 0.88);
}

.prose a {
  color: var(--aqua);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose--tight {
  max-width: 58ch;
}

.lede {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.75;
  color: rgba(242, 245, 247, 0.92);
}

.grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.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; }

/* 图片容器基础规则（页面阶段填充 img） */
.media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(140deg, var(--ink-800) 0%, var(--turf-900) 58%, var(--ink-950) 100%);
  aspect-ratio: 16 / 10;
}

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

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 21, 36, 0.06) 20%, rgba(11, 21, 36, 0.74) 100%);
  pointer-events: none;
}

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

.media--tilt {
  clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 96%);
  border-radius: 0;
}

.media__fig {
  margin: 0;
}

.media__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 245, 247, 0.86);
}

.panel {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 2.4vw, 1.75rem);
  background: linear-gradient(160deg, rgba(17, 31, 51, 0.95), rgba(11, 21, 36, 0.9));
}

.panel--glass {
  background: rgba(17, 31, 51, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  border-color: rgba(55, 224, 196, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(242, 245, 247, 0.06),
    0 20px 40px rgba(0, 0, 0, 0.35);
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed var(--line-mid);
}

.stat {
  display: grid;
  gap: 0.15rem;
  font-family: var(--font-mono);
}

.stat__num {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--amp);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(216, 224, 232, 0.28);
  background: rgba(216, 224, 232, 0.06);
  color: rgba(242, 245, 247, 0.9);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag--live {
  background: var(--live);
  border-color: var(--live);
  color: var(--ink-950);
  font-weight: 700;
}

.tag--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-950);
  animation: pulse 1.8s var(--ease) infinite;
}

.tag--beta {
  background: var(--turf-300);
  border-color: var(--turf-300);
  color: var(--ink-950);
  font-weight: 700;
}

.tag--ghost {
  background: rgba(55, 224, 196, 0.08);
  border-color: rgba(55, 224, 196, 0.4);
  color: var(--aqua);
}

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

/* ---------- 11. Reveal ---------- */
[data-reveal] {
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

[data-js="on"] [data-reveal]:not([data-reveal="in"]) {
  opacity: 0;
  transform: translateY(18px);
}

[data-reveal="in"] {
  opacity: 1;
  transform: none;
}

/* ---------- 12. Responsive ---------- */
@media (max-width: 900px) {
  #main-content { scroll-margin-top: 7rem; }

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

  .nav-bar__inner {
    justify-content: space-between;
    gap: 0.5rem;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    display: none;
    flex: 0 0 auto;
    padding: 0.5rem clamp(0.75rem, 4vw, 1.5rem) 1.1rem;
    background: var(--ink-950);
    border-top: 1px solid rgba(216, 224, 232, 0.1);
    border-bottom: 1px solid rgba(216, 224, 232, 0.16);
    box-shadow: 0 26px 44px rgba(0, 0, 0, 0.55);
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
  }

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

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav__link {
    display: block;
    padding: 0.8rem 0.9rem;
    border-radius: 10px;
    font-size: 1rem;
  }

  .site-nav__link[aria-current="page"] {
    box-shadow: none;
  }

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

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .masthead__inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 0.15rem;
    padding-block: 0.6rem;
  }

  .masthead__meta {
    display: none;
  }

  .masthead__tagline {
    letter-spacing: 0.12em;
  }
}

@media (max-width: 600px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .foot-menus {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .foot-bottom {
    justify-content: flex-start;
  }

  .btn--sm {
    padding: 0.38rem 0.72rem;
    font-size: 0.76rem;
  }
}

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

  [data-js="on"] [data-reveal]:not([data-reveal="in"]) {
    opacity: 1;
    transform: none;
  }

  .scroll-meter__bar { transition: none; }
}
