/* ==========================================================================
   LEYU赛场 · 共享 Site Kit (/assets/site.css)
   高原夜赛转播台：深场夜蓝底 + 暖白战报卡 + 荧光青轨道 + 哨声橙行动点
   ========================================================================== */

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

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

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

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

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

a { color: inherit; }

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

/* ---------- 2. Tokens ---------- */
:root {
  --night: #08131F;
  --night-2: #0F2436;
  --rail: #173247;
  --warm: #F6F1E7;
  --sand: #E6DCCB;
  --cyan: #6FE3D2;
  --orange: #FF7A3D;
  --stone: #A7B3AD;
  --moss: #5F7D6C;
  --clay: #C96B4A;

  --font-num: "Barlow Condensed", "DIN Condensed", "Roboto Condensed", "Noto Sans SC", sans-serif;
  --font-head: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --max: 1280px;
  --pad: 48px;
  --gap: 24px;

  --r-pill: 999px;
  --r-xl: 32px;
  --r-l: 20px;
  --r-m: 14px;
  --r-s: 10px;

  --ease: cubic-bezier(.22, .61, .36, .3);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --line: 1px solid var(--rail);
}

/* ---------- 3. Base ---------- */
body {
  background: var(--night);
  color: var(--warm);
  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;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .01em;
  text-wrap: balance;
}

h1 { font-size: clamp(30px, 4.2vw, 56px); }
h2 { font-size: clamp(24px, 3vw, 40px); }
h3 { font-size: clamp(19px, 2vw, 24px); }
h4 { font-size: 18px; }

p { margin: 0 0 1em; }

/* 数字与轮次标签：窄体大字 + 等宽数字 */
.num {
  font-family: var(--font-num);
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--stone);
}

.serif {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.6;
}

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

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

.card--paper :focus-visible,
.on-paper :focus-visible {
  outline-color: var(--night);
}

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

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 999;
  padding: 12px 22px;
  background: var(--cyan);
  color: var(--night);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--r-m) var(--r-m);
  transform: translate(-50%, -140%);
  transition: transform .18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline: 2px solid var(--warm);
  outline-offset: 3px;
}

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--night-2);
  border-bottom: 1px solid var(--rail);
  color: var(--warm);
}

.site-header[data-open="true"] {
  background: var(--night);
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  pointer-events: none;
  background: rgba(23, 50, 71, .8);
}

.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transition: width .12s linear;
}

/* 转播信号条 */
.header-topline {
  max-height: 40px;
  overflow: hidden;
  background: var(--night);
  border-bottom: 1px solid rgba(23, 50, 71, .9);
  transition: max-height .2s var(--ease), opacity .2s var(--ease);
}

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

.header-topline__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topline-live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--stone);
}

.topline-live__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: topline-pulse 2.4s var(--ease) infinite;
}

@keyframes topline-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(111, 227, 210, .55); }
  50% { box-shadow: 0 0 0 5px rgba(111, 227, 210, 0); }
}

.topline-meta {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--stone);
}

.topline-meta span { color: var(--rail); }

/* 主行：左品牌 / 右导航 */
.header-main {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: min-height .2s var(--ease);
}

.site-header[data-compact="true"] .header-main { min-height: 60px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--warm);
}

.brand__glyph {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  width: 32px;
  height: 32px;
  padding: 5px;
  border-radius: var(--r-s);
  border: 1px solid var(--rail);
  background: linear-gradient(150deg, rgba(111, 227, 210, .18), rgba(255, 122, 61, .16));
}

.brand__glyph i {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: var(--cyan);
  transform: skewX(-12deg);
}

.brand__glyph i:nth-child(1) { height: 9px; opacity: .5; }
.brand__glyph i:nth-child(2) { height: 15px; background: var(--warm); }
.brand__glyph i:nth-child(3) { height: 21px; background: var(--orange); }

.brand__word {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand__name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .02em;
}

.brand__tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .2em;
  color: var(--stone);
}

/* 导航 */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  color: var(--sand);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s var(--ease), background .18s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s var(--ease);
}

.site-nav__link:hover {
  color: var(--warm);
  background: rgba(23, 50, 71, .7);
}

