/* =========================================================================
   极速彩中心 · /assets/site.css
   00 reset · 01 tokens · 02 typography · 03 shell · 04 header
   05 footer · 06 buttons · 07 breadcrumb · 08 section · 09 grid
   10 board · 11 figure · 12 motion / responsive
   ========================================================================= */

/* 00 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, figure, figcaption, blockquote, dl, dd {
  margin: 0;
}

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

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

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

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

input { font: inherit; }

/* 01 tokens --------------------------------------------------------------- */
:root {
  --c-ink: #070B14;
  --c-ink-2: #0D1730;
  --c-blue: #1E6BFF;
  --c-cyan: #39D7FF;
  --c-orange: #FF5A1F;
  --c-white: #F4F7FF;
  --c-graphite: #1A2233;
  --c-mist: #8FA3C8;
  --c-lime: #B7FF3C;
  --c-magenta: #FF2E93;

  --line: rgba(143, 163, 200, 0.22);
  --line-strong: rgba(143, 163, 200, 0.42);
  --surface: rgba(26, 34, 51, 0.72);
  --surface-deep: rgba(13, 23, 48, 0.92);

  --shell: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 96px;

  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --ease: cubic-bezier(0.2, 0.9, 0.2, 1);
}

/* 02 typography ----------------------------------------------------------- */
body {
  min-height: 100vh;
  color: var(--c-white);
  background-color: var(--c-ink);
  background-image:
    linear-gradient(to right, rgba(143, 163, 200, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(143, 163, 200, 0.055) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(32px, 5vw, 64px); }
h2 { font-size: clamp(24px, 3.4vw, 38px); }
h3 { font-size: clamp(18px, 2vw, 24px); }

p { max-width: 68ch; }

::selection {
  background: var(--c-orange);
  color: var(--c-ink);
}

:where(a, button, input, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--c-orange);
  outline-offset: 3px;
}

.mono {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
  letter-spacing: 0.08em;
}

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

/* 03 shell ---------------------------------------------------------------- */
.shell {
  width: min(calc(100% - (var(--gutter) * 2)), var(--shell));
  margin-inline: auto;
}

main { display: block; }

#main-content {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-180%);
  padding: 10px 18px;
  background: var(--c-orange);
  color: var(--c-ink);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: transform 0.18s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* 04 header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(7, 11, 20, 0.94);
  border-bottom: 1px solid var(--line-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.24s var(--ease);
}

.site-header[data-stuck] {
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.5);
}

.header-utility {
  background: linear-gradient(90deg, rgba(30, 107, 255, 0.22), rgba(7, 11, 20, 0) 58%);
  border-bottom: 1px solid var(--line);
}

.header-utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 30px;
  font-size: 12px;
  color: var(--c-mist);
}

.header-utility__ticker {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: none;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-utility__meta {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(143, 163, 200, 0.7);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--c-lime);
  box-shadow: 0 0 0 3px rgba(183, 255, 60, 0.16);
  animation: pulse-dot 2.6s var(--ease) infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(183, 255, 60, 0.14); }
  50% { box-shadow: 0 0 0 7px rgba(183, 255, 60, 0.02); }
}

.header-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  min-height: 66px;
}

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--c-ink);
  background: linear-gradient(135deg, var(--c-cyan), var(--c-blue) 78%);
  clip-path: polygon(16% 0, 100% 0, 84% 100%, 0 100%);
}

.brand__text { display: block; }

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.brand__sub {
  display: block;
  margin-top: 3px;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--c-mist);
}

/* primary nav */
.primary-nav {
  margin-left: auto;
  min-width: 0;
}

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

.primary-nav__item { display: block; }

.primary-nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 11px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(244, 247, 255, 0.72);
  position: relative;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.primary-nav__idx {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: rgba(143, 163, 200, 0.72);
  transition: color 0.18s var(--ease);
}

.primary-nav__link:hover,
.primary-nav__link:focus-visible {
  color: var(--c-white);
  background: rgba(30, 107, 255, 0.16);
  border-color: rgba(57, 215, 255, 0.4);
}

.primary-nav__link:hover .primary-nav__idx { color: var(--c-cyan); }

.primary-nav__link[aria-current="page"] {
  color: var(--c-white);
  background: rgba(255, 90, 31, 0.14);
  border-color: rgba(255, 90, 31, 0.45);
}

.primary-nav__link[aria-current="page"] .primary-nav__idx { color: var(--c-orange); }

.primary-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: -1px;
  height: 2px;
  background: var(--c-orange);
}

/* header tools */
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  flex: 0 0 auto;
}

.header-cta { white-space: nowrap; }

.search-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--c-white);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.search-toggle:hover,
.search-toggle[aria-expanded="true"] {
  border-color: var(--c-cyan);
  background: rgba(30, 107, 255, 0.24);
}

