/* ============================================================
   19体育主站 · 速达新版 — /assets/site.css
   夜场矿物控制台：共享外壳 + 基础组件
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}

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

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

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

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

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

input, select, textarea { font: inherit; color: inherit; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink-900: #081B16;
  --ink-800: #102E25;
  --ink-700: #0C251D;
  --moss: #4E6B5C;
  --stone: #2D3835;
  --cream: #F4EFE2;
  --cyan: #42F5D1;
  --orange: #FF6B35;
  --clay: #B8735A;
  --mist: #8FA69D;

  --text-strong: #F4EFE2;
  --text-body: rgba(244, 239, 226, 0.86);
  --text-soft: #8FA69D;
  --text-dark: #081B16;
  --line: rgba(78, 107, 92, 0.45);
  --line-soft: rgba(143, 166, 157, 0.28);

  --r-pill: 999px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;

  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 48px);

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

  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
  --shadow-deep: 0 22px 48px -28px rgba(0, 0, 0, 0.8);
}

/* ---------- 3. Base & typography ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(90% 60% at 10% -12%, rgba(66, 245, 209, 0.13), transparent 62%),
    radial-gradient(72% 52% at 102% -4%, rgba(255, 107, 53, 0.1), transparent 66%),
    radial-gradient(64% 44% at 50% 118%, rgba(78, 107, 92, 0.32), transparent 72%);
  background-attachment: fixed;
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 1024px) {
  body { font-size: 17px; }
}

h1, h2, h3, h4, h5 {
  color: var(--text-strong);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(32px, 4.6vw, 44px); }
h2 { font-size: clamp(22px, 2.8vw, 28px); }
h3 { font-size: 20px; line-height: 1.32; }
h4 { font-size: 17px; line-height: 1.4; }

strong, b { font-weight: 700; color: var(--text-strong); }

small { font-size: 13px; }

::selection {
  background: rgba(66, 245, 209, 0.28);
  color: #EBFFF9;
}

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

.section {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px);
}

.section--tight { padding-block: clamp(28px, 4vw, 52px); }

.section--paper {
  background: var(--cream);
  color: var(--text-dark);
}

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

.stack {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 20px);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: 1 / -1; }

@media (max-width: 960px) {
  .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: 1 / -1; }
}

.divider {
  height: 1px;
  border: 0;
  margin-block: clamp(24px, 4vw, 40px);
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.visually-hidden {
  position: absolute !important;
  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;
}

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

/* ---------- 5. Buttons & chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--orange);
  color: #0B1A14;
  font-weight: 800;
  box-shadow: 0 10px 26px -16px rgba(255, 107, 53, 0.95);
}

.btn-primary:hover { background: #FF8355; }

.btn-ghost {
  background: rgba(244, 239, 226, 0.04);
  border-color: rgba(244, 239, 226, 0.26);
  color: var(--text-strong);
}

.btn-ghost:hover {
  border-color: rgba(66, 245, 209, 0.55);
  color: var(--cyan);
  background: rgba(66, 245, 209, 0.08);
}

.btn-quiet {
  min-height: 40px;
  padding: 0 14px;
  color: var(--cyan);
  border-color: rgba(66, 245, 209, 0.34);
  background: transparent;
}

.btn-quiet:hover { background: rgba(66, 245, 209, 0.1); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(66, 245, 209, 0.32);
  border-radius: var(--r-pill);
  background: rgba(66, 245, 209, 0.1);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chip--orange {
  color: var(--orange);
  border-color: rgba(255, 107, 53, 0.38);
  background: rgba(255, 107, 53, 0.12);
}

.chip--stone {
  color: var(--mist);
  border-color: var(--line-soft);
  background: rgba(45, 56, 53, 0.6);
}

/* ---------- 6. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--cyan);
  color: #04170F;
  font-size: 14px;
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

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

/* ---------- 7. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(8, 27, 22, 0.97), rgba(8, 27, 22, 0.87));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  transition: box-shadow 0.24s ease;
}

.site-header[data-condensed="true"] {
  box-shadow: 0 18px 34px -26px #000;
}

.header-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 0 12px;
  transition: padding 0.24s var(--ease);
}

.site-header[data-condensed="true"] .masthead { padding: 8px 0 6px; }

.header-status {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.18);
  animation: status-pulse 2.6s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.42; }
}

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 5px 10px;
  border-radius: 18px;
  transition: background-color 0.18s ease;
}

.brand:hover { background: rgba(244, 239, 226, 0.05); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: linear-gradient(145deg, var(--cyan) 0%, #27B79C 62%, #1B8E7B 100%);
  color: #04170F;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 22px -12px rgba(66, 245, 209, 0.85);
  transition: width 0.24s var(--ease), height 0.24s var(--ease), font-size 0.24s var(--ease);
}

.brand-mark--sm {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  font-size: 11px;
  box-shadow: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.12;
  text-align: left;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-strong);
}

.brand-tagline {
  max-height: 18px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: max-height 0.24s var(--ease), opacity 0.2s ease;
}

.site-header[data-condensed="true"] .brand-tagline {
  max-height: 0;
  opacity: 0;
}

.site-header[data-condensed="true"] .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 15px;
}

.masthead-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(244, 239, 226, 0.26);
  border-radius: var(--r-pill);
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-toggle:hover { border-color: rgba(66, 245, 209, 0.5); color: var(--cyan); }

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.2s 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-toggle-text { line-height: 1; }

.primary-nav {
  border-top: 1px solid rgba(78, 107, 92, 0.32);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 6px 0 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  border-radius: var(--r-pill);
  color: rgba(244, 239, 226, 0.78);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.nav-link:hover {
  color: var(--text-strong);
  background: rgba(244, 239, 226, 0.06);
}

.nav-link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(66, 245, 209, 0.12);
  box-shadow: inset 0 0 0 1px rgba(66, 245, 209, 0.42);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(78, 107, 92, 0.32);
  overflow: hidden;
}

.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transition: transform 0.12s linear;
}

/* ---------- 8. Footer ---------- */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #071712 0%, var(--ink-900) 46%, #06120F 100%);
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 6vw, 68px);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--orange), transparent);
  opacity: 0.5;
}

