/* ==========================================================================
   天博赛场 · 共享样式表 /assets/site.css
   赛场档案室 × 实时数据台
   ========================================================================== */

/* 1. Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, figcaption, blockquote, dl, dd { 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; }
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

/* 2. Tokens --------------------------------------------------------------- */
:root {
  --ink: #0E2A26;
  --ink-deep: #0B211E;
  --char: #15191B;
  --line: #2C3D3A;
  --paper: #F3F0E6;
  --cyan: #3CE8CE;
  --orange: #FF8A3D;
  --archive: #E4D3A3;
  --steel: #9BA8A4;
  --alert: #E4574C;
  --lift: #1E4C46;

  --font-display: "Helvetica Neue", "Arial Narrow", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Noto Sans Mono CJK SC", "Courier New", monospace;

  --max: 1280px;
  --gutter: clamp(16px, 4vw, 24px);
  --frame: 1px solid var(--line);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 20px 44px -26px rgba(0, 0, 0, .82);
}

/* 3. Base ----------------------------------------------------------------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(0deg, rgba(44, 61, 58, .22) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(90deg, rgba(44, 61, 58, .15) 0 1px, transparent 1px 96px),
    radial-gradient(1200px 600px at 12% -10%, rgba(30, 76, 70, .55), transparent 60%);
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  letter-spacing: .01em;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.07;
  color: var(--paper);
  font-stretch: condensed;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); }
h4 { font-size: 1.05rem; letter-spacing: -.01em; }

strong { color: var(--paper); }
::selection { background: var(--cyan); color: var(--ink-deep); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

/* 4. Utilities ------------------------------------------------------------ */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 760px; }
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid--split { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gutter); }
.rule { height: 1px; border: 0; background: var(--line); }
.rule--hot { background: linear-gradient(90deg, var(--orange), transparent); }
.rule--cool { background: linear-gradient(90deg, var(--cyan), transparent); }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--steel); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 700; }
.num--hot { color: var(--orange); }
.num--cool { color: var(--cyan); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--cyan);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }

.lede { font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.72; color: #D6DEDA; max-width: 62ch; }

.section { padding: clamp(32px, 5vw, 68px) 0; }
.section--tight { padding: clamp(20px, 3vw, 36px) 0; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 14px; margin-bottom: clamp(18px, 2.6vw, 28px); padding-bottom: 12px;
  border-bottom: var(--frame);
}
.section-head__title { font-size: clamp(1.25rem, 2.2vw, 1.85rem); }
.section-head__note { font-family: var(--font-mono); font-size: 12px; color: var(--steel); letter-spacing: .08em; }

.page-head { padding: clamp(26px, 5vw, 62px) 0 clamp(18px, 3vw, 32px); border-bottom: var(--frame); }
.page-head__title { margin-top: 14px; }
.page-head__lede { margin-top: 16px; }

.prose { max-width: 70ch; }
.prose p { margin: 0 0 1.05em; }
.prose h2, .prose h3 { margin: 1.7em 0 .55em; }
.prose ul, .prose ol { display: grid; gap: 10px; margin: 0 0 1.2em; }
.prose li { position: relative; padding-left: 20px; }
.prose li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--cyan); }
.prose blockquote {
  margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--archive);
  font-style: normal; color: #D6DEDA;
}

/* 5. Skip link ------------------------------------------------------------ */
.skip-link {
  position: absolute; left: 50%; top: -72px; transform: translateX(-50%);
  z-index: 200; padding: 10px 20px; background: var(--cyan); color: var(--ink-deep);
  font-family: var(--font-mono); font-size: 13px; text-decoration: none;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 8px; }

