/* =========================================================
   M8体育移动版 · 共享样式 /assets/site.css
   深空蓝连续画布 + 记分牌式数据层级
   ========================================================= */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd, hr { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { 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; }
[hidden] { display: none !important; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #070E1F;
  --ink-2: #0E1A33;
  --line: #1B2A4A;
  --cyan: #16E0D0;
  --orange: #FF7A2F;
  --ice: #9FD8FF;
  --mist: #C9D3E0;
  --white: #F2F7FF;
  --amber: #FFD166;
  --deep-teal: #0A2E33;

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, "Times New Roman", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .3, 1);
  --shell: 1240px;
}

/* ---------- 3. Base ---------- */
body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .004em;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58rem 38rem at 84% -12%, rgba(22, 224, 208, .10), transparent 62%),
    radial-gradient(46rem 32rem at 6% 6%, rgba(255, 122, 47, .07), transparent 64%);
}
main, .sitefoot { position: relative; z-index: 1; }

h1, h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.16; }
h1 { font-size: clamp(2.15rem, 4.6vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.75rem); }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.5; }
h4 { font-size: 1rem; font-weight: 600; }
strong { font-weight: 600; color: var(--white); }

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

.wrap { width: min(100% - 2.4rem, var(--shell)); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: min(100% - 1.6rem, var(--shell)); } }

.num, .metric__value, .sechead__meta, .footbar__meta {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- 4. Skip link ---------- */
.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 200;
  padding: .6rem 1.05rem;
  background: var(--cyan);
  color: #04121A;
  font-weight: 700;
  font-size: .9rem;
  border-radius: 3px 14px 3px 14px;
  transition: top .2s var(--ease);
}
.skip:focus { top: .7rem; }

/* ---------- 5. Site head ---------- */
.sitehead {
  --head-h: 64px;
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.sitehead::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(22, 224, 208, .75), transparent);
}
@media (min-width: 1024px) { .sitehead { --head-h: 84px; } }

.masthead {
  width: min(100% - 2.4rem, var(--shell));
  margin-inline: auto;
  min-height: var(--head-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 10vw, 9rem);
}
@media (max-width: 640px) { .masthead { width: min(100% - 1.6rem, var(--shell)); } }

.masthead__brand { display: flex; align-items: center; }

.brand { display: inline-flex; align-items: center; gap: .7rem; padding: .35rem 0; }
.brand__mark {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .08em;
  padding: .3rem .5rem;
  color: var(--cyan);
  border: 1px solid rgba(22, 224, 208, .5);
  border-radius: 3px 12px 3px 12px;
  background: rgba(22, 224, 208, .09);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem; letter-spacing: -.01em; }
.brand__domain {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .05em;
  color: var(--mist);
}
@media (max-width: 560px) { .brand__domain { display: none; } }

/* mobile toggle */
.navtoggle {
  display: none;
  align-items: center;
  gap: .55rem;
  padding: .5rem .8rem;
  border: 1px solid var(--line);
  border-radius: 3px 12px 3px 12px;
  color: var(--white);
  font-size: .875rem;
  font-weight: 500;
}
.navtoggle__bars { position: relative; display: block; width: 18px; height: 2px; background: currentColor; }
.navtoggle__bars::before, .navtoggle__bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  background: currentColor; transition: transform .22s var(--ease);
}
.navtoggle__bars::before { top: -6px; }
.navtoggle__bars::after { top: 6px; }
.masthead[data-open] .navtoggle__bars { background: transparent; }
.masthead[data-open] .navtoggle__bars::before { transform: translateY(6px) rotate(45deg); }
.masthead[data-open] .navtoggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* navigation */
.sitenav__list { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.15rem); }
.sitenav__link {
  position: relative;
  display: inline-block;
  padding: .5rem 0;
  font-size: .95rem;
  font-weight: 500;
  color: var(--mist);
  letter-spacing: .02em;
  transition: color .2s var(--ease);
}
.sitenav__link::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: .1rem; height: 2px;
  background: var(--cyan);
  transition: right .26s var(--ease);
}
.sitenav__link:hover { color: var(--white); }
.sitenav__link:hover::after { right: 0; }
.sitenav__link[aria-current="page"] { color: var(--white); font-weight: 600; }
.sitenav__link[aria-current="page"]::after { right: 0; }

