/* ============================================================
   雷竞技赛场 · 看台中文站 共享样式 /assets/site.css
   看台夜色 + 单色体系 + 荧光青绿高亮 + 印刷标签
   ============================================================ */

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

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

body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

/* ---------- tokens ---------- */
:root {
  --ink: #0A1420;          /* 看台墨蓝 */
  --ink-deep: #101318;     /* 炭黑夜色 */
  --panel: #1A2835;        /* 夜雾面板 */
  --grass: #12362E;        /* 草皮暗绿 */
  --edge: #2C4A63;         /* 边线蓝 */
  --neon: #29F0B0;         /* 荧光青绿 */
  --signal: #7CFFE2;       /* 信号青 */
  --flare: #FF5A3C;        /* 暖橙红 */
  --amber: #FFC24B;        /* 琥珀黄 */
  --paper: #E9EEF3;        /* 纸面灰白 */
  --mist: #8FA1B0;         /* 雾灰 */

  --line: rgba(44, 74, 99, 0.55);
  --line-soft: rgba(44, 74, 99, 0.28);
  --neon-soft: rgba(41, 240, 176, 0.13);

  --font-display: "Bebas Neue", "Oswald", "Archivo Narrow", "HarmonyOS Sans SC", "Noto Sans SC", system-ui, sans-serif;
  --font-data: "JetBrains Mono", "SFMono-Regular", "SF Mono", "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
  --font-body: Inter, "HarmonyOS Sans SC", "PingFang SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;

  --rail-w: 250px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --step: clamp(3rem, 8vw, 6.5rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- base ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 70% at 8% -8%, rgba(41, 240, 176, 0.09), transparent 55%),
    radial-gradient(100% 60% at 100% 0%, rgba(44, 74, 99, 0.32), transparent 62%),
    linear-gradient(180deg, #0C1724 0%, #0A1420 45%, #0B121B 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

h1, h2, h3 { font-weight: 400; letter-spacing: 0.02em; }
h1 { font-family: var(--font-display); font-size: clamp(3.5rem, 8vw, 7rem); line-height: 0.95; }
h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; }
h3 { font-size: 1.5rem; line-height: 1.3; }
strong { font-weight: 600; }

::selection { background: var(--neon); color: #06231A; }

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

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -120px;
  z-index: 200;
  display: inline-block;
  padding: 0.65rem 1.1rem;
  background: var(--neon);
  color: #06231A;
  font-family: var(--font-data);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0.75rem; }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 95;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--neon), var(--signal) 55%, var(--amber));
  box-shadow: 0 0 12px rgba(41, 240, 176, 0.5);
  transition: width 0.1s linear;
}

/* ---------- header / rail ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 20, 32, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
  padding-inline: var(--gutter);
}

.rail__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: 1 1 auto;
  min-width: 0;
}

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.brand__mark {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border: 1px solid var(--edge);
  background: linear-gradient(170deg, var(--grass) 0%, #0C1F1A 100%);
}
.brand__mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--edge);
}
.brand__mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--neon);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  color: var(--paper);
  white-space: nowrap;
}
.brand__sig {
  font-family: var(--font-data);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--mist);
  white-space: nowrap;
}

/* toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: none;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--edge);
  background: rgba(26, 40, 53, 0.7);
  color: var(--paper);
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-toggle:hover { border-color: var(--neon); color: var(--neon); }
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 13px;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--neon);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease), bottom 0.3s var(--ease);
}
.nav-toggle__bars::before { top: 2px; }
.nav-toggle__bars::after { bottom: 2px; }
.site-header[data-open] .nav-toggle__bars::before { top: 6px; transform: rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { bottom: 5.5px; transform: rotate(-45deg); }

/* nav (mobile drawer) */
.rail__nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  width: min(84vw, 340px);
  padding: 5.25rem 1.5rem 2rem;
  overflow-y: auto;
  background: linear-gradient(190deg, #101318 0%, #0A1420 100%);
  border-left: 1px solid var(--edge);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.6);
  transform: translateX(103%);
  transition: transform 0.38s var(--ease);
}
.site-header[data-open] .rail__nav { transform: translateX(0); }

