:root {
  color-scheme: dark;
  --ink-950: #04110d;
  --ink-900: #071c16;
  --ink-850: #0b2a22;
  --ink-800: #103b30;
  --line: #1e5a49;
  --lime: #c6ff3d;
  --lime-bright: #9bef2f;
  --orange: #ff8a3d;
  --violet: #3a1f5c;
  --paper: #eaf2ec;
  --paper-strong: #f2f7f3;
  --muted: #6f8f84;
  --font-display: "HarmonyOS Sans SC", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --shell: min(1480px, calc(100% - clamp(20px, 6vw, 96px)));
  --shadow-panel: 0 28px 70px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(234, 242, 236, 0.06);
  --radius-cut: 28px 10px 28px 10px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 88% -8%, rgba(58, 31, 92, 0.72), transparent 42rem),
    radial-gradient(circle at 8% 4%, rgba(198, 255, 61, 0.07), transparent 32rem),
    linear-gradient(180deg, var(--ink-900), var(--ink-950));
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--paper-strong);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

h1 {
  font-size: clamp(36px, 6vw, 96px);
}

h2 {
  font-size: clamp(28px, 4vw, 58px);
}

h3 {
  font-size: clamp(22px, 2.5vw, 34px);
}

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

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

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

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 3000;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink-950);
  font-size: 14px;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

/* Header command deck */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(4, 17, 13, 0.99), rgba(7, 28, 22, 0.94)),
    var(--ink-950);
  border-bottom: 1px solid rgba(30, 90, 73, 0.82);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.command-bar {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  padding: 13px 0 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__signal {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 15px 6px 15px 6px;
  background:
    radial-gradient(circle at 50% 45%, rgba(198, 255, 61, 0.22), transparent 42%),
    linear-gradient(145deg, var(--ink-800), var(--ink-950));
  box-shadow: inset 0 0 0 1px rgba(198, 255, 61, 0.28), 0 0 28px rgba(198, 255, 61, 0.13);
  overflow: hidden;
}

.brand__signal::before,
.brand__signal::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.brand__signal::before {
  inset: 7px;
  border: 1px solid rgba(30, 90, 73, 0.78);
  border-radius: 50%;
}

.brand__signal::after {
  width: 140%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  transform: rotate(-38deg);
  opacity: 0.7;
}

.brand__core {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  border: 3px solid var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(198, 255, 61, 0.6);
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1;
}

.brand__name {
  color: var(--paper-strong);
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 25px);
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.brand__latin {
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1;
  white-space: nowrap;
}

.command-bar__meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(30, 90, 73, 0.7);
  border-radius: 999px;
  background: rgba(11, 42, 34, 0.58);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

.meta-chip--accent {
  border-color: rgba(198, 255, 61, 0.32);
  background: rgba(198, 255, 61, 0.07);
}

.meta-chip__key {
  color: var(--lime);
  font-weight: 800;
}

.meta-chip__val {
  color: var(--paper);
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(198, 255, 61, 0.12), 0 0 14px var(--lime);
}

.command-bar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--lime {
  background: var(--lime);
  color: var(--ink-950);
  box-shadow: 0 8px 28px rgba(198, 255, 61, 0.16);
}

.button--lime:hover {
  background: var(--lime-bright);
  box-shadow: 0 10px 32px rgba(198, 255, 61, 0.25);
}

.button--ghost {
  border-color: rgba(30, 90, 73, 0.92);
  background: rgba(16, 59, 48, 0.42);
  color: var(--paper);
}

.button--ghost:hover {
  border-color: rgba(198, 255, 61, 0.5);
  background: rgba(16, 59, 48, 0.72);
  color: var(--paper-strong);
}

.button--quiet {
  min-height: 34px;
  padding: 7px 10px;
  color: var(--paper);
  border-color: transparent;
  background: transparent;
}

.button--quiet:hover {
  color: var(--lime);
  background: rgba(198, 255, 61, 0.08);
}

.button--orange {
  background: var(--orange);
  color: var(--ink-950);
}

.button--orange:hover {
  background: #ff9f62;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(30, 90, 73, 0.9);
  border-radius: 999px;
  background: rgba(11, 42, 34, 0.72);
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nav-toggle__lines {
  display: grid;
  gap: 4px;
  width: 18px;
  height: 12px;
  align-content: center;
}

.nav-toggle__lines span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink-950);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__lines span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__lines span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-deck {
  border-top: 1px solid rgba(30, 90, 73, 0.56);
  background:
    linear-gradient(90deg, rgba(58, 31, 92, 0.16), transparent 32%, rgba(198, 255, 61, 0.035)),
    rgba(4, 17, 13, 0.32);
}

.nav-deck__inner {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 240px;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: 10px 0;
}

.nav-deck__label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.3;
  white-space: nowrap;
}

