@import "design-system/tokens.css?v=20260811-09";

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-18);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: var(--type-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

h1,
h2 {
  letter-spacing: var(--tracking-heading);
}

h1 {
  max-width: 760px;
  margin-bottom: var(--space-6);
  font-size: var(--type-page);
  font-weight: 500;
  line-height: var(--leading-display);
  text-wrap: initial;
}

h1 span {
  display: block;
}

h2 {
  max-width: 680px;
  margin-bottom: var(--space-6);
  font-size: var(--type-section);
  font-weight: 500;
  line-height: var(--leading-section);
}

h3 {
  margin-bottom: var(--space-3);
  font-size: var(--type-title);
  line-height: 1.1;
}

p {
  color: var(--text-secondary);
}

.section-shell {
  width: min(var(--content-wide), calc(100% - (2 * var(--page-gutter))));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  min-height: 72px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--page-gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 242, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2-5);
  width: fit-content;
  font-size: var(--type-subtitle);
  font-weight: 700;
}

.brand-mark {
  flex: 0 0 auto;
  display: inline-block;
  width: 34px;
  height: 28px;
  background: url("assets/counterworld-mark.svg") center / contain no-repeat;
}

.brand-mark i {
  display: none;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: var(--space-7);
  font-size: var(--type-ui);
  font-weight: 500;
}

.desktop-nav > a,
.nav-trigger {
  position: relative;
  display: inline-flex;
  min-height: 72px;
  align-items: center;
  gap: var(--space-1-5);
}

.desktop-nav > a::after,
.nav-trigger::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--coral);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.desktop-nav > a:hover::after,
.desktop-nav > a:focus-visible::after,
.nav-item:hover .nav-trigger::after,
.nav-item:focus-within .nav-trigger::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-trigger svg {
  width: 14px;
  height: 14px;
  transition: transform 160ms ease;
}

.nav-item {
  position: relative;
}

.nav-item:hover .nav-trigger svg,
.nav-item:focus-within .nav-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 64px;
  left: -18px;
  width: 270px;
  padding: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--white);
  box-shadow: var(--shadow-float);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  visibility: hidden;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.nav-dropdown::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 12px;
  content: "";
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.nav-item.nav-dismissed .nav-dropdown {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  visibility: hidden;
}

.nav-item.nav-dismissed .nav-trigger svg {
  transform: none;
}

.nav-dropdown a {
  display: grid;
  gap: var(--space-optical);
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-control);
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: var(--paper-strong);
}

.nav-dropdown span {
  font-weight: 600;
}

.nav-dropdown small {
  color: var(--muted);
  font-size: var(--type-caption);
}

.use-case-dropdown {
  width: 292px;
}

.header-cta {
  justify-self: end;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: var(--space-2-5);
  padding: 0 var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: var(--type-ui);
  font-weight: 600;
  line-height: 1;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.button svg {
  width: 17px;
  height: 17px;
}

.button-dark {
  background: var(--ink);
  color: var(--white);
}

.button-dark:hover {
  background: var(--forest);
}

.button-coral {
  background: var(--coral);
  color: var(--text-primary);
}

.button-coral:hover {
  background: var(--coral-dark);
  color: var(--text-on-dark);
}

.button-light {
  background: var(--white);
  color: var(--navy);
}

.button-light:hover {
  background: var(--yellow);
}

.mobile-early-access {
  width: 100%;
  margin-top: var(--space-4);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: transparent;
}

.menu-button svg {
  width: 20px;
  height: 20px;
}

.mobile-nav {
  position: fixed;
  z-index: 90;
  top: 72px;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  overflow-y: auto;
  align-content: start;
  padding: var(--space-6) var(--page-gutter) var(--space-16);
  background: var(--paper);
}

.mobile-nav.open {
  display: grid;
}

.mobile-nav > .mobile-primary,
.mobile-group {
  border-bottom: 1px solid var(--line);
}

.mobile-primary {
  display: block;
  padding: var(--space-4) 0;
  font-size: var(--type-subtitle);
  font-weight: 600;
}

.mobile-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: var(--space-4);
}

.mobile-group .mobile-primary {
  grid-column: 1 / -1;
}

.mobile-group > a:not(.mobile-primary) {
  padding: var(--space-2) var(--space-3) var(--space-2) 0;
  color: var(--ink-soft);
  font-size: var(--type-meta);
}

.eyebrow {
  margin-bottom: var(--space-5);
  color: var(--coral-dark);
  font-family: var(--mono);
  font-size: var(--type-label);
  font-weight: 600;
  text-transform: uppercase;
}

.hero {
  min-height: min(820px, calc(100svh - 72px));
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.hero-grid,
.section-grid {
  display: grid;
  align-items: center;
  gap: var(--section-gap);
}

.hero-grid {
  grid-template-columns: minmax(450px, 0.82fr) minmax(650px, 1.18fr);
  gap: var(--section-gap-compact);
}

.hero .section-shell {
  width: min(1320px, calc(100% - (2 * var(--page-gutter))));
}

.section-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
}

.hero-copy,
.section-copy {
  min-width: 0;
}

.hero .lede {
  max-width: 580px;
  margin-bottom: var(--space-8);
  font-size: var(--type-lede);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.text-link {
  border-bottom: 1px solid var(--line-strong);
  font-size: var(--type-ui);
  font-weight: 600;
}

.visual-reserve {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1.26 / 1;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-media);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--paper-strong);
  background-size: 28px 28px;
}

.reserve-header,
.reserve-footer {
  position: absolute;
  z-index: 2;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-micro);
  font-weight: 600;
}

.reserve-header {
  top: 0;
  min-height: 38px;
  padding: 0 var(--space-3-5);
  border-bottom: 1px solid var(--line);
}

.reserve-footer {
  bottom: 0;
  min-height: 36px;
  padding: 0 var(--space-3-5);
  border-top: 1px solid var(--line);
}

.live-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1-5);
  color: var(--forest);
}

.live-label i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(41, 200, 138, 0.12);
}

.reserve-field {
  position: absolute;
  inset: 38px 0 36px;
}

.home-viz {
  position: absolute;
  inset: 38px 0 36px;
  display: block;
  width: 100%;
  height: calc(100% - 74px);
  pointer-events: none;
}

.hero-sim {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-media);
  background: var(--paper-strong);
  box-shadow: var(--shadow-panel);
  container-name: hero-sim;
  container-type: inline-size;
}

.hero-sim-header {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-3-5);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-micro);
  font-weight: 600;
}

.hero-sim-header b {
  font-weight: 600;
}

.hero-sim-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  border-bottom: 1px solid var(--line);
}

.hero-sim-stage {
  position: relative;
  height: clamp(360px, 34vw, 430px);
  overflow: hidden;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    #eef1eb;
  background-size: 24px 24px;
}

.hero-sim-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-event {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--space-2-5);
  padding: var(--space-2) var(--space-2-5);
  border: 1px solid rgba(19, 35, 31, 0.16);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(19, 35, 31, 0.08);
  font-family: var(--mono);
  font-size: var(--type-micro);
}

.hero-event-label {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: var(--space-1-5);
  color: var(--forest);
  font-weight: 600;
}

.hero-event-label i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
}

.hero-event-entry {
  --event-color: #53605a;
  --event-soft: #edf0ed;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--space-1-5);
  overflow: hidden;
  animation: hero-event-cycle var(--sim-event-interval, 2000ms) ease-in-out infinite;
}

.hero-event-entry[data-tone="order"] {
  --event-color: #16745d;
  --event-soft: #e4f2ed;
}

.hero-event-entry[data-tone="refund"] {
  --event-color: var(--action-primary-strong);
  --event-soft: #f8e8e4;
}

.hero-event-entry[data-tone="review"] {
  --event-color: #a56d08;
  --event-soft: #f7efd9;
}

.hero-event-entry[data-tone="churn"] {
  --event-color: #9d382f;
  --event-soft: #f4e4e2;
}

.hero-event-entry[data-tone="payment"] {
  --event-color: #356da4;
  --event-soft: #e5edf5;
}

.hero-event-entry[data-tone="support"] {
  --event-color: #256d73;
  --event-soft: #e2f0f0;
}

.hero-event-symbol {
  display: grid;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--event-color) 35%, transparent);
  border-radius: 50%;
  background: var(--event-soft);
  color: var(--event-color);
  font-size: var(--type-dense-caption);
  line-height: 1;
}

.hero-event-entry em {
  flex: none;
  color: var(--event-color);
  font-size: var(--type-dense-compact);
  font-style: normal;
  font-weight: 700;
}

.hero-event-entry strong {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-event.is-paused .hero-event-entry {
  animation-play-state: paused;
}

@keyframes hero-event-cycle {
  0% {
    opacity: 1;
    transform: translateY(2px);
  }

  12%, 78% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.hero-control-rail {
  display: grid;
  min-width: 0;
  grid-template-rows: auto repeat(var(--sim-control-count, 3), minmax(0, 1fr));
  border-left: 1px solid var(--line);
  background: #fbfcf8;
}

.hero-control-heading {
  display: grid;
  align-content: center;
  gap: var(--space-half);
  min-height: 54px;
  padding: var(--space-2-5) var(--space-3);
}

.hero-control-heading span,
.hero-control-rail label > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-dense-compact);
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-control-heading strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--type-dense-caption);
}

.hero-control-rail label {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: var(--space-2-5);
  padding: var(--space-3) var(--space-3);
  border-top: 1px solid var(--line);
}

.hero-control-rail output {
  color: var(--coral-dark);
  font-family: var(--mono);
  font-size: var(--type-value);
  font-weight: 600;
}

.hero-control-rail input[type="range"] {
  width: 100%;
  height: 3px;
  margin: 0;
  border-radius: 0;
  accent-color: var(--action-primary-strong);
  cursor: pointer;
}

.hero-state-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.hero-state-strip div {
  min-width: 0;
  padding: var(--space-2-5) var(--space-3) var(--space-2-5);
}

.hero-state-strip div + div {
  border-left: 1px solid var(--line);
}

.hero-state-strip dt {
  overflow: hidden;
  margin-bottom: var(--space-half);
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-dense-compact);
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-state-strip dd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1-5);
  margin: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--type-meta);
  font-weight: 600;
}

.hero-state-strip [data-sim-trend] {
  flex: 0 0 auto;
  font-size: var(--type-dense-compact);
  font-weight: 700;
}

.hero-state-strip [data-sim-trend]:empty {
  display: none;
}

.hero-state-strip [data-sim-trend][data-tone="positive"] {
  color: var(--structure-primary);
}

.hero-state-strip [data-sim-trend][data-tone="negative"] {
  color: var(--coral-dark);
}

.hero-state-strip [data-sim-trend][data-tone="neutral"] {
  color: var(--muted);
}

.hero-timeline {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3-5);
  padding: var(--space-3) var(--space-3-5) var(--space-3);
  background: #fbfcf8;
}

.hero-timeline--standalone {
  border-top: 1px solid var(--line);
}

.hero-timeline-meta {
  display: grid;
  gap: var(--space-optical);
}

.hero-timeline-meta small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-dense-micro);
}

.hero-timeline-meta strong {
  font-family: var(--mono);
  font-size: var(--type-label);
}

.hero-timeline-track {
  position: relative;
  height: 30px;
  min-width: 0;
}

.hero-timeline-track::before,
.hero-timeline-track i {
  position: absolute;
  top: 9px;
  left: 0;
  height: 2px;
  content: "";
}

.hero-timeline-track::before {
  right: 0;
  background: var(--line-strong);
}

.hero-timeline-track i {
  width: 20%;
  background: var(--coral);
}

.hero-timeline-track b {
  position: absolute;
  z-index: 1;
  top: 5px;
  left: 20%;
  width: 10px;
  height: 10px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 1px var(--coral-dark);
  transform: translateX(-50%);
}

.hero-timeline-track span {
  position: absolute;
  bottom: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-dense-micro);
}

.hero-timeline-track span:last-child {
  right: 0;
}

.hero-timeline-track input[type="range"] {
  position: absolute;
  z-index: 2;
  top: 0;
  left: -7px;
  width: calc(100% + 14px);
  height: 20px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
}

.hero-timeline-track input[type="range"]::-webkit-slider-runnable-track {
  height: 20px;
  background: transparent;
}

.hero-timeline-track input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  appearance: none;
  border: 0;
  background: transparent;
}

.hero-timeline-track input[type="range"]::-moz-range-track {
  height: 20px;
  border: 0;
  background: transparent;
}

.hero-timeline-track input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 0;
  background: transparent;
}

.hero-timeline-track input[type="range"]:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--coral-dark);
  outline-offset: 2px;
}

.hero-clock {
  display: flex;
  align-items: center;
  gap: var(--space-1-5);
}

.hero-clock button {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--white);
  cursor: pointer;
}

.hero-clock button:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.hero-clock button svg {
  width: 13px;
  height: 13px;
}

.world-demo-section {
  padding: var(--space-28) 0 var(--space-30);
  border-bottom: 1px solid var(--line);
  background: var(--paper-strong);
}

.world-demo-intro {
  max-width: 820px;
  margin-bottom: var(--space-18);
}

.world-demo-intro > p:last-child {
  max-width: 660px;
  font-size: var(--type-lede);
}

.world-lab-intro h1 {
  max-width: 760px;
  margin-bottom: var(--space-6);
  font-size: var(--type-page);
  line-height: 1;
}

.world-demo-row {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: var(--space-12);
  padding: var(--space-18) 0;
  border-top: 1px solid var(--line-strong);
  scroll-margin-top: var(--space-24);
}

.world-demo-copy {
  padding-top: var(--space-3-5);
}

.world-demo-copy h3 {
  margin-bottom: var(--space-4);
  font-size: var(--type-panel);
}

.world-demo-copy > p:last-child {
  margin: 0;
  font-size: var(--type-meta);
}

.blueprint-demo-row {
  align-items: center;
}

.blueprint-lab {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
  box-shadow: var(--shadow-soft);
}

.blueprint-lab-header,
.blueprint-trace {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0 var(--space-5);
  background: rgba(249, 250, 246, 0.92);
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-dense-caption);
  font-weight: 650;
  text-transform: uppercase;
}

.blueprint-lab-header {
  border-bottom: 1px solid var(--line);
}

.blueprint-live {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--forest);
}

.blueprint-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-strong);
  box-shadow: 0 0 0 4px rgba(57, 195, 145, 0.12);
}

.blueprint-systems {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  padding: var(--space-6) var(--space-6) var(--space-8);
}

.blueprint-system {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 4px 4px 0 rgba(19, 35, 31, 0.045);
}

.blueprint-system::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 1px;
  height: 31px;
  background: var(--line-strong);
  content: "";
}

.blueprint-system > header {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: var(--space-2-5);
  padding: 0 var(--space-3);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface-panel);
  color: var(--text-primary);
}

.blueprint-system > header span,
.blueprint-layer small,
.blueprint-event-bus small {
  font-family: var(--mono);
  font-size: var(--type-micro);
  font-weight: 650;
}

.blueprint-system > header span {
  color: var(--action-primary-strong);
}

.blueprint-system > header strong {
  font-size: var(--type-caption);
}

.blueprint-layer {
  position: relative;
  min-height: 72px;
  padding: var(--space-3);
  border-bottom: 1px solid var(--line);
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.blueprint-layer:last-child {
  border-bottom: 0;
}

.blueprint-layer small,
.blueprint-event-bus small {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--muted);
}

.blueprint-layer code,
.blueprint-event-bus code,
.blueprint-trace code {
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--type-label);
  overflow-wrap: anywhere;
}

.blueprint-state-layer {
  min-height: 94px;
}

.blueprint-graph {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-1-5);
}

.blueprint-graph b {
  min-width: 0;
  padding: var(--space-2) var(--space-1-5);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--white);
  font-family: var(--mono);
  font-size: var(--type-micro);
  text-align: center;
  overflow-wrap: anywhere;
}

.blueprint-graph span {
  position: relative;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-dense-micro);
  text-align: center;
}

.blueprint-graph span::before,
.blueprint-graph span::after {
  position: absolute;
  top: 50%;
  width: 6px;
  border-top: 1px solid var(--line-strong);
  content: "";
}

.blueprint-graph span::before {
  right: calc(100% + 2px);
}

.blueprint-graph span::after {
  left: calc(100% + 2px);
}

