/* PRECESSION Omega - public lab surface, aligned with katoying.ai. */

.prec-hero {
  min-height: 92svh;
}

.prec-hero .scene-media img {
  object-position: center 45%;
}

.prec-hero-copy {
  width: min(880px, calc(100% - 48px));
  margin-bottom: 3vh;
}

.prec-hero-copy h1 {
  max-width: none;
  font-size: 108px;
  line-height: 0.92;
  letter-spacing: 0;
}

.prec-hero-copy .scene-line {
  max-width: 680px;
  margin: 24px auto 0;
}

.prec-meta {
  display: flex;
  justify-content: center;
  margin: 44px auto 0;
}

.prec-meta-block {
  min-width: 160px;
  padding: 0 28px;
  border-left: 1px solid rgba(244, 247, 251, 0.16);
  text-align: left;
}

.prec-meta-block:last-child {
  border-right: 1px solid rgba(244, 247, 251, 0.16);
}

.prec-meta-label,
.prec-meta-value {
  display: block;
  font-family: var(--display);
  letter-spacing: 0;
}

.prec-meta-label {
  color: rgba(244, 247, 251, 0.52);
  font-size: 10px;
  font-weight: 700;
}

.prec-meta-value {
  margin-top: 8px;
  color: var(--paper);
  font-size: 17px;
  font-weight: 800;
}

.prec-meta-value[data-runtime="live"] {
  color: #8ad9ad;
}

.prec-meta-value[data-runtime="edge"] {
  color: #e6c98d;
}

.prec-meta-value[data-runtime="error"] {
  color: #ff9292;
}

.prec-section {
  position: relative;
  padding: 144px var(--page-pad);
  overflow: hidden;
  background: var(--ink);
}

.prec-dark {
  background: #030405;
}

.prec-inner {
  position: relative;
  z-index: 1;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.prec-section-head {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}

.prec-section-head.left {
  margin: 0;
  text-align: left;
}

.prec-section-head .eyebrow {
  justify-content: center;
}

.prec-section-head.left .eyebrow {
  justify-content: flex-start;
}

.prec-section-head h2 {
  max-width: none;
  margin: 0;
  font-size: 62px;
  line-height: 1;
  letter-spacing: 0;
}

.prec-lead {
  max-width: 630px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.prec-section-head.left .prec-lead {
  margin-left: 0;
}

.epistemic-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 40px;
  border-top: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint);
}

.epistemic-strip span {
  padding: 16px 18px;
  border-left: 1px solid var(--faint);
  color: rgba(244, 247, 251, 0.55);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.epistemic-strip span:first-child {
  border-left: 0;
}

.calibration-note {
  max-width: 760px;
  margin: -12px auto 34px;
  color: rgba(244, 247, 251, 0.5);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.worlds-grid {
  display: flex;
  flex-direction: column;
}

.world-card {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--faint);
  transition: transform 320ms var(--ease), border-color 320ms var(--ease);
}

.world-card:hover {
  transform: translateX(6px);
  border-color: rgba(244, 247, 251, 0.28);
}

.world-id {
  color: rgba(244, 247, 251, 0.18);
  font-family: var(--display);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.world-card[data-leading="true"] .world-id {
  color: var(--paper);
}

.world-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 28px;
}

.world-name {
  margin: 0;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.world-prob-wrap {
  display: flex;
  align-items: baseline;
  gap: 14px;
  white-space: nowrap;
}

.world-prob {
  min-width: 70px;
  font-family: var(--display);
  font-size: 28px;
  text-align: right;
}

.world-trend {
  min-width: 58px;
  color: rgba(244, 247, 251, 0.52);
  font-size: 12px;
  font-weight: 700;
}

.world-trend.up {
  color: #8ad9ad;
}

.world-trend.down {
  color: #ff9292;
}

.world-bar {
  height: 4px;
  margin: 16px 0 14px;
  overflow: hidden;
  background: rgba(244, 247, 251, 0.1);
}

.world-bar-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--paper);
  transition: width 1.2s var(--ease);
}

.world-desc,
.world-signal {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.world-desc {
  font-size: 15px;
}

.world-signal {
  margin-top: 8px;
  color: rgba(244, 247, 251, 0.48);
  font-size: 12px;
}

.world-signal::before {
  content: "WATCH  ";
  color: rgba(244, 247, 251, 0.72);
  font-family: var(--display);
  font-weight: 700;
}

.lab-drawer {
  margin-top: 28px;
  border-top: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint);
}

