/* ==========================================================================
   维基体育彩票平台 全站共享样式
   文件：/assets/site.css
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-rendering: optimizeSpeed; }
body { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; }

/* ---------- CSS Variables ---------- */
:root {
  --c-bg: #0a1a2f;
  --c-bg-alt: #1f3a5f;
  --c-primary: #39ff14;
  --c-accent: #ff7a00;
  --c-text: #e8f0f8;
  --c-text-dim: #a0b0c0;
  --c-line: #4a90d9;
  --c-glow: #ffcc66;
  --c-ice: #a8d8ea;

  --font-display: Poppins, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'JetBrains Mono', 'Cascadia Code', Menlo, Consolas, 'Courier New', monospace;
  --font-action: Montserrat, 'Segoe UI', system-ui, -apple-system, sans-serif;

  --size-display: clamp(2.5rem, 6vw, 4.5rem);
  --size-h1: 2.2rem;
  --size-h2: 1.6rem;
  --size-h3: 1.2rem;
  --size-body: 1rem;
  --size-small: 0.85rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;

  --container: 1280px;
  --header-top-h: 36px;
  --header-main-h: 72px;
  --header-total-h: calc(var(--header-top-h) + var(--header-main-h));

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition: 0.3s var(--ease);
  --glass: rgba(31, 58, 95, 0.55);
  --glass-border: rgba(168, 216, 234, 0.18);
  --footer-bg: #071526;
}

/* ---------- Base Typography & Body ---------- */
body {
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: 400;
  line-height: 1.75;
  color: var(--c-text);
  background-color: var(--c-bg);
  background-image:
    linear-gradient(rgba(74, 144, 217, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 144, 217, 0.045) 1px, transparent 1px),
    radial-gradient(ellipse at 15% -10%, rgba(74, 144, 217, 0.18), transparent 50%),
    radial-gradient(ellipse at 90% 15%, rgba(57, 255, 20, 0.05), transparent 40%);
  background-size: 44px 44px, 44px 44px, auto, auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text);
  margin-bottom: var(--space-3);
  text-wrap: balance;
}
h1 { font-size: var(--size-h1); }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }
h4 { font-size: var(--size-body); }

p { margin: 0 0 var(--space-3); }
a { transition: color 0.25s ease; }

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

::selection {
  background: rgba(57, 255, 20, 0.25);
  color: var(--c-text);
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.site-main {
  flex: 1 0 auto;
  padding-top: var(--header-total-h);
}
.site-main--flush {
  padding-top: 0;
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: var(--space-3);
  z-index: 2000;
  padding: 0.6rem 1.5rem;
  background: var(--c-accent);
  color: #081526;
  font-family: var(--font-action);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top 0.3s var(--ease);
}
.skip-link:focus-visible {
  top: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(7, 21, 38, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(74, 144, 217, 0.18);
  box-shadow: 0 8px 32px rgba(2, 10, 20, 0.45);
}

/* Header top */
.header-top {
  height: var(--header-top-h);
  overflow: hidden;
  background: rgba(7, 21, 38, 0.75);
  border-bottom: 1px solid rgba(74, 144, 217, 0.15);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.site-header.is-scrolled .header-top {
  background: rgba(7, 21, 38, 0.4);
  border-bottom-color: rgba(74, 144, 217, 0.1);
}
.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  height: 100%;
}

.header-ticker {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--c-text-dim);
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
  margin: 0;
}
.header-ticker .ticker-live,
.header-ticker .ticker-item,
.header-ticker .ticker-sep {
  flex-shrink: 0;
}

.ticker-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  font-family: var(--font-action);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--c-primary);
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.25);
  border-radius: 999px;
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-primary);
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.8);
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

.ticker-sep {
  color: rgba(74, 144, 217, 0.5);
  font-size: 0.6rem;
  margin: 0 0.1rem;
}
.ticker-item {
  color: var(--c-text-dim);
}

.header-tagline {
  font-family: var(--font-action);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ice);
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0;
}

/* Header main */
.header-main {
  height: var(--header-main-h);
  position: relative;
}
.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 100%;
}

/* Brand */
.brand {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  flex-shrink: 0;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--c-text);
}
.brand-mark::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 0.5rem;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  border-radius: 3px 3px 3px 0;
  flex-shrink: 0;
}
.brand-sub {
  font-family: var(--font-action);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  margin-top: 2px;
}