.blueprint-event-bus {
  display: grid;
  grid-template-columns: 92px minmax(80px, 1fr) auto;
  align-items: center;
  gap: var(--space-3-5);
  min-height: 58px;
  margin: 0 var(--space-6) var(--space-5);
  padding: 0 var(--space-3-5);
  border: 1px solid var(--line-strong);
  background: rgba(232, 227, 217, 0.72);
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.blueprint-event-bus small {
  margin: 0;
}

.blueprint-event-line {
  position: relative;
  display: block;
  height: 1px;
  background: var(--line-strong);
}

.blueprint-event-line i {
  position: absolute;
  top: 50%;
  left: var(--blueprint-pulse, 0%);
  width: 9px;
  height: 9px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 1px var(--coral);
  transform: translate(-50%, -50%);
  transition: left 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.blueprint-trace {
  justify-content: flex-start;
  border-top: 1px solid var(--line);
}

.blueprint-trace span {
  color: var(--action-primary-strong);
}

.blueprint-trace code {
  color: var(--ink);
  text-transform: none;
}

.blueprint-layer.is-active,
.blueprint-event-bus.is-active {
  background: rgba(233, 243, 79, 0.18);
  box-shadow: inset 3px 0 0 var(--coral);
}

.blueprint-system.is-active > header {
  background: var(--surface-warm);
  box-shadow: inset 3px 0 0 var(--structure-primary);
}

@media (max-width: 760px) {
  .blueprint-systems {
    grid-template-columns: 1fr;
    padding: var(--space-5) var(--space-3-5);
  }

  .blueprint-system::after {
    display: none;
  }

  .blueprint-event-bus {
    grid-template-columns: 1fr;
    gap: var(--space-2-5);
    margin: 0 var(--space-3-5) var(--space-3-5);
    padding: var(--space-3);
  }

  .blueprint-trace {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-3) var(--space-3-5);
  }
}

.blueprint-iso-lab {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-media);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--surface-panel);
  background-size: var(--visual-grid-unit) var(--visual-grid-unit);
  box-shadow: var(--shadow-panel);
}

.blueprint-iso-header,
.blueprint-iso-trace,
.blueprint-iso-legend {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: var(--space-5);
  padding: 0 var(--space-5);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: var(--type-dense-caption);
  font-weight: 650;
  text-transform: uppercase;
}

.blueprint-iso-header {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.blueprint-iso-header .blueprint-live {
  color: var(--structure-primary);
}

.blueprint-iso-header .blueprint-live i {
  background: var(--status-success);
}

.blueprint-iso-stage {
  position: relative;
  height: clamp(410px, 34vw, 485px);
}

.blueprint-iso-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.blueprint-iso-legend {
  min-height: 42px;
  justify-content: center;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: var(--type-micro);
}

.blueprint-iso-legend span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.blueprint-iso-legend i {
  width: 9px;
  height: 9px;
  border: 1px solid var(--line-strong);
}

.blueprint-iso-legend i[data-layer="api"] {
  background: #e8e3d9;
}

.blueprint-iso-legend i[data-layer="mutation"] {
  background: var(--coral-soft);
}

.blueprint-iso-legend i[data-layer="state"] {
  background: var(--sky);
}

.blueprint-iso-trace {
  min-height: 48px;
  border-top: 1px solid var(--line);
}

.blueprint-iso-trace span {
  flex: 0 0 auto;
  color: var(--action-primary-strong);
}

.blueprint-iso-trace code {
  color: var(--text-primary);
  font-family: var(--mono);
  font-size: var(--type-label);
  text-transform: none;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .blueprint-iso-stage {
    height: 430px;
  }

  .blueprint-iso-legend {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2);
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
  }

  .blueprint-iso-trace {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-2);
    justify-content: center;
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
  }
}

.correlated-world-lab {
  min-width: 0;
  background: var(--paper);
}

.correlated-world-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 202px;
}

.correlated-world-stage {
  position: relative;
  height: clamp(410px, 34vw, 480px);
  overflow: hidden;
  background-color: #f8f9f5;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
}

.correlated-world-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.correlated-schema-rail {
  display: grid;
  grid-template-rows: auto repeat(3, 1fr);
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
}

.correlated-schema-rail header,
.correlated-schema-rail section {
  padding: var(--space-3-5);
  border-bottom: 1px solid var(--line);
}

.correlated-schema-rail header {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2-5);
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-micro);
}

.correlated-schema-rail header strong {
  color: var(--ink);
  font-size: var(--type-micro);
}

.correlated-schema-rail section {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-2);
}

.correlated-schema-rail section:last-child {
  border-bottom: 0;
}

.correlated-schema-rail small {
  margin-bottom: var(--space-half);
  color: var(--coral-dark);
  font-family: var(--mono);
  font-size: var(--type-dense-compact);
  font-weight: 650;
}

.correlated-schema-rail code {
  position: relative;
  display: block;
  padding: var(--space-1) var(--space-1-5);
  border-left: 2px solid transparent;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: var(--type-dense-compact);
  line-height: 1.35;
  overflow-wrap: anywhere;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.correlated-schema-rail code.is-active {
  border-left-color: var(--action-primary-strong);
  background: rgba(233, 243, 79, 0.22);
  color: var(--ink);
}

.correlated-event-strip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: grid;
  grid-template-columns: auto minmax(130px, 0.65fr) minmax(180px, 1fr);
  min-height: 46px;
  align-items: center;
  gap: var(--space-3-5);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 7px 22px rgba(19, 35, 31, 0.07);
}

.correlated-event-strip span,
.correlated-event-strip code,
.correlated-world-footer {
  font-family: var(--mono);
  font-size: var(--type-micro);
}

.correlated-event-strip span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--muted);
  font-weight: 650;
}

.correlated-event-strip span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

.correlated-event-strip strong {
  color: var(--coral-dark);
  font-family: var(--mono);
  font-size: var(--type-dense-caption);
  overflow-wrap: anywhere;
}

.correlated-event-strip code {
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.correlated-world-footer {
  display: grid;
  min-height: 52px;
  grid-template-columns: auto minmax(100px, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  padding: 0 var(--space-3-5);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 650;
}

.correlated-progress {
  position: relative;
  height: 1px;
  overflow: hidden;
  background: var(--line-strong);
}

.correlated-progress i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--correlated-progress, 0%);
  background: var(--coral);
  transition: width 180ms linear;
}

@media (max-width: 760px) {
  .correlated-world-workspace {
    grid-template-columns: 1fr;
  }

  .correlated-world-stage {
    height: 430px;
  }

  .correlated-schema-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .correlated-schema-rail header {
    grid-column: 1 / -1;
  }

  .correlated-schema-rail section {
    justify-content: flex-start;
    padding: var(--space-3) var(--space-2-5);
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .correlated-schema-rail code {
    padding-right: var(--space-half);
    padding-left: var(--space-half);
    font-size: var(--type-dense-micro);
  }

  .correlated-schema-rail section:last-child {
    border-right: 0;
  }

  .correlated-event-strip {
    grid-template-columns: 1fr;
    gap: var(--space-1);
    padding: var(--space-2-5) var(--space-3);
  }

  .correlated-world-footer {
    grid-template-columns: 1fr;
    gap: var(--space-2);
    padding-top: var(--space-2-5);
    padding-bottom: var(--space-2-5);
  }

  .correlated-progress {
    width: 100%;
  }
}

.entity-mutation-lab {
  --mutation-tone: var(--structure-primary);
  --mutation-soft: rgba(31, 128, 98, 0.1);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-media);
  background: #f7f8f4;
  box-shadow: var(--shadow-panel);
}

.system-twin-concepts {
  color: var(--structure-primary);
  font-weight: 700;
}

.entity-mutation-lab[data-outcome="rejected"] {
  --mutation-tone: #c64f3d;
  --mutation-soft: rgba(198, 79, 61, 0.1);
}

.entity-mutation-lab[data-outcome="noop"] {
  --mutation-tone: #256dd3;
  --mutation-soft: rgba(37, 109, 211, 0.1);
}

.entity-mutation-header {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0 var(--space-3-5);
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-micro);
  font-weight: 650;
}

.entity-mutation-header {
  border-bottom: 1px solid var(--line);
}

.entity-mutation-run {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--forest);
}

.entity-mutation-run i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint-strong);
  box-shadow: 0 0 0 4px rgba(57, 195, 145, 0.12);
}

.entity-mutation-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 204px;
  min-height: 500px;
}

.mutation-activity-label,
.mutation-gate small,
.mutation-entity-card small,
.mutation-relations > small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-dense-micro);
  font-weight: 700;
}

.mutation-stream-controls {
  display: flex;
  align-items: center;
  gap: var(--space-1-5);
}

.mutation-stream-controls button {
  display: grid;
  width: 18px;
  height: 18px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.mutation-stream-controls button i {
  width: 5px;
  height: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
}

.mutation-stream-controls button[aria-pressed="true"] i {
  border-color: var(--mutation-tone);
  background: var(--mutation-tone);
  box-shadow: 0 0 0 3px var(--mutation-soft);
}

.mutation-runtime {
  min-width: 0;
  padding: var(--space-5) var(--space-5) var(--space-5);
  background-image:
    linear-gradient(rgba(19, 35, 31, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 35, 31, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
}

.mutation-rule-rail {
  min-width: 0;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
}

.mutation-rule-rail header {
  display: grid;
  gap: var(--space-1);
  min-height: 50px;
  align-content: center;
  padding: var(--space-2-5) var(--space-3);
  border-bottom: 1px solid var(--line);
}

.mutation-rule-rail header span,
.mutation-rule-rail header strong,
.mutation-rule-rail li code,
.mutation-rule-rail li > span {
  font-family: var(--mono);
}

.mutation-rule-rail header span {
  color: var(--muted);
  font-size: var(--type-dense-compact);
  font-weight: 700;
}

.mutation-rule-rail header strong {
  color: var(--ink);
  font-size: var(--type-dense-caption);
}

.mutation-rule-rail ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mutation-rule-rail li {
  display: grid;
  min-height: 56px;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2-5);
  padding: var(--space-2-5) var(--space-3);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.36);
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.mutation-rule-rail li > i {
  width: 8px;
  height: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
}

.mutation-rule-rail li > div {
  display: grid;
  min-width: 0;
  gap: var(--space-1);
}

.mutation-rule-rail li strong {
  font-size: var(--type-micro);
  font-weight: 650;
  line-height: 1.3;
}

.mutation-rule-rail li code {
  color: var(--muted);
  font-size: var(--type-dense-compact);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mutation-rule-rail li > span {
  color: var(--muted);
  font-size: var(--type-dense-compact);
  font-weight: 750;
}

.mutation-rule-rail li[data-state="pass"] {
  background: rgba(31, 128, 98, 0.09);
  box-shadow: inset 2px 0 0 #1f8062;
}

.mutation-rule-rail li[data-state="pass"] > i {
  border-color: var(--structure-primary);
  background: #1f8062;
  box-shadow: 0 0 0 3px rgba(31, 128, 98, 0.1);
}

.mutation-rule-rail li[data-state="pass"] > span {
  color: var(--structure-primary);
}

.mutation-rule-rail li[data-state="fail"] {
  background: rgba(198, 79, 61, 0.09);
  box-shadow: inset 2px 0 0 #c64f3d;
}

.mutation-rule-rail li[data-state="fail"] > i {
  border-color: var(--action-primary-strong);
  background: #c64f3d;
  box-shadow: 0 0 0 3px rgba(198, 79, 61, 0.1);
}

.mutation-rule-rail li[data-state="fail"] > span {
  color: var(--action-primary-strong);
}

.mutation-ingress {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0;
}

.mutation-gate {
  display: grid;
  width: min(420px, 82%);
  min-width: 0;
  gap: var(--space-1);
  padding: var(--space-2-5) var(--space-3);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.94);
}

.mutation-gate strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--type-dense-caption);
}

.mutation-gate code,
.mutation-gate span {
  font-family: var(--mono);
  font-size: var(--type-dense-compact);
  overflow-wrap: anywhere;
}

.mutation-gate code {
  color: var(--ink-soft);
}

.mutation-entry-wire {
  position: relative;
  display: block;
  width: 1px;
  height: 48px;
  background: var(--line-strong);
}

.mutation-entry-wire::after {
  position: absolute;
  right: -3px;
  bottom: -1px;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  content: "";
  transform: rotate(135deg);
}

.mutation-drop > i {
  position: absolute;
  z-index: 2;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--mutation-tone);
  box-shadow: 0 0 0 1px var(--mutation-tone);
  opacity: 0;
}

.mutation-moving-event {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 50%;
  display: flex;
  align-items: center;
  gap: var(--space-1-5);
  color: var(--mutation-tone);
  pointer-events: none;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.mutation-moving-event i {
  width: 8px;
  height: 8px;
  flex: none;
  border: 2px solid #fff;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 1px currentColor, 0 0 0 4px var(--mutation-soft);
}

.mutation-moving-event b {
  color: currentColor;
  font-family: var(--mono);
  font-size: var(--type-dense-compact);
  font-weight: 750;
}

.mutation-gate {
  position: relative;
  border-color: var(--mutation-tone);
  box-shadow: inset 3px 0 0 var(--mutation-tone);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.mutation-gate strong,
.mutation-gate span {
  color: var(--mutation-tone);
  font-weight: 700;
}

.mutation-gate span {
  position: absolute;
  top: 9px;
  right: 10px;
  font-size: var(--type-dense-micro);
}

.mutation-fanout {
  position: relative;
  height: 72px;
  color: var(--mutation-tone);
  transition: opacity 180ms ease;
}

.mutation-trunk,
.mutation-rail,
.mutation-drop {
  position: absolute;
  background: currentColor;
}

.mutation-trunk {
  top: 0;
  left: 50%;
  width: 1px;
  height: 37px;
}

.mutation-rail {
  top: 36px;
  right: 16.66%;
  left: 16.66%;
  height: 1px;
}

.mutation-drop {
  top: 36px;
  width: 1px;
  height: 36px;
}

.mutation-drop-one {
  left: 16.66%;
}

.mutation-drop-two {
  left: 50%;
}

.mutation-drop-three {
  left: 83.33%;
}

.mutation-drop > i {
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

.entity-mutation-lab[data-outcome="rejected"] .mutation-fanout,
.entity-mutation-lab[data-outcome="noop"] .mutation-fanout {
  color: var(--line-strong);
  opacity: 0.34;
}

.mutation-entity-systems {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2-5);
}

.mutation-entity-system {
  min-width: 0;
}

.mutation-entity-system > header {
  display: flex;
  height: 31px;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-2);
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  background: var(--surface-panel);
  color: var(--text-primary);
}

.mutation-entity-system > header span {
  color: var(--action-primary-strong);
  font-family: var(--mono);
  font-size: var(--type-dense-micro);
}

.mutation-entity-system > header strong {
  font-size: var(--type-micro);
  font-weight: 650;
}

.mutation-entity-stack {
  position: relative;
  min-height: 190px;
  padding: var(--space-5) 0 0;
}

.mutation-entity-back,
.mutation-entity-card {
  border: 1px solid var(--line-strong);
  background: #fff;
}

.mutation-entity-back {
  position: absolute;
  right: 5px;
  left: 5px;
  height: 32px;
  padding: var(--space-1-5) var(--space-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-dense-micro);
}

.mutation-entity-back:first-child {
  top: 0;
  right: 13px;
  left: 13px;
  background: #e8ece8;
}

.mutation-entity-back:nth-child(2) {
  top: 9px;
  right: 9px;
  left: 9px;
  background: #f1f3ef;
}

.mutation-entity-card {
  position: relative;
  z-index: 1;
  min-height: 166px;
  padding: var(--space-2-5);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.mutation-entity-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1-5);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--line);
}

.mutation-entity-card > div:first-child strong {
  font-family: var(--mono);
  font-size: var(--type-micro);
}

.mutation-entity-card dl {
  display: grid;
  gap: 0;
  margin: var(--space-1) 0 0;
}

.mutation-entity-card dl > div {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1-5);
  min-height: 32px;
  border-bottom: 1px solid var(--line);
}

.mutation-entity-card dt,
.mutation-entity-card dd {
  min-width: 0;
  margin: 0;
  font-family: var(--mono);
  font-size: var(--type-dense-micro);
}

.mutation-entity-card dt {
  color: var(--muted);
}

.mutation-entity-card dd {
  color: var(--ink);
  text-align: right;
  overflow-wrap: anywhere;
}

.mutation-property-change dd {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-1);
}

.mutation-property-change span {
  color: var(--muted);
}

.mutation-property-change i {
  color: var(--muted);
  font-style: normal;
}

.mutation-property-change b {
  color: var(--mutation-tone);
  font-weight: 750;
}

.entity-mutation-lab[data-outcome="rejected"] .mutation-property-change b,
.entity-mutation-lab[data-outcome="noop"] .mutation-property-change b {
  color: var(--ink);
}

.mutation-relations {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-2-5);
  margin-top: var(--space-2-5);
  padding: var(--space-2-5) var(--space-2-5);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.9);
}

.mutation-relations > div {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1-5);
}

.mutation-relations strong,
.mutation-relations span {
  font-family: var(--mono);
  font-size: var(--type-dense-micro);
  text-align: center;
}

.mutation-relations strong {
  padding: var(--space-1) var(--space-1-5);
  border: 1px solid var(--line);
  background: #fff;
}

.mutation-relations span {
  position: relative;
  flex: 1;
  color: var(--muted);
  white-space: nowrap;
}

.mutation-relations span::before,
.mutation-relations span::after {
  display: inline-block;
  width: 8px;
  border-top: 1px solid var(--line-strong);
  margin: 0 var(--space-1) var(--space-half);
  content: "";
}

