/* ============================================================
   博喜体育 · 共享站点层  /assets/site.css
   高原暮色底 + 控制台刻度 + 档案纸感
   ============================================================ */

:root {
  --ink: #061A15;
  --charcoal: #111417;
  --panel: #0D2A21;
  --paper: #EDE7D6;
  --cyan: #43F0CF;
  --orange: #FF9A4D;
  --magenta: #C15BFF;
  --fog: #9FB0A8;
  --white: #F5F8F6;
  --blue: #2ED3FF;

  --header-h: 72px;
  --wrap: 1240px;
  --wrap-wide: 1440px;
  --gutter: clamp(18px, 4vw, 56px);
  --radius-lg: 26px;
  --radius: 16px;
  --radius-sm: 10px;
  --line: rgba(159, 176, 168, .26);
  --line-soft: rgba(159, 176, 168, .14);
  --shadow-panel: 0 28px 64px -38px rgba(0, 0, 0, .95);

  --font-display: 'Barlow Condensed', 'Noto Sans SC', 'PingFang SC', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 720px at 82% -12%, rgba(67, 240, 207, .10), transparent 62%),
    radial-gradient(900px 620px at 4% 6%, rgba(193, 91, 255, .09), transparent 60%),
    repeating-linear-gradient(90deg, rgba(237, 231, 214, .028) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(237, 231, 214, .022) 0 1px, transparent 1px 96px);
  background-attachment: fixed, fixed, scroll, scroll;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, picture { max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; }
p, h1, h2, h3, h4, h5, h6, figure, dl, dd, blockquote { margin: 0; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--cyan); color: var(--ink); }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: .01em;
  color: var(--white);
}
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); }
h4 { font-size: clamp(17px, 1.6vw, 20px); letter-spacing: .02em; }
strong { color: var(--white); }

/* ---------- utilities ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide { max-width: var(--wrap-wide); }
.stack { display: grid; gap: var(--stack-gap, clamp(16px, 2.4vw, 28px)); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 10px; left: 12px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--cyan);
  color: #04231D;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  margin-bottom: calc(var(--header-h) * -1);
  color: var(--white);
  background: linear-gradient(180deg, rgba(6, 26, 21, .92), rgba(6, 26, 21, .12) 72%, rgba(6, 26, 21, 0));
  transition: background-color .28s var(--ease), box-shadow .28s var(--ease);
}
.site-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(159, 176, 168, .42) 0 1px, transparent 1px 12px) left bottom / 100% 6px no-repeat;
  opacity: .38;
  transition: opacity .28s var(--ease);
}
.site-header.is-solid {
  background-color: rgba(17, 20, 23, .97);
  box-shadow: 0 1px 0 rgba(67, 240, 207, .28), 0 22px 44px -34px #000;
}
.site-header.is-solid::after { opacity: .7; }

.header-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(159, 176, 168, .18);
}
.header-progress__fill {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--blue) 55%, var(--orange));
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
  width: 100%;
  max-width: var(--wrap-wide);
  margin-inline: auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  flex: none;
  padding-left: 10px;
  border-left: 3px solid var(--cyan);
  text-decoration: none;
  color: var(--white);
  line-height: 1.15;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .08em;
}
.brand__line {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--fog);
  text-transform: uppercase;
}

.site-nav { margin-left: auto; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2px, .6vw, 10px);
  counter-reset: navidx;
}
.site-nav__link {
  counter-increment: navidx;
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 11px;
  border-radius: 999px;
  color: rgba(245, 248, 246, .84);
  font-size: 14px;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.site-nav__link::before {
  content: counter(navidx, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--fog);
  transition: color .2s var(--ease);
}
.site-nav__link:hover { color: var(--cyan); background: rgba(67, 240, 207, .10); }
.site-nav__link[aria-current="page"] {
  color: #04231D;
  background: var(--cyan);
  font-weight: 700;
}
.site-nav__link[aria-current="page"]::before { color: rgba(4, 35, 29, .62); }

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.header-cta {
  font-size: 13px;
  padding: 9px 15px;
  letter-spacing: .02em;
}
.header-cta span { font-family: var(--font-mono); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 12px;
  border: 1px solid rgba(159, 176, 168, .42);
  background: rgba(237, 231, 214, .08);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle[aria-expanded="true"] { border-color: var(--cyan); color: var(--cyan); background: rgba(67, 240, 207, .12); }
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 4px; }
.nav-toggle__bars span {
  display: block;
  width: 16px; height: 2px;
  background: currentColor;
  transition: transform .24s var(--ease);
}
.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); }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(3, 14, 11, .68);
}
.nav-scrim[hidden] { display: none; }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(48px, 7vw, 112px);
  padding-top: clamp(28px, 4vw, 48px);
  background-color: var(--charcoal);
  border-top: 1px solid rgba(67, 240, 207, .30);
  color: rgba(237, 231, 214, .78);
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto auto;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(193, 91, 255, .16), transparent 68%);
  pointer-events: none;
}
.site-footer::after {
  content: '';
  position: absolute;
  inset: auto auto -45% -12%;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(67, 240, 207, .12), transparent 70%);
  pointer-events: none;
}
.footer-rail {
  height: 8px;
  margin-bottom: clamp(20px, 3vw, 36px);
  background: repeating-linear-gradient(90deg, rgba(67, 240, 207, .55) 0 1px, transparent 1px 14px);
  opacity: .34;
}
.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(2, minmax(130px, .72fr)) minmax(240px, 1.2fr);
  gap: clamp(24px, 3vw, 48px);
  padding-bottom: clamp(28px, 4vw, 52px);
}
.brand--footer { border-left-color: var(--orange); }
.brand--footer .brand__name { font-size: 24px; }
.footer-summary {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(237, 231, 214, .76);
}
.footer-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
}
.footer-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--fog);
}
.footer-heading {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fog);
}
.footer-list { display: grid; gap: 9px; }
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(237, 231, 214, .84);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.footer-link::before {
  content: '';
  width: 10px; height: 1px;
  background: var(--fog);
  transition: width .2s var(--ease), background-color .2s var(--ease);
}
.footer-link:hover { color: var(--cyan); }
.footer-link:hover::before { width: 20px; background: var(--cyan); }
.contact-list { display: grid; gap: 12px; }
.contact-list__row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.contact-list__row dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--fog);
  padding-top: 3px;
}
.contact-list__row dd {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245, 248, 246, .9);
  word-break: break-word;
}
.footer-note {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--fog);
}
.footer-base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px 24px;
  border-top: 1px dashed rgba(159, 176, 168, .32);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--fog);
}
.footer-base__icp { color: rgba(237, 231, 214, .72); }
.footer-base__meta { color: rgba(159, 176, 168, .82); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease),
              box-shadow .2s var(--ease);
}
.btn--cta {
  background: var(--orange);
  color: #24110A;
  box-shadow: 0 12px 26px -16px rgba(255, 154, 77, .95);
}
.btn--cta:hover { background: #FFB077; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(67, 240, 207, .5);
}
.btn--ghost:hover { background: rgba(67, 240, 207, .12); border-color: var(--cyan); }
.btn--quiet {
  background: rgba(237, 231, 214, .07);
  color: var(--paper);
  border-color: rgba(237, 231, 214, .22);
}
.btn--quiet:hover { background: rgba(237, 231, 214, .13); border-color: rgba(237, 231, 214, .45); }

/* ---------- panels / bands ---------- */
.panel {
  position: relative;
  background: linear-gradient(160deg, rgba(13, 42, 33, .96), rgba(6, 26, 21, .99));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.4vw, 44px);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}