/* 6. Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(180deg, rgba(14, 42, 38, .985), rgba(14, 42, 38, .94));
  border-top: 4px solid var(--char);
  border-bottom: var(--frame);
  backdrop-filter: blur(6px);
  color: var(--paper);
}
.site-header::before {
  content: ""; position: absolute; top: 0; left: 0; height: 4px; width: clamp(96px, 20vw, 260px);
  background: linear-gradient(90deg, var(--cyan), var(--orange));
}
.header-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
.header-progress__bar {
  display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
}

.masthead { border-bottom: var(--frame); }
.masthead__inner {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(14px, 2.4vw, 26px) var(--gutter) clamp(12px, 2vw, 20px);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: padding .22s var(--ease);
}
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand__mark {
  width: 46px; height: 46px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--cyan); background: rgba(60, 232, 206, .08); color: var(--cyan);
  font-family: var(--font-display); font-weight: 800; font-size: 23px; line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
  transition: width .22s var(--ease), height .22s var(--ease), font-size .22s var(--ease);
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem); color: var(--paper);
  transition: font-size .22s var(--ease);
}
.brand__latin {
  margin-top: 7px; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .34em; text-transform: uppercase; color: var(--steel);
}
.masthead__tagline {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; letter-spacing: .1em; color: var(--steel);
}
.masthead__tagline::before,
.masthead__tagline::after { content: ""; width: clamp(24px, 6vw, 64px); height: 1px; background: var(--line); }

.site-nav { background: rgba(21, 25, 27, .55); }
.site-nav__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  min-height: 54px; display: flex; align-items: center; gap: 16px;
}
.nav-toggle {
  display: none; width: 100%; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0; background: none; border: 0; color: var(--paper); cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .1em;
}
.nav-toggle__label { text-transform: uppercase; }
.nav-toggle__bars {
  position: relative; display: block; width: 22px; height: 2px; background: currentColor;
  transition: background-color .18s var(--ease);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor;
  transition: transform .2s var(--ease);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.site-nav[data-open="true"] .nav-toggle__bars { background: transparent; }
.site-nav[data-open="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.site-nav[data-open="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav__panel { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 20px; }
.nav-list { display: flex; flex: 1; align-items: center; justify-content: center; gap: clamp(10px, 2.2vw, 30px); }
.nav-list__item { display: flex; }
.nav-link {
  display: inline-flex; align-items: baseline; gap: 7px; padding: 16px 2px;
  color: var(--paper); text-decoration: none; font-size: 15px;
  border-bottom: 2px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.nav-link__idx { font-family: var(--font-mono); font-size: 10px; color: var(--steel); letter-spacing: .06em; }
.nav-link:hover { color: var(--cyan); border-bottom-color: var(--line); }
.nav-link[aria-current="page"] { color: var(--cyan); border-bottom-color: var(--cyan); }
.nav-link[aria-current="page"] .nav-link__idx { color: var(--orange); }

.nav-shortcuts { display: flex; align-items: center; gap: 8px; flex: none; }
.nav-shortcuts__label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--steel);
}
.nav-short {
  display: inline-block; padding: 7px 12px; border: 1px solid var(--line);
  color: var(--paper); text-decoration: none; font-size: 13px; white-space: nowrap;
  transition: border-color .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease);
}
.nav-short:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-short--accent { background: var(--orange); border-color: var(--orange); color: #12181A; font-weight: 700; }
.nav-short--accent:hover { background: #FFA062; border-color: #FFA062; color: #12181A; }

/* 收缩态：滚动超过一屏后压成单行刊头 */
.site-header[data-compact="true"] .masthead__inner {
  flex-direction: row; justify-content: center; align-items: center; gap: 16px;
  padding: 8px var(--gutter);
}
.site-header[data-compact="true"] .masthead__tagline { display: none; }
.site-header[data-compact="true"] .brand__mark { width: 28px; height: 28px; font-size: 15px; }
.site-header[data-compact="true"] .brand__name { font-size: 1.15rem; }
.site-header[data-compact="true"] .brand__latin { display: none; }

