/* ============================================================
   九州体育入口 / EY9R — shared site.css
   高原夜赛状态板：深蓝承重、青绿导视、琥珀金标记、信号橙提醒
   ============================================================ */

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

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

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

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

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

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

a { color: inherit; }

table { border-collapse: collapse; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #06172A;
  --ink-2: #0B2D4F;
  --ink-3: #10263B;
  --lake: #2FD3C6;
  --lake-soft: rgba(47, 211, 198, 0.12);
  --amber: #F2B84B;
  --signal: #FF7A3D;
  --flag-red: #E4573D;
  --flag-yellow: #F4C95D;
  --flag-blue: #2D6CDF;
  --flag-green: #3FAE6A;
  --paper: #F4FAFF;
  --smoke: #9FB3C8;
  --legal-paper: #F3F7FA;

  --edge: rgba(47, 211, 198, 0.20);
  --edge-soft: rgba(159, 179, 200, 0.16);
  --edge-strong: rgba(242, 184, 75, 0.45);

  --grad-panel: linear-gradient(158deg, rgba(13, 49, 84, 0.94) 0%, rgba(8, 28, 50, 0.92) 54%, rgba(6, 23, 42, 0.96) 100%);
  --grad-card: linear-gradient(150deg, rgba(11, 45, 79, 0.86) 0%, rgba(6, 23, 42, 0.9) 100%);
  --shadow-panel: 0 26px 60px -34px rgba(0, 0, 0, 0.88);

  --shell-w: 1240px;
  --r-panel: 24px;
  --r-card: 20px;
  --r-pill: 999px;
  --r-table: 12px;

  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  color-scheme: dark;
}

/* ---------- 3. Base ---------- */
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: 0.012em;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(159, 179, 200, 0.048) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 179, 200, 0.048) 1px, transparent 1px),
    radial-gradient(1100px 620px at 6% -14%, rgba(47, 211, 198, 0.20), transparent 62%),
    radial-gradient(900px 520px at 98% 2%, rgba(242, 184, 75, 0.10), transparent 60%),
    radial-gradient(780px 520px at 52% 106%, rgba(45, 108, 223, 0.16), transparent 66%),
    linear-gradient(178deg, #06172A 0%, #08203A 48%, #06172A 100%);
  background-size: 72px 72px, 72px 72px, auto, auto, auto, auto;
  background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: fixed;
}

::selection {
  background: rgba(242, 184, 75, 0.34);
  color: var(--paper);
}

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

p { max-width: 68ch; }

/* ---------- 4. Typography ---------- */
.h-display,
.h-xl,
.h-lg,
.h-md {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: 0.006em;
  color: var(--paper);
  max-width: none;
}

.h-display { font-size: clamp(44px, 7.4vw, 92px); }
.h-xl { font-size: clamp(34px, 4.8vw, 58px); }
.h-lg { font-size: clamp(26px, 3.3vw, 40px); }
.h-md { font-size: clamp(20px, 2.2vw, 28px); font-weight: 400; }

.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.82;
  color: rgba(244, 250, 255, 0.84);
  max-width: 42ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(159, 179, 200, 0.92);
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--lake);
  flex: none;
}

.index-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

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

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

.link-lake {
  color: var(--lake);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 211, 198, 0.42);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.link-lake:hover {
  color: #7DEBE1;
  border-bottom-color: #7DEBE1;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 5. Layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-w);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 44px);
}

.section { padding-block: clamp(40px, 6vw, 80px); }
.section--tight { padding-block: clamp(22px, 3vw, 38px); }

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

.grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}

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

.sticky-rail {
  position: sticky;
  top: 120px;
  align-self: start;
}

/* ---------- 6. Panels & cards ---------- */
.panel {
  position: relative;
  background: var(--grad-panel);
  border: 1px solid var(--edge-soft);
  border-radius: var(--r-panel);
  padding: clamp(20px, 2.6vw, 32px);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  isolation: isolate;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(92% 72% at 100% 0%, rgba(47, 211, 198, 0.11), transparent 62%);
}

.panel > * { position: relative; z-index: 1; }

.panel--amber { border-color: rgba(242, 184, 75, 0.38); }
.panel--amber::after { background: radial-gradient(92% 72% at 100% 0%, rgba(242, 184, 75, 0.16), transparent 62%); }
.panel--signal { border-color: rgba(255, 122, 61, 0.4); }
.panel--signal::after { background: radial-gradient(92% 72% at 0% 0%, rgba(255, 122, 61, 0.16), transparent 64%); }