.entity-mutation-trace {
  display: grid;
  min-height: 48px;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3-5);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.mutation-activity-label {
  display: inline-flex;
  grid-column: 1;
  grid-row: 1;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
}

.mutation-activity-label i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mutation-tone);
  box-shadow: 0 0 0 3px var(--mutation-soft);
}

.mutation-activity-event {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--space-2);
  overflow: hidden;
}

.mutation-activity-event {
  grid-column: 2;
  grid-row: 1;
}

.entity-mutation-trace .mutation-stream-controls {
  grid-column: 3;
  grid-row: 1;
}

.mutation-activity-event > b,
.mutation-activity-event strong,
.mutation-activity-event code {
  font-family: var(--mono);
  white-space: nowrap;
}

.mutation-activity-event > b {
  flex: none;
  color: var(--mutation-tone);
  font-size: var(--type-dense-micro);
  font-weight: 750;
}

.mutation-activity-event strong,
.mutation-activity-event code {
  font-size: var(--type-dense-compact);
  font-weight: 700;
}

.mutation-activity-event strong {
  color: var(--ink);
}

.mutation-activity-event code {
  min-width: 0;
  overflow: hidden;
  color: var(--mutation-tone);
  text-overflow: ellipsis;
}

.mutation-activity-event svg {
  width: 11px;
  height: 11px;
  flex: none;
  color: var(--muted);
}

.entity-mutation-lab.is-animating .mutation-moving-event i {
  animation: mutation-event-dot-travel 450ms ease-in-out 50ms both;
}

.entity-mutation-lab.is-animating .mutation-moving-event b {
  animation: mutation-event-label-hold 1050ms ease-out 50ms both;
}

.entity-mutation-lab.is-animating[data-outcome="allowed"] .mutation-drop > i {
  animation: mutation-drop-pulse 310ms ease-out 425ms both;
}

.entity-mutation-lab.is-animating[data-outcome="allowed"] .mutation-entity-card {
  animation: mutation-card-commit 280ms ease-out 640ms both;
}

.entity-mutation-lab.is-animating[data-outcome="rejected"] .mutation-gate {
  animation: mutation-gate-reject 280ms ease-out 390ms both;
}

.entity-mutation-lab.is-animating .mutation-rule-rail li[data-state="pass"],
.entity-mutation-lab.is-animating .mutation-rule-rail li[data-state="fail"] {
  animation: mutation-rule-hit 260ms ease-out 340ms both;
}

@keyframes mutation-event-dot-travel {
  0% { opacity: 0; transform: translateY(0); }
  12% { opacity: 1; }
  78% { opacity: 1; }
  100% { opacity: 0; transform: translateY(48px); }
}

@keyframes mutation-event-label-hold {
  0% { opacity: 0; }
  10%, 86% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes mutation-drop-pulse {
  0% { top: 0; opacity: 0; }
  15% { opacity: 1; }
  100% { top: 100%; opacity: 1; }
}

@keyframes mutation-card-commit {
  0% { border-color: var(--line-strong); background: #fff; }
  45% { border-color: var(--mutation-tone); background: var(--mutation-soft); box-shadow: 0 0 0 2px var(--mutation-soft); }
  100% { border-color: var(--mutation-tone); background: #fff; box-shadow: inset 0 -2px 0 var(--mutation-tone); }
}

@keyframes mutation-gate-reject {
  0%, 100% { transform: translateX(0); background: #fff; }
  25% { transform: translateX(-3px); background: var(--mutation-soft); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-2px); }
}

@keyframes mutation-rule-hit {
  0% { opacity: 0.5; transform: translateX(3px); }
  100% { opacity: 1; transform: translateX(0); }
}

@media (max-width: 840px) {
  .entity-mutation-trace {
    grid-template-columns: 100px minmax(0, 1fr) auto;
  }

  .mutation-activity-label {
    grid-column: 1;
    grid-row: 1;
  }

  .mutation-activity-event {
    grid-column: 2;
    grid-row: 1;
  }

  .entity-mutation-trace .mutation-stream-controls {
    grid-column: 3;
    grid-row: 1;
  }

  .entity-mutation-workspace {
    grid-template-columns: 1fr;
  }

  .mutation-rule-rail {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .mutation-rule-rail ol {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .mutation-rule-rail li {
    align-content: center;
    grid-template-columns: 7px minmax(0, 1fr);
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .mutation-rule-rail li > span {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  .mutation-runtime {
    padding: var(--space-3-5) var(--space-3);
  }

  .mutation-fanout {
    display: none;
  }

  .mutation-entity-systems {
    grid-template-columns: 1fr;
    gap: var(--space-3-5);
    margin-top: var(--space-5);
  }

  .mutation-relations {
    grid-template-columns: 1fr;
  }

  .mutation-relations > div {
    align-items: stretch;
    flex-direction: column;
  }

  .mutation-relations span::before,
  .mutation-relations span::after {
    display: none;
  }

  .mutation-rule-rail ol {
    grid-template-columns: 1fr;
  }

  .mutation-rule-rail li {
    min-height: 58px;
    grid-template-columns: 7px minmax(0, 1fr) auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mutation-rule-rail li > span {
    grid-column: auto;
  }

  .entity-mutation-trace {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-2-5);
    padding: var(--space-2-5) var(--space-3);
  }

  .mutation-activity-label {
    display: none;
  }

  .entity-mutation-trace .mutation-stream-controls {
    grid-column: 2;
    grid-row: 1;
  }

  .mutation-activity-event {
    grid-column: 1;
    grid-row: 1;
  }
}

.actor-population-lab {
  --actor-tone: var(--structure-primary);
  --actor-soft: rgba(31, 128, 98, 0.12);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-media);
  background: #f7f8f4;
  box-shadow: var(--shadow-panel);
  container-name: actor-lab;
  container-type: inline-size;
}

.actor-population-lab[data-scenario="sla"] {
  --actor-tone: #256dd3;
  --actor-soft: rgba(37, 109, 211, 0.12);
}

.actor-population-lab[data-scenario="exception"] {
  --actor-tone: #c64f3d;
  --actor-soft: rgba(198, 79, 61, 0.12);
}

.actor-population-header,
.actor-population-footer {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3-5);
  padding: 0 var(--space-3-5);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-micro);
  font-weight: 650;
}

.actor-population-header {
  border-bottom: 1px solid var(--line);
}

.actor-population-run,
.actor-population-footer > span,
.actor-event-bar > span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
}

.actor-population-run {
  color: var(--forest);
}

.actor-population-run i,
.actor-population-footer > span i,
.actor-event-bar > span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--actor-tone);
  box-shadow: 0 0 0 4px var(--actor-soft);
}

.actor-event-bar {
  display: grid;
  min-height: 54px;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3-5);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.actor-event-bar > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-dense-micro);
  font-weight: 700;
}

.actor-event-bar > strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--type-micro);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.actor-scenario-tabs {
  display: inline-flex;
  padding: var(--space-half);
  border: 1px solid var(--line);
  background: #eef1ed;
}

.actor-scenario-tabs button {
  min-height: 26px;
  padding: 0 var(--space-2-5);
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-dense-micro);
  font-weight: 700;
  cursor: pointer;
}

.actor-scenario-tabs button[aria-pressed="true"] {
  background: #fff;
  box-shadow: 0 1px 4px rgba(19, 35, 31, 0.12);
  color: var(--actor-tone);
}

.actor-population-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  min-height: 470px;
}

.actor-population-field {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(19, 35, 31, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 35, 31, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
}

.actor-field-plane {
  position: absolute;
  inset: 54px 54px 48px 38px;
  border: 1px solid rgba(19, 35, 31, 0.16);
  background:
    linear-gradient(30deg, rgba(19, 35, 31, 0.06) 1px, transparent 1px),
    linear-gradient(150deg, rgba(19, 35, 31, 0.06) 1px, transparent 1px),
    rgba(255, 255, 255, 0.58);
  background-size: 28px 16px;
  clip-path: polygon(50% 0, 100% 29%, 100% 71%, 50% 100%, 0 71%, 0 29%);
  transform: rotate(-2deg);
}

.actor-field-plane::after {
  position: absolute;
  inset: 14% 10%;
  border: 1px dashed var(--line-strong);
  clip-path: inherit;
  content: "";
  opacity: 0.65;
}

.actor-event-pulse {
  position: absolute;
  z-index: 1;
  top: 24px;
  left: 50%;
  width: 1px;
  height: 92px;
  background: linear-gradient(var(--actor-tone), transparent);
}

.actor-event-pulse i {
  position: absolute;
  top: 0;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--actor-tone);
  box-shadow: 0 0 0 3px var(--actor-soft);
  transform: translate(-50%, -50%);
}

.actor-cluster {
  position: absolute;
  z-index: 2;
  width: 188px;
  transition: filter 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.actor-cluster[data-active="false"] {
  filter: grayscale(0.55);
  opacity: 0.48;
}

.actor-cluster[data-active="true"] {
  transform: translateY(-3px);
}

.actor-cluster-buyers {
  top: 178px;
  left: 44px;
  --family-color: var(--structure-primary);
}

.actor-cluster-support {
  top: 92px;
  right: 54px;
  --family-color: #256dd3;
}

.actor-cluster-admins {
  right: 106px;
  bottom: 62px;
  --family-color: var(--action-primary-strong);
}

.actor-cluster > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2-5);
  padding-bottom: var(--space-1-5);
  border-bottom: 1px solid var(--family-color);
}

.actor-cluster > header strong,
.actor-cluster > header span {
  font-family: var(--mono);
}

.actor-cluster > header strong {
  color: var(--family-color);
  font-size: var(--type-micro);
}

.actor-cluster > header span {
  color: var(--muted);
  font-size: var(--type-dense-micro);
  font-weight: 700;
}

.actor-token-grid {
  display: grid;
  grid-template-columns: repeat(4, 34px);
  gap: var(--space-2) var(--space-2-5);
  justify-content: center;
}

.actor-token {
  position: relative;
  display: grid;
  width: 34px;
  height: 42px;
  padding: 0 0 var(--space-2-5);
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--family-color);
  cursor: pointer;
}

.actor-token::before,
.actor-token::after {
  position: absolute;
  right: 5px;
  bottom: 2px;
  left: 5px;
  height: 12px;
  border: 1px solid color-mix(in srgb, var(--family-color) 46%, #fff);
  background: color-mix(in srgb, var(--family-color) 12%, #fff);
  content: "";
  transform: skewY(-28deg);
}

.actor-token::after {
  right: 9px;
  bottom: 5px;
  left: 9px;
  height: 7px;
  background: var(--family-color);
  opacity: 0.24;
}

.actor-token svg {
  position: relative;
  z-index: 2;
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
}

.actor-token[data-response="wait"] {
  --family-color: #b28418;
}

.actor-token[data-response="ignore"] {
  --family-color: #7d8782;
}

.actor-token[data-response="escalate"] {
  --family-color: var(--action-primary-strong);
}

.actor-token[data-actor-profile="loyal"] {
  --family-color: var(--structure-primary);
}

.actor-token[data-actor-profile="frequent"] {
  --family-color: #256d73;
}

.actor-profile-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-1) var(--space-2);
  margin-top: var(--space-2-5);
}

.actor-profile-legend span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-dense-micro);
  font-weight: 700;
}

.actor-profile-legend i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7d8782;
}

.actor-profile-legend [data-profile-tone="loyal"] i {
  background: #1f8062;
}

.actor-profile-legend [data-profile-tone="frequent"] i {
  background: #256d73;
}

.actor-profile-legend [data-profile-tone="deal"] i {
  background: #b28418;
}

.actor-token[aria-pressed="true"] {
  outline: 0;
}

.actor-token[aria-pressed="true"]::before {
  border-color: var(--family-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--family-color) 14%, transparent);
}

.actor-behavior-panel {
  min-width: 0;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.actor-behavior-panel > header {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-3-5) var(--space-3-5);
  border-bottom: 1px solid var(--line);
}

.actor-behavior-panel > header span,
.actor-behavior-panel dt,
.actor-behavior-path span,
.actor-behavior-path strong {
  font-family: var(--mono);
  font-size: var(--type-dense-micro);
  font-weight: 700;
}

.actor-behavior-panel > header span,
.actor-behavior-panel dt,
.actor-behavior-path span {
  color: var(--muted);
}

.actor-behavior-panel > header strong {
  font-size: var(--type-body);
  line-height: 1.2;
}

.actor-behavior-panel > p {
  min-height: 84px;
  margin: 0;
  padding: var(--space-3-5) var(--space-3-5);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: var(--type-label);
  line-height: 1.55;
}

.actor-behavior-panel dl {
  margin: 0;
}

.actor-behavior-panel dl > div {
  display: grid;
  gap: var(--space-1-5);
  min-height: 73px;
  align-content: center;
  padding: var(--space-2-5) var(--space-3-5);
  border-bottom: 1px solid var(--line);
}

.actor-behavior-panel dd {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--type-micro);
  line-height: 1.45;
}

.actor-behavior-panel dl > div:last-child dd {
  color: var(--actor-tone);
  font-weight: 700;
}

.actor-behavior-path {
  display: flex;
  min-height: 55px;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2-5) var(--space-3);
}

.actor-behavior-path i {
  width: 15px;
  border-top: 1px solid var(--line-strong);
}

.actor-behavior-path strong {
  color: var(--actor-tone);
}

.actor-population-footer {
  display: grid;
  min-height: 48px;
  grid-template-columns: 150px minmax(0, 1fr);
  justify-content: stretch;
  border-top: 1px solid var(--line);
}

.actor-population-footer > strong {
  min-width: 0;
  overflow: hidden;
  color: var(--actor-tone);
  font-family: var(--mono);
  font-size: var(--type-dense-compact);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.actor-population-lab.is-responding .actor-event-pulse i {
  animation: actor-event-enter 520ms ease-out both;
}

.actor-population-lab.is-responding .actor-cluster[data-active="true"] .actor-token {
  animation: actor-token-react 420ms ease-out both;
}

.actor-population-lab.is-responding .actor-cluster[data-active="true"] .actor-token:nth-child(2n) {
  animation-delay: 80ms;
}

.actor-population-lab.is-responding .actor-cluster[data-active="true"] .actor-token:nth-child(3n) {
  animation-delay: 140ms;
}

@keyframes actor-event-enter {
  0% { opacity: 0; transform: translate(-50%, -50%) translateY(0); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) translateY(88px); }
}

@keyframes actor-token-react {
  0%, 100% { transform: translateY(0); }
  48% { transform: translateY(-6px); }
}

@container actor-lab (max-width: 700px) {
  .actor-event-bar {
    grid-template-columns: 1fr auto;
  }

  .actor-event-bar > strong {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .actor-scenario-tabs {
    grid-column: 2;
    grid-row: 1;
  }

  .actor-population-workspace {
    grid-template-columns: 1fr;
  }

  .actor-population-field {
    min-height: 430px;
  }

  .actor-behavior-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .actor-behavior-panel > p {
    min-height: 0;
  }

  .actor-behavior-panel dl {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .actor-behavior-path {
    grid-column: 1 / -1;
  }
}

@container actor-lab (max-width: 500px) {
  .actor-event-bar {
    grid-template-columns: 1fr;
    gap: var(--space-2);
    padding: var(--space-2-5) var(--space-3);
  }

  .actor-event-bar > strong,
  .actor-scenario-tabs {
    grid-column: 1;
    grid-row: auto;
  }

  .actor-scenario-tabs {
    width: 100%;
  }

  .actor-scenario-tabs button {
    flex: 1;
    padding: 0 var(--space-1-5);
  }

  .actor-population-field {
    min-height: 510px;
  }

  .actor-field-plane {
    inset: 40px 18px;
  }

  .actor-cluster {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .actor-cluster[data-active="true"] {
    transform: translate(-50%, -3px);
  }

  .actor-cluster-buyers {
    top: 86px;
  }

  .actor-cluster-support {
    top: 245px;
  }

  .actor-cluster-admins {
    top: 382px;
    bottom: auto;
  }

  .actor-behavior-panel {
    grid-template-columns: 1fr;
  }

  .actor-behavior-panel dl {
    grid-template-columns: 1fr;
  }

  .actor-population-footer {
    grid-template-columns: 1fr;
    gap: var(--space-1-5);
    padding-top: var(--space-2-5);
    padding-bottom: var(--space-2-5);
  }
}

.actor-population-home .actor-population-workspace {
  min-height: 430px;
  grid-template-columns: 1fr;
}

.actor-population-home .actor-population-field {
  min-height: 430px;
}

.actor-world-lab {
  --actor-world-tone: #ee644a;
  --actor-world-text-tone: var(--action-primary-strong);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-media);
  background: #f7f8f4;
  box-shadow: var(--shadow-panel);
  container-name: actor-world;
  container-type: inline-size;
}

.actor-world-lab[data-actor-type="support"] {
  --actor-world-tone: #256dd3;
  --actor-world-text-tone: var(--interaction-primary);
}

.actor-world-lab[data-actor-type="admins"] {
  --actor-world-tone: #77751d;
  --actor-world-text-tone: #77751d;
}

.actor-world-header,
.actor-world-footer {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0 var(--space-3-5);
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-dense-compact);
  font-weight: 650;
}

.actor-world-header {
  border-bottom: 1px solid var(--line);
}

.actor-world-run,
.actor-world-footer > span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
}