/* right data rail (desktop, compact) */
.rail {
  display: none;
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 65;
  padding: 1.05rem .5rem;
  writing-mode: vertical-rl;
  font-size: .75rem;
  letter-spacing: .3em;
  color: var(--cyan);
  background: linear-gradient(180deg, rgba(22, 224, 208, .20), rgba(22, 224, 208, .05));
  border: 1px solid rgba(22, 224, 208, .38);
  border-right: 0;
  border-radius: 14px 0 0 14px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.rail:hover { background: rgba(22, 224, 208, .3); }
.rail__text { display: block; }
.rail__count {
  display: block;
  margin-top: .8rem;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .05em;
  color: var(--mist);
}
.sitehead[data-rail-open] .rail { background: var(--cyan); color: #04121A; }
.sitehead[data-rail-open] .rail__count { color: #04121A; }

/* quick bar (mobile) */
.quickbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  grid-template-columns: repeat(4, 1fr);
  gap: .25rem;
  padding: .35rem .5rem calc(.35rem + env(safe-area-inset-bottom, 0px));
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}
.quickbar__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  padding: .55rem .2rem;
  border-radius: 3px 10px 3px 10px;
  font-size: .75rem;
  color: var(--mist);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.quickbar__link::before {
  content: "";
  width: 5px; height: 5px;
  background: currentColor;
  opacity: .5;
  border-radius: 1px;
}
.quickbar__link[aria-current="page"] { color: var(--cyan); background: rgba(22, 224, 208, .1); }
.quickbar__link[aria-current="page"]::before { opacity: 1; }

/* ---------- 6. Header responsive ---------- */
@media (max-width: 1023px) {
  body { padding-bottom: 68px; }
  .quickbar { display: grid; }
  .navtoggle { display: inline-flex; }
  .sitenav {
    position: fixed;
    left: 0; right: 0;
    top: var(--head-h);
    z-index: 62;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    padding-inline: 1.2rem;
    transition: max-height .3s var(--ease), visibility .3s var(--ease);
  }
  .masthead[data-open] .sitenav {
    max-height: 74vh;
    overflow-y: auto;
    visibility: visible;
    padding-block: .4rem 1.2rem;
  }
  .sitenav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .sitenav__link {
    display: block;
    width: 100%;
    padding: .95rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.0625rem;
  }
  .sitenav__link::after { display: none; }
  .sitenav__item:last-child .sitenav__link { border-bottom: 0; }
  .sitenav__link[aria-current="page"] { color: var(--cyan); }
  .sitenav__link[aria-current="page"]::before {
    content: "";
    display: inline-block;
    width: 16px; height: 2px;
    margin-right: .6rem;
    vertical-align: middle;
    background: var(--cyan);
  }
}

@media (min-width: 1024px) {
  .sitehead[data-compact] { border-bottom-color: transparent; }
  .sitehead[data-compact] .masthead { min-height: 64px; }
  .sitehead[data-compact] .rail { display: block; }
  .sitehead[data-compact] .sitenav {
    position: fixed;
    top: 50%;
    right: 1.4rem;
    z-index: 66;
    width: min(300px, 34vw);
    transform: translate(118%, -50%);
    opacity: 0;
    visibility: hidden;
    padding: 1.4rem 1.5rem;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 4px 22px 4px 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
    transition: transform .3s var(--ease), opacity .3s var(--ease), visibility .3s var(--ease);
  }
  .sitehead[data-compact][data-rail-open] .sitenav {
    transform: translate(0, -50%);
    opacity: 1;
    visibility: visible;
  }
  .sitehead[data-compact] .sitenav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .sitehead[data-compact] .sitenav__link {
    display: block;
    width: 100%;
    padding: .7rem 0;
    border-bottom: 1px solid var(--line);
  }
  .sitehead[data-compact] .sitenav__link::after { display: none; }
  .sitehead[data-compact] .sitenav__item:last-child .sitenav__link { border-bottom: 0; }
  .sitehead[data-compact] .sitenav__link[aria-current="page"] { color: var(--cyan); }
}

/* ---------- 7. Site foot ---------- */
.sitefoot {
  margin-top: clamp(3.5rem, 8vw, 7rem);
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}
.sitefoot::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(255, 122, 47, .9) 52%, transparent);
}
.footgrid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr 1.5fr;
  gap: clamp(1.5rem, 3vw, 2.6rem);
  padding-block: clamp(2.4rem, 5vw, 4rem);
}
.footcol { min-width: 0; }
.footkicker {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .07em;
  color: var(--cyan);
  margin-bottom: .8rem;
}
.footlead {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.6;
  max-width: 26ch;
}
.footlead--dim {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .875rem;
  color: var(--mist);
  margin-top: .6rem;
}
.foottitle {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--ice);
  margin-bottom: .95rem;
}
.footlist { display: grid; gap: .5rem; font-size: .9rem; }
.footlist a { color: var(--mist); transition: color .2s var(--ease); }
.footlist a:hover { color: var(--white); }
.footlist--contact li { color: var(--mist); font-size: .875rem; word-break: break-word; }
.footpath {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--white);
}
.footpath__step {
  padding: .2rem .5rem;
  border: 1px solid var(--line);
  border-radius: 2px 10px 2px 10px;
}
.footpath__sep { color: var(--cyan); }
.footnote { margin-top: .75rem; font-size: .8125rem; line-height: 1.65; color: var(--mist); }
.footbar { background: var(--ink); border-top: 1px solid var(--line); }
.footbar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.6rem;
  padding-block: 1.05rem;
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--mist);
}
.footbar__region { color: var(--ice); }

