/* ============================================================
   /assets/site.css — 01体育 共享外壳
   切角 / 斜线 / 等宽数字 / 竞技红锚点
   ============================================================ */

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
summary { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

/* ---------- tokens ---------- */
:root {
  --ink-900: #0B0B10;
  --ink-700: #17171F;
  --line-500: #2E2F3A;
  --snow: #FFFFFF;
  --frost: #F3F5F8;
  --gray-500: #6B7280;
  --gray-200: #D7DBE2;
  --red: #E5173A;
  --red-deep: #C9102F;
  --blue: #2B6BFF;
  --gold: #C9A227;
  --green: #17A673;
  --amber: #D98A05;

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell-h: 88px;
  --shell-h-compact: 60px;
  --maxw: 1200px;
  --maxw-wide: 1440px;
  --gut: clamp(20px, 4.5vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --bevel: 18px;

  scroll-padding-top: calc(var(--shell-h-compact) + 20px);
}

/* ---------- base ---------- */
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-900);
  background: var(--snow);
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 900; line-height: 1.12; letter-spacing: -.01em; }

::selection { background: var(--red); color: var(--snow); }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.site-header :focus-visible,
.site-footer :focus-visible,
.section--dark :focus-visible { outline-color: #8FB4FF; }

body[data-nav-locked="true"] { overflow: hidden; }

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  left: 14px;
  top: -80px;
  z-index: 400;
  padding: .72em 1.1em;
  background: var(--snow);
  color: var(--ink-900);
  font-weight: 700;
  font-size: .9375rem;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 14px; }

