/* =========================================================
   IM赛场 / MATRIX IM — shared site kit
   /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, ul, ol, li, dl, dt, dd,
figure, figcaption, blockquote {
  margin: 0;
}

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

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

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

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- tokens ---------- */
:root {
  --ink-0: #06111C;
  --ink-1: #0A1E2E;
  --ink-2: #0E2740;
  --grid: #12324A;
  --cyan: #23E6E0;
  --orange: #FF7A1A;
  --white: #F4F8FB;
  --grey: #9FB0BE;
  --lime: #B8F35A;
  --violet: #7B61FF;

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

  --rail-w: 244px;
  --bar-h: 64px;
  --edge: 1px solid var(--grid);
  --hard-shadow: 6px 6px 0 rgba(6, 17, 28, 0.72);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(18px, 4vw, 52px);
  --shell: 1280px;
}

/* ---------- base ---------- */
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: 0.01em;
  color: var(--white);
  background: var(--ink-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(35, 230, 224, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 230, 224, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(125% 90% at 72% 0%, #000 18%, transparent 76%);
  mask-image: radial-gradient(125% 90% at 72% 0%, #000 18%, transparent 76%);
}

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

/* ---------- typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--white);
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 5vw, 68px); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.06; }
h3 { font-size: clamp(19px, 2vw, 26px); line-height: 1.2; }
h4 { font-size: 18px; line-height: 1.3; }

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

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

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 14px;
  z-index: 400;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #04121C;
  background: var(--cyan);
  border: 2px solid var(--cyan);
  text-decoration: none;
  transition: top 0.18s ease-out;
}
.skip-link:focus { top: 14px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  width: var(--rail-w);
  display: flex;
  --scroll-progress: 0;
}

.rail {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  padding: 22px 18px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--grid) transparent;
  background: linear-gradient(180deg, rgba(10, 30, 46, 0.62), rgba(6, 17, 28, 0.86));
  border-right: 1px solid transparent;
  transition: background 0.18s ease-out, border-color 0.18s ease-out, box-shadow 0.18s ease-out;
}

.site-header[data-scrolled] .rail {
  background: linear-gradient(180deg, #0A1E2E 0%, #06111C 100%);
  border-right-color: var(--grid);
  box-shadow: 10px 0 0 -8px rgba(35, 230, 224, 0.28);
}

/* brand */
.rail__brand {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--grid);
  text-decoration: none;
  color: var(--white);
}

.rail__mark {
  position: relative;
  display: block;
  flex: none;
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
  background: rgba(35, 230, 224, 0.1);
  border: 2px solid var(--cyan);
  transition: background 0.16s ease-in-out, border-color 0.16s ease-in-out;
}

.rail__mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  background: var(--orange);
  box-shadow: 0 0 16px rgba(255, 122, 26, 0.85);
}

.rail__brand:hover .rail__mark {
  background: rgba(35, 230, 224, 0.2);
  border-color: var(--white);
}

.rail__brand-cn {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.rail__brand-en {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* tagline */
.rail__tagline {
  padding: 13px 0 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--grey);
  border-bottom: 1px solid var(--grid);
}

/* toggle (desktop hidden) */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--white);
  background: rgba(10, 30, 46, 0.72);
  border: 2px solid var(--grid);
  cursor: pointer;
  transition: border-color 0.16s ease-in-out, color 0.16s ease-in-out;
}

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

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--cyan);
  transition: transform 0.24s var(--ease), opacity 0.16s ease-out;
}

.site-header[data-open] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* navigation */
.rail__nav {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px 0 10px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 10px 9px 12px;
  color: var(--grey);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.16s ease-in-out, background 0.16s ease-in-out, border-color 0.16s ease-in-out;
}

.nav-link__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: rgba(159, 176, 190, 0.55);
  transition: color 0.16s ease-in-out;
}

.nav-link__label {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(35, 230, 224, 0.07);
  border-left-color: var(--cyan);
}

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

.nav-link[aria-current="page"] {
  color: var(--white);
  background: rgba(35, 230, 224, 0.11);
  border-left-color: var(--cyan);
}

.nav-link[aria-current="page"] .nav-link__idx { color: var(--orange); }

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--orange);
}

