/* ============================================================
   亚盈新体育 · Site Kit / site.css
   夜场矩阵刊头 + 展览画册内容层
   ============================================================ */

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

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

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

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

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

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

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

table { border-collapse: collapse; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink-950: #06121C;
  --ink-900: #081824;
  --ink-800: #0B2233;
  --ink-700: #123044;
  --cyan-400: #26D9E8;
  --cyan-100: #C7F7FA;
  --orange-500: #FF5A2A;
  --lime-400: #B6FF3D;
  --sand-100: #F2E9D8;
  --moss-500: #5F7A5C;
  --terracotta-500: #B65C3E;

  --glass: rgba(255, 255, 255, 0.10);
  --glass-strong: rgba(255, 255, 255, 0.16);

  --text: #EAF6F8;
  --text-dim: #9DB7C2;
  --text-mute: #6E93A2;
  --text-ink: #12212B;

  --hairline: rgba(199, 247, 250, 0.16);
  --hairline-strong: rgba(199, 247, 250, 0.34);

  --font-head: "HarmonyOS Sans SC", "Noto Sans SC", "Source Han Sans SC",
    "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace,
    SFMono-Regular, Menlo, Consolas, monospace;

  --shell: 1280px;
  --gutter: clamp(18px, 4vw, 56px);
  --radius: 2px;
  --radius-lg: 6px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --gap: clamp(16px, 2.4vw, 28px);
}

/* ---------- 3. Base typography ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-950);
  background-image:
    radial-gradient(1200px 640px at 78% -12%, rgba(38, 217, 232, 0.10), transparent 62%),
    radial-gradient(900px 520px at 4% 8%, rgba(255, 90, 42, 0.06), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--cyan-400);
  color: #04141C;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

p { text-wrap: pretty; }

#main-content { display: block; }

/* ---------- 4. Layout primitives ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-main {
  padding-top: clamp(26px, 4vw, 52px);
}

.content-wrap {
  width: 100%;
  max-width: 76ch;
}

.grid {
  display: grid;
  gap: var(--gap);
}

.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--auto { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: 1 / -1; }

/* ---------- 5. Utilities ---------- */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.section-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.coord-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.rule {
  height: 1px;
  border: 0;
  background: var(--hairline);
  margin-block: clamp(20px, 3vw, 36px);
}

.surface-sand {
  background: var(--sand-100);
  color: var(--text-ink);
}

.surface-sand a { color: #123044; }
.surface-sand .section-label { color: var(--terracotta-500); }
.surface-sand .coord-label { color: #6B7A72; }

/* ---------- 6. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 400;
  padding: 11px 18px;
  background: var(--cyan-400);
  color: #04141C;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  border-radius: var(--radius);
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------- 7. Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.btn--primary {
  background: var(--orange-500);
  color: #0A1116;
}

.btn--primary:hover {
  background: #FF7448;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--hairline-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--cyan-400);
  color: var(--cyan-100);
  transform: translateY(-2px);
}

.btn--quiet {
  background: var(--glass);
  border-color: var(--hairline);
  color: var(--text);
}

.btn--quiet:hover {
  background: var(--glass-strong);
  color: var(--cyan-100);
}

.ghost-link {
  display: inline-block;
  padding: 6px 2px;
  font-size: 13px;
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.ghost-link:hover {
  color: var(--cyan-100);
  border-bottom-color: var(--cyan-400);
}

/* ---------- 8. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: linear-gradient(180deg, rgba(6, 18, 28, 0.97), rgba(6, 18, 28, 0.90));
  border-bottom: 1px solid var(--hairline);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.header-rail {
  background: rgba(11, 34, 51, 0.86);
  border-bottom: 1px solid var(--hairline);
}

.rail-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 32px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.rail-item {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan-100);
  letter-spacing: 0.12em;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime-400);
  box-shadow: 0 0 0 3px rgba(182, 255, 61, 0.16);
  flex: none;
}

.rail-coord {
  color: rgba(199, 247, 250, 0.42);
  letter-spacing: 0.14em;
}

.masthead {
  padding-block: clamp(12px, 1.8vw, 20px);
  transition: padding 0.24s var(--ease);
}

.site-header[data-stuck] .masthead {
  padding-block: 8px;
}

.masthead-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
}

.masthead-index {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  white-space: nowrap;
}

.brand {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
  transition: color 0.2s var(--ease);
}

.brand:hover .brand-name { color: var(--cyan-100); }

.brand-sub {
  font-size: 9.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.masthead-actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* mobile toggle */
.nav-toggle {
  display: none;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding-right: 8px;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 20px;
  height: 12px;
  flex: none;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }

.site-header[data-open] .nav-toggle-bars::before {
  transform: translateY(5px) rotate(45deg);
}

.site-header[data-open] .nav-toggle-bars::after {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-toggle-text {
  white-space: nowrap;
}

/* nav */
.primary-nav {
  border-top: 1px solid var(--hairline);
  background: rgba(11, 34, 51, 0.52);
}

.nav-inner {
  padding-block: 8px 10px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px clamp(6px, 2vw, 30px);
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 4px;
  font-size: 13.5px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  transition: color 0.18s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 1px;
  height: 2px;
  background: var(--cyan-400);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease), background-color 0.18s var(--ease);
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--cyan-100);
  font-weight: 700;
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--orange-500);
}

