:root {
  color-scheme: dark;
  --bg: #08090d;
  --bg-2: #0d1016;
  --panel: rgba(17, 21, 29, 0.76);
  --panel-solid: #121821;
  --line: rgba(214, 199, 150, 0.18);
  --line-strong: rgba(214, 199, 150, 0.34);
  --text: #ece8dc;
  --muted: #aaa492;
  --soft: #777264;
  --gold: #d4b66f;
  --amber: #c98642;
  --cyan: #63d6c6;
  --blue: #6a8fdc;
  --red: #d2635c;
  --max: 1180px;
  --article: 720px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(99, 214, 198, 0.03) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(99, 214, 198, 0.025) 1px, transparent 1px) 0 0 / 64px 64px,
    radial-gradient(circle at 8% 12%, rgba(212, 182, 111, 0.12) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 18%, rgba(99, 214, 198, 0.14) 0 1px, transparent 2px),
    radial-gradient(circle at 92% 44%, rgba(106, 143, 220, 0.12) 0 1px, transparent 2px),
    linear-gradient(180deg, #08090d 0%, #0b0d12 48%, #07080b 100%);
  background-size: 64px 64px, 64px 64px, 340px 260px, 420px 320px, 360px 290px, auto;
  color: var(--text);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 24%, rgba(255, 255, 255, 0.42) 0 1px, transparent 1.8px),
    radial-gradient(circle at 35% 72%, rgba(212, 182, 111, 0.38) 0 1px, transparent 1.8px),
    radial-gradient(circle at 72% 34%, rgba(99, 214, 198, 0.34) 0 1px, transparent 1.8px),
    radial-gradient(circle at 88% 82%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.8px);
  background-size: 360px 300px, 520px 380px, 430px 360px, 610px 430px;
  opacity: 0.5;
  animation: fieldTwinkle 7s steps(2, end) infinite;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem max(1.25rem, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(214, 199, 150, 0.12);
  background: rgba(8, 9, 13, 0.78);
  backdrop-filter: blur(18px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.site-brand span {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-brand strong {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.site-nav a {
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.45rem 0.65rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  border-color: var(--line);
  background: rgba(212, 182, 111, 0.06);
  color: var(--text);
  outline: none;
}

.essay-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(214, 199, 150, 0.14);
}

.essay-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 182, 111, 0.58), rgba(99, 214, 198, 0.46), transparent);
}

.hero-grid,
.hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  background:
    linear-gradient(rgba(212, 182, 111, 0.07) 1px, transparent 1px) center / 120px 120px,
    linear-gradient(90deg, rgba(212, 182, 111, 0.05) 1px, transparent 1px) center / 120px 120px;
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 80%, transparent);
}

.hero-stars {
  background:
    radial-gradient(circle at 17% 22%, rgba(255, 255, 255, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 46% 10%, rgba(212, 182, 111, 0.62) 0 1px, transparent 2px),
    radial-gradient(circle at 66% 44%, rgba(99, 214, 198, 0.5) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.45) 0 1px, transparent 2px),
    radial-gradient(circle at 28% 82%, rgba(106, 143, 220, 0.5) 0 1px, transparent 2px);
  background-size: 360px 270px, 420px 320px, 520px 410px, 460px 340px, 610px 430px;
  opacity: 0.54;
  animation: fieldTwinkle 6s steps(2, end) infinite;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 4rem;
  align-items: center;
  padding: 5.75rem 1.25rem 5rem;
}

.hero-copy {
  max-width: 620px;
}

.series-label {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.8rem;
  font-weight: 500;
  line-height: 0.95;
}

.hero-copy h1 span {
  color: var(--gold);
}