/* Navigation */
.site-nav {
  margin-left: auto;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-link {
  display: block;
  padding: 0.55rem 0.9rem;
  font-family: var(--font-action);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-text-dim);
  border-radius: var(--r-sm);
  position: relative;
  transition: color 0.25s ease, background 0.25s ease;
}
.nav-link:hover {
  color: var(--c-text);
  background: rgba(168, 216, 234, 0.08);
}
.nav-link[aria-current="page"] {
  color: var(--c-primary);
}
.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.12rem;
  height: 2px;
  background: var(--c-primary);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.5);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  border-radius: var(--r-sm);
  font-family: var(--font-action);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--c-glow); outline-offset: 2px; }

.btn-primary {
  background: var(--c-primary);
  color: #081526;
}
.btn-primary:hover {
  background: #4cff30;
  box-shadow: 0 6px 20px rgba(57, 255, 20, 0.25);
}

.btn-accent {
  background: var(--c-accent);
  color: #081526;
}
.btn-accent:hover {
  background: #ff8c26;
  box-shadow: 0 6px 20px rgba(255, 122, 0, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-line);
}
.btn-ghost:hover {
  background: rgba(74, 144, 217, 0.12);
  border-color: var(--c-ice);
}

.header-cta {
  margin-left: var(--space-2);
  flex-shrink: 0;
}
.btn-icon {
  display: inline-block;
  font-size: 1.1em;
  line-height: 1;
}

/* Nav toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: rgba(168, 216, 234, 0.1);
  transition: background 0.25s ease;
  flex-shrink: 0;
}
.nav-toggle:hover {
  background: rgba(168, 216, 234, 0.2);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 3px 0;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Header progress */
.header-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  z-index: 1001;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  flex-shrink: 0;
  margin-top: var(--space-8);
  padding-top: var(--space-7);
  background: var(--footer-bg);
  border-top: 1px solid rgba(74, 144, 217, 0.2);
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c-primary) 0%, transparent 25%, transparent 60%, var(--c-accent) 100%);
  opacity: 0.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
}

.brand-footer {
  margin-bottom: var(--space-4);
}

.footer-desc {
  max-width: 36ch;
  color: var(--c-text-dim);
  font-size: var(--size-small);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.footer-note {
  max-width: 44ch;
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(168, 216, 234, 0.6);
  background: rgba(74, 144, 217, 0.08);
  border-left: 3px solid var(--c-line);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: var(--space-3) var(--space-4);
}

.footer-heading {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
}
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--c-accent);
  border-radius: 2px;
}

.footer-list {
  display: grid;
  gap: 0.45rem;
}
.footer-list a {
  display: inline-flex;
  align-items: center;
  color: var(--c-text-dim);
  font-size: 0.88rem;
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.footer-list a::before {
  content: '▸';
  color: var(--c-primary);
  font-size: 0.8em;
  margin-right: 0.5rem;
}
.footer-list a:hover {
  color: var(--c-text);
  padding-left: 0.35rem;
}

.footer-contact p {
  max-width: 28ch;
  color: var(--c-text-dim);
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: var(--space-2);
}
.footer-contact p:first-of-type {
  color: var(--c-ice);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(74, 144, 217, 0.18);
}
.copyright {
  color: var(--c-text-dim);
  font-size: 0.8rem;
  margin: 0;
}
.footer-icp {
  display: flex;
  align-items: center;
  margin: 0;
}
.icp-link {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(168, 216, 234, 0.25);
  border-radius: 999px;
  color: var(--c-ice);
  font-size: 0.75rem;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.icp-link:hover {
  border-color: var(--c-ice);
  background: rgba(168, 216, 234, 0.08);
  color: var(--c-text);
}

/* ---------- Sections ---------- */
.section {
  padding: var(--space-7) 0;
}
.section--tint {
  background: rgba(31, 58, 95, 0.3);
  border-top: 1px solid rgba(74, 144, 217, 0.15);
  border-bottom: 1px solid rgba(74, 144, 217, 0.15);
}
.section--line {
  border-top: 1px solid rgba(74, 144, 217, 0.2);
}

.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--size-h2);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: var(--space-5);
}
.section-title::before {
  content: '';
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  transform: skewX(-20deg);
  flex-shrink: 0;
}