.lab-drawer + .lab-drawer {
  margin-top: -1px;
}

.lab-drawer > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
}

.lab-drawer > summary::-webkit-details-marker {
  display: none;
}

.lab-drawer > summary::after {
  content: "+";
  color: rgba(244, 247, 251, 0.65);
  font-size: 24px;
  font-weight: 400;
}

.lab-drawer[open] > summary::after {
  content: "-";
}

.lab-drawer > summary span {
  margin-left: auto;
  margin-right: 24px;
  color: rgba(244, 247, 251, 0.42);
  font-size: 10px;
}

.drawer-intro {
  max-width: 680px;
  margin: 4px 0 36px;
  color: var(--muted);
  line-height: 1.6;
}

.clock-row {
  display: grid;
  grid-template-columns: 52px 150px 1fr 110px;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--faint);
}

.clock-num,
.clock-name {
  font-family: var(--display);
}

.clock-num {
  color: rgba(244, 247, 251, 0.28);
  font-size: 24px;
  font-weight: 800;
}

.clock-name {
  font-size: 17px;
  text-transform: uppercase;
}

.clock-chain,
.clock-symbol {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.clock-symbol {
  text-align: right;
  font-style: italic;
}

.signal-lab-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(520px, 1.2fr);
  gap: 76px;
  align-items: start;
}

.signal-lab-copy h2 {
  margin: 0;
  font-size: 60px;
  line-height: 1;
}

.signal-lab-copy .prec-lead {
  margin-left: 0;
}

.signal-classes {
  margin-top: 38px;
  border-top: 1px solid var(--faint);
}

.signal-class-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--faint);
}

.signal-class-card strong {
  font-family: var(--display);
  font-size: 11px;
}

.signal-class-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.signal-console,
.sim-console {
  padding: 32px;
  border: 1px solid rgba(244, 247, 251, 0.18);
  background: rgba(8, 10, 13, 0.76);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

.kind-switcher {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 28px;
  padding: 0;
  border: 1px solid var(--faint);
}

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

.kind-switcher label {
  min-width: 0;
  border-left: 1px solid var(--faint);
}

.kind-switcher label:first-of-type {
  border-left: 0;
}

.kind-switcher input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.kind-switcher span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 8px;
  color: rgba(244, 247, 251, 0.56);
  cursor: pointer;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
}

.kind-switcher input:checked + span {
  background: var(--paper);
  color: var(--ink);
}

.kind-switcher input:focus-visible + span {
  outline: 2px solid #9fc7ff;
  outline-offset: -2px;
}

.field-label {
  display: flex;
  justify-content: space-between;
  margin: 18px 0 8px;
  color: rgba(244, 247, 251, 0.65);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.field-label span {
  color: rgba(244, 247, 251, 0.34);
  font-weight: 400;
}

.signal-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--faint);
  border-radius: 0;
  outline: none;
  background: #050608;
  color: var(--paper);
  font: inherit;
}

.signal-input:focus {
  border-color: rgba(244, 247, 251, 0.72);
}

.signal-textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.55;
}

.signal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.lab-button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--paper);
  border-radius: 0;
  cursor: pointer;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.lab-button.primary {
  background: var(--paper);
  color: var(--ink);
}

.lab-button.secondary {
  background: transparent;
  color: var(--paper);
}

.lab-button:hover:not(:disabled) {
  background: #cfeaff;
  color: #050608;
  border-color: #cfeaff;
}

.lab-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.lab-button.wide {
  width: 100%;
}

.microcopy,
.preview-note {
  margin: 14px 0 0;
  color: rgba(244, 247, 251, 0.44);
  font-size: 11px;
  line-height: 1.5;
}

.signal-preview {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--faint);
}

.signal-preview.error {
  color: #ff9292;
}

.preview-head,
.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.preview-class {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
}

.preview-confidence {
  color: var(--muted);
  font-size: 11px;
}

.preview-impacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--faint);
  border: 1px solid var(--faint);
}

.preview-impact {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px;
  background: #050608;
}

.preview-impact strong,
.preview-impact small {
  font-family: var(--display);
  font-size: 10px;
}