.primary-nav {
  min-width: 0;
}

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

.primary-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 4px 12px 4px 12px;
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 170ms ease, border-color 170ms ease, color 170ms ease;
}

.primary-nav__link:hover {
  border-color: rgba(198, 255, 61, 0.25);
  background: rgba(16, 59, 48, 0.55);
  color: var(--paper-strong);
}

.primary-nav__link[aria-current="page"] {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink-950);
  box-shadow: 0 0 24px rgba(198, 255, 61, 0.16);
}

.nav-index {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.primary-nav__link[aria-current="page"] .nav-index {
  color: rgba(4, 17, 13, 0.62);
}

.nav-deck__note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: right;
}

.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.scroll-meter__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--orange));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 80ms linear;
}

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(64px, 9vw, 132px);
  border-top: 1px solid rgba(30, 90, 73, 0.8);
  background:
    radial-gradient(ellipse at 86% 0%, rgba(58, 31, 92, 0.52), transparent 36rem),
    radial-gradient(circle at 12% 14%, rgba(198, 255, 61, 0.055), transparent 26rem),
    linear-gradient(180deg, var(--ink-900), var(--ink-950));
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 9%;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198, 255, 61, 0.7), transparent);
  pointer-events: none;
}

.footer-grid {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(230px, 1.05fr) minmax(0, 1.45fr) minmax(250px, 0.9fr);
  gap: clamp(28px, 5vw, 76px);
  padding: clamp(42px, 6vw, 78px) 0 clamp(34px, 4vw, 54px);
}

.footer-brand {
  min-width: 0;
}

.footer-brand__mark {
  display: inline-block;
  color: var(--paper-strong);
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 54px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.footer-brand__mark:hover {
  color: var(--lime);
}

.footer-brand__summary {
  max-width: 26ch;
  margin-top: 20px;
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
}

.footer-brand__ops {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.footer-pulse {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(198, 255, 61, 0.1), 0 0 14px rgba(198, 255, 61, 0.7);
  animation: footer-pulse 2.8s ease-in-out infinite;
}

@keyframes footer-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.62;
    transform: scale(0.8);
  }
}

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

.footer-col {
  min-width: 0;
}

.footer-col__title {
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.4;
}

.footer-col__list {
  display: grid;
  gap: 10px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  transition: color 160ms ease;
}

.footer-link::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--line);
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.footer-link:hover {
  color: var(--lime);
}

.footer-link:hover::before {
  background: var(--lime);
  box-shadow: 0 0 10px rgba(198, 255, 61, 0.55);
}

.footer-contact {
  min-width: 0;
  padding-left: clamp(18px, 2vw, 30px);
  border-left: 1px solid rgba(30, 90, 73, 0.74);
}

.footer-contact__kicker {
  margin-bottom: 17px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.4;
}

.footer-contact__line {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  margin-top: 9px;
}

