/* ==========================================================================
   TVT体育 / 共享站点样式
   ========================================================================== */

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

[hidden] {
  display: none !important;
}

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(57, 255, 20, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
}

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

a {
  color: var(--azure);
  text-decoration: none;
}

a:hover {
  color: var(--signal);
}

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

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

ul,
ol {
  padding: 0;
}

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

/* ---------- 2. Variables ---------- */
:root {
  --space: #0A192F;
  --space-2: #071323;
  --signal: #39FF14;
  --signal-soft: rgba(57, 255, 20, 0.14);
  --border-signal: rgba(57, 255, 20, 0.35);
  --carbon: #111111;
  --carbon-2: #1A1A1A;
  --silver: #C0C0C0;
  --azure: #4A90E2;
  --white: #FFFFFF;
  --wine: #800020;
  --indigo: #4B0082;

  --bg: var(--space);
  --text: var(--white);
  --text-dim: var(--silver);
  --border: rgba(192, 192, 192, 0.22);

  --font-head: "Archivo Black", "Noto Sans SC", Impact, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", Consolas, "Courier New", monospace;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --content-w: 1200px;
  --header-top-h: 30px;
  --header-bar-h: 74px;

  --space-unit: 8px;
}

/* ---------- 3. Base Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--white);
  text-wrap: balance;
}

h1 {
  font-size: clamp(32px, 5.5vw, 62px);
  margin-bottom: 0.45em;
}

h2 {
  font-size: clamp(24px, 3vw, 38px);
  margin-bottom: 0.5em;
}

h3 {
  font-size: clamp(18px, 1.8vw, 24px);
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1em;
}

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

/* ---------- 4. Layout Helpers ---------- */
#main-content {
  flex: 1 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
}

.container {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 24px;
}

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

.container--wide {
  max-width: 1440px;
}

.section {
  padding: clamp(48px, 8vw, 96px) 0;
}

.section--dark {
  background: var(--space-2);
}

.section--carbon {
  background: var(--carbon);
}

.section--indigo {
  background: linear-gradient(135deg, var(--space) 0%, var(--space-2) 45%, rgba(75, 0, 130, 0.55) 130%);
}

.grid {
  display: grid;
  gap: clamp(16px, 3vw, 28px);
}

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

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

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

/* ---------- 5. Utilities ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

.text-mono {
  font-family: var(--font-mono);
}

.text-signal {
  color: var(--signal);
}

.data-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25em;
  color: var(--signal);
  letter-spacing: -0.02em;
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn--signal {
  background: var(--signal);
  color: var(--carbon);
  font-weight: 800;
  box-shadow: 0 4px 24px rgba(57, 255, 20, 0.25);
}

.btn--signal:hover {
  color: var(--carbon);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(57, 255, 20, 0.35);
}

/* ---------- 7. Skip Link ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  background: var(--signal);
  color: var(--carbon);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  color: var(--carbon);
}

/* ---------- 8. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--space-2);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 30px rgba(3, 8, 18, 0.6);
}

.header-topline {
  height: var(--header-top-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(16px, 3vw, 32px);
  border-bottom: 1px solid var(--border);
  background: var(--carbon);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--silver);
  text-transform: uppercase;
}

.topline-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--signal);
  flex-shrink: 0;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 12px var(--signal);
  animation: pulse-dot 1.6s ease-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

.topline-segment {
  flex: 1;
  height: 1px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.topline-segment::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 60%;
  background: linear-gradient(90deg, transparent, var(--signal), transparent);
  animation: data-flow 3.2s linear infinite;
}

@keyframes data-flow {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(200%);
  }
}

.topline-note {
  color: var(--silver);
  flex-shrink: 0;
  letter-spacing: 0.08em;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  z-index: 2100;
  background: linear-gradient(90deg, var(--signal), var(--azure));
  border-radius: 0 3px 3px 0;
  transition: width 0.1s linear;
}

.header-bar {
  height: var(--header-bar-h);
}

.header-frame {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
}

/* ---------- 9. Brand ---------- */
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--white);
}