.preview-impact span {
  margin: 6px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.preview-impact small {
  color: rgba(244, 247, 251, 0.45);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.lab-tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid rgba(244, 247, 251, 0.18);
  color: rgba(244, 247, 251, 0.65);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.lab-tag.warning {
  border-color: rgba(230, 201, 141, 0.4);
  color: #e6c98d;
}

.lab-tag.violet {
  border-color: rgba(180, 154, 235, 0.4);
  color: #c9b7ef;
}

.violets-grid,
.archetypes-grid,
.trajectories-grid {
  display: grid;
  gap: 1px;
  margin-bottom: 32px;
  background: var(--faint);
  border: 1px solid var(--faint);
}

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

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

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

.violet-card,
.archetype-card,
.trajectory-card {
  min-width: 0;
  padding: 28px;
  background: #07080a;
}

.violet-card {
  background: linear-gradient(150deg, #08080b, #0c0912);
}

.violet-num,
.archetype-id,
.trajectory-id {
  color: rgba(201, 183, 239, 0.62);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
}

.violet-name,
.archetype-card h3,
.trajectory-card h3 {
  margin: 12px 0;
  font-family: var(--display);
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.violet-desc,
.archetype-thesis,
.trajectory-premise,
.trajectory-card li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.scenario-watch {
  margin: 18px 0 0;
  color: rgba(244, 247, 251, 0.48);
  font-size: 12px;
  line-height: 1.55;
}

.archetype-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.condition-list {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px 14px;
  margin: 22px 0 0;
}

.condition-list dt {
  color: rgba(244, 247, 251, 0.46);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 800;
}

.condition-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.trajectory-card ol {
  margin: 22px 0 0;
  padding-left: 22px;
}

.trajectory-card li {
  margin: 10px 0;
  padding-left: 8px;
}

.signals-table {
  margin-bottom: 32px;
  border-top: 1px solid var(--faint);
}

.signal-row {
  display: grid;
  grid-template-columns: 190px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--faint);
}

.signal-lead {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.signal-ts {
  color: rgba(244, 247, 251, 0.4);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 700;
}

.signal-entity {
  font-family: var(--display);
  font-size: 14px;
}

.signal-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.signal-row .tag-row {
  justify-content: flex-end;
  margin-top: 0;
}

.simulator-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(520px, 1.2fr);
  gap: 76px;
  align-items: start;
}

.sim-options {
  margin-bottom: 18px;
  border-top: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint);
}

.sim-options summary {
  padding: 16px 0;
  cursor: pointer;
  color: rgba(244, 247, 251, 0.62);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.sim-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-bottom: 18px;
}

.sim-fields label {
  color: rgba(244, 247, 251, 0.5);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.sim-fields input {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--faint);
  border-radius: 0;
  outline: none;
  background: #050608;
  color: var(--paper);
  font: inherit;
}

.sim-status {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(159, 199, 255, 0.32);
  color: #9fc7ff;
  font-size: 12px;
}

.sim-status.error {
  border-color: rgba(255, 146, 146, 0.38);
  color: #ff9292;
}

.sim-result {
  margin-top: 22px;
}

.sim-posteriors {
  margin-top: 18px;
}

.sim-row {
  display: grid;
  grid-template-columns: 88px 1fr 52px;
  gap: 14px;
  align-items: center;
  margin: 11px 0;
}

.sim-label,
.sim-value {
  font-family: var(--display);
  font-size: 11px;
}

.sim-value {
  text-align: right;
}

.sim-bar {
  display: block;
  height: 5px;
  background: rgba(244, 247, 251, 0.1);
}

.sim-bar-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--paper);
  transition: width 500ms var(--ease);
}

.advanced-section {
  background: #08090b;
}

.source-files {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--faint);
  border: 1px solid var(--faint);
}

.source-files a {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 6px 18px;
  min-width: 0;
  padding: 24px;
  background: #050608;
  color: var(--paper);
  text-decoration: none;
  transition: background 180ms ease;
}

.source-files a:hover {
  background: #0d1115;
}

.source-files span,
.source-files small {
  color: rgba(244, 247, 251, 0.45);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 700;
}

.source-files strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.source-files small {
  grid-column: 2;
  font-family: inherit;
  font-weight: 400;
  line-height: 1.4;
}

