/* ===== 亚星赛场 · 共享样式 /assets/site.css ===== */

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

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

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

ul, ol { padding: 0; }

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

button { font: inherit; }

main { display: block; }

#main-content:focus { outline: none; }

/* --- tokens --- */
:root {
  --ink: #06140F;
  --ink-2: #0B241A;
  --turf: #123D2A;
  --cyan: #3DF5D0;
  --mint: #9CFFE4;
  --orange: #FF6B35;
  --red: #FF3D5A;
  --chalk: #F2FFF9;
  --grid: #6C8C7D;
  --grid-soft: #9AB5A7;
  --amber: #FFC857;

  --line: rgba(61, 245, 208, 0.16);
  --line-soft: rgba(154, 181, 167, 0.26);
  --wash: rgba(61, 245, 208, 0.06);

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

  --step-1: 12px;
  --step-2: 14px;
  --step-3: 16px;
  --step-4: 20px;
  --step-5: 28px;
  --step-6: 40px;
  --step-7: 64px;
  --step-8: 88px;

  --pad-x: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --ease: 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- base typography --- */
body {
  background-color: var(--ink);
  color: var(--chalk);
  font-family: var(--ff-body);
  font-size: var(--step-3);
  line-height: 1.65;
  letter-spacing: 0.01em;
  min-height: 100vh;
  overflow-x: hidden;
}

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

h1 { font-size: clamp(32px, 5.4vw, 72px); }
h2 { font-size: clamp(26px, 3.6vw, 44px); }
h3 { font-size: clamp(19px, 2.2vw, 26px); font-weight: 700; }

p { font-size: var(--step-3); }
p + p { margin-top: 0.9em; }

a { color: var(--cyan); }

strong { color: var(--chalk); font-weight: 700; }

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

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

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

/* --- layout helpers --- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: clamp(40px, 7vw, 88px);
  position: relative;
}

.section--turf { background: var(--turf); }
.section--alt { background: var(--ink-2); }

.section--turf::before,
.section--alt::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(154, 181, 167, 0.07) 0 1px, transparent 1px 96px);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: var(--step-1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--cyan);
  flex: none;
}

.section-title { margin: 10px 0 0; }

.section-lede {
  margin: 12px 0 0;
  max-width: 52ch;
  color: var(--grid-soft);
  font-size: 15px;
}

.grid {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
}

.grid--cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid--halves { grid-template-columns: 1fr; }

/* --- reveal protocol --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--ease), transform var(--ease);
}

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

[data-reveal="stagger"] {
  opacity: 1;
  transform: none;
}

[data-reveal="stagger"] > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--ease), transform var(--ease);
}

[data-reveal="stagger"].is-visible > * { opacity: 1; transform: none; }
[data-reveal="stagger"].is-visible > *:nth-child(2) { transition-delay: 0.07s; }
[data-reveal="stagger"].is-visible > *:nth-child(3) { transition-delay: 0.14s; }
[data-reveal="stagger"].is-visible > *:nth-child(4) { transition-delay: 0.21s; }
[data-reveal="stagger"].is-visible > *:nth-child(5) { transition-delay: 0.28s; }
[data-reveal="stagger"].is-visible > *:nth-child(6) { transition-delay: 0.35s; }
[data-reveal="stagger"].is-visible > *:nth-child(7) { transition-delay: 0.42s; }
[data-reveal="stagger"].is-visible > *:nth-child(8) { transition-delay: 0.49s; }

/* ===================== HEADER ===================== */
.skip-link {
  position: absolute;
  top: -72px;
  left: 12px;
  z-index: 120;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, #06140F 0%, #071A12 100%);
  color: var(--chalk);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(2, 10, 7, 0.45);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(61, 245, 208, 0.12);
  overflow: hidden;
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--mint) 45%, var(--orange) 100%);
  box-shadow: 0 0 12px rgba(61, 245, 208, 0.6);
}

.site-header__rail {
  background: #0B241A;
  border-bottom: 1px solid rgba(61, 245, 208, 0.1);
}

