/* =========================================================
   BY赛场 · 共享 Site Kit  /assets/site.css
   夜墨绿底色 · 橙红状态 · 荧光黄数字 · 钢蓝数据线
   ========================================================= */

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

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

:root {
  --ink: #071F1A;
  --ink-2: #0E332B;
  --pine: #1D5A4A;
  --flame: #FF4D1C;
  --flame-deep: #B32A0F;
  --signal: #E8FF3A;
  --steel: #5B8FA8;
  --mist: #F4F7F2;
  --paper: #D9E0D8;
  --stand: #7B8B84;

  --font-display: 'Oswald', 'Barlow Condensed', 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'Roboto Mono', ui-monospace, SFMono-Regular, monospace;

  --rail: 88px;
  --shell: 1320px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --pill: 999px;

  --line: rgba(217, 224, 216, 0.16);
  --line-strong: rgba(217, 224, 216, 0.32);
  --shadow-deep: 0 26px 60px -32px rgba(0, 0, 0, 0.95);
}

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

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

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

button { font: inherit; color: inherit; }

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

::selection { background: var(--flame); color: #180703; }

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--mist);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 88% -10%, rgba(29, 90, 74, 0.55), transparent 68%),
    radial-gradient(760px 440px at -12% 6%, rgba(91, 143, 168, 0.18), transparent 70%);
  background-repeat: no-repeat;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(42px, 7vw, 88px); }
h2 { font-size: clamp(27px, 3.6vw, 46px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); }
h4 { font-size: clamp(17px, 1.6vw, 21px); }

p { max-width: 78ch; }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

.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;
}

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

.muted { color: var(--stand); }

.divider { height: 1px; border: 0; background: var(--line); }

/* ---------------- 容器与网格 ---------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}
.container--wide { max-width: var(--shell); }
.container--narrow { max-width: 820px; }

.section { padding: clamp(40px, 6vw, 88px) 0; }
.section--mist { background: var(--mist); color: var(--ink); }
.section--mist h2, .section--mist h3 { color: var(--ink); }
.section--mist .eyebrow { color: var(--flame-deep); }
.section--mist .eyebrow::before { background: var(--flame-deep); }
.section--mist .stat-label { color: var(--stand); }
.section--mist .stat-num { color: var(--flame-deep); }
.section--pine { background: var(--pine); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 28px;
  margin-bottom: clamp(20px, 3vw, 38px);
}
.section-title { font-size: clamp(26px, 3.4vw, 44px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--signal);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--flame);
}

.grid { display: grid; gap: clamp(16px, 2.4vw, 30px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--aside { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }

.strip-scroll {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.strip-scroll > * { flex: 0 0 auto; scroll-snap-align: start; }

.page-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(34px, 6vw, 76px) 0 clamp(18px, 3vw, 34px);
}

/* ---------------- 面包屑 ---------------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--stand);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 9px; }
.breadcrumb li + li::before { content: "/"; color: var(--steel); }
.breadcrumb a { color: var(--paper); }
.breadcrumb a:hover { color: var(--signal); }
.breadcrumb [aria-current="page"] { color: var(--steel); }

/* ---------------- 正文排版 ---------------- */
.prose {
  max-width: 74ch;
  font-size: 17px;
  line-height: 1.9;
  color: rgba(244, 247, 242, 0.9);
}
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 1.7em; font-size: clamp(24px, 2.6vw, 34px); }
.prose h3 { margin-top: 1.45em; }
.prose a {
  color: var(--signal);
  text-decoration: underline;
  text-decoration-color: rgba(232, 255, 58, 0.45);
  text-underline-offset: 4px;
}
.prose a:hover { text-decoration-color: var(--signal); }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.5em; }
.prose blockquote {
  border-left: 3px solid var(--flame);
  padding: 6px 0 6px 20px;
  font-size: 18.5px;
  line-height: 1.95;
  color: var(--mist);
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: rgba(29, 90, 74, 0.55);
  padding: 2px 7px;
  border-radius: 6px;
}

/* ---------------- 按钮与标签 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--flame);
  color: #180703;
  box-shadow: 0 16px 34px -18px rgba(255, 77, 28, 0.95);
}
.btn--primary:hover { background: var(--signal); color: var(--ink); }
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--mist);
}
.btn--ghost:hover { border-color: var(--signal); color: var(--signal); }
.btn--signal { background: var(--signal); color: var(--ink); }
.btn--signal:hover { background: var(--flame); color: #180703; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--pill);
  background: rgba(29, 90, 74, 0.6);
  border: 1px solid var(--line);
  color: var(--mist);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.tag--signal {
  background: var(--signal);
  border-color: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
}
.tag--flame {
  background: rgba(255, 77, 28, 0.16);
  border-color: rgba(255, 77, 28, 0.5);
  color: #FFB39A;
}

/* ---------------- 面板与数据 ---------------- */
.panel {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 34px);
}
.panel--mist {
  background: var(--mist);
  color: var(--ink);
  border-color: transparent;
}
.panel--mist a { color: var(--pine); }
.panel--square { border-radius: 6px; }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(32px, 4.4vw, 60px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--signal);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stand);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(14, 51, 43, 0.6);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table thead th {
  background: var(--pine);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}
.data-table tbody tr { transition: background-color 0.18s ease; }
.data-table tbody tr:hover { background: rgba(29, 90, 74, 0.4); }
.data-table td.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--signal);
}

/* ---------------- 图片容器基座 ---------------- */
.media-frame {
  position: relative;
  display: block;
  min-height: 180px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--ink-2), var(--pine));
}
.media-frame > img,
.media-frame > svg,
.media-frame > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 31, 26, 0) 42%, rgba(7, 31, 26, 0.72));
}
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--scoreboard { aspect-ratio: 21 / 9; border-radius: 6px; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-caption {
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--stand);
}