.search-toggle__icon {
  position: relative;
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.search-toggle__icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 6px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--c-white);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--c-orange);
  background: rgba(255, 90, 31, 0.2);
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-toggle__label { font-size: 12px; }

/* search panel */
.search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 90;
  background: rgba(9, 15, 28, 0.985);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 26px 44px rgba(0, 0, 0, 0.52);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.search-panel[data-open] {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.search-panel__inner {
  display: grid;
  gap: 12px;
  padding: 20px 0 24px;
}

.search-panel__label {
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-cyan);
}

.search-panel__input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  color: var(--c-white);
  background: rgba(26, 34, 51, 0.88);
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--c-orange);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.search-panel__input::placeholder { color: rgba(143, 163, 200, 0.78); }

.search-panel__input:focus {
  border-color: var(--c-cyan);
  border-left-color: var(--c-orange);
  background: rgba(30, 107, 255, 0.14);
}

.search-panel__hint {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--c-mist);
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-tags__item[hidden] { display: none; }

.chip {
  --chip: var(--c-blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  color: var(--c-white);
  background: rgba(26, 34, 51, 0.7);
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--chip);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), transform 0.16s var(--ease);
}

.chip::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--chip);
}

.chip:hover {
  background: rgba(30, 107, 255, 0.18);
  border-color: var(--chip);
  transform: translateY(-1px);
}

.chip--blue { --chip: var(--c-blue); }
.chip--cyan { --chip: var(--c-cyan); }
.chip--lime { --chip: var(--c-lime); }
.chip--magenta { --chip: var(--c-magenta); }
.chip--orange { --chip: var(--c-orange); }

/* scroll progress */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(143, 163, 200, 0.14);
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--c-blue), var(--c-cyan) 62%, var(--c-orange));
  transition: width 0.1s linear;
}

/* 05 footer --------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--line-strong);
  background:
    radial-gradient(720px 320px at 12% 0%, rgba(30, 107, 255, 0.24), transparent 72%),
    linear-gradient(180deg, var(--c-ink-2), var(--c-ink) 78%);
}

.footer-track {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(102deg, rgba(57, 215, 255, 0.14) 0 1px, transparent 1px 46px);
  opacity: 0.5;
  mask-image: linear-gradient(180deg, #000 0%, transparent 68%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 68%);
}

.footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
  padding: clamp(36px, 5vw, 64px) 0 clamp(22px, 3vw, 34px);
}

.footer__brand { display: grid; align-content: start; gap: 12px; }

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

.footer__tag {
  max-width: 26ch;
  font-size: 14px;
  color: rgba(244, 247, 255, 0.8);
  line-height: 1.7;
}

.footer__note {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--c-cyan);
}

.footer__col { min-width: 0; }

.footer__title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-cyan);
}

.footer__title::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--c-orange);
}

.footer__list { display: grid; gap: 9px; }

.footer__list a {
  display: inline-block;
  font-size: 14px;
  color: rgba(244, 247, 255, 0.74);
  transition: color 0.16s var(--ease), transform 0.16s var(--ease);
}

.footer__list a:hover,
.footer__list a:focus-visible {
  color: var(--c-white);
  transform: translateX(3px);
}

.footer__contact {
  display: grid;
  gap: 9px;
  font-size: 13px;
}

.footer__contact li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(143, 163, 200, 0.2);
}

.footer__contact-key {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--c-mist);
  text-transform: uppercase;
}

.footer__contact-val {
  color: rgba(244, 247, 255, 0.88);
  overflow-wrap: anywhere;
}

.footer__legal {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 16px 0 26px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--c-mist);
}

.footer__copy { max-width: none; font-size: 11.5px; letter-spacing: 0.1em; }

.footer__legal-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.footer__legal-link {
  color: rgba(244, 247, 255, 0.78);
  border-bottom: 1px dashed rgba(143, 163, 200, 0.5);
  padding-bottom: 1px;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.footer__legal-link:hover,
.footer__legal-link:focus-visible {
  color: var(--c-orange);
  border-color: var(--c-orange);
}

.footer__beian {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(143, 163, 200, 0.9);
  padding: 2px 8px;
  border: 1px solid var(--line);
}

/* back to top */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  color: var(--c-ink);
  background: var(--c-orange);
  border: 1px solid rgba(255, 90, 31, 0.9);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 26px rgba(255, 90, 31, 0.28);
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s, background 0.16s var(--ease);
}