.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.2fr 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.footer-col { min-width: 0; }

.footer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--text-strong);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-list {
  display: grid;
  gap: 2px;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(244, 239, 226, 0.78);
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding-block: 4px;
  color: inherit;
  transition: color 0.16s ease;
}

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

.footer-strong {
  color: var(--text-strong);
  font-weight: 700;
}

.footer-strong::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 14px;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--orange);
}

.footer-col--feedback {
  padding: 18px 20px 20px;
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(255, 107, 53, 0.09), rgba(16, 46, 37, 0.55));
}

.footer-meta {
  display: inline-block;
  padding-block: 3px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.footer-note {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-soft);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-block: 20px 26px;
  border-top: 1px solid rgba(78, 107, 92, 0.34);
  font-size: 12.5px;
  color: var(--text-soft);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}

.footer-legal a { color: var(--text-soft); transition: color 0.16s ease; }
.footer-legal a:hover { color: var(--cyan); }

.footer-contact {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

/* ---------- 9. Shared components ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: clamp(18px, 2.4vw, 28px);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title { color: var(--text-strong); }

.section-note {
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-soft);
}

.panel {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, var(--ink-800), var(--ink-700) 70%, #0A211A 100%);
  box-shadow: var(--shadow-deep);
}

.panel--paper {
  background: var(--cream);
  border-color: rgba(8, 27, 22, 0.08);
  color: var(--text-dark);
}

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

.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  background-color: var(--stone);
  background-image:
    radial-gradient(120% 100% at 18% 0%, rgba(66, 245, 209, 0.2), transparent 58%),
    radial-gradient(110% 100% at 92% 100%, rgba(255, 107, 53, 0.18), transparent 56%),
    linear-gradient(140deg, var(--stone), #1A241F);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 239, 226, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 226, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mix-blend-mode: screen;
}

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

.media-frame__label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(8, 27, 22, 0.82);
  color: var(--text-strong);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.breadcrumbs { margin-bottom: clamp(16px, 2vw, 24px); }

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.breadcrumbs li { display: inline-flex; align-items: center; }

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--moss);
}

.breadcrumbs a { color: var(--text-soft); transition: color 0.16s ease; }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--text-strong); }

.section--paper .breadcrumbs ol,
.section--paper .breadcrumbs a { color: rgba(8, 27, 22, 0.62); }

.prose {
  max-width: 72ch;
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.78;
}

.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 1.8em; font-size: clamp(22px, 2.6vw, 28px); }
.prose h3 { margin-top: 1.6em; }
.prose p { max-width: 68ch; }

.prose ul,
.prose ol {
  padding-left: 1.25em;
  display: grid;
  gap: 0.4em;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--cyan); }

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

.prose blockquote {
  padding: 14px 20px;
  border-left: 3px solid var(--clay);
  border-radius: var(--r-sm);
  background: rgba(45, 56, 53, 0.5);
  color: rgba(244, 239, 226, 0.9);
}

.prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(45, 56, 53, 0.7);
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--cyan);
}

.prose--light {
  padding: clamp(22px, 3.4vw, 40px);
  border-radius: var(--r-lg);
  background: var(--cream);
  color: rgba(8, 27, 22, 0.84);
  max-width: none;
}

.prose--light h2,
.prose--light h3,
.prose--light h4 { color: var(--ink-900); }

.prose--light a { color: #0E6E5B; }
.prose--light li::marker { color: var(--clay); }

.prose--light blockquote {
  background: rgba(8, 27, 22, 0.05);
  border-left-color: var(--clay);
  color: rgba(8, 27, 22, 0.82);
}

/* ---------- 10. Reveal motion ---------- */
[data-reveal-ready] .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 80ms);
}