@media (max-width: 1023px) {
  .footgrid { grid-template-columns: repeat(2, 1fr); }
  .footcol--brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footgrid { grid-template-columns: 1fr; }
  .footbar__inner { justify-content: flex-start; }
}

/* ---------- 8. Layout helpers ---------- */
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(1.75rem, 3.5vw, 3rem); }

.grid { display: grid; gap: clamp(1.1rem, 2.2vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.panel { background: var(--ink-2); }
.panel--teal { background: var(--deep-teal); }
.panel--soft {
  background: var(--ink-2);
  border-radius: 4px 26px 4px 26px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.slant {
  --slant-size: 28px;
  padding-block: clamp(2.6rem, 6vw, 5rem);
  clip-path: polygon(0 var(--slant-size), 100% 0, 100% calc(100% - var(--slant-size)), 0 100%);
}

/* ---------- 9. Type components ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7.5vw, 6rem);
  letter-spacing: -.02em;
  line-height: 1.02;
}
.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.72;
  color: var(--mist);
  max-width: 58ch;
}
.ghosttext {
  font-family: var(--font-mono);
  letter-spacing: .18em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(159, 216, 255, .3);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .22em;
  color: var(--cyan);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--cyan); }

.sechead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem 1.2rem;
  padding-bottom: .95rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
  border-bottom: 1px solid var(--line);
}
.sechead__title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 1.75rem); font-weight: 800; letter-spacing: -.02em; }
.sechead__meta { font-size: .75rem; letter-spacing: .1em; color: var(--mist); }

.rule { height: 1px; border: 0; background: linear-gradient(90deg, var(--line), transparent); }

/* ---------- 10. Data components ---------- */
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.metric { display: flex; flex-direction: column; gap: .35rem; }
.metric__value {
  font-family: var(--font-mono);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--cyan);
}
.metric__label {
  font-size: .8125rem;
  letter-spacing: .1em;
  color: var(--mist);
}
.metric--orange .metric__value { color: var(--orange); }
.metric--ice .metric__value { color: var(--ice); }

.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem 1.25rem;
  padding-block: .65rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .05em;
  color: var(--mist);
}
.band__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, .14);
}
.band__dot[data-state="live"] { animation: pulse 2.4s var(--ease) infinite; }
.band__text { color: inherit; }
.band__text strong, .band__text b { color: var(--white); font-weight: 600; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 209, 102, .14); }
  50% { box-shadow: 0 0 0 7px rgba(255, 209, 102, 0); }
}

.tag {
  display: inline-block;
  padding: .22rem .6rem;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  color: var(--cyan);
  border: 1px solid rgba(22, 224, 208, .4);
  border-radius: 2px 10px 2px 10px;
}
.tag--amber { color: var(--amber); border-color: rgba(255, 209, 102, .4); }
.tag--ice { color: var(--ice); border-color: rgba(159, 216, 255, .4); }
.tag--orange { color: var(--orange); border-color: rgba(255, 122, 47, .42); }