.nav-aux {
  display: none;
}

/* reading progress */
.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(38, 217, 232, 0.12);
  overflow: hidden;
  pointer-events: none;
}

.read-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan-400), var(--lime-400));
  transition: transform 0.08s linear;
}

/* ---------- 9. Breadcrumbs ---------- */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(199, 247, 250, 0.3);
}

.breadcrumbs a:hover { color: var(--cyan-100); }

.breadcrumbs [aria-current="page"] { color: var(--cyan-100); }

/* ---------- 10. Prose ---------- */
.prose {
  max-width: 70ch;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--text);
}

.prose > * + * { margin-top: 1em; }

.prose h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  margin-top: 1.9em;
  color: var(--text);
}

.prose h3 {
  font-size: clamp(18px, 1.8vw, 22px);
  margin-top: 1.6em;
  color: var(--cyan-100);
}

.prose ul,
.prose ol {
  display: grid;
  gap: 8px;
  padding-left: 0;
}

.prose ul li {
  position: relative;
  padding-left: 20px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 1px;
  background: var(--cyan-400);
}

.prose ol {
  counter-reset: prose-ol;
  padding-left: 0;
}

.prose ol li {
  position: relative;
  padding-left: 28px;
  counter-increment: prose-ol;
}

.prose ol li::before {
  content: counter(prose-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan-400);
}

.prose a {
  color: var(--cyan-400);
  border-bottom: 1px solid rgba(38, 217, 232, 0.4);
}

.prose a:hover {
  color: var(--cyan-100);
  border-bottom-color: var(--cyan-100);
}

.prose strong { color: var(--cyan-100); font-weight: 700; }

.prose blockquote {
  padding: 14px 0 14px 20px;
  border-left: 2px solid var(--orange-500);
  color: var(--text-dim);
  font-size: 17px;
}