[data-reveal-ready] .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 11. Focus ---------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.btn:focus-visible,
.nav-toggle:focus-visible,
.nav-link:focus-visible,
.chip:focus-visible {
  outline-offset: 4px;
  border-radius: var(--r-pill);
}

/* ---------- 12. Responsive: header ---------- */
@media (max-width: 1080px) {
  .header-status { font-size: 10.5px; letter-spacing: 0.1em; }
  .nav-link { padding: 0 12px; font-size: 14px; }
}

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

  .masthead {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 10px 0;
  }

  .header-status { display: none; }
  .brand { justify-self: start; padding-left: 0; }
  .brand-mark { width: 38px; height: 38px; font-size: 15px; }
  .brand-name { font-size: 17px; }
  .masthead-actions { gap: 8px; }
  .masthead-actions .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    border-top: 1px solid transparent;
    transition: max-height 0.3s var(--ease), opacity 0.22s ease, visibility 0.22s linear;
  }

  .primary-nav[data-open="true"] {
    max-height: 380px;
    opacity: 1;
    visibility: visible;
    border-top-color: var(--line);
  }

  .nav-list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 0 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .nav-list::-webkit-scrollbar { height: 4px; }
  .nav-list::-webkit-scrollbar-thumb { background: var(--moss); border-radius: 4px; }

  .nav-link {
    flex: 0 0 auto;
    font-size: 14px;
    background: rgba(244, 239, 226, 0.05);
    box-shadow: inset 0 0 0 1px rgba(244, 239, 226, 0.09);
  }
}

@media (max-width: 560px) {
  .brand-tagline { display: none; }
  .brand-name { font-size: 16px; }
  .masthead-actions .btn-primary { padding: 0 14px; font-size: 13px; min-height: 40px; }
  .nav-toggle { padding: 0 12px; }
  .nav-toggle-text { display: none; }
}

@media (pointer: coarse) {
  .footer-list a { min-height: 44px; }
}

/* ---------- 13. Responsive: footer ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col--feedback { order: 0; }
}

@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .footer-legal { gap: 6px 14px; }
}

/* ---------- 14. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal-ready] .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-progress { display: none; }
  .status-dot { animation: none; }
}
