:root {
  color-scheme: dark;
  --ink: #080b12;
  --ink-soft: #0d111b;
  --panel: #111622;
  --panel-2: #151b29;
  --paper: #f1ede4;
  --paper-soft: #c7c3ba;
  --muted: #838a9a;
  --line: rgba(237, 235, 228, 0.14);
  --line-strong: rgba(237, 235, 228, 0.28);
  --cobalt: #7588ff;
  --cobalt-soft: rgba(117, 136, 255, 0.18);
  --amber: #f0bd70;
  --amber-soft: rgba(240, 189, 112, 0.16);
  --mint: #8ae3c0;
  --rose: #dd8fa3;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  --shell: min(1240px, calc(100vw - 48px));
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 18% 5%, rgba(74, 91, 170, 0.12), transparent 28rem),
    radial-gradient(circle at 92% 33%, rgba(240, 189, 112, 0.055), transparent 32rem),
    var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

button,
textarea,
input {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3,
blockquote,
figure,
dl,
dd {
  margin-top: 0;
}

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

::selection {
  color: var(--ink);
  background: var(--amber);
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--paper);
  transform: translateY(-160%);
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  display: flex;
  position: relative;
  z-index: 10;
  align-items: center;
  justify-content: space-between;
  width: var(--shell);
  min-height: 86px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--paper);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  grid-template-columns: repeat(2, 5px);
  gap: 3px;
  width: 13px;
}

.wordmark-mark i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--paper);
}

.wordmark-mark i:nth-child(2) {
  background: var(--cobalt);
}

.wordmark-mark i:nth-child(3) {
  background: var(--amber);
}

.wordmark-mark i:nth-child(4) {
  background: var(--mint);
}

.header-meta {
  display: flex;
  gap: 22px;
  align-items: center;
}

.ratio-mark {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.text-button {
  padding: 8px 0;
  color: var(--paper-soft);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.text-button:hover {
  color: var(--paper);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.6fr);
  gap: 10vw;
  align-items: end;
  min-height: 675px;
  padding: 112px 0 105px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--cobalt);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 920px;
  margin-bottom: 32px;
  font-family: var(--serif);
  font-size: clamp(58px, 7.2vw, 112px);
  font-weight: 400;
  letter-spacing: -0.052em;
  line-height: 0.91;
}

.hero h1 em,
.finitude h2 em {
  color: var(--paper-soft);
  font-weight: 400;
}

.hero-deck {
  max-width: 675px;
  margin-bottom: 0;
  color: var(--paper-soft);
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.38;
}

.hero-aside {
  padding: 28px 0 2px;
  border-top: 1px solid var(--line-strong);
}

.aside-index {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
}

.hero-aside blockquote {
  margin: 28px 0 22px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.32;
}

.hero-aside p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.instrument {
  padding: 100px 0 120px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  gap: 48px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 58px;
}

.section-heading .eyebrow {
  margin-bottom: 12px;
}

.section-heading h2,
.result-intro h2,
.finitude h2,
.translations h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 4.8vw, 67px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.privacy-note {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
}

.privacy-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(138, 227, 192, 0.65);
}

.instrument-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.83fr) minmax(460px, 1.17fr);
  gap: 28px;
  align-items: stretch;
}

.question-panel,
.orrery-panel {
  border: 1px solid var(--line);
  background: rgba(13, 17, 27, 0.86);
}

.question-panel {
  display: flex;
  flex-direction: column;
  padding: 36px;
}

.field-group {
  margin-bottom: 30px;
}

.field-group > label,
.effort-fieldset legend {
  display: block;
  margin-bottom: 10px;
  color: var(--paper);
  font-size: 12px;
  font-weight: 620;
  letter-spacing: 0.02em;
}

.field-group > label span {
  color: var(--muted);
  font-weight: 400;
}

textarea {
  display: block;
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 17px;
  outline: 0;
  color: var(--paper);
  background: rgba(5, 8, 14, 0.56);
  caret-color: var(--amber);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
  transition: border-color 160ms ease, background 160ms ease;
}

#question {
  min-height: 150px;
}

textarea::placeholder {
  color: #6f7481;
}

textarea:hover {
  border-color: var(--line-strong);
}

textarea:focus {
  border-color: var(--cobalt);
  background: rgba(12, 16, 26, 0.92);
}

textarea[aria-invalid="true"] {
  border-color: var(--rose);
}