/* ---------- Page Header ---------- */
.page-header {
  padding: var(--space-7) 0 var(--space-5);
}
.page-header-inner {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: var(--space-6);
  align-items: end;
}
.page-annotation {
  font-family: var(--font-action);
  font-size: var(--size-small);
  line-height: 1.6;
  color: var(--c-text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-left: 3px solid var(--c-accent);
  padding-left: var(--space-3);
}
.page-title {
  font-family: var(--font-display);
  font-size: var(--size-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-text);
  margin: 0;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: var(--space-3) 0;
  font-family: var(--font-action);
  font-size: 0.78rem;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}
.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--c-text-dim);
}
.breadcrumbs li + li::before {
  content: '▸';
  color: var(--c-line);
  font-size: 0.7em;
}
.breadcrumbs a {
  color: var(--c-text-dim);
  transition: color 0.25s ease;
}
.breadcrumbs a:hover {
  color: var(--c-text);
}
.breadcrumbs [aria-current="page"] {
  color: var(--c-primary);
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: var(--space-5);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Cards ---------- */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: var(--space-5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 144, 217, 0.4);
  box-shadow: 0 16px 40px rgba(2, 10, 20, 0.5);
}
.card--solid {
  background: var(--c-bg-alt);
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ---------- Media Frames ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(31, 58, 95, 0.7), rgba(10, 26, 47, 0.4));
  border: 1px solid rgba(74, 144, 217, 0.2);
}
.media-frame::before {
  content: '';
  display: block;
}
.media-frame--16-9::before { padding-top: 56.25%; }
.media-frame--4-3::before { padding-top: 75%; }
.media-frame--1-1::before { padding-top: 100%; }
.media-frame img,
.media-frame video,
.media-frame svg,
.media-frame picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Text Utilities ---------- */
.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--c-text);
  max-width: 60ch;
}
.text-dim {
  color: var(--c-text-dim);
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--c-primary);
  letter-spacing: -0.02em;
}
.text-gradient {
  background: linear-gradient(120deg, var(--c-primary), var(--c-ice));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-action);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--c-text);
  background: rgba(168, 216, 234, 0.1);
  border: 1px solid rgba(168, 216, 234, 0.2);
}
.tag--green {
  color: var(--c-primary);
  background: rgba(57, 255, 20, 0.08);
  border-color: rgba(57, 255, 20, 0.22);
}
.tag--orange {
  color: var(--c-accent);
  background: rgba(255, 122, 0, 0.08);
  border-color: rgba(255, 122, 0, 0.22);
}

/* ---------- Content Area ---------- */
.content-area {
  max-width: 72ch;
}
.content-area ul,
.content-area ol {
  padding-left: var(--space-4);
  margin: 0 0 var(--space-4);
}
.content-area ul { list-style: disc; }
.content-area ol { list-style: decimal; }
.content-area li {
  margin-bottom: var(--space-2);
  color: var(--c-text-dim);
}
.content-area li::marker {
  color: var(--c-primary);
}
.content-area blockquote {
  margin: var(--space-5) 0;
  padding: var(--space-4) var(--space-5);
  background: rgba(31, 58, 95, 0.4);
  border-left: 3px solid var(--c-line);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--c-text);
}

/* ---------- Link Arrow ---------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-action);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--c-accent);
  transition: gap 0.25s ease, color 0.25s ease;
}
.link-arrow::after {
  content: '→';
  transition: transform 0.25s ease;
}
.link-arrow:hover {
  gap: 0.7rem;
  color: var(--c-glow);
}

/* ---------- Scroll Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Nav Lock (body state) ---------- */
body.nav-open {
  overflow: hidden;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root {
    --space-8: 4rem;
    --space-7: 3rem;
  }
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
  .page-header-inner {
    grid-template-columns: 1fr 2fr;
    gap: var(--space-4);
  }
}

@media (max-width: 860px) {
  :root {
    --header-main-h: 64px;
  }
  .header-tagline {
    display: none;
  }
  .header-cta {
    margin-left: 0;
  }
  .nav-toggle {
    display: flex;
  }

  html.js .site-nav {
    position: fixed;
    top: var(--header-total-h);
    right: 0;
    bottom: 0;
    width: min(100%, 340px);
    margin: 0;
    padding: var(--space-6) var(--space-5);
    background: rgba(7, 21, 38, 0.97);
    border-left: 1px solid rgba(74, 144, 217, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.4s var(--ease), visibility 0s linear 0.4s;
    z-index: 999;
    overflow-y: auto;
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.4);
  }
  html.js .site-nav[data-open="true"] {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.4s var(--ease);
  }
  html.js .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
  }
  html.js .nav-link {
    padding: var(--space-3);
    font-size: 1rem;
  }
  html.js .nav-link[aria-current="page"]::after {
    left: var(--space-3);
    right: auto;
    width: 24px;
    bottom: 0.4rem;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
  .page-header-inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: var(--space-3);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-main {
    padding-top: var(--header-total-h);
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 1.25rem, var(--container));
  }
  .header-top-inner {
    justify-content: center;
  }
  .header-ticker {
    width: 100%;
    justify-content: center;
    font-size: 0.72rem;
  }
  .brand-mark {
    font-size: 1.15rem;
  }
  .brand-sub {
    font-size: 0.58rem;
    letter-spacing: 0.24em;
  }
  .header-cta .btn-icon {
    display: none;
  }
  .page-header {
    padding-top: var(--space-6);
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .live-dot {
    animation: none;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