/* 7. Footer --------------------------------------------------------------- */
.site-footer {
  position: relative; margin-top: clamp(40px, 6vw, 84px);
  background: var(--char); color: var(--steel); border-top: var(--frame);
}
.site-footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(44, 61, 58, .35) 0 1px, transparent 1px 72px),
    linear-gradient(180deg, rgba(228, 211, 163, .05), transparent 40%);
}
.site-footer__inner {
  position: relative; max-width: var(--max); margin: 0 auto;
  padding: clamp(34px, 5.5vw, 62px) var(--gutter) clamp(20px, 3vw, 30px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(26px, 5vw, 64px);
}
.footer-brand { display: grid; gap: 14px; align-content: start; }
.brand--footer .brand__mark { width: 34px; height: 34px; font-size: 17px; border-color: rgba(228, 211, 163, .6); color: var(--archive); background: rgba(228, 211, 163, .08); }
.brand--footer .brand__name { font-size: 1.35rem; }
.brand--footer .brand__latin { margin-top: 5px; font-size: 9.5px; letter-spacing: .3em; }
.footer-brand__note { font-size: 13.5px; line-height: 1.7; color: var(--steel); max-width: 32ch; }

.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.footer-col__title {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .24em;
  text-transform: uppercase; color: var(--paper);
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.footer-list { display: grid; gap: 10px; }
.footer-link {
  color: var(--steel); text-decoration: none; font-size: 14.5px;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.footer-link:hover { color: var(--cyan); border-bottom-color: currentColor; }

.footer-notes {
  position: relative; max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter) clamp(24px, 3vw, 34px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px;
}
.footer-note {
  padding: 16px 18px; border: 1px solid rgba(228, 211, 163, .24); border-left: 3px solid var(--archive);
  background: rgba(228, 211, 163, .06);
}
.footer-note__title { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--archive); margin-bottom: 8px; }
.footer-note__text { font-size: 13.5px; line-height: 1.7; color: var(--steel); }

.footer-legal { position: relative; border-top: 1px solid var(--line); }
.footer-legal__inner {
  max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter) clamp(26px, 4vw, 40px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 26px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .02em; color: var(--steel);
}
.footer-legal__copy { color: var(--paper); }
.footer-legal__links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal__contact { flex-basis: 100%; max-width: 100%; color: var(--steel); }
.footer-legal__contact,
.footer-legal__copy { line-height: 1.6; }

/* 8. Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border: 1px solid var(--line); background: transparent;
  color: var(--paper); text-decoration: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .04em;
  transition: transform .18s var(--ease), border-color .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); border-color: var(--cyan); color: var(--cyan); }
.btn--primary { background: var(--orange); border-color: var(--orange); color: #12181A; }
.btn--primary:hover { background: #FFA062; border-color: #FFA062; color: #12181A; }
.btn--ghost { border-color: rgba(60, 232, 206, .45); color: var(--cyan); }
.btn--ghost:hover { background: rgba(60, 232, 206, .1); }
.btn--quiet { border-color: transparent; padding: 8px 0; color: var(--steel); }
.btn--quiet:hover { transform: none; color: var(--cyan); }

/* 9. Breadcrumbs ---------------------------------------------------------- */
.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 16px 0; font-family: var(--font-mono); font-size: 12px; color: var(--steel);
}
.breadcrumbs__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs__link { color: var(--steel); text-decoration: none; border-bottom: 1px solid transparent; }
.breadcrumbs__link:hover { color: var(--cyan); border-bottom-color: currentColor; }
.breadcrumbs__sep { color: var(--line); }
.breadcrumbs__current { color: var(--paper); }

/* 10. Cards & panels ------------------------------------------------------ */
.card {
  position: relative; padding: clamp(18px, 2.4vw, 26px);
  background: var(--ink); border: var(--frame);
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(60, 232, 206, .55); box-shadow: var(--shadow); }
.card--lift { background: var(--lift); border-color: rgba(60, 232, 206, .2); }
.card--paper { background: var(--paper); border-color: #C9C2AC; color: #16201E; }
.card--paper .card__title, .card--paper h2, .card--paper h3 { color: #0E2A26; }
.card--paper .card__meta, .card--paper .card__foot { color: #4E5A57; }
.card__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.card__title { font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
.card__meta { font-family: var(--font-mono); font-size: 12px; color: var(--steel); }
.card__foot {
  margin-top: 16px; padding-top: 14px; border-top: var(--frame);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--steel);
}

.panel {
  position: relative; padding: clamp(18px, 2.6vw, 30px);
  background: var(--lift); border: 1px solid rgba(60, 232, 206, .22);
}
.panel--paper { background: var(--paper); border-color: #C9C2AC; color: #16201E; }
.panel--paper h2, .panel--paper h3, .panel--paper h4 { color: #0E2A26; }

/* 11. Tags ---------------------------------------------------------------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border: 1px solid var(--line); color: var(--steel);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.tag--archive { border-color: rgba(228, 211, 163, .5); background: rgba(228, 211, 163, .14); color: var(--archive); }
.tag--live { border-color: rgba(255, 138, 61, .55); background: rgba(255, 138, 61, .14); color: var(--orange); }
.tag--cool { border-color: rgba(60, 232, 206, .5); background: rgba(60, 232, 206, .12); color: var(--cyan); }
.tag--alert { border-color: rgba(228, 87, 76, .6); background: rgba(228, 87, 76, .14); color: var(--alert); }

/* 12. Stats --------------------------------------------------------------- */
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat__value {
  font-family: var(--font-mono); font-weight: 700; font-variant-numeric: tabular-nums;
  font-size: clamp(1.6rem, 2.6vw, 2.35rem); line-height: 1; color: var(--cyan);
}
.stat__value--hot { color: var(--orange); }
.stat__label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }

/* 13. Timeline ------------------------------------------------------------ */
.timeline { display: grid; gap: 20px; padding-left: 22px; border-left: 1px solid var(--line); }
.timeline__item { position: relative; }
.timeline__node {
  position: absolute; left: -29px; top: 7px; width: 9px; height: 9px;
  background: var(--ink); border: 1px solid var(--cyan);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.timeline__item:hover .timeline__node { transform: scale(1.15); background: var(--cyan); }
.timeline__time { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--archive); }
.timeline__title { margin: 5px 0 5px; font-size: 1.02rem; }
.timeline__text { font-size: 14px; color: var(--steel); }

/* 14. Accordion (details) ------------------------------------------------- */
.accordion { display: grid; gap: 10px; }
.accordion__item { border: var(--frame); background: rgba(30, 76, 70, .16); }
.accordion__summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__summary::after { content: "+"; font-family: var(--font-mono); color: var(--cyan); font-size: 1.1rem; }
.accordion__item[open] .accordion__summary { background: rgba(60, 232, 206, .08); color: var(--cyan); }
.accordion__item[open] .accordion__summary::after { content: "–"; }
.accordion__body { padding: 14px 18px 18px; border-top: var(--frame); font-size: 15px; color: #CBD4D0; }

/* 15. Tabs ---------------------------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: var(--frame); }
.tab {
  appearance: none; background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 10px 14px; cursor: pointer; color: var(--steel);
  font-family: var(--font-display); font-weight: 700; font-size: 14.5px; letter-spacing: .04em;
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}
.tab:hover { color: var(--paper); }
.tab[aria-selected="true"] { color: var(--cyan); border-bottom-color: var(--cyan); background: rgba(60, 232, 206, .07); }

/* 16. Table --------------------------------------------------------------- */
.table { width: 100%; font-size: 14.5px; }
.table caption {
  text-align: left; padding-bottom: 10px; color: var(--steel);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
}
.table th, .table td { padding: 11px 12px; text-align: left; vertical-align: top; border-bottom: var(--frame); }
.table thead th {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--archive); border-bottom-color: rgba(228, 211, 163, .4);
}
.table tbody tr { transition: background-color .18s var(--ease); }
.table tbody tr:hover { background: rgba(60, 232, 206, .06); }
.table .num, .table td.numeric { text-align: right; }

/* 17. Figure (页面阶段放置图片的容器) ------------------------------------- */
.figure { display: block; }
.figure__frame {
  position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10;
  border: var(--frame);
  background-color: var(--lift);
  background-image:
    linear-gradient(135deg, rgba(30, 76, 70, .92), rgba(14, 42, 38, .96)),
    repeating-linear-gradient(90deg, rgba(44, 61, 58, .5) 0 1px, transparent 1px 24px);
}
.figure__frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.6) contrast(1.06) brightness(.95);
  transition: transform .5s var(--ease);
}
.figure:hover .figure__frame img { transform: scale(1.03); }
.figure__frame--tall { aspect-ratio: 4 / 5; }
.figure__frame--wide { aspect-ratio: 21 / 9; }
.figure__frame--square { aspect-ratio: 1 / 1; }
.figure__cap {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px;
  padding-top: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--steel);
}
.figure__tag { color: var(--archive); letter-spacing: .1em; }

/* 18. Anchor nav ---------------------------------------------------------- */
.anchor-nav { position: sticky; top: 132px; display: grid; gap: 2px; padding-left: 14px; border-left: 1px solid var(--line); }
.anchor-nav__link {
  padding: 5px 0; color: var(--steel); text-decoration: none;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em;
  transition: color .18s var(--ease);
}
.anchor-nav__link:hover { color: var(--cyan); }
.anchor-nav__link[aria-current="true"], .anchor-nav__link.is-current { color: var(--cyan); }

/* 19. Motion: reveal & rule draw ------------------------------------------ */
.has-js [data-reveal] { opacity: 0; transform: translateY(12px); }
.has-js [data-reveal].is-visible {
  opacity: 1; transform: none;
  transition: opacity .36s ease, transform .36s var(--ease);
}
.draw-rule { position: relative; }
.draw-rule::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--cyan), rgba(60, 232, 206, 0));
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .36s var(--ease);
}
.draw-rule.is-visible::after { transform: scaleX(1); }