.to-top[data-visible] {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.to-top::before {
  content: "";
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.to-top:hover { background: var(--c-white); border-color: var(--c-white); }

/* 06 buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  color: var(--c-ink);
  background: var(--c-orange);
  border-color: var(--c-orange);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.btn--primary:hover { background: var(--c-white); border-color: var(--c-white); }

.btn--ghost {
  color: var(--c-white);
  background: rgba(30, 107, 255, 0.16);
  border-color: rgba(57, 215, 255, 0.45);
}

.btn--ghost:hover { background: rgba(30, 107, 255, 0.32); border-color: var(--c-cyan); }

.btn--line {
  color: var(--c-white);
  border-color: var(--line-strong);
}

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

.btn--sm { padding: 9px 15px; font-size: 12.5px; }

/* 07 breadcrumb ----------------------------------------------------------- */
.breadcrumb { padding: 16px 0 0; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--c-mist);
}

.breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: rgba(143, 163, 200, 0.55);
}

.breadcrumb__link { color: rgba(244, 247, 255, 0.8); }
.breadcrumb__link:hover { color: var(--c-cyan); }
.breadcrumb__current { color: var(--c-orange); }

/* 08 section -------------------------------------------------------------- */
.section {
  position: relative;
  padding: clamp(40px, 6vw, 84px) 0;
}

.section__head {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(20px, 3vw, 34px);
}

.section__title { font-size: clamp(24px, 3.4vw, 38px); }

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

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

.index-num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--c-orange);
}

.lede {
  max-width: 64ch;
  font-size: clamp(15.5px, 1.3vw, 18px);
  line-height: 1.82;
  color: rgba(244, 247, 255, 0.8);
}

/* 09 grid ----------------------------------------------------------------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
}

.grid-12 > * { grid-column: span 12; min-width: 0; }

@media (min-width: 760px) {
  .grid-12 > .col-4 { grid-column: span 4; }
  .grid-12 > .col-5 { grid-column: span 5; }
  .grid-12 > .col-6 { grid-column: span 6; }
  .grid-12 > .col-7 { grid-column: span 7; }
  .grid-12 > .col-8 { grid-column: span 8; }
  .grid-12 > .col-12 { grid-column: span 12; }
}

/* 10 board ---------------------------------------------------------------- */
.board {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(26, 34, 51, 0.94), var(--surface-deep));
}

.board::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 2px;
  background: var(--c-orange);
}

.board__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.board__title { font-size: clamp(17px, 1.8vw, 21px); }

.board__meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--c-mist);
}

.board__body {
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.78;
  color: rgba(244, 247, 255, 0.8);
}

/* 11 figure --------------------------------------------------------------- */
.figure {
  display: grid;
  gap: 10px;
  margin: 0;
}

.figure__media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(118deg, var(--c-ink-2), var(--c-graphite) 56%, rgba(30, 107, 255, 0.28));
}

.figure__media img,
.figure__media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(112deg, rgba(57, 215, 255, 0.16) 0 1px, transparent 1px 16px);
  opacity: 0.55;
}

.figure--wide .figure__media { aspect-ratio: 21 / 9; }
.figure--tall .figure__media { aspect-ratio: 4 / 5; }
.figure--square .figure__media { aspect-ratio: 1 / 1; }

.figure__caption {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--c-mist);
}

.figure__caption::before { content: "FIG"; color: var(--c-cyan); }

/* 12 motion / reveal ------------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

[data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

/* 13 responsive ----------------------------------------------------------- */
@media (max-width: 1180px) {
  .header-cta { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 88px; }

  .header-bar__inner { min-height: 58px; gap: 12px; }

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

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 88;
    margin-left: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 8px var(--gutter) 20px;
    background: rgba(9, 15, 28, 0.99);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 26px 44px rgba(0, 0, 0, 0.55);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }

  .primary-nav[data-open] {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .primary-nav__link {
    display: flex;
    justify-content: flex-start;
    padding: 14px 12px;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav__link[aria-current="page"]::after {
    left: auto;
    right: 12px;
    top: 50%;
    bottom: auto;
    width: 22px;
    height: 2px;
    transform: translateY(-50%);
  }

  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .header-utility__meta { display: none; }

  .header-utility__inner { font-size: 11px; }

  .brand__name { font-size: 16px; }
  .brand__sub { font-size: 8.5px; letter-spacing: 0.14em; }

  .search-toggle__label { display: none; }
  .search-toggle { padding: 0 11px; }

  .search-panel__inner { padding: 16px 0 20px; }

  .footer__inner { grid-template-columns: 1fr; }

  .footer__legal { flex-direction: column; align-items: flex-start; }

  .footer__contact li { grid-template-columns: 58px minmax(0, 1fr); }

  .to-top { padding: 9px 13px; font-size: 11.5px; }
}

@media (max-width: 400px) {
  .nav-toggle__label { display: none; }
}

@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;
  }

  .pulse-dot { animation: none; }

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