.site-nav__link:hover::after { transform: scaleX(1); }

.site-nav__link[aria-current="page"] {
  background: var(--cyan);
  color: var(--night);
  font-weight: 700;
}

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

.site-nav__aside {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--rail);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}

.pill--accent {
  background: var(--orange);
  color: var(--night);
}

.pill--accent:hover {
  background: #FF9364;
  transform: translateY(-1px);
}

.pill--ghost {
  color: var(--cyan);
  border: 1px solid var(--rail);
  background: rgba(111, 227, 210, .06);
}

.pill--ghost:hover {
  border-color: var(--cyan);
  background: rgba(111, 227, 210, .15);
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--rail);
  background: rgba(23, 50, 71, .5);
  color: var(--warm);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}

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

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.site-header[data-open="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle__bars span:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}

/* ---------- 6. Footer ---------- */
.site-footer {
  position: relative;
  background: var(--night);
  color: var(--warm);
  border-top: 1px solid var(--rail);
  overflow: hidden;
}

.footer-track {
  height: 6px;
  background: repeating-linear-gradient(
    115deg,
    var(--cyan) 0 22px,
    transparent 22px 44px,
    var(--orange) 44px 54px,
    transparent 54px 96px
  );
  opacity: .55;
}

.footer-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px var(--pad) 40px;
  display: grid;
  grid-template-columns: minmax(230px, 1.4fr) repeat(3, minmax(110px, 1fr)) minmax(210px, 1.15fr);
  gap: 36px 32px;
}

.footer-brand__name {
  display: inline-block;
  position: relative;
  font-family: var(--font-num);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
  margin: 0 0 16px;
  color: var(--warm);
}

.footer-brand__name::after {
  content: "";
  position: absolute;
  left: 0;
  right: -6px;
  bottom: -10px;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--cyan) 0 12px,
    transparent 12px 18px,
    var(--orange) 18px 26px,
    transparent 26px 34px
  );
}

.footer-brand__line {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--sand);
}

.footer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  padding: 5px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--rail);
  background: rgba(23, 50, 71, .9);
  color: var(--sand);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.4;
}

.chip--cyan {
  color: var(--cyan);
  border-color: rgba(111, 227, 210, .35);
  background: rgba(111, 227, 210, .08);
}

.footer-col__title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--stone);
}

.footer-col__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col__link {
  display: inline-block;
  padding-bottom: 2px;
  color: var(--sand);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.footer-col__link:hover {
  color: var(--cyan);
  border-bottom-color: var(--clay);
}

.footer-contact__item {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--sand);
  word-break: break-word;
}

.footer-contact__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--stone);
}

.footer-contact__note {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--rail);
  font-size: 12px;
  line-height: 1.7;
  color: var(--stone);
}

.footer-base {
  border-top: 1px solid var(--rail);
  background: rgba(8, 19, 31, .7);
}

.footer-base__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--pad) 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.8;
  color: var(--stone);
}

.footer-copy,
.footer-legal { margin: 0; }

.footer-icp { color: var(--sand); }

.footer-legal a {
  color: var(--stone);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .18s var(--ease);
}

.footer-legal a:hover { color: var(--cyan); }

/* ---------- 7. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.rule {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--rail);
}

.grid {
  display: grid;
  gap: var(--gap);
}

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

.grid--bento > * { min-width: 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--cyan);
}

.section-title {
  margin: 0;
}

/* ---------- 8. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: var(--night);
}

.btn--primary:hover {
  background: #FF9364;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--warm);
  border-color: var(--rail);
}

.btn--ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.btn--quiet {
  background: rgba(111, 227, 210, .1);
  color: var(--cyan);
}

.btn--quiet:hover {
  background: rgba(111, 227, 210, .2);
}

/* ---------- 9. Breadcrumbs ---------- */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--stone);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: var(--rail);
}

.breadcrumbs__link {
  color: var(--stone);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.breadcrumbs__link:hover { color: var(--cyan); }

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

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

.prose p { margin: 0 0 1.1em; }

.prose h2,
.prose h3 {
  margin: 1.8em 0 .6em;
  color: var(--warm);
}

.prose ul,
.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.35em;
  list-style: revert;
}

.prose li { margin-bottom: .45em; }

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

