/* =========================================================
   AYX 爱游戏体育 · 共享站点样式 /assets/site.css
   墨绿画布 · 边线荧光黄 · 赛点橙红 · 编辑部刊头
   ========================================================= */

/* ---------- tokens ---------- */
:root {
  --ink: #0B1F17;
  --ink-2: #123328;
  --ink-3: #08160F;
  --lime: #D8FF3E;
  --orange: #FF5A36;
  --slate: #7C93A8;
  --mist: #D9E2E8;
  --paper: #F4EEDD;
  --brown: #1A1512;
  --teal: #2A6F6A;
  --amber: #FFB648;

  --text: #E7EFE9;
  --muted: #9DB8AC;
  --line: rgba(217, 226, 232, 0.16);
  --line-strong: rgba(217, 226, 232, 0.32);

  --font-display: "Barlow Condensed", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --max: 1240px;
  --shadow-soft: 0 22px 54px -36px rgba(0, 0, 0, 0.95);
}

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

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

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(0deg, rgba(217, 226, 232, 0.028) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(217, 226, 232, 0.02) 0 1px, transparent 1px 48px);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

#main-content,
section[id] { scroll-margin-top: 132px; }

/* ---------- typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--paper);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); line-height: 0.98; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.15; }

p { line-height: 1.72; }
strong { font-weight: 700; color: var(--paper); }

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

/* ---------- layout ---------- */
.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.section { padding-block: clamp(46px, 7vw, 92px); }
.section--raise { background: var(--ink-2); }
.section--paper { background: var(--paper); color: var(--brown); }
.section--paper h1,
.section--paper h2,
.section--paper h3 { color: var(--brown); }
.section--paper .eyebrow { color: var(--teal); }
.section--paper .eyebrow::before { background: var(--teal); }
.section--paper .mono { color: var(--teal); }
.section--paper .prose { color: #3A2F27; }
.section--paper .prose h2,
.section--paper .prose h3 { color: var(--brown); }
.section--paper .card {
  background: #FBF6E9;
  border-color: rgba(26, 21, 18, 0.14);
  color: var(--brown);
}
.section--paper .card__title { color: var(--brown); }
.section--paper .card__meta,
.section--paper .card__index { color: var(--teal); }
.section--paper .timeline { border-top-color: rgba(26, 21, 18, 0.2); }
.section--paper .timeline__item { border-left-color: rgba(26, 21, 18, 0.14); }
.section--paper .timeline__value { color: var(--brown); }
.section--paper .timeline__label { color: var(--teal); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(26px, 4vw, 58px);
  align-items: start;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--lime);
  flex: none;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--lime), rgba(216, 255, 62, 0) 72%);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: #E8FF86; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--lime);
  border-color: rgba(216, 255, 62, 0.45);
}
.btn--ghost:hover { background: rgba(216, 255, 62, 0.12); border-color: var(--lime); }
.btn--orange { background: var(--orange); color: var(--brown); }
.btn--orange:hover { background: #FF7A5C; transform: translateY(-1px); }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--block { width: 100%; }

/* ---------- tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid currentColor;
  border-radius: 1px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag--lime { color: var(--lime); }
.tag--orange { color: var(--orange); }
.tag--amber { color: var(--amber); }
.tag--slate { color: var(--slate); }

/* ---------- cards ---------- */
.card {
  position: relative;
  padding: 22px 22px 20px;
  background: linear-gradient(180deg, rgba(18, 51, 40, 0.94), rgba(11, 31, 23, 0.94));
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.22s ease, transform 0.22s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 52px;
  height: 3px;
  background: var(--lime);
}
.card__index {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--slate);
  margin-bottom: 10px;
}
.card__title {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--paper);
}
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--slate);
}
.card__text {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}
.card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

@media (hover: hover) {
  .card:hover {
    border-color: rgba(216, 255, 62, 0.42);
    transform: translateY(-2px);
  }
}

/* ---------- media frames ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 2px;
  background-color: var(--ink-2);
  background-image:
    linear-gradient(140deg, rgba(42, 111, 106, 0.42), rgba(18, 51, 40, 0.92) 62%),
    repeating-linear-gradient(90deg, rgba(217, 226, 232, 0.07) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(0deg, rgba(217, 226, 232, 0.05) 0 1px, transparent 1px 42px);
}
.media-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}
.media-frame--slant {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 26px));
}
.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(8, 22, 15, 0), rgba(8, 22, 15, 0.9));
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

/* ---------- timeline ---------- */
.timeline {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding-top: 1px;
  border-top: 1px solid var(--line-strong);
  scrollbar-width: thin;
}
.timeline__item {
  position: relative;
  flex: 1 0 168px;
  padding: 22px 16px 6px;
  border-left: 1px solid var(--line);
}
.timeline__item:first-child { border-left: 0; }
.timeline__node {
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--slate);
  transform: rotate(45deg);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.timeline__item.is-lit .timeline__node {
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(216, 255, 62, 0.13);
}
.timeline__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.timeline__value {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.15;
  color: var(--paper);
}