/* 20. Responsive ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .grid--split { grid-template-columns: minmax(0, 1fr); }
  .grid--12 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .site-nav__inner { flex-direction: column; align-items: stretch; min-height: 0; }
  .nav-toggle { display: flex; }
  .site-nav__panel {
    display: block; max-height: 0; overflow: hidden;
    background: var(--char); margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter);
    transition: max-height .24s var(--ease);
  }
  .site-nav[data-open="true"] .site-nav__panel { max-height: 74vh; overflow-y: auto; padding-bottom: 18px; }
  .nav-list { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; }
  .nav-list__item { display: block; }
  .nav-link { display: flex; padding: 13px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-link[aria-current="page"] { border-bottom-color: var(--cyan); }
  .nav-shortcuts { flex-wrap: wrap; padding-top: 16px; }
  .nav-shortcuts__label { flex-basis: 100%; margin-bottom: 4px; }
  .site-nav[data-open="true"] .nav-toggle { color: var(--cyan); }
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .anchor-nav { position: static; }
}
@media (max-width: 640px) {
  .masthead__inner { gap: 8px; }
  .brand__mark { width: 38px; height: 38px; font-size: 19px; }
  .brand__latin { letter-spacing: .22em; }
  .masthead__tagline { font-size: 12px; letter-spacing: .06em; }
  .masthead__tagline::before, .masthead__tagline::after { width: 18px; }
  .site-header[data-compact="true"] .brand__latin { display: none; }
  .grid--12 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid--cards { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .footer-legal__inner { flex-direction: column; align-items: flex-start; }
  .figure__frame { aspect-ratio: 3 / 2; }
}

/* 21. 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;
  }
  .has-js [data-reveal] { opacity: 1; transform: none; }
  .draw-rule::after { transform: scaleX(1); }
  .card:hover, .btn:hover { transform: none; }
}