.actor-world-run {
  color: var(--forest);
}

.actor-world-run i,
.actor-world-footer > span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--actor-world-tone);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--actor-world-tone) 13%, transparent);
}

.actor-world-workspace {
  display: grid;
  min-height: 430px;
  grid-template-columns: minmax(0, 1fr) 208px;
}

.actor-world-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(19, 35, 31, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 35, 31, 0.045) 1px, transparent 1px),
    #eef1eb;
  background-size: 24px 24px;
}

.actor-world-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.actor-event-legend {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: var(--space-3-5);
  padding: var(--space-1-5) var(--space-2);
  border: 1px solid rgba(19, 35, 31, 0.12);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 6px 16px rgba(19, 35, 31, 0.06);
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-dense-micro);
  font-weight: 700;
}

.actor-event-legend span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1-5);
  white-space: nowrap;
}

.actor-event-legend i {
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border-radius: 50%;
  background: #ee644a;
  color: var(--text-on-dark);
  font-size: var(--type-dense-compact);
  font-style: normal;
}

.actor-event-legend i[data-tone="buyer"] {
  color: var(--text-primary);
}

.actor-event-legend i[data-tone="support"] {
  background: #256dd3;
}

.actor-event-legend i[data-tone="admin"] {
  background: #77751d;
}

.actor-world-panel {
  min-width: 0;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.actor-type-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: var(--space-1-5);
  border-bottom: 1px solid var(--line);
  background: #eef1ed;
}

.actor-type-tabs button {
  min-width: 0;
  min-height: 29px;
  padding: 0 var(--space-1);
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-dense-micro);
  font-weight: 700;
  cursor: pointer;
}

.actor-type-tabs button[aria-pressed="true"] {
  background: #fff;
  box-shadow: 0 1px 4px rgba(19, 35, 31, 0.12);
  color: var(--actor-world-text-tone);
}

.actor-world-panel > header {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-3-5) var(--space-3);
  border-bottom: 1px solid var(--line);
}

.actor-world-panel > header span,
.actor-world-characteristics dt,
.actor-control span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-dense-micro);
  font-weight: 700;
}

.actor-world-panel > header strong {
  color: var(--ink);
  font-size: var(--type-ui);
  line-height: 1.2;
}

.actor-world-panel > header p {
  margin: var(--space-optical) 0 0;
  color: var(--ink-soft);
  font-size: var(--type-micro);
  line-height: 1.45;
}

.actor-control-list {
  border-bottom: 1px solid var(--line);
}

.actor-control {
  display: grid;
  min-height: 58px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: var(--space-2) var(--space-2-5);
  padding: var(--space-2) var(--space-3-5);
  border-bottom: 1px solid var(--line);
}

.actor-control:last-child {
  border-bottom: 0;
}

.actor-control output {
  color: var(--actor-world-text-tone);
  font-family: var(--mono);
  font-size: var(--type-micro);
  font-weight: 700;
}

.actor-control input[type="range"] {
  width: 100%;
  height: 14px;
  grid-column: 1 / -1;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
}

.actor-control input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: var(--line-strong);
}

.actor-control input[type="range"]::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: calc(-1 * var(--space-1-5));
  appearance: none;
  border: 0;
  border-radius: 50%;
  background: var(--actor-world-tone);
  box-shadow: 0 0 0 2px #fff;
}

.actor-control input[type="range"]::-moz-range-track {
  height: 2px;
  border: 0;
  background: var(--line-strong);
}

.actor-control input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--actor-world-tone);
}

.actor-world-characteristics {
  display: grid;
  margin: 0;
}

.actor-world-characteristics > div {
  display: grid;
  grid-template-columns: 65px minmax(0, 1fr);
  gap: var(--space-2);
  align-items: baseline;
  padding: var(--space-2) var(--space-3-5);
  border-bottom: 1px solid var(--line);
}

.actor-world-characteristics dd {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: var(--type-dense-micro);
  line-height: 1.35;
}

.actor-world-footer {
  display: grid;
  min-height: 44px;
  grid-template-columns: 112px minmax(0, 1fr);
  justify-content: stretch;
  border-top: 1px solid var(--line);
}

.actor-world-footer > strong {
  min-width: 0;
  overflow: hidden;
  color: var(--actor-world-text-tone);
  font-family: var(--mono);
  font-size: var(--type-dense-micro);
  text-overflow: ellipsis;
  white-space: nowrap;
}

@container actor-world (max-width: 560px) {
  .actor-world-workspace {
    grid-template-columns: minmax(0, 1fr) 190px;
  }

  .actor-event-legend {
    gap: var(--space-2);
  }
}

@container actor-world (max-width: 470px) {
  .actor-world-workspace {
    grid-template-columns: 1fr;
  }

  .actor-world-stage {
    min-height: 360px;
  }

  .actor-world-panel {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .actor-control-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .actor-world-characteristics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .actor-world-characteristics > div {
    grid-template-columns: 1fr;
  }
}

.history-evolution-lab {
  --history-tone: var(--structure-primary);
  --history-text-tone: var(--structure-primary);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-media);
  background: #f7f8f4;
  box-shadow: var(--shadow-panel);
  container-name: history-lab;
  container-type: inline-size;
}

.history-evolution-header {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3-5);
  padding: 0 var(--space-3-5);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-micro);
  font-weight: 650;
}

.history-evolution-run {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--history-text-tone);
}

.history-evolution-run i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--history-tone);
  box-shadow: 0 0 0 4px rgba(31, 128, 98, 0.12);
}

.history-evolution-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  min-height: 470px;
}

.history-evolution-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #eef1eb;
}

.history-world-sim {
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.history-world-sim .hero-sim-header,
.history-world-sim .hero-control-rail,
.history-world-sim .hero-event,
.history-world-sim .hero-state-strip,
.history-world-sim .hero-timeline {
  display: none;
}

.history-world-sim .hero-sim-workspace {
  display: block;
  height: 100%;
  border: 0;
}

.history-world-sim .hero-sim-stage {
  height: 470px;
  background-color: #eef1eb;
}

.history-era-stamp {
  position: absolute;
  z-index: 3;
  bottom: 18px;
  left: 18px;
  display: grid;
  min-width: 122px;
  gap: var(--space-half);
  padding: var(--space-2-5) var(--space-3);
  border-left: 3px solid var(--history-tone);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(19, 35, 31, 0.1);
}

.history-era-stamp span,
.history-era-stamp small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-dense-micro);
  font-weight: 700;
}

.history-era-stamp strong {
  font-size: var(--type-body-emphasis);
}

.history-evolution-panel {
  min-width: 0;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.history-evolution-panel > header {
  display: grid;
  min-height: 84px;
  align-content: center;
  gap: var(--space-1-5);
  padding: var(--space-3-5) var(--space-3-5);
  border-bottom: 1px solid var(--line);
}

.history-evolution-panel > header span,
.history-evolution-panel dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-dense-micro);
  font-weight: 700;
}

.history-evolution-panel > header strong {
  font-size: var(--type-ui);
  line-height: 1.3;
}

.history-evolution-panel > p {
  min-height: 102px;
  margin: 0;
  padding: var(--space-3-5) var(--space-3-5);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: var(--type-dense-caption);
  line-height: 1.55;
}

.history-evolution-panel dl {
  margin: 0;
}

.history-evolution-panel dl > div {
  display: grid;
  min-height: 71px;
  align-content: center;
  gap: var(--space-1-5);
  padding: var(--space-2-5) var(--space-3-5);
  border-bottom: 1px solid var(--line);
}

.history-evolution-panel dd {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--type-micro);
  line-height: 1.45;
}

.history-era-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: #fff;
}

.history-era-timeline button {
  position: relative;
  display: grid;
  min-height: 64px;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  gap: var(--space-1) var(--space-2);
  padding: var(--space-2-5) var(--space-3);
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.history-era-timeline button + button {
  border-left: 1px solid var(--line);
}

.history-era-timeline button::before {
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--history-tone);
  content: "";
  opacity: 0;
}

.history-era-timeline button span,
.history-era-timeline button strong,
.history-era-timeline button small {
  font-family: var(--mono);
}

.history-era-timeline button span {
  grid-row: 1 / 3;
  color: var(--history-text-tone);
  font-size: var(--type-micro);
}

.history-era-timeline button strong {
  color: var(--ink);
  font-size: var(--type-dense-compact);
}

.history-era-timeline button small {
  font-size: var(--type-dense-micro);
}

.history-era-timeline button[aria-pressed="true"] {
  background: rgba(31, 128, 98, 0.07);
}

.history-era-timeline button[aria-pressed="true"]::before {
  opacity: 1;
}

.history-evolution-lab.is-shifting .history-world-sim canvas {
  animation: history-world-shift 480ms ease-out both;
}

@keyframes history-world-shift {
  0% { opacity: 0.4; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}

@container history-lab (max-width: 700px) {
  .history-evolution-workspace {
    grid-template-columns: 1fr;
  }

  .history-evolution-panel {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .history-evolution-panel dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container history-lab (max-width: 500px) {
  .history-world-sim .hero-sim-stage {
    height: 390px;
  }

  .history-evolution-panel dl,
  .history-era-timeline {
    grid-template-columns: 1fr;
  }

  .history-era-timeline button + button {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

.history-evolution-home .history-evolution-workspace {
  grid-template-columns: 1fr;
  min-height: 420px;
}

.history-evolution-home .history-world-sim .hero-sim-stage {
  height: 420px;
}

.history-evolution-home .history-era-timeline button {
  min-height: 58px;
  padding-right: var(--space-2);
  padding-left: var(--space-2);
}

@container history-lab (max-width: 500px) {
  .history-evolution-home .history-world-sim .hero-sim-stage {
    height: 360px;
  }

  .history-evolution-home .history-era-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-evolution-home .history-era-timeline button + button {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .history-evolution-home .history-era-timeline button:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  .entity-mutation-lab *,
  .actor-population-lab *,
  .history-evolution-lab * {
    animation: none !important;
  }
}

@media (max-width: 1200px) {
  .hero {
    padding: var(--space-18) 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-14);
  }

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

@container hero-sim (max-width: 600px) {
  .hero-sim-workspace {
    grid-template-columns: 1fr;
  }

  .hero-sim-stage {
    height: 350px;
  }

  .hero-control-rail {
    grid-template-columns: repeat(var(--sim-control-count, 3), minmax(0, 1fr));
    grid-template-rows: auto auto;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-control-heading {
    min-height: 42px;
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .hero-control-rail label {
    min-height: 86px;
    padding: var(--space-2-5);
  }

  .hero-control-rail label + label {
    border-left: 1px solid var(--line);
  }

  .hero-timeline {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .hero-clock {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@container hero-sim (max-width: 460px) {
  .hero-state-strip dd {
    display: grid;
    justify-content: start;
    gap: 0;
  }
}

.content-band {
  min-height: min(720px, calc(100svh - 72px));
  display: grid;
  align-items: center;
  padding: var(--section-padding-block) 0;
  border-bottom: 1px solid var(--line);
}

.home-page #living-worlds {
  background: #f7f7f2;
}

.home-page #simulated-users {
  background: #f1f3f0;
}

.home-page #history {
  background: #f6f3ef;
}

.home-page #time {
  background: #eef2f4;
}

.home-page #forks {
  background: #f7f7f2;
}

.home-page #worlds {
  background: #f1f3ef;
}

.home-page #evaluation {
  background: #f6f2ef;
}

.home-page #use-cases {
  background: #f0f2f1;
}

.home-page #docs {
  background: #f5f5f0;
  color: var(--ink);
}

.home-page #living-worlds .section-grid {
  grid-template-columns: minmax(300px, 0.68fr) minmax(0, 1.32fr);
  gap: var(--section-gap-compact);
}

.home-page #simulated-users .section-grid {
  grid-template-columns: minmax(0, 1.32fr) minmax(300px, 0.68fr);
  gap: var(--section-gap-compact);
}

.home-page #history .section-grid {
  grid-template-columns: minmax(300px, 0.68fr) minmax(0, 1.32fr);
  gap: var(--section-gap-compact);
}

.home-page #simulated-users .actor-world-workspace {
  min-height: 504px;
}

.section-copy p:last-child {
  max-width: 560px;
  margin-bottom: 0;
  font-size: var(--type-lede);
}

.home-users-section .section-copy > p:not(.eyebrow) {
  max-width: 570px;
  margin-bottom: var(--space-8);
  color: var(--ink-soft);
  font-size: var(--type-lede);
}

.home-actor-examples {
  margin: 0;
  border-top: 1px solid var(--line);
}

.home-actor-examples div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--space-5);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
}

.home-actor-examples dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-caption);
  text-transform: uppercase;
}

.home-actor-examples dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--type-meta);
}

.home-page #docs .eyebrow {
  color: var(--coral-dark);
}

.home-page #docs p {
  color: var(--ink-soft);
}

.home-page #docs .docs-steps {
  border-color: var(--line);
}

.home-page #docs .docs-steps span {
  border-color: var(--line);
}

.home-page #docs .docs-steps b {
  color: var(--coral-dark);
}

@media (max-width: 980px) {
  .home-page #living-worlds .section-grid,
  .home-page #simulated-users .section-grid,
  .home-page #history .section-grid {
    grid-template-columns: 1fr;
  }

  .home-page #simulated-users .section-copy,
  .home-page #simulated-users .actor-world-lab,
  .home-page #history .section-copy,
  .home-page #history .history-strata-lab {
    grid-row: auto;
    grid-column: auto;
  }
}

.home-users-visual {
  aspect-ratio: 1.3 / 1;
}

.home-user-world {
  position: absolute;
  inset: 20% 22%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 10%;
  padding: 12%;
  border: 1px solid var(--dark-line);
}

.home-user-world span {
  display: block;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
}

.home-user-world span:nth-child(2) {
  border-color: var(--yellow);
  background: rgba(233, 243, 79, 0.08);
}

.home-person {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--forest-dark);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.person-a {
  top: 14%;
  left: 10%;
}

.person-b {
  top: 28%;
  right: 10%;
  background: var(--yellow);
}

.person-c {
  bottom: 17%;
  left: 14%;
  background: var(--mint);
}

.person-d {
  right: 16%;
  bottom: 12%;
  background: var(--blue);
}

.home-feedback {
  position: absolute;
  width: 18%;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
  transform-origin: left center;
}

.feedback-a {
  top: 31%;
  left: 12%;
  transform: rotate(18deg);
}

.feedback-b {
  right: 10%;
  bottom: 30%;
  transform: rotate(198deg);
}

.section-grid-reverse .section-copy {
  grid-column: 2;
}

.section-grid-reverse .visual-reserve,
.section-grid-reverse > .actor-population-lab,
.section-grid-reverse > .actor-world-lab,
.section-grid-reverse > .history-evolution-lab,
.section-grid-reverse > .history-strata-lab,
.section-grid-reverse > .time-world-lab {
  grid-row: 1;
  grid-column: 1;
}

.band-soft {
  background: var(--paper-strong);
}

.reserve-field-centered {
  display: grid;
  place-items: center;
}

.reserve-ring {
  position: absolute;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.ring-large {
  width: 58%;
  aspect-ratio: 1;
}

.ring-small {
  width: 34%;
  aspect-ratio: 1;
  border-color: var(--action-primary-strong);
}

.reserve-core {
  width: 13%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--forest);
}

.timeline-field {
  display: grid;
  align-items: center;
}

.timeline-line {
  position: absolute;
  right: 10%;
  left: 10%;
  height: 1px;
  background: var(--line-strong);
}

.timeline-field i {
  position: absolute;
  left: var(--position);
  width: 13px;
  height: 13px;
  border: 3px solid var(--paper-strong);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 1px var(--coral);
}

.band-dark,
.docs-section {
  background: var(--forest-dark);
  color: var(--white);
}

.band-dark .eyebrow,
.docs-section .eyebrow {
  color: var(--yellow);
}

.band-dark p,
.docs-section p {
  color: var(--text-on-dark-secondary);
}

.clock-field {
  display: grid;
  align-items: center;
}

.clock-track {
  position: absolute;
  right: 10%;
  left: 10%;
  height: 2px;
  background: rgba(255, 255, 255, 0.22);
}

.clock-track::before,
.clock-track::after {
  position: absolute;
  top: -5px;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  content: "";
}

.clock-track::before {
  left: 0;
}

.clock-track::after {
  right: 0;
}

.clock-now {
  position: absolute;
  left: 53%;
  width: 20px;
  height: 20px;
  border: 5px solid var(--yellow);
  border-radius: 50%;
  background: var(--forest-dark);
  box-shadow: 0 0 0 8px rgba(233, 243, 79, 0.12);
}

.fork-trunk,
.fork-branch {
  position: absolute;
  height: 1px;
  background: var(--line-strong);
  transform-origin: left center;
}

.fork-trunk {
  top: 50%;
  left: 12%;
  width: 38%;
}

