/* ==========================================================================
   极速电竞站 · 共享样式表 /assets/site.css
   框架式导航 + 珠宝色分区 + 霓虹高亮数据面板
   ========================================================================== */

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

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

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

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

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

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

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

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

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

/* ------------------------------ 2. Tokens ----------------------------- */
:root {
  --void: #080B11;
  --panel: #101A26;
  --indigo: #1B2F52;
  --teal-deep: #0E3B37;
  --wine: #3A1B2E;

  --lime: #B4FF39;
  --violet: #7C3AED;
  --violet-text: #A78BFA;
  --ice: #4CC9F0;
  --orange: #FF8A3D;

  --text: #E8F0FF;
  --text-soft: #D6E2F5;
  --muted: #93A5BF;
  --line: #2A3A4F;

  --frame-h: 64px;
  --rail-w: 76px;

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;

  --font-display: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC",
    "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC",
    "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "Roboto Mono", "SFMono-Regular",
    Menlo, Consolas, "Liberation Mono", monospace;

  --ease-out: cubic-bezier(.2, .7, .3, 1);
}

@media (min-width: 1180px) {
  :root { --frame-h: 70px; }
}

/* ------------------------------ 3. Base ------------------------------- */
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  padding-top: var(--frame-h);
  background-color: var(--void);
  background-image: repeating-linear-gradient(
    180deg,
    rgba(232, 240, 255, .022) 0px,
    rgba(232, 240, 255, .022) 1px,
    transparent 1px,
    transparent 4px
  );
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 1000px) {
  body { padding-left: var(--rail-w); }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--text);
}

h1 { font-size: clamp(34px, 6vw, 76px); }
h2 { font-size: clamp(26px, 3.6vw, 46px); }
h3 { font-size: clamp(19px, 2vw, 24px); }

p { color: var(--text-soft); }

::selection {
  background: var(--lime);
  color: #071009;
}

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

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

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

/* --------------------------- 4. Layout utils -------------------------- */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 768px) {
  .wrap {
    padding-left: 32px;
    padding-right: 32px;
  }
}

.grid {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  grid-template-columns: minmax(0, 1fr);
}

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

@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.prose {
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--text-soft);
}

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

.prose h2 { font-size: clamp(22px, 2.6vw, 30px); margin-top: 1.8em; }
.prose h3 { font-size: clamp(18px, 1.8vw, 22px); margin-top: 1.5em; }

.prose ul,
.prose ol {
  padding-left: 1.15em;
  list-style: disc;
}

.prose li + li { margin-top: .45em; }

.prose a {
  color: var(--violet-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .16s ease;
}

.prose a:hover { color: var(--lime); }

/* ---------------------------- 5. Skip link ---------------------------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 14px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--lime);
  color: #071009;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  transition: top .18s var(--ease-out);
}

.skip-link:focus {
  top: 14px;
  outline-offset: 4px;
}

/* ------------------------------ 6. Header ----------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: var(--frame-h);
  background: linear-gradient(180deg, rgba(16, 26, 38, .985), rgba(8, 11, 17, .965));
  border-bottom: 1px solid var(--line);
}

@media (min-width: 1000px) {
  .site-header { left: var(--rail-w); }
}

.site-header__bar {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .site-header__bar { padding: 0 28px; }
}

/* 左侧刻度轨：框架式导航的一部分 */
.frame-rail { display: none; }

@media (min-width: 1000px) {
  .frame-rail {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 130;
    width: var(--rail-w);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 18px;
    background: var(--panel);
    border-right: 1px solid var(--line);
  }
}

.frame-rail__label,
.frame-rail__code {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
}

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

.frame-rail__code {
  color: var(--lime);
  letter-spacing: .22em;
}

.frame-rail__scale {
  flex: 1;
  width: 1px;
  margin: 14px 0;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--line) 0 1px,
    transparent 1px 10px
  );
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
}

.brand__glyph {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--lime), #6FE016);
  color: #08120A;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 0 0 1px rgba(180, 255, 57, .35), 0 8px 22px -12px rgba(180, 255, 57, .9);
}

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

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

.brand__tagline {
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
  line-height: 1.4;
  white-space: nowrap;
}

@media (max-width: 479px) {
  .brand__tagline { display: none; }
}