/* ---------- 11. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .72rem 1.35rem;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--cyan);
  border: 1px solid rgba(22, 224, 208, .45);
  border-radius: 3px 16px 3px 16px;
  background: linear-gradient(120deg, rgba(22, 224, 208, .14), rgba(22, 224, 208, 0));
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.btn:hover { background: rgba(22, 224, 208, .22); color: var(--white); }
.btn--solid { background: var(--cyan); border-color: var(--cyan); color: #04121A; }
.btn--solid:hover { background: #4BF0E2; color: #04121A; }
.btn--orange {
  color: var(--orange);
  border-color: rgba(255, 122, 47, .5);
  background: linear-gradient(120deg, rgba(255, 122, 47, .16), rgba(255, 122, 47, 0));
}
.btn--orange:hover { background: rgba(255, 122, 47, .24); color: var(--white); }
.btn--ghost { color: var(--white); border-color: var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--ice); color: var(--ice); background: rgba(159, 216, 255, .07); }

/* ---------- 12. Breadcrumb ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--mist);
}
.crumbs__sep { color: var(--line); }
.crumbs a { color: var(--mist); transition: color .2s var(--ease); }
.crumbs a:hover { color: var(--ice); }
.crumbs__item[aria-current="page"] { color: var(--white); }

/* ---------- 13. Prose ---------- */
.prose { max-width: 72ch; font-size: 1.0625rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.05em; }
.prose p { text-align: justify; text-justify: inter-ideograph; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; color: var(--white); }
.prose a { color: var(--ice); border-bottom: 1px solid rgba(159, 216, 255, .4); }
.prose a:hover { color: var(--white); border-bottom-color: var(--white); }
.prose ul, .prose ol { display: grid; gap: .5rem; }
.prose li { position: relative; padding-left: 1.15rem; color: var(--mist); }
.prose li::before {
  content: "";
  position: absolute; left: 0; top: .72em;
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 1px;
}
.prose blockquote {
  border-left: 2px solid var(--cyan);
  padding-left: 1.15rem;
  color: var(--mist);
}

/* ---------- 14. Disclosure ---------- */
.disclosure { border-top: 1px solid var(--line); }
.disclosure:last-of-type { border-bottom: 1px solid var(--line); }
.disclosure__sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color .2s var(--ease);
}
.disclosure__sum::-webkit-details-marker { display: none; }
.disclosure__sum::after {
  content: "＋";
  font-family: var(--font-mono);
  color: var(--cyan);
  flex: none;
}
.disclosure[open] .disclosure__sum { color: var(--ice); }
.disclosure[open] .disclosure__sum::after { content: "－"; }
.disclosure__sum:hover { color: var(--white); }
.disclosure__body { padding-bottom: 1.2rem; color: var(--mist); font-size: .9375rem; line-height: 1.75; }

/* ---------- 15. Tabs ---------- */
.tabs { display: grid; gap: clamp(1.2rem, 3vw, 2rem); }
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
}
.tabs__tab {
  padding: .55rem 1rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--mist);
  border: 1px solid transparent;
  border-radius: 3px 14px 3px 14px;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.tabs__tab:hover { color: var(--white); background: rgba(159, 216, 255, .08); }
.tabs__tab[aria-selected="true"] {
  color: var(--cyan);
  border-color: rgba(22, 224, 208, .45);
  background: rgba(22, 224, 208, .1);
}
.tabs__panel:focus-visible { outline-offset: 6px; }

/* ---------- 16. Figures ---------- */
.figure {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--ink-2), var(--deep-teal));
  border-radius: 4px 32px 4px 32px;
  aspect-ratio: 16 / 9;
}
.figure img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.06); }
.figure::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 14, 31, 0) 45%, rgba(7, 14, 31, .68));
}
.figure--wide { aspect-ratio: 16 / 7; }
.figure--square { aspect-ratio: 1 / 1; }
.figure--tall { aspect-ratio: 3 / 4; }
.figure--band { aspect-ratio: 21 / 6; }
.figure__ph {
  display: grid;
  place-items: center;
  width: 100%; height: 100%;
  min-height: 12rem;
  background-image:
    linear-gradient(rgba(27, 42, 74, .9) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 42, 74, .9) 1px, transparent 1px);
  background-size: 32px 32px;
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .1em;
  color: var(--mist);
}
.figure__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: .85rem 1.1rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--white);
}

/* ---------- 17. Reveal motion ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

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