/* ---------- layout utilities ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.container--wide { max-width: var(--maxw-wide); }

.section { position: relative; padding-block: clamp(56px, 9vw, 120px); }
.section--dark { background: var(--ink-900); color: var(--frost); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--snow); }
.section--frost { background: var(--frost); }
.section--flush { padding-block: 0; }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }

/* ---------- typography utilities ---------- */
.type-hero {
  font-size: clamp(2.6rem, 7.2vw, 4.5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.025em;
}
.type-claim {
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.type-section {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
}
.type-lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 500;
  line-height: 1.65;
  color: var(--gray-500);
}
.section--dark .type-lead { color: #A6ABB8; }
.type-meta {
  font-size: .875rem;
  letter-spacing: .03em;
  color: var(--gray-500);
}
.section--dark .type-meta { color: #8C92A1; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 26px;
  height: 2px;
  background: var(--red);
}
.section--dark .eyebrow { color: #9EA3B0; }

/* ---------- grid ---------- */
.grid { display: grid; gap: clamp(20px, 3vw, 36px); }
.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--5-7 { grid-template-columns: 5fr 7fr; }
.grid--7-5 { grid-template-columns: 7fr 5fr; }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- bevel / card ---------- */
.bevel {
  position: relative;
  clip-path: polygon(
    var(--bevel) 0,
    100% 0,
    100% calc(100% - var(--bevel)),
    calc(100% - var(--bevel)) 100%,
    0 100%,
    0 var(--bevel)
  );
  padding: clamp(20px, 2.8vw, 34px);
}
.bevel--dark { background: var(--ink-700); color: var(--frost); }
.bevel--light { background: var(--frost); color: var(--ink-900); }
.bevel--sm { --bevel: 10px; }
.bevel--lg { --bevel: 30px; }

.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--frost);
  border-left: 3px solid var(--ink-900);
}
.card--accent { border-left-color: var(--red); }
.card--dark { background: var(--ink-700); color: var(--frost); border-left-color: var(--red); }
.card--dark h3 { color: var(--snow); }

/* ---------- stats ---------- */
.stat { display: grid; gap: 6px; }
.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
}
.stat__unit {
  font-size: .45em;
  font-weight: 500;
  color: var(--gray-500);
  margin-left: .35em;
  letter-spacing: 0;
}
.stat__label {
  font-size: .75rem;
  letter-spacing: .14em;
  color: var(--gray-500);
}
.section--dark .stat__label { color: #8C92A1; }

/* ---------- tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.5;
  background: var(--frost);
  color: var(--ink-900);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.tag--red { background: var(--red); color: var(--snow); }
.tag--blue { background: var(--blue); color: var(--snow); }
.tag--gold { background: var(--gold); color: var(--ink-900); }
.tag--green { background: var(--green); color: var(--snow); }
.tag--amber { background: var(--amber); color: var(--ink-900); }
.tag--line {
  background: transparent;
  color: var(--gray-500);
  box-shadow: inset 0 0 0 1px var(--gray-200);
}
.section--dark .tag--line { color: #9EA3B0; box-shadow: inset 0 0 0 1px var(--line-500); }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .74em 1.4em;
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  cursor: pointer;
  overflow: hidden;
  transition: background-color .24s var(--ease), color .24s var(--ease), box-shadow .24s var(--ease), transform .24s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background: rgba(11, 11, 16, .22);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  pointer-events: none;
}
.btn--primary { background: var(--red); color: var(--snow); }
.btn--primary:hover { background: var(--red-deep); }
.btn--ghost {
  background: transparent;
  color: var(--snow);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--outline {
  background: transparent;
  color: var(--ink-900);
  box-shadow: inset 0 0 0 1px var(--gray-200);
}
.btn--outline:hover { box-shadow: inset 0 0 0 1px var(--ink-900); }
.btn--outline::after { background: rgba(229, 23, 58, .2); }
.btn--sm { padding: .52em 1em; font-size: .8125rem; }
.btn--block { width: 100%; }
.btn:active { transform: translateY(1px); }

/* ---------- breadcrumb ---------- */
.breadcrumb { padding-block: 14px; }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  color: var(--gray-500);
}
.breadcrumb__item { display: flex; align-items: center; gap: 8px; }
.breadcrumb__item + .breadcrumb__item::before {
  content: "";
  display: block;
  width: 12px;
  height: 1px;
  background: var(--gray-200);
}
.breadcrumb__link:hover { color: var(--ink-900); }
.breadcrumb__current { color: var(--ink-900); font-weight: 700; }
.section--dark .breadcrumb__list { color: #8C92A1; }
.section--dark .breadcrumb__item + .breadcrumb__item::before { background: var(--line-500); }
.section--dark .breadcrumb__current { color: var(--snow); }

/* ---------- prose ---------- */
.prose { max-width: 34em; }
.prose p + p { margin-top: 1.15em; }
.prose h2 { margin-top: 2.2em; margin-bottom: .6em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.8em; margin-bottom: .5em; font-size: 1.15rem; font-weight: 800; }
.prose ul, .prose ol { margin-top: 1em; display: grid; gap: .6em; }
.prose ul li { position: relative; padding-left: 1.5em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 11px;
  height: 2px;
  background: var(--red);
}
.prose ol { counter-reset: pn; }
.prose ol li { position: relative; padding-left: 2.6em; counter-increment: pn; }
.prose ol li::before {
  content: counter(pn, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .18em;
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 700;
  color: var(--red);
}
.prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose strong { font-weight: 700; }
.section--dark .prose { color: var(--frost); }

/* ---------- tabs ---------- */
.tabs { display: grid; gap: clamp(20px, 3vw, 32px); }
.tablist {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  border-bottom: 1px solid var(--gray-200);
}
.tab {
  position: relative;
  flex: none;
  padding: 14px 18px;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--gray-500);
  white-space: nowrap;
  cursor: pointer;
  transition: color .22s var(--ease);
}
.tab:hover { color: var(--ink-900); }
.tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s var(--ease);
}
.tab[aria-selected="true"] { color: var(--ink-900); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.section--dark .tablist { border-bottom-color: var(--line-500); }
.section--dark .tab { color: #8C92A1; }
.section--dark .tab:hover,
.section--dark .tab[aria-selected="true"] { color: var(--snow); }
.tabpanel:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }
.tabpanel[hidden] { display: none; }

/* ---------- media frame ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--ink-700);
  isolation: isolate;
  clip-path: polygon(
    20px 0,
    100% 0,
    100% calc(100% - 20px),
    calc(100% - 20px) 100%,
    0 100%,
    0 20px
  );
}
.media-frame > img,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, transparent 50%, rgba(229, 23, 58, .88) 50%);
  pointer-events: none;
}
.media-frame--16-9 { aspect-ratio: 16 / 9; }
.media-frame--21-9 { aspect-ratio: 21 / 9; }
.media-frame--4-5 { aspect-ratio: 4 / 5; }
.media-frame--1-1 { aspect-ratio: 1 / 1; }
.media-frame__tag {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  padding: 6px 12px;
  background: var(--red);
  color: var(--snow);
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .1em;
}
.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 16px 18px;
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--snow);
  background: linear-gradient(0deg, rgba(11, 11, 16, .88), rgba(11, 11, 16, 0));
}
.media-frame--drape::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  z-index: 3;
  background: linear-gradient(90deg,
    var(--red) 0 22%,
    var(--gold) 22% 40%,
    var(--snow) 40% 50%,
    var(--blue) 50% 72%,
    var(--green) 72% 86%,
    var(--red) 86% 100%);
}

/* ---------- decorative ---------- */
.slash {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--red) 0%, rgba(229, 23, 58, .18) 42%, rgba(229, 23, 58, 0) 80%);
}
.slash--diag {
  height: 2px;
  transform: rotate(-2.4deg);
  transform-origin: left center;
}
.trail {
  position: absolute;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--red), var(--blue));
  transform-origin: left center;
}
.trail--thin { height: 1px; opacity: .55; }
.ticks {
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  pointer-events: none;
  opacity: .7;
  background: repeating-linear-gradient(90deg, var(--line-500) 0 1px, transparent 1px 28px);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--shell-h);
  color: var(--snow);
  background: transparent;
  transition: height .32s var(--ease), background-color .32s var(--ease), box-shadow .32s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 11, 16, .88) 0%, rgba(11, 11, 16, .45) 58%, rgba(11, 11, 16, 0) 100%);
  transition: opacity .3s var(--ease);
}
.site-header[data-scrolled="true"] {
  height: var(--shell-h-compact);
  background: rgba(11, 11, 16, .95);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 1px 0 var(--line-500), 0 24px 50px -42px rgba(0, 0, 0, 1);
}
.site-header[data-scrolled="true"]::before { opacity: 0; }
.site-header[data-open="true"] { background: var(--ink-900); }
.site-header[data-open="true"]::before { opacity: 0; }

