:root {
  color-scheme: dark;
  --ink: #edf8f3;
  --muted: #8fa69d;
  --faint: #52675f;
  --paper: #07110f;
  --paper-soft: #0b1714;
  --panel: rgba(11, 24, 20, 0.82);
  --panel-strong: rgba(15, 31, 26, 0.96);
  --line: rgba(174, 220, 199, 0.15);
  --line-strong: rgba(174, 220, 199, 0.28);
  --mint: #a9fbd2;
  --mint-bright: #d8ffeb;
  --green: #51d99a;
  --cyan: #78dae0;
  --amber: #ffc870;
  --rose: #ff8f98;
  --violet: #b6a6ff;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1560px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 42% -15%, rgba(51, 166, 116, 0.12), transparent 42rem),
    linear-gradient(180deg, #07100e 0%, #07110f 58%, #050c0a 100%);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #04100b;
  background: var(--mint);
  border-radius: 4px;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 42rem;
  height: 42rem;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
}

.ambient--one {
  top: 18vh;
  right: -18rem;
  background: #3fcf93;
}

.ambient--two {
  bottom: 15vh;
  left: -24rem;
  background: #668cff;
}

.grain {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.masthead {
  position: sticky;
  z-index: 15;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 13, 11, 0.86);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  text-decoration: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.19em;
}

.brand small {
  margin-top: 3px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.brand__mark {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(169, 251, 210, 0.35);
  border-radius: 50%;
}

.brand__mark span {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 1px solid var(--mint);
  border-radius: 50%;
}

.brand__mark span:nth-child(2) {
  width: 21px;
  height: 8px;
}

.brand__mark span:nth-child(3) {
  width: 5px;
  height: 5px;
  background: var(--mint);
  box-shadow: 0 0 16px var(--mint);
}

.masthead__state,
.cycle-readout,
.state-pill {
  display: flex;
  align-items: center;
}

.masthead__state {
  gap: 26px;
}

.state-pill {
  gap: 8px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.state-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
}

.state-pill[data-state="live"] {
  color: var(--mint);
}

.state-pill[data-state="paused"],
.state-pill[data-state="error"] {
  color: var(--rose);
}

.cycle-readout {
  gap: 9px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.cycle-readout strong {
  color: var(--ink);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

main {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.55fr);
  gap: clamp(44px, 8vw, 130px);
  align-items: center;
  min-height: min(780px, calc(100svh - 76px));
  padding: 92px 0 72px;
}

.eyebrow,
.panel__kicker,
.section-index,
.window-clock,
.dialogue-cycle,
.belief-rule {
  font-family: var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--mint);
  font-size: 11px;
}

.hero h1 {
  max-width: 970px;
  margin: 20px 0 25px;
  font-size: clamp(47px, 6.6vw, 100px);
  font-weight: 430;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.hero h1 em {
  display: block;
  color: var(--mint-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero__lead {
  max-width: 760px;
  color: #acc0b7;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 36px;
}

.button {
  min-height: 47px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.07em;
  transition: 160ms ease;
}

.button:hover:not(:disabled) {
  border-color: var(--mint);
  transform: translateY(-1px);
}

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

.button--primary {
  display: inline-flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  min-width: min(100%, 325px);
  color: #06130e;
  border-color: var(--mint);
  background: var(--mint);
  box-shadow: 0 12px 50px rgba(71, 219, 151, 0.14);
}

.button--primary kbd {
  padding: 3px 6px;
  color: rgba(5, 18, 12, 0.65);
  border: 1px solid rgba(5, 18, 12, 0.22);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 8px;
}

.button--quiet {
  color: #abc0b7;
  background: rgba(255, 255, 255, 0.02);
}

.button--danger {
  color: var(--rose);
  border-color: rgba(255, 143, 152, 0.3);
}

.button--small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 9px;
}

.hero__hint {
  max-width: 580px;
  margin: 18px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
}

.boundary-card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-top-color: rgba(169, 251, 210, 0.42);
  background:
    linear-gradient(140deg, rgba(32, 76, 60, 0.21), transparent 50%),
    rgba(8, 19, 16, 0.76);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.26);
}

.boundary-card::before,
.boundary-card::after {
  position: absolute;
  width: 14px;
  height: 14px;
  content: "";
  border-color: var(--mint);
}

.boundary-card::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.boundary-card::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.boundary-card__topline {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
}

.boundary-card__live {
  color: var(--mint);
}

.boundary-stack {
  margin: 24px 0 22px;
}

.boundary-stack > div {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.boundary-stack dt {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boundary-stack dd {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.boundary-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
}

.boundary-dot--observed { background: var(--mint); }
.boundary-dot--inferred { background: var(--cyan); }
.boundary-dot--synthetic { background: var(--violet); }
.boundary-dot--unknown { border: 1px solid var(--amber); }

.boundary-card__notice {
  margin: 0;
  padding: 13px;
  color: var(--amber);
  border: 1px solid rgba(255, 200, 112, 0.17);
  background: rgba(255, 200, 112, 0.035);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.65;
  text-transform: uppercase;
}

.consent-strip,
.instrument,
.dream-section,
.dialogue-section,
.belief-section,
.objective-section,
.ledger-section {
  border-top: 1px solid var(--line);
}

.consent-strip {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 34px;
  align-items: center;
  padding: 30px 0;
}

.section-index {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--faint);
  font-size: 9px;
}

.section-index span {
  color: var(--mint);
  font-size: 10px;
}

.section-index p {
  margin: 0;
}

.consent-strip__content {
  display: flex;
  gap: 38px;
  align-items: center;
  justify-content: space-between;
}

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

.consent-copy strong {
  font-size: 14px;
}

.consent-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.source-permissions {
  display: flex;
  gap: 8px;
}

.permission-button {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 205px;
  padding: 11px 13px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.018);
}

.permission-button:hover {
  border-color: var(--line-strong);
  background: rgba(169, 251, 210, 0.03);
}

.permission-button__icon {
  display: grid;
  width: 25px;
  height: 25px;
  color: var(--mint);
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.permission-button strong,
.permission-button small {
  display: block;
}

.permission-button strong {
  font-size: 11px;
}

.permission-button small {
  margin-top: 3px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.permission-button[data-state="active"] small {
  color: var(--mint);
}

.permission-button[data-state="denied"] small,
.permission-button[data-state="error"] small {
  color: var(--rose);
}

.consent-detail {
  position: relative;
  font-family: var(--mono);
  font-size: 9px;
}

.consent-detail summary {
  color: var(--faint);
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 4px;
}

.consent-detail p {
  position: absolute;
  z-index: 4;
  top: 24px;
  right: 0;
  width: min(420px, 82vw);
  margin: 0;
  padding: 16px;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  background: var(--panel-strong);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.45);
}

.instrument,
.dream-section,
.dialogue-section,
.belief-section,
.objective-section,
.ledger-section {
  padding: 78px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 34px;
  align-items: start;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: -5px 0 6px;
  font-size: clamp(25px, 3vw, 42px);
  font-weight: 460;
  letter-spacing: -0.035em;
}

.section-heading > div:nth-child(2) > p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
}

.window-clock {
  min-width: 180px;
  color: var(--faint);
  font-size: 8px;
  text-align: right;
}

.window-clock strong {
  display: block;
  margin: 3px 0 7px;
  color: var(--ink);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.window-clock__track {
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.window-clock__track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  transition: width 100ms linear;
}

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

.source-card {
  position: relative;
  min-height: 185px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 22, 18, 0.58);
}

.source-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 28px;
  height: 1px;
  content: "";
  background: var(--source-color, var(--mint));
  opacity: 0.7;
}

.source-card--empty {
  grid-column: 1 / -1;
  min-height: 130px;
  color: var(--muted);
}

.source-card--empty p {
  margin: 16px 0 4px;
  color: var(--ink);
  font-size: 18px;
}

.source-card__head,
.source-card__value,
.source-card__meta {
  display: flex;
  justify-content: space-between;
}

.source-card__head {
  align-items: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.source-status {
  padding: 3px 5px;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 7px;
}

.source-status[data-state="measured"] {
  color: var(--mint);
  border-color: rgba(169, 251, 210, 0.3);
}

.source-status[data-state="error"],
.source-status[data-state="denied"] {
  color: var(--rose);
  border-color: rgba(255, 143, 152, 0.25);
}

.source-card__value {
  align-items: flex-end;
  margin: 25px 0 18px;
}

.source-card__value strong {
  font-family: var(--mono);
  font-size: clamp(25px, 2.4vw, 36px);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.source-card__value span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
}

.source-card__meter {
  height: 2px;
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.05);
}

.source-card__meter i {
  display: block;
  height: 100%;
  background: var(--source-color, var(--mint));
  box-shadow: 0 0 9px color-mix(in srgb, var(--source-color, var(--mint)) 70%, transparent);
}

.source-card__meta {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.5;
  text-transform: uppercase;
}

.model-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(410px, 0.75fr);
  gap: 1px;
  margin: 0 calc(clamp(20px, 4vw, 64px) * -1);
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.panel {
  padding: clamp(30px, 4vw, 62px);
  background:
    radial-gradient(circle at 50% 35%, rgba(46, 139, 100, 0.08), transparent 55%),
    #08130f;
}

.panel__header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.panel__kicker {
  color: var(--mint);
  font-size: 8px;
}

.panel__header h2 {
  margin: 7px 0 0;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 470;
  letter-spacing: -0.035em;
}

.legend {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
}

.legend i {
  width: 12px;
  height: 2px;
  margin-left: 7px;
}

.legend__observed { background: var(--mint); }
.legend__forecast { background: var(--violet); }

.field-figure {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(180px, 0.45fr);
  gap: 18px;
  align-items: center;
  min-height: 490px;
}

#evidence-aperture {
  width: min(100%, 540px);
  max-height: 500px;
  overflow: visible;
}