.atom-drawer {
  margin-top: 44px;
}

.atom-editor {
  width: 100%;
  min-height: 360px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--faint);
  border-radius: 0;
  outline: none;
  resize: vertical;
  background: #030405;
  color: var(--paper);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
}

.atom-editor:focus {
  border-color: rgba(244, 247, 251, 0.64);
}

.atom-output {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--faint);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #8ad9ad;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
}

.atom-output.error {
  color: #ff9292;
}

.empty-state {
  padding: 48px 0;
  color: var(--muted);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Beginner-first layer. The lab remains deep, but depth stays behind doors. */
.prec-desktop-nav {
  align-items: stretch;
  overflow: visible;
}

.nav-cluster {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-cluster-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(244, 247, 251, 0.78);
  cursor: pointer;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
}

.nav-cluster-trigger span {
  color: rgba(244, 247, 251, 0.48);
  font-size: 13px;
  transition: transform 180ms ease;
}

.nav-cluster-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: -22px;
  z-index: 20;
  display: grid;
  width: 300px;
  padding: 10px;
  border: 1px solid rgba(244, 247, 251, 0.16);
  background: rgba(3, 4, 5, 0.97);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.nav-cluster-menu-right {
  right: -22px;
  left: auto;
}

.nav-cluster:hover .nav-cluster-menu,
.nav-cluster:focus-within .nav-cluster-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

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

.nav-cluster-menu a {
  display: grid;
  gap: 5px;
  padding: 16px;
  border-bottom: 1px solid var(--faint);
  text-decoration: none;
}

.nav-cluster-menu a:last-child {
  border-bottom: 0;
}

.nav-cluster-menu strong {
  color: var(--paper);
  font-family: var(--display);
  font-size: 11px;
}

.nav-cluster-menu small {
  color: rgba(244, 247, 251, 0.48);
  font-size: 12px;
  line-height: 1.35;
  text-transform: none;
}

.prec-section {
  padding-top: 112px;
  padding-bottom: 112px;
}

.purpose-section {
  padding-top: 96px;
  padding-bottom: 96px;
  border-bottom: 1px solid var(--faint);
  background: #080a0d;
}

.purpose-head {
  max-width: 720px;
  margin-bottom: 58px;
}

.purpose-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint);
  list-style: none;
}

.purpose-steps li {
  min-width: 0;
  padding: 28px 28px 30px;
  border-left: 1px solid var(--faint);
}

.purpose-steps li:first-child {
  border-left: 0;
}

.purpose-steps span,
.purpose-steps strong {
  display: block;
  font-family: var(--display);
}

.purpose-steps span {
  color: rgba(244, 247, 251, 0.3);
  font-size: 11px;
}

.purpose-steps strong {
  margin-top: 20px;
  font-size: 24px;
  text-transform: uppercase;
}

.purpose-steps p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.purpose-truth {
  margin: 26px 0 0;
  color: rgba(244, 247, 251, 0.56);
  font-size: 13px;
}

.epistemic-strip {
  grid-template-columns: repeat(2, 1fr);
}

.world-more {
  margin-top: 10px;
}

.world-more summary {
  width: max-content;
  cursor: pointer;
  color: rgba(244, 247, 251, 0.54);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  list-style: none;
}

.world-more summary::-webkit-details-marker {
  display: none;
}

.world-more summary::after {
  content: " +";
}

.world-more[open] summary::after {
  content: " -";
}

.world-more .world-desc {
  margin-top: 14px;
}

.example-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.example-signals button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(244, 247, 251, 0.2);
  border-radius: 999px;
  background: transparent;
  color: rgba(244, 247, 251, 0.72);
  cursor: pointer;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
}

.example-signals button:hover,
.example-signals button:focus-visible {
  border-color: var(--paper);
  color: var(--paper);
}

.signal-guide,
.optional-field,
.preview-tech {
  margin-top: 20px;
  border-top: 1px solid var(--faint);
}

.signal-guide > summary,
.optional-field > summary,
.preview-tech > summary {
  padding: 14px 0;
  cursor: pointer;
  color: rgba(244, 247, 251, 0.58);
  font-size: 12px;
  list-style: none;
}

