/* ============================================================
   球赛主站 — /assets/site.css
   共享外壳：reset · tokens · 中文排版 · 头部 · 页脚 · 通用组件
   ============================================================ */

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

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

body { margin: 0; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--teal-soft); text-decoration: none; }
a:hover { color: var(--signal-teal); }

/* ---------- 2. Tokens ---------- */
:root {
  --pitch-950: #05130F;
  --pitch-900: #081C16;
  --pitch-800: #0E2A21;
  --pitch-700: #163B2E;
  --signal-teal: #3BF2C4;
  --teal-soft: #A8F7DF;
  --warm-orange: #FF8A3D;
  --orange-deep: #C9561C;
  --paper: #F1F5EE;
  --ink: #0B1512;
  --mist: #C3D2CB;
  --violet-data: #9C8CFF;
  --line-green: #2A4A3D;

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-data: "Roboto Condensed", "DIN Condensed", "Arial Narrow", "Oswald", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1440px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 18px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. Base typography ---------- */
body {
  background-color: var(--pitch-900);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

strong, b { font-weight: 600; color: var(--paper); }

::selection { background: var(--signal-teal); color: var(--ink); }

#main-content { display: block; min-height: 50vh; }
#main-content:focus { outline: none; }

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

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--signal-teal);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); color: var(--ink); }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  color: var(--paper);
  background: linear-gradient(180deg, rgba(5, 19, 15, .9) 0%, rgba(5, 19, 15, .35) 62%, rgba(5, 19, 15, 0) 100%);
  transition: background-color .28s var(--ease), box-shadow .28s var(--ease);
}
.site-header[data-scrolled] {
  background: rgba(8, 28, 22, .97);
  box-shadow: 0 1px 0 var(--line-green), 0 22px 44px -32px #000;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px var(--gutter);
  border-bottom: 1px solid rgba(42, 74, 61, .55);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
}
.site-header[data-scrolled] .header-rail { border-bottom-color: transparent; }

.rail-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--signal-teal);
  white-space: nowrap;
}
.rail-meta {
  color: var(--mist);
  opacity: .82;
  text-align: right;
}

.signal-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--signal-teal);
  box-shadow: 0 0 0 4px rgba(59, 242, 196, .16);
  animation: signal-breathe 3.4s ease-in-out infinite;
}
@keyframes signal-breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.78); }
}

.header-bar {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.6vw, 36px);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px var(--gutter) 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  flex: 0 0 auto;
}
.brand:hover { color: var(--paper); }

.brand-mark {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid var(--line-green);
  border-radius: 11px;
  background:
    radial-gradient(120% 120% at 15% 10%, rgba(59, 242, 196, .24), transparent 62%),
    var(--pitch-800);
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 8px 8px 8px 8px;
  border-left: 2px solid var(--signal-teal);
  border-bottom: 2px solid var(--warm-orange);
  border-bottom-left-radius: 3px;
}
.brand-mark::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 2px;
  background: var(--signal-teal);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--paper);
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--teal-soft);
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1vw, 8px);
}
.nav-item { display: flex; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  background: var(--signal-teal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible { color: var(--paper); }
.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }
.nav-link[aria-current="page"] {
  color: var(--signal-teal);
}
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex: 0 0 auto;
}

.nav-foot { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--line-green);
  border-radius: 999px;
  background: rgba(14, 42, 33, .7);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.nav-toggle:hover { border-color: var(--signal-teal); background: rgba(22, 59, 46, .85); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: background-color .2s var(--ease);
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform .22s var(--ease);
}
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

.header-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--signal-teal), var(--warm-orange));
  opacity: .9;
  pointer-events: none;
}

/* ---------- 6. Footer ---------- */
.site-footer {
  position: relative;
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(59, 242, 196, .08), transparent 58%),
    var(--pitch-950);
  color: var(--mist);
  border-top: 1px solid var(--line-green);
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(36px, 5.5vw, 72px) var(--gutter) 0;
}

.footer-strip {
  padding-bottom: clamp(22px, 3vw, 38px);
  margin-bottom: clamp(26px, 4vw, 46px);
  border-bottom: 1px solid var(--line-green);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, minmax(120px, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.15;
  color: var(--paper);
}
.footer-wordmark::before {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--signal-teal), var(--warm-orange));
}
.footer-line {
  margin-top: 10px;
  font-size: 15px;
  color: var(--teal-soft);
}