.field-orbit {
  fill: none;
  stroke: rgba(185, 223, 205, 0.09);
  stroke-width: 1;
}

.field-orbit--edge {
  stroke: rgba(185, 223, 205, 0.13);
  stroke-dasharray: 1 8;
  stroke-linecap: round;
}

.field-axis {
  stroke: rgba(185, 223, 205, 0.11);
  stroke-width: 1;
}

.field-axis-label {
  fill: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  text-anchor: middle;
}

.field-polygon {
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}

.field-polygon--observed {
  fill: rgba(169, 251, 210, 0.08);
  stroke: var(--mint);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 7px rgba(169, 251, 210, 0.22));
}

.field-polygon--forecast {
  fill: rgba(182, 166, 255, 0.025);
  stroke: var(--violet);
  stroke-width: 1;
  stroke-dasharray: 4 5;
}

.field-point {
  fill: var(--paper);
  stroke: var(--mint);
  stroke-width: 2;
}

.field-point--missing {
  fill: transparent;
  stroke: var(--faint);
  stroke-width: 1;
}

.field-center {
  fill: var(--mint);
  filter: drop-shadow(0 0 8px var(--mint));
}

.field-callout {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.field-callout span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.field-callout strong {
  display: block;
  margin: 9px 0;
  color: var(--mint-bright);
  font-family: var(--mono);
  font-size: clamp(16px, 1.8vw, 24px);
  line-height: 1.25;
}

.field-callout p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.metric-rack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.metric-rack > div {
  padding: 13px;
  background: rgba(8, 19, 15, 0.96);
}

.metric-rack span,
.metric-rack strong {
  display: block;
  font-family: var(--mono);
}

.metric-rack span {
  color: var(--faint);
  font-size: 7px;
}

.metric-rack strong {
  margin: 6px 0 9px;
  font-size: 15px;
}

.metric-rack i {
  display: block;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
}

.metric-rack b {
  display: block;
  width: 0;
  height: 100%;
  background: var(--mint);
  transition: width 450ms ease;
}

.audit-seal,
.dialogue-cycle,
.belief-rule {
  padding: 6px 8px;
  color: var(--faint);
  border: 1px solid var(--line);
  font-size: 7px;
}

.audit-seal[data-state="sealed"] {
  color: var(--mint);
  border-color: rgba(169, 251, 210, 0.28);
}

.audit-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 15px;
  align-items: center;
  margin: 44px 0 28px;
}