.footer-contact__label {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.footer-contact__value {
  color: var(--paper-strong);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.footer-contact__address {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.7;
}

.footer-contact__note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.footer-base {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0 28px;
  border-top: 1px solid rgba(30, 90, 73, 0.55);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
}

.footer-base__legal {
  min-width: 0;
}

.footer-base__coords {
  color: rgba(111, 143, 132, 0.8);
  white-space: nowrap;
}

.footer-base__top {
  color: var(--lime);
  font-weight: 700;
  white-space: nowrap;
}

.footer-base__top:hover {
  color: var(--lime-bright);
}

/* Shared page and editorial primitives */
.page-shell {
  width: var(--shell);
  margin-inline: auto;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 7.2fr) minmax(220px, 2.8fr);
  gap: clamp(28px, 5vw, 84px);
  align-items: start;
}

.content-column {
  min-width: 0;
}

.aside-column {
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(30, 90, 73, 0.64);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.eyebrow--vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.18em;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(22px, 3vw, 40px);
}

.section-heading__kicker {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.4;
}

.section-heading__title {
  max-width: 18ch;
  color: var(--paper-strong);
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 58px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.section-heading__note {
  max-width: 50ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.breadcrumb {
  margin-bottom: 22px;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.breadcrumb__item:not(:last-child)::after {
  content: "/";
  color: var(--line);
}

.breadcrumb__link {
  color: var(--paper);
}

.breadcrumb__link:hover {
  color: var(--lime);
}

.breadcrumb__current {
  color: var(--lime);
}

.surface {
  background: linear-gradient(155deg, rgba(16, 59, 48, 0.68), rgba(7, 28, 22, 0.92));
  border: 1px solid rgba(30, 90, 73, 0.65);
  border-radius: var(--radius-cut);
}

.data-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 0%, rgba(198, 255, 61, 0.1), transparent 18rem),
    linear-gradient(155deg, rgba(16, 59, 48, 0.92), rgba(7, 28, 22, 0.98) 68%);
  border: 1px solid rgba(30, 90, 73, 0.72);
  border-radius: var(--radius-cut);
  box-shadow: var(--shadow-panel);
}

.data-panel::after {
  content: "";
  position: absolute;
  top: -58px;
  right: -48px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 255, 61, 0.16), transparent 67%);
  pointer-events: none;
}

.data-panel__head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(30, 90, 73, 0.55);
}

.data-panel__body {
  position: relative;
  z-index: 1;
  padding: clamp(20px, 3vw, 34px);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  min-width: 0;
  padding: 16px;
  border-left: 2px solid var(--line);
  background: rgba(4, 17, 13, 0.2);
}

.stat__value {
  display: block;
  color: var(--paper-strong);
  font-family: var(--font-mono);
  font-size: clamp(26px, 3vw, 44px);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
}

.stat__value > .is-orange,
.stat__value.is-orange {
  color: var(--orange);
}

.stat__label {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(30, 90, 73, 0.7);
  border-radius: 3px 9px 3px 9px;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.tag--lime {
  border-color: rgba(198, 255, 61, 0.4);
  background: rgba(198, 255, 61, 0.12);
  color: var(--lime);
}

.tag--orange {
  border-color: rgba(255, 138, 61, 0.45);
  background: rgba(255, 138, 61, 0.1);
  color: var(--orange);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(30, 90, 73, 0.78);
  border-radius: 999px;
  background: rgba(11, 42, 34, 0.4);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.filter-button:hover {
  border-color: rgba(198, 255, 61, 0.46);
  color: var(--lime);
}

.filter-button[aria-pressed="true"] {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink-950);
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 5px;
  width: 1px;
  background: linear-gradient(180deg, var(--lime), var(--line) 42%, transparent);
}

.timeline__item {
  position: relative;
  padding: 0 0 24px 12px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  position: absolute;
  top: 7px;
  left: -24px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--lime);
  border-radius: 50%;
  background: var(--ink-900);
  box-shadow: 0 0 12px rgba(198, 255, 61, 0.28);
}

.media-frame {
  --frame-ratio: 16 / 9;
  position: relative;
  isolation: isolate;
  aspect-ratio: var(--frame-ratio);
  overflow: hidden;
  border: 1px solid rgba(30, 90, 73, 0.68);
  border-radius: clamp(20px, 4vw, 46px) 8px clamp(20px, 4vw, 46px) 8px;
  background:
    radial-gradient(circle at 76% 20%, rgba(198, 255, 61, 0.12), transparent 28%),
    radial-gradient(circle at 12% 86%, rgba(58, 31, 92, 0.8), transparent 54%),
    linear-gradient(128deg, var(--ink-800), var(--ink-950) 72%);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(30, 90, 73, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 90, 73, 0.18) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55) 42%, transparent);
  pointer-events: none;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(4, 17, 13, 0.85));
  pointer-events: none;
}

.media-frame--wide {
  --frame-ratio: 21 / 9;
}