.prose strong { color: var(--warm); }

.prose blockquote {
  margin: 1.4em 0;
  padding: 8px 0 8px 18px;
  border-left: 2px solid var(--clay);
  font-family: var(--font-serif);
  color: var(--warm);
}

/* ---------- 11. Card / Tag ---------- */
.card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--rail);
  border-radius: var(--r-l);
  background: var(--night-2);
  transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}

.card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .95);
}

.card--paper {
  background: var(--warm);
  color: var(--night);
  border-color: var(--sand);
}

.card--paper:hover { border-color: var(--orange); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(95, 125, 108, .5);
  background: rgba(95, 125, 108, .22);
  color: #C8DCD0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.4;
}

.tag--cyan {
  color: var(--cyan);
  border-color: rgba(111, 227, 210, .35);
  background: rgba(111, 227, 210, .12);
}

.tag--orange {
  color: #FFA47C;
  border-color: rgba(255, 122, 61, .38);
  background: rgba(255, 122, 61, .14);
}

.tag--paper {
  color: var(--night);
  border-color: rgba(8, 19, 31, .2);
  background: rgba(8, 19, 31, .08);
}

/* ---------- 12. Media frame ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--rail);
  border-radius: var(--r-l);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(160deg, rgba(111, 227, 210, .1), rgba(8, 19, 31, 0) 45%),
    repeating-linear-gradient(115deg, rgba(23, 50, 71, .9) 0 2px, transparent 2px 26px),
    var(--night-2);
}

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

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--sand);
  background: linear-gradient(to top, rgba(8, 19, 31, .94), rgba(8, 19, 31, 0));
}

/* ---------- 13. Reveal ---------- */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .24s var(--ease), transform .24s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

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

[data-spy-link].is-active {
  color: var(--cyan);
}

/* ---------- 14. Responsive ---------- */
@media (max-width: 1180px) and (min-width: 1024px) {
  .site-nav__link { padding: 8px 8px; font-size: 13px; }
  .site-nav__aside { padding-left: 10px; gap: 6px; }
  .site-nav__aside .pill { height: 30px; padding: 0 12px; font-size: 12px; }
  .brand__tagline { display: none; }
}

@media (max-width: 1100px) {
  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 28px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-contact__note { max-width: 60ch; }
}

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    padding: 20px var(--pad) 36px;
    background: var(--night);
    border-top: 1px solid var(--rail);
    border-bottom: 1px solid var(--rail);
    max-height: calc(100vh - 92px);
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 1);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s linear;
  }

  .site-header[data-open="true"] .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

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

  .site-nav__link {
    display: block;
    padding: 16px 14px;
    font-size: 20px;
    border-radius: var(--r-m);
    border-bottom: 1px solid rgba(23, 50, 71, .55);
  }

  .site-nav__link::after { display: none; }

  .site-nav__aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
    padding: 20px 0 0;
    border-left: 0;
    border-top: 1px solid var(--rail);
  }

  .site-nav__aside .pill {
    height: 46px;
    font-size: 14px;
  }

  .header-main { min-height: 64px; }
  .site-header[data-compact="true"] .header-main { min-height: 58px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .site-nav__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .site-nav__link { border-bottom: 0; }
}

@media (max-width: 1024px) {
  :root { --pad: 32px; --gap: 20px; }
}

@media (max-width: 768px) {
  :root { --pad: 24px; --gap: 16px; }

  body { font-size: 15px; }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 46px;
    gap: 28px 24px;
  }

  .footer-base__inner {
    padding-bottom: 28px;
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 560px) {
  .grid--bento { grid-template-columns: minmax(0, 1fr); }

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

  .site-nav__aside { grid-template-columns: 1fr; }

  .brand__name { font-size: 18px; }
  .brand__tagline { letter-spacing: .14em; }

  .header-topline__inner { justify-content: flex-start; }
  .topline-meta { display: none; }

  .btn { min-height: 48px; width: 100%; }
}

@media (max-width: 480px) {
  :root { --pad: 20px; }
  .site-nav__link { font-size: 18px; padding: 14px 12px; }
}

/* ---------- 15. 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.js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .skip-link { transition: none; }
}
