/* ============================================================
   易倍综合赛场 — 共享样式 /assets/site.css
   夜墨绿控制室 · Bento 拼贴 · 粗野主义边框
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

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

body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; text-decoration: none; }

:root {
  --ink-900: #07130F;
  --ink-800: #0E211B;
  --ink-700: #142C24;
  --line-600: #1E4034;
  --signal: #FF6A1A;
  --cyan: #38F2C8;
  --paper: #E8EFEA;
  --muted: #9BB0A6;
  --amber: #FFC24B;
  --off: #4E6B60;

  --font-display: "Arial Narrow", "Helvetica Neue Condensed", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: system-ui, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, "Courier New", monospace;

  --border: 2px solid var(--line-600);
  --border-ink: 2px solid #000;
  --shadow-hard: 6px 6px 0 rgba(0, 0, 0, 0.45);
  --shadow-hard-sm: 3px 3px 0 rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);

  --shell: min(1240px, 100% - 48px);
  --header-offset: 92px;
}

body {
  background-color: var(--ink-900);
  background-image:
    radial-gradient(900px 520px at 10% -12%, rgba(56, 242, 200, 0.07), transparent 70%),
    radial-gradient(760px 440px at 94% 2%, rgba(255, 106, 26, 0.08), transparent 72%),
    linear-gradient(rgba(30, 64, 52, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 64, 52, 0.28) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  background-attachment: fixed, fixed, scroll, scroll;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  padding-top: var(--header-offset);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--signal); color: #120602; }

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

/* ---------- 跳至内容 ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -120px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--signal);
  color: #120602;
  border: var(--border-ink);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ============================================================
   头部：两枚悬浮胶囊
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 18px 0;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(7, 19, 15, 0.94), rgba(7, 19, 15, 0.55) 62%, rgba(7, 19, 15, 0));
  transition: padding 0.24s var(--ease), background-color 0.24s var(--ease), border-color 0.24s var(--ease);
}
.site-header[data-condensed] {
  padding: 10px 0;
  background: rgba(7, 19, 15, 0.94);
  border-bottom: 1px solid var(--line-600);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-inner {
  position: relative;
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 品牌胶囊 */
.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 12px;
  border: var(--border);
  border-radius: 999px;
  background: var(--ink-700);
  box-shadow: var(--shadow-hard-sm);
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.brand-pill:hover {
  transform: translate(-1px, -1px);
  border-color: var(--signal);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
}

.brand-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  width: 18px;
  height: 18px;
}
.brand-mark i { display: block; width: 4px; background: var(--signal); }
.brand-mark i:nth-child(1) { height: 9px; }
.brand-mark i:nth-child(2) { height: 18px; background: var(--cyan); }
.brand-mark i:nth-child(3) { height: 13px; }

.brand-text { display: inline-flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--paper);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

/* 栏目胶囊 */
.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 8px;
  border: var(--border);
  border-radius: 999px;
  background: rgba(20, 44, 36, 0.88);
  box-shadow: var(--shadow-hard-sm);
}

.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-item { display: block; }

.nav-link {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--paper);
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.nav-link:hover {
  color: var(--cyan);
  background: rgba(56, 242, 200, 0.08);
  border-color: rgba(56, 242, 200, 0.4);
}
.nav-link[aria-current="page"] {
  color: #120602;
  background: var(--signal);
  border-color: #000;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.35);
}

.nav-meter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  border-left: 2px solid var(--line-600);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
}
.meter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: emcPulse 2s var(--ease) infinite;
}
.meter-text { line-height: 1; }

/* CTA 与折叠按钮 */
.header-cta { margin-inline-start: auto; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: var(--border);
  border-radius: 999px;
  background: var(--ink-700);
  box-shadow: var(--shadow-hard-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--paper);
  cursor: pointer;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.nav-toggle:hover { border-color: var(--signal); color: var(--signal); }
.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 4px; width: 16px; }
.nav-toggle-bars i {
  display: block;
  height: 2px;
  background: var(--signal);
  transition: transform 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:last-child { transform: translateY(-3px) rotate(-45deg); }

@keyframes emcPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.5; }
}

