:root {
  --bg: #080d0b;
  --fg: #a9c6bc;
  --text: #a9c6bc;
  --muted: #78968d;
  --dim: #58736a;
  --accent: #bdf650;
  --green: #bdf650;
  --cyan: #74dfc0;
  --border: #183028;
  --line: #183028;
  --panel: #0d1512;
  --font-mono: 'Cascadia Mono', Consolas, 'Courier New', monospace;
  --mono: 'Cascadia Mono', Consolas, 'Courier New', monospace;
  --content-width: 1120px;
  --text-width: 900px;
  --space-section: 56px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 50% 18%, rgba(31, 72, 57, .1), transparent 58%),
    repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(189, 246, 80, .018) 4px);
  font: 15px/1.65 var(--mono);
  font-weight: 400;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 1;
  background: linear-gradient(90deg, transparent 49.8%, rgba(116, 223, 192, .025) 50%, transparent 50.2%);
  background-size: 7px 100%;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 49;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, .3) 100%);
}

a { color: inherit; }
button { border-radius: 0; }
::selection { color: var(--bg); background: var(--green); }

.cursor-glow {
  position: fixed;
  z-index: 49;
  width: 86px;
  height: 86px;
  margin: -43px 0 0 -43px;
  pointer-events: none;
  opacity: .18;
  background: radial-gradient(circle, rgba(189, 246, 80, .1), transparent 68%);
}

.site-header {
  height: 66px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(16, 25, 22, .97);
  border-bottom: 1px solid rgba(189, 246, 80, .62);
}

.prompt {
  flex: 0 0 auto;
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.prompt i {
  display: inline-block;
  width: 6px;
  height: 15px;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--cyan);
  animation: blink 1s steps(2) infinite;
}

.nav-scroll { min-width: 0; }

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
}

nav a {
  color: var(--dim);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .04em;
  text-decoration: none;
}

nav a:hover,
nav a.is-active { color: var(--green); }

nav a.is-active::before { content: none; }

.nav-code,
.x-link,
.bracket-button,
.bracket-link,
.concept-actions button,
.room-toolbar button,
.root-value button,
.research-head button,
.research-footer button,
.research-footer a,
.modal-signals button {
  min-height: 34px;
  padding: 7px 11px;
  color: var(--cyan);
  background: transparent;
  border: 1px solid var(--line);
  font: 600 10px/1 var(--mono);
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
}

.nav-code:hover,
.x-link:hover,
.bracket-button:hover,
.bracket-link:hover,
.concept-actions button:hover,
.room-toolbar button:hover,
.room-toolbar button.is-active,
.root-value button:hover,
.research-head button:hover,
.research-footer button:hover,
.research-footer a:hover,
.modal-signals button:hover,
.modal-signals button.is-active {
  color: var(--green);
  border-color: rgba(189, 246, 80, .72);
}

.x-link {
  min-width: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  border-color: rgba(189, 246, 80, .6);
}

main {
  width: 100%;
  max-width: var(--content-width);
  margin: auto;
}

.hero {
  padding: 54px 28px 62px;
}

.hero-mark {
  min-height: 194px;
  padding: 20px 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: rgba(8, 13, 11, .68);
  border: 1px solid rgba(189, 246, 80, .72);
  outline: 1px solid #18372d;
  outline-offset: 4px;
}

.hero-mark .eyebrow {
  position: absolute;
  top: 13px;
  left: 24px;
  margin: 0;
}

.wordmark {
  margin: 0 auto;
  overflow: hidden;
  color: var(--green);
  font: clamp(6px, 1.25vw, 15px)/1.05 var(--mono);
  white-space: pre;
}

.eyebrow {
  color: var(--dim);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .13em;
}

.hero-mark h1 {
  margin: 18px 0 0;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .035em;
}

.hero-panel-meta {
  width: auto;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--dim);
  font-size: 8px;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.hero-panel-meta .bracket-link {
  min-height: 25px;
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  border-color: transparent;
}

.hero-state {
  width: 240px;
  margin-top: 8px;
}

.state-head,
.inspector-head,
.source-meta {
  padding-bottom: 9px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}

.state-head b,
.inspector-head b,
.source-meta span { color: var(--green); font-weight: 500; }

.hero-state dl { margin: 7px 0; }
.hero-state dl div {
  padding: 1px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 7px;
}
.hero-state dt { color: var(--dim); }
.hero-state dd { margin: 0; color: var(--text); }

