/* =========================================================
   LEYU体育 — /assets/site.css
   共享外壳 + 基础组件
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 160px;
}

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

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

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

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

a { color: inherit; }

/* ---------- 2. Tokens ---------- */
:root {
  --night: #061426;
  --night-2: #0C2036;
  --rock: #132C46;
  --snow: #EAF3F7;
  --dust: #93A9BC;
  --cyan: #18E0C8;
  --lake: #2AA79B;
  --flag: #F2652A;
  --gold: #FFC24B;
  --line: #274056;
  --paper: #F4F7F9;
  --ink: #16283A;
  --ink-soft: #43586B;

  --font-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: var(--font-head);
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace,
    SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1280px;
  --gutter: clamp(18px, 4vw, 44px);
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. Base ---------- */
html { background: var(--night); }

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--snow);
  background-color: var(--night);
  background-image:
    radial-gradient(1100px 560px at 84% -6%, rgba(24, 224, 200, .10), transparent 62%),
    radial-gradient(900px 520px at 4% 2%, rgba(242, 101, 42, .085), transparent 64%),
    linear-gradient(180deg, #061426 0%, #081B2F 52%, #061426 100%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--snow);
}

h1 { font-size: clamp(2.75rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.25; }
h4 { font-size: 1.0625rem; line-height: 1.35; letter-spacing: 0; }

p { max-width: 38em; }

a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--gold); }

strong { font-weight: 700; color: var(--snow); }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection { background: var(--cyan); color: #04121F; }

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

.section {
  padding-block: clamp(60px, 8.5vw, 140px);
  border-top: 1px solid var(--line);
}

.section__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(16px, 3vw, 42px);
  align-items: start;
  margin-bottom: clamp(26px, 4vw, 56px);
}

.section__num {
  font-family: var(--font-mono);
  font-size: clamp(3.4rem, 7vw, 6rem);
  font-weight: 700;
  line-height: .78;
  letter-spacing: -0.05em;
  color: var(--cyan);
  opacity: .26;
  font-variant-numeric: tabular-nums;
}

.section__title { max-width: 22em; }

.section__kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lake);
  margin-bottom: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}

.layout-editorial {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

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

/* ---------- 5. Typographic helpers ---------- */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dust);
}

.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.8;
  color: var(--dust);
  max-width: 34em;
}

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

/* ---------- 6. Skip link ---------- */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -80px;
  z-index: 200;
  display: inline-block;
  padding: 11px 20px;
  background: var(--cyan);
  color: #04121F;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: #04121F; }