/* ============================================================
   通用按钮 / 标签 / 卡片
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn-sm { padding: 9px 16px; font-size: 11px; }

.btn-primary { background: var(--signal); color: #120602; border-color: #000; }
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.55); }

.btn-ghost { background: transparent; color: var(--paper); border-color: var(--line-600); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-600);
  border-radius: 2px;
  background: var(--ink-800);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.tag--signal { color: var(--signal); border-color: rgba(255, 106, 26, 0.5); }
.tag--cyan { color: var(--cyan); border-color: rgba(56, 242, 200, 0.4); }

.pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: emcPulse 2s var(--ease) infinite;
}

/* ============================================================
   版心 / 章节 / 排版
   ============================================================ */
.container { width: var(--shell); margin-inline: auto; }

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(36px, 5vw, 56px) 0; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--signal); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.title-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.lede { font-size: 18px; color: var(--paper); max-width: 42em; }

.prose { max-width: 42em; color: var(--muted); }
.prose p + p { margin-top: 1em; }
.prose h2, .prose h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--paper);
  margin-top: 1.6em;
  margin-bottom: 0.5em;
  line-height: 1.3;
}
.prose h2 { font-size: 24px; }
.prose h3 { font-size: 19px; }
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(56, 242, 200, 0.4); }
.prose a:hover { border-bottom-color: var(--cyan); }
.prose strong { color: var(--paper); }

.divider {
  height: 2px;
  border: 0;
  background: linear-gradient(90deg, var(--line-600), rgba(30, 64, 52, 0));
  margin: 40px 0;
}

/* ---------- 网格 ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}
.g-span-2 { grid-column: span 2; }
.g-span-3 { grid-column: span 3; }
.g-span-4 { grid-column: span 4; }
.g-span-6 { grid-column: span 6; }
.g-span-8 { grid-column: span 8; }
.g-span-12 { grid-column: span 12; }
.g-nudge { margin-top: 24px; }

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  padding: 24px;
  border: var(--border);
  border-radius: 4px;
  background: var(--ink-700);
  box-shadow: var(--shadow-hard);
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 4px;
  background: var(--signal);
}
.card--flat { background: var(--ink-800); box-shadow: none; }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.card-body { color: var(--muted); font-size: 15px; }
.card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  border: 1px solid var(--line-600);
  border-radius: 2px;
  padding: 3px 8px;
  white-space: nowrap;
}

/* ---------- 大号数字 ---------- */
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--signal);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: var(--border);
  border-radius: 4px;
  background: var(--ink-800);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.08) brightness(0.86);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 19, 15, 0) 42%, rgba(7, 19, 15, 0.74));
  pointer-events: none;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.crumb { color: var(--muted); }
.crumb + .crumb::before { content: "/"; margin-right: 8px; color: var(--line-600); }
.crumb a:hover { color: var(--cyan); }
.crumb[aria-current="page"] { color: var(--paper); }

/* ---------- 折叠组 ---------- */
.accordion {
  border: var(--border);
  border-radius: 4px;
  background: var(--ink-800);
  overflow: hidden;
}
.accordion + .accordion { margin-top: 12px; }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--paper);
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}
.accordion-trigger::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--amber);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.accordion-trigger:hover { background: var(--ink-700); color: var(--amber); }
.accordion-trigger[aria-expanded="true"] { background: var(--ink-700); }
.accordion-trigger[aria-expanded="true"]::after { transform: rotate(45deg); color: var(--cyan); }
.accordion-panel {
  display: none;
  padding: 2px 20px 22px;
  color: var(--muted);
  font-size: 15px;
}
.accordion-panel[data-open] { display: block; }