.signal-guide > summary::after,
.optional-field > summary::after,
.preview-tech > summary::after {
  content: " +";
}

.signal-guide[open] > summary::after,
.optional-field[open] > summary::after,
.preview-tech[open] > summary::after {
  content: " -";
}

.signal-guide .signal-classes {
  margin-top: 0;
}

.optional-field span {
  color: rgba(244, 247, 251, 0.3);
}

.preview-tech code {
  display: block;
  margin-top: 12px;
  color: rgba(244, 247, 251, 0.4);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.story-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 42px;
}

.story-feature-card {
  min-height: 300px;
  border: 1px solid rgba(244, 247, 251, 0.16);
  background: linear-gradient(145deg, rgba(38, 51, 67, 0.42), rgba(5, 6, 8, 0.92));
}

.story-feature-card > summary {
  display: flex;
  min-height: 298px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  cursor: pointer;
  list-style: none;
}

.story-feature-card > summary::-webkit-details-marker,
.story-row > summary::-webkit-details-marker,
.inner-drawer > summary::-webkit-details-marker,
.machine-shell > summary::-webkit-details-marker {
  display: none;
}

.story-feature-card > summary::after {
  content: "OPEN +";
  margin-top: 22px;
  color: rgba(244, 247, 251, 0.62);
  font-family: var(--display);
  font-size: 10px;
}

.story-feature-card[open] > summary::after {
  content: "CLOSE -";
}

.story-feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: auto;
}

.story-feature-meta span {
  padding: 6px 8px;
  border: 1px solid rgba(244, 247, 251, 0.18);
  color: rgba(244, 247, 251, 0.58);
  font-family: var(--display);
  font-size: 9px;
}

.story-feature-card h3 {
  margin: 60px 0 12px;
  font-family: var(--display);
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
}

.story-feature-card summary p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.story-feature-card > .story-body {
  padding: 0 32px 32px;
}

.story-library-drawer {
  margin-top: 0;
}

.story-archive {
  border-top: 1px solid var(--faint);
}

.story-row {
  border-bottom: 1px solid var(--faint);
}

.story-row > summary {
  display: grid;
  grid-template-columns: 44px 90px 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 76px;
  cursor: pointer;
  list-style: none;
}

.story-row > summary::after {
  content: "+";
  grid-column: 5;
  color: rgba(244, 247, 251, 0.52);
  font-size: 22px;
}

.story-row[open] > summary::after {
  content: "-";
}

.story-index,
.story-stage,
.story-year {
  color: rgba(244, 247, 251, 0.38);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
}

.story-row > summary strong {
  font-family: var(--display);
  font-size: 15px;
  text-transform: uppercase;
}

.story-body {
  padding: 4px 44px 34px 152px;
}

.story-summary,
.story-why {
  max-width: 780px;
  line-height: 1.6;
}

.story-summary {
  color: var(--paper);
  font-size: 16px;
}

.story-why {
  color: var(--muted);
  font-size: 14px;
}

.story-beats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.story-beats li {
  padding: 7px 10px;
  border: 1px solid var(--faint);
  color: rgba(244, 247, 251, 0.56);
  font-size: 11px;
}

.story-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.story-sources a {
  color: #cfeaff;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
}

.theory-stack {
  padding-bottom: 24px;
}

.inner-drawer {
  border-top: 1px solid var(--faint);
}

.inner-drawer > summary {
  display: flex;
  justify-content: space-between;
  min-height: 58px;
  align-items: center;
  cursor: pointer;
  color: rgba(244, 247, 251, 0.76);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}

.inner-drawer > summary span {
  color: rgba(244, 247, 251, 0.36);
  font-size: 9px;
}

.inner-drawer > summary::after {
  content: "+";
  margin-left: 16px;
  font-size: 20px;
}

.inner-drawer[open] > summary::after {
  content: "-";
}

.machine-shell {
  border-top: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint);
}

.machine-shell > summary {
  display: flex;
  min-height: 128px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
}

.machine-shell > summary span:first-child {
  display: grid;
  gap: 8px;
}

.machine-shell > summary small {
  color: rgba(244, 247, 251, 0.42);
  font-family: var(--display);
  font-size: 10px;
}

.machine-shell > summary strong {
  font-family: var(--display);
  font-size: 34px;
  text-transform: uppercase;
}