/* 主导航 */
.site-nav { margin-left: auto; }

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

.site-nav__link {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color .16s ease, background-color .16s ease;
}

.site-nav__link:hover {
  color: var(--text);
  background: rgba(124, 58, 237, .22);
}

.site-nav__link[aria-current="page"] {
  color: #08120A;
  background: var(--lime);
  font-weight: 800;
}

.site-nav__link[aria-current="page"]:hover {
  color: #08120A;
  background: var(--lime);
}

/* 头部操作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
  flex: 0 0 auto;
}

/* 赛区筛选 */
.region-filter {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 4px 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 11, 17, .7);
}

@media (min-width: 1300px) {
  .region-filter { display: flex; }
}

.region-filter__label {
  padding: 0 6px 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
  transition: color .16s ease, background-color .16s ease,
    border-color .16s ease, box-shadow .16s ease;
}

.chip:hover {
  color: var(--text);
  border-color: var(--violet-text);
}

.chip[aria-pressed="true"] {
  color: #08120A;
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 0 22px -8px rgba(180, 255, 57, .95);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .16s var(--ease-out), box-shadow .16s ease,
    background-color .16s ease, color .16s ease, border-color .16s ease;
}

.btn--primary {
  background: var(--lime);
  color: #08120A;
  box-shadow: 0 10px 24px -14px rgba(180, 255, 57, .95);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -12px rgba(180, 255, 57, .95);
}

.btn--violet {
  background: var(--violet);
  color: #F3EEFF;
}

.btn--violet:hover {
  transform: translateY(-1px);
  background: #8B5CF6;
}

.btn--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, .02);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--violet-text);
  background: rgba(124, 58, 237, .22);
  color: #fff;
}

@media (max-width: 700px) {
  .header-actions .btn--primary { display: none; }
}

/* 移动菜单按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  transition: border-color .16s ease, background-color .16s ease;
}

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

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

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  transition: transform .2s var(--ease-out);
}

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

.nav-toggle__label { display: none; }

@media (min-width: 520px) {
  .nav-toggle__label { display: inline; }
}

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

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

/* 滚动进度光条 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--lime), var(--ice) 58%, var(--violet));
  box-shadow: 0 0 12px rgba(180, 255, 57, .55);
  pointer-events: none;
}

/* 移动端抽屉导航 */
@media (max-width: 1179px) {
  .site-nav {
    position: fixed;
    top: var(--frame-h);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--frame-h));
    overflow-y: auto;
    padding: 14px 18px 24px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .95);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-14px);
    transition: transform .22s var(--ease-out), opacity .22s ease, visibility .22s;
  }

  .site-header[data-open] .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

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

  .site-nav__link {
    padding: 13px 16px;
    border-radius: 14px;
    font-size: 16px;
    border-left: 2px solid transparent;
  }

  .site-nav__link[aria-current="page"] {
    border-left-color: #08120A;
  }
}

@media (min-width: 1180px) {
  .nav-toggle { display: none; }
}