.panel--lead { padding-top: calc(var(--header-h) + clamp(36px, 6vw, 88px)); }
.panel--paper {
  background: var(--paper);
  border-color: rgba(11, 31, 25, .16);
  color: #16261F;
}
.panel--paper h1, .panel--paper h2, .panel--paper h3, .panel--paper h4 { color: #0B1F19; }
.panel--paper .eyebrow { color: #0C6A57; }
.panel--paper .meta-mono { color: #4A6259; }
.panel--outline {
  background: rgba(237, 231, 214, .02);
  border-style: dashed;
  border-color: rgba(159, 176, 168, .34);
  box-shadow: none;
}
.panel__index {
  position: absolute;
  top: 16px; right: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: rgba(159, 176, 168, .8);
}
.band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(16px, 2.6vw, 28px);
  border-block: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(193, 91, 255, .14), rgba(67, 240, 207, .10) 58%, rgba(6, 26, 21, 0));
}
.band__track {
  display: flex;
  gap: clamp(12px, 2vw, 26px);
  overflow-x: auto;
  padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: rgba(67, 240, 207, .5) transparent;
}
.band__track::-webkit-scrollbar { height: 6px; }
.band__track::-webkit-scrollbar-thumb { background: rgba(67, 240, 207, .45); border-radius: 99px; }
.band__item { flex: 0 0 auto; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 30px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--asym { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(16px, 2.4vw, 26px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(237, 231, 214, .035);
  transition: border-color .22s var(--ease), background-color .22s var(--ease), transform .22s var(--ease);
}
.card:hover {
  border-color: rgba(67, 240, 207, .5);
  background: rgba(67, 240, 207, .06);
  transform: translateY(-2px);
}

/* ---------- headings & meta ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: '';
  width: 18px; height: 1px;
  background: currentColor;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 28px;
  margin-bottom: clamp(18px, 2.6vw, 30px);
}
.section-head__title { margin: 0; }
.section-head__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--fog);
}
.meta-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--fog);
}

/* ---------- chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(159, 176, 168, .38);
  background: rgba(237, 231, 214, .05);
  color: rgba(237, 231, 214, .88);
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.25;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.chip:hover { color: var(--cyan); border-color: var(--cyan); }
.chip[aria-pressed="true"] {
  background: var(--magenta);
  border-color: var(--magenta);
  color: #1B0A26;
  font-weight: 600;
}

/* ---------- fold ---------- */
.fold {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(237, 231, 214, .03);
  overflow: hidden;
}
.fold__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--white);
}
.fold__head::-webkit-details-marker { display: none; }
.fold__head::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--cyan);
}
.fold[open] .fold__head::after { content: '–'; }
.fold__body {
  padding: 0 18px 18px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(237, 231, 214, .84);
}