.machine-plus {
  color: rgba(244, 247, 251, 0.5);
  font-size: 34px;
}

.machine-shell[open] .machine-plus {
  transform: rotate(45deg);
}

.machine-body {
  padding: 20px 0 28px;
}

.machine-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  margin-bottom: 44px;
}

.machine-intro h2 {
  margin: 0;
  font-size: 42px;
}

.machine-status {
  min-width: 160px;
  padding: 16px;
  border: 1px solid var(--faint);
}

.machine-status span,
.machine-status strong {
  display: block;
  font-family: var(--display);
  font-size: 10px;
}

.machine-status strong {
  margin-top: 8px;
  color: #e6c98d;
}

.atom-editor {
  min-height: 190px;
  max-height: 320px;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .world-bar-fill,
  .sim-bar-fill {
    transition: none;
  }
}

@media (max-width: 980px) {
  .prec-hero-copy h1 {
    font-size: 76px;
  }

  .prec-section-head h2,
  .signal-lab-copy h2 {
    font-size: 50px;
  }

  .signal-lab-layout,
  .simulator-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .signal-lab-copy,
  .prec-section-head.left {
    max-width: 680px;
  }

  .clock-row {
    grid-template-columns: 44px 130px 1fr;
  }

  .clock-symbol {
    display: none;
  }

  .signal-row {
    grid-template-columns: 150px 1fr;
  }

  .signal-row .tag-row {
    grid-column: 2;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .prec-hero {
    min-height: 88svh;
  }

  .prec-hero-copy h1 {
    font-size: 54px;
  }

  .prec-hero-copy .scene-line {
    font-size: 16px;
  }

  .prec-meta {
    width: 100%;
  }

  .prec-meta-block {
    min-width: 0;
    flex: 1 1 0;
    padding: 0 12px;
  }

  .prec-meta-value {
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .prec-section {
    padding: 100px 24px;
  }

  .prec-section-head {
    margin-bottom: 44px;
    text-align: left;
  }

  .prec-section-head .eyebrow {
    justify-content: flex-start;
  }

  .prec-section-head h2,
  .signal-lab-copy h2 {
    font-size: 40px;
  }

  .prec-lead {
    margin-left: 0;
    font-size: 15px;
  }

  .epistemic-strip {
    grid-template-columns: 1fr;
  }

  .epistemic-strip span {
    border-top: 1px solid var(--faint);
    border-left: 0;
  }

  .epistemic-strip span:first-child {
    border-top: 0;
  }

  .world-card {
    grid-template-columns: 42px 1fr;
    gap: 12px;
  }

  .world-id {
    font-size: 28px;
  }

  .world-top {
    align-items: flex-start;
  }

  .world-name {
    font-size: 19px;
  }

  .world-prob-wrap {
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
  }

  .world-prob {
    min-width: 0;
    font-size: 22px;
  }

  .world-trend {
    min-width: 0;
  }

  .lab-drawer > summary {
    min-height: 62px;
    font-size: 13px;
  }

  .lab-drawer > summary span {
    display: none;
  }

  .clock-row {
    grid-template-columns: 34px 1fr;
    gap: 10px;
  }

  .clock-chain {
    grid-column: 2;
  }

  .signal-console,
  .sim-console {
    padding: 20px;
  }

  .kind-switcher {
    grid-template-columns: repeat(2, 1fr);
  }

  .kind-switcher label:nth-of-type(3) {
    border-left: 0;
    border-top: 1px solid var(--faint);
  }

  .kind-switcher label:nth-of-type(4) {
    border-top: 1px solid var(--faint);
  }

  .signal-actions,
  .preview-impacts,
  .violets-grid,
  .archetypes-grid,
  .trajectories-grid,
  .source-files,
  .sim-fields {
    grid-template-columns: 1fr;
  }

  .signal-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .signal-row .tag-row {
    grid-column: 1;
  }

  .source-files a {
    grid-template-columns: 68px 1fr;
  }

  .atom-editor {
    min-height: 180px;
    font-size: 11px;
  }
}

@media (max-width: 980px) {
  .purpose-steps,
  .story-featured {
    grid-template-columns: 1fr;
  }

  .purpose-steps li {
    border-top: 1px solid var(--faint);
    border-left: 0;
  }

  .purpose-steps li:first-child {
    border-top: 0;
  }

  .machine-intro {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .prec-section,
  .purpose-section {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .purpose-head {
    margin-bottom: 38px;
  }

  .purpose-steps li {
    padding: 24px 4px;
  }

  .purpose-steps strong {
    margin-top: 12px;
    font-size: 20px;
  }

  .epistemic-strip {
    grid-template-columns: 1fr 1fr;
  }

  .epistemic-strip span {
    border-top: 0;
    border-left: 1px solid var(--faint);
  }

  .epistemic-strip span:first-child {
    border-left: 0;
  }

  .example-signals {
    display: grid;
    grid-template-columns: 1fr;
  }

  .example-signals button {
    width: 100%;
    border-radius: 0;
  }

  .story-feature-card,
  .story-feature-card > summary {
    min-height: 250px;
  }

  .story-feature-card > summary {
    padding: 24px;
  }

  .story-feature-card h3 {
    margin-top: 44px;
    font-size: 28px;
  }

  .story-feature-card > .story-body {
    padding: 0 24px 24px;
  }

  .story-row > summary {
    grid-template-columns: 34px 1fr auto;
    gap: 10px;
    min-height: 68px;
  }

  .story-row > summary::after {
    grid-column: 3;
  }

  .story-stage,
  .story-year {
    display: none;
  }

  .story-row > summary strong {
    font-size: 12px;
  }

  .story-body {
    padding: 4px 0 28px 44px;
  }

  .inner-drawer > summary span {
    display: none;
  }

  .machine-shell > summary {
    min-height: 100px;
  }

  .machine-shell > summary strong {
    font-size: 24px;
  }

  .machine-intro {
    gap: 22px;
  }

  .machine-intro h2 {
    font-size: 34px;
  }

  .machine-status {
    width: 100%;
  }
}

/* Physical ground: public-safe infrastructure, not an internal inventory. */
.physical-ground {
  border-top: 1px solid rgba(151, 216, 255, 0.2);
  border-bottom: 1px solid var(--faint);
  background:
    linear-gradient(115deg, rgba(89, 188, 255, 0.08), transparent 42%),
    linear-gradient(245deg, rgba(113, 215, 160, 0.07), transparent 44%),
    #05070a;
}

.physical-ground::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(244, 247, 251, 0.025) 1px, transparent 1px);
  background-size: 100% 80px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.ground-head {
  max-width: 850px;
  margin-bottom: 82px;
}

.ground-head .eyebrow {
  justify-content: space-between;
  max-width: 540px;
}

.ground-head h2 {
  max-width: 780px;
}

.ground-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
  border-top: 1px solid rgba(244, 247, 251, 0.18);
  border-bottom: 1px solid rgba(244, 247, 251, 0.18);
}

.ground-side {
  min-width: 0;
  padding: 52px 42px 46px;
}

.ground-side[data-side="national"] {
  padding-left: 0;
}

.ground-side[data-side="local"] {
  padding-right: 0;
}

.ground-kicker,
.ground-side h3,
.ground-metrics strong,
.ground-metrics span,
.ground-cooling span,
.ground-cooling strong,
.ground-source,
.ground-model summary,
.ground-model-grid strong,
.ground-model-grid span {
  font-family: var(--display);
  letter-spacing: 0;
}

.ground-kicker {
  margin: 0;
  color: rgba(244, 247, 251, 0.48);
  font-size: 10px;
  font-weight: 800;
}

.ground-side h3 {
  margin: 14px 0 38px;
  color: var(--paper);
  font-size: clamp(44px, 6vw, 74px);
  font-weight: 800;
  line-height: 0.92;
}

.ground-side[data-side="national"] h3 {
  color: #a8dfff;
}

.ground-side[data-side="local"] h3 {
  color: #9ce0ba;
}

.ground-side h3 small {
  display: block;
  margin-top: 12px;
  color: rgba(244, 247, 251, 0.46);
  font-size: 14px;
  font-weight: 700;
}

.ground-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 36px;
  border-top: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint);
}