/* rail foot */
.rail__foot {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 16px;
  border-top: 1px solid var(--grid);
}

.rail__status {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--grey);
}

.rail__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: rgba(159, 176, 190, 0.72);
}

/* status dots */
.dot {
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
}

.dot--lime { background: var(--lime); box-shadow: 0 0 0 3px rgba(184, 243, 90, 0.16), 0 0 10px rgba(184, 243, 90, 0.7); }
.dot--cyan { background: var(--cyan); box-shadow: 0 0 0 3px rgba(35, 230, 224, 0.16); }
.dot--orange { background: var(--orange); box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.2); }

/* reading progress */
.rail__progress {
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  background: rgba(18, 50, 74, 0.55);
}

.rail__progress-fill {
  display: block;
  width: 100%;
  height: calc(var(--scroll-progress, 0) * 100%);
  background: linear-gradient(180deg, var(--cyan), var(--orange));
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: rgba(6, 17, 28, 0.5);
  border: 2px solid var(--grid);
  transition: transform 0.16s var(--ease), border-color 0.16s ease-in-out,
              background 0.16s ease-in-out, color 0.16s ease-in-out, box-shadow 0.16s ease-in-out;
}

.btn:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(35, 230, 224, 0.25);
}

.btn:active { transform: none; box-shadow: none; }

.btn--signal {
  color: #170800;
  background: var(--orange);
  border-color: var(--orange);
}

.btn--signal:hover {
  color: #170800;
  background: #FF9152;
  border-color: #FF9152;
  box-shadow: 5px 5px 0 rgba(255, 122, 26, 0.32);
}

.btn--ghost {
  color: var(--white);
  background: transparent;
  border-color: var(--grid);
}

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

.btn--sm { padding: 9px 14px; font-size: 11px; }
.btn--block { width: 100%; }

/* =========================================================
   SHARED PAGE UTILITIES
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(44px, 7vw, 92px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
}

.breadcrumb {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 22px var(--gutter) 0;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(159, 176, 190, 0.8);
}

.breadcrumb__list li { display: flex; align-items: center; gap: 8px; }
.breadcrumb__list li + li::before { content: "/"; color: var(--grid); }
.breadcrumb a { color: var(--grey); text-decoration: none; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--cyan); }

.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  background: rgba(10, 30, 46, 0.72);
  border: var(--edge);
}

.panel--accent {
  border: 3px solid var(--cyan);
  box-shadow: var(--hard-shadow);
}

.panel--signal {
  border: 3px solid var(--orange);
  box-shadow: var(--hard-shadow);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(35, 230, 224, 0.08);
  border: 1px solid rgba(35, 230, 224, 0.34);
}

.tag--signal {
  color: var(--orange);
  background: rgba(255, 122, 26, 0.1);
  border-color: rgba(255, 122, 26, 0.4);
}

/* reusable image container */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(140deg, var(--ink-1), var(--ink-0) 62%);
  border: 2px solid var(--grid);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.06) brightness(0.85);
  transition: transform 0.5s var(--ease), filter 0.4s ease-out;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(6, 17, 28, 0.32) 0 1px, transparent 1px 3px);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.45;
  mix-blend-mode: screen;
  background-image:
    linear-gradient(rgba(35, 230, 224, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 230, 224, 0.16) 1px, transparent 1px);
  background-size: 44px 44px;
}

.media-frame:hover img { transform: scale(1.035); filter: saturate(1) contrast(1.08) brightness(0.94); }

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

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }

/* grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(48px, 8vw, 96px);
  padding-top: clamp(40px, 6vw, 68px);
  font-size: 14px;
  line-height: 1.72;
  color: var(--grey);
  background:
    linear-gradient(180deg, var(--ink-0) 0%, var(--ink-1) 46%, var(--ink-0) 100%);
  border-top: 2px solid var(--grid);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: min(220px, 42%);
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(35, 230, 224, 0));
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.35fr);
  gap: clamp(22px, 3vw, 44px);
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(36px, 5vw, 56px);
}

.footer-brand__mark {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--white);
  text-decoration: none;
}

.footer-brand__mark span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.26em;
  color: var(--cyan);
}

.footer-brand__summary {
  max-width: 38ch;
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--grey);
}

.footer-brand__status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  background: rgba(35, 230, 224, 0.06);
  border: 1px solid var(--grid);
}

.footer-brand__status .dot { margin-top: 0; }

.footer-col__title {
  margin-bottom: 16px;
  padding-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid var(--grid);
}

.footer-col__links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col__links a {
  position: relative;
  display: inline-block;
  font-size: 13.5px;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.16s ease-in-out;
}

.footer-col__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width 0.22s var(--ease);
}

.footer-col__links a:hover { color: var(--cyan); }
.footer-col__links a:hover::after { width: 100%; }

.contact-list { display: grid; gap: 13px; }

.contact-list__row { display: grid; gap: 2px; }

.contact-list__k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(159, 176, 190, 0.72);
}

.contact-list__v {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--white);
  overflow-wrap: anywhere;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 18px var(--gutter) 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--grey);
  border-top: 1px solid var(--grid);
}

.footer-bar__copy { color: rgba(159, 176, 190, 0.86); }

.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }

.footer-legal a {
  color: var(--grey);
  text-decoration: none;
  transition: color 0.16s ease-in-out;
}

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

/* =========================================================
   RESPONSIVE — tablet & mobile
   ========================================================= */
@media (max-width: 1099px) {

  body {
    padding-top: var(--bar-h);
  }

  body.is-nav-open { overflow: hidden; }

  .site-header {
    top: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: var(--bar-h);
    display: block;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.18s ease-out, border-color 0.18s ease-out, box-shadow 0.18s ease-out;
  }

  .site-header[data-scrolled] {
    background: rgba(10, 30, 46, 0.96);
    border-bottom-color: var(--grid);
    box-shadow: 0 12px 32px -20px #000;
  }

  .rail {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    height: var(--bar-h);
    padding: 0 16px;
    overflow: visible;
    background: transparent;
    border-right: 0;
  }

  .site-header[data-scrolled] .rail {
    background: transparent;
    border-right-color: transparent;
    box-shadow: none;
  }

  .rail__brand {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 0;
    border-bottom: 0;
  }

  .rail__mark { width: 26px; height: 26px; margin-bottom: 0; }
  .rail__mark::after { inset: 6px; }
  .rail__brand-cn { font-size: 17px; }
  .rail__brand-en { display: none; }
  .rail__tagline { display: none; }

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

  .rail__nav {
    position: fixed;
    top: var(--bar-h);
    left: 0;
    z-index: 5;
    width: min(330px, 86vw);
    height: calc(100dvh - var(--bar-h));
    padding: 18px 16px 140px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #0A1E2E;
    border-right: 2px solid var(--grid);
    box-shadow: 18px 0 46px -28px #000;
    transform: translateX(-104%);
    transition: transform 0.28s var(--ease);
  }

  .site-header[data-open] .rail__nav { transform: none; }

  .rail__nav::before {
    content: "索引 / INDEX";
    display: block;
    margin-bottom: 10px;
    padding: 0 12px 13px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.24em;
    color: var(--grey);
    border-bottom: 1px solid var(--grid);
  }

  .rail__nav .nav-link { padding: 13px 12px; }
  .rail__nav .nav-link__label { font-size: 15px; }

  .rail__foot {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 6;
    width: min(330px, 86vw);
    padding: 14px 16px;
    gap: 8px;
    background: #081826;
    border-top: 1px solid var(--grid);
    border-right: 2px solid var(--grid);
    transform: translateX(-104%);
    transition: transform 0.28s var(--ease);
  }

  .site-header[data-open] .rail__foot { transform: none; }

  .rail__progress {
    top: auto;
    right: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
  }

  .rail__progress-fill {
    width: calc(var(--scroll-progress, 0) * 100%);
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--orange));
  }
}

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-legal { gap: 16px; }
  .media-frame--wide { aspect-ratio: 16 / 9; }
}

/* =========================================================
   MOTION PREFERENCES
   ========================================================= */
@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;
  }

  .reveal { opacity: 1; transform: none; transition: none; }
  .rail__nav, .rail__foot { transition: none; }
  .media-frame:hover img { transform: none; }
}