.prose--ink { color: var(--text-ink); }
.prose--ink h2, .prose--ink h3 { color: #0B2233; }
.prose--ink strong { color: #0B2233; }
.prose--ink a { color: #B65C3E; border-bottom-color: rgba(182, 92, 62, 0.45); }
.prose--ink ul li::before { background: var(--terracotta-500); }
.prose--ink ol li::before { color: var(--terracotta-500); }
.prose--ink blockquote { border-left-color: var(--moss-500); color: #3C4A44; }

/* ---------- 11. Panels, tags, stats ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--ink-800);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}

.panel--glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  backdrop-filter: blur(12px) saturate(130%);
}

.panel--sand {
  background: var(--sand-100);
  color: var(--text-ink);
  border-color: rgba(6, 18, 28, 0.14);
}

.panel--edge::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 22px;
  height: 22px;
  border-top: 2px solid var(--cyan-400);
  border-left: 2px solid var(--cyan-400);
  border-top-left-radius: var(--radius-lg);
  pointer-events: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--cyan-100);
  background: var(--glass);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  white-space: nowrap;
}

.tag--live {
  color: #0A1116;
  background: var(--lime-400);
  border-color: var(--lime-400);
}

.tag--warm {
  color: #0A1116;
  background: var(--orange-500);
  border-color: var(--orange-500);
}

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

.stat-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cyan-100);
}

.stat-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-mute);
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: rgba(38, 217, 232, 0.22);
  border: 1px solid var(--cyan-400);
}

/* ---------- 12. Media frame (image container base) ---------- */
.media-frame {
  position: relative;
  display: block;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, var(--ink-800) 0%, #04121A 58%, #0D2B3D 100%);
}

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

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(38, 217, 232, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 217, 232, 0.14) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.55;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 18, 28, 0) 42%, rgba(6, 18, 28, 0.62) 100%);
}

.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--band { aspect-ratio: 21 / 9; }

.media-frame--sand {
  background: linear-gradient(150deg, #E7DDC9 0%, var(--sand-100) 62%, #EFE6D4 100%);
  border-color: rgba(6, 18, 28, 0.16);
}

.media-frame--sand::before {
  background-image:
    linear-gradient(rgba(11, 34, 51, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 34, 51, 0.10) 1px, transparent 1px);
}

.media-frame--sand::after {
  background: linear-gradient(180deg, rgba(242, 233, 216, 0) 55%, rgba(11, 34, 51, 0.16) 100%);
}

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ---------- 13. Scroll-spy index ---------- */
.spy-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  border-left: 1px solid var(--hairline);
  transition:
    color 0.18s var(--ease),
    background-color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.spy-link::after {
  content: "→";
  opacity: 0;
  transition: opacity 0.18s var(--ease);
}

.spy-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.spy-link[aria-current] {
  color: var(--cyan-100);
  border-left-color: var(--orange-500);
  background: var(--glass);
}

.spy-link[aria-current]::after { opacity: 1; }

/* ---------- 14. Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(48px, 8vw, 96px);
  padding-top: clamp(40px, 5vw, 72px);
  background: linear-gradient(180deg, var(--ink-950) 0%, #04101A 100%);
  border-top: 1px solid var(--hairline-strong);
}

.footer-watermark {
  position: absolute;
  right: -2%;
  bottom: -10%;
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(76px, 16vw, 220px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(38, 217, 232, 0.05);
  pointer-events: none;
  user-select: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 0.85fr 0.85fr 1.15fr;
  gap: clamp(24px, 4vw, 56px);
}

.footer-mark {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text);
}

.footer-sub {
  margin-top: 7px;
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.footer-statement {
  margin-top: 16px;
  max-width: 30ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-dim);
}

.footer-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.footer-legend li {
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.footer-col-title {
  padding-bottom: 10px;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-100);
  border-bottom: 1px solid var(--hairline);
}

.footer-list li + li { margin-top: 10px; }

.footer-list a {
  display: inline-block;
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.18s var(--ease), padding-left 0.18s var(--ease);
}

.footer-list a:hover {
  color: var(--cyan-100);
  padding-left: 6px;
}

.contact-list li {
  display: grid;
  gap: 2px;
  margin-bottom: 14px;
}

.contact-key {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
}

.contact-value {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  word-break: break-word;
}

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

.contact-note {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px dashed var(--hairline);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-mute);
}

.footer-base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-block: 18px 22px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--text-mute);
}

.footer-legal { margin: 0; }

.footer-icp {
  letter-spacing: 0.08em;
  color: var(--text-mute);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-legal-links a {
  color: var(--text-mute);
  transition: color 0.18s var(--ease);
}

.footer-legal-links a:hover { color: var(--cyan-100); }

/* ---------- 15. Focus ---------- */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.site-footer :where(a):focus-visible {
  outline-color: var(--lime-400);
}

/* ---------- 16. Responsive ---------- */
@media (max-width: 1080px) {
  .rail-coord { display: none; }
  .masthead-actions { gap: 12px; }
}

@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .grid-12 > * { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 120px; }

  .nav-toggle { display: inline-flex; }
  .masthead-index { display: none; }
  .masthead-actions { display: none; }

  .masthead-grid {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
  }

  .brand-name { font-size: clamp(22px, 5vw, 30px); }
  .brand-sub { letter-spacing: 0.22em; font-size: 8.5px; }

  .primary-nav {
    display: none;
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    background: rgba(8, 24, 36, 0.98);
    border-top: 1px solid var(--hairline-strong);
  }

  .site-header[data-open] .primary-nav { display: block; }

  .nav-inner { padding-block: 6px 14px; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item { border-bottom: 1px solid var(--hairline); }
  .nav-item:last-child { border-bottom: 0; }

  .nav-link {
    display: block;
    padding: 14px 6px;
    font-size: 15px;
    color: var(--text);
  }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] {
    padding-left: 14px;
    box-shadow: inset 3px 0 0 var(--orange-500);
    background: rgba(255, 90, 42, 0.06);
  }

  .nav-aux {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    padding-top: 16px;
    margin-top: 4px;
    border-top: 1px solid var(--hairline);
  }

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

  .media-caption { font-size: 10px; }
}

@media (max-width: 720px) {
  .rail-inner { min-height: 28px; font-size: 10px; letter-spacing: 0.12em; }
  .site-footer { padding-top: 36px; }
  .footer-grid { gap: 28px; }
  .footer-base { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }

  .grid--auto { grid-template-columns: minmax(0, 1fr); }

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

  .nav-toggle-text { display: none; }

  .prose { font-size: 16px; }
}

@media (max-width: 420px) {
  .brand-sub { display: none; }
  .btn { padding-inline: 16px; 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;
    scroll-behavior: auto !important;
  }

  .btn:hover,
  .btn--primary:hover,
  .btn--ghost:hover { transform: none; }

  .read-progress-bar { transition: none; }
}
