/* ==========================================================================
   中欧体育赛事 · 共享站点样式 /assets/site.css
   赛场数据指挥中心：深靛蓝刻度底板 + 荧光青轮次高亮 + 活力橙行动锚点
   ========================================================================== */

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

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

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

ul, ol { list-style: none; }

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

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

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

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

[hidden] { display: none !important; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #0B1035;
  --panel: #141B4D;
  --line: #26307A;
  --cyan: #00E5D0;
  --orange: #FF7A1A;
  --paper: #F4F1E9;
  --steel: #A9B4D8;
  --abyss: #060922;
  --mint: #2EE6A8;
  --coral: #FF5D5D;

  --font-display: "Arial Narrow", "Helvetica Neue Condensed", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --w-max: 1280px;
  --pad: clamp(16px, 3.5vw, 32px);
  --gap: 24px;
  --radius: 2px;
  --dur: 180ms;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-paper: 6px 6px 0 rgba(6, 9, 34, .85);
}

/* ---------- 3. Base & typography ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(78% 48% at 84% -8%, rgba(0, 229, 208, .10), transparent 62%),
    radial-gradient(60% 44% at 2% 0%, rgba(255, 122, 26, .09), transparent 66%),
    repeating-linear-gradient(90deg, rgba(38, 48, 122, .34) 0 1px, transparent 1px 96px);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.01em;
  color: var(--paper);
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 7.4vw, 96px); letter-spacing: -.025em; }
h2 { font-size: clamp(28px, 4.2vw, 52px); }
h3 { font-size: clamp(22px, 2.6vw, 32px); }
h4 { font-size: clamp(18px, 1.8vw, 24px); letter-spacing: 0; }

strong, b { font-weight: 700; color: var(--paper); }
small { font-size: 12.5px; color: var(--steel); }

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

/* ---------- 4. Focus & a11y utilities ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

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

#main-content { scroll-margin-top: 132px; }

/* ---------- 5. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

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

.stack > * + * { margin-top: var(--gap); }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  cursor: pointer;
  transition: color var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.btn--cta {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--abyss);
  box-shadow: 3px 3px 0 rgba(6, 9, 34, .9);
}

.btn--cta:hover,
.btn--cta:focus-visible {
  background: #ff9147;
  border-color: #ff9147;
  color: var(--abyss);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(6, 9, 34, .9);
}

.btn--cyan {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(6, 9, 34, .9);
}

.btn--cyan:hover,
.btn--cyan:focus-visible {
  background: #5ff5e5;
  border-color: #5ff5e5;
  color: var(--ink);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--steel);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 229, 208, .08);
}

.btn--sm {
  min-height: 48px;
  padding: 0 16px;
  font-size: 13px;
  letter-spacing: .1em;
}

/* ---------- 7. Tags / index / numbers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 27, 77, .65);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.tag--cyan {
  border-color: rgba(0, 229, 208, .5);
  background: rgba(0, 229, 208, .10);
  color: var(--cyan);
}

.tag--orange {
  border-color: rgba(255, 122, 26, .5);
  background: rgba(255, 122, 26, .10);
  color: var(--orange);
}

.tag--mint {
  border-color: rgba(46, 230, 168, .5);
  background: rgba(46, 230, 168, .10);
  color: var(--mint);
}

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

.num--xl {
  font-size: clamp(48px, 7vw, 96px);
  color: var(--cyan);
}

.num--lg {
  font-size: clamp(32px, 4vw, 48px);
  color: var(--orange);
}

/* ---------- 8. Panels & paper ---------- */
.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: clamp(18px, 2.4vw, 28px);
}

.panel--raised { box-shadow: var(--shadow-paper); }

.paper {
  position: relative;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid #d9d4c6;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-paper);
  transform: rotate(-.6deg);
}

.paper--flat { transform: none; }

.paper h2,
.paper h3,
.paper h4,
.paper strong { color: var(--ink); }

.paper a { color: #0B1035; border-bottom: 1px solid rgba(11, 16, 53, .35); }
.paper a:hover,
.paper a:focus-visible { border-color: var(--orange); color: #a34a00; }

/* ---------- 9. Breadcrumbs ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 20px 0 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--steel);
}

.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--steel);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.crumbs a:hover,
.crumbs a:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.crumbs__sep { color: var(--line); }

.crumbs [aria-current="page"] { color: var(--paper); }

/* ---------- 10. Prose ---------- */
.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--paper);
}

.prose > * + * { margin-top: 1.1em; }