/* ---------- toc ---------- */
.toc {
  position: sticky;
  top: 118px;
  padding-left: 18px;
  border-left: 1px solid rgba(216, 255, 62, 0.32);
}
.toc__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}
.toc__list { display: grid; gap: 9px; }
.toc__item { display: block; }
.toc__link {
  position: relative;
  display: block;
  padding: 2px 0 2px 15px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  transition: color 0.2s ease;
}
.toc__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  background: rgba(124, 147, 168, 0.65);
  transform: rotate(45deg);
  transition: background-color 0.2s ease;
}
.toc__link:hover,
.toc__link:focus-visible { color: var(--paper); }
.toc__link[aria-current="true"] { color: var(--lime); font-weight: 500; }
.toc__link[aria-current="true"]::before { background: var(--lime); }

/* ---------- breadcrumbs ---------- */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--slate);
}
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.breadcrumbs__link { color: var(--muted); }
.breadcrumbs__link:hover { color: var(--lime); }
.breadcrumbs__sep { color: rgba(124, 147, 168, 0.6); }

/* ---------- prose ---------- */
.prose {
  max-width: 68ch;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--muted);
}
.prose > :first-child { margin-top: 0; }
.prose p { margin-top: 1.05em; }
.prose h2 {
  margin: 2em 0 0.6em;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  color: var(--paper);
}
.prose h3 {
  margin: 1.7em 0 0.5em;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--paper);
}
.prose ul,
.prose ol {
  margin-top: 1em;
  padding-left: 1.15em;
  list-style: disc;
}
.prose li { margin-top: 0.4em; }
.prose a {
  color: var(--lime);
  border-bottom: 1px solid rgba(216, 255, 62, 0.4);
}

/* ---------- note ---------- */
.note {
  padding: 15px 18px;
  background: rgba(216, 255, 62, 0.06);
  border-left: 2px solid var(--lime);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}
.section--paper .note {
  background: rgba(42, 111, 106, 0.09);
  border-left-color: var(--teal);
  color: #3A2F27;
}

/* ---------- data table ---------- */
.data-table {
  width: 100%;
  min-width: 520px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.data-table th,
.data-table td {
  padding: 11px 13px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.data-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  background: rgba(124, 147, 168, 0.14);
  border-bottom-color: var(--line-strong);
}
.data-table tbody tr:nth-child(even) { background: rgba(124, 147, 168, 0.08); }
.data-table td { color: var(--muted); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 31, 23, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 10px;
  z-index: 130;
  padding: 10px 16px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

.header-strip {
  background: var(--ink-3);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.header-strip__inner {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
}
.strip-meta {
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s ease;
}
a.strip-meta:hover { color: var(--lime); }
.strip-meta--live::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 8px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.16);
  flex: none;
}
.strip-tag {
  color: var(--slate);
  letter-spacing: 0.16em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.masthead {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 0 16px;
}
.masthead__lead {
  display: grid;
  gap: 3px;
  line-height: 1.2;
  justify-self: start;
}
.masthead__kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
}
.masthead__tagline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(15px, 1.6vw, 19px);
  letter-spacing: 0.04em;
  color: var(--paper);
}
.masthead__brand {
  position: relative;
  justify-self: center;
  display: inline-grid;
  justify-items: center;
  gap: 2px;
  padding: 0 22px;
  text-align: center;
}
.masthead__brand::before,
.masthead__brand::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 1px;
  height: 28px;
  background: rgba(216, 255, 62, 0.5);
}
.masthead__brand::before { left: 0; transform: translateY(-50%) rotate(16deg); }
.masthead__brand::after { right: 0; transform: translateY(-50%) rotate(16deg); }
.brand-mark {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--lime);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--paper);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--slate);
}
.masthead__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 38px;
  border: 1px solid rgba(216, 255, 62, 0.45);
  border-radius: 2px;
  background: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.nav-toggle:hover { background: rgba(216, 255, 62, 0.1); border-color: var(--lime); }
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--lime);
  transition: background-color 0.2s ease;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--lime);
  transition: transform 0.24s ease, top 0.24s ease;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.site-header[data-open] .nav-toggle__bars { background: transparent; }