/* ---------- 7. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 20, 38, .90);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease);
}

.site-header[data-stuck="true"] {
  background: rgba(6, 20, 38, .98);
  box-shadow: 0 18px 40px -32px rgba(0, 0, 0, .9);
}

.header-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 24px var(--gutter) 0;
  transition: padding .3s var(--ease);
}

.site-header[data-stuck="true"] .header-inner {
  padding-top: 12px;
}

.header-rail {
  position: absolute;
  right: var(--gutter);
  top: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: top .3s var(--ease);
}

.site-header[data-stuck="true"] .header-rail { top: 14px; }

.header-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dust);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: var(--radius);
  white-space: nowrap;
}

.ghost-action {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--snow);
  border: 1px solid var(--line);
  padding: 6px 11px;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.ghost-action:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--snow);
  text-align: center;
}
.masthead:hover { color: var(--snow); }

.masthead__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  background: linear-gradient(92deg, var(--snow) 0%, var(--snow) 62%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: font-size .3s var(--ease);
}

.site-header[data-stuck="true"] .masthead__name {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
}

.masthead__tagline {
  display: block;
  overflow: hidden;
  max-height: 26px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  color: var(--dust);
  transition: max-height .3s var(--ease), opacity .24s var(--ease), margin .3s var(--ease);
}

.site-header[data-stuck="true"] .masthead__tagline {
  max-height: 0;
  opacity: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--snow);
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }

.nav-toggle__bar {
  display: block;
  width: 15px;
  height: 1.5px;
  background: currentColor;
  transition: transform .24s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child {
  transform: translateY(3px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
}

.toast {
  position: absolute;
  left: 50%;
  top: 100%;
  z-index: 70;
  margin: 0;
  max-width: min(90vw, 460px);
  padding: 10px 16px;
  background: var(--rock);
  border: 1px solid var(--cyan);
  color: var(--snow);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: .02em;
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.toast[data-show="true"] {
  opacity: 1;
  transform: translate(-50%, 10px);
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 18px;
  padding: 0 var(--gutter);
  border-top: 1px solid var(--line);
  transition: margin .3s var(--ease);
}

.site-header[data-stuck="true"] .site-nav { margin-top: 10px; }

.site-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 34px);
  max-width: var(--wrap);
  margin: 0 auto;
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 13px 2px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--dust);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.site-nav__link:hover { color: var(--snow); border-bottom-color: var(--cyan); }

.site-nav__link[aria-current="page"] {
  color: var(--snow);
  font-weight: 700;
}
.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--flag));
}

.site-nav__meta {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px 9px 16px;
  background: var(--flag);
  color: #0B1A2A;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - 11px) 100%, 0 100%);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-cta:hover { background: var(--gold); color: #0B1A2A; }

.scroll-meter {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--lake), var(--flag));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .12s linear;
  pointer-events: none;
}

/* ---------- 8. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: 14px 26px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  text-decoration: none;
  color: var(--snow);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease),
    background .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { color: var(--cyan); border-color: var(--cyan); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  padding-right: 34px;
  background: var(--flag);
  border-color: transparent;
  color: #0B1A2A;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.btn--primary:hover {
  background: var(--gold);
  color: #0B1A2A;
  border-color: transparent;
}

.btn--line {
  border-color: var(--lake);
  color: var(--cyan);
}
.btn--line:hover {
  border-color: var(--cyan);
  color: var(--night);
  background: var(--cyan);
}

.slant-box {
  padding: clamp(20px, 3vw, 34px);
  background: linear-gradient(100deg, rgba(242, 101, 42, .96), rgba(242, 101, 42, .62));
  color: #0B1A2A;
  clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 100%, 0 100%);
}
.slant-box p { color: #0B1A2A; }

/* ---------- 9. Breadcrumb ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--dust);
  padding-top: 26px;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .5em;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: .5em;
  color: var(--line);
}
.breadcrumb a {
  color: var(--dust);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--snow); }

/* ---------- 10. Data card ---------- */
.data-card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--rock);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .24s var(--ease), transform .24s var(--ease),
    box-shadow .24s var(--ease);
}
.data-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 24px 48px -36px rgba(24, 224, 200, .7);
}

.data-card__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dust);
  margin-bottom: 10px;
}

.data-card__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.data-card__meta {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--dust);
}

/* ---------- 11. Tag & chips ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--dust);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease),
    background .2s var(--ease);
}
.chip:hover { color: var(--snow); border-color: var(--cyan); }
.chip[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04121F;
  font-weight: 700;
}

/* ---------- 12. Tabs ---------- */
.tabs {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(19, 44, 70, .45);
  overflow: hidden;
}

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.tabs__btn {
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dust);
  cursor: pointer;
  border-right: 1px solid var(--line);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.tabs__btn:hover { color: var(--snow); background: rgba(24, 224, 200, .07); }
.tabs__btn[aria-selected="true"] {
  color: #04121F;
  background: var(--cyan);
  font-weight: 700;
}

.tabs__panel {
  padding: clamp(16px, 2.4vw, 26px);
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--dust);
  overflow-x: auto;
}
.tabs__panel[hidden] { display: none; }

/* ---------- 13. Panel (details) ---------- */
.panel {
  background: rgba(19, 44, 70, .5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .24s var(--ease);
}
.panel + .panel { margin-top: 12px; }
.panel:hover { border-color: rgba(24, 224, 200, .55); }
.panel[open] { border-color: rgba(24, 224, 200, .7); }

.panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--snow);
  cursor: pointer;
  list-style: none;
}
.panel > summary::-webkit-details-marker { display: none; }
.panel > summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--cyan);
  transition: transform .24s var(--ease);
}
.panel[open] > summary::after { transform: rotate(45deg); }
.panel[open] > summary { border-bottom: 1px solid var(--line); }

.panel__body {
  padding: 16px 20px 20px;
  font-size: 15.5px;
  color: var(--dust);
}
.panel__body p { max-width: 40em; }
.panel__body p + p { margin-top: .9em; }