.brand-mark {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--signal);
  text-shadow: 0 0 18px var(--signal-soft);
}

.brand-name {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--silver);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  margin-left: 8px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ---------- 10. Navigation ---------- */
.site-nav {
  margin-left: 8px;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--silver);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(192, 192, 192, 0.5);
}

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

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--signal);
}

/* ---------- 11. Header Actions ---------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--carbon);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  width: clamp(150px, 17vw, 220px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search:focus-within {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-soft);
}

.search-icon {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.search-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 9px;
  height: 9px;
  border: 2px solid var(--signal);
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 2px;
  height: 6px;
  background: var(--signal);
  transform: rotate(-45deg);
  transform-origin: bottom left;
  border-radius: 2px;
}

.header-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  width: 100%;
}

.header-search input::placeholder {
  color: rgba(192, 192, 192, 0.6);
}

.header-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search-key {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  color: var(--silver);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 5px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--carbon);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 10px;
  transition: border-color 0.2s ease;
}

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

.nav-toggle-bar {
  height: 2px;
  background: var(--signal);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover .nav-toggle-bar {
  background: var(--white);
}

[data-nav-toggle][aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

[data-nav-toggle][aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

[data-nav-toggle][aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 12. Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--carbon);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--signal) 0%, var(--signal) 10%, var(--azure) 38%, transparent 72%);
}

.footer-grid {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 48px 24px 36px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: clamp(24px, 5vw, 48px);
}

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

.brand--footer .brand-mark,
.brand--footer .brand-name {
  font-size: 30px;
}

.brand--footer .brand-sub {
  color: var(--signal);
  border-color: var(--border-signal);
}

.footer-desc {
  color: var(--silver);
  font-size: 14px;
  max-width: 280px;
  margin: 0;
}

.footer-trust {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--signal);
  border: 1px solid var(--border-signal);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  background: rgba(57, 255, 20, 0.06);
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 320px;
}

.trust-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.5);
  animation: pulse-ring 2s infinite;
  flex-shrink: 0;
  margin-top: 6px;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(57, 255, 20, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(57, 255, 20, 0);
  }
}

.footer-section {
  min-width: 0;
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--signal);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--silver);
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a::before {
  content: "→";
  color: var(--azure);
  font-family: var(--font-mono);
  font-size: 11px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--signal);
  transform: translateX(4px);
}

.footer-links a:hover::before {
  color: var(--signal);
}

.contact-line {
  display: block;
  color: var(--silver);
  font-size: 14px;
  margin-bottom: 8px;
}

.contact-line--email,
.contact-line--phone {
  font-family: var(--font-mono);
  color: var(--azure);
  overflow-wrap: anywhere;
}

.contact-line--note {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(192, 192, 192, 0.7);
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}

.footer-bottom {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(192, 192, 192, 0.7);
}

/* ---------- 13. Back To Top ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1500;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--signal);
  color: var(--carbon);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(57, 255, 20, 0.3);
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top:hover {
  box-shadow: 0 8px 28px rgba(57, 255, 20, 0.5);
}

/* ---------- 14. Shared Components ---------- */

/* Frame first screen */
.hero-frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.92) 0%, rgba(10, 25, 47, 0.88) 55%, rgba(75, 0, 130, 0.55) 130%);
  padding: clamp(28px, 5vw, 72px);
  overflow: hidden;
}

.hero-frame::before,
.hero-frame::after {
  content: "";
  position: absolute;
  width: 48px;
  height: 48px;
  border-color: var(--signal);
  border-style: solid;
}

.hero-frame::before {
  top: 16px;
  left: 16px;
  border-width: 2px 0 0 2px;
  border-top-left-radius: var(--radius-md);
}

.hero-frame::after {
  bottom: 16px;
  right: 16px;
  border-width: 0 2px 2px 0;
  border-bottom-right-radius: var(--radius-md);
}