.fork-branch {
  top: 50%;
  left: 50%;
  width: 32%;
}

.branch-up {
  transform: rotate(-23deg);
}

.branch-down {
  transform: rotate(23deg);
}

.fork-end {
  position: absolute;
  right: 14%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.end-up {
  top: 27%;
  background: var(--blue);
}

.end-down {
  bottom: 27%;
  background: var(--coral);
}

.worlds-section,
.use-cases-section {
  padding: var(--section-padding-block-generous) 0;
  border-bottom: 1px solid var(--line);
}

.worlds-section {
  padding: var(--section-padding-block-compact) 0;
  background: var(--white);
}

.wide-intro {
  display: grid;
  grid-template-columns: 0.5fr 1.35fr 0.85fr;
  align-items: end;
  gap: var(--space-8);
  margin-bottom: var(--space-14);
}

.wide-intro .eyebrow,
.wide-intro h2,
.wide-intro p {
  margin-bottom: 0;
}

.wide-intro p:last-child {
  font-size: var(--type-body-emphasis);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.choice-item {
  min-width: 0;
  padding: var(--space-8);
  scroll-margin-top: var(--space-24);
}

.choice-item + .choice-item {
  border-left: 1px solid var(--line);
}

.choice-item > span,
.use-case-list article > span {
  display: block;
  margin-bottom: var(--space-12);
  color: var(--coral-dark);
  font-family: var(--mono);
  font-size: var(--type-caption);
}

.choice-item p {
  max-width: 290px;
  margin-bottom: 0;
}

.wide-visual-reserve {
  display: grid;
  height: 210px;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding: var(--space-8);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-media);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--paper-strong);
  background-size: 28px 28px;
}

.wide-visual-reserve span {
  display: block;
  height: 38%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.65);
}

.wide-visual-reserve span:nth-child(2) {
  height: 62%;
}

.wide-visual-reserve span:nth-child(3) {
  height: 84%;
  border-color: var(--forest);
}

.wide-visual-reserve span:nth-child(4) {
  height: 55%;
}

.wide-visual-reserve span:nth-child(5) {
  height: 72%;
}

.wide-visual-reserve.home-build-visual {
  position: relative;
  display: block;
  height: clamp(210px, 18vw, 230px);
  padding: 0;
}

.score-field {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  gap: 12%;
  padding: 14%;
}

.score-block {
  height: 56%;
  border: 1px solid var(--line-strong);
}

.score-a {
  background: var(--coral-soft);
}

.score-b {
  background: var(--forest-soft);
}

.score-divider {
  height: 70%;
  background: var(--line-strong);
}

.use-cases-section {
  background: var(--paper);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: var(--section-gap-generous);
}

.use-cases-grid .wide-intro {
  display: block;
  margin: 0;
}

.home-solutions-visual {
  margin-top: var(--space-10);
  aspect-ratio: 1.12 / 1;
}

.use-case-list {
  border-top: 1px solid var(--line);
}

.use-case-list article {
  display: grid;
  min-height: 112px;
  grid-template-columns: 50px minmax(180px, 0.8fr) minmax(220px, 1fr);
  align-items: center;
  gap: var(--space-5);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: var(--space-24);
}

.use-case-list article > span,
.use-case-list article h3,
.use-case-list article p {
  margin-bottom: 0;
}

.use-case-list article > span {
  color: var(--muted);
}

.use-case-list article p {
  font-size: var(--type-meta);
}

.chart-field {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 7%;
  padding: 12% 14%;
}

.chart-field span {
  width: 13%;
  height: var(--height);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.chart-field span:nth-child(3) {
  border-color: var(--yellow);
  background: rgba(233, 243, 79, 0.15);
}

.docs-section {
  padding: var(--section-padding-block-generous) 0;
}

.docs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  align-items: end;
  gap: var(--section-gap-generous);
}

.docs-grid h2 {
  margin-bottom: var(--space-5);
}

.docs-grid p {
  max-width: 560px;
  margin-bottom: 0;
  font-size: var(--type-lede);
}

.docs-steps {
  display: grid;
  align-self: center;
  border-top: 1px solid var(--dark-line);
}

.docs-home-side {
  display: grid;
  min-width: 0;
  gap: var(--space-5);
}

.docs-home-visual {
  aspect-ratio: 1.55 / 1;
}

.docs-steps span {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--dark-line);
}

.docs-steps b {
  color: var(--yellow);
  font-family: var(--mono);
  font-size: var(--type-caption);
}

.docs-grid .button {
  width: fit-content;
  margin-top: var(--space-8);
}

.build-world-cta {
  border-bottom: 1px solid var(--dark-line);
  text-align: center;
}

.build-world-cta-inner {
  display: grid;
  max-width: 880px;
  justify-items: center;
}

.build-world-cta h2 {
  max-width: 760px;
  margin-bottom: var(--space-5);
}

.build-world-cta p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  font-size: var(--type-lede);
}

.build-world-cta .button {
  margin-top: var(--space-8);
}

.home-build-cta {
  padding: var(--section-padding-block-compact) 0;
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.home-build-cta .build-world-cta-inner {
  max-width: 940px;
}

.home-build-cta h2 {
  max-width: 900px;
  margin-bottom: 0;
}

/* Early access */

.early-access-page {
  background: var(--surface-page);
}

.early-access-hero {
  padding: var(--section-padding-block-compact) 0 var(--section-padding-block);
}

.early-access-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(500px, 1.08fr);
  align-items: start;
  gap: var(--section-gap-compact);
}

.early-access-intro {
  position: sticky;
  top: calc(var(--header-height) + var(--space-12));
  padding-top: var(--space-6);
}

.early-access-intro h1 {
  max-width: var(--measure-display);
  margin: 0 0 var(--space-6);
  font-size: var(--type-page);
  font-weight: 500;
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-display);
}

.early-access-intro .lede {
  max-width: var(--measure-copy);
}

.early-access-signal {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-status);
  background: var(--surface-raised);
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: var(--type-caption);
}

.early-access-signal i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--action-primary);
  box-shadow: 0 0 0 4px var(--surface-warm);
  animation: access-signal 1800ms ease-in-out infinite;
}

.access-world-preview {
  overflow: hidden;
  margin-top: var(--space-10);
  border: var(--border-strong);
  border-radius: var(--radius-media);
  background: var(--surface-panel);
  box-shadow: var(--shadow-panel);
}

.access-world-preview > header,
.access-world-preview > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4);
  font-family: var(--mono);
  font-size: var(--type-caption);
}

.access-world-preview > header {
  min-height: var(--visual-chrome-header);
  border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
  color: var(--text-secondary);
}

.access-world-preview > header b {
  color: var(--action-primary-strong);
}

.access-world-field {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: var(--visual-grid-unit) var(--visual-grid-unit);
}

.access-agent-node {
  position: absolute;
  top: 50%;
  left: var(--space-5);
  display: grid;
  width: 104px;
  min-height: 72px;
  align-content: center;
  gap: var(--space-1);
  padding: var(--space-3);
  border: 1px solid var(--interaction-primary);
  border-radius: var(--radius-control);
  background: var(--surface-raised);
  box-shadow: var(--shadow-panel);
  transform: translateY(-50%);
  z-index: 3;
}

.access-agent-node span,
.access-agent-node strong {
  font-family: var(--mono);
  font-size: var(--type-micro);
}

.access-agent-node span {
  color: var(--text-secondary);
}

.access-agent-node strong {
  color: var(--interaction-primary);
}

.access-agent-node i {
  position: absolute;
  top: 50%;
  right: -5px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--surface-raised);
  border-radius: 50%;
  background: var(--interaction-primary);
  transform: translateY(-50%);
}

.access-entry-rail {
  position: absolute;
  top: 50%;
  left: 124px;
  width: 132px;
  height: 2px;
  background: var(--line-strong);
}

.access-entry-rail > i {
  position: absolute;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--interaction-primary);
  animation: access-packet 2400ms linear infinite;
}

.access-entry-rail > i:nth-child(2) {
  animation-delay: -800ms;
}

.access-entry-rail > i:nth-child(3) {
  animation-delay: -1600ms;
}

.access-entry-rail > b {
  position: absolute;
  top: -4px;
  right: 0;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--line-strong);
  border-right: 2px solid var(--line-strong);
  transform: rotate(45deg);
}

.access-world-core {
  position: absolute;
  top: 50%;
  left: 54%;
  width: 176px;
  height: 176px;
  border: 1px solid var(--structure-primary);
  border-radius: 50%;
  background: var(--surface-cool);
  transform: translate(-50%, -50%);
}

.access-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.access-orbit-one {
  width: 128px;
  height: 128px;
}

.access-orbit-two {
  width: 74px;
  height: 74px;
  border-style: dashed;
}

.access-core-label {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  justify-items: center;
  transform: translate(-50%, -50%);
}

.access-core-label small,
.access-core-label em {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: var(--type-micro);
  font-style: normal;
}

.access-core-label strong {
  color: var(--structure-primary);
  font-family: var(--mono);
  font-size: var(--type-value);
  line-height: 1;
}

.access-world-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--surface-cool);
  border-radius: 50%;
  background: var(--action-primary);
  box-shadow: 0 0 0 1px var(--action-primary);
  animation: access-node-pulse 2200ms ease-in-out infinite;
}

.access-node-one { top: 17%; left: 24%; }
.access-node-two { top: 27%; right: 14%; animation-delay: -550ms; }
.access-node-three { right: 23%; bottom: 14%; animation-delay: -1100ms; }
.access-node-four { bottom: 23%; left: 12%; animation-delay: -1650ms; }

.access-event-stack {
  position: absolute;
  top: 50%;
  right: var(--space-5);
  display: grid;
  width: 146px;
  gap: var(--space-2);
  transform: translateY(-50%);
}

.access-event-stack span {
  display: grid;
  min-height: 42px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface-raised);
  box-shadow: var(--shadow-panel);
  animation: access-event 3000ms ease-in-out infinite;
}

.access-event-stack span:nth-child(2) { animation-delay: -1000ms; }
.access-event-stack span:nth-child(3) { animation-delay: -2000ms; }

.access-event-stack i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--structure-primary);
}

.access-event-stack code,
.access-event-stack b {
  font-family: var(--mono);
  font-size: var(--type-micro);
}

.access-event-stack code {
  overflow: hidden;
  color: var(--text-secondary);
  text-overflow: ellipsis;
}

.access-event-stack b {
  color: var(--structure-primary);
}

.access-world-preview > footer {
  min-height: var(--visual-chrome-footer);
  gap: var(--space-4);
  border-top: 1px solid var(--line);
  background: var(--surface-raised);
}

.access-world-preview > footer span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.access-world-preview > footer small {
  color: var(--text-muted);
  font-size: var(--type-caption);
}

.access-world-preview > footer strong {
  color: var(--text-primary);
  font-size: var(--type-caption);
}

@keyframes access-signal {
  50% { transform: scale(0.72); }
}

@keyframes access-packet {
  0% { left: 0; opacity: 0; }
  10%, 85% { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}

@keyframes access-node-pulse {
  50% { transform: scale(1.45); }
}

@keyframes access-event {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.early-access-form-panel {
  padding: var(--space-6);
  border: var(--border-strong);
  border-radius: var(--radius-panel);
  background: var(--surface-raised);
  box-shadow: var(--shadow-panel);
}

.early-access-form-panel > header {
  position: relative;
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--line);
}

.access-question-count {
  position: absolute;
  top: 0;
  right: 0;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-status);
  background: var(--surface-warm);
  color: var(--action-primary-strong);
  font-family: var(--mono);
  font-size: var(--type-caption);
}

.early-access-form-panel h2 {
  max-width: var(--measure-heading);
  margin: 0 0 var(--space-3);
  font-size: var(--type-section);
  font-weight: 500;
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-section);
}

.early-access-form-panel > header > p:last-child {
  margin: 0;
  color: var(--text-secondary);
}

.early-access-form {
  display: grid;
  gap: var(--space-4);
  padding-top: var(--space-5);
}

.early-access-form .access-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.early-access-form label:not(.form-consent),
.early-access-form fieldset {
  display: grid;
  gap: var(--space-2);
}

.early-access-form label > span,
.early-access-form legend {
  color: var(--text-primary);
  font-size: var(--type-ui);
  font-weight: 600;
}

.access-question {
  padding-left: 0;
}

.access-question-label {
  display: flex;
  width: 100%;
  align-items: baseline;
  gap: var(--space-2);
  padding: 0;
}

.early-access-form label > .access-question-label,
.early-access-form legend.access-question-label {
  color: var(--text-primary);
  font-size: var(--type-ui);
  font-weight: 600;
}

.access-question-label b {
  color: var(--action-primary-strong);
  font-family: var(--mono);
  font-size: var(--type-caption);
}

.access-question-label small {
  margin-left: auto;
  color: var(--text-muted);
  font-size: var(--type-caption);
  font-weight: 400;
}

.capability-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.capability-choice-grid label {
  position: relative;
  display: block;
  cursor: pointer;
}

.capability-choice-grid input {
  position: absolute;
  opacity: 0;
}

.capability-choice-grid span {
  display: grid;
  min-height: 48px;
  align-content: center;
  padding: var(--space-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface-page);
  transition: border-color var(--duration-fast) ease, background var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.capability-choice-grid label:hover span {
  transform: translateY(-2px);
}

.capability-choice-grid strong {
  color: var(--text-primary);
  font-size: var(--type-ui);
  line-height: var(--leading-heading);
}

.capability-choice-grid small {
  color: var(--text-muted);
  font-size: var(--type-caption);
  font-weight: 400;
  line-height: var(--leading-body);
}

.capability-choice-grid input:checked + span {
  border-color: var(--structure-primary);
  background: var(--surface-cool);
  box-shadow: inset 3px 0 0 var(--structure-primary);
}

.capability-choice-grid input:focus-visible + span {
  outline: 2px solid var(--interaction-primary);
  outline-offset: var(--space-half);
}

.early-access-form input[type="text"],
.early-access-form input[type="email"],
.early-access-form select,
.early-access-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface-page);
  color: var(--text-primary);
  font: inherit;
}

.early-access-form input[type="text"],
.early-access-form input[type="email"],
.early-access-form select {
  min-height: 48px;
  padding: 0 var(--space-4);
}

.early-access-form textarea {
  min-height: 72px;
  padding: var(--space-3);
  line-height: var(--leading-body);
  resize: vertical;
}

.early-access-form input:focus-visible,
.early-access-form select:focus-visible,
.early-access-form textarea:focus-visible {
  border-color: var(--interaction-primary);
  outline: 2px solid var(--interaction-primary);
  outline-offset: var(--space-half);
}

.early-access-form fieldset {
  padding: 0;
  border: 0;
}

.choice-control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.choice-control-grid label {
  position: relative;
  display: block;
  cursor: pointer;
}

.choice-control-grid input {
  position: absolute;
  opacity: 0;
}

.choice-control-grid span {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface-page);
  text-align: center;
}

.choice-control-grid input:checked + span {
  border-color: var(--structure-primary);
  background: var(--surface-cool);
  color: var(--structure-primary);
}

.choice-control-grid input:focus-visible + span {
  outline: 2px solid var(--interaction-primary);
  outline-offset: var(--space-half);
}

.form-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: var(--space-3);
  color: var(--text-secondary);
  cursor: pointer;
}

.form-consent input {
  width: 18px;
  height: 18px;
  margin-top: var(--space-optical);
  accent-color: var(--action-primary);
}

.form-submit-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--space-5);
  padding-top: var(--space-2);
}

.form-submit-row p,
.form-status {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--type-caption);
  line-height: var(--leading-body);
}

.form-status:empty {
  display: none;
}

.form-status:not(:empty) {
  padding: var(--space-4);
  border-left: 3px solid var(--structure-primary);
  background: var(--surface-cool);
  color: var(--text-primary);
}

.lab-build-cta {
  padding: var(--section-padding-block-compact) 0;
  border-color: var(--line);
  background: var(--surface-page);
  color: var(--text-primary);
}

.lab-build-cta .eyebrow {
  color: var(--action-primary-strong);
}

.lab-build-cta p:not(.eyebrow) {
  color: var(--text-secondary);
}

.site-footer {
  display: grid;
  min-height: 116px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-8);
  padding: 0 var(--page-gutter);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.site-footer p {
  margin: 0;
  font-size: var(--type-meta);
}

.site-footer > span {
  justify-self: end;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-caption);
}

/* Platform page */

.desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.platform-hero {
  min-height: min(800px, calc(100svh - 72px));
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.platform-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(440px, 1.06fr);
  align-items: center;
  gap: var(--section-gap-generous);
}

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

.platform-hero-copy .lede {
  max-width: 590px;
  margin-bottom: var(--space-8);
  font-size: var(--type-lede);
}

.platform-stack-visual {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-media);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--paper-strong);
  background-size: 28px 28px;
  box-shadow: var(--shadow-panel);
}

.stack-visual-header,
.stack-visual-footer {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 2;
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4);
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-micro);
  font-weight: 600;
}