/* ---------- prose ---------- */
.prose {
  max-width: 64ch;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(237, 231, 214, .86);
}
.prose p { margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--white); }
.panel--paper .prose { color: #22322C; }
.panel--paper .prose strong { color: #0B1F19; }

/* ---------- breadcrumbs ---------- */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--fog);
}
.breadcrumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumbs__list li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs__list li + li::before { content: '/'; color: rgba(159, 176, 168, .55); }
.breadcrumbs a { color: var(--fog); text-decoration: none; }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: rgba(245, 248, 246, .92); }

/* ---------- media frame ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background-color: var(--panel);
  background-image:
    linear-gradient(150deg, rgba(13, 42, 33, .92), rgba(6, 26, 21, .96)),
    repeating-linear-gradient(45deg, rgba(237, 231, 214, .05) 0 2px, transparent 2px 7px);
  box-shadow: var(--shadow-panel);
}
.media-frame img,
.media-frame picture,
.media-frame picture img,
.media-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, rgba(6, 26, 21, .6));
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame__tag {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(67, 240, 207, .38);
  background: rgba(6, 26, 21, .78);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* ---------- status dot ---------- */
.status-dot {
  flex: none;
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(67, 240, 207, .18);
}
.status-dot--orange { background: var(--orange); box-shadow: 0 0 0 3px rgba(255, 154, 77, .2); }
.status-dot--magenta { background: var(--magenta); box-shadow: 0 0 0 3px rgba(193, 91, 255, .2); }
.status-dot--fog { background: var(--fog); box-shadow: 0 0 0 3px rgba(159, 176, 168, .2); }

/* ---------- decorative scale ---------- */
.rule-scale {
  height: 8px;
  background: repeating-linear-gradient(90deg, rgba(159, 176, 168, .42) 0 1px, transparent 1px 10px);
  opacity: .55;
  pointer-events: none;
}

/* ---------- scroll states ---------- */
[data-chapter] { position: relative; scroll-margin-top: calc(var(--header-h) + 24px); }
[data-chapter].is-active { }
[data-chapter].is-active::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--cyan), var(--orange));
}
html.has-motion [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
html.has-motion [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- focus ---------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
#main-content:focus { outline: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .site-nav__link { padding: 8px 8px; font-size: 13.5px; }
  .footer-grid { grid-template-columns: minmax(240px, 1.4fr) repeat(2, minmax(120px, .8fr)) minmax(220px, 1.1fr); }
}

@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .header-bar { gap: 10px; }
  .brand__line { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 130;
    width: 100%;
    max-height: 78vh;
    overflow-y: auto;
    margin-left: 0;
    padding: 22px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(67, 240, 207, .42);
    border-radius: 22px 22px 0 0;
    background: linear-gradient(180deg, rgba(17, 20, 23, .99), rgba(6, 26, 21, .99));
    box-shadow: 0 -26px 60px -26px #000;
    transform: translateY(calc(100% + 28px));
    visibility: hidden;
    transition: transform .32s var(--ease), visibility .32s var(--ease);
  }
  .site-nav[data-open="true"] { transform: translateY(0); visibility: visible; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav__link {
    width: 100%;
    justify-content: flex-start;
    border-radius: var(--radius-sm);
    padding: 14px 12px;
    font-size: 16px;
    border-bottom: 1px solid var(--line-soft);
  }
  .site-nav__link::before { font-size: 11px; }
  body.nav-open { overflow: hidden; }
  .grid--2, .grid--3, .grid--asym { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .header-cta { font-size: 12px; padding: 8px 12px; }
  .brand__name { font-size: 18px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-base { justify-content: flex-start; }
  .media-frame { aspect-ratio: 4 / 3; }
  .media-frame--wide { aspect-ratio: 16 / 9; }
}

@media (max-width: 460px) {
  .nav-toggle__text { display: none; }
  .header-cta span { display: none; }
  .footer-legend { gap: 6px 14px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  html.has-motion [data-reveal] { opacity: 1; transform: none; }
  .card:hover, .btn--cta:hover { transform: none; }
}