/* ------------------------------ 7. Footer ----------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 130px);
  background: linear-gradient(180deg, #0A1120 0%, #0C1626 55%, #070A0F 100%);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--violet) 46%, var(--ice));
}

.site-footer__ticks {
  height: 12px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--line) 0 1px,
    transparent 1px 30px
  );
  opacity: .8;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 46px);
  padding: clamp(38px, 5vw, 68px) 0 clamp(28px, 4vw, 48px);
}

@media (min-width: 640px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 640px) and (max-width: 1139px) {
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 1140px) {
  .site-footer__grid {
    grid-template-columns: 1.7fr 1fr 1fr 1fr 1.35fr;
  }
}

.brand--footer .brand__name { font-size: 19px; }

.footer-brand__note {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-brand__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.footer-brand__stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(16, 26, 38, .75);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}

.footer-brand__stat .num {
  font-size: 16px;
  font-weight: 700;
  color: var(--lime);
}

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .14em;
  color: var(--lime);
}

.footer-col__title::before {
  content: "";
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  flex: 0 0 auto;
}

.footer-col__list {
  display: grid;
  gap: 9px;
}

.footer-col__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  color: var(--muted);
  transition: color .16s ease, transform .16s var(--ease-out);
}

.footer-col__link::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line);
  flex: 0 0 auto;
  transition: background-color .16s ease, box-shadow .16s ease;
}

.footer-col__link:hover {
  color: var(--text);
  transform: translateX(3px);
}

.footer-col__link:hover::before {
  background: var(--lime);
  box-shadow: 0 0 10px rgba(180, 255, 57, .9);
}

.footer-meta {
  margin-top: 16px;
  display: grid;
  gap: 9px;
  font-size: 13.5px;
}

.footer-meta__row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
}

.footer-meta__row dt {
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: .06em;
}

.footer-meta__row dd {
  margin: 0;
  color: #C9D8F0;
  word-break: break-word;
  line-height: 1.6;
}

.footer-meta__note {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer__base-wrap {
  border-top: 1px solid var(--line);
  background: rgba(8, 11, 17, .6);
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 26px;
  font-size: 13px;
  color: var(--muted);
}

.footer-legal {
  font-family: var(--font-mono);
  letter-spacing: .04em;
  color: var(--muted);
}

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

/* ------------------------- 8. Shared components ----------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--muted);
}

.breadcrumb__link {
  color: var(--muted);
  transition: color .16s ease;
}

.breadcrumb__link:hover { color: var(--lime); }

.breadcrumb__sep {
  color: var(--line);
  font-family: var(--font-mono);
}

.breadcrumb__current {
  color: var(--text);
  font-weight: 700;
}

.section {
  position: relative;
  padding: clamp(44px, 6.5vw, 86px) 0;
}

.section--indigo { background: linear-gradient(180deg, var(--indigo), #14253F 70%, #101C31); }
.section--teal   { background: linear-gradient(180deg, var(--teal-deep), #0A2A27 70%, #08211F); }
.section--wine   { background: linear-gradient(180deg, var(--wine), #2C1524 70%, #21101B); }

.section--indigo::before,
.section--teal::before,
.section--wine::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(180, 255, 57, .7) 34%, rgba(76, 201, 240, .55) 68%, transparent);
  pointer-events: none;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 22px;
  margin-bottom: clamp(24px, 3.6vw, 40px);
}

.section-head__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(180, 255, 57, .35);
  background: rgba(180, 255, 57, .07);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section-head__title {
  width: 100%;
  font-size: clamp(26px, 3.6vw, 46px);
}

.section-head__desc {
  max-width: 62ch;
  font-size: 16px;
  color: var(--muted);
}

.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  overflow: hidden;
  transition: transform .18s var(--ease-out), border-color .18s ease, box-shadow .18s ease;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--line);
  transition: background-color .18s ease, box-shadow .18s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #3C5578;
  box-shadow: 0 20px 44px -28px rgba(0, 0, 0, .95);
}

.card:hover::before {
  background: var(--lime);
  box-shadow: 0 0 14px rgba(180, 255, 57, .85);
}

.card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.01em;
}

.card__meta {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
}

.card__text {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.data-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(42, 58, 79, .6);
  overflow: hidden;
}

.data-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ice), var(--lime));
}

.cost {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1px solid rgba(124, 58, 237, .42);
  background: linear-gradient(100deg, rgba(124, 58, 237, .24), rgba(76, 201, 240, .12));
  font-size: 13.5px;
  color: #CBD9F0;
}

.cost__value {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--lime);
}

.cost__cycle {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--orange);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted);
}

.tag--live {
  background: var(--lime);
  border-color: var(--lime);
  color: #08120A;
}

.tag--warn {
  background: var(--orange);
  border-color: var(--orange);
  color: #2A0F00;
}

.tag--violet {
  background: rgba(124, 58, 237, .35);
  border-color: rgba(124, 58, 237, .75);
  color: #EDE7FF;
}

.media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    linear-gradient(140deg, var(--indigo), var(--panel) 58%, #0B1626);
}

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

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

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  font-size: 12.5px;
  color: #C9D8F0;
  background: linear-gradient(180deg, transparent, rgba(6, 10, 18, .94));
}

.filter-empty {
  display: none;
  padding: 28px 22px;
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
}

.filter-empty.is-on { display: block; }

.is-out { display: none !important; }

/* ------------------------- 9. Reveal (JS driven) ---------------------- */
html.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s var(--ease-out);
}

html.has-reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

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

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

  html.has-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