/* ---------- 14. Media ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  background:
    linear-gradient(150deg, #0A1D33 0%, #132C46 46%, #0B233A 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(155deg, rgba(24, 224, 200, .10), transparent 46%, rgba(242, 101, 42, .12));
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--21x9 { aspect-ratio: 21 / 9; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--1x1 { aspect-ratio: 1 / 1; }

.media__caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--snow);
  opacity: .8;
}

/* ---------- 15. Prose / paper ---------- */
.prose {
  max-width: 40em;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--dust);
}
.prose p { max-width: none; }
.prose p + p { margin-top: 1.1em; }
.prose h2,
.prose h3 { color: var(--snow); margin-top: 1.8em; margin-bottom: .6em; }
.prose ul,
.prose ol { padding-left: 1.3em; margin-block: 1em; }
.prose li + li { margin-top: .5em; }
.prose a { color: var(--lake); text-decoration: underline; }
.prose a:hover { color: var(--cyan); }

.paper {
  background: var(--paper);
  color: var(--ink);
  padding-block: clamp(40px, 6vw, 88px);
}
.paper h2,
.paper h3,
.paper h4 { color: var(--ink); }
.paper .prose { color: var(--ink-soft); }
.paper .prose h2,
.paper .prose h3 { color: var(--ink); }
.paper .prose a { color: #1a7f76; }
.paper .rule { background: rgba(22, 40, 58, .16); }

/* ---------- 16. Motion ---------- */
[data-reveal] {
  transition: opacity .42s var(--ease), transform .42s var(--ease);
}
[data-reveal].reveal-pending {
  opacity: 0;
  transform: translateY(12px);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 17. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 120px);
  padding-block: clamp(48px, 7vw, 88px) 30px;
  background: var(--night-2);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--lake), var(--flag), transparent);
  opacity: .75;
}
.site-footer::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -30%;
  width: 60%;
  height: 90%;
  background: radial-gradient(closest-side, rgba(24, 224, 200, .10), transparent);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.7fr repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}

.footer-brand { max-width: 26em; }

.footer-masthead {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  letter-spacing: -0.03em;
  color: var(--snow);
  text-decoration: none;
}
.footer-masthead:hover { color: var(--cyan); }

.footer-line {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--dust);
  max-width: 24em;
}
.footer-line--muted {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: #6F879C;
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lake);
  margin-bottom: 14px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-list a {
  font-size: 14.5px;
  color: var(--dust);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.footer-list a:hover {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 34px;
  margin-top: clamp(32px, 4vw, 54px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--dust);
}

.footer-legal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: #6F879C;
}

.footer-legal__copy { max-width: none; }

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-legal__links a {
  color: var(--dust);
  text-decoration: none;
}
.footer-legal__links a:hover { color: var(--cyan); }

.footer-legal__icp { max-width: none; }

.footer-note {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  max-width: 62em;
  font-size: 12px;
  line-height: 1.7;
  color: #6F879C;
}

/* ---------- 18. Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
    max-width: 34em;
  }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 120px; }

  .header-inner {
    padding-top: 14px;
    padding-bottom: 12px;
  }
  .site-header[data-stuck="true"] .header-inner { padding-top: 10px; }

  .header-rail {
    position: static;
    align-self: center;
    justify-content: center;
    margin-bottom: 8px;
    order: 0;
  }
  .site-header[data-stuck="true"] .header-rail { top: auto; }

  .masthead { order: 1; }
  .nav-toggle { display: inline-flex; order: 2; }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 0;
    padding: 0 var(--gutter) 20px;
  }
  .site-nav[data-open="true"] { display: flex; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin: 0;
  }
  .site-nav__list li { border-bottom: 1px solid var(--line); }
  .site-nav__list li:first-child { border-top: 1px solid var(--line); }

  .site-nav__link {
    display: block;
    padding: 15px 2px;
    font-size: 16px;
  }
  .site-nav__link[aria-current="page"]::after { display: none; }

  .site-nav__meta {
    position: static;
    transform: none;
    margin-top: 18px;
  }
  .nav-cta {
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    clip-path: none;
    font-size: 14px;
  }

  .layout-editorial { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .section__head {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .section__num { font-size: 3.2rem; }

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

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

  .footer-legal { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .masthead__tagline { letter-spacing: .12em; font-size: 10.5px; }
  .header-badge { display: none; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-contact { flex-direction: column; gap: 6px; }
}

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