.site-header__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  max-width: var(--maxw-wide);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex: none;
  min-width: 0;
}
.brand__mark {
  position: relative;
  padding-left: 14px;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--snow);
}
.brand__mark::before {
  content: "";
  position: absolute;
  left: 0;
  top: .12em;
  width: 5px;
  height: .94em;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 74%, 0 100%);
}
.brand__note {
  font-size: .75rem;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .62);
  white-space: nowrap;
}

.site-nav { margin-left: auto; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.3vw, 16px);
}
.site-nav__item { display: block; }
.site-nav__link {
  position: relative;
  display: block;
  padding: 10px 6px;
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .78);
  transition: color .22s var(--ease);
}
.site-nav__link:hover { color: var(--snow); }
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .26s var(--ease);
}
.site-nav__link:hover::after,
.site-nav__link:focus-visible::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] {
  color: var(--snow);
  font-weight: 700;
}
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  height: 3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .72);
  font-family: var(--font-mono);
}
.live-dot__pulse {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.live-dot__pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--green);
  border-radius: 50%;
  opacity: .5;
  animation: pulse 2.4s var(--ease) infinite;
}
.live-dot__text { white-space: nowrap; }
@keyframes pulse {
  0% { transform: scale(.55); opacity: .75; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  color: var(--snow);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34);
  transition: background-color .22s var(--ease);
}
.nav-toggle:hover { background: rgba(255, 255, 255, .1); }
.nav-toggle__bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform .26s var(--ease), opacity .26s var(--ease);
}
.nav-toggle__label {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.site-header[data-open="true"] .nav-toggle__bars span:first-child { transform: translateY(3px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars span:last-child { transform: translateY(-3px) rotate(-45deg); }

.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}
.scroll-meter__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--blue));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .1s linear;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  background: var(--ink-900);
  color: var(--frost);
  overflow: hidden;
}
.prayer-band {
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg,
    var(--red) 0 18%,
    var(--gold) 18% 34%,
    var(--snow) 34% 44%,
    var(--blue) 44% 66%,
    var(--green) 66% 80%,
    var(--red) 80% 100%);
}
.site-footer__inner {
  width: 100%;
  max-width: var(--maxw-wide);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 84px) var(--gut) clamp(28px, 4vw, 46px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}
