:root {
  color-scheme: dark;
  --void: #080807;
  --void-soft: #11110f;
  --ink: #f2ede2;
  --ink-muted: #b8b0a1;
  --paper: #e9e4d8;
  --paper-ink: #171713;
  --paper-muted: #625d52;
  --amber: #e0a83c;
  --amber-soft: #f1c66d;
  --green: #8ebca1;
  --danger: #d26c5c;
  --line-dark: rgba(242, 237, 226, 0.18);
  --line-light: rgba(23, 23, 19, 0.2);
  --header-height: 72px;
  --page-pad: 56px;
  --pointer-x: 0px;
  --pointer-y: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  background: var(--void);
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--void);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

button {
  letter-spacing: 0;
}

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

svg {
  display: block;
  max-width: 100%;
}

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

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

main:focus {
  outline: none;
}

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

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

.scroll-progress {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
  background: rgba(242, 237, 226, 0.08);
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--amber);
}

.site-header {
  position: fixed;
  z-index: 80;
  top: 2px;
  left: 0;
  display: flex;
  width: 100%;
  height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  padding: 0 var(--page-pad);
  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line-dark);
  background: rgba(8, 8, 7, 0.94);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 20px;
  height: 20px;
  fill: var(--amber);
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.brand-edition {
  border-left: 1px solid var(--line-dark);
  color: var(--ink-muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10px;
  padding-left: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 12px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: right center;
  background: currentColor;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.site-nav .nav-workbench {
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  width: 100%;
  height: calc(100svh - 28px);
  min-height: 560px;
  max-height: 920px;
  overflow: hidden;
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  background: var(--void);
  isolation: isolate;
}

.hero-field {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  transform: translate3d(var(--pointer-x), var(--pointer-y), 0);
  transition: transform 220ms ease-out;
}

.field-grid {
  position: absolute;
  top: 14%;
  right: 8%;
  bottom: 12%;
  left: 44%;
  border: 1px solid rgba(242, 237, 226, 0.07);
}

.field-grid::before,
.field-grid::after {
  position: absolute;
  content: "";
  background: rgba(242, 237, 226, 0.07);
}

.field-grid::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.field-grid::after {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
}

.field-coordinate {
  position: absolute;
  color: rgba(242, 237, 226, 0.34);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 9px;
}

.field-coordinate-a {
  top: 17%;
  right: 9%;
}

.field-coordinate-b {
  right: 9%;
  bottom: 15%;
}

.field-coordinate-c {
  top: 50%;
  right: 7%;
  transform: rotate(90deg) translateY(-100%);
  transform-origin: right top;
}

.hero-orbit,
.hero-axis,
.hero-core,
.signal {
  position: absolute;
}

.hero-orbit {
  top: 47%;
  right: 23%;
  aspect-ratio: 1;
  transform: translate(50%, -50%);
  border: 1px solid rgba(224, 168, 60, 0.28);
  border-radius: 50%;
}

.hero-orbit-outer {
  width: 430px;
  animation: orbit-turn 38s linear infinite;
}

.hero-orbit-inner {
  width: 260px;
  border-color: rgba(242, 237, 226, 0.16);
  animation: orbit-turn-reverse 28s linear infinite;
}

.orbit-label {
  position: absolute;
  padding: 0 5px;
  background: var(--void);
  color: var(--ink-muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 9px;
}

.orbit-label-a {
  top: 20px;
  left: 92px;
}

.orbit-label-b {
  right: 16px;
  bottom: 100px;
}

.orbit-label-c {
  bottom: 24px;
  left: 78px;
}

.hero-axis {
  top: 47%;
  right: 23%;
  background: rgba(242, 237, 226, 0.1);
}

.hero-axis-horizontal {
  width: 560px;
  height: 1px;
  transform: translate(50%, -50%);
}

.hero-axis-vertical {
  width: 1px;
  height: 560px;
  transform: translate(50%, -50%);
}

.hero-core {
  top: 47%;
  right: 23%;
  display: grid;
  width: 138px;
  aspect-ratio: 1;
  transform: translate(50%, -50%);
  place-items: center;
}

.core-halo,
.core-ring,
.core-point {
  position: absolute;
  border-radius: 50%;
}

.core-halo {
  width: 138px;
  height: 138px;
  border: 1px solid rgba(224, 168, 60, 0.24);
  box-shadow: inset 0 0 42px rgba(224, 168, 60, 0.08);
}

.core-ring-a {
  width: 78px;
  height: 78px;
  border: 1px solid rgba(224, 168, 60, 0.58);
  animation: core-pulse 3.2s ease-in-out infinite;
}

.core-ring-b {
  width: 34px;
  height: 34px;
  border: 1px solid var(--amber);
}

.core-point {
  width: 8px;
  height: 8px;
  background: var(--amber-soft);
  box-shadow: 0 0 24px rgba(224, 168, 60, 0.72);
}

.core-word {
  position: absolute;
  top: calc(50% + 48px);
  color: var(--amber-soft);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 9px;
}

.signal {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 14px rgba(224, 168, 60, 0.8);
}

.signal-a {
  top: 27%;
  right: 34%;
  animation: signal-drift-a 7s ease-in-out infinite;
}

.signal-b {
  top: 67%;
  right: 12%;
  animation: signal-drift-b 9s ease-in-out infinite;
}

.signal-c {
  top: 39%;
  right: 9%;
  animation: signal-drift-c 6s ease-in-out infinite;
}

.hero-copy {
  width: min(720px, calc(100% - (var(--page-pad) * 2)));
  margin-left: var(--page-pad);
  padding-top: 18px;
}

.eyebrow {
  display: flex;
  width: min(520px, 100%);
  justify-content: space-between;
  margin: 0 0 26px;
  color: var(--ink-muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10px;
}

.hero-copy h1 {
  margin: 0;
  font-weight: 400;
  letter-spacing: 0;
}

.hero-brand {
  display: block;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 138px;
  line-height: 0.78;
}

.hero-statement {
  display: block;
  margin-top: 34px;
  color: var(--ink);
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 42px;
  line-height: 1.3;
}

.hero-definition {
  max-width: 610px;
  margin: 24px 0 0;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 30px;
  margin-top: 26px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 0 0 8px;
  transition:
    color 160ms ease,
    border-color 160ms ease;
}

.text-link-primary {
  border-color: var(--amber);
  color: var(--ink);
}

.text-link:hover,
.text-link:focus-visible {
  border-color: var(--amber-soft);
  color: var(--amber-soft);
}

.link-arrow {
  transition: transform 160ms ease;
}

.text-link:hover .link-arrow,
.text-link:focus-visible .link-arrow {
  transform: translate(3px, -2px);
}

.hero-contract {
  position: absolute;
  right: var(--page-pad);
  bottom: 30px;
  left: var(--page-pad);
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 16px;
  color: rgba(242, 237, 226, 0.52);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 9px;
}

.hero-contract i {
  height: 1px;
  background: rgba(242, 237, 226, 0.14);
}

.scroll-cue {
  position: absolute;
  right: var(--page-pad);
  bottom: 54px;
  display: none;
  color: var(--ink-muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 9px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.36fr) minmax(0, 1fr);
  gap: 56px;
  width: min(1280px, calc(100% - (var(--page-pad) * 2)));
  margin: 0 auto 92px;
}

.section-index {
  margin: 10px 0 0;
  color: var(--paper-muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10px;
}

.section-heading h2 {
  margin: 0;
  color: var(--paper-ink);
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 62px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-heading > div > p {
  margin: 24px 0 0;
  color: var(--paper-muted);
  font-size: 15px;
  line-height: 1.9;
}

.contract {
  position: relative;
  padding: 132px 0 150px;
  background: var(--paper);
  color: var(--paper-ink);
}

.contract-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(420px, 0.8fr);
  gap: 96px;
  width: min(1280px, calc(100% - (var(--page-pad) * 2)));
  margin: 0 auto;
}

.contract-sticky {
  min-width: 0;
}

.contract-map {
  position: sticky;
  top: 110px;
  aspect-ratio: 1.45;
  min-height: 470px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(242, 237, 226, 0.18);
  background: var(--void-soft);
  color: var(--ink);
  padding: 40px;
}

.contract-map svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.map-grid-line,
.map-orbit,
.map-return,
.map-path {
  fill: none;
}

.map-grid-line {
  stroke: rgba(242, 237, 226, 0.08);
  stroke-width: 1;
}

.map-orbit {
  stroke: rgba(224, 168, 60, 0.16);
  stroke-width: 1;
}

.map-orbit-small {
  stroke: rgba(242, 237, 226, 0.1);
}

.map-path-base {
  stroke: rgba(242, 237, 226, 0.18);
  stroke-width: 1;
}

.map-path-signal {
  stroke: var(--amber);
  stroke-dasharray: 96 600;
  stroke-width: 2;
  transition: stroke-dashoffset 520ms ease;
}

.contract-map[data-active="intent"] .map-path-signal {
  stroke-dashoffset: 0;
}

.contract-map[data-active="judgment"] .map-path-signal {
  stroke-dashoffset: -118px;
}

.contract-map[data-active="approval"] .map-path-signal {
  stroke-dashoffset: -245px;
}

.contract-map[data-active="execution"] .map-path-signal {
  stroke-dashoffset: -370px;
}

.contract-map[data-active="memory"] .map-path-signal {
  stroke-dashoffset: -504px;
}

.map-return {
  stroke: rgba(142, 188, 161, 0.3);
  stroke-dasharray: 5 8;
  stroke-width: 1;
}

.node-halo,
.node-ring,
.node-core {
  transition:
    fill 200ms ease,
    stroke 200ms ease,
    opacity 200ms ease,
    transform 200ms ease;
}

.node-halo {
  fill: transparent;
  stroke: transparent;
}

.node-ring {
  fill: var(--void-soft);
  stroke: rgba(242, 237, 226, 0.38);
}

.node-core {
  fill: rgba(242, 237, 226, 0.56);
}

.contract-map[data-active="intent"] [data-node="intent"] .node-halo,
.contract-map[data-active="judgment"] [data-node="judgment"] .node-halo,
.contract-map[data-active="approval"] [data-node="approval"] .node-halo,
.contract-map[data-active="execution"] [data-node="execution"] .node-halo,
.contract-map[data-active="memory"] [data-node="memory"] .node-halo {
  fill: rgba(224, 168, 60, 0.12);
  stroke: rgba(224, 168, 60, 0.28);
}

.contract-map[data-active="intent"] [data-node="intent"] .node-ring,
.contract-map[data-active="judgment"] [data-node="judgment"] .node-ring,
.contract-map[data-active="approval"] [data-node="approval"] .node-ring,
.contract-map[data-active="execution"] [data-node="execution"] .node-ring,
.contract-map[data-active="memory"] [data-node="memory"] .node-ring {
  fill: var(--amber);
  stroke: var(--amber-soft);
}

.contract-map[data-active="intent"] [data-node="intent"] .node-core,
.contract-map[data-active="judgment"] [data-node="judgment"] .node-core,
.contract-map[data-active="approval"] [data-node="approval"] .node-core,
.contract-map[data-active="execution"] [data-node="execution"] .node-core,
.contract-map[data-active="memory"] [data-node="memory"] .node-core {
  fill: var(--paper-ink);
}

.stage-readout {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  align-items: start;
  border-top: 1px solid var(--line-dark);
  margin-top: 8px;
  padding-top: 22px;
}

.stage-readout-number {
  color: var(--amber);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 50px;
  line-height: 1;
}

.stage-readout-label {
  margin: 2px 0 8px;
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
}

.stage-readout-copy {
  max-width: 380px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.75;
}

.map-status {
  position: absolute;
  right: 24px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--green);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 8px;
}

.status-light {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.contract-steps {
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contract-step {
  position: relative;
  min-height: 210px;
  border-top: 1px solid var(--line-light);
  padding: 28px 0 42px 24px;
}

.contract-step:last-child {
  border-bottom: 1px solid var(--line-light);
}

.contract-step::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  content: "";
  transform: scaleY(0);
  transform-origin: top center;
  background: var(--amber);
  transition: transform 240ms ease;
}

.contract-step.is-active::before {
  transform: scaleY(1);
}

.contract-step button {
  display: grid;
  width: 100%;
  grid-template-columns: 46px minmax(110px, 0.6fr) 1fr;
  align-items: baseline;
  border: 0;
  background: transparent;
  color: var(--paper-ink);
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.step-number {
  color: var(--paper-muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10px;
}

.step-name {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
}

.step-japanese {
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 32px;
}

.contract-step > p {
  max-width: 480px;
  margin: 24px 0 18px 46px;
  color: var(--paper-muted);
  font-size: 14px;
  line-height: 1.8;
}

.step-signal {
  display: block;
  margin-left: 46px;
  color: var(--paper-muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 9px;
}

.contract-step.is-active .step-name,
.contract-step.is-active .step-signal {
  color: #8c5906;
}

.proof {
  position: relative;
  padding: 138px 0 154px;
  background: #12110e;
  color: var(--ink);
}

.section-heading-light .section-index,
.section-heading-light > div > p {
  color: var(--ink-muted);
}

.section-heading-light h2 {
  color: var(--ink);
}

.proof-spell {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(520px, 1fr);
  gap: 86px;
  width: min(1280px, calc(100% - (var(--page-pad) * 2)));
  margin: 0 auto;
}

.proof-input {
  align-self: start;
  border-top: 1px solid var(--amber);
  padding-top: 22px;
}

.proof-input > p,
.proof-input > span {
  color: var(--ink-muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 9px;
}

.proof-input blockquote {
  margin: 48px 0 26px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  line-height: 1.1;
}

.proof-input > span {
  display: block;
  max-width: 260px;
  line-height: 1.7;
}

.proof-sequence {
  border-top: 1px solid var(--line-dark);
}

.proof-event {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 22px;
  min-height: 118px;
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  opacity: 0.42;
  padding: 22px 0;
  transition:
    opacity 300ms ease,
    transform 300ms ease;
}

.proof-event.is-visible,
.proof-event:hover {
  opacity: 1;
  transform: translateX(8px);
}

.proof-event > p {
  margin: 0;
  color: var(--ink-muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10px;
}

.proof-event > p span {
  display: inline-block;
  width: 32px;
  color: var(--amber);
}

.proof-event h3 {
  grid-column: 2;
  margin: -28px 0 4px;
  color: var(--ink);
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 0;
}

.proof-event > span {
  grid-column: 2;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.65;
}

.proof-event-gate h3 {
  color: var(--amber-soft);
}

.proof-event-effect h3 {
  color: var(--green);
}

.proof-event-undo h3 {
  color: #e2a294;
}

.system {
  padding: 138px 0 152px;
  background: var(--paper);
  color: var(--paper-ink);
}

.system-loop {
  position: relative;
  width: min(1280px, calc(100% - (var(--page-pad) * 2)));
  margin: 0 auto;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  padding: 56px 0 50px;
}

.system-rail {
  position: absolute;
  top: 103px;
  right: 7%;
  left: 7%;
  height: 1px;
  background: var(--line-light);
}

.system-rail span {
  position: absolute;
  top: -1px;
  left: 0;
  width: 25%;
  height: 3px;
  transform: translateX(var(--system-position, 0%));
  background: #a66d0e;
  transition: transform 320ms ease;
}

.system-nodes {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.system-node {
  display: grid;
  min-width: 0;
  justify-items: center;
  border: 0;
  background: transparent;
  color: var(--paper-muted);
  cursor: pointer;
  padding: 0 10px 32px;
}

.system-node::after {
  order: 2;
  width: 12px;
  height: 12px;
  margin: 19px 0 24px;
  border: 1px solid var(--paper-muted);
  border-radius: 50%;
  background: var(--paper);
  content: "";
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.system-node-index {
  order: 1;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 9px;
}

.system-node strong {
  order: 3;
  color: var(--paper-ink);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
}

.system-node > span:last-child {
  order: 4;
  margin-top: 8px;
  font-size: 12px;
}

.system-node.is-active::after,
.system-node:hover::after,
.system-node:focus-visible::after {
  border-color: #a66d0e;
  background: var(--amber);
  transform: scale(1.35);
}

.system-node.is-active .system-node-index,
.system-node.is-active strong {
  color: #8c5906;
}

.system-readout {
  display: grid;
  grid-template-columns: 0.55fr 1fr 0.55fr;
  gap: 42px;
  align-items: start;
  min-height: 108px;
  border-top: 1px solid var(--line-light);
  padding-top: 30px;
}

.system-readout p {
  margin: 0;
}

#system-kicker,
#system-boundary {
  color: var(--paper-muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 9px;
  line-height: 1.7;
}

#system-copy {
  color: var(--paper-ink);
  font-size: 15px;
  line-height: 1.9;
}

#system-boundary {
  text-align: right;
}

.instrument-ledger {
  display: grid;
  grid-template-columns: minmax(180px, 0.36fr) minmax(0, 1fr);
  gap: 56px;
  width: min(1280px, calc(100% - (var(--page-pad) * 2)));
  margin: 96px auto 0;
}

.ledger-title {
  margin: 8px 0 0;
  color: var(--paper-muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10px;
}

.instrument-ledger dl {
  margin: 0;
}

.instrument-ledger dl > div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 30px;
  border-top: 1px solid var(--line-light);
  padding: 24px 0;
}

.instrument-ledger dl > div:last-child {
  border-bottom: 1px solid var(--line-light);
}

.instrument-ledger dt {
  color: #8c5906;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
}

.instrument-ledger dd {
  margin: 0;
  color: var(--paper-muted);
  font-size: 14px;
  line-height: 1.75;
}

.agency {
  position: relative;
  min-height: 780px;
  overflow: hidden;
  background: #181511;
  color: var(--ink);
  padding: 136px var(--page-pad);
}

.agency-heading,
.agency-body {
  position: relative;
  z-index: 2;
  width: min(1280px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.agency-heading > p {
  margin: 0 0 36px;
  color: var(--ink-muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10px;
}

.agency-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 92px;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
}

.agency-heading h2 span,
.agency-heading h2 strong {
  display: block;
}

.agency-heading h2 span {
  color: rgba(242, 237, 226, 0.34);
  text-decoration: line-through;
  text-decoration-color: var(--danger);
  text-decoration-thickness: 2px;
}

.agency-heading h2 strong {
  color: var(--amber-soft);
  font-weight: 400;
}

.agency-body {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 100px;
  margin-top: 70px;
}

.agency-lead {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 24px;
  line-height: 1.8;
}

.agency-laws {
  border-top: 1px solid var(--line-dark);
}

.agency-laws p {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  margin: 0;
  border-bottom: 1px solid var(--line-dark);
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.7;
  padding: 16px 0;
}

.agency-laws span {
  color: var(--danger);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 9px;
}

.ward-visual {
  position: absolute;
  z-index: 1;
  right: -120px;
  bottom: -150px;
  display: grid;
  width: 620px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(224, 168, 60, 0.12);
  border-radius: 50%;
}

.ward-visual::before,
.ward-visual::after {
  position: absolute;
  border: 1px solid rgba(224, 168, 60, 0.14);
  border-radius: 50%;
  content: "";
}

.ward-visual::before {
  width: 72%;
  height: 72%;
}

.ward-visual::after {
  width: 42%;
  height: 42%;
}

.ward-gate {
  position: relative;
  z-index: 2;
  display: grid;
  width: 126px;
  height: 126px;
  place-items: center;
  border: 1px solid var(--amber);
  transform: rotate(45deg);
}

.ward-gate i {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(224, 168, 60, 0.28);
}

.ward-gate b {
  transform: rotate(-45deg);
  color: var(--amber-soft);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 9px;
}

.ward-signal {
  position: absolute;
  top: 50%;
  width: 160px;
  height: 1px;
  background: var(--amber);
}

.ward-signal-left {
  right: calc(50% + 88px);
}

.ward-signal-right {
  left: calc(50% + 88px);
}

.enter {
  position: relative;
  display: grid;
  min-height: 680px;
  overflow: hidden;
  align-items: center;
  background: var(--amber);
  color: var(--paper-ink);
  padding: 100px var(--page-pad);
}

.enter-field {
  position: absolute;
  top: 50%;
  right: 8%;
  display: grid;
  width: 520px;
  aspect-ratio: 1;
  transform: translateY(-50%);
  place-items: center;
}

.enter-ring,
.enter-point {
  position: absolute;
  border-radius: 50%;
}

.enter-ring {
  border: 1px solid rgba(23, 23, 19, 0.28);
}

.enter-ring-a {
  width: 100%;
  height: 100%;
}

.enter-ring-b {
  width: 58%;
  height: 58%;
}

.enter-point {
  width: 22px;
  height: 22px;
  background: var(--paper-ink);
}

.enter-copy {
  position: relative;
  z-index: 2;
  width: min(1280px, 100%);
  margin: 0 auto;
}

.enter-copy > p {
  margin: 0 0 34px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10px;
}

.enter-copy h2 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 72px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
}

.enter-copy h2 em {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.enter-action {
  display: grid;
  width: min(520px, 100%);
  grid-template-columns: 1fr auto;
  align-items: center;
  border-top: 1px solid var(--paper-ink);
  border-bottom: 1px solid var(--paper-ink);
  margin-top: 58px;
  font-size: 16px;
  font-weight: 800;
  padding: 22px 0;
  transition: padding 180ms ease;
}

.enter-action:hover,
.enter-action:focus-visible {
  padding-right: 12px;
  padding-left: 12px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 44px;
  align-items: center;
  min-height: 108px;
  border-top: 1px solid var(--line-dark);
  background: var(--void);
  color: var(--ink-muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 9px;
  padding: 24px var(--page-pad);
}

.site-footer a {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .hero-copy[data-reveal] {
  animation: hero-enter 720ms ease 100ms both;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orbit-turn {
  to {
    transform: translate(50%, -50%) rotate(360deg);
  }
}

@keyframes orbit-turn-reverse {
  to {
    transform: translate(50%, -50%) rotate(-360deg);
  }
}

@keyframes core-pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes signal-drift-a {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(42px, 18px);
  }
}

@keyframes signal-drift-b {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-38px, -26px);
  }
}

@keyframes signal-drift-c {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-24px, 30px);
  }
}

@media (max-width: 1120px) {
  :root {
    --page-pad: 36px;
  }

  .hero-brand {
    font-size: 112px;
  }

  .hero-statement {
    font-size: 36px;
  }

  .hero-orbit {
    right: 18%;
  }

  .hero-axis,
  .hero-core {
    right: 18%;
  }

  .contract-layout {
    grid-template-columns: minmax(360px, 0.85fr) minmax(360px, 0.8fr);
    gap: 52px;
  }

  .contract-map {
    min-height: 420px;
    padding: 28px;
  }

  .proof-spell {
    gap: 52px;
  }

  .agency-heading h2 {
    font-size: 76px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 64px;
    --page-pad: 24px;
  }

  .site-nav > a:not(.nav-workbench) {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

  .hero-field {
    opacity: 0.72;
  }

  .field-grid {
    top: 12%;
    right: -18%;
    bottom: 15%;
    left: 36%;
  }

  .hero-orbit,
  .hero-axis,
  .hero-core {
    right: 8%;
  }

  .hero-orbit-outer {
    width: 330px;
  }

  .hero-orbit-inner {
    width: 200px;
  }

  .hero-axis-horizontal,
  .hero-axis-vertical {
    width: 430px;
    height: 1px;
  }

  .hero-axis-vertical {
    width: 1px;
    height: 430px;
  }

  .hero-copy {
    width: min(620px, calc(100% - (var(--page-pad) * 2)));
  }

  .hero-brand {
    font-size: 88px;
  }

  .hero-statement {
    font-size: 32px;
  }

  .hero-definition {
    max-width: 500px;
    font-size: 14px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 64px;
  }

  .section-heading h2 {
    font-size: 48px;
  }

  .contract,
  .proof,
  .system {
    padding-top: 100px;
    padding-bottom: 110px;
  }

  .contract-layout {
    grid-template-columns: 1fr;
    gap: 68px;
  }

  .contract-map {
    position: relative;
    top: auto;
    width: 100%;
    min-height: 0;
  }

  .proof-spell {
    grid-template-columns: 1fr;
    gap: 62px;
  }

  .proof-input blockquote {
    max-width: 580px;
  }

  .system-readout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  #system-boundary {
    text-align: left;
  }

  .instrument-ledger {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .agency {
    min-height: 0;
    padding-top: 100px;
    padding-bottom: 110px;
  }

  .agency-heading h2 {
    font-size: 62px;
  }

  .agency-body {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .ward-visual {
    opacity: 0.42;
  }

  .enter {
    min-height: 620px;
  }

  .enter-field {
    right: -160px;
    opacity: 0.48;
  }

  .enter-copy h2 {
    font-size: 58px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  :root {
    --page-pad: 18px;
  }

  .brand-edition {
    display: none;
  }

  .site-nav {
    font-size: 11px;
  }

  .hero {
    height: calc(100svh - 24px);
    min-height: 540px;
  }

  .hero-copy {
    padding-top: 4px;
  }

  .eyebrow {
    margin-bottom: 20px;
    font-size: 8px;
  }

  .hero-brand {
    font-size: 68px;
  }

  .hero-statement {
    margin-top: 24px;
    font-size: 27px;
  }

  .hero-definition {
    max-width: 350px;
    margin-top: 18px;
    font-size: 12px;
    line-height: 1.75;
  }

  .hero-definition br {
    display: none;
  }

  .hero-actions {
    gap: 20px;
    margin-top: 20px;
  }

  .text-link {
    gap: 7px;
    font-size: 11px;
  }

  .hero-contract {
    gap: 5px;
    font-size: 6px;
  }

  .field-coordinate-a,
  .field-coordinate-b,
  .field-coordinate-c,
  .orbit-label {
    display: none;
  }

  .field-grid {
    right: -44%;
    left: 44%;
  }

  .hero-orbit,
  .hero-axis,
  .hero-core {
    right: -2%;
    opacity: 0.62;
  }

  .hero-orbit-outer {
    width: 260px;
  }

  .hero-orbit-inner {
    width: 154px;
  }

  .hero-axis-horizontal {
    width: 320px;
  }

  .hero-axis-vertical {
    height: 320px;
  }

  .hero-core {
    width: 102px;
  }

  .core-halo {
    width: 102px;
    height: 102px;
  }

  .core-ring-a {
    width: 60px;
    height: 60px;
  }

  .section-heading {
    width: calc(100% - (var(--page-pad) * 2));
    margin-bottom: 52px;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .section-heading > div > p {
    font-size: 13px;
  }

  .contract,
  .proof,
  .system {
    padding-top: 78px;
    padding-bottom: 88px;
  }

  .contract-layout,
  .proof-spell,
  .system-loop,
  .instrument-ledger {
    width: calc(100% - (var(--page-pad) * 2));
  }

  .contract-map {
    aspect-ratio: auto;
    padding: 18px;
  }

  .stage-readout {
    grid-template-columns: 48px 1fr;
    gap: 12px;
  }

  .stage-readout-number {
    font-size: 36px;
  }

  .map-status {
    position: static;
    margin-top: 18px;
  }

  .contract-step {
    min-height: 0;
    padding: 24px 0 34px 16px;
  }

  .contract-step button {
    grid-template-columns: 36px 1fr auto;
    gap: 8px;
  }

  .step-name {
    font-size: 11px;
  }

  .step-japanese {
    font-size: 23px;
  }

  .contract-step > p,
  .step-signal {
    margin-left: 36px;
  }

  .proof-input blockquote {
    margin-top: 34px;
    font-size: 42px;
  }

  .proof-event {
    grid-template-columns: 100px 1fr;
    gap: 12px;
  }

  .proof-event h3,
  .proof-event > span {
    grid-column: 2;
  }

  .proof-event h3 {
    font-size: 20px;
  }

  .system-loop {
    padding-top: 34px;
  }

  .system-rail {
    display: none;
  }

  .system-nodes {
    grid-template-columns: 1fr;
    border-top: 1px solid var(--line-light);
  }

  .system-node {
    grid-template-columns: 32px 100px 1fr;
    justify-items: start;
    align-items: center;
    border-bottom: 1px solid var(--line-light);
    padding: 16px 0;
    text-align: left;
  }

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

  .system-node-index,
  .system-node strong,
  .system-node > span:last-child {
    order: initial;
  }

  .system-node > span:last-child {
    margin: 0;
  }

  .system-node.is-active {
    color: #8c5906;
  }

  .system-readout {
    margin-top: 28px;
  }

  .instrument-ledger {
    margin-top: 70px;
  }

  .instrument-ledger dl > div {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .agency {
    padding-right: var(--page-pad);
    padding-left: var(--page-pad);
  }

  .agency-heading h2 {
    font-size: 48px;
  }

  .agency-lead {
    font-size: 19px;
  }

  .ward-visual {
    right: -360px;
  }

  .enter {
    min-height: 560px;
    padding-right: var(--page-pad);
    padding-left: var(--page-pad);
  }

  .enter-field {
    right: -260px;
    width: 460px;
  }

  .enter-copy h2 {
    font-size: 43px;
  }

  .enter-action {
    margin-top: 42px;
    font-size: 14px;
  }

  .site-footer {
    padding-right: var(--page-pad);
    padding-left: var(--page-pad);
  }
}

@media (max-width: 350px) {
  .hero-brand {
    font-size: 60px;
  }

  .hero-statement {
    font-size: 24px;
  }

  .hero-definition {
    font-size: 11px;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .agency-heading h2 {
    font-size: 42px;
  }

  .enter-copy h2 {
    font-size: 38px;
  }
}

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

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

  [data-reveal],
  .proof-event {
    opacity: 1;
    transform: none;
  }

  .hero-field {
    transform: none;
  }
}