.site-header[data-open] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.masthead-nav {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 51, 40, 0.6), rgba(11, 31, 23, 0));
}
.masthead-nav__list {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(10px, 2.4vw, 34px);
}
.masthead-nav__item { display: flex; }
.masthead-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 13px 2px 15px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.22s ease;
}
.masthead-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.26s ease;
}
.masthead-nav__link:hover,
.masthead-nav__link:focus-visible { color: var(--paper); }
.masthead-nav__link:hover::after,
.masthead-nav__link:focus-visible::after { transform: scaleX(1); }
.masthead-nav__link[aria-current="page"] { color: var(--lime); }
.masthead-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(124, 147, 168, 0.9);
}
.masthead-nav__link[aria-current="page"] .nav-index { color: var(--orange); }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  background: var(--ink-3);
  color: var(--text);
  border-top: 1px solid rgba(216, 255, 62, 0.35);
}
.site-footer::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--lime) 0 22%, var(--orange) 22% 34%, rgba(255, 90, 54, 0) 34%);
}
.footer-top { padding: clamp(40px, 5vw, 68px) 0 clamp(30px, 4vw, 48px); }
.footer-brand {
  display: grid;
  gap: 8px;
  max-width: 580px;
  margin-bottom: clamp(26px, 3.5vw, 40px);
}
.footer-brand__name {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: var(--paper);
}
.footer-brand__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
}
.footer-lede {
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: clamp(22px, 3vw, 40px);
  padding-top: clamp(22px, 3vw, 34px);
  border-top: 1px solid var(--line);
}
.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
}
.footer-links { display: grid; gap: 9px; }
.footer-link {
  display: inline-block;
  width: fit-content;
  font-size: 14.5px;
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-link:hover,
.footer-link:focus-visible { color: var(--lime); border-bottom-color: rgba(216, 255, 62, 0.45); }
.footer-contact__line {
  display: flex;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(217, 226, 232, 0.14);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
}
.footer-contact__label {
  flex: 0 0 42px;
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}
.footer-contact__value {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.footer-contact__note {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--slate);
}
.footer-bottom {
  background: var(--ink-3);
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--slate);
}
.footer-copy { color: var(--muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-legal__link {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-legal__link:hover,
.footer-legal__link:focus-visible { color: var(--lime); border-bottom-color: rgba(216, 255, 62, 0.45); }
.footer-icp { color: var(--slate); }

/* ---------- js injected: progress + to top ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 95;
  background: linear-gradient(90deg, var(--lime), var(--orange));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 85;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--ink-2);
  color: var(--lime);
  border: 1px solid rgba(216, 255, 62, 0.45);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.24s ease, transform 0.24s ease, background-color 0.2s ease, color 0.2s ease, visibility 0.24s;
}
.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }

/* ---------- reveal ---------- */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.js-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- responsive: tablet ---------- */
@media (max-width: 1040px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .toc {
    position: static;
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(216, 255, 62, 0.3);
  }
  .toc__list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(160px, 1fr);
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- responsive: mobile nav ---------- */
@media (max-width: 880px) {
  .header-strip__inner { font-size: 10px; gap: 10px; letter-spacing: 0.08em; }
  .strip-tag { display: none; }

  .masthead {
    grid-template-columns: 1fr auto;
    padding: 10px 0 12px;
    gap: 10px;
  }
  .masthead__lead { display: none; }
  .masthead__brand { justify-self: start; padding: 0; }
  .masthead__brand::before,
  .masthead__brand::after { display: none; }
  .brand-name { font-size: 23px; }
  .brand-sub { display: none; }
  .nav-toggle { display: inline-flex; }

  .masthead-nav {
    max-height: 0;
    overflow: hidden;
    border-top-color: transparent;
    transition: max-height 0.3s ease, border-color 0.3s ease;
  }
  .site-header[data-open] .masthead-nav {
    max-height: 620px;
    border-top-color: var(--line);
  }
  .masthead-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 0 14px;
  }
  .masthead-nav__item {
    display: block;
    border-bottom: 1px solid var(--line);
  }
  .masthead-nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 13px 2px;
    font-size: 16px;
    color: var(--text);
  }
  .masthead-nav__link::after { display: none; }
}

/* ---------- responsive: small ---------- */
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-contact { grid-column: auto; }
  .footer-bottom__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 620px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .section { padding-block: 42px; }
  .card { padding: 18px 18px 16px; }
  .footer-brand__name { font-size: 21px; }
}

@media (max-width: 560px) {
  .masthead__actions .btn--lime { display: none; }
  .masthead-nav__link { font-size: 15px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .js-ready [data-reveal] { opacity: 1; transform: none; }
  .to-top { transition: none; }
  .timeline__node { transition: none; }
}