.footer-brand__mark {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--snow);
}
.footer-brand__note {
  margin-top: 14px;
  max-width: 30em;
  font-size: .9375rem;
  line-height: 1.72;
  color: #A6ABB8;
}
.footer-brand__meta {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  color: #7C8290;
}
.footer-col__title {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--snow);
}
.footer-col__title::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  margin-top: 10px;
  background: var(--red);
}
.footer-col__list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.footer-col__link {
  font-size: .9375rem;
  color: #A6ABB8;
  transition: color .2s var(--ease);
}
.footer-col__link:hover { color: var(--snow); }

.footer-base {
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--line-500);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  align-items: baseline;
  justify-content: space-between;
}
.footer-service {
  font-size: .875rem;
  line-height: 1.9;
  color: #A6ABB8;
}
.footer-service .num { color: var(--snow); }
.footer-meta {
  font-size: .8125rem;
  line-height: 1.9;
  color: #8C92A1;
}
.footer-meta .num { color: #C6CAD4; }
.footer-footnote {
  margin-top: 16px;
  max-width: 56em;
  font-size: .75rem;
  line-height: 1.75;
  color: #6F7583;
}

/* ============================================================
   REVEAL & MOTION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .brand__note { display: none; }
}

@media (max-width: 1060px) {
  .live-dot { display: none; }
}

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

@media (max-width: 960px) {
  .site-header__inner { gap: 12px; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    margin: 0;
    padding: calc(var(--shell-h) + 28px) var(--gut) 48px;
    background-color: var(--ink-900);
    background-image:
      linear-gradient(158deg, rgba(43, 107, 255, .16), rgba(43, 107, 255, 0) 46%),
      linear-gradient(202deg, rgba(229, 23, 58, .22), rgba(229, 23, 58, 0) 52%);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s linear;
  }
  .site-header[data-open="true"] .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav__item { border-bottom: 1px solid var(--line-500); }
  .site-nav__link {
    padding: 20px 2px;
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--frost);
  }
  .site-nav__link::after { display: none; }
  .site-nav__link[aria-current="page"] { color: var(--snow); }
  .site-nav__link[aria-current="page"]::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 12px;
    background: var(--red);
    transform: translateY(-3px) skewX(-14deg);
  }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --shell-h: 72px; --shell-h-compact: 58px; --bevel: 14px; }
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); row-gap: 30px; }
  .btn--sm { padding: .5em .85em; font-size: .75rem; }
  .nav-toggle__label { display: none; }
  .media-frame__caption { font-size: .6875rem; padding: 12px 14px; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 420px) {
  .brand__mark { font-size: 1.15rem; padding-left: 12px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .scroll-meter__fill { transition: none; }
  .site-nav__link::after { transition: none; }
}