.rail-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: 6px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grid-soft);
}

.rail-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mint);
  white-space: nowrap;
}

.rail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(61, 245, 208, 0.18);
  animation: rail-pulse 2.4s ease-in-out infinite;
}

@keyframes rail-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(61, 245, 208, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(61, 245, 208, 0.04); }
}

.rail-meta {
  flex: 1 1 auto;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail-link {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.rail-link:hover {
  color: var(--mint);
  border-bottom-color: currentColor;
}

.header-inner {
  position: relative;
  max-width: var(--max);
  margin-inline: auto;
  padding: 12px var(--pad-x);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--chalk);
}

.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
  background: linear-gradient(118deg, var(--cyan) 0 56%, var(--orange) 56% 100%);
  clip-path: polygon(0 0, 100% 0, 62% 100%, 0 100%);
  transition: transform 0.2s ease;
}

.brand:hover .brand__mark { transform: skewX(-8deg); }

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 3px;
}

.brand__name {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0.05em;
}

.brand__tag {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--grid-soft);
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: transparent;
  border: 1px solid var(--line-soft);
  color: var(--chalk);
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--cyan);
  transition: transform 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

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

.site-header[data-open] .nav-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { bottom: 4px; transform: rotate(-45deg); }

.primary-nav { justify-self: end; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}

.nav-item { border-right: 1px solid var(--line); }

.nav-link {
  position: relative;
  display: block;
  padding: 11px clamp(8px, 1.1vw, 15px);
  color: var(--chalk);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

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

.nav-link:hover {
  color: var(--cyan);
  background-color: var(--wash);
}

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

.nav-link[aria-current="page"] {
  color: var(--cyan);
  background-color: rgba(61, 245, 208, 0.08);
}

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

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--cyan);
  color: #04140F;
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.header-cta:hover {
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(61, 245, 208, 0.2);
  transform: translateY(-1px);
}

/* ===================== FOOTER ===================== */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  color: var(--chalk);
  padding-block: clamp(36px, 6vw, 64px) 22px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 245, 208, 0.16) 0%, transparent 68%);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(154, 181, 167, 0.06) 0 1px, transparent 1px 96px);
}

.footer-grid {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(24px, 4vw, 48px);
}

.footer-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

.footer-note {
  margin: 0;
  font-size: 14px;
  color: var(--grid-soft);
  max-width: 32ch;
  line-height: 1.6;
}

.footer-note--mono {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--grid-soft);
  max-width: 34ch;
  border-top: 1px dashed rgba(154, 181, 167, 0.3);
  padding-top: 10px;
}

.footer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.footer-col__title {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer-links a {
  display: inline-block;
  color: var(--grid-soft);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-links a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.contact-line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin: 0 0 12px;
}

.contact-line__label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grid-soft);
}

.contact-line__value {
  font-size: 14.5px;
  color: var(--chalk);
  word-break: break-word;
  letter-spacing: 0.01em;
}