.prose h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-top: 1.8em;
  padding-left: 14px;
  border-left: 3px solid var(--cyan);
}

.prose h3 {
  font-size: clamp(19px, 2vw, 24px);
  margin-top: 1.6em;
  color: var(--paper);
}

.prose ul,
.prose ol { padding-left: 1.2em; }

.prose ul li { list-style: none; position: relative; padding-left: 18px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .8em;
  width: 7px;
  height: 7px;
  background: var(--orange);
}
.prose ol { list-style: decimal; }
.prose ol li { padding-left: 4px; }

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(0, 229, 208, .45);
}
.prose a:hover,
.prose a:focus-visible { border-bottom-color: var(--cyan); }

/* ---------- 11. Figure (image container base) ---------- */
.figure {
  display: block;
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.figure__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--abyss);
  background-image:
    repeating-linear-gradient(45deg, rgba(38, 48, 122, .55) 0 2px, transparent 2px 12px),
    radial-gradient(70% 70% at 30% 20%, rgba(0, 229, 208, .16), transparent 70%);
}

.figure__media > img,
.figure__media > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure--4x3 .figure__media { aspect-ratio: 4 / 3; }
.figure--1x1 .figure__media { aspect-ratio: 1 / 1; }
.figure--21x9 .figure__media { aspect-ratio: 21 / 9; }

.figure__frame {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(0, 229, 208, .35);
  pointer-events: none;
}

.figure__frame::before,
.figure__frame::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
}

.figure__frame::before { top: -4px; left: -4px; background: var(--cyan); }
.figure__frame::after { bottom: -4px; right: -4px; background: var(--orange); }

.figure__caption {
  padding: 10px 2px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--steel);
}

/* ---------- 12. Round axis ---------- */
.round-axis {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.round-axis__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding-right: 8px;
  border-bottom: 1px solid rgba(38, 48, 122, .4);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  transition: color var(--dur) var(--ease);
}

.round-axis__item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.round-axis__item:hover { color: var(--paper); }
.round-axis__item:hover::before { background: var(--cyan); }

.round-axis__item[aria-current="true"],
.round-axis__item.is-lit { color: var(--paper); }

.round-axis__item[aria-current="true"]::before,
.round-axis__item.is-lit::before {
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 208, .16);
}

.round-axis__num {
  font-size: 15px;
  font-weight: 700;
  color: var(--cyan);
}

/* ---------- 13. Filter bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 27, 77, .5);
  color: var(--steel);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: color var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.filter-btn:hover,
.filter-btn:focus-visible {
  border-color: var(--cyan);
  color: var(--paper);
}

.filter-btn[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
}

.filter-btn__count {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: .75;
}

/* ---------- 14. Reveal & filtered states ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-filter-item].is-hidden { display: none !important; }

[data-filter-item].is-entering { animation: filterFadeIn 180ms var(--ease) both; }

@keyframes filterFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- 15. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(6, 9, 34, .98), rgba(6, 9, 34, .92));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-header.is-scrolled {
  box-shadow: 0 14px 32px rgba(6, 9, 34, .55);
}

.skip-link {
  position: absolute;
  top: 0;
  left: var(--pad);
  z-index: 200;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .08em;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { transform: translateY(8px); }

.site-header__rail {
  height: 6px;
  border-bottom: 1px solid rgba(38, 48, 122, .55);
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 24px);
}

.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  max-width: var(--w-max);
  margin-inline: auto;
  padding: 12px var(--pad);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  min-height: 48px;
  padding: 4px 0;
  transition: opacity var(--dur) var(--ease);
}

.brand:hover { opacity: .85; }

.brand__mark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  flex: none;
}

.brand__mark i { display: block; width: 5px; background: var(--cyan); }
.brand__mark i:nth-child(1) { height: 10px; background: var(--orange); }
.brand__mark i:nth-child(2) { height: 17px; }
.brand__mark i:nth-child(3) { height: 24px; }

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--paper);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--steel);
  text-transform: uppercase;
}

/* Primary navigation */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

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

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--steel);
  font-size: 15px;
  line-height: 1.2;
  transition: color var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--paper);
  border-color: var(--line);
  background: rgba(20, 27, 77, .85);
}

.site-nav__idx {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: rgba(169, 180, 216, .55);
  transition: color var(--dur) var(--ease);
}

.site-nav__link[aria-current="page"] {
  color: var(--paper);
  border-color: var(--cyan);
  background: rgba(0, 229, 208, .10);
}

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