.nav-list {
  counter-reset: navitem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0.6rem;
  border-left: 2px solid transparent;
  color: var(--mist);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-link::before {
  counter-increment: navitem;
  content: counter(navitem, decimal-leading-zero);
  font-family: var(--font-data);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--edge);
  transition: color 0.25s var(--ease);
}
.nav-link:hover { color: var(--paper); }
.nav-link:hover::before { color: var(--signal); }
.nav-link[aria-current="page"] {
  color: var(--paper);
  border-left-color: var(--neon);
  background: linear-gradient(90deg, var(--neon-soft), transparent 78%);
}
.nav-link[aria-current="page"]::before { color: var(--neon); }

/* rail foot */
.rail__foot { display: none; }
.rail__slogan {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.8rem;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--mist);
}
.rail__quick { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }

/* scrim */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(5, 9, 14, 0.68);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.site-header[data-open] .nav-scrim { opacity: 1; visibility: visible; }

/* ---------- desktop rail ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .site-header {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail-w);
    border-bottom: 0;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, #0A1420 0%, #0A1420 58%, #101318 100%);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .scroll-progress { left: var(--rail-w); }

  .rail {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1.6rem;
    height: 100%;
    padding: 2rem 1.5rem 1.5rem;
  }
  .rail__top {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
  }
  .nav-toggle { display: none; }

  .rail__nav {
    position: static;
    width: auto;
    height: auto;
    flex: 0 1 auto;
    padding: 0;
    overflow: visible;
    transform: none;
    background: transparent;
    border-left: 0;
    box-shadow: none;
  }
  .nav-link { padding: 0.62rem 0.5rem; font-size: 0.92rem; }

  .rail__foot {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
  }
  .nav-scrim { display: none; }
}

/* ---------- chips / buttons / tags ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--edge);
  background: rgba(26, 40, 53, 0.55);
  color: var(--paper);
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}
.chip::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  background: currentColor;
}
.chip--live { color: var(--neon); }
.chip--live::before { animation: dot-pulse 2.4s var(--ease) infinite; }
.chip--dl { color: var(--amber); }
.chip:hover {
  border-color: var(--neon);
  background: var(--neon-soft);
  color: var(--neon);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.72rem 1.15rem;
  border: 1px solid var(--edge);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-data);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}
.btn::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}
.btn:hover {
  border-color: var(--neon);
  color: var(--neon);
  background: var(--neon-soft);
}
.btn:hover::after { transform: translateX(4px); }
.btn--primary {
  border-color: var(--neon);
  background: var(--neon-soft);
  color: var(--neon);
}
.btn--primary:hover { background: var(--neon); color: #06231A; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.62rem;
  border: 1px solid var(--edge);
  background: rgba(26, 40, 53, 0.5);
  color: var(--mist);
  font-family: var(--font-data);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
}
.tag--neon { color: var(--neon); border-color: rgba(41, 240, 176, 0.5); }
.tag--flare { color: var(--flare); border-color: rgba(255, 90, 60, 0.5); }
.tag--amber { color: var(--amber); border-color: rgba(255, 194, 75, 0.5); }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  background: var(--ink-deep);
  border-top: 1px solid var(--edge);
  color: var(--mist);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--neon) 14%, transparent 46%, var(--flare) 84%, transparent 100%);
  opacity: 0.6;
}

.footer__inner {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.25rem);
}
.footer__masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.footer__brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.7rem);
  line-height: 1;
  letter-spacing: 0.14em;
  color: var(--paper);
}
.footer__brand-sig {
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.footer__grid {
  display: grid;
  gap: clamp(1.8rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .footer__grid { grid-template-columns: 1.05fr 1.55fr 0.9fr 1.5fr; }
}

.footer__col { display: flex; flex-direction: column; gap: 0.85rem; }
.footer__col--dl {
  padding: 1.15rem 1.15rem 1.25rem;
  border: 1px solid var(--edge);
  background: linear-gradient(160deg, rgba(18, 54, 46, 0.55) 0%, rgba(26, 40, 53, 0.6) 100%);
  box-shadow: inset 0 1px 0 rgba(41, 240, 176, 0.14);
}

.footer__title {
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-data);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: var(--neon);
}

.footer__text { font-size: 0.85rem; line-height: 1.7; }

.footer__list { display: flex; flex-direction: column; gap: 0.42rem; }

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--paper);
  opacity: 0.88;
  transition: color 0.22s var(--ease), opacity 0.22s var(--ease);
}
.footer__link::before {
  content: "";
  flex: none;
  width: 8px;
  height: 1px;
  background: var(--edge);
  transition: width 0.22s var(--ease), background 0.22s var(--ease);
}
.footer__link:hover { color: var(--neon); opacity: 1; }
.footer__link:hover::before { width: 16px; background: var(--neon); }

.footer__list--data {
  gap: 0.5rem;
  font-family: var(--font-data);
  font-size: 0.76rem;
}
.footer__list--data li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.8rem;
  justify-content: space-between;
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed var(--line-soft);
}
.footer__key { color: var(--mist); }
.footer__val { color: var(--paper); margin-left: auto; text-align: right; }

.footer__list--plain {
  gap: 0.5rem;
  font-family: var(--font-data);
  font-size: 0.76rem;
  color: var(--paper);
}
.footer__list--plain li {
  position: relative;
  padding-left: 0.75rem;
  word-break: break-word;
}
.footer__list--plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 5px;
  height: 1px;
  background: var(--edge);
}

.footer__cta { margin-top: 0.35rem; align-self: flex-start; }

.footer__note {
  padding-left: 0.75rem;
  border-left: 2px solid var(--amber);
  font-size: 0.75rem;
  line-height: 1.7;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.4rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--mist);
}

/* ---------- to top ---------- */
.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--neon);
  background: rgba(10, 20, 32, 0.92);
  color: var(--neon);
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.to-top[data-visible] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--neon); color: #06231A; }