.field-meta {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 9px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.field-meta span:last-child {
  flex: none;
  font-family: var(--mono);
}

.field-error {
  margin: 9px 0 0;
  color: var(--rose);
  font-size: 11px;
}

.effort-fieldset {
  min-width: 0;
  margin: 0 0 30px;
  border: 0;
  padding: 0;
}

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

.effort-options label {
  position: relative;
  cursor: pointer;
}

.effort-options label + label {
  border-left: 1px solid var(--line);
}

.effort-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.effort-options span {
  display: flex;
  flex-direction: column;
  min-height: 77px;
  padding: 15px 12px;
  transition: background 160ms ease, color 160ms ease;
}

.effort-options b {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 650;
}

.effort-options small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.4;
}

.effort-options input:checked + span {
  color: var(--paper);
  background: var(--cobalt-soft);
  box-shadow: inset 0 2px var(--cobalt);
}

.effort-options input:focus-visible + span {
  outline: 2px solid var(--amber);
  outline-offset: -4px;
}

.effort-fieldset > p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.sample-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: auto 0 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.sample-row > span {
  width: 100%;
  margin-bottom: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sample-question {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--paper-soft);
  background: transparent;
  cursor: pointer;
  font-size: 9px;
}

.sample-question:hover {
  border-color: var(--line-strong);
  color: var(--paper);
}

.route-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 66px;
  padding: 0 20px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.04em;
  transition: background 180ms ease, transform 180ms ease;
}

.route-button:hover {
  background: var(--amber);
}

.route-button:active {
  transform: translateY(1px);
}

.route-symbol {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
}

.orrery-panel {
  padding: 28px;
}

.orrery-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.orrery-topline .eyebrow {
  margin-bottom: 5px;
}

.orrery-topline h3 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}

.route-count {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.route-count strong {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
}

.route-count span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.canvas-wrap {
  position: relative;
  width: min(100%, 600px);
  margin: 12px auto 6px;
  aspect-ratio: 1;
}

#constellation {
  display: block;
  width: 100%;
  height: 100%;
}

.shared-core {
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  gap: 6px;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid rgba(241, 237, 228, 0.18);
  border-radius: 999px;
  color: var(--paper-soft);
  background: rgba(8, 11, 18, 0.86);
  box-shadow: 0 0 40px rgba(117, 136, 255, 0.12);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.09em;
  transform: translate(-50%, -50%);
}

.shared-core i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--paper);
}

.canvas-caption {
  display: flex;
  position: absolute;
  right: 4%;
  bottom: 3%;
  left: 4%;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.canvas-caption span:first-child {
  color: var(--paper-soft);
}

.attention-cycle {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 6px;
  border: 1px solid var(--line);
}

.cycle-step {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  opacity: 0.43;
  transition: opacity 240ms ease, background 240ms ease;
}

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

.cycle-step span {
  grid-row: 1 / 3;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
}

.cycle-step b {
  font-size: 8px;
  font-weight: 620;
}

.cycle-step small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cycle-step.active {
  opacity: 1;
  background: var(--cobalt-soft);
}

.cycle-step.global.active {
  background: var(--amber-soft);
}

.orrery-panel figcaption {
  margin: 13px 2px 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.result {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.result[hidden] {
  display: none;
}

.result-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 58px;
}

.result-intro .eyebrow {
  margin-bottom: 12px;
}

.result-question {
  max-width: 560px;
  margin: 0 0 5px auto;
  color: var(--paper-soft);
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
}

.result-question::before {
  content: "“";
  color: var(--cobalt);
}

.result-question::after {
  content: "”";
  color: var(--cobalt);
}

.shared-vows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-bottom: 76px;
  background: var(--line);
}

.shared-vows article {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 18px;
  padding: 28px;
  background: var(--panel);
}

.shared-vows .eyebrow {
  grid-column: 2;
  margin-bottom: 4px;
}

.shared-vows h3 {
  grid-column: 2;
  margin-bottom: 7px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
}

.shared-vows p:last-child {
  grid-column: 2;
  max-width: 480px;
  margin-bottom: 0;
  color: var(--paper-soft);
  font-size: 12px;
}

.vow-orbit {
  display: grid;
  grid-row: 1 / 4;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(117, 136, 255, 0.42);
  border-radius: 50%;
}

.vow-orbit i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cobalt);
  box-shadow: 0 0 18px var(--cobalt);
}

.vow-orbit.care {
  border-color: rgba(240, 189, 112, 0.42);
}

.vow-orbit.care i {
  background: var(--amber);
  box-shadow: 0 0 18px var(--amber);
}