.copy-btn {
  margin-top: 4px;
  padding: 3px 9px;
  background: transparent;
  border: 1px solid var(--line-soft);
  color: var(--grid-soft);
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.copy-btn:hover {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: clamp(28px, 4vw, 46px) auto 0;
  padding: 16px var(--pad-x) 0;
  border-top: 1px solid rgba(61, 245, 208, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--grid-soft);
}

.footer-legal, .footer-meta { margin: 0; }

/* ===================== SHARED COMPONENTS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--cyan);
  border: 1px solid var(--cyan);
  color: #04140F;
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px rgba(61, 245, 208, 0.2);
}

.btn--accent {
  background: var(--orange);
  border-color: var(--orange);
  color: #1B0A03;
}

.btn--accent:hover { box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.26); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-soft);
  color: var(--chalk);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: none;
}

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

.breadcrumbs {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--grid-soft);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.breadcrumbs li + li::before {
  content: "/";
  color: var(--grid);
}

.breadcrumbs a {
  color: var(--grid-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

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

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

.panel {
  position: relative;
  padding: clamp(18px, 2.6vw, 32px);
  background: linear-gradient(158deg, var(--turf) 0%, #0C2B1D 100%);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.card {
  position: relative;
  padding: clamp(16px, 2.4vw, 26px);
  background: var(--ink-2);
  border: 1px solid var(--line);
  transition: border-color 0.15s ease, transform 0.2s ease, background-color 0.2s ease;
}

.card:hover {
  border-color: rgba(61, 245, 208, 0.42);
  transform: translateY(-2px);
}

.card__index {
  display: block;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--amber);
}

.card__title {
  margin: 8px 0 8px;
  font-family: var(--ff-display);
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight: 700;
  line-height: 1.15;
}

.card__body {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--grid-soft);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 12px;
  border-left: 2px solid var(--cyan);
}

.stat__num {
  font-family: var(--ff-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cyan);
}

.stat__label {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grid-soft);
}

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

.rule {
  height: 1px;
  border: 0;
  margin: clamp(24px, 4vw, 46px) 0;
  background: linear-gradient(90deg, var(--cyan) 0%, rgba(61, 245, 208, 0.16) 45%, transparent 100%);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line-soft);
  color: var(--grid-soft);
  background: rgba(6, 20, 15, 0.5);
}

.badge--mint { color: var(--mint); border-color: rgba(156, 255, 228, 0.5); }
.badge--diff { color: var(--red); border-color: rgba(255, 61, 90, 0.55); }
.badge--amber { color: var(--amber); border-color: rgba(255, 200, 87, 0.5); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: var(--wash);
  border: 1px solid var(--line-soft);
  color: var(--grid-soft);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.chip:hover {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
}

.chip.is-active,
.chip[aria-pressed="true"] {
  color: #04140F;
  background: var(--cyan);
  border-color: var(--cyan);
}

/* --- media frame (供页面阶段放入图片占位) --- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 30% 20%, rgba(61, 245, 208, 0.12) 0%, transparent 55%),
    linear-gradient(150deg, #0C2B1D 0%, #06140F 100%);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

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

.media-frame > img,
.media-frame > picture,
.media-frame > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.06) brightness(0.8);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(154, 181, 167, 0.09) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(154, 181, 167, 0.09) 0 1px, transparent 1px 56px);
  opacity: 0.5;
}

.media-frame__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 9px;
  background: rgba(6, 20, 15, 0.78);
  border: 1px solid var(--line);
  color: var(--cyan);
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 8px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 20, 15, 0.9) 100%);
  color: var(--grid-soft);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* ===================== RESPONSIVE ===================== */
@media (min-width: 900px) {
  .grid--split { grid-template-columns: 7fr 5fr; }
  .grid--halves { grid-template-columns: 6fr 6fr; }
}

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    padding-block: 10px;
  }

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

  .header-cta { display: none; }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    justify-self: stretch;
    max-height: min(72vh, 540px);
    overflow-y: auto;
    padding: 6px var(--pad-x) 18px;
    background: #08201A;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.55);
  }

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

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

  .nav-item {
    border-right: 0;
    border-bottom: 1px solid rgba(61, 245, 208, 0.12);
  }

  .nav-item:first-child { border-top: 1px solid rgba(61, 245, 208, 0.12); }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px;
    font-size: 15px;
  }

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

  .nav-link[aria-current="page"] {
    background: transparent;
    color: var(--cyan);
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .rail-meta { display: none; }
  .rail-inner { font-size: 10px; letter-spacing: 0.12em; }
  .brand__name { font-size: 19px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-contact { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 520px) {
  .site-header__rail { display: none; }
  .brand__tag { display: none; }
  .rail-inner { justify-content: flex-start; }
}

/* ===================== MOTION SAFETY ===================== */
@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="stagger"],
  [data-reveal="stagger"] > * {
    opacity: 1 !important;
    transform: none !important;
  }

  .button,
  .btn:hover,
  .card:hover,
  .brand:hover .brand__mark { transform: none !important; }
}