.stack-visual-header {
  top: 0;
  border-bottom: 1px solid var(--line);
}

.stack-visual-footer {
  bottom: 0;
  border-top: 1px solid var(--line);
}

.stack-layers {
  position: absolute;
  inset: 66px 9% 60px;
  display: grid;
  align-content: center;
  gap: var(--space-2-5);
}

.stack-layers > div {
  position: relative;
  display: grid;
  min-height: 75px;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-5);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.72);
}

.stack-layers > div:nth-child(2) {
  margin-right: 5%;
  margin-left: 5%;
}

.stack-layers > div:nth-child(3) {
  margin-right: 10%;
  margin-left: 10%;
}

.stack-layers > div:nth-child(4) {
  margin-right: 15%;
  margin-left: 15%;
  border-color: var(--forest);
}

.stack-layers span {
  color: var(--coral-dark);
  font-family: var(--mono);
  font-size: var(--type-caption);
}

.stack-layers strong {
  font-size: var(--type-body);
}

.stack-layers i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: var(--space-1-5);
  border-radius: 50%;
  background: var(--forest);
}

.primitive-index {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.primitive-index .section-shell {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.usecases-index .section-shell {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.primitive-index a {
  display: flex;
  min-height: 86px;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-6);
  border-left: 1px solid var(--line);
  font-size: var(--type-ui);
  font-weight: 600;
}

.primitive-index a:last-child {
  border-right: 1px solid var(--line);
}

.primitive-index a:hover {
  background: var(--paper-strong);
}

.primitive-index span {
  color: var(--coral-dark);
  font-family: var(--mono);
  font-size: var(--type-caption);
}

.platform-system {
  min-height: min(720px, calc(100svh - 72px));
  display: grid;
  align-items: center;
  padding: var(--section-padding-block) 0;
  border-bottom: 1px solid var(--line);
}

.platform-system-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: var(--section-gap-generous);
}

.platform-system-grid-reverse .system-copy {
  grid-column: 2;
}

.platform-system-grid-reverse .system-visual {
  grid-row: 1;
  grid-column: 1;
}

.system-copy > p:not(.eyebrow) {
  max-width: 570px;
  margin-bottom: var(--space-8);
  font-size: var(--type-lede);
}

.system-facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.system-facts div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--space-5);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
}

.system-facts dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-caption);
  text-transform: uppercase;
}

.system-facts dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--type-meta);
}

.system-visual {
  aspect-ratio: 1.3 / 1;
}

.runtime-field {
  display: grid;
  place-items: center;
}

.runtime-node {
  position: absolute;
  width: 22%;
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper-strong);
}

.runtime-node-a {
  top: 18%;
  left: 16%;
}

.runtime-node-b {
  top: 18%;
  right: 16%;
}

.runtime-node-c {
  right: 39%;
  bottom: 12%;
  border-color: var(--forest);
}

.runtime-edge {
  position: absolute;
  top: 46%;
  width: 30%;
  height: 1px;
  background: var(--line-strong);
}

.runtime-edge-a {
  left: 28%;
  transform: rotate(17deg);
}

.runtime-edge-b {
  right: 28%;
  transform: rotate(-17deg);
}

.platform-population-section {
  background: var(--surface-cool);
}

.population-field span {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--size);
  height: var(--size);
  border: 2px solid var(--surface-raised);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.population-field span:nth-child(even) {
  background: var(--coral);
}

.population-field i {
  position: absolute;
  inset: 22% 24%;
  border: 1px solid var(--line-strong);
}

.platform-timeline-field {
  display: grid;
  align-items: center;
}

.platform-timeline {
  position: absolute;
  right: 8%;
  left: 8%;
  height: 1px;
  background: var(--line-strong);
}

.platform-timeline-field i {
  position: absolute;
  left: var(--position);
  width: 12px;
  height: 12px;
  border: 3px solid var(--paper-strong);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 1px var(--coral);
}

.platform-timeline-field .timeline-now {
  width: 20px;
  height: 20px;
  border: 5px solid var(--forest-soft);
  background: var(--forest);
  box-shadow: 0 0 0 1px var(--forest), 0 0 0 9px rgba(23, 92, 77, 0.1);
}

.experiment-trunk,
.experiment-branch {
  position: absolute;
  height: 1px;
  background: var(--line-strong);
  transform-origin: left center;
}

.experiment-trunk {
  top: 50%;
  left: 12%;
  width: 36%;
}

.experiment-branch {
  top: 50%;
  left: 48%;
  width: 35%;
}

.branch-a {
  transform: rotate(-22deg);
}

.branch-b {
  transform: rotate(22deg);
}

.experiment-result {
  position: absolute;
  right: 13%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.result-a {
  top: 27%;
  background: var(--blue);
}

.result-b {
  bottom: 27%;
  background: var(--coral);
}

.platform-compose {
  padding: var(--section-padding-block-generous) 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.platform-compose-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  align-items: center;
  gap: var(--section-gap-generous);
}

.platform-compose-grid p:not(.eyebrow) {
  max-width: 530px;
  margin-bottom: var(--space-8);
  font-size: var(--type-lede);
}

.platform-code {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-media);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--surface-raised);
  background-size: var(--visual-grid-unit) var(--visual-grid-unit);
  color: var(--text-primary);
  box-shadow: var(--shadow-panel);
}

.platform-code > div {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-3-5);
  border-bottom: 1px solid var(--line);
}

.platform-code > div span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.platform-code > div span:nth-child(2) {
  background: var(--yellow);
}

.platform-code > div span:nth-child(3) {
  background: var(--mint);
}

.platform-code small {
  margin-left: auto;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: var(--type-caption);
}

.platform-code pre {
  margin: 0;
  padding: var(--space-8);
  overflow-x: auto;
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: var(--type-meta);
  line-height: 1.8;
}

.platform-cta {
  padding: var(--section-padding-block-generous) 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface-page);
  color: var(--text-primary);
}

.platform-cta .eyebrow {
  color: var(--action-primary-strong);
}

.platform-cta p {
  color: var(--text-secondary);
}

.platform-cta .docs-grid {
  row-gap: var(--space-8);
}

.platform-cta .docs-steps,
.platform-cta .docs-steps span {
  border-color: var(--line);
}

.platform-cta .docs-steps b {
  color: var(--action-primary-strong);
}

/* Worlds page */

.worlds-hero {
  min-height: min(800px, calc(100svh - 72px));
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.worlds-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(440px, 1.06fr);
  align-items: center;
  gap: var(--section-gap-generous);
}

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

.worlds-hero-copy .lede {
  max-width: 590px;
  margin-bottom: var(--space-8);
  font-size: var(--type-lede);
}

.world-path-visual {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-media);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--paper-strong);
  background-size: 28px 28px;
  box-shadow: var(--shadow-panel);
}

.world-paths {
  position: absolute;
  inset: 66px 8% 60px;
  display: grid;
  align-content: center;
  gap: var(--space-2-5);
}

.world-path {
  display: grid;
  min-height: 92px;
  grid-template-columns: 34px minmax(0, 1fr) 22px;
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  column-gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.78);
}

.world-path > span {
  grid-row: 1 / 3;
  color: var(--coral-dark);
  font-family: var(--mono);
  font-size: var(--type-caption);
}

.world-path strong {
  font-size: var(--type-body-emphasis);
}

.world-path small {
  grid-column: 2;
  color: var(--muted);
  font-size: var(--type-meta);
}

.world-path svg {
  grid-row: 1 / 3;
  grid-column: 3;
  width: 18px;
  height: 18px;
}

.world-path-active {
  border-color: var(--forest);
  background: var(--surface-raised);
  color: var(--text-primary);
  box-shadow: inset 4px 0 0 var(--structure-primary);
}

.world-path-active > span {
  color: var(--action-primary-strong);
}

.world-path-active small {
  color: var(--text-muted);
}

.worlds-index .section-shell {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-visual {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-media);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--paper-strong);
  background-size: 28px 28px;
  box-shadow: var(--shadow-panel);
}

.catalog-visual-header {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-micro);
  font-weight: 600;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2-5);
  padding: var(--space-4);
}

.catalog-grid article {
  display: grid;
  min-height: 120px;
  align-content: center;
  gap: var(--space-1-5);
  padding: var(--space-4);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.catalog-grid article:first-child {
  border-color: var(--forest);
  box-shadow: inset 3px 0 0 var(--forest);
}

.catalog-grid article > span {
  color: var(--coral-dark);
  font-family: var(--mono);
  font-size: var(--type-micro);
  font-weight: 600;
}

.catalog-grid article strong {
  font-size: var(--type-body-emphasis);
}

.catalog-grid article small {
  color: var(--muted);
  font-size: var(--type-caption);
  line-height: 1.45;
}

.system-copy .world-truth {
  margin: var(--space-6) 0 0;
  padding-left: var(--space-4);
  border-left: 2px solid var(--coral);
  font-size: var(--type-meta);
}

.internal-world-visual {
  box-shadow: var(--shadow-panel);
}

.internal-pipeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  padding: 8%;
}

.internal-pipeline div {
  display: grid;
  min-height: 108px;
  align-content: center;
  gap: var(--space-2);
  padding: var(--space-3-5);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.78);
}

.internal-pipeline div:last-of-type {
  border-color: var(--forest);
  box-shadow: inset 0 -3px 0 var(--forest);
}

.internal-pipeline span {
  color: var(--coral-dark);
  font-family: var(--mono);
  font-size: var(--type-micro);
  font-weight: 600;
}

.internal-pipeline strong {
  font-size: var(--type-ui);
}

.internal-pipeline svg {
  width: 17px;
  color: var(--muted);
}

.worlds-scratch-section {
  background: var(--surface-warm);
}

.world-contract {
  padding: var(--section-padding-block-generous) 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.world-contract-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.world-contract-grid article {
  min-height: 156px;
  padding: var(--space-6);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.world-contract-grid article > span {
  display: block;
  margin-bottom: var(--space-6);
  color: var(--coral-dark);
  font-family: var(--mono);
  font-size: var(--type-caption);
}

.world-contract-grid h3 {
  font-size: var(--type-subtitle);
}

.world-contract-grid p {
  margin: 0;
  font-size: var(--type-meta);
}

.worlds-cta {
  padding: var(--section-padding-block-generous) 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface-page);
  color: var(--text-primary);
}

.worlds-cta .eyebrow {
  color: var(--action-primary-strong);
}

.worlds-cta p {
  color: var(--text-secondary);
}

.worlds-cta .docs-steps,
.worlds-cta .docs-steps span {
  border-color: var(--line);
}

.worlds-cta .docs-steps b {
  color: var(--action-primary-strong);
}

.worlds-cta .docs-grid,
.usecases-cta .docs-grid {
  row-gap: var(--space-8);
}

/* Use Cases page */

.usecases-hero {
  min-height: min(800px, calc(100svh - 72px));
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.usecases-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(440px, 1.06fr);
  align-items: center;
  gap: var(--section-gap-generous);
}

.usecases-hero-copy h1 {
  max-width: 640px;
}

.usecases-hero-copy .lede {
  max-width: 590px;
  margin-bottom: var(--space-8);
  font-size: var(--type-lede);
}

.usecase-run-visual {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-media);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--paper-strong);
  background-size: 28px 28px;
  box-shadow: var(--shadow-panel);
}

.usecase-run-grid {
  position: absolute;
  inset: 66px 8% 60px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: var(--space-2-5);
}

.usecase-run-grid > div {
  display: grid;
  min-height: 130px;
  align-content: center;
  gap: var(--space-1-5);
  padding: var(--space-5);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.78);
}

.usecase-run-grid span,
.training-node span,
.regression-field span,
.comparison-field span {
  color: var(--coral-dark);
  font-family: var(--mono);
  font-size: var(--type-micro);
  font-weight: 600;
}

.usecase-run-grid strong {
  font-size: var(--type-body-emphasis);
}

.usecase-run-grid small {
  color: var(--muted);
  font-size: var(--type-caption);
}

.usecase-run-grid .run-score {
  border-color: var(--forest);
  background: var(--surface-raised);
  color: var(--text-primary);
  box-shadow: inset 0 -4px 0 var(--structure-primary);
}

.usecase-run-grid .run-score span {
  color: var(--action-primary-strong);
}

.usecase-run-grid .run-score small {
  color: var(--text-muted);
}

.training-loop {
  position: absolute;
}

.training-node {
  position: absolute;
  display: grid;
  width: 31%;
  min-height: 92px;
  align-content: center;
  gap: var(--space-1-5);
  padding: var(--space-4);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.82);
}

.training-node strong {
  font-size: var(--type-ui);
}

.training-state {
  top: 15%;
  left: 10%;
}

.training-agent {
  top: 15%;
  right: 10%;
  border-color: var(--forest);
}

.training-users {
  right: 10%;
  bottom: 15%;
}

.training-reward {
  bottom: 15%;
  left: 10%;
}

.training-edge {
  position: absolute;
  width: 19px;
  height: 19px;
  color: var(--muted);
}

.edge-one {
  top: 26%;
  left: 48%;
}

.edge-two {
  top: 48%;
  right: 24%;
}

.edge-three {
  bottom: 25%;
  left: 48%;
}

.specialization-field {
  position: absolute;
}

.specialization-visual {
  min-height: 480px;
  aspect-ratio: 1.18 / 1;
}

.specialization-field::before {
  position: absolute;
  top: 35%;
  right: 12%;
  left: 12%;
  border-top: 1px solid rgba(40, 126, 103, 0.42);
  content: "";
}

.specialization-model,
.specialization-environment {
  position: absolute;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: var(--space-1-5);
  min-height: 112px;
  padding: var(--space-4);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.92);
}

.specialization-model {
  top: 16%;
  width: 25%;
}

.specialization-teacher {
  left: 6%;
}

.specialization-student {
  right: 6%;
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(40, 126, 103, 0.08);
}

.specialization-environment {
  top: 10%;
  left: 37%;
  width: 26%;
  min-height: 158px;
  border-color: var(--coral-dark);
  background: var(--paper-strong);
}

.specialization-model span,
.specialization-environment span,
.specialization-scores span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-micro);
  font-weight: 600;
}

.specialization-model strong,
.specialization-environment strong {
  font-size: var(--type-ui);
}

.specialization-model small,
.specialization-environment small {
  color: var(--muted);
  font-size: var(--type-caption);
}

.specialization-model small b {
  color: var(--forest);
  font-family: var(--mono);
}

.specialization-flow i {
  position: absolute;
  z-index: 3;
  top: calc(35% - 4px);
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--forest);
  border-right: 1px solid var(--forest);
  transform: rotate(45deg);
}

.specialization-flow i:first-child {
  left: 34%;
}

.specialization-flow i:last-child {
  right: 9%;
}

