/* ==========================================================
   奇博赛事 · awaywin-qibo.com.cn
   共享样式表 /assets/site.css
   主题：高原客场数据台 · 夜靛底 / 客场橙 / 荧光青
   ========================================================== */

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

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

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

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

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

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

button { background: none; border: 0; padding: 0; cursor: pointer; }

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

table { border-collapse: collapse; border-spacing: 0; width: 100%; }

/* ---------- 02 Tokens ---------- */
:root {
  --bg: #0A1330;
  --layer: #13204A;
  --line: #2E3A5C;
  --paper: #F3EFE3;
  --orange: #FF6B21;
  --cyan: #4DE8CE;
  --lake: #2F86C4;
  --moss: #7FA86A;
  --clay: #D9835C;
  --ink: #0B1022;

  --text: #DEE5F4;
  --muted: #8A96B8;
  --dim: #5D6B92;

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

  --w-max: 1320px;
  --gut: 20px;

  --sp-1: 6px;
  --sp-2: 10px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 36px;
  --sp-6: 56px;
  --sp-7: 88px;

  --dur: .16s;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --radius: 0;
}

/* ---------- 03 Base ---------- */
html {
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 700px at 88% -8%, rgba(47, 134, 196, .20), transparent 62%),
    radial-gradient(900px 620px at 4% 4%, rgba(77, 232, 206, .07), transparent 60%),
    radial-gradient(800px 800px at 50% 120%, rgba(255, 107, 33, .06), transparent 66%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

strong, b { font-weight: 700; }

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

/* ---------- 04 Skip link ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  transform: translateY(-180%);
  background: var(--orange);
  color: #160A04;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 10px 16px;
  border: 1px solid var(--orange);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 05 Layout ---------- */
.container {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.container--narrow { max-width: 960px; }

.section { padding-block: clamp(34px, 5vw, 64px); }

.section--tight { padding-block: clamp(22px, 3vw, 36px); }

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 32px);
}
.grid-7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid-8-4 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.rule-scale {
  position: relative;
  height: 1px;
  margin: var(--sp-5) 0;
  background: var(--line);
}
.rule-scale::before {
  content: "";
  position: absolute;
  left: 0;
  top: -4px;
  width: 72px;
  height: 9px;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 8px);
}

/* ---------- 06 Typography ---------- */
.h-display {
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--paper);
}
.h-section {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--paper);
}
.h-sub {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--paper);
}

.prose {
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}
.prose--wide { max-width: 68ch; }
.prose > p + p { margin-top: 12px; }
.prose a {
  color: var(--lake);
  border-bottom: 1px solid rgba(47, 134, 196, .5);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.prose a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

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

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--cyan);
  flex: 0 0 auto;
}

/* ---------- 07 Coord bar & breadcrumbs ---------- */
.coord-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.coord-bar strong { color: var(--cyan); font-weight: 500; }
.coord-key { color: var(--dim); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
}
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line); }
.breadcrumbs a { color: var(--muted); transition: color var(--dur) var(--ease); }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--text); }

/* ---------- 08 Surfaces ---------- */
.card {
  position: relative;
  padding: 20px;
  background: rgba(19, 32, 74, .62);
  border: 1px solid var(--line);
}