.card {
  position: relative;
  background: var(--grad-card);
  border: 1px solid var(--edge-soft);
  border-radius: var(--r-card);
  padding: clamp(16px, 2vw, 24px);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 211, 198, 0.45);
  box-shadow: 0 20px 40px -30px rgba(47, 211, 198, 0.9);
}

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--amber {
  background: var(--amber);
  color: #20180A;
  border-color: rgba(242, 184, 75, 0.7);
  box-shadow: 0 14px 26px -18px rgba(242, 184, 75, 0.95);
}
.btn--amber:hover { background: #FFCB66; }

.btn--ghost {
  background: rgba(47, 211, 198, 0.08);
  color: var(--lake);
  border-color: rgba(47, 211, 198, 0.35);
}
.btn--ghost:hover {
  background: rgba(47, 211, 198, 0.16);
  border-color: rgba(47, 211, 198, 0.62);
  color: #7DEBE1;
}

.btn--solid {
  background: var(--lake);
  color: #04121F;
  border-color: rgba(47, 211, 198, 0.6);
}
.btn--solid:hover { background: #6AE6DC; }

.btn--signal {
  background: var(--signal);
  color: #25100A;
  border-color: rgba(255, 122, 61, 0.7);
}
.btn--signal:hover { background: #FF9463; }

.btn--sm { padding: 8px 14px; font-size: 13px; }

/* ---------- 8. Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  border: 1px solid var(--edge-soft);
  background: rgba(11, 45, 79, 0.6);
  color: var(--smoke);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.5;
}

.badge--amber {
  color: var(--amber);
  border-color: rgba(242, 184, 75, 0.42);
  background: rgba(242, 184, 75, 0.10);
}

.badge--lake {
  color: var(--lake);
  border-color: rgba(47, 211, 198, 0.40);
  background: rgba(47, 211, 198, 0.08);
}

.badge--signal {
  color: var(--signal);
  border-color: rgba(255, 122, 61, 0.45);
  background: rgba(255, 122, 61, 0.10);
}

/* ---------- 9. Breadcrumbs ---------- */
.crumbs { padding-block: 14px 4px; }

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--smoke);
}

.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before {
  content: "/";
  margin: 0 8px;
  color: rgba(159, 179, 200, 0.45);
}

.crumbs a {
  color: rgba(244, 250, 255, 0.72);
  text-decoration: none;
  transition: color 0.18s ease;
}
.crumbs a:hover { color: var(--lake); }
.crumbs [aria-current="page"] { color: var(--amber); }

/* ---------- 10. Media shells ---------- */
.media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-card);
  border: 1px solid var(--edge-soft);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(47, 211, 198, 0.16), transparent 60%),
    linear-gradient(150deg, #0B2D4F 0%, #071E36 62%, #06172A 100%);
  aspect-ratio: 16 / 10;
  width: 100%;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 23, 42, 0) 34%, rgba(6, 23, 42, 0.78) 100%);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(47, 211, 198, 0.16);
  border-radius: inherit;
}

.media--wide { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--portrait { aspect-ratio: 3 / 4; }

.media__tag {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--edge);
  background: rgba(6, 23, 42, 0.8);
  color: var(--lake);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
}

.media__caption {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 250, 255, 0.86);
}