.audit-flow > div {
  padding: 14px;
  border: 1px solid var(--line);
}

.audit-flow span,
.audit-flow strong,
.audit-flow small {
  display: block;
  font-family: var(--mono);
}

.audit-flow span {
  color: var(--faint);
  font-size: 7px;
}

.audit-flow strong {
  margin: 6px 0;
  color: var(--mint);
  font-size: 12px;
}

.audit-flow small {
  color: var(--muted);
  font-size: 7px;
}

.audit-flow > b {
  color: var(--faint);
  font-weight: 400;
}

.expert-board {
  border-top: 1px solid var(--line);
}

.expert-row {
  display: grid;
  grid-template-columns: 1fr 70px 70px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8px;
}

.expert-row span {
  color: var(--muted);
}

.expert-row strong {
  font-size: 9px;
  font-weight: 500;
  text-align: right;
}

.expert-row em {
  color: var(--faint);
  font-style: normal;
  text-align: right;
}

.improvement-card {
  margin-top: 26px;
  padding: 18px;
  border: 1px solid rgba(255, 200, 112, 0.2);
  background: rgba(255, 200, 112, 0.025);
}

.improvement-card > span,
.improvement-card > strong {
  display: block;
  font-family: var(--mono);
}

.improvement-card > span {
  color: var(--faint);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.improvement-card > strong {
  margin: 7px 0;
  color: var(--amber);
  font-size: 18px;
}

.improvement-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.improvement-card[data-status="improved"] {
  border-color: rgba(169, 251, 210, 0.24);
}

.improvement-card[data-status="improved"] > strong {
  color: var(--mint);
}

.improvement-card[data-status="regressed"] > strong {
  color: var(--rose);
}

.memory-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 26px;
  background: var(--line);
  border: 1px solid var(--line);
}