.subtitle {
  max-width: 560px;
  margin: 1.4rem 0 0;
  color: rgba(236, 232, 220, 0.82);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.5;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.85rem;
  color: var(--soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border: 1px solid rgba(214, 199, 150, 0.13);
  background: rgba(13, 16, 22, 0.62);
  padding: 0.35rem 0.65rem;
}

.hero-graphic {
  position: relative;
  margin: 0;
  border: 1px solid rgba(214, 199, 150, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 38%),
    rgba(12, 16, 23, 0.72);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.hero-graphic::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(99, 214, 198, 0.08);
  pointer-events: none;
}

.hero-graphic figcaption {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  color: var(--soft);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-graphic svg {
  display: block;
  width: 100%;
  min-height: 500px;
}

.svg-frame {
  fill: rgba(8, 9, 13, 0.35);
  stroke: rgba(214, 199, 150, 0.22);
}

.grid-line {
  fill: none;
  stroke: rgba(214, 199, 150, 0.08);
  stroke-width: 1;
}

.plant-glow {
  fill: url(#coreGlow);
  animation: corePulse 4.4s ease-in-out infinite;
}

.plant-core {
  fill: rgba(212, 182, 111, 0.08);
  stroke: rgba(212, 182, 111, 0.65);
  stroke-width: 1.5;
}

.plant-bolt {
  fill: rgba(212, 182, 111, 0.78);
  filter: drop-shadow(0 0 16px rgba(212, 182, 111, 0.34));
}

.plant text,
.node text,
.caption {
  fill: rgba(236, 232, 220, 0.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-anchor: middle;
}

.node circle {
  fill: rgba(9, 13, 18, 0.82);
  stroke: rgba(99, 214, 198, 0.55);
  stroke-width: 1.5;
  animation: nodeBreathe 5s ease-in-out infinite;
}

.node--governance circle {
  stroke: rgba(212, 182, 111, 0.7);
}

.power-line {
  fill: none;
  stroke: url(#goldLine);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 9 13;
  opacity: 0.78;
  animation: lineFlow 5s linear infinite;
}

.power-line--b {
  animation-duration: 6.2s;
}

.power-line--c {
  animation-duration: 7.4s;
}

.lid {
  fill: rgba(210, 99, 92, 0.12);
  stroke: rgba(210, 99, 92, 0.72);
  stroke-width: 1.5;
}

.sample {
  fill: none;
  stroke: rgba(99, 214, 198, 0.78);
  stroke-width: 2;
  stroke-linecap: round;
  animation: sampleScan 2.8s ease-in-out infinite;
}

.caption {
  fill: rgba(170, 164, 146, 0.74);
  text-anchor: start;
}

.article-shell {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px minmax(0, var(--article));
  gap: 5rem;
  align-items: start;
  padding: 5.5rem 1.25rem 2rem;
}

.article-side {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: 1rem;
}

.side-card {
  border: 1px solid rgba(214, 199, 150, 0.16);
  background: rgba(13, 16, 22, 0.58);
  padding: 1rem;
}

.side-card p {
  margin-bottom: 0.35rem;
  color: var(--soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.side-card strong {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 500;
}

.side-card span {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.article-content {
  color: rgba(236, 232, 220, 0.9);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  line-height: 1.82;
}

.article-content > p:first-child {
  color: var(--text);
  font-size: 1.28rem;
  line-height: 1.65;
}

.article-content p {
  margin-bottom: 1.45rem;
}

.article-content em {
  color: #f0d99c;
  font-style: italic;
}

.article-content h2 {
  margin: 3.4rem 0 1rem;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.55rem;
  font-weight: 650;
  line-height: 1.25;
}

.article-content h2::before {
  content: "";
  display: block;
  width: 3.5rem;
  height: 1px;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.article-content hr {
  height: 1px;
  margin: 3.2rem 0;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(214, 199, 150, 0.32), transparent);
}

.lead-statement,
.key-insight,
.agency-block,
.questions-block,
blockquote {
  margin: 2rem 0;
  border: 1px solid rgba(214, 199, 150, 0.18);
  background:
    linear-gradient(90deg, rgba(212, 182, 111, 0.08), transparent),
    rgba(13, 16, 22, 0.7);
  padding: 1.25rem 1.45rem;
}

.lead-statement,
.key-insight {
  color: var(--gold);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.agency-block {
  border-left: 3px solid var(--red);
}

.agency-block p,
.questions-block p {
  margin-bottom: 0;
}

.timeline {
  display: grid;
  gap: 0.7rem;
  margin: 2rem 0;
  border-left: 1px solid rgba(99, 214, 198, 0.28);
  padding-left: 1.1rem;
}

.timeline div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  align-items: baseline;
  border-bottom: 1px solid rgba(214, 199, 150, 0.12);
  padding: 0.55rem 0;
}

.timeline span {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.timeline strong {
  color: rgba(236, 232, 220, 0.86);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.96rem;
  font-weight: 550;
}

blockquote {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.45;
  text-align: center;
}

.questions-block {
  background:
    linear-gradient(rgba(99, 214, 198, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    rgba(13, 16, 22, 0.78);
}

.questions-block p {
  color: rgba(236, 232, 220, 0.84);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.97rem;
  line-height: 1.6;
}

.questions-block p + p {
  margin-top: 0.75rem;
}

.questions-block p:last-child {
  margin-top: 1.25rem;
  color: var(--gold);
}

.more-reading {
  max-width: var(--max);
  margin: 3rem auto 0;
  padding: 3.25rem 1.25rem 5rem;
  border-top: 1px solid rgba(214, 199, 150, 0.16);
}

.more-reading__head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.35rem;
}

.more-reading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  font-weight: 500;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(214, 199, 150, 0.16);
  border-left: 1px solid rgba(214, 199, 150, 0.16);
}

.related-grid article {
  min-height: 230px;
  border-right: 1px solid rgba(214, 199, 150, 0.16);
  border-bottom: 1px solid rgba(214, 199, 150, 0.16);
  background: rgba(13, 16, 22, 0.52);
  padding: 1.1rem;
  transition: background 180ms ease, transform 180ms ease;
}

.related-grid article:hover {
  background: rgba(18, 24, 33, 0.82);
  transform: translateY(-2px);
}

.related-grid span {
  display: block;
  margin-bottom: 1rem;
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.related-grid h3 {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.2;
}

.related-grid a {
  text-decoration: none;
}

.related-grid a:hover,
.related-grid a:focus-visible {
  color: var(--gold);
  outline: none;
}

.related-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid rgba(214, 199, 150, 0.14);
  padding: 1.6rem 1.25rem 2.4rem;
  color: var(--soft);
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--gold);
  outline: none;
}

.back-to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-grid;
  place-items: center;
  min-width: 3.2rem;
  min-height: 3.2rem;
  border: 1px solid rgba(99, 214, 198, 0.34);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 10%, rgba(99, 214, 198, 0.18), transparent 55%),
    rgba(8, 9, 13, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42), inset 0 0 22px rgba(99, 214, 198, 0.06);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: rgba(212, 182, 111, 0.58);
  color: var(--cyan);
  outline: none;
  transform: translateY(-2px);
}

@keyframes lineFlow {
  to {
    stroke-dashoffset: -44;
  }
}

@keyframes corePulse {
  50% {
    opacity: 0.58;
    transform: scale(1.08);
  }
}

@keyframes nodeBreathe {
  50% {
    stroke-opacity: 0.38;
  }
}

@keyframes sampleScan {
  50% {
    opacity: 0.32;
    transform: translateY(14px);
  }
}

@keyframes fieldTwinkle {
  50% {
    opacity: 0.28;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 980px) {
  .hero-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 4.5rem;
  }

  .hero-copy h1 {
    font-size: 3.6rem;
  }

  .article-shell {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 4rem;
  }

  .article-side {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-brand strong {
    white-space: normal;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero-inner {
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }

  .hero-copy h1 {
    font-size: 2.8rem;
  }

  .subtitle {
    font-size: 1.12rem;
  }

  .hero-graphic svg {
    min-height: 380px;
  }

  .article-side {
    grid-template-columns: 1fr;
  }

  .article-content {
    font-size: 1.03rem;
  }

  .article-content > p:first-child {
    font-size: 1.12rem;
  }

  .timeline div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .more-reading__head,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .back-to-top {
    right: max(0.85rem, env(safe-area-inset-right));
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    min-width: 2.75rem;
    min-height: 2.75rem;
    font-size: 0.62rem;
  }

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