/* ---------- 标签切换 ---------- */
.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line-600);
}
.tab {
  padding: 9px 16px;
  border: 1px solid var(--line-600);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.tab:hover { color: var(--cyan); border-color: var(--cyan); }
.tab[aria-selected="true"] { color: #120602; background: var(--signal); border-color: #000; }
.tab-panel { display: none; padding-top: 24px; }
.tab-panel[data-open] { display: block; }

/* ---------- 左侧赛程轨道 ---------- */
.rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-right: 2px solid var(--line-600);
  background: linear-gradient(90deg, rgba(14, 33, 27, 0.94), rgba(7, 19, 15, 0.45));
}
.rail-item {
  writing-mode: vertical-rl;
  padding: 12px 6px;
  border-left: 2px solid transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--muted);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.rail-item:hover { color: var(--cyan); border-left-color: var(--cyan); }
.rail-item[aria-current="page"] { color: var(--signal); border-left-color: var(--signal); }
.has-rail { padding-left: 72px; }

/* ---------- 进度条与返回顶部 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--signal), var(--cyan));
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 60px;
  z-index: 85;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: var(--border);
  border-radius: 999px;
  background: var(--ink-700);
  box-shadow: var(--shadow-hard-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--paper);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s var(--ease), border-color 0.16s var(--ease);
}
.to-top[data-visible] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--signal); color: var(--signal); }
.to-top-text { line-height: 1; }

/* ---------- 入场显现 ---------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.48s var(--ease), transform 0.48s var(--ease);
}
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  border-top: 2px solid var(--line-600);
  background: linear-gradient(180deg, rgba(14, 33, 27, 0.92), var(--ink-900) 62%);
}

.footer-grid {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 2.4fr 1fr 1fr 1fr 1.8fr;
  gap: 32px;
  padding: clamp(44px, 6vw, 68px) 0 clamp(36px, 5vw, 52px);
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--signal);
}
.footer-brand-note { color: var(--muted); font-size: 14px; max-width: 30em; }

.footer-col { display: flex; flex-direction: column; }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--line-600);
}

.footer-list { display: flex; flex-direction: column; gap: 10px; }
.footer-list a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.16s var(--ease), padding-left 0.16s var(--ease);
}
.footer-list a:hover { color: var(--cyan); padding-left: 6px; }

.footer-contact-list { gap: 14px; }
.footer-contact-row { display: flex; flex-direction: column; gap: 3px; }
.footer-contact-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--off);
}
.footer-contact-val { font-size: 13px; color: var(--paper); line-height: 1.6; }

.footer-status {
  position: sticky;
  bottom: 0;
  z-index: 30;
  border-top: 2px solid var(--line-600);
  background: rgba(7, 19, 15, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.status-inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 11px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.status-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.status-item + .status-item { border-left: 1px solid var(--line-600); padding-left: 18px; }
.status-item--push { margin-inline-start: auto; }
.status-strong { color: var(--paper); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1200px) and (min-width: 1025px) {
  .nav-link { padding: 8px 10px; font-size: 13px; }
  .brand-sub { display: none; }
  .nav-meter { padding-inline: 10px; }
}

@media (max-width: 1024px) {
  :root { --header-offset: 76px; }
  .site-header { padding: 12px 0; }
  .header-cta { display: none; }

  .nav {
    position: static;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }
  .nav .nav-meter { display: none; }
  .nav .nav-list {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    left: auto;
    z-index: 60;
    width: min(340px, calc(100vw - 40px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: var(--border);
    border-radius: 18px;
    background: var(--ink-700);
    box-shadow: var(--shadow-hard);
  }
  .nav[data-open] .nav-list { display: flex; }
  .nav .nav-link { display: block; padding: 12px 14px; border-radius: 10px; font-size: 15px; }

  .nav-toggle { display: inline-flex; margin-inline-start: auto; }

  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }

  .status-inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .status-inner::-webkit-scrollbar { display: none; }
  .status-item--push { margin-inline-start: 0; }
  .to-top { bottom: 68px; right: 12px; }
}

@media (min-width: 1025px) {
  .nav-toggle { display: none; }

  .site-header[data-condensed] .nav-toggle { display: inline-flex; }
  .site-header[data-condensed] .nav .nav-meter { display: none; }
  .site-header[data-condensed] .nav .nav-list {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    left: auto;
    z-index: 60;
    width: min(340px, 40vw);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: var(--border);
    border-radius: 18px;
    background: var(--ink-700);
    box-shadow: var(--shadow-hard);
  }
  .site-header[data-condensed] .nav[data-open] .nav-list { display: flex; }
  .site-header[data-condensed] .nav .nav-link { display: block; padding: 11px 14px; border-radius: 10px; }
  .site-header[data-condensed] .header-cta { display: none; }
  .site-header[data-condensed] .nav-toggle { margin-inline-start: auto; }
}

@media (max-width: 900px) {
  .g-span-2, .g-span-3, .g-span-4, .g-span-6, .g-span-8 { grid-column: span 12; }
  .g-nudge { margin-top: 0; }
  .section-head { align-items: flex-start; }
}

@media (max-width: 640px) {
  :root { --shell: min(1240px, 100% - 32px); }
  body { background-size: auto, auto, 32px 32px, 32px 32px; }
  .brand-pill { padding: 7px 14px 7px 10px; }
  .brand-name { font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand, .footer-contact { grid-column: auto; }
  .stat-value { font-size: clamp(36px, 12vw, 56px); }
}

@media (max-width: 1280px) {
  .rail { display: none; }
  .has-rail { padding-left: 0; }
}

@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;
  }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
  .to-top { transition: none; }
}