.memory-stats > div {
  padding: 12px;
  background: #08130f;
}

.memory-stats span,
.memory-stats strong {
  display: block;
  font-family: var(--mono);
}

.memory-stats span {
  color: var(--faint);
  font-size: 7px;
}

.memory-stats strong {
  margin-top: 5px;
  font-size: 11px;
}

.dream-section {
  position: relative;
}

.section-heading--dream {
  margin-bottom: 42px;
}

.dream-cadence {
  padding: 7px 9px;
  color: var(--cyan);
  border: 1px solid rgba(120, 218, 224, 0.22);
  background: rgba(120, 218, 224, 0.035);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.dream-layout {
  display: grid;
  grid-template-columns: minmax(290px, 0.8fr) minmax(520px, 1.55fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.question-stage,
.dream-stage {
  min-width: 0;
  margin: 0;
  background: rgba(7, 18, 15, 0.96);
}

.question-stage {
  display: flex;
  min-height: 540px;
  padding: clamp(22px, 3vw, 42px);
  flex-direction: column;
}

.question-stage__topline {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.question-stage__topline code {
  overflow: hidden;
  max-width: 46%;
  color: var(--faint);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.question-stage h3 {
  margin: clamp(34px, 6vh, 72px) 0 34px;
  font-size: clamp(27px, 3vw, 47px);
  font-weight: 410;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.question-stage h3::before {
  color: var(--violet);
  content: "“";
}

.question-stage h3::after {
  color: var(--violet);
  content: "”";
}

.question-receipt {
  display: grid;
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.question-receipt > div {
  padding: 12px 14px;
  background: #08130f;
}

.question-receipt dt,
.question-history-wrap > span,
.dream-memory-heading > span,
.dream-stage figcaption span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.question-receipt dd {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.question-receipt code {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 8px;
}

.question-history-wrap {
  margin-top: auto;
  padding-top: 28px;
}

.question-history-wrap ol {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.question-history-wrap li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  font-size: 9px;
}

.question-history-wrap li code {
  color: var(--violet);
  font-family: var(--mono);
  font-size: 7px;
}

.dream-stage {
  display: flex;
  flex-direction: column;
}

.dream-stage__canvas-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 0;
  background:
    radial-gradient(circle at 68% 42%, rgba(120, 218, 224, 0.11), transparent 34%),
    linear-gradient(145deg, #08120f, #060b0a 65%);
}

.dream-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dream-stage__ontology {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 7px;
  color: rgba(216, 255, 235, 0.7);
  border: 1px solid rgba(216, 255, 235, 0.16);
  background: rgba(4, 11, 9, 0.56);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.09em;
  backdrop-filter: blur(8px);
}

.dream-stage figcaption {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}

.dream-stage figcaption p {
  max-width: 720px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}

#dream-boundary {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 8px;
}

.dream-stage__actions {
  display: flex;
  gap: 9px;
  align-items: flex-end;
  flex-direction: column;
  flex-shrink: 0;
}

.dream-stage__actions code {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
}

.dream-memory-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 30px 0 11px;
}

.dream-memory-heading p {
  margin: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
}

.dream-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  background: var(--line);
  list-style: none;
}

.dream-gallery__empty {
  grid-column: 1 / -1;
  padding: 32px;
  color: var(--faint);
  background: #08130f;
  font-family: var(--mono);
  font-size: 8px;
  text-align: center;
}

.dream-gallery__item {
  min-width: 0;
  background: #08130f;
}

.dream-gallery__image {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #050b09;
}

.dream-gallery canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.dream-gallery__caption {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.dream-gallery__caption strong,
.dream-gallery__caption span,
.dream-gallery__caption code {
  display: block;
  font-family: var(--mono);
}

.dream-gallery__caption strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dream-gallery__caption span,
.dream-gallery__caption code {
  margin-top: 3px;
  color: var(--faint);
  font-size: 6px;
}

.dream-gallery__export {
  display: grid;
  width: 31px;
  height: 31px;
  padding: 0;
  color: var(--mint);
  border: 1px solid var(--line);
  cursor: pointer;
  place-items: center;
  background: transparent;
  font-family: var(--mono);
  font-size: 11px;
}

.dream-gallery__export:hover {
  border-color: var(--line-strong);
  background: rgba(169, 251, 210, 0.04);
}

.dialogue-section {
  position: relative;
}

.section-heading--dialogue {
  margin-bottom: 45px;
}

.dialogue-shell {
  display: grid;
  grid-template-columns: 130px minmax(0, 900px);
  gap: 34px;
  justify-content: center;
}

.dialogue-rail {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 20px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.dialogue-rail i {
  width: 1px;
  height: 38px;
  margin-right: 5px;
  background: linear-gradient(var(--line-strong), var(--line));
}

.message-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.message {
  position: relative;
  width: min(88%, 680px);
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 3px 15px 15px 15px;
  background: rgba(13, 28, 23, 0.82);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.13);
}

.message:nth-child(even) {
  align-self: flex-end;
  border-radius: 15px 3px 15px 15px;
  background: rgba(20, 27, 35, 0.78);
}

.message--system {
  width: 100%;
  max-width: none;
  border-style: dashed;
  background: transparent;
}

.message__sender {
  color: var(--mint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.message:nth-child(even) .message__sender {
  color: var(--violet);
}

.message p {
  margin: 7px 0 10px;
  color: #c0d1c9;
  font-size: 13px;
}

.message small {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
}

.belief-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.belief-card {
  min-height: 235px;
  padding: 20px;
  background: #091510;
}

.belief-card--empty {
  grid-column: 1 / -1;
  min-height: 110px;
}

.belief-card__top {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.belief-card__id {
  color: var(--mint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.belief-card__status {
  padding: 3px 6px;
  color: var(--faint);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7px;
}

.belief-card__status[data-state="SUPPORTED"] { color: var(--mint); }
.belief-card__status[data-state="CHALLENGED"] { color: var(--rose); }

.belief-card h3 {
  min-height: 48px;
  margin: 15px 0 10px;
  font-size: 16px;
  font-weight: 490;
  line-height: 1.4;
}

.belief-card > p {
  min-height: 52px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.belief-evidence {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 18px;
  background: var(--line);
}

.belief-evidence > div {
  padding: 9px;
  background: #08120f;
}

.belief-evidence span,
.belief-evidence strong {
  display: block;
  font-family: var(--mono);
}

.belief-evidence span {
  color: var(--faint);
  font-size: 6px;
}

.belief-evidence strong {
  margin-top: 3px;
  font-size: 10px;
}

.belief-perturbation {
  margin-top: 14px;
  padding-top: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8px;
}

.objective-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.objective-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.objective-table th {
  padding: 12px 15px;
  color: var(--faint);
  background: rgba(255, 255, 255, 0.012);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-align: left;
}

.objective-table td {
  padding: 16px 15px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 11px;
  vertical-align: top;
}

.objective-table td:first-child {
  width: 31%;
  color: var(--ink);
  font-size: 12px;
}

.objective-id {
  display: block;
  margin-bottom: 5px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 8px;
}

.objective-state {
  display: inline-block;
  padding: 4px 6px;
  color: var(--faint);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7px;
}

.objective-state[data-state="PASS"] { color: var(--mint); }
.objective-state[data-state="FAIL"] { color: var(--rose); }
.objective-state[data-state="UNRESOLVED"] { color: var(--amber); }

.ledger-actions {
  display: flex;
  gap: 7px;
}

.ledger-status {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(11, 25, 20, 0.66);
}

.ledger-status__mark {
  display: grid;
  width: 34px;
  height: 34px;
  color: var(--mint);
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.ledger-status strong,
.ledger-status code {
  font-family: var(--mono);
}

.ledger-status strong {
  font-size: 10px;
  letter-spacing: 0.08em;
}

.ledger-status p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.ledger-status code {
  color: var(--faint);
  font-size: 9px;
}

.ledger-status[data-state="invalid"] {
  border-color: rgba(255, 143, 152, 0.32);
}

.ledger-status[data-state="invalid"] .ledger-status__mark {
  color: var(--rose);
}

.ledger-list {
  margin-top: 14px;
}

.ledger-empty {
  padding: 35px;
  color: var(--faint);
  border: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 9px;
  text-align: center;
}

.ledger-entry {
  border: 1px solid var(--line);
  border-top: 0;
}

.ledger-entry:first-child {
  border-top: 1px solid var(--line);
}

.ledger-entry summary {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 15px;
  cursor: pointer;
  list-style: none;
}

.ledger-entry summary:hover {
  background: rgba(169, 251, 210, 0.02);
}

.ledger-entry__seq,
.ledger-entry__hash,
.ledger-entry__status {
  font-family: var(--mono);
}

.ledger-entry__seq {
  color: var(--mint);
  font-size: 9px;
}

.ledger-entry__summary {
  color: var(--muted);
  font-size: 11px;
}

.ledger-entry__hash {
  color: var(--faint);
  font-size: 8px;
}

.ledger-entry__detail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.ledger-entry__detail > div {
  min-height: 90px;
  padding: 13px;
  background: #07110e;
}

.ledger-entry__detail span,
.ledger-entry__detail code {
  display: block;
  font-family: var(--mono);
}

.ledger-entry__detail span {
  color: var(--faint);
  font-size: 7px;
}

.ledger-entry__detail code {
  margin-top: 7px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 8px;
}

.footer {
  display: flex;
  gap: 25px;
  justify-content: space-between;
  padding: 26px clamp(20px, 4vw, 64px);
  color: var(--faint);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.footer p {
  margin: 0;
}

.footer strong {
  margin-right: 10px;
  color: var(--muted);
}

dialog {
  max-width: 520px;
  padding: 0;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: #091510;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
}

dialog::backdrop {
  background: rgba(2, 7, 5, 0.76);
  backdrop-filter: blur(8px);
}

.dialog-card {
  padding: 28px;
}

.dialog-card > span {
  color: var(--rose);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.dialog-card h2 {
  margin: 10px 0;
  font-size: 26px;
  font-weight: 470;
}

.dialog-card p {
  color: var(--muted);
}

.dialog-card > div {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}

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

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr 380px;
    gap: 55px;
  }

  .consent-strip {
    grid-template-columns: 100px 1fr;
  }

  .consent-detail {
    grid-column: 2;
  }

  .consent-strip__content {
    align-items: flex-start;
  }

  .source-permissions {
    flex-direction: column;
  }

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

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

  .panel--audit {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .masthead {
    min-height: 66px;
  }

  .brand small,
  .cycle-readout {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 76px 0 58px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 76px);
  }

  .hero__lead {
    font-size: 17px;
  }

  .consent-strip,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .consent-detail {
    grid-column: auto;
  }

  .consent-strip__content {
    flex-direction: column;
  }

  .source-permissions,
  .permission-button {
    width: 100%;
  }

  .window-clock {
    width: 100%;
    text-align: left;
  }

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

  .panel {
    padding: 30px 20px;
  }

  .field-figure {
    grid-template-columns: 1fr;
  }

  .field-callout {
    padding: 16px;
    border: 1px solid var(--line);
  }

  .dream-layout {
    grid-template-columns: 1fr;
  }

  .question-stage {
    min-height: auto;
  }

  .question-stage h3 {
    margin-top: 42px;
  }

  .question-history-wrap {
    margin-top: 30px;
  }

  .dream-cadence {
    justify-self: start;
  }

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

  .dialogue-shell {
    grid-template-columns: 1fr;
  }

  .dialogue-rail {
    display: none;
  }

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

  .belief-rule,
  .dialogue-cycle {
    justify-self: start;
  }

  .ledger-actions {
    flex-wrap: wrap;
  }

  .ledger-entry summary {
    grid-template-columns: 62px 1fr;
  }

  .ledger-entry__hash {
    grid-column: 2;
  }

  .ledger-entry__detail {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  main {
    padding: 0 15px;
  }

  .masthead {
    padding: 10px 15px;
  }

  .state-pill {
    font-size: 8px;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button--primary {
    width: 100%;
  }

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

  .model-grid {
    margin: 0 -15px;
  }

  .panel__header {
    flex-direction: column;
  }

  .legend {
    align-self: flex-start;
  }

  .field-figure {
    min-height: auto;
  }

  .metric-rack,
  .memory-stats {
    grid-template-columns: 1fr;
  }

  .audit-flow {
    grid-template-columns: 1fr;
  }

  .audit-flow > b {
    display: none;
  }

  .message {
    width: 95%;
  }

  .dream-stage figcaption,
  .dream-memory-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dream-stage__actions {
    width: 100%;
    align-items: flex-start;
  }

  .dream-gallery {
    grid-template-columns: 1fr;
  }

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

  .ledger-status {
    grid-template-columns: auto 1fr;
  }

  .ledger-status code {
    grid-column: 2;
  }
}

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

@media (forced-colors: active) {
  .dream-layout,
  .question-receipt,
  .dream-gallery,
  .dream-stage figcaption,
  .dream-gallery__export,
  .dream-cadence {
    border: 1px solid CanvasText;
  }

  .dream-stage__ontology {
    background: Canvas;
  }
}