/* ---------- 11. Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--edge-soft);
  border-radius: var(--r-table);
  background: rgba(11, 45, 79, 0.5);
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  width: 100%;
  font-size: 14.5px;
  line-height: 1.65;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(159, 179, 200, 0.12);
  vertical-align: top;
}

.table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #0B2D4F;
  color: rgba(244, 250, 255, 0.9);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table-wrap tbody tr { transition: background-color 0.18s ease; }
.table-wrap tbody tr:hover { background: rgba(47, 211, 198, 0.08); }
.table-wrap tbody tr:last-child td { border-bottom: 0; }

/* ---------- 12. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--lake);
  color: #04121F;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transform: translateY(calc(-100% - 28px));
  transition: transform 0.22s ease;
}

.skip-link:focus-visible { transform: none; }

/* ---------- 13. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  color: var(--paper);
  background: linear-gradient(180deg, rgba(5, 19, 35, 0.97) 0%, rgba(6, 23, 42, 0.88) 100%);
  border-bottom: 1px solid var(--edge);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  transition: box-shadow 0.28s ease;
}

.site-header.is-compact {
  box-shadow: 0 18px 38px -30px rgba(0, 0, 0, 0.95);
}

.header-strip {
  overflow: hidden;
  max-height: 44px;
  background: linear-gradient(90deg, rgba(47, 211, 198, 0.14) 0%, rgba(242, 184, 75, 0.10) 48%, rgba(255, 122, 61, 0.14) 100%);
  border-bottom: 1px solid rgba(159, 179, 200, 0.14);
  transition: max-height 0.34s ease, opacity 0.26s ease;
}

.site-header.is-compact .header-strip {
  max-height: 0;
  opacity: 0;
}

.header-strip__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.4vw, 30px);
  height: 36px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.header-strip__item:last-child { margin-left: auto; }

.strip-label { color: rgba(244, 250, 255, 0.58); }
.strip-value { color: var(--paper); }

.status-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--flag-green);
  box-shadow: 0 0 0 3px rgba(63, 174, 106, 0.20);
  animation: dot-breathe 3.8s ease-in-out infinite;
}

@keyframes dot-breathe {
  0%, 100% { box-shadow: 0 0 0 3px rgba(63, 174, 106, 0.20); }
  50% { box-shadow: 0 0 0 6px rgba(63, 174, 106, 0.05); }
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 32px);
  min-height: 74px;
  padding-block: 12px;
}

/* Brand lockup */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: var(--paper);
}

.brand__mark {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: #04121F;
  background: linear-gradient(150deg, var(--lake) 0%, #63E6DC 46%, #2D6CDF 100%);
  box-shadow: 0 0 0 1px rgba(47, 211, 198, 0.46), 0 14px 26px -16px rgba(47, 211, 198, 0.9);
  transition: transform 0.22s ease;
}

.brand:hover .brand__mark { transform: translateY(-1px); }

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.15;
  white-space: nowrap;
}

.brand__meta {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
}

.brand__code { color: var(--amber); }
.brand__code::after {
  content: "/";
  margin: 0 7px;
  color: rgba(159, 179, 200, 0.5);
}
.brand__ver { color: var(--smoke); }

/* Nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 14px;
  border: 1px solid var(--edge);
  background: rgba(11, 45, 79, 0.7);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--paper);
  transition: transform 0.26s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 20px);
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav__list a {
  display: inline-block;
  padding: 9px 13px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  line-height: 1.35;
  color: rgba(244, 250, 255, 0.76);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.site-nav__list a:hover {
  color: var(--paper);
  background: rgba(47, 211, 198, 0.13);
}

.site-nav__list a[aria-current="page"] {
  color: #04121F;
  font-weight: 600;
  background: var(--lake);
  box-shadow: 0 0 0 1px rgba(47, 211, 198, 0.5), 0 10px 22px -14px rgba(47, 211, 198, 0.9);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: clamp(8px, 1.4vw, 18px);
  border-left: 1px solid var(--edge-soft);
}

/* Reading progress */
.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  background: rgba(159, 179, 200, 0.10);
}

.read-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--lake) 0%, var(--amber) 68%, var(--signal) 100%);
}

/* Scrim + quick bar (mobile only by default) */
.nav-scrim { display: none; }
.quick-bar { display: none; }