.ground-metrics > div {
  padding: 25px 20px 23px 0;
}

.ground-metrics > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--faint);
}

.ground-metrics strong,
.ground-metrics span {
  display: block;
}

.ground-metrics strong {
  color: var(--paper);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.ground-metrics span {
  margin-top: 9px;
  color: rgba(244, 247, 251, 0.44);
  font-size: 10px;
  font-weight: 700;
}

.ground-cooling {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
}

.ground-cooling span {
  color: rgba(244, 247, 251, 0.42);
  font-size: 10px;
  font-weight: 700;
}

.ground-cooling strong {
  color: #dcecf5;
  font-size: 13px;
  text-align: right;
}

.ground-cooling strong[data-state="live"] {
  color: #9ce0ba;
}

.ground-cooling strong[data-state="offline"] {
  color: #e6c98d;
}

.ground-throughput {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--faint);
}

.ground-sensor-note {
  margin: 8px 0 0;
  color: rgba(156, 224, 186, 0.68);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
}

.ground-note {
  max-width: 470px;
  margin: 20px 0 0;
  color: rgba(244, 247, 251, 0.58);
  font-size: 14px;
  line-height: 1.65;
}

.ground-note strong {
  color: rgba(244, 247, 251, 0.82);
}

.ground-source {
  display: inline-block;
  margin-top: 24px;
  color: #a8dfff;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.ground-source:hover,
.ground-source:focus-visible {
  color: var(--paper);
}

.ground-axis {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  place-items: center;
  color: rgba(244, 247, 251, 0.52);
}

.ground-axis span {
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(244, 247, 251, 0.24), transparent);
}