/* ---------------- 显现与展开组 ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

.disclosure { border-top: 1px solid var(--line); }
.disclosure-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mist);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}
.disclosure-trigger:hover { color: var(--signal); }
.disclosure-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1;
  color: var(--signal);
  transition: transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}
.disclosure-trigger[aria-expanded="true"] .disclosure-icon {
  transform: rotate(45deg);
  background: var(--flame);
  border-color: transparent;
  color: #180703;
}
.disclosure-panel {
  padding: 6px 4px 24px;
  max-width: 76ch;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(244, 247, 242, 0.86);
}
.disclosure-panel[hidden] { display: none; }

.fav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  background: rgba(7, 31, 26, 0.6);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.fav-toggle[aria-pressed="true"] {
  border-color: var(--signal);
  color: var(--signal);
  background: rgba(232, 255, 58, 0.1);
}
.fav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stand);
  transition: background-color 0.2s ease;
}
.fav-toggle[aria-pressed="true"] .fav-dot { background: var(--signal); }

/* =========================================================
   头部
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(7, 31, 26, 0.98), rgba(7, 31, 26, 0.9));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 130;
  padding: 12px 22px;
  background: var(--signal);
  color: var(--ink);
  border-radius: 0 0 var(--radius-sm) 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.skip-link:focus,
.skip-link:focus-visible { left: 0; }

.header-shell {
  display: flex;
  align-items: stretch;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 clamp(12px, 3vw, 32px);
}

.brand-rail {
  flex: 0 0 var(--rail);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 0 16px;
  margin-right: clamp(12px, 2vw, 26px);
  border-right: 1px dashed var(--line);
}
.rail-mark {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--ink);
  background: var(--signal);
  border-radius: 6px;
  padding: 5px 8px 5px 10px;
}
.rail-line {
  flex: 1 1 auto;
  width: 1px;
  min-height: 16px;
  background: linear-gradient(180deg, var(--flame), transparent);
}
.rail-word {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.34em;
  color: var(--stand);
}
.rail-tick {
  width: 6px;
  height: 26px;
  border-radius: var(--pill);
  background: var(--flame);
}

.header-body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 0 0;
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.brand-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--flame);
  color: #180703;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.06em;
  box-shadow: 0 12px 28px -14px rgba(255, 77, 28, 0.95);
  transition: width 0.22s ease, height 0.22s ease, border-radius 0.22s ease, font-size 0.22s ease;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: 0.06em;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}

.masthead-tagline {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0 12px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--stand);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.utility-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.utility-item {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  color: var(--paper);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.utility-item:hover,
.utility-item:focus-visible {
  border-color: var(--signal);
  color: var(--signal);
  background: rgba(232, 255, 58, 0.07);
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--ink-2);
  color: var(--mist);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--mist);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.site-header[data-open] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header[data-open] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav { padding: 9px 0 12px; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-item { flex: 0 0 auto; }
.nav-link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--pill);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: rgba(244, 247, 242, 0.78);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-link:hover { color: var(--mist); background: rgba(29, 90, 74, 0.65); }
.nav-link[aria-current="page"] { background: var(--flame); color: #180703; }
.nav-link[aria-current="page"]:hover { background: var(--flame); color: #180703; }

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--flame), var(--signal));
  box-shadow: 0 0 14px rgba(255, 77, 28, 0.7);
}

.site-header[data-compact] .masthead { padding-bottom: 6px; }
.site-header[data-compact] .masthead-tagline { display: none; }
.site-header[data-compact] .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 14px;
}
.site-header[data-compact] .main-nav { padding: 4px 0 6px; }

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 110px);
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--flame) 0 20%, var(--signal) 20% 27%, rgba(217, 224, 216, 0.14) 27% 100%);
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) minmax(0, 1.7fr);
  gap: clamp(24px, 4vw, 56px);
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(38px, 5vw, 64px) clamp(16px, 3vw, 32px) clamp(22px, 3vw, 34px);
}

.footer-lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--signal);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.06em;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.footer-summary {
  max-width: 42ch;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--paper);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 34px);
}
.footer-col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--signal);
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  width: fit-content;
  font-size: 14.5px;
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.footer-links a:hover { color: var(--signal); border-color: var(--signal); }

.footer-contact {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px 28px;
  padding-top: 26px;
  border-top: 1px dashed var(--line);
}
.contact-item { display: flex; flex-direction: column; gap: 3px; }
.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--stand);
}
.contact-value {
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: var(--mist);
  word-break: break-word;
}
.contact-note {
  grid-column: 1 / -1;
  max-width: 76ch;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--stand);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.footer-legal,
.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--stand);
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1080px) {
  .footer-shell { grid-template-columns: minmax(0, 1fr); }
  .footer-lead { max-width: 60ch; }
}

@media (max-width: 900px) {
  .brand-rail { display: none; }
  .nav-toggle { display: inline-flex; }
  .masthead-tagline { display: none; }
  .brand-mark { width: 42px; height: 42px; border-radius: 13px; font-size: 16px; }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding: 14px clamp(14px, 4vw, 26px) 24px;
    background: linear-gradient(180deg, var(--ink-2), var(--ink));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-deep);
  }
  .site-header[data-open] .main-nav,
  .main-nav[data-open] { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    overflow: visible;
  }
  .nav-link {
    display: block;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-size: 17px;
    letter-spacing: 0.08em;
  }
  .nav-link[aria-current="page"] { border-radius: var(--radius-sm); }

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

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-shell { padding: 0 14px; }
  .masthead { gap: 10px; }
  .utility-bar { display: none; }
  .brand-sub { font-size: 10px; letter-spacing: 0.16em; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .panel { border-radius: var(--radius-md); }
}

@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;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}