.council-heading {
  display: flex;
  gap: 40px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.council-heading .eyebrow {
  margin-bottom: 7px;
}

.council-heading h3 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
}

.council-heading > p {
  max-width: 390px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
}

.council-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-bottom: 78px;
  background: var(--line);
}

.lens-card {
  display: flex;
  position: relative;
  flex-direction: column;
  min-height: 268px;
  padding: 22px;
  overflow: hidden;
  background: var(--panel);
  transition: background 160ms ease;
}

.lens-card:hover {
  background: var(--panel-2);
}

.lens-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  opacity: 0.85;
  background: var(--lens-color, var(--cobalt));
  transform: scaleX(0.2);
  transform-origin: left;
  transition: transform 180ms ease;
}

.lens-card:hover::before,
.lens-card.held::before {
  transform: scaleX(1);
}

.lens-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.lens-index {
  color: var(--lens-color, var(--cobalt));
}

.lens-card h4 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.08;
}

.lens-card > p {
  margin-bottom: 26px;
  color: var(--paper-soft);
  font-size: 10px;
  line-height: 1.58;
}

.lens-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: auto 0 17px;
}

.lens-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 7px;
  color: var(--muted);
  font-size: 7px;
}

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

.lens-actions button {
  min-height: 30px;
  border: 1px solid var(--line);
  padding: 0 9px;
  color: var(--paper-soft);
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lens-actions button:hover {
  border-color: var(--line-strong);
  color: var(--paper);
}

.lens-actions .hold-lens[aria-pressed="true"] {
  border-color: var(--lens-color, var(--cobalt));
  color: var(--paper);
  background: rgba(117, 136, 255, 0.08);
}

.receipt-card {
  position: relative;
  max-width: 1050px;
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  padding: 48px 54px 38px;
  color: #171717;
  background:
    linear-gradient(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.16)),
    #e8e1d4;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
}

.receipt-card::after {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(21, 21, 21, 0.14);
  content: "";
  pointer-events: none;
}

.receipt-card > * {
  position: relative;
  z-index: 1;
}

.receipt-card header {
  display: flex;
  gap: 20px;
  align-items: start;
  justify-content: space-between;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(21, 21, 21, 0.22);
}

.receipt-card .eyebrow {
  margin-bottom: 6px;
  color: #4b5dbf;
}

.receipt-card h3 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.effort-seal {
  flex: none;
  border: 1px solid rgba(21, 21, 21, 0.32);
  padding: 8px 10px;
  color: rgba(21, 21, 21, 0.7);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.receipt-lines {
  margin: 0;
}

.receipt-lines > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(21, 21, 21, 0.15);
}

.receipt-lines dt {
  padding-top: 3px;
  color: rgba(21, 21, 21, 0.57);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.receipt-lines dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.42;
}

.non-claim {
  margin: 24px 0 0;
  color: rgba(21, 21, 21, 0.63);
  font-size: 9px;
  line-height: 1.5;
}

.receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 30px;
}

.receipt-actions button {
  min-height: 38px;
  border: 1px solid rgba(21, 21, 21, 0.22);
  padding: 0 13px;
  color: #202020;
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  font-weight: 650;
}

.receipt-actions .receipt-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(21, 21, 21, 0.22);
  padding: 0 13px;
  color: #202020;
  font-size: 9px;
  font-weight: 650;
  text-decoration: none;
}

.receipt-actions button:hover,
.receipt-actions .receipt-link:hover {
  border-color: rgba(21, 21, 21, 0.55);
}

.receipt-actions .primary-small {
  color: #f1ede4;
  background: #151515;
}

#action-status {
  margin-left: auto;
  color: rgba(21, 21, 21, 0.58);
  font-size: 9px;
}

.mission {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(560px, 1.45fr);
  gap: clamp(48px, 7vw, 108px);
  align-items: start;
  padding: 130px 0;
  border-top: 1px solid var(--line);
}

.mission-thesis {
  position: sticky;
  top: 42px;
}

.mission h2 {
  margin-bottom: 28px;
  font-family: var(--serif);
  font-size: clamp(40px, 4.7vw, 68px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.mission h2 em {
  color: var(--paper-soft);
  font-weight: 400;
}

.mission-deck {
  max-width: 470px;
  margin-bottom: 36px;
  color: var(--paper-soft);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
}

.mission-maxim {
  margin: 0 0 32px;
  border-left: 1px solid var(--amber);
  padding-left: 18px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.055em;
  line-height: 1.85;
  text-transform: uppercase;
}

.mission-version {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.75;
}

.mission-version code {
  color: var(--paper-soft);
  font-family: var(--mono);
  font-size: 8px;
}

.mission-console {
  min-width: 0;
  border: 1px solid var(--line-strong);
  background: rgba(13, 17, 27, 0.9);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.2);
}

.mission-console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
}