/* Page hero */
.page-hero {
  position: relative;
  padding: clamp(40px, 7vw, 88px) 0 clamp(24px, 4vw, 48px);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(32px, 6vw, 72px);
  background: radial-gradient(900px 260px at 82% -10%, rgba(75, 0, 130, 0.35), transparent 70%);
}

.page-hero::before {
  content: attr(data-kicker);
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--signal);
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* Section index */
.section-index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 24px 0;
}

.section-index a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--silver);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.section-index a::before {
  content: attr(data-index);
  color: var(--signal);
  font-size: 10px;
}

.section-index a:hover {
  border-color: var(--signal);
  color: var(--white);
  background: var(--signal-soft);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--silver);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--azure);
}

.breadcrumb a {
  color: var(--silver);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--signal);
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  color: var(--silver);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tag--signal {
  color: var(--signal);
  border-color: var(--border-signal);
}

.tag--azure {
  color: var(--azure);
  border-color: rgba(74, 144, 226, 0.4);
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--silver);
  background: var(--carbon);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--signal);
  color: var(--white);
}

.filter-btn.is-active {
  background: var(--signal);
  color: var(--carbon);
  border-color: var(--signal);
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(57, 255, 20, 0.3);
}

/* Cards */
.card {
  background: var(--carbon);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: var(--border-signal);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.card--data {
  border-top: 3px solid var(--signal);
}

.card-title {
  font-family: var(--font-head);
  font-size: 20px;
  margin-bottom: 10px;
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--silver);
  letter-spacing: 0.08em;
}

/* Data table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 14px;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--signal);
  color: var(--signal);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--white);
}

.data-table tr:hover td {
  background: var(--signal-soft);
}

/* Callout */
.callout {
  border-left: 3px solid var(--signal);
  background: var(--carbon);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.callout--wine {
  border-left-color: var(--wine);
}

.callout--azure {
  border-left-color: var(--azure);
}

/* Cut line */
.cut-line {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--signal), var(--azure), transparent 72%);
  margin: 32px 0;
  position: relative;
}

.cut-line::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 48px;
  width: 10px;
  height: 10px;
  background: var(--signal);
  transform: rotate(45deg);
  border-radius: 2px;
}

/* Media frame */
.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--space-2);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.media-frame:empty::after {
  content: "IMG PLACEHOLDER";
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.4em;
  color: rgba(192, 192, 192, 0.4);
}

.media-frame--wide {
  aspect-ratio: 21 / 9;
}

.media-frame--tall {
  aspect-ratio: 4 / 5;
}

/* Prose */
.prose {
  max-width: 72ch;
  font-size: 16px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.88);
}

.prose p {
  margin-bottom: 1.2em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em 1.4em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose strong {
  color: var(--signal);
}

.prose a {
  color: var(--azure);
  border-bottom: 1px solid var(--azure);
}

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

/* ---------- 15. Reveal Animation ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ---------- 16. Responsive ---------- */
@media (max-width: 1100px) {
  .header-bar {
    height: auto;
  }

  .header-frame {
    flex-wrap: wrap;
    row-gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand {
    order: 1;
  }

  .header-actions {
    order: 2;
  }

  .site-nav {
    order: 3;
    display: none;
    width: 100%;
    margin-left: 0;
    border-top: 1px solid var(--border);
    margin-top: 6px;
    padding-top: 10px;
  }

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

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

  .nav-item {
    width: 100%;
  }

  .nav-link {
    justify-content: flex-start;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 16px;
  }

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

  .nav-link[aria-current="page"]::after {
    display: none;
  }

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

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 15px;
  }

  .header-topline {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .header-search {
    display: none;
  }

  .header-actions .btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .brand-mark,
  .brand-name {
    font-size: 22px;
  }

  .brand-sub {
    font-size: 9px;
    padding: 1px 6px;
    margin-left: 6px;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 36px 20px 28px;
    gap: 28px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  .container,
  .container--narrow,
  .container--wide {
    padding: 0 20px;
  }
}

/* ---------- 17. Focus & Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .scroll-progress {
    display: none;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .to-top {
    transition: none;
  }

  .nav-toggle-bar {
    transition: none;
  }
}