.card--paper {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.card--paper .h-section,
.card--paper .h-sub { color: var(--ink); }
.card--paper .muted { color: #5A6274; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 7px;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.label--orange { color: var(--orange); }
.label--cyan { color: var(--cyan); }
.label--clay { color: var(--clay); }
.label--moss { color: var(--moss); }
.label--lake { color: var(--lake); }

/* ---------- 09 Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #160A04;
  font-weight: 700;
}
.btn-primary:hover { background: #FF8144; border-color: #FF8144; }

.btn-ghost {
  background: rgba(19, 32, 74, .5);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-quiet {
  border-color: transparent;
  color: var(--lake);
  padding-inline: 4px;
}
.btn-quiet:hover { color: var(--cyan); }

.btn-arrow { font-family: var(--font-mono); font-size: 12px; line-height: 1; }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--cyan);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.copy-btn:hover { border-color: var(--cyan); background: rgba(77, 232, 206, .08); }
.copy-btn[data-copied] {
  border-color: var(--moss);
  color: var(--moss);
  background: rgba(127, 168, 106, .12);
}

/* ---------- 10 Media ---------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--layer);
  border: 1px solid var(--line);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) contrast(1.05);
}
.media[data-ratio="16x9"] { aspect-ratio: 16 / 9; }
.media[data-ratio="4x3"] { aspect-ratio: 4 / 3; }
.media[data-ratio="3x4"] { aspect-ratio: 3 / 4; }
.media[data-ratio="1x1"] { aspect-ratio: 1 / 1; }
.media[data-ratio="21x9"] { aspect-ratio: 21 / 9; }

.media-overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 26px 14px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--paper);
  background: linear-gradient(180deg, rgba(10, 19, 48, 0), rgba(10, 19, 48, .92));
}
.media-tag { color: var(--cyan); }
.media-note { color: var(--muted); }

/* ---------- 11 Tables ---------- */
.table-shell {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(19, 32, 74, .5);
  -webkit-overflow-scrolling: touch;
}
.data-table {
  width: 100%;
  min-width: 540px;
  font-size: 13.5px;
}
.data-table caption {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.data-table th,
.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(46, 58, 92, .55);
  text-align: left;
  vertical-align: middle;
}
.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #101C42;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.data-table tbody tr:hover { background: rgba(47, 134, 196, .10); }
.data-table td.num,
.data-table th.num { text-align: right; }
.data-table tfoot td {
  border-bottom: 0;
  color: var(--muted);
  font-size: 12.5px;
}

/* ---------- 12 Reveal ---------- */
[data-reveal] {
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
html[data-reveal-ready] [data-reveal]:not([data-visible]) {
  opacity: 0;
  transform: translateY(12px);
}

/* ---------- 13 Header ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 120;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--orange) 0%, var(--cyan) 100%);
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(10, 19, 48, .93);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: var(--w-max);
  min-height: 68px;
  margin-inline: auto;
  padding: 0 var(--gut);
  transition: min-height var(--dur) var(--ease);
}
.site-header[data-scrolled] .header-inner { min-height: 54px; }

/* brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 4px 0;
}
.brand-text { display: block; min-width: 0; }
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--orange);
  background: rgba(255, 107, 33, .09);
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.brand-mark::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 100%;
  height: 100%;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  pointer-events: none;
}
.brand-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.25;
  color: var(--paper);
}
.brand-sub {
  display: block;
  max-height: 16px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  line-height: 1.35;
  white-space: nowrap;
  color: var(--muted);
  transition: max-height var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.site-header[data-scrolled] .brand-sub { max-height: 0; opacity: 0; }

/* nav */
.site-nav { flex: 0 1 auto; min-width: 0; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}
.nav-item { flex: 0 0 auto; }
.nav-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 8px 9px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--dim);
  transition: color var(--dur) var(--ease);
}
.nav-link:hover { color: var(--paper); background: rgba(46, 58, 92, .35); }
.nav-link:hover .nav-index { color: var(--cyan); }
.nav-link[aria-current="page"] { color: var(--paper); }
.nav-link[aria-current="page"] .nav-index { color: var(--cyan); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 0;
  height: 2px;
  background: var(--cyan);
}
.site-nav[data-nav-awake] .nav-index { color: var(--cyan); }

/* header meta */
.header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: rgba(19, 32, 74, .55);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--muted);
}
.status-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: status-pulse 2.6s var(--ease) infinite;
}
@keyframes status-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(77, 232, 206, .55); }
  50% { opacity: .6; box-shadow: 0 0 0 5px rgba(77, 232, 206, 0); }
}

/* nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle-bars {
  position: relative;
  width: 16px;
  height: 2px;
  background: currentColor;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
}
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

/* ---------- 14 Footer ---------- */
.site-footer {
  position: relative;
  margin-top: var(--sp-7);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(19, 32, 74, .55) 0%, rgba(10, 19, 48, 1) 78%);
  color: var(--text);
}
.site-footer::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--orange) 0 16%, var(--cyan) 16% 24%,
    var(--line) 24% 100%
  );
}

.footer-timeline {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 24px 0 6px;
}
.timeline-caption {
  flex: 0 0 auto;
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
}
.timeline-track {
  display: flex;
  flex-wrap: wrap;
  flex: 1 1 320px;
  min-width: 0;
}
.timeline-node {
  position: relative;
  flex: 1 1 0;
  min-width: 78px;
  padding: 16px 12px 0 0;
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}
.timeline-node::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--line);
}
.timeline-node::after {
  content: "";
  position: absolute;
  left: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  background: var(--bg);
  border: 1px solid var(--dim);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.timeline-node:hover::after { background: var(--orange); border-color: var(--orange); }
.timeline-node:hover .timeline-year { color: var(--paper); }
.timeline-year {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}
.timeline-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  line-height: 1.5;
  color: var(--dim);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2.4fr);
  gap: clamp(24px, 4vw, 64px);
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--line);
}

.footer-brand .brand { margin-bottom: 14px; }
.footer-note {
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.footer-chip {
  padding: 4px 8px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  line-height: 1.5;
  color: var(--muted);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 26px;
}
.footer-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper);
}
.footer-col-title::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 1px;
  background: var(--orange);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  width: fit-content;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer-links a:hover { color: var(--paper); border-bottom-color: var(--cyan); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 18px 0 28px;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--dim);
}
.footer-legal a {
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}
.footer-legal a:hover { color: var(--cyan); }

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
}

/* ---------- 15 To top ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(19, 32, 74, .94);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
              visibility var(--dur) linear, color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.to-top[data-visible] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--cyan); border-color: var(--cyan); }

/* ---------- 16 Responsive ---------- */
@media (max-width: 1180px) {
  .status-text { display: none; }
  .status-chip { padding: 6px 8px; }
}

@media (max-width: 1080px) {
  .nav-link { padding: 8px 6px; font-size: 13px; }
}

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 55;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    padding: 0 var(--gut);
    background: rgba(10, 19, 48, .98);
    border-bottom: 1px solid var(--line);
    transition: max-height .24s var(--ease), visibility .24s linear, padding .24s var(--ease);
  }
  .site-nav[data-open] {
    max-height: 78vh;
    overflow-y: auto;
    visibility: visible;
    padding-top: 8px;
    padding-bottom: 18px;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link {
    padding: 12px 4px;
    font-size: 15px;
    border-bottom: 1px solid rgba(46, 58, 92, .55);
  }
  .nav-link[aria-current="page"] { background: rgba(77, 232, 206, .06); }
  .nav-link[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: 10px;
    bottom: 10px;
    width: 2px;
    height: auto;
  }

  .grid-7-5,
  .grid-8-4,
  .grid-3,
  .grid-4 { grid-template-columns: minmax(0, 1fr); }

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

@media (max-width: 760px) {
  :root { --gut: 16px; }
  .header-meta .btn-ghost { display: none; }
  .footer-note { max-width: none; }
}

@media (max-width: 560px) {
  .brand-sub { display: none; }
  .header-inner { gap: 12px; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .timeline-node { flex: 1 1 46%; min-width: 96px; }
  .to-top { right: 14px; bottom: 14px; }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  [data-reveal] { transition: none; }
  html[data-reveal-ready] [data-reveal]:not([data-visible]) {
    opacity: 1;
    transform: none;
  }

  .status-dot { animation: none; }
  .to-top { transition: none; }
}