.mission-console-header > div {
  display: grid;
  gap: 5px;
}

.console-kicker,
.mission-seal {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#mission-state {
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.mission-seal {
  max-width: 190px;
  overflow: hidden;
  color: var(--mint);
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mission-planes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.mission-plane {
  min-width: 0;
  min-height: 225px;
  padding: 24px;
  background: var(--panel);
}

.mission-plane > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.mission-plane span,
.mission-plane b {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.mission-plane span {
  color: var(--muted);
}

.mission-plane b {
  color: var(--cobalt);
  font-weight: 700;
}

.authority-plane b {
  color: var(--amber);
}

.tools-plane b {
  color: var(--paper-soft);
}

.proof-plane b {
  color: var(--mint);
}

.mission-plane h3 {
  margin-bottom: 11px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.mission-plane p {
  margin: 0;
  color: var(--paper-soft);
  font-size: 10px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.mission-form {
  border-top: 1px solid var(--line);
  padding: 28px;
}

.karma-engine {
  --karma-signal: var(--cobalt);
  --karma-speed: 13s;
  margin: -28px -28px 30px;
  border-bottom: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 25% 35%, rgba(117, 136, 255, 0.14), transparent 38%),
    linear-gradient(155deg, rgba(12, 16, 26, 0.98), rgba(8, 11, 18, 0.82));
}

.karma-engine[data-karma-sensitivity="guarded"] {
  --karma-speed: 19s;
}

.karma-engine[data-karma-sensitivity="acute"] {
  --karma-speed: 7s;
}

.karma-engine[data-karma-state="repair_required"] {
  --karma-signal: var(--rose);
}

.karma-engine[data-karma-state="uncertain"] {
  --karma-signal: var(--amber);
}

.karma-header {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  min-height: 112px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.karma-header h3 {
  max-width: 470px;
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
}

.karma-header > p {
  display: grid;
  flex: none;
  gap: 6px;
  margin: 0;
  text-align: right;
}

.karma-header > p b,
.karma-header > p span {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.karma-header > p b {
  color: var(--karma-signal);
}

.karma-header > p span {
  color: var(--muted);
}

.karma-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(330px, 0.9fr) minmax(350px, 1.1fr);
  border-bottom: 1px solid var(--line);
}

.karma-wheel {
  position: relative;
  min-height: 490px;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

.karma-wheel::before,
.karma-wheel::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.karma-wheel::before {
  inset: 13%;
  border: 1px solid rgba(117, 136, 255, 0.14);
}

.karma-wheel::after {
  inset: 27%;
  border: 1px dashed rgba(213, 216, 222, 0.12);
}

.karma-orbit {
  position: absolute;
  border: 1px solid transparent;
  border-top-color: var(--karma-signal);
  border-radius: 50%;
  opacity: 0.52;
  filter: drop-shadow(0 0 7px rgba(117, 136, 255, 0.58));
  animation: karma-spin var(--karma-speed) linear infinite;
}

.orbit-one {
  inset: 18%;
}

.orbit-two {
  inset: 31%;
  border-top-color: var(--amber);
  animation-direction: reverse;
  animation-duration: calc(var(--karma-speed) * 0.72);
}

.karma-heart {
  display: grid;
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 124px;
  height: 124px;
  place-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(8, 11, 18, 0.95);
  box-shadow: 0 0 52px rgba(117, 136, 255, 0.12);
  text-align: center;
  transform: translate(-50%, -50%);
}

.karma-heart small,
.karma-heart span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.1em;
}

.karma-heart strong {
  margin: 7px 0 5px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
}

.karma-heart span {
  color: var(--karma-signal);
}

.virtue-node {
  display: grid;
  position: absolute;
  z-index: 3;
  gap: 3px;
  width: 118px;
  min-height: 64px;
  place-content: center;
  border: 1px solid var(--line);
  padding: 8px 9px;
  background: rgba(8, 11, 18, 0.92);
  text-align: center;
  transform: translate(-50%, -50%);
}

.virtue-node i {
  width: 5px;
  height: 5px;
  margin: 0 auto 2px;
  border-radius: 50%;
  background: var(--virtue-color);
  box-shadow: 0 0 12px var(--virtue-color);
  animation: karma-breathe calc(var(--karma-speed) * 0.34) ease-in-out infinite alternate;
}

.virtue-node b {
  color: var(--paper-soft);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
}

.virtue-node span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.honesty-node {
  --virtue-color: var(--mint);
  top: 11%;
  left: 50%;
}

.beauty-node {
  --virtue-color: #b5a0ef;
  top: 35%;
  left: 86%;
}

.collaboration-node {
  --virtue-color: #69b9d0;
  top: 80%;
  left: 72%;
}

.understanding-node {
  --virtue-color: var(--amber);
  top: 80%;
  left: 28%;
}

.mutuality-node {
  --virtue-color: var(--rose);
  top: 35%;
  left: 14%;
}

.karma-controls {
  min-width: 0;
  padding: 26px 28px 28px;
}

.karma-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.karma-steps li {
  display: grid;
  gap: 7px;
  min-width: 0;
  border-top: 1px solid var(--line);
  padding: 13px 5px 0 0;
}

.karma-steps li + li {
  padding-left: 8px;
}

.karma-steps li > b {
  color: var(--karma-signal);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
}

.karma-steps li > span {
  display: grid;
  gap: 4px;
}

.karma-steps strong {
  color: var(--paper-soft);
  font-size: 8px;
  font-weight: 650;
}

.karma-steps small {
  color: var(--muted);
  font-size: 6px;
  line-height: 1.35;
}

.feedback-control {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.feedback-control > span,
.mirror-gate legend {
  color: var(--paper);
  font-size: 9px;
  font-weight: 650;
}

.feedback-control > span i,
.mirror-gate legend span {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
}

.feedback-control select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 11px;
  color: var(--paper);
  background: var(--ink-soft);
  outline: none;
  font-family: var(--mono);
  font-size: 8px;
}

.feedback-control select:focus {
  border-color: var(--karma-signal);
}

.feedback-control small {
  color: var(--muted);
  font-size: 7px;
  line-height: 1.45;
}

.mirror-gate {
  margin: 0;
  border: 1px solid var(--line);
  padding: 19px;
}

.mirror-gate legend {
  padding: 0 8px;
}

.mirror-gate > p {
  margin: 0 0 15px;
  color: var(--paper-soft);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.45;
}

.role-swap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.role-swap span {
  display: grid;
  min-height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.05em;
  text-align: center;
}

.role-swap i {
  color: var(--karma-signal);
  font-style: normal;
}

.mirror-responses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.mirror-responses label {
  position: relative;
  cursor: pointer;
}

.mirror-responses input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.mirror-responses span {
  display: grid;
  min-height: 40px;
  place-items: center;
  color: var(--paper-soft);
  background: var(--ink-soft);
  font-size: 7px;
}

.mirror-responses input:checked + span {
  color: var(--paper);
  background: rgba(117, 136, 255, 0.16);
  box-shadow: inset 0 0 0 1px var(--karma-signal);
}

.mirror-responses input:focus-visible + span {
  outline: 2px solid var(--amber);
  outline-offset: -4px;
}

#mirror-state {
  display: block;
  margin-top: 12px;
  border-left: 2px solid var(--karma-signal);
  padding: 9px 11px;
  color: var(--paper-soft);
  background: rgba(8, 11, 18, 0.62);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.mirror-gate > small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 7px;
  line-height: 1.45;
}

.virtue-floors {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.virtue-floors article {
  min-height: 178px;
  padding: 17px 14px;
  background: rgba(8, 11, 18, 0.84);
}

.virtue-floors article > span,
.virtue-floors article > b {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.08em;
}

.virtue-floors h4 {
  margin: 28px 0 8px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
}

.virtue-floors p {
  min-height: 62px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 7px;
  line-height: 1.55;
}

.virtue-floors article > b {
  color: var(--karma-signal);
}

.karma-law {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 18px 28px 20px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.55;
}

.karma-law b {
  margin-right: 10px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

@keyframes karma-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes karma-breathe {
  to {
    opacity: 0.38;
    transform: scale(0.72);
  }
}

.mission-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.mission-fields label {
  display: grid;
  gap: 8px;
}

.mission-fields label > span,
.mission-tools legend {
  color: var(--paper);
  font-size: 9px;
  font-weight: 650;
}

.mission-fields label > span i,
.mission-tools legend span {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
}

.mission-fields input,
.mission-fields select {
  width: 100%;
  min-width: 0;
  height: 45px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 12px;
  color: var(--paper);
  background: var(--ink-soft);
  outline: none;
  font-family: var(--mono);
  font-size: 9px;
}

.mission-fields input:focus,
.mission-fields select:focus {
  border-color: var(--cobalt);
}

.mission-fields input::placeholder {
  color: #666d7d;
}

.mission-fields small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.mission-fields small code {
  color: var(--paper-soft);
  font-family: var(--mono);
  font-size: 7px;
}

.mission-verifier-field {
  grid-column: 1 / -1;
}

.mission-tools {
  margin: 28px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 24px 0 0;
}

.mission-tools legend {
  padding: 0 10px 0 0;
}

.mission-tools legend span {
  margin-left: 8px;
}

.mission-tools > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 5px;
  background: var(--line);
}

.mission-tools label {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 45px;
  padding: 0 10px;
  background: var(--ink-soft);
  cursor: pointer;
  color: var(--paper-soft);
  font-size: 8px;
}

.mission-tools input,
.context-consent input {
  flex: none;
  accent-color: var(--cobalt);
}

.context-consent {
  display: flex;
  gap: 12px;
  align-items: start;
  margin-top: 24px;
  cursor: pointer;
}

.context-consent input {
  margin-top: 4px;
}

.context-consent span {
  display: grid;
  gap: 3px;
}

.context-consent b {
  font-size: 9px;
}

.context-consent small {
  color: var(--muted);
  font-size: 8px;
}

.mission-seam {
  border-top: 1px solid var(--line);
}

.mission-seam summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 28px;
  color: var(--paper-soft);
  list-style: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mission-seam summary::-webkit-details-marker {
  display: none;
}

.mission-seam summary i {
  color: var(--cobalt);
  font-size: 15px;
  font-style: normal;
  transition: transform 180ms ease;
}

.mission-seam[open] summary i {
  transform: rotate(45deg);
}

.mission-seam > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  border-top: 1px solid var(--line);
  padding: 24px 28px 28px;
}

.mission-seam p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.mission-seam b {
  color: var(--paper-soft);
}

.mission-status-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
}

.mission-status-rail span {
  display: grid;
  min-height: 45px;
  place-items: center;
  color: var(--muted);
  background: var(--ink-soft);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-align: center;
}

.mission-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 18px 28px;
  border-top: 1px solid var(--line);
}

.mission-actions > div {
  display: flex;
  gap: 8px;
}

.mission-actions button,
.dialog-actions button {
  min-height: 39px;
  border: 1px solid var(--line-strong);
  padding: 0 13px;
  color: var(--paper-soft);
  background: transparent;
  cursor: pointer;
  font-size: 8px;
  font-weight: 650;
}

.mission-actions button:hover:not(:disabled),
.dialog-actions button:hover {
  border-color: var(--paper-soft);
  color: var(--paper);
}

.mission-actions .mission-primary {
  border-color: var(--paper);
  color: var(--ink);
  background: var(--paper);
}

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

.mission-actions > p {
  display: grid;
  gap: 4px;
  margin: 0;
  text-align: right;
}

.mission-actions > p span,
.mission-actions > p b {
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.mission-actions > p span {
  color: var(--amber);
}

.mission-actions > p b {
  max-width: 260px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

#mission-preview {
  width: 100%;
  min-height: 420px;
  margin-top: 18px;
  border: 1px solid var(--line);
  padding: 14px;
  resize: vertical;
  color: var(--paper-soft);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.dialog-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
}

.dialog-actions span {
  color: var(--muted);
  font-size: 9px;
}

.finitude {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 9vw;
  align-items: end;
  padding: 130px 0;
  border-top: 1px solid var(--line);
}

.finitude h2 {
  max-width: 760px;
  margin-bottom: 30px;
}

.finitude-copy > p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--paper-soft);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
}

.comparison {
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.comparison-row + .comparison-row {
  margin-top: 24px;
}

.comparison-row > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  color: var(--paper-soft);
  font-size: 10px;
}

.comparison-row strong {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
}

.bar {
  height: 2px;
  overflow: hidden;
  background: var(--line);
}

.bar i {
  display: block;
  width: var(--score);
  height: 100%;
  background: var(--cobalt);
}

.comparison-row:nth-child(2) .bar i {
  background: var(--paper-soft);
}

.comparison > p {
  margin: 24px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.translations {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.translations .section-heading > p {
  max-width: 370px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}

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

.translation-list article {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  gap: 42px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.translation-number {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.translation-list small {
  display: block;
  margin-bottom: 8px;
  color: var(--cobalt);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.translation-list div:last-child small {
  color: var(--amber);
}

.translation-list h3 {
  margin-bottom: 7px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
}

.translation-list p {
  max-width: 450px;
  margin-bottom: 0;
  color: var(--paper-soft);
  font-size: 11px;
}

.anti-oracle {
  padding: 0 0 130px;
}

.anti-oracle details {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.anti-oracle summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 154px;
  list-style: none;
  cursor: pointer;
}

.anti-oracle summary::-webkit-details-marker {
  display: none;
}

.anti-oracle summary .eyebrow {
  display: block;
  margin-bottom: 8px;
}

.anti-oracle summary strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 400;
}

.anti-oracle summary > i {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.anti-oracle summary > i::before,
.anti-oracle summary > i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  content: "";
  background: var(--paper-soft);
  transform: translate(-50%, -50%);
}

.anti-oracle summary > i::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 180ms ease;
}

.anti-oracle details[open] summary > i::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.limits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-bottom: 1px;
  background: var(--line);
}

.limits-grid article {
  min-height: 230px;
  padding: 26px;
  background: var(--panel);
}

.limits-grid span {
  display: block;
  margin-bottom: 42px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.limits-grid h3 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
}

.limits-grid p {
  margin-bottom: 0;
  color: var(--paper-soft);
  font-size: 10px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 154px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.site-footer > div {
  display: flex;
  gap: 14px;
  align-items: center;
}

.site-footer p {
  margin-bottom: 0;
}

dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  border: 1px solid var(--line-strong);
  padding: 0;
  color: var(--paper);
  background: var(--panel);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.7);
}

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

.dialog-shell {
  padding: 34px;
}

.dialog-shell > header {
  display: flex;
  gap: 24px;
  align-items: start;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.dialog-shell header .eyebrow {
  margin-bottom: 6px;
}

.dialog-shell h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.dialog-close {
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--paper-soft);
  background: transparent;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 22px;
}

.dialog-close:hover {
  border-color: var(--line-strong);
  color: var(--paper);
}

.dialog-content {
  padding-top: 26px;
  color: var(--paper-soft);
  font-size: 12px;
}

.dialog-content p:last-child {
  margin-bottom: 0;
}

.dialog-content kbd {
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 3px;
  padding: 2px 5px;
  color: var(--paper);
  background: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
}

#copy-fallback {
  min-height: 320px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.55;
}

.dialog-lead {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 21px;
}

.equation {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 9px;
  align-items: center;
  margin: 26px 0;
  border: 1px solid var(--line);
  padding: 14px;
}

.equation span {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
}

.equation b {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
}

.equation i {
  color: var(--cobalt);
  font-style: normal;
}

.sources-list {
  display: grid;
}

.sources-list > a {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.sources-list > a:hover b {
  color: var(--amber);
}

.sources-list > a > span,
.sources-list > a > i {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
}

.sources-list b {
  display: block;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  transition: color 160ms ease;
}

.sources-list small {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.sources-list > p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.noscript {
  position: fixed;
  z-index: 50;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 14px;
  color: var(--ink);
  background: var(--amber);
  text-align: center;
  font-size: 12px;
}

@media (max-width: 1000px) {
  :root {
    --shell: min(100% - 36px, 900px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 72px;
    min-height: auto;
  }

  .hero-aside {
    max-width: 420px;
    margin-left: auto;
  }

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

  .question-panel {
    min-height: 670px;
  }

  .orrery-panel {
    padding: 36px;
  }

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

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

  .mission-thesis {
    position: static;
    max-width: 720px;
  }

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

  .karma-wheel {
    min-height: 540px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .finitude {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .comparison {
    max-width: 560px;
    margin-left: auto;
  }

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

@media (max-width: 680px) {
  :root {
    --shell: calc(100% - 28px);
  }

  .site-header {
    min-height: 70px;
  }

  .header-meta {
    gap: 13px;
  }

  .ratio-mark {
    display: none;
  }

  .wordmark {
    font-size: 10px;
  }

  .text-button {
    font-size: 10px;
  }

  .hero {
    gap: 54px;
    padding: 86px 0 80px;
  }

  .hero h1 {
    font-size: clamp(50px, 15vw, 72px);
  }

  .hero-deck {
    font-size: 18px;
  }

  .instrument,
  .result,
  .mission,
  .translations {
    padding: 82px 0;
  }

  .section-heading,
  .result-intro {
    display: block;
    margin-bottom: 40px;
  }

  .privacy-note,
  .section-heading > p {
    margin-top: 20px;
  }

  .question-panel,
  .orrery-panel {
    padding: 22px;
  }

  .question-panel {
    min-height: 0;
  }

  .effort-options {
    grid-template-columns: 1fr;
  }

  .effort-options label + label {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .effort-options span {
    min-height: 60px;
  }

  .sample-row {
    margin-top: 6px;
  }

  .orrery-topline h3 {
    font-size: 20px;
  }

  .cycle-step {
    display: block;
    padding: 8px 5px;
  }

  .cycle-step span,
  .cycle-step small {
    display: block;
  }

  .shared-vows {
    grid-template-columns: 1fr;
  }

  .result-question {
    margin: 24px 0 0;
  }

  .council-heading {
    display: block;
  }

  .council-heading > p {
    margin-top: 15px;
  }

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

  .lens-card {
    min-height: 235px;
  }

  .receipt-card {
    padding: 32px 24px 26px;
  }

  .receipt-card header {
    display: block;
  }

  .effort-seal {
    display: inline-block;
    margin-top: 18px;
  }

  .receipt-lines > div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  #action-status {
    width: 100%;
    margin: 8px 0 0;
  }

  .mission-planes,
  .mission-fields,
  .mission-seam > div {
    grid-template-columns: 1fr;
  }

  .karma-header {
    display: block;
  }

  .karma-header > p {
    margin-top: 18px;
    text-align: left;
  }

  .karma-wheel {
    min-height: 410px;
  }

  .virtue-node {
    width: 96px;
    min-height: 58px;
    padding: 7px;
  }

  .virtue-node b {
    font-size: 12px;
  }

  .karma-heart {
    width: 104px;
    height: 104px;
  }

  .karma-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .karma-steps li,
  .karma-steps li + li {
    grid-template-columns: 25px 1fr;
    gap: 9px;
    align-items: center;
    padding: 8px 0 0;
  }

  .karma-steps li > b {
    grid-row: 1;
  }

  .virtue-floors {
    grid-template-columns: 1fr;
  }

  .virtue-floors article {
    display: grid;
    grid-template-columns: 24px 0.7fr 1.5fr auto;
    gap: 10px;
    align-items: center;
    min-height: 78px;
    padding: 13px 16px;
  }

  .virtue-floors h4,
  .virtue-floors p {
    min-height: 0;
    margin: 0;
  }

  .karma-law b {
    display: block;
    margin: 0 0 6px;
  }

  .mission-plane {
    min-height: 190px;
  }

  .mission-plane > div {
    margin-bottom: 34px;
  }

  .mission-verifier-field {
    grid-column: auto;
  }

  .mission-tools > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .mission-status-rail span:last-child {
    grid-column: 1 / -1;
  }

  .mission-actions {
    display: block;
  }

  .mission-actions > div {
    display: grid;
  }

  .mission-actions > p {
    margin-top: 16px;
    text-align: left;
  }

  .mission-actions > p b {
    max-width: none;
  }

  .finitude {
    padding: 86px 0;
  }

  .finitude h2 {
    font-size: 40px;
  }

  .comparison {
    margin-left: 0;
  }

  .translation-list article {
    grid-template-columns: 34px 1fr;
    gap: 22px;
  }

  .translation-list article > div:last-child {
    grid-column: 2;
  }

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

  .anti-oracle {
    padding-bottom: 80px;
  }

  .anti-oracle summary {
    gap: 20px;
    min-height: 130px;
  }

  .site-footer {
    display: block;
    padding: 40px 0;
  }

  .site-footer > p {
    margin: 20px 0 0 27px;
  }

  .dialog-shell {
    padding: 22px;
  }

  #mission-preview {
    min-height: 360px;
  }

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

  .equation i {
    transform: rotate(90deg);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  body {
    color: #111;
    background: #fff;
  }

  body::before,
  .site-header,
  .hero,
  .instrument,
  .shared-vows,
  .council-heading,
  .council-grid,
  .finitude,
  .translations,
  .mission,
  .anti-oracle,
  .site-footer,
  .result-intro,
  .receipt-actions {
    display: none !important;
  }

  .result {
    display: block !important;
    width: 100%;
    border: 0;
    padding: 0;
  }

  .receipt-card {
    max-width: none;
    border: 1px solid #777;
    box-shadow: none;
  }
}