.footer-contact {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}
.footer-contact-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
  line-height: 1.6;
}
.footer-contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--signal-teal);
}
.footer-contact-value {
  color: var(--mist);
  word-break: break-word;
}

.footer-note {
  margin-top: 18px;
  max-width: 42ch;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(195, 210, 203, .78);
}

.footer-col-title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal-soft);
}
.footer-links { display: grid; gap: 10px; }
.footer-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--mist);
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--signal-teal);
  padding-left: 4px;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 28px;
  max-width: var(--wrap);
  margin: clamp(30px, 4vw, 52px) auto 0;
  padding: 20px var(--gutter) 34px;
  border-top: 1px solid var(--line-green);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--mist);
}
.footer-copy { color: var(--paper); }
.footer-icp { color: var(--teal-soft); }
.footer-legal {
  flex: 1 1 100%;
  max-width: 78ch;
  color: rgba(195, 210, 203, .72);
  letter-spacing: .02em;
}

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease),
              border-color .2s var(--ease), color .2s var(--ease);
}
.btn:focus-visible { outline-offset: 4px; }

.btn-primary {
  background: var(--warm-orange);
  color: #160A03;
  box-shadow: 0 12px 26px -14px rgba(255, 138, 61, .8);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: #FFA160;
  color: #160A03;
  transform: translateY(-2px);
}
.btn-primary:active { background: var(--orange-deep); color: var(--paper); transform: translateY(0); }

.btn-secondary {
  background: transparent;
  border-color: var(--signal-teal);
  color: var(--signal-teal);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(59, 242, 196, .12);
  color: var(--teal-soft);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-green);
  color: var(--paper);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--teal-soft);
  color: var(--teal-soft);
  transform: translateY(-2px);
}

.header-cta { padding: 11px 20px; white-space: nowrap; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- 8. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

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

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--signal-teal);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--signal-teal);
}

.display-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 54px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--paper);
}

.lede {
  max-width: 60ch;
  margin: 0;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.75;
  color: var(--mist);
}

.prose {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.78;
  color: var(--mist);
}
.prose h2,
.prose h3 {
  margin: 1.6em 0 .6em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--paper);
}
.prose h2 { font-size: clamp(22px, 2.4vw, 30px); }
.prose h3 { font-size: clamp(18px, 1.8vw, 22px); }
.prose p { margin: 0 0 1.1em; }
.prose ul { margin: 0 0 1.1em; padding-left: 1.15em; list-style: disc; }
.prose li { margin-bottom: .45em; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}

/* ---------- 9. Breadcrumbs ---------- */
.breadcrumbs { margin-bottom: clamp(18px, 2.4vw, 28px); }
.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--mist);
}
.breadcrumbs-item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs-item + .breadcrumbs-item::before {
  content: "/";
  color: var(--line-green);
}
.breadcrumbs-link { color: var(--teal-soft); }
.breadcrumbs-link:hover { color: var(--signal-teal); }

/* ---------- 10. Plaque（展览说明牌） ---------- */
.plaque {
  position: relative;
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid var(--line-green);
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--pitch-800), var(--pitch-900));
  color: var(--mist);
  transition: transform .24s var(--ease), border-color .24s var(--ease), box-shadow .24s var(--ease);
}
.plaque--link {
  display: block;
  color: var(--mist);
  text-decoration: none;
}
.plaque--link:hover,
.plaque--link:focus-visible {
  transform: translateY(-4px);
  border-color: var(--pitch-700);
  box-shadow: 0 22px 40px -34px #000;
  color: var(--mist);
}
.plaque-kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--signal-teal);
}
.plaque-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--paper);
}
.plaque-text { margin: 0; font-size: 15px; line-height: 1.72; color: var(--mist); }
.plaque-list {
  margin: 12px 0 0;
  padding-left: 1.1em;
  list-style: disc;
  font-size: 15px;
  line-height: 1.7;
  color: var(--mist);
}
.plaque-list li { margin-bottom: .4em; }

/* ---------- 11. Stage frame（框景） ---------- */
.stage-frame {
  position: relative;
  padding: clamp(20px, 3vw, 44px);
  border: 1px solid var(--line-green);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(120% 110% at 6% 0%, rgba(59, 242, 196, .1), transparent 56%),
    radial-gradient(90% 90% at 96% 100%, rgba(255, 138, 61, .08), transparent 58%),
    var(--pitch-950);
}
.stage-frame::before,
.stage-frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--signal-teal);
  opacity: .8;
}
.stage-frame::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 8px;
}
.stage-frame::after {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 8px;
}

