:root {
  --ink: #e8f0f2;
  --muted: #8a9ba3;
  --deep: #050505;
  --green: #00e854;
  --cyan: #00c8e0;
  --line: rgba(232, 240, 242, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--deep);
  font-family: Sora, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
}
a { color: inherit; }

.site-header {
  max-width: 1240px;
  margin-inline: auto;
  padding: 28px 38px 0;
}
.brand-cluster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.wordmark-logo {
  display: inline-flex;
  border-radius: 6px;
  text-decoration: none;
}
.wordmark-logo:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.brand-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-left: -0.35rem;
  border-radius: 0.55rem;
  color: var(--cyan);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.brand-back:hover {
  color: var(--green);
  background: rgba(0, 200, 224, 0.12);
}
.brand-back:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.brand-back-icon {
  display: block;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Bricolage Grotesque", Sora, sans-serif;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .01em;
  text-decoration: none;
}
.wordmark:hover span {
  color: var(--cyan);
}
.brand-logo {
  display: block;
  border-radius: 6px;
  flex-shrink: 0;
}

.essay {
  max-width: 1240px;
  margin-inline: auto;
  padding: 48px 38px 72px;
}
.essay-header {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  margin: 0 0 20px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  margin-right: 10px;
  border-top: 2px solid var(--green);
  vertical-align: middle;
}
h1, h2 {
  font-family: "Bricolage Grotesque", Sora, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
}
h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}
h2 {
  margin: 2.4rem 0 1rem;
  font-size: 1.35rem;
  color: var(--ink);
}
p { margin: 0 0 1.15rem; }
.lead {
  font-size: 1.12rem;
  color: var(--muted);
  line-height: 1.8;
}
.essay-body p {
  color: var(--muted);
}
.essay-body strong {
  color: var(--ink);
  font-weight: 600;
}
.essay-figure {
  margin: 2.2rem 0 2.4rem;
}
.essay-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #000;
}
.essay-figure figcaption {
  margin-top: 12px;
  font-size: .78rem;
  letter-spacing: .02em;
  color: var(--muted);
}

.agents-panel {
  padding: 28px 20px 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: radial-gradient(circle at 50% 40%, #0c1416 0%, #000 70%);
}
.agents-panel svg {
  display: block;
  width: min(560px, 100%);
  height: auto;
  margin-inline: auto;
  overflow: visible;
}
.agents-panel .own-link { stroke: var(--line); stroke-width: 1.5; }
.agents-panel .person-body { fill: #0d1517; stroke: rgba(232, 240, 242, 0.35); stroke-width: 1.5; transition: stroke .6s; }
.agents-panel .person-glyph { fill: rgba(232, 240, 242, 0.55); }
.agents-panel .person-label { fill: var(--ink); font-size: 15px; font-weight: 600; text-anchor: middle; dominant-baseline: middle; }
.agents-panel .agent-body { fill: #071012; stroke: rgba(0, 200, 224, 0.35); stroke-width: 1.5; transition: stroke .6s, fill .6s; }
.agents-panel .agent-core { fill: rgba(0, 200, 224, 0.35); transition: fill .6s; }
.agents-panel .convo-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity .7s ease, stroke-dashoffset .9s ease;
}
.agents-panel .convo-line.on { opacity: .9; }
.agents-panel .pulse { opacity: 0; transition: opacity .5s; }
.agents-panel .pulse.on { opacity: 1; }
.agents-legend {
  min-height: 5.4em;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: .85rem;
  line-height: 1.5;
}
.agents-legend-item { display: flex; align-items: center; gap: 10px; opacity: 0; transition: opacity .6s; }
.agents-legend-item.on { opacity: 1; }
.agents-legend-item strong { color: var(--ink); }
.agents-legend-item .swatch { width: 12px; height: 12px; border-radius: 3px; }
.agents-legend-item .who { color: var(--muted); }
.agents-controls {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.agents-controls button {
  font: inherit;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: transparent;
  border: 1px solid rgba(0, 200, 224, 0.4);
  border-radius: 4px;
  padding: 7px 14px;
  cursor: pointer;
}
.agents-controls button:hover { background: rgba(0, 200, 224, 0.12); }
.agents-controls button[aria-pressed="true"] { border-color: var(--green); color: var(--green); }

.essay-cta {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.cta-lede {
  margin-bottom: 24px;
  color: var(--ink);
  font-size: 1.05rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 4px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary {
  color: var(--deep);
  background: var(--green);
}
.button-primary:hover { background: var(--cyan); }
.button-light {
  border: 1px solid var(--cyan);
  color: var(--cyan);
}
.button-light:hover {
  color: var(--deep);
  background: var(--cyan);
}

.site-footer {
  max-width: 1240px;
  margin-inline: auto;
  padding: 32px 38px 48px;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--muted);
}
.site-footer p { margin: 0 0 8px; }
.text-link {
  color: var(--green);
  text-decoration: none;
  text-underline-offset: 3px;
}
.text-link:hover, .text-link:focus-visible { color: var(--cyan); }

@media (max-width: 800px) {
  .site-header,
  .essay,
  .site-footer { padding-inline: 22px; }
}

@media (max-width: 500px) {
  .essay { padding-top: 32px; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .button { justify-content: center; }
}

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