.ground-axis b {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(244, 247, 251, 0.18);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 400;
}

.ground-question {
  max-width: 760px;
  margin: 54px auto 0;
  color: rgba(244, 247, 251, 0.74);
  font-size: 19px;
  line-height: 1.55;
  text-align: center;
}

.ground-model {
  margin-top: 58px;
  border-top: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint);
}

.ground-model > summary {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.ground-model > summary::-webkit-details-marker {
  display: none;
}

.ground-model > summary::after {
  content: "+";
  color: #a8dfff;
  font-size: 22px;
}

.ground-model[open] > summary::after {
  content: "−";
}

.ground-model > summary span {
  margin-left: auto;
  color: rgba(244, 247, 251, 0.42);
  font-size: 10px;
  font-weight: 600;
}

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

.ground-model-grid > div {
  padding: 30px 24px 28px 0;
}

.ground-model-grid > div + div {
  padding-left: 28px;
  border-left: 1px solid var(--faint);
}

.ground-model-grid strong,
.ground-model-grid span {
  display: block;
}

.ground-model-grid strong {
  color: var(--paper);
  font-size: 25px;
}

.ground-model-grid span {
  margin-top: 8px;
  color: rgba(244, 247, 251, 0.42);
  font-size: 9px;
  font-weight: 700;
}

.ground-model > p {
  max-width: 680px;
  margin: 0 0 34px;
  color: rgba(244, 247, 251, 0.55);
  font-size: 13px;
  line-height: 1.6;
}

.epistemic-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .ground-comparison {
    grid-template-columns: 1fr;
  }

  .ground-side,
  .ground-side[data-side="national"],
  .ground-side[data-side="local"] {
    padding: 42px 0;
  }

  .ground-axis {
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: 52px;
  }

  .ground-axis span {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(244, 247, 251, 0.24), transparent);
  }
}

@media (max-width: 720px) {
  .ground-head {
    margin-bottom: 48px;
  }

  .ground-head .eyebrow span:last-child {
    display: none;
  }

  .ground-side h3 {
    font-size: 48px;
  }

  .ground-cooling {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .ground-cooling strong {
    text-align: left;
  }

  .ground-question {
    margin-top: 38px;
    font-size: 16px;
    text-align: left;
  }

  .ground-model > summary span {
    display: none;
  }

  .ground-model-grid {
    grid-template-columns: 1fr;
  }

  .ground-model-grid > div,
  .ground-model-grid > div + div {
    padding: 22px 0;
    border-top: 1px solid var(--faint);
    border-left: 0;
  }

  .ground-model-grid > div:first-child {
    border-top: 0;
  }

  .epistemic-strip {
    grid-template-columns: 1fr;
  }

  .epistemic-strip span,
  .epistemic-strip span:first-child {
    border-top: 1px solid var(--faint);
    border-left: 0;
  }

  .epistemic-strip span:first-child {
    border-top: 0;
  }
}