/* ---------- 12. Signal rail（纵向信号条） ---------- */
.signal-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(18px, 2.2vw, 24px);
  border: 1px solid var(--line-green);
  border-radius: var(--radius);
  background: rgba(8, 28, 22, .72);
}
.rail-item { margin: 0; }
.rail-label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-soft);
}
.rail-value {
  display: block;
  font-family: var(--font-data);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: .01em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.rail-value--signal { color: var(--signal-teal); }

/* ---------- 13. Timeline band（横向时间刻度带） ---------- */
.timeline-band {
  position: relative;
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  padding: 26px 0 10px;
  border-top: 1px solid var(--line-green);
  overflow-x: auto;
  scrollbar-width: thin;
}
.timeline-node {
  position: relative;
  flex: 1 0 178px;
  padding-top: 24px;
  margin: 0;
}
.timeline-node::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--signal-teal);
  box-shadow: 0 0 0 4px rgba(59, 242, 196, .14);
}
.timeline-node-time {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--warm-orange);
}
.timeline-node-title {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--paper);
}

/* ---------- 14. Data strip（等宽数据条） ---------- */
.data-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(14px, 2.2vw, 30px);
  margin: 0;
}
.data-strip-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}
.data-strip-value {
  font-family: var(--font-data);
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 700;
  line-height: 1;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.data-strip-unit {
  margin-left: 5px;
  font-family: var(--font-mono);
  font-size: .38em;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--signal-teal);
}
.data-strip-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--teal-soft);
}

/* ---------- 15. Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line-green);
  border-radius: 999px;
  background: rgba(14, 42, 33, .66);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--teal-soft);
}
.tag--accent {
  border-color: rgba(255, 138, 61, .5);
  background: rgba(255, 138, 61, .12);
  color: var(--warm-orange);
}

/* ---------- 16. Media frame（图片占位基座） ---------- */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line-green);
  border-radius: var(--radius);
  background:
    radial-gradient(100% 100% at 20% 0%, rgba(59, 242, 196, .12), transparent 62%),
    linear-gradient(150deg, var(--pitch-800), var(--pitch-950));
}
.media-frame img {
  display: block;
  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(to right, rgba(59, 242, 196, .13) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59, 242, 196, .13) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: .55;
}
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 16px;
  background: linear-gradient(0deg, rgba(5, 19, 15, .94), rgba(5, 19, 15, 0));
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--teal-soft);
}

/* ---------- 17. Reveal protocol ---------- */
html[data-js="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}
html[data-js="on"] [data-reveal][data-reveal-state="in"] {
  opacity: 1;
  transform: none;
}

/* ---------- 18. Responsive ---------- */
@media (max-width: 1180px) {
  .brand-tag { display: none; }
}

@media (max-width: 960px) {
  .header-bar {
    padding-block: 11px 13px;
    flex-wrap: nowrap;
  }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    flex: none;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding: 6px var(--gutter) 22px;
    background: rgba(8, 28, 22, .985);
    border-top: 1px solid var(--line-green);
    border-bottom: 1px solid var(--line-green);
    box-shadow: 0 28px 46px -32px #000;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s linear;
  }
  .site-nav[data-open] {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { width: 100%; }
  .nav-link {
    display: block;
    padding: 15px 8px;
    border-bottom: 1px solid rgba(42, 74, 61, .7);
    border-radius: 0;
    font-size: 16px;
    letter-spacing: .04em;
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    color: var(--signal-teal);
    background: rgba(59, 242, 196, .1);
    box-shadow: inset 3px 0 0 var(--signal-teal);
    padding-left: 16px;
  }

  .nav-foot {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 18px;
  }
  .nav-foot-cta { width: 100%; }
  .nav-foot-note {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--mist);
    opacity: .8;
    text-align: center;
  }

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

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

@media (max-width: 720px) {
  body { font-size: 16px; }
  .brand-name { font-size: 19px; }
  .brand-mark { width: 32px; height: 32px; }
  .footer-contact-item { grid-template-columns: 34px 1fr; }
  .rail-status { font-size: 11px; letter-spacing: .04em; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { gap: 6px 18px; font-size: 11px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .timeline-node { flex-basis: 150px; }
}

/* ---------- 19. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .signal-dot { animation: none; }
  html[data-js="on"] [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .plaque--link:hover,
  .btn:hover { transform: none; }
}

/* ---------- 20. Print ---------- */
@media print {
  .site-header, .site-footer, .header-progress, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
}