/* ---------- layout utilities ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--step);
}
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.8rem 1.4rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.section__num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  line-height: 0.78;
  letter-spacing: 0.03em;
  color: var(--panel);
}
@supports (-webkit-text-stroke: 1px black) {
  .section__num {
    color: transparent;
    -webkit-text-stroke: 1px var(--edge);
  }
}
.section__title { color: var(--paper); }
.section__lede {
  max-width: 48ch;
  font-size: 0.96rem;
  color: var(--mist);
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .grid--asym { grid-template-columns: minmax(220px, 0.78fr) minmax(0, 2.22fr); }
}

.rule {
  height: 1px;
  border: 0;
  margin-block: clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(90deg, var(--edge) 0%, rgba(44, 74, 99, 0.05) 100%);
}

/* ---------- surfaces ---------- */
.panel {
  position: relative;
  padding: clamp(1.15rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(26, 40, 53, 0.92) 0%, rgba(10, 20, 32, 0.92) 100%);
}
.stack {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow:
    6px 6px 0 0 rgba(18, 54, 46, 0.6),
    12px 12px 0 0 rgba(26, 40, 53, 0.35);
}
.spotlight { position: relative; }
.spotlight::before {
  content: "";
  position: absolute;
  inset: -18% -8% auto -8%;
  height: 62%;
  pointer-events: none;
  background: radial-gradient(58% 100% at 50% 0%, rgba(41, 240, 176, 0.15), transparent 72%);
}

/* ---------- text blocks ---------- */
.prose {
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--paper);
}
.prose h2,
.prose h3 { margin-top: 1.6em; margin-bottom: 0.5em; color: var(--paper); }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.prose h3 { font-size: 1.2rem; }
.prose p + p { margin-top: 0.95em; }
.prose a {
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-color: rgba(124, 255, 226, 0.42);
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
.prose a:hover { color: var(--neon); text-decoration-color: var(--neon); }
.prose ul { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.8em; }
.prose li { position: relative; padding-left: 1.15rem; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 1px;
  background: var(--neon);
}

.stat { display: flex; flex-direction: column; gap: 0.15rem; }
.stat__label {
  font-family: var(--font-data);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--mist);
}
.stat__value {
  font-family: var(--font-data);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.2;
  color: var(--neon);
}

/* ---------- breadcrumbs ---------- */
.breadcrumbs {
  padding-block: 1.4rem 0;
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--edge);
}
.breadcrumbs a:hover { color: var(--neon); }

/* ---------- media ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background-color: #0C1724;
  background-image:
    linear-gradient(135deg, rgba(18, 54, 46, 0.8) 0%, rgba(10, 20, 32, 0.92) 62%),
    repeating-linear-gradient(90deg, rgba(44, 74, 99, 0.16) 0 1px, transparent 1px 46px);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 42%, rgba(10, 20, 32, 0.78) 100%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px);
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  max-width: 100%;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: rgba(10, 20, 32, 0.86);
  color: var(--paper);
  font-family: var(--font-data);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

/* ---------- reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js [data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

/* ---------- 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;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