.system-pulse {
  margin: 8px 0;
  padding: 8px 0;
  display: flex;
  gap: 8px;
  list-style: none;
  color: #405c53;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  font-size: 8px;
}
.system-pulse li:not(:last-child)::after { content: ' →'; }
.system-pulse li.is-active { color: var(--green); }

.terminal-time {
  display: flex;
  justify-content: space-between;
  color: var(--dim);
  font-size: 9px;
}
.terminal-time time { color: var(--cyan); }

.section {
  padding: var(--space-section) 56px;
  border-top: 1px solid var(--line);
}

.section-label {
  margin-bottom: 22px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.section-label span { color: var(--dim); font-size: 10px; }
.section-label h2 {
  margin: 0;
  color: var(--cyan);
  font-size: 17px;
  font-weight: 600;
}
.section-label > b {
  margin-left: auto;
  color: var(--green);
  font-size: 9px;
  font-weight: 500;
}

.terminal-information {
  min-height: 210px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 62px;
  align-items: start;
}

.info-metadata { margin: 0; }
.info-metadata > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 4px 0;
}
.info-metadata dt { color: #789a90; font-size: 15px; }
.info-metadata dd { margin: 0; color: var(--text); font-size: 15px; font-weight: 400; }
.info-ca dd { min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.info-ca-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-copy {
  margin: 0;
  padding: 0;
  flex: none;
  color: var(--green);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}
.info-copy:disabled { color: var(--dim); cursor: default; }
.info-machine { display: grid; justify-items: center; }
.info-machine img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  opacity: .9;
  filter: saturate(.82) contrast(1.08);
  clip-path: inset(24%);
  transform: translateY(-10px) scale(1.9);
  image-rendering: pixelated;
}

.what-is-block {
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.what-is-block > h3 {
  margin: 0 0 28px;
  color: var(--cyan);
  font-size: 18px;
  font-weight: 700;
}

.information-grid { display: block; }
.long-copy { max-width: var(--text-width); }
.long-copy p {
  margin: 0 0 20px;
  color: #b1c9c1;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
}
.long-copy p:first-child { color: var(--cyan); }

.identity-chain {
  max-width: var(--text-width);
  margin-top: 28px;
  padding-top: 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  color: var(--dim);
  border-top: 1px dashed var(--line);
  font-size: 10px;
  font-weight: 600;
}
.identity-chain i { color: #405c53; font-style: normal; }
.identity-chain strong { color: var(--green); font-weight: 500; }

.proof-statement,
.axiom {
  margin: 28px 0 0;
  padding-left: 14px;
  color: var(--green);
  border-left: 1px solid rgba(189, 246, 80, .68);
  font-size: 9px;
  font-style: normal;
  letter-spacing: .06em;
}

.concept-title {
  margin: 0 0 24px;
  color: var(--text);
  font-size: clamp(23px, 3.2vw, 35px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -.04em;
}
.concept-title em { color: var(--text); font-style: normal; font-weight: inherit; }

.question-copy { max-width: 700px; }
.question-copy p,
.archive-intro p,
.rules-intro p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.75;
}

.concept-actions {
  margin-top: 26px;
  display: flex;
  gap: 10px;
}

.system-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 44px;
  align-items: start;
}

.system-nodes { border-top: 1px solid var(--line); }

.system-node {
  width: 100%;
  min-height: 58px;
  padding: 13px 4px;
  display: grid;
  grid-template-columns: 38px 156px 1fr;
  gap: 10px;
  align-items: center;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  font: inherit;
  cursor: pointer;
}
.system-node:hover,
.system-node.is-active { background: rgba(189, 246, 80, .025); }
.system-node span { color: var(--dim); font-size: 9px; }
.system-node b { color: var(--cyan); font-size: 12px; font-weight: 600; }
.system-node small { color: var(--muted); font-size: 10px; font-weight: 500; }
.system-node.is-active b { color: var(--green); }

.system-inspector,
.room-inspector,
.habitation-index {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.system-inspector h3,
.room-inspector h3 {
  margin: 20px 0 18px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 500;
}

.inspector-data { margin: 0; }
.inspector-data > div {
  padding: 8px 0;
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 12px;
  border-bottom: 1px dashed rgba(24, 48, 40, .7);
}
.inspector-data dt { color: var(--dim); font-size: 9px; }
.inspector-data dd { margin: 0; color: var(--text); font-size: 10px; font-weight: 500; overflow-wrap: anywhere; }
.system-inspector > p {
  margin: 18px 0 0;
  padding-left: 12px;
  color: var(--dim);
  border-left: 1px solid var(--green);
  font-size: 9px;
  line-height: 1.7;
}

.room-toolbar {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.room-toolbar button { min-height: 30px; padding: 6px 9px; border-color: transparent; }
.room-toolbar span {
  margin-left: auto;
  color: var(--dim);
  font-size: 9px;
}

.room-console {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  border: 1px solid var(--line);
  background: rgba(13, 21, 18, .38);
}

.room-stage {
  min-width: 0;
  padding: 28px;
  position: relative;
  overflow: auto;
  border-right: 1px solid var(--line);
}

.room-canvas {
  width: max-content;
  position: relative;
}

#roomAscii {
  margin: 0;
  width: max-content;
  display: block;
  color: #82b9a8;
  font: clamp(9px, 1.05vw, 13px)/1.5 var(--mono);
  white-space: pre;
}

.room-hotspots { position: absolute; inset: 0; pointer-events: none; }
.room-hotspots button {
  margin: 0;
  padding: 0;
  position: absolute;
  pointer-events: auto;
  color: transparent;
  background: transparent;
  border: 1px solid transparent;
  cursor: crosshair;
}
.room-hotspots button:hover,
.room-hotspots button.is-active {
  border-color: rgba(189, 246, 80, .72);
  background: rgba(189, 246, 80, .025);
}
.room-hotspots button:nth-child(1) { z-index: 0; }
.room-hotspots button:not(:first-child) { z-index: 1; }

.room-inspector { padding: 20px; border-left: 0; }
.object-type {
  margin: -10px 0 20px;
  color: var(--dim);
  font-size: 7px;
}
.room-inspector .inspector-data > div { grid-template-columns: 110px 1fr; }

.room-metrics {
  padding: 11px 4px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.room-metrics > div { padding: 0 12px; border-right: 1px dashed var(--line); }
.room-metrics > div:last-child { border-right: 0; }
.room-metrics span { display: block; color: var(--dim); font-size: 8px; }
.room-metrics b { color: var(--cyan); font-size: 10px; font-weight: 600; }

.window-observation {
  margin-top: 18px;
  padding: 12px 0 0 14px;
  border-left: 1px solid var(--line);
}
.window-observation > div { display: flex; justify-content: space-between; gap: 20px; }
.window-observation span,
.window-observation b { font-size: 9px; }
.window-observation span { color: var(--cyan); }
.window-observation b { color: var(--green); font-weight: 500; }
.window-observation p { margin: 6px 0 0; color: var(--dim); font-size: 9px; }

.memory-statement,
.archive-statement {
  margin: 38px 0 0 auto;
  color: var(--dim);
  font-size: 9px;
  text-align: right;
}

.habitation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 68px;
}
.compact-copy p { font-size: 14px; }
.habitation-index { align-self: start; }
.habitation-index .inspector-data > div { grid-template-columns: 1fr auto; }

.room-root-panel {
  margin-top: 38px;
  padding: 22px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.room-root-panel span { color: var(--dim); font-size: 9px; }
.room-root-panel h3 {
  margin: 11px 0;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 500;
}
.room-root-panel p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.root-value { display: flex; flex-direction: column; align-items: flex-start; }
.root-value b {
  max-width: 100%;
  margin: 11px 0 3px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.root-value em { color: var(--dim); font-size: 7px; font-style: normal; }
.root-value button { margin-top: 15px; }

.rules-intro {
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: end;
}
.rules-intro .concept-title { margin: 0; font-size: 26px; }

.policy-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.policy-list button {
  width: 100%;
  min-height: 58px;
  padding: 14px 4px;
  display: grid;
  grid-template-columns: 48px 230px 1fr auto;
  gap: 10px;
  align-items: center;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  font: inherit;
  cursor: pointer;
}
.policy-list button:hover { background: rgba(189, 246, 80, .025); }
.policy-list span,
.policy-list em { color: var(--dim); font-size: 8px; font-style: normal; }
.policy-list b { color: var(--cyan); font-size: 11px; font-weight: 600; }
.policy-list strong { color: var(--green); font-size: 7px; font-weight: 500; }
.section-footnote { margin: 20px 0 0; color: var(--dim); font-size: 9px; }

.door-section { min-height: 0; text-align: center; }
.door-section .section-label { text-align: left; }
.door-visual {
  margin: 8px auto 20px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;
  cursor: pointer;
}
.door-visual-image {
  width: 96px;
  height: auto;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
}
.door-section > h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
}
.door-section > p { margin: 0 0 20px; color: var(--muted); font-size: 12px; }

.archive-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.archive-intro ul {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  list-style: none;
  border-top: 1px solid var(--line);
}
.archive-intro li {
  padding: 8px 2px;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}

.archive-timeline { margin-top: 38px; }
.timeline-entry,
.timeline-awaiting {
  min-height: 78px;
  display: grid;
  grid-template-columns: 54px 20px 1fr;
  align-items: stretch;
  color: var(--text);
}
.timeline-entry > span,
.timeline-awaiting > span { padding-top: 3px; color: var(--dim); font-size: 8px; }
.timeline-entry > i,
.timeline-awaiting > i {
  width: 1px;
  margin: 0 auto;
  position: relative;
  background: var(--line);
}
.timeline-entry > i::before,
.timeline-awaiting > i::before {
  content: '';
  width: 5px;
  height: 5px;
  position: absolute;
  top: 5px;
  left: -2px;
  background: var(--bg);
  border: 1px solid var(--green);
}
.timeline-entry > div,
.timeline-awaiting > div { padding: 0 0 28px 14px; }
.timeline-entry b,
.timeline-awaiting b { color: var(--cyan); font-size: 10px; font-weight: 600; }
.timeline-entry p,
.timeline-awaiting p { margin: 5px 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.timeline-entry em { color: var(--dim); font-size: 7px; font-style: normal; }
.verified-entry { width: 100%; padding: 0; text-align: left; background: transparent; border: 0; font: inherit; cursor: pointer; }

.notes-heading {
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
}
.notes-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}
.notes-heading p { margin: 0; color: var(--dim); font-size: 9px; }

.note-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.note-grid button {
  min-height: 190px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font: inherit;
  cursor: pointer;
}
.note-grid button:hover { background: rgba(189, 246, 80, .028); }
.note-grid span,
.note-grid em { color: var(--dim); font-size: 8px; font-style: normal; }
.note-grid b { margin: 25px 0 11px; color: var(--cyan); font-size: 14px; font-weight: 500; }
.note-grid p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.note-grid em { margin-top: auto; padding-top: 18px; }
.note-grid i { align-self: flex-end; color: var(--green); font-size: 9px; font-style: normal; }

.core-invite {
  padding: 82px 56px 90px;
  border-top: 1px solid var(--line);
}
.core-invite > span { color: var(--dim); font-size: 8px; }
.core-invite h2 {
  max-width: 760px;
  margin: 18px 0 30px;
  color: var(--text);
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.035em;
}

footer {
  min-height: 82px;
  padding: 23px max(22px, calc((100vw - 1008px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 26px;
  color: var(--dim);
  background: #101916;
  border-top: 1px solid rgba(189, 246, 80, .62);
  font-size: 8px;
}
footer > div { display: flex; gap: 10px; }
footer b { color: var(--green); font-weight: 500; }
.footer-links { justify-content: center; }
.footer-links a,
.footer-links button { color: var(--cyan); background: transparent; border: 0; font: inherit; cursor: pointer; }
footer p { margin: 0; text-align: right; }

.modal-open { overflow: hidden; }
.research-window[hidden] { display: none; }
.research-window {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}
.research-backdrop { position: absolute; inset: 0; background: rgba(2, 7, 5, .9); }
.research-shell {
  width: min(760px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--bg);
  border: 1px solid rgba(189, 246, 80, .62);
}
.reading-window .research-shell { width: min(840px, 100%); }
.source-window .research-shell { width: min(920px, 100%); }
.source-window.is-expanded .research-shell { width: min(1080px, 100%); max-height: calc(100vh - 28px); }

.research-head {
  min-height: 50px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  background: #101916;
  border-bottom: 1px solid var(--line);
}
.research-head > div { display: flex; align-items: center; gap: 12px; }
.research-head span { color: var(--dim); font-size: 9px; }
.research-head b { color: var(--green); font-size: 10px; font-weight: 500; }
.research-head button { min-height: 28px; padding: 5px 8px; }

.research-content {
  min-height: 0;
  padding: 24px;
  overflow: auto;
}
.reading-window .research-content {
  scrollbar-width: thin;
  scrollbar-color: #d8ff00 transparent;
}
.reading-window .research-content::-webkit-scrollbar {
  width: 6px;
}
.reading-window .research-content::-webkit-scrollbar-track {
  background: transparent;
}
.reading-window .research-content::-webkit-scrollbar-thumb {
  background: #d8ff00;
  border-radius: 2px;
}
.reading-window .research-content::-webkit-scrollbar-thumb:hover {
  background: #e4ff4d;
}
.research-content > h2 {
  margin: 0 0 24px;
  color: var(--cyan);
  font-size: 18px;
  font-weight: 600;
}
.research-grid { margin: 0; border-top: 1px solid var(--line); }
.research-grid > div {
  padding: 11px 2px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.research-grid dt { color: var(--dim); font-size: 9px; }
.research-grid dd { margin: 0; color: var(--text); font-size: 10px; }
.research-body-copy { max-width: 620px; margin-top: 26px; }
.research-body-copy p,
.boundary-copy,
.knock-window .research-content p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}
.research-warning {
  margin: 22px 0 0;
  padding-left: 12px;
  color: var(--dim);
  border-left: 1px solid var(--green);
  font-size: 9px;
}
.research-footer {
  min-height: 45px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--dim);
  background: #101916;
  border-top: 1px solid var(--line);
  font-size: 9px;
}

.modal-signals { margin: 24px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.interaction-state {
  padding: 12px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
}
.interaction-state b { color: var(--green); font-size: 9px; font-weight: 500; }
.interaction-state span { color: var(--dim); font-size: 8px; }

.source-browser {
  min-height: 410px;
  display: grid;
  grid-template-columns: 175px minmax(0, 1fr);
  border: 1px solid var(--line);
}
.source-tree {
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-right: 1px solid var(--line);
}
.source-tree span { margin: 10px 4px 4px; color: var(--dim); font-size: 8px; }
.source-tree button {
  padding: 6px 7px;
  color: var(--muted);
  text-align: left;
  background: transparent;
  border: 0;
  font: 9px var(--mono);
  cursor: pointer;
}
.source-tree button:hover,
.source-tree button.is-active { color: var(--green); }
.source-view { min-width: 0; display: flex; flex-direction: column; }
.source-meta { margin: 0; padding: 12px 14px; }
.source-meta b { color: var(--cyan); font-size: 9px; font-weight: 500; }
.source-view pre {
  min-height: 270px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  color: var(--text);
  font: 10px/1.65 var(--mono);
  tab-size: 2;
}
.source-explanation {
  margin-top: auto;
  padding: 13px 18px;
  color: var(--dim);
  border-top: 1px solid var(--line);
  font-size: 9px;
}

.reading-meta { margin-bottom: 20px; color: var(--dim); font-size: 9px; }
.reading-article { max-width: 680px; }
.reading-article h2 { margin: 38px 0 13px; color: var(--cyan); font-size: 15px; font-weight: 500; }
.reading-article p { margin: 0 0 18px; color: var(--text); font-size: 14px; line-height: 1.85; }
.reading-article blockquote {
  margin: 28px 0;
  padding: 14px;
  color: var(--green);
  border: 1px solid var(--line);
  font-size: 14px;
}

.article-main {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 0 42px 90px;
}
.article-hero { padding: 74px 0 48px; border-bottom: 1px solid var(--line); }
.article-kicker,
.article-meta { color: var(--green); font-size: 8px; letter-spacing: .06em; }
.article-hero h1 {
  max-width: 780px;
  margin: 18px 0;
  color: var(--text);
  font-size: clamp(32px, 6vw, 62px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.055em;
}
.article-hero > p { max-width: 700px; margin: 0; color: var(--muted); font-size: 13px; }
.article-meta { margin-top: 26px; color: var(--dim); }
.article-body { max-width: 720px; padding: 55px 0; }
.article-body h2 { margin: 48px 0 16px; color: var(--cyan); font-size: 18px; font-weight: 500; }
.article-body p { margin: 0 0 22px; color: #acc4bc; font: 16px/1.85 Georgia, serif; }
.article-body blockquote { margin: 36px 0; padding: 20px; color: var(--green); border: 1px solid var(--line); font: 16px/1.7 var(--mono); }
.article-nav { padding-top: 30px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); font-size: 9px; }
.article-nav a { color: var(--green); text-decoration: none; }
.article-main .policy-list a {
  min-height: 64px;
  padding: 14px 4px;
  display: grid;
  grid-template-columns: 42px 1fr 100px;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.article-main .policy-list a:hover { background: rgba(189, 246, 80, .025); }

.reveal {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .32s ease, transform .32s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

button:focus-visible,
a:focus-visible { outline: 1px solid var(--green); outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .5; }

@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 900px) {
  .terminal-information { grid-template-columns: minmax(0, 1fr) 260px; gap: 36px; }
  .system-layout,
  .habitation-grid { grid-template-columns: 1fr; }
  .system-inspector,
  .habitation-index { padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .room-console { grid-template-columns: 1fr; }
  .room-stage { border-right: 0; border-bottom: 1px solid var(--line); }
  .room-inspector { border-left: 0; }
}

@media (max-width: 760px) {
  .site-header { height: 58px; padding: 0 12px; gap: 14px; }
  .prompt { font-size: 12px; }
  .nav-scroll { overflow-x: auto; scrollbar-width: none; }
  .nav-scroll::-webkit-scrollbar { display: none; }
  nav { width: max-content; gap: 8px; }
  nav a { padding: 7px 5px; font-size: 8px; }
  .nav-code { padding-inline: 9px; font-size: 8px; }
  .x-link { min-width: 42px; padding-inline: 10px; }
  main { width: 100%; }
  .hero { padding: 34px 16px 44px; }
  .hero-mark { min-height: 174px; padding: 18px 8px; }
  .wordmark { font-size: clamp(4.5px, 1.85vw, 10px); }
  .hero-mark h1 { font-size: 12px; }
  .hero-mark .eyebrow { top: 10px; left: 12px; }
  .hero-panel-meta {
    width: 100%;
    margin-top: 8px;
    flex-direction: column;
    gap: 5px;
    position: static;
    transform: none;
    white-space: normal;
  }
  .terminal-information { grid-template-columns: 1fr; gap: 28px; }
  .info-machine { grid-template-columns: 96px minmax(0, 1fr); gap: 18px; justify-items: start; align-items: start; }
  .info-machine > img { width: 96px; height: 96px; }
  .hero-state { width: 100%; margin-top: 0; padding: 0 0 0 18px; border-left: 1px solid var(--line); }
  .section,
  .core-invite { padding: 42px 22px; }
  .rules-intro,
  .archive-intro,
  .room-root-panel { grid-template-columns: 1fr; gap: 28px; }
  .identity-chain { flex-wrap: wrap; padding-top: 14px; }
  .concept-title { font-size: 24px; }
  .system-node { grid-template-columns: 30px 128px 1fr; }
  .room-toolbar { flex-wrap: wrap; }
  .room-toolbar span { width: 100%; margin: 4px 0 0; }
  .room-stage { padding: 18px; }
  #roomAscii { font-size: 9px; }
  .room-metrics { grid-template-columns: 1fr 1fr; row-gap: 10px; }
  .room-metrics > div:nth-child(2) { border-right: 0; }
  .window-observation > div { display: grid; gap: 4px; }
  .policy-list button { grid-template-columns: 32px 1fr auto; }
  .policy-list em { grid-column: 2 / -1; }
  .notes-heading { display: block; }
  .notes-heading p { margin-top: 12px; }
  .note-grid { grid-template-columns: 1fr; }
  footer { padding: 22px; grid-template-columns: 1fr 1fr; }
  footer p { grid-column: 1 / -1; text-align: left; }
  .research-window { padding: 0; }
  .research-shell,
  .reading-window .research-shell,
  .source-window .research-shell,
  .source-window.is-expanded .research-shell {
    width: 100%;
    height: 100%;
    max-height: none;
    border: 0;
  }
  .research-content { padding: 20px; }
  .source-browser { grid-template-columns: 1fr; }
  .source-tree {
    padding: 10px;
    flex-direction: row;
    flex-wrap: wrap;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .source-tree span { width: 100%; }
  .source-view pre { min-height: 220px; }
  .article-main { padding: 0 22px 70px; }
  .article-hero { padding-top: 50px; }
  .article-body p { font-size: 15px; }
}

@media (max-width: 430px) {
  .hero-mark h1 { font-size: 11px; }
  .info-machine { grid-template-columns: 1fr; }
  .hero-state { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .system-node { grid-template-columns: 28px 1fr; }
  .system-node small { grid-column: 2; }
  .inspector-data > div,
  .research-grid > div { grid-template-columns: 1fr; gap: 3px; }
  .policy-list button { grid-template-columns: 28px 1fr auto; }
  .policy-list b { font-size: 9px; }
  .archive-intro ul { grid-template-columns: 1fr; }
  .article-main .policy-list a { grid-template-columns: 30px 1fr; }
  .article-main .policy-list em { display: none; }
}

@media (pointer: coarse), (max-width: 760px) {
  .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .cursor-glow { display: none; }
}