/* Header actions */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  min-width: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: .12em;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav-toggle:hover,
.nav-toggle:focus-visible { border-color: var(--cyan); color: var(--cyan); }

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 20px;
  height: 20px;
}

.nav-toggle__bars i {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cyan);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Ticker */
.site-header__ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: var(--w-max);
  margin-inline: auto;
  padding: 8px var(--pad);
  border-top: 1px dashed rgba(38, 48, 122, .55);
}

.ticker__tag {
  flex: none;
  padding: 2px 9px;
  border-radius: 1px;
  background: var(--cyan);
  color: var(--abyss);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
}

.ticker__text {
  overflow: hidden;
  color: var(--steel);
  font-size: 12.5px;
  letter-spacing: .04em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Scroll progress */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
}

/* ---------- 16. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  border-top: 1px solid var(--line);
  background: var(--abyss);
  color: var(--steel);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 24px);
  opacity: .8;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, .85fr) 1.5fr;
  gap: clamp(20px, 3vw, 40px);
  max-width: var(--w-max);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 60px) var(--pad) clamp(24px, 3vw, 36px);
}

.footer-brand { display: flex; flex-direction: column; gap: 12px; }

.brand--footer { align-items: flex-start; }
.brand--footer .brand__name { font-size: 19px; }

.footer-brand__line {
  max-width: 24ch;
  color: var(--paper);
  font-size: 14px;
  line-height: 1.7;
}

.footer-brand__hint {
  max-width: 30ch;
  color: rgba(169, 180, 216, .8);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.8;
  letter-spacing: .05em;
}

.footer-col__title {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(38, 48, 122, .8);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1.4;
}

.footer-col__list { display: flex; flex-direction: column; }

.footer-col__link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--steel);
  font-size: 14.5px;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

.footer-col__link:hover,
.footer-col__link:focus-visible {
  color: var(--paper);
  padding-left: 4px;
}

.footer-contact__list { display: flex; flex-direction: column; }

.footer-contact__item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(38, 48, 122, .5);
}

.footer-contact__key {
  padding-top: 2px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
}

.footer-contact__val {
  color: var(--steel);
  font-size: 13.5px;
  line-height: 1.6;
  word-break: break-word;
}

.site-footer__note {
  max-width: var(--w-max);
  margin-inline: auto;
  padding: 14px var(--pad);
  border-top: 1px dashed rgba(38, 48, 122, .7);
  color: rgba(169, 180, 216, .8);
  font-size: 12.5px;
  line-height: 1.75;
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  max-width: var(--w-max);
  margin-inline: auto;
  padding: 16px var(--pad) 24px;
  border-top: 1px solid rgba(38, 48, 122, .7);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55));
  color: rgba(169, 180, 216, .85);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
}

.footer-base__legal { line-height: 1.6; }
.footer-base__spacer { flex: 1 1 auto; }

/* ---------- 17. Responsive ---------- */
@media (max-width: 1180px) {
  .site-nav__link { padding: 12px 10px; font-size: 14px; }
  .site-nav__idx { display: none; }
}

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    max-height: calc(100vh - 128px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px var(--pad) 20px;
    border-bottom: 1px solid var(--line);
    background: var(--abyss);
    box-shadow: 0 24px 46px rgba(6, 9, 34, .7);
  }

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

  .site-nav__list {
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }

  .site-nav__item { width: 100%; }

  .site-nav__link {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 16px;
    border-color: rgba(38, 48, 122, .8);
    background: rgba(20, 27, 77, .55);
    font-size: 15px;
  }

  .site-nav__idx { display: inline; }

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

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .site-header__ticker { padding-block: 7px; }
  .ticker__text { font-size: 12px; }
}

@media (max-width: 760px) {
  .brand__sub { letter-spacing: .1em; }
  .prose { font-size: 15.5px; }
  .paper { transform: none; }
}

@media (max-width: 600px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: auto; }
  .site-header__bar { gap: 10px; padding-block: 10px; }
  .brand__name { font-size: 15.5px; }
  .brand__sub { font-size: 9.5px; }
  .site-footer__base { gap: 10px 16px; }
  .footer-base__spacer { display: none; }
}

@media (max-width: 560px) {
  .site-header__actions .btn--cta { display: none; }
  .ticker__tag { font-size: 10px; padding: 2px 7px; }
  .ticker__text { font-size: 11.5px; }
}

/* ---------- 18. 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;
  }

  .js [data-reveal] { opacity: 1; transform: none; }
  .paper { transform: none; }
  .btn--cta:hover { transform: none; }
}