.specialization-scores {
  position: absolute;
  right: 6%;
  bottom: 9%;
  left: 6%;
  display: grid;
  gap: var(--space-2-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.specialization-scores > div {
  display: grid;
  grid-template-columns: 108px 1fr 24px;
  align-items: center;
  gap: var(--space-2-5);
}

.specialization-scores i {
  height: 7px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(19, 35, 31, 0.06);
}

.specialization-scores i b {
  display: block;
  width: var(--score);
  height: 100%;
  background: var(--forest);
}

.specialization-scores > div:first-child i b {
  background: var(--coral);
}

.specialization-scores > div > strong {
  font: 700 var(--type-caption) var(--mono);
  text-align: right;
}

.horizon-field {
  position: absolute;
}

.horizon-line {
  position: absolute;
  top: 49%;
  right: 8%;
  left: 8%;
  height: 1px;
  background: var(--line-strong);
}

.horizon-field article {
  position: absolute;
  top: 49%;
  left: var(--x);
  display: grid;
  gap: var(--space-1-5);
  width: 110px;
  transform: translate(-50%, -6px);
}

.horizon-field article:nth-of-type(odd) {
  transform: translate(-50%, -100%);
  padding-bottom: var(--space-4);
}

.horizon-field article:nth-of-type(even) {
  padding-top: var(--space-6);
}

.horizon-field article i {
  position: absolute;
  top: 0;
  left: 50%;
  width: 12px;
  height: 12px;
  border: 3px solid var(--surface-raised);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 1px var(--coral);
  transform: translate(-50%, -50%);
}

.horizon-field article:nth-of-type(odd) i {
  top: 100%;
}

.horizon-field article:last-of-type i {
  background: var(--structure-primary);
  box-shadow: 0 0 0 1px var(--structure-primary), 0 0 0 7px rgba(23, 92, 77, 0.1);
}

.horizon-field article span {
  color: var(--action-primary-strong);
  font-family: var(--mono);
  font-size: var(--type-micro);
  font-weight: 600;
  text-align: center;
}

.horizon-field article strong {
  color: var(--text-secondary);
  font-size: var(--type-caption);
  text-align: center;
}

.regression-field,
.comparison-field {
  position: absolute;
}

.regression-start,
.comparison-start {
  position: absolute;
  top: 50%;
  left: 8%;
  display: grid;
  width: 28%;
  min-height: 88px;
  align-content: center;
  gap: var(--space-1-5);
  padding: var(--space-3-5);
  border: 1px solid var(--forest);
  background: rgba(255, 255, 255, 0.82);
  transform: translateY(-50%);
}

.regression-start strong,
.comparison-start strong {
  font-size: var(--type-ui);
}

.regression-trunk,
.comparison-line {
  position: absolute;
  top: 50%;
  left: 36%;
  width: 12%;
  height: 1px;
  background: var(--line-strong);
}

.regression-trunk::before,
.comparison-line::before {
  position: absolute;
  top: -72px;
  right: 0;
  width: 1px;
  height: 144px;
  background: var(--line-strong);
  content: "";
}

.regression-lane,
.comparison-field article {
  position: absolute;
  right: 8%;
  display: grid;
  width: 43%;
  min-height: 104px;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: var(--space-1-5) var(--space-3);
  padding: var(--space-4) var(--space-4);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.82);
}

.regression-lane::before,
.comparison-field article::before {
  position: absolute;
  top: 50%;
  right: 100%;
  width: 17%;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.lane-fail,
.comparison-a {
  top: 16%;
}

.lane-pass,
.comparison-b {
  bottom: 16%;
}

.regression-lane strong,
.comparison-field article strong {
  grid-column: 1;
  font-size: var(--type-ui);
}

.regression-lane b,
.comparison-field article b {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  color: var(--coral-dark);
  font-family: var(--mono);
  font-size: var(--type-caption);
}

.lane-pass {
  border-color: var(--forest);
}

.lane-pass b {
  color: var(--forest);
}

.comparison-field article b {
  font-size: var(--type-panel);
  font-weight: 500;
}

.comparison-field article.comparison-a {
  border-color: var(--blue);
}

.comparison-field article.comparison-a b {
  color: var(--blue);
}

.comparison-field article.comparison-b {
  border-color: var(--forest);
}

.comparison-field article.comparison-b b {
  color: var(--forest);
}

.usecase-score {
  padding: var(--section-padding-block-generous) 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.solutions-long-horizon {
  background: var(--surface-cool);
}

.solutions-replica-section {
  background: var(--surface-warm);
}

.replica-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-2);
  padding: 9% 6%;
}

.replica-field > svg {
  width: 18px;
  color: var(--text-muted);
  justify-self: center;
}

.replica-node,
.replica-scenarios {
  display: grid;
  min-width: 0;
  min-height: 128px;
  align-content: center;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.78);
}

.replica-world {
  border-color: var(--structure-primary);
  box-shadow: inset 0 -3px 0 var(--structure-primary);
}

.replica-node span,
.replica-scenarios span {
  color: var(--action-primary-strong);
  font-family: var(--mono);
  font-size: var(--type-micro);
  font-weight: 600;
}

.replica-node strong {
  color: var(--text-primary);
  font-size: var(--type-ui);
}

.replica-node small,
.replica-scenarios small {
  color: var(--text-muted);
  font-size: var(--type-caption);
}

.replica-scenarios small {
  padding-top: var(--space-1);
  border-top: 1px solid var(--line);
}

.usecases-cta {
  padding: var(--section-padding-block-generous) 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface-page);
  color: var(--text-primary);
}

.usecases-cta .eyebrow {
  color: var(--action-primary-strong);
}

.usecases-cta p {
  color: var(--text-secondary);
}

.usecases-cta .docs-steps,
.usecases-cta .docs-steps span {
  border-color: var(--line);
}

.usecases-cta .docs-steps b {
  color: var(--action-primary-strong);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1200px) {
  .specialization-visual {
    min-height: 640px;
    aspect-ratio: auto;
  }

  .specialization-field::before,
  .specialization-flow {
    display: none;
  }

  .specialization-model,
  .specialization-environment {
    right: 7%;
    left: 7%;
    width: auto;
  }

  .specialization-teacher {
    top: 5%;
    min-height: 82px;
  }

  .specialization-environment {
    top: 24%;
    min-height: 132px;
  }

  .specialization-student {
    top: 52%;
    min-height: 82px;
  }

  .specialization-scores {
    right: 7%;
    bottom: 4%;
    left: 7%;
  }
}

@media (min-width: 821px) and (max-height: 900px) {
  .early-access-hero {
    padding-top: var(--space-5);
  }

  .early-access-form-panel {
    padding: var(--space-5) var(--space-6);
  }

  .early-access-form-panel > header {
    padding-bottom: var(--space-4);
  }

  .early-access-form {
    gap: var(--space-3);
    padding-top: var(--space-4);
  }

  .early-access-form textarea {
    min-height: 64px;
    padding: var(--space-2) var(--space-3);
  }

  .capability-choice-grid span {
    min-height: 44px;
  }

  .form-submit-row {
    padding-top: 0;
  }
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero {
    padding: var(--space-18) 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-14);
  }

  .section-grid {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.82fr);
    gap: var(--space-12);
  }

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

  .world-demo-row {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .world-demo-copy {
    max-width: 560px;
    padding-top: 0;
  }

  .wide-intro {
    grid-template-columns: 0.4fr 1fr;
  }

  .wide-intro p:last-child {
    grid-column: 2;
  }

  .platform-hero-grid,
  .platform-system-grid,
  .platform-compose-grid,
  .worlds-hero-grid,
  .usecases-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.85fr);
    gap: var(--space-12);
  }

  .platform-stack-visual,
  .world-path-visual,
  .usecase-run-visual {
    min-height: 440px;
  }
}

@media (max-width: 820px) {
  h1 {
    font-size: var(--type-page);
  }

  h2 {
    font-size: var(--type-section);
  }

  .hero,
  .content-band {
    min-height: 0;
  }

  .hero {
    padding: var(--space-20) 0;
  }

  .hero-grid,
  .section-grid,
  .section-grid-reverse,
  .use-cases-grid,
  .docs-grid,
  .platform-hero-grid,
  .platform-system-grid,
  .platform-compose-grid,
  .worlds-hero-grid,
  .usecases-hero-grid {
    grid-template-columns: 1fr;
  }

  .section-grid-reverse .section-copy,
  .section-grid-reverse .visual-reserve,
  .section-grid-reverse > .actor-population-lab,
  .section-grid-reverse > .actor-world-lab,
  .section-grid-reverse > .history-evolution-lab,
  .section-grid-reverse > .history-strata-lab,
  .section-grid-reverse > .time-world-lab {
    grid-row: auto;
    grid-column: auto;
  }

  .hero-copy,
  .section-copy {
    max-width: 680px;
  }

  .visual-reserve {
    max-width: 680px;
    aspect-ratio: 1.45 / 1;
  }

  .section-copy {
    margin-bottom: var(--space-4);
  }

  .wide-intro {
    display: block;
    max-width: 680px;
  }

  .wide-intro .eyebrow,
  .wide-intro h2 {
    margin-bottom: var(--space-5);
  }

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

  .choice-item + .choice-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .choice-item > span {
    margin-bottom: var(--space-6);
  }

  .use-cases-grid {
    gap: var(--space-12);
  }

  .docs-grid .button {
    grid-column: 1;
  }

  .platform-hero,
  .worlds-hero,
  .usecases-hero {
    min-height: 0;
    padding: var(--space-20) 0;
  }

  .platform-hero-copy,
  .worlds-hero-copy,
  .usecases-hero-copy {
    max-width: 680px;
  }

  .platform-stack-visual,
  .world-path-visual,
  .usecase-run-visual {
    min-height: 460px;
  }

  .primitive-index .section-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .primitive-index a {
    min-height: 72px;
    border-bottom: 1px solid var(--line);
  }

  .platform-system {
    min-height: 0;
    padding: var(--space-18) 0;
  }

  .platform-system-grid-reverse .system-copy,
  .platform-system-grid-reverse .system-visual {
    grid-row: auto;
    grid-column: auto;
  }

  .platform-system-grid-reverse .system-copy {
    order: 1;
  }

  .platform-system-grid-reverse .system-visual {
    order: 2;
  }

  .system-copy {
    max-width: 680px;
  }

  .platform-compose {
    padding: var(--space-20) 0;
  }

  .worlds-index .section-shell {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 560px) {
  html {
    scroll-padding-top: var(--space-16);
  }

  .site-header {
    min-height: 64px;
  }

  .mobile-nav {
    top: 64px;
  }

  .hero {
    padding: var(--space-12) 0 var(--space-10);
  }

  .platform-hero,
  .worlds-hero,
  .usecases-hero {
    padding: var(--space-10) 0 var(--space-8);
  }

  .platform-hero-grid,
  .worlds-hero-grid,
  .usecases-hero-grid {
    gap: var(--space-8);
  }

  .specialization-scores > div {
    grid-template-columns: 94px 1fr 22px;
  }

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

  .visual-reserve,
  .visual-reserve-hero {
    aspect-ratio: 1.35 / 1;
  }

  .content-band {
    padding: var(--space-16) 0;
  }

  .world-demo-section {
    padding: var(--space-18) 0 var(--space-20);
  }

  .world-demo-intro {
    margin-bottom: var(--space-12);
  }

  .world-demo-row {
    gap: var(--space-6);
    padding: var(--space-14) 0;
  }

  .worlds-section,
  .use-cases-section {
    padding: var(--space-18) 0;
  }

  .choice-item {
    padding: var(--space-6) var(--space-2);
  }

  .wide-visual-reserve {
    height: 180px;
    padding: var(--space-5);
  }

  .use-case-list article {
    min-height: 0;
    grid-template-columns: 38px 1fr;
    gap: var(--space-3);
    padding: var(--space-5) 0;
  }

  .use-case-list article p {
    grid-column: 2;
  }

  .docs-grid {
    gap: var(--space-10);
  }

  .docs-steps {
    min-width: 0;
  }

  .site-footer {
    min-height: 170px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: var(--space-3);
  }

  .site-footer > span {
    justify-self: start;
  }

  .platform-stack-visual {
    min-height: 270px;
  }

  .stack-layers {
    inset: 48px 4% 45px;
    gap: var(--space-1-5);
  }

  .stack-layers > div {
    min-height: 38px;
    grid-template-columns: 30px 1fr;
    padding: 0 var(--space-3);
  }

  .stack-layers strong {
    font-size: var(--type-ui);
  }

  .stack-layers > div:nth-child(2),
  .stack-layers > div:nth-child(3),
  .stack-layers > div:nth-child(4) {
    margin-right: 0;
    margin-left: 0;
  }

  .stack-layers i {
    display: none;
  }

  .primitive-index .section-shell {
    grid-template-columns: 1fr;
  }

  .primitive-index a {
    min-height: 58px;
    border-right: 1px solid var(--line);
  }

  .worlds-index .section-shell {
    grid-template-columns: 1fr;
  }

  .world-path-visual {
    min-height: 370px;
  }

  .world-paths {
    inset: 56px 5% 50px;
    gap: var(--space-2);
  }

  .world-path {
    min-height: 78px;
    padding: var(--space-3) var(--space-3-5);
  }

  .catalog-visual {
    min-height: 485px;
  }

  .catalog-grid {
    gap: var(--space-2);
    padding: var(--space-2-5);
  }

  .catalog-grid article {
    min-height: 133px;
    padding: var(--space-3-5);
  }

  .internal-world-visual {
    min-height: 440px;
    aspect-ratio: auto;
  }

  .internal-pipeline {
    grid-template-columns: 1fr;
    grid-template-rows: auto 18px auto 18px auto;
    gap: var(--space-1-5);
    justify-items: center;
    padding: 6%;
  }

  .internal-pipeline div {
    width: min(220px, 90%);
    min-height: 70px;
  }

  .internal-pipeline svg {
    transform: rotate(90deg);
  }

  .world-contract-grid {
    grid-template-columns: 1fr;
  }

  .usecase-run-visual {
    min-height: 465px;
  }

  .usecase-run-grid {
    inset: 55px 5% 50px;
    gap: var(--space-2);
  }

  .usecase-run-grid > div {
    min-height: 160px;
    padding: var(--space-3-5);
  }

  .usecase-run-grid strong {
    font-size: var(--type-ui);
  }

  .training-node {
    width: 38%;
    min-height: 82px;
    padding: var(--space-3);
  }

  .training-state,
  .training-reward {
    left: 5%;
  }

  .training-agent,
  .training-users {
    right: 5%;
  }

  .edge-one,
  .edge-three {
    left: 47%;
  }

  .horizon-line {
    top: 16%;
    bottom: 16%;
    left: 20%;
    width: 1px;
    height: auto;
  }

  .horizon-field article {
    top: var(--y);
    left: 20%;
    width: 180px;
    grid-template-columns: 70px 1fr;
    align-items: center;
    transform: translate(0, -50%);
  }

  .horizon-field article:nth-of-type(1) {
    --y: 15%;
  }

  .horizon-field article:nth-of-type(2) {
    --y: 38%;
  }

  .horizon-field article:nth-of-type(3) {
    --y: 62%;
  }

  .horizon-field article:nth-of-type(4) {
    --y: 85%;
  }

  .horizon-field article:nth-of-type(odd),
  .horizon-field article:nth-of-type(even) {
    padding: 0 0 0 var(--space-6);
    transform: translate(0, -50%);
  }

  .horizon-field article i,
  .horizon-field article:nth-of-type(odd) i {
    top: 50%;
    left: 0;
  }

  .horizon-field article span,
  .horizon-field article strong {
    text-align: left;
  }

  .regression-start,
  .comparison-start {
    top: 8%;
    left: 10%;
    width: 80%;
    transform: none;
  }

  .regression-visual,
  .comparison-visual {
    min-height: 520px;
    aspect-ratio: auto;
  }

  .regression-trunk,
  .comparison-line {
    top: 31%;
    left: 50%;
    width: 1px;
    height: 13%;
  }

  .regression-trunk::before,
  .comparison-line::before {
    top: 100%;
    right: auto;
    left: -38vw;
    width: 76vw;
    max-width: 290px;
    height: 1px;
  }

  .regression-lane,
  .comparison-field article {
    right: 5%;
    left: 5%;
    width: auto;
  }

  .regression-lane::before,
  .comparison-field article::before {
    display: none;
  }

  .lane-fail,
  .comparison-a {
    top: 43%;
  }

  .lane-pass,
  .comparison-b {
    bottom: 7%;
  }

  .system-facts div {
    grid-template-columns: 90px 1fr;
  }

  .system-visual {
    aspect-ratio: 1.2 / 1;
  }

  .platform-code pre {
    padding: var(--space-5);
    font-size: var(--type-caption);
  }
}

/* Documentation */

.docs-home-page,
.docs-detail-page {
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
}

.docs-home-page .site-header,
.docs-detail-page .site-header {
  background: rgba(247, 247, 242, 0.96);
}

.docs-hero {
  padding: var(--space-20) 0 var(--space-18);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 242, 0.9);
}

.docs-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(560px, 1.18fr);
  align-items: center;
  gap: var(--space-16);
}

.docs-hero-copy h1 {
  max-width: 620px;
  margin-bottom: var(--space-6);
  font-size: var(--type-page);
  line-height: var(--leading-display);
}

.docs-hero-copy .lede {
  max-width: 570px;
  margin-bottom: var(--space-8);
  font-size: var(--type-lede);
}

.docs-hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6);
}

.docs-system-map {
  overflow: hidden;
  min-height: 520px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-panel);
  background: var(--white);
  box-shadow: var(--shadow-panel);
}

.docs-map-header,
.docs-map-footer {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4);
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-label);
  letter-spacing: 0;
}

.docs-map-header {
  border-bottom: 1px solid var(--line);
}

.docs-map-footer {
  border-top: 1px solid var(--line);
}

.docs-map-body {
  display: grid;
  min-height: 430px;
  grid-template-rows: auto 28px 1fr 28px auto;
  padding: var(--space-5) var(--space-6);
  background:
    radial-gradient(circle at 50% 50%, rgba(184, 234, 212, 0.22), transparent 48%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: auto, 20px 20px, 20px 20px;
}

.docs-map-source {
  display: grid;
  width: min(360px, 72%);
  min-height: 66px;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  justify-self: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3-5);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--paper);
}

.docs-map-source > span,
.docs-map-node > span,
.docs-map-output > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-label);
}

.docs-map-source strong,
.docs-map-node strong,
.docs-map-output strong {
  display: block;
  font-size: var(--type-ui);
  line-height: 1.2;
}

.docs-map-source small,
.docs-map-node small,
.docs-map-output small {
  display: block;
  margin-top: var(--space-half);
  color: var(--muted);
  font-size: var(--type-caption);
}

.docs-map-source svg {
  width: 18px;
  color: var(--blue);
}

.docs-map-arrow {
  position: relative;
  width: 1px;
  height: 28px;
  justify-self: center;
  background: var(--line-strong);
}

.docs-map-arrow::after {
  position: absolute;
  bottom: -1px;
  left: -3px;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  content: "";
  transform: rotate(45deg);
}

.docs-map-world {
  display: grid;
  min-height: 190px;
  grid-template-rows: 44px 1fr;
  padding: 0 var(--space-4) var(--space-4);
  border: 2px solid var(--forest);
  border-radius: var(--radius-panel);
  background: rgba(224, 237, 229, 0.78);
}