/* ---------- 14. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  color: var(--paper);
  background:
    radial-gradient(84% 68% at 50% 0%, rgba(47, 211, 198, 0.10), transparent 70%),
    linear-gradient(180deg, rgba(5, 19, 35, 0.55) 0%, rgba(4, 14, 26, 0.96) 42%, #04101D 100%);
  border-top: 1px solid var(--edge);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--lake) 22%, var(--amber) 50%, var(--signal) 76%, transparent 100%);
  opacity: 0.72;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  padding-block: clamp(40px, 5vw, 68px);
}

.footer-brand__text {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--smoke);
  max-width: 34ch;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
}

.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 250, 255, 0.55);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col__list a {
  width: fit-content;
  font-size: 14.5px;
  color: rgba(244, 250, 255, 0.82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-col__list a:hover {
  color: var(--lake);
  border-bottom-color: rgba(47, 211, 198, 0.5);
}

.footer-contact__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact__list > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-contact__list dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(159, 179, 200, 0.75);
}

.footer-contact__list dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.footer-contact__note {
  margin-top: 16px;
  padding-left: 12px;
  border-left: 2px solid rgba(255, 122, 61, 0.6);
  font-size: 12.5px;
  line-height: 1.72;
  color: rgba(159, 179, 200, 0.9);
  max-width: 34ch;
}

.footer-base {
  border-top: 1px solid var(--edge-soft);
  background: rgba(3, 11, 21, 0.62);
}

.footer-base__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px clamp(14px, 3vw, 28px);
  padding-block: 20px;
  font-size: 12.5px;
  color: rgba(159, 179, 200, 0.9);
}

.footer-base__copy { color: rgba(244, 250, 255, 0.72); max-width: none; }
.footer-base__region { max-width: none; }

.footer-base__links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 22px);
  margin-left: auto;
}

.footer-base__links a {
  color: rgba(244, 250, 255, 0.78);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 211, 198, 0.3);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-base__links a:hover {
  color: var(--lake);
  border-bottom-color: var(--lake);
}

/* ---------- 15. Reveal ---------- */
[data-reveal] {
  transition: opacity 0.62s ease, transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-pending {
  opacity: 0;
  transform: translateY(14px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 16. Responsive ---------- */
@media (max-width: 1080px) {
  .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: linear-gradient(180deg, rgba(5, 19, 35, 0.99) 0%, rgba(6, 23, 42, 0.97) 100%);
  }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    width: min(86vw, 372px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    padding: clamp(84px, 15vh, 108px) 22px calc(28px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    border-left: 1px solid var(--edge);
    background:
      radial-gradient(120% 56% at 100% 0%, rgba(47, 211, 198, 0.16), transparent 62%),
      linear-gradient(196deg, #0B2D4F 0%, #071E36 58%, #05121F 100%);
    box-shadow: -30px 0 70px -40px rgba(0, 0, 0, 0.95);
    transform: translateX(102%);
    visibility: hidden;
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.34s;
  }

  .site-nav[data-open="true"] {
    transform: none;
    visibility: visible;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 14px;
    border-radius: 14px;
    font-size: 16px;
  }

  .site-nav__list a::after {
    content: "→";
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(159, 179, 200, 0.55);
  }

  .site-nav__list a[aria-current="page"]::after { color: #04121F; }

  .site-nav__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid var(--edge-soft);
  }

  .site-nav__actions .btn {
    width: 100%;
    padding: 13px 18px;
    font-size: 15px;
  }

  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 110;
    opacity: 0;
    visibility: hidden;
    background: radial-gradient(60% 60% at 18% 0%, rgba(47, 211, 198, 0.14), transparent 70%), rgba(4, 14, 26, 0.74);
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  body.nav-open .nav-scrim {
    opacity: 1;
    visibility: visible;
  }

  body.nav-open { overflow: hidden; }

  .quick-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--edge);
    background: linear-gradient(180deg, rgba(6, 23, 42, 0.92) 0%, rgba(5, 17, 31, 0.99) 100%);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .quick-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 7px 4px;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(244, 250, 255, 0.78);
    transition: background-color 0.18s ease, color 0.18s ease;
  }

  .quick-bar__item[aria-current="page"] {
    background: var(--lake);
    color: #04121F;
  }

  .quick-bar__idx {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.16em;
    opacity: 0.66;
  }

  .quick-bar__label {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
  }

  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 1024px) {
  .grid--4,
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--aside { grid-template-columns: minmax(0, 1fr); }
  .sticky-rail { position: static; top: auto; }
}

@media (max-width: 900px) {
  body {
    background-attachment: scroll;
    font-size: 16.5px;
  }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .strip-hide-sm { display: none; }
  .header-strip__inner { font-size: 10px; letter-spacing: 0.1em; }
  .header-main { min-height: 64px; }
  .brand__mark { width: 38px; height: 38px; border-radius: 13px; font-size: 19px; }
  .brand__name { font-size: 16.5px; }
  .grid--2,
  .grid--3,
  .grid--4,
  .grid--aside { grid-template-columns: minmax(0, 1fr); }
  .section-head { align-items: flex-start; }
}

@media (max-width: 560px) {
  .footer-nav { grid-template-columns: minmax(0, 1fr); }
  .footer-base__links { margin-left: 0; }
  .footer-base__inner { font-size: 12px; }
  .btn { padding: 10px 17px; font-size: 13.5px; }
}

/* ---------- 17. Reduced motion ---------- */
@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;
  }

  [data-reveal],
  [data-reveal].is-pending {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .status-dot { animation: none; }
  .card:hover { transform: none; }
  .btn:hover { transform: none; }
}