.media-frame--tall {
  --frame-ratio: 4 / 5;
}

.media-frame--square {
  --frame-ratio: 1 / 1;
}

.media-frame__img,
.media-frame > img,
.media-frame > picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame__caption {
  position: absolute;
  left: clamp(16px, 3vw, 30px);
  right: clamp(16px, 3vw, 30px);
  bottom: clamp(14px, 2.4vw, 24px);
  z-index: 2;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.prose {
  color: var(--paper);
  font-size: 16px;
  line-height: 1.8;
}

.prose > * + * {
  margin-top: 1em;
}

.prose h2,
.prose h3 {
  margin-top: 1.6em;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 0.35em;
}

.prose strong {
  color: var(--paper-strong);
  font-weight: 800;
}

.text-link {
  color: var(--lime);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(198, 255, 61, 0.36);
  text-underline-offset: 0.2em;
}

.text-link:hover {
  color: var(--lime-bright);
  text-decoration-color: currentColor;
}

.rule {
  height: 1px;
  margin: clamp(28px, 4vw, 52px) 0;
  border: 0;
  background: linear-gradient(90deg, var(--line), rgba(30, 90, 73, 0.15), transparent);
}

html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 480ms ease, transform 480ms ease;
}

html.reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .command-bar__meta {
    display: none;
  }

  .nav-deck__inner {
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .nav-deck__note {
    display: none;
  }
}

@media (max-width: 1040px) {
  .command-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

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

  .nav-deck {
    display: none;
    max-height: calc(100dvh - 66px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top-color: rgba(30, 90, 73, 0.8);
    background:
      radial-gradient(circle at 84% 0%, rgba(58, 31, 92, 0.58), transparent 22rem),
      rgba(4, 17, 13, 0.96);
  }

  .site-header[data-open] .nav-deck {
    display: block;
    animation: nav-reveal 220ms ease-out both;
  }

  .nav-deck__inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 0 24px;
  }

  .nav-deck__label {
    color: var(--lime);
    white-space: normal;
  }

  .primary-nav__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .primary-nav__link {
    justify-content: space-between;
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border-color: rgba(30, 90, 73, 0.52);
    border-radius: 4px 14px 4px 14px;
    background: rgba(16, 59, 48, 0.34);
  }

  .nav-index {
    order: 2;
    color: var(--muted);
  }

  .primary-nav__link[aria-current="page"] .nav-index {
    color: rgba(4, 17, 13, 0.62);
  }

  .nav-deck__note {
    display: block;
    max-width: 46ch;
    text-align: left;
  }

  html.nav-open,
  html.nav-open body {
    overflow: hidden;
  }

  @keyframes nav-reveal {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

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

  .aside-column {
    padding-top: 20px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  }

  .footer-contact {
    grid-column: 1 / -1;
    padding: 24px 0 0;
    border-top: 1px solid rgba(30, 90, 73, 0.62);
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .command-bar {
    padding: 11px 0;
  }

  .command-bar__actions .button--ghost {
    display: none;
  }

  .brand {
    gap: 10px;
  }

  .brand__signal {
    width: 38px;
    height: 38px;
  }

  .brand__latin {
    display: none;
  }

  .button {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .nav-toggle {
    min-height: 36px;
    padding: 7px 10px;
  }

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

  .stat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
  }

  .stat__label {
    margin-top: 0;
    text-align: right;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0 32px;
  }

  .footer-nav {
    gap: 12px;
  }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding-bottom: 24px;
  }

  .footer-base__coords {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .brand__name {
    font-size: 17px;
  }

  .brand__signal {
    width: 34px;
    height: 34px;
    border-radius: 12px 5px 12px 5px;
  }

  .brand__core {
    width: 15px;
    height: 15px;
    border-width: 2px;
  }

  .nav-toggle__label {
    display: none;
  }

  .nav-toggle {
    width: 38px;
    padding: 0;
  }

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

  .footer-brand__summary {
    margin-top: 16px;
  }

  .data-panel__head {
    padding: 15px 16px;
  }
}

@media (max-width: 390px) {
  .command-bar__actions .button--lime {
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .footer-pulse {
    animation: none;
  }

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