.docs-map-world-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--forest);
  font-family: var(--mono);
  font-size: var(--type-label);
  font-weight: 600;
}

.docs-map-world-header i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(41, 200, 138, 0.15);
}

.docs-map-world-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

.docs-map-node {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-3);
  border: 1px solid rgba(23, 92, 77, 0.25);
  border-radius: var(--radius-control);
  background: var(--white);
}

.docs-map-node:nth-child(2) {
  border-color: rgba(238, 100, 74, 0.38);
}

.docs-map-node:nth-child(3) {
  border-color: rgba(37, 109, 211, 0.35);
}

.docs-map-outputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

.docs-map-output {
  min-width: 0;
  padding: var(--space-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--paper);
}

.docs-directory {
  padding: var(--space-22) 0 var(--space-24);
  background: rgba(247, 247, 242, 0.94);
}

.docs-directory-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 1.2fr);
  align-items: end;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.docs-directory-heading h2 {
  margin-bottom: 0;
  font-size: var(--type-section);
}

.docs-directory-heading p {
  max-width: 620px;
  margin: 0;
  justify-self: end;
  font-size: var(--type-lede);
}

.docs-directory-list {
  border-top: 1px solid var(--line-strong);
}

.docs-directory-link {
  display: grid;
  min-height: 116px;
  grid-template-columns: 54px minmax(180px, 0.7fr) minmax(300px, 1.3fr) 28px;
  align-items: center;
  gap: var(--space-6);
  border-bottom: 1px solid var(--line);
  transition: background 150ms ease;
}

.docs-directory-link:hover,
.docs-directory-link:focus-visible {
  background: var(--white);
}

.docs-directory-link > span {
  color: var(--coral-dark);
  font-family: var(--mono);
  font-size: var(--type-label);
}

.docs-directory-link h3 {
  margin: 0;
}

.docs-directory-link p {
  max-width: 650px;
  margin: 0;
}

.docs-directory-link svg {
  width: 18px;
  justify-self: end;
  transition: transform 150ms ease;
}

.docs-directory-link:hover svg,
.docs-directory-link:focus-visible svg {
  transform: translateX(4px);
}

.docs-use-paths {
  padding: var(--space-18) 0 var(--space-22);
  border-top: 1px solid var(--line);
  background: var(--forest-dark);
  color: var(--white);
}

.docs-use-paths .eyebrow,
.docs-use-paths p {
  color: var(--text-on-dark-secondary);
}

.docs-use-paths h2 {
  font-size: var(--type-subsection);
}

.docs-use-path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-optical);
  margin-top: var(--space-10);
  background: var(--dark-line);
}

.docs-use-path-grid a {
  display: grid;
  min-height: 190px;
  align-content: space-between;
  padding: var(--space-6);
  background: var(--forest-dark);
  transition: background 150ms ease;
}

.docs-use-path-grid a:hover,
.docs-use-path-grid a:focus-visible {
  background: #123a34;
}

.docs-use-path-grid span {
  color: var(--yellow);
  font-family: var(--mono);
  font-size: var(--type-label);
}

.docs-use-path-grid h3 {
  margin: var(--space-8) 0 var(--space-3);
  color: var(--white);
}

.docs-use-path-grid p {
  margin-bottom: 0;
}

.docs-subnav {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.docs-subnav .section-shell {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.docs-subnav a,
.docs-subnav span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-label);
}

.docs-subnav a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink);
}

.docs-subnav svg {
  width: 14px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 205px minmax(0, 760px) 165px;
  justify-content: space-between;
  gap: var(--space-10);
  padding-top: var(--space-12);
  padding-bottom: var(--space-20);
}

.docs-sidebar,
.docs-toc {
  position: sticky;
  top: 96px;
  align-self: start;
}

.docs-sidebar-group + .docs-sidebar-group {
  margin-top: var(--space-8);
}

.docs-sidebar-group > span,
.docs-toc > span {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-label);
  font-weight: 600;
  text-transform: uppercase;
}

.docs-sidebar nav,
.docs-toc nav {
  display: grid;
  gap: var(--space-1);
}

.docs-sidebar a,
.docs-toc a {
  display: block;
  border-radius: var(--radius-control);
  color: var(--ink-soft);
  font-size: var(--type-ui);
}

.docs-sidebar a {
  padding: var(--space-2) var(--space-2-5);
}

.docs-toc a {
  padding: var(--space-1) 0;
  color: var(--muted);
  font-size: var(--type-caption);
  line-height: 1.4;
}

.docs-sidebar a:hover,
.docs-sidebar a:focus-visible,
.docs-sidebar a[aria-current="page"] {
  background: var(--forest-soft);
  color: var(--forest-dark);
}

.docs-sidebar a[aria-current="page"] {
  font-weight: 600;
}

.docs-toc a:hover,
.docs-toc a:focus-visible {
  color: var(--ink);
}

.docs-article {
  min-width: 0;
}

.docs-article-header {
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--line);
}

.docs-article-header h1 {
  max-width: 730px;
  margin: var(--space-3) 0 var(--space-5);
  font-size: var(--type-article-title);
  line-height: 1.04;
}

.docs-article-header .lede {
  max-width: 700px;
  margin-bottom: 0;
  font-size: var(--type-lede);
}

.docs-article-section {
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: var(--space-28);
}

.docs-article-section h2 {
  max-width: 710px;
  margin-bottom: var(--space-5);
  font-size: var(--type-panel);
  line-height: 1.12;
}

.docs-article-section h3 {
  margin-top: var(--space-8);
  font-size: var(--type-subtitle);
}

.docs-article-section > p,
.docs-article-section > ul,
.docs-article-section > ol {
  max-width: 690px;
}

.docs-article-section ul,
.docs-article-section ol {
  margin: var(--space-5) 0 0;
  padding-left: var(--space-6);
  color: var(--ink-soft);
}

.docs-article-section li + li {
  margin-top: var(--space-2);
}

.docs-definition-grid,
.docs-contract-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-optical);
  margin-top: var(--space-8);
  border: 1px solid var(--line);
  background: var(--line);
}

.docs-definition-grid > div,
.docs-contract-grid > div {
  min-width: 0;
  padding: var(--space-5);
  background: var(--white);
}

.docs-definition-grid dt,
.docs-contract-grid dt {
  margin-bottom: var(--space-2);
  font-weight: 600;
}

.docs-definition-grid dd,
.docs-contract-grid dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--type-ui);
}

.docs-inline-map {
  display: grid;
  grid-template-columns: 1fr 38px 1fr 38px 1fr;
  align-items: stretch;
  gap: var(--space-2);
  margin: var(--space-8) 0;
  padding: var(--space-5);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-panel);
  background: var(--white);
}

.docs-inline-map > div {
  display: grid;
  min-height: 110px;
  align-content: center;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--paper);
}

.docs-inline-map > div:nth-of-type(2) {
  border-color: rgba(23, 92, 77, 0.35);
  background: var(--forest-soft);
}

.docs-inline-map > div:nth-of-type(3) {
  border-color: rgba(238, 100, 74, 0.35);
  background: var(--coral-soft);
}

.docs-inline-map strong,
.docs-inline-map small {
  display: block;
}

.docs-inline-map small {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: var(--type-caption);
}

.docs-inline-arrow {
  position: relative;
  align-self: center;
  height: 1px;
  background: var(--line-strong);
}

.docs-inline-arrow::after {
  position: absolute;
  top: -3px;
  right: 0;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  content: "";
  transform: rotate(45deg);
}

.docs-loop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-optical);
  margin-top: var(--space-8);
  border: 1px solid var(--line);
  background: var(--line);
}

.docs-loop > div {
  min-width: 0;
  padding: var(--space-4);
  background: var(--white);
}

.docs-loop span {
  display: block;
  margin-bottom: var(--space-4);
  color: var(--coral-dark);
  font-family: var(--mono);
  font-size: var(--type-label);
}

.docs-loop strong,
.docs-loop small {
  display: block;
}

.docs-loop small {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: var(--type-caption);
}

.docs-note,
.docs-warning {
  margin: var(--space-8) 0;
  padding: var(--space-5);
  border-left: 3px solid var(--blue);
  background: var(--blue-soft);
  color: var(--ink-soft);
}

.docs-warning {
  border-left-color: var(--action-primary-strong);
  background: var(--coral-soft);
}

.docs-note strong,
.docs-warning strong {
  color: var(--ink);
}

.docs-code {
  overflow-x: auto;
  margin: var(--space-8) 0;
  padding: var(--space-5);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-panel);
  background: var(--forest-dark);
  color: var(--text-on-dark-secondary);
  font-family: var(--mono);
  font-size: var(--type-caption);
  line-height: 1.75;
  white-space: pre;
}

.docs-code-shell {
  overflow: hidden;
  margin: var(--space-8) 0;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-panel);
  background: var(--forest-dark);
}

.docs-code-shell .docs-code {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.docs-code-toolbar {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-3) 0 var(--space-5);
  border-bottom: 1px solid var(--dark-line);
  color: var(--text-on-dark-muted);
  font-family: var(--mono);
  font-size: var(--type-label);
}

.docs-code-copy {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--text-on-dark-secondary);
  cursor: pointer;
}

.docs-code-copy:hover,
.docs-code-copy:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.docs-code-copy svg {
  width: 15px;
  height: 15px;
}

.docs-standards-table code,
.docs-article-section p code,
.docs-article-section li code {
  font-family: var(--mono);
  font-size: var(--type-code-inline);
}

.docs-standards-table {
  width: 100%;
  margin-top: var(--space-8);
  border-collapse: collapse;
  background: var(--white);
}

.docs-standards-table th,
.docs-standards-table td {
  padding: var(--space-3-5) var(--space-3);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.docs-standards-table th {
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-label);
  font-weight: 600;
}

.docs-standards-table td {
  color: var(--ink-soft);
  font-size: var(--type-ui);
}

.docs-standards-table td:first-child {
  color: var(--ink);
  font-weight: 600;
}

.docs-pagination {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  padding-top: var(--space-10);
}

.docs-pagination a {
  display: grid;
  min-height: 94px;
  align-content: center;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--white);
}

.docs-pagination a:last-child {
  text-align: right;
}

.docs-pagination span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-label);
}

.docs-pagination strong {
  display: block;
  margin-top: var(--space-2);
}

@media (max-width: 1120px) {
  .docs-hero-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(500px, 1.2fr);
    gap: var(--space-10);
  }

  .docs-layout {
    grid-template-columns: 190px minmax(0, 760px);
    justify-content: start;
  }

  .docs-toc {
    display: none;
  }
}

@media (max-width: 900px) {
  .docs-hero {
    padding: var(--space-16) 0;
  }

  .docs-hero-grid,
  .docs-directory-heading {
    grid-template-columns: 1fr;
  }

  .docs-system-map {
    min-height: 500px;
  }

  .docs-directory-heading p {
    justify-self: start;
  }

  .docs-directory-link {
    grid-template-columns: 45px minmax(160px, 0.7fr) minmax(240px, 1.3fr) 24px;
    gap: var(--space-4);
  }

  .docs-layout {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: var(--space-8);
  }

  .docs-inline-map {
    grid-template-columns: 1fr;
  }

  .docs-inline-arrow {
    width: 1px;
    height: 28px;
    justify-self: center;
  }

  .docs-inline-arrow::after {
    top: auto;
    right: -3px;
    bottom: 0;
    transform: rotate(135deg);
  }
}

@media (max-width: 720px) {
  .docs-map-body {
    padding-right: var(--space-4);
    padding-left: var(--space-4);
  }

  .docs-map-world-grid,
  .docs-map-outputs,
  .docs-use-path-grid,
  .docs-definition-grid,
  .docs-contract-grid,
  .docs-loop {
    grid-template-columns: 1fr;
  }

  .docs-map-body {
    grid-template-rows: auto 24px auto 24px auto;
  }

  .docs-map-source {
    width: 100%;
  }

  .docs-map-world {
    min-height: 340px;
  }

  .docs-map-outputs {
    gap: var(--space-1-5);
  }

  .docs-system-map {
    min-height: 760px;
  }

  .docs-directory-link {
    min-height: 142px;
    grid-template-columns: 36px 1fr 22px;
    gap: var(--space-3);
    padding: var(--space-4) 0;
  }

  .docs-directory-link p {
    grid-column: 2 / -1;
    padding-right: var(--space-5);
  }

  .docs-directory-link svg {
    grid-column: 3;
    grid-row: 1;
  }

  .docs-use-path-grid a {
    min-height: 150px;
  }

  .docs-subnav .section-shell {
    overflow-x: auto;
    white-space: nowrap;
  }

  .docs-layout {
    grid-template-columns: 1fr;
    padding-top: var(--space-6);
  }

  .docs-sidebar {
    position: static;
    overflow-x: auto;
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--line);
  }

  .docs-sidebar-group {
    min-width: max-content;
  }

  .docs-sidebar-group + .docs-sidebar-group {
    margin-top: var(--space-4);
  }

  .docs-sidebar nav {
    display: flex;
    gap: var(--space-2);
  }

  .docs-article-header h1 {
    font-size: var(--type-subsection);
  }

  .docs-pagination {
    grid-template-columns: 1fr;
  }

  .docs-pagination a:last-child {
    text-align: left;
  }

  .replica-visual {
    min-height: 580px;
    aspect-ratio: auto;
  }

  .replica-field {
    grid-template-columns: 1fr;
    padding: var(--space-6);
  }

  .replica-field > svg {
    transform: rotate(90deg);
  }

  .replica-node,
  .replica-scenarios {
    min-height: 104px;
  }
}

@media (max-width: 480px) {
  .docs-hero-copy h1 {
    font-size: var(--type-page);
  }

  .docs-system-map {
    min-height: 790px;
  }

  .docs-map-header,
  .docs-map-footer {
    font-size: var(--type-micro);
  }

  .docs-directory {
    padding: var(--space-16) 0;
  }

  .docs-standards-table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 1040px) {
  .early-access-hero-grid {
    grid-template-columns: minmax(0, 0.86fr) minmax(440px, 1.14fr);
    gap: var(--space-10);
  }

  .early-access-intro h1 {
    font-size: var(--type-section);
  }

  .access-entry-rail {
    width: 110px;
  }

  .access-world-core {
    left: 52%;
    width: 160px;
    height: 160px;
  }

  .access-event-stack {
    right: var(--space-3);
    width: 132px;
  }
}

@media (max-width: 820px) {
  .early-access-hero-grid {
    grid-template-columns: 1fr;
  }

  .early-access-intro {
    position: static;
    order: 2;
    padding-top: 0;
  }

  .early-access-form-panel {
    order: 1;
  }

  .early-access-intro h1 {
    font-size: var(--type-page);
  }

  .early-access-intro h1,
  .early-access-intro .lede {
    max-width: 680px;
  }

  .access-world-core {
    left: 54%;
    width: 176px;
    height: 176px;
  }

  .access-event-stack {
    right: var(--space-5);
    width: 146px;
  }
}

@media (max-width: 560px) {
  .early-access-hero {
    padding: var(--space-4) 0 var(--space-12);
  }

  .early-access-form-panel {
    padding: var(--space-4);
  }

  .early-access-form-panel h2 {
    font-size: var(--type-subsection);
  }

  .early-access-form-panel > header {
    padding-bottom: var(--space-4);
  }

  .early-access-form-panel > header .eyebrow,
  .early-access-form-panel > header > p:last-child,
  .access-question-count,
  .form-submit-row p {
    display: none;
  }

  .early-access-form {
    gap: var(--space-3);
    padding-top: var(--space-4);
  }

  .early-access-form textarea {
    min-height: 64px;
    padding: var(--space-2);
  }

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

  .capability-choice-grid span {
    min-height: 44px;
  }

  .access-world-field {
    min-height: 400px;
  }

  .access-agent-node {
    top: var(--space-6);
    transform: none;
  }

  .access-entry-rail {
    top: 60px;
    width: 104px;
  }

  .access-world-core {
    top: 48%;
    left: 34%;
    width: 156px;
    height: 156px;
  }

  .access-event-stack {
    top: auto;
    right: var(--space-4);
    bottom: var(--space-5);
    width: 154px;
    transform: none;
  }

  .access-world-preview > footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: var(--space-2) var(--space-3);
  }

  .access-world-preview > footer span {
    display: grid;
    gap: 0;
  }

  .access-world-preview > footer span:nth-child(2) {
    justify-items: center;
  }

  .access-world-preview > footer span:last-child {
    justify-items: end;
  }

  .access-world-preview > footer small {
    font-size: var(--type-micro);
  }

  .access-question-count {
    position: static;
    display: inline-flex;
    width: fit-content;
    margin-bottom: var(--space-5);
  }

  .form-row,
  .choice-control-grid,
  .form-submit-row {
    grid-template-columns: 1fr;
  }

  .form-submit-row .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .early-access-signal i,
  .access-entry-rail > i,
  .access-world-node,
  .access-event-stack span {
    animation: none;
  }
}
