:root {
  color-scheme: dark;
  --bg: #050607;
  --bg-panel: #090b0d;
  --bg-band: #0b0e10;
  --text: #f4f0e8;
  --muted: #adb3b5;
  --faint: #353b3f;
  --line: #566066;
  --x: #4dff73;
  --y: #39baff;
  --z: #ffd34d;
  --selected-orange: #ff714d;
  --selected: var(--selected-orange);
  --selected-deep: #110806;
  --max: 1180px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at center, rgba(244, 240, 232, 0.18) 1px, transparent 1.5px)
      0 0 / 48px 48px,
    var(--bg);
  opacity: 0.38;
}

a {
  color: inherit;
}

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

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 1px solid var(--selected);
  outline-offset: 2px;
  transition-duration: 0ms !important;
}

button:active,
a:active {
  transition-duration: 0ms !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  border: 1px solid var(--selected);
  background: var(--bg);
  color: var(--selected);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 10px 12px;
  text-decoration: none;
  text-transform: uppercase;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  width: 100%;
  min-height: 72px;
  padding: 18px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid rgba(244, 240, 232, 0.1);
  background: rgba(5, 6, 7, 0.78);
  backdrop-filter: blur(16px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark-hyphen {
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--selected);
}

.nav-links {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  text-transform: uppercase;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--selected);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.shell-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-width: 0;
}

.shell-readout {
  display: flex;
  gap: 10px;
  color: rgba(244, 240, 232, 0.5);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
}

.shell-readout span {
  padding-left: 10px;
  border-left: 1px solid rgba(244, 240, 232, 0.16);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  min-height: 100vh;
  padding: 112px clamp(20px, 5vw, 64px) 64px;
  overflow: hidden;
}

.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 68vh;
  padding: 112px clamp(20px, 5vw, 64px) 72px;
  overflow: hidden;
}

.field-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(244, 240, 232, 0.05) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(90deg, rgba(244, 240, 232, 0.05) 1px, transparent 1px) 0 0 / 80px 80px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.72));
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.page-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.system-label,
.section-kicker,
.line-code {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: 4.2rem;
  line-height: 0.98;
  font-weight: 720;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 24px;
  max-width: 760px;
  font-size: 2.4rem;
  line-height: 1.05;
  font-weight: 690;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.positioning {
  margin-bottom: 12px;
  max-width: 620px;
  color: var(--text);
  font-size: 1.32rem;
  line-height: 1.35;
}

.tagline {
  margin-bottom: 24px;
  color: var(--selected);
  font-family: var(--mono);
  font-size: 0.98rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-description,
.section-band p,
.contact-section p {
  color: #c8c3b8;
  font-size: 1rem;
  line-height: 1.68;
}

.hero-description {
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(244, 240, 232, 0.26);
  background: rgba(5, 6, 7, 0.56);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.form-button {
  cursor: pointer;
}

.action-link.primary {
  border-color: var(--selected);
  background: var(--selected);
  color: var(--selected-deep);
}

.action-link.secondary:hover,
.action-link.secondary:focus-visible {
  border-color: rgba(244, 240, 232, 0.68);
}

.telemetry-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 520px;
  margin: 0;
  border: 1px solid rgba(244, 240, 232, 0.14);
  background: rgba(5, 6, 7, 0.46);
}

.telemetry-strip div {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid rgba(244, 240, 232, 0.1);
}

.telemetry-strip div:last-child {
  border-right: 0;
}

.telemetry-strip dt,
.telemetry-strip dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.telemetry-strip dt {
  color: var(--muted);
}

.telemetry-strip dd {
  margin-top: 6px;
  color: var(--selected);
  font-weight: 700;
}

.instrument-wrap {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.crosspoint-field {
  display: block;
  width: 100%;
  max-height: 690px;
  border: 1px solid rgba(244, 240, 232, 0.2);
  background:
    linear-gradient(rgba(244, 240, 232, 0.018) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(244, 240, 232, 0.018) 1px, transparent 1px) 0 0 / 40px 40px,
    rgba(5, 6, 7, 0.72);
}

.field-grid path {
  stroke: rgba(244, 240, 232, 0.08);
  stroke-width: 1;
}

.unselected-points circle {
  fill: rgba(244, 240, 232, 0.48);
}

.unselected-points,
.selection-target {
  cursor: crosshair;
  outline: none;
}

.unselected-points:focus-visible circle,
.selection-target:focus-visible .selected-cell-outline {
  stroke: var(--selected);
  stroke-width: 3;
}

body[data-signal-state="weak"] .unselected-points circle {
  fill: rgba(255, 113, 77, 0.66);
}

body[data-signal-state="weak"] .selection-target {
  opacity: 0.42;
}

body[data-signal-state="selected"] .unselected-points circle {
  fill: rgba(244, 240, 232, 0.18);
}

body[data-signal-state="selected"] .selection-target {
  opacity: 1;
}

.marker {
  fill: currentColor;
}

.marker-x {
  color: var(--x);
}

.marker-y {
  color: var(--y);
}

.marker-z {
  color: var(--z);
}

.axis-line,
.selection-lead,
.window-axis {
  fill: none;
  stroke-linecap: square;
}

.signal {
  opacity: 0.58;
  transition: opacity 0ms linear;
}

.axis-line {
  stroke-width: 2;
}

.axis-x {
  stroke: var(--x);
}

.axis-y {
  stroke: var(--y);
}

.axis-z {
  stroke: var(--z);
}

.signal text,
.instrument-readout text,
.selection-target text,
.margin-window text {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.selection-target {
  opacity: 1;
}

.selected-cell-outline {
  fill: rgba(255, 113, 77, 0.08);
  stroke: var(--selected);
  stroke-width: 2.5;
}

.selected-cell-fill {
  fill: var(--selected);
  opacity: 1;
  transform: scale(1);
  transform-origin: 640px 410px;
}

.selection-corner {
  fill: none;
  stroke: rgba(255, 113, 77, 0.86);
  stroke-width: 2;
  stroke-linecap: square;
}

.selection-lead {
  stroke: rgba(255, 113, 77, 0.7);
  stroke-width: 1;
}

.selection-label {
  fill: var(--text);
}

.instrument-readout text {
  fill: rgba(244, 240, 232, 0.62);
  font-size: 15px;
}

.instrument-readout .readout-strong {
  fill: var(--selected);
}

body[data-active-axis="x"] .signal:not(.signal-x),
body[data-active-axis="y"] .signal:not(.signal-y),
body[data-active-axis="z"] .signal:not(.signal-z) {
  opacity: 0.2;
}

body[data-active-axis="x"] .signal-x,
body[data-active-axis="y"] .signal-y,
body[data-active-axis="z"] .signal-z,
body:not([data-active-axis]) .signal {
  opacity: 0.92;
}

.axis-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.axis-control {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(244, 240, 232, 0.18);
  background: rgba(5, 6, 7, 0.74);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  cursor: pointer;
}

.axis-control:hover,
.axis-control:focus-visible {
  border-color: rgba(244, 240, 232, 0.64);
}

.axis-swatch {
  width: 18px;
  height: 2px;
}

.swatch-x {
  background: var(--x);
}

.swatch-y {
  background: var(--y);
}

.swatch-z {
  background: var(--z);
}

.axis-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.field-telemetry {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 1px;
  margin: 12px 0 0;
  background: rgba(244, 240, 232, 0.14);
}

.field-telemetry div {
  min-width: 0;
  padding: 11px 12px;
  background: rgba(5, 6, 7, 0.72);
}

.field-telemetry dt,
.field-telemetry dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.64rem;
  text-transform: uppercase;
}

.field-telemetry dt {
  color: var(--muted);
}

.field-telemetry dd {
  margin-top: 6px;
  color: var(--selected);
  font-weight: 700;
}

.section-band {
  scroll-margin-top: 72px;
  padding: 92px clamp(20px, 5vw, 64px);
  border-top: 1px solid rgba(244, 240, 232, 0.12);
  background: rgba(9, 11, 13, 0.86);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}

.split-section.reverse {
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 0.9fr);
}

.section-band > h2,
.section-band > .section-kicker,
.line-grid,
.assist-list {
  max-width: var(--max);
  margin-right: auto;
  margin-left: auto;
}

.signal-register {
  border: 1px solid rgba(244, 240, 232, 0.14);
  padding: 22px;
  background: rgba(5, 6, 7, 0.46);
  font-family: var(--mono);
}

.register-header {
  display: grid;
  grid-template-columns: 32px 1fr minmax(118px, 0.8fr);
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(244, 240, 232, 0.12);
  color: rgba(244, 240, 232, 0.46);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
}

.register-row {
  display: grid;
  grid-template-columns: 32px 1fr minmax(118px, 0.8fr);
  gap: 14px;
  align-items: center;
  min-height: 42px;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.register-line {
  height: 2px;
}

.active-x {
  background: var(--x);
}

.active-y {
  background: var(--y);
}

.active-z {
  background: var(--z);
}

.register-state {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 240, 232, 0.12);
  color: var(--selected);
  font-size: 0.82rem;
  font-weight: 700;
}

.line-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  background: rgba(244, 240, 232, 0.14);
}

.route-grid,
.manual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: var(--max);
  margin: 34px auto 0;
  background: rgba(244, 240, 232, 0.14);
}

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

.line-module,
.route-module {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 28px;
  background: var(--bg-panel);
}

.route-module {
  color: inherit;
  text-decoration: none;
}

.route-module:hover,
.route-module:focus-visible {
  outline: 1px solid rgba(255, 113, 77, 0.72);
  outline-offset: -1px;
}

.module-x {
  border-top: 2px solid var(--x);
}

.module-y {
  border-top: 2px solid var(--y);
}

.module-z {
  border-top: 2px solid var(--z);
}

.module-array {
  border-top: 2px solid var(--selected);
}

.line-module p:last-child {
  margin-bottom: 0;
}

.line-scope {
  position: relative;
  height: 72px;
  margin: 6px 0 22px;
  border: 1px solid rgba(244, 240, 232, 0.12);
  background:
    linear-gradient(rgba(244, 240, 232, 0.05) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(90deg, rgba(244, 240, 232, 0.05) 1px, transparent 1px) 0 0 / 36px 36px,
    rgba(5, 6, 7, 0.38);
}

.line-scope span {
  position: absolute;
  top: 35px;
  left: 18px;
  width: calc(100% - 36px);
  height: 2px;
  background: currentColor;
}

.line-scope span:nth-child(2) {
  top: 18px;
  left: 50%;
  width: 2px;
  height: 36px;
}

.line-scope span:nth-child(3) {
  top: 29px;
  left: calc(62% - 7px);
  width: 14px;
  height: 14px;
  background: var(--selected);
}

.module-x .line-scope {
  color: var(--x);
}

.module-y .line-scope {
  color: var(--y);
}

.module-z .line-scope {
  color: var(--z);
}

.module-readout {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 240, 232, 0.12);
  color: var(--muted) !important;
  font-family: var(--mono);
  font-size: 0.68rem !important;
  line-height: 1.4 !important;
  text-transform: uppercase;
}

.margin-window {
  border: 1px solid rgba(244, 240, 232, 0.14);
  background: rgba(5, 6, 7, 0.46);
}

.margin-window svg {
  display: block;
  width: 100%;
  min-height: 280px;
}

.window-axis {
  stroke: rgba(244, 240, 232, 0.34);
  stroke-width: 1.5;
}

.window-region {
  fill: rgba(255, 211, 77, 0.08);
  stroke: rgba(255, 211, 77, 0.72);
  stroke-width: 1.5;
}

.window-point.muted {
  fill: rgba(244, 240, 232, 0.34);
}

.window-point.selected {
  fill: var(--selected);
}

.margin-readouts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(244, 240, 232, 0.12);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.margin-readouts span:first-child {
  color: var(--selected);
}

.assist-list {
  display: grid;
  gap: 1px;
  margin-top: 34px;
  background: rgba(244, 240, 232, 0.14);
}

.assist-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 76px;
  padding: 18px 22px;
  background: var(--bg-panel);
  color: #d9d4c9;
  font-family: var(--mono);
  font-size: 0.84rem;
  text-transform: uppercase;
}

.assist-row span:last-child {
  color: #c8c3b8;
  line-height: 1.4;
}

.selected-assist span:first-child,
.selected-assist span:last-child {
  color: var(--selected);
}

.assist-row span:last-child::before {
  content: "-> ";
  color: var(--muted);
}

.data-grid {
  display: grid;
  gap: 1px;
  max-width: var(--max);
  margin: 34px auto 0;
  background: rgba(244, 240, 232, 0.14);
}

.data-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-height: 66px;
  padding: 18px 22px;
  background: var(--bg-panel);
  color: #c8c3b8;
  font-size: 0.96rem;
  line-height: 1.55;
}

.data-row span:first-child {
  color: var(--selected);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.array-log {
  display: grid;
  gap: 1px;
  max-width: var(--max);
  margin: 34px auto 0;
  background: rgba(244, 240, 232, 0.14);
}

.array-point {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1px;
  background: rgba(244, 240, 232, 0.14);
}

.point-stamp {
  display: grid;
  place-items: center;
  min-height: 220px;
  background:
    linear-gradient(rgba(244, 240, 232, 0.04) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(244, 240, 232, 0.04) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--bg-panel);
  color: var(--selected);
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.point-body {
  padding: 24px;
  background: var(--bg-panel);
}

.point-header {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--selected);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.point-body p {
  max-width: 760px;
  color: #c8c3b8;
  line-height: 1.6;
}

.point-readouts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0 0;
  background: rgba(244, 240, 232, 0.14);
}

.point-readouts div {
  min-width: 0;
  padding: 14px;
  background: rgba(5, 6, 7, 0.52);
}

.point-readouts dt,
.point-readouts dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.64rem;
  text-transform: uppercase;
}

.point-readouts dt {
  color: var(--muted);
}

.point-readouts dd {
  margin-top: 6px;
  color: var(--text);
  line-height: 1.4;
}

.log-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: var(--max);
  margin: 4px auto 30px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.log-filters span {
  padding: 8px 10px;
  border: 1px solid rgba(244, 240, 232, 0.14);
  background: rgba(5, 6, 7, 0.46);
}

.log-feed {
  display: grid;
  gap: 1px;
  max-width: var(--max);
  margin: 0 auto;
  background: rgba(244, 240, 232, 0.14);
}

.log-entry {
  padding: 24px;
  background: var(--bg-panel);
}

.log-entry header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  margin-bottom: 16px;
  color: var(--selected);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.log-entry header time {
  color: var(--selected);
}

.log-entry p {
  max-width: 920px;
  color: #c8c3b8;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.65;
}

.log-entry details {
  margin-top: 18px;
  border-top: 1px solid rgba(244, 240, 232, 0.12);
  padding-top: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.log-entry summary {
  width: fit-content;
  color: var(--selected);
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
}

.log-entry ul {
  margin: 14px 0 0;
  padding-left: 18px;
  line-height: 1.6;
}

.thesis-document {
  display: grid;
  gap: 1px;
  max-width: var(--max);
  margin: 34px auto 0;
  background: rgba(244, 240, 232, 0.14);
}

.thesis-document article {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(220px, 0.28fr);
  gap: 28px;
  padding: 32px;
  background: var(--bg-panel);
}

.thesis-document h3 {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: var(--selected);
  font-family: var(--mono);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.thesis-document p {
  margin: 0;
  color: #d9d4c9;
  font-size: 1.08rem;
  line-height: 1.72;
}

.thesis-document aside {
  align-self: start;
  border-left: 1px solid var(--selected);
  padding-left: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.6;
  text-transform: uppercase;
}

.operator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: var(--max);
  margin: 34px auto 0;
  background: rgba(244, 240, 232, 0.14);
}

.operator-module {
  padding: 26px;
  background: var(--bg-panel);
}

.operator-module p {
  color: #c8c3b8;
  line-height: 1.62;
}

.operator-module ul {
  margin: 20px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.7;
  text-transform: uppercase;
}

.criteria-grid,
.state-ladder,
.write-assist-matrix {
  display: grid;
  gap: 1px;
  max-width: var(--max);
  margin: 34px auto 0;
  background: rgba(244, 240, 232, 0.14);
}

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

.criteria-module,
.state-node,
.matrix-cell {
  padding: 24px;
  background: var(--bg-panel);
}

.criteria-module h3,
.state-node h3,
.matrix-cell h3 {
  color: var(--text);
}

.criteria-module p,
.state-node p,
.matrix-cell p {
  margin-bottom: 0;
}

.state-ladder {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.state-node {
  min-height: 190px;
  border-top: 2px solid rgba(244, 240, 232, 0.22);
}

.state-node.is-selected {
  border-top-color: var(--selected);
}

.state-code {
  display: block;
  margin-bottom: 14px;
  color: var(--selected);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

.matrix-cell:nth-child(1),
.matrix-cell:nth-child(4) {
  border-top: 2px solid var(--x);
}

.matrix-cell:nth-child(2),
.matrix-cell:nth-child(5) {
  border-top: 2px solid var(--y);
}

.matrix-cell:nth-child(3),
.matrix-cell:nth-child(6) {
  border-top: 2px solid var(--z);
}

.calibration-form {
  display: grid;
  gap: 18px;
  max-width: var(--max);
  margin: 22px auto 0;
}

.calibration-live-state {
  max-width: var(--max);
  margin: -8px auto 0;
}

.validation-readout {
  max-width: var(--max);
  min-height: 20px;
  margin: 10px auto 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.validation-readout.is-error {
  color: var(--selected);
}

.calibration-console {
  display: grid;
  grid-template-columns: minmax(210px, 0.34fr) minmax(0, 1fr);
  gap: 1px;
  max-width: var(--max);
  margin: 34px auto 0;
  background: rgba(244, 240, 232, 0.14);
}

.calibration-steps {
  display: grid;
  align-content: start;
  gap: 1px;
  background: rgba(244, 240, 232, 0.14);
}

.calibration-step {
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 82px;
  padding: 16px;
  border: 0;
  border-left: 2px solid transparent;
  background: var(--bg-panel);
  color: var(--muted);
  font-family: var(--mono);
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.calibration-step span:first-child {
  color: rgba(244, 240, 232, 0.46);
  font-size: 0.62rem;
}

.calibration-step span:last-child {
  font-size: 0.78rem;
  font-weight: 700;
}

.calibration-step.is-active {
  border-left-color: var(--selected);
  color: var(--text);
}

.calibration-panel {
  min-height: 500px;
  padding: 26px;
  background: rgba(5, 6, 7, 0.74);
}

.calibration-panel[hidden] {
  display: none;
}

.calibration-panel h3 {
  margin-bottom: 10px;
}

.calibration-panel > p {
  max-width: 680px;
  color: #c8c3b8;
  line-height: 1.6;
}

.calibration-panel .field-block {
  margin-top: 18px;
}

.panel-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.signal-review {
  display: grid;
  gap: 1px;
  margin: 24px 0;
  background: rgba(244, 240, 232, 0.14);
}

.signal-review div {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) minmax(0, 1fr);
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-panel);
  color: #c8c3b8;
}

.signal-review span:first-child {
  color: var(--selected);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hash-output {
  display: grid;
  gap: 8px;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid rgba(244, 240, 232, 0.16);
  background:
    linear-gradient(rgba(244, 240, 232, 0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(244, 240, 232, 0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    rgba(5, 6, 7, 0.52);
  font-family: var(--mono);
  text-transform: uppercase;
}

.hash-output span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.hash-output strong {
  color: var(--selected);
  font-size: 1.3rem;
  letter-spacing: 0;
}

.hash-output a {
  width: fit-content;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.hash-output a:hover,
.hash-output a:focus-visible {
  color: var(--selected);
}

.field-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field-block {
  display: grid;
  gap: 10px;
}

.field-block span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.field-block input,
.field-block textarea {
  width: 100%;
  border: 1px solid rgba(244, 240, 232, 0.18);
  border-radius: 0;
  background: rgba(5, 6, 7, 0.62);
  color: var(--text);
  font: 0.95rem/1.5 var(--mono);
  padding: 14px;
  resize: vertical;
}

.field-block input:focus,
.field-block textarea:focus {
  border-color: var(--selected);
  outline: 1px solid var(--selected);
  outline-offset: 0;
}

.field-block ::placeholder {
  color: rgba(154, 160, 162, 0.62);
}

.contact-section {
  padding: 108px clamp(20px, 5vw, 64px) 120px;
  border-top: 1px solid rgba(244, 240, 232, 0.12);
  background: var(--bg);
}

.contact-section > * {
  max-width: var(--max);
  margin-right: auto;
  margin-left: auto;
}

.contact-section h2 {
  margin-bottom: 34px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.contact-readout {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.system-map {
  padding: 48px clamp(20px, 5vw, 64px) 58px;
  border-top: 1px solid rgba(244, 240, 232, 0.12);
  background: var(--bg);
}

.system-map-inner {
  display: grid;
  gap: 8px;
  max-width: var(--max);
  margin: 0 auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.system-map-inner p {
  margin-bottom: 4px;
  color: rgba(244, 240, 232, 0.42);
}

.system-map-inner a {
  width: fit-content;
  text-decoration: none;
}

.system-map-inner a[aria-current="page"] {
  color: var(--selected);
}

.system-map-inner span {
  color: rgba(244, 240, 232, 0.42);
}

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

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

@media (max-width: 980px) {
  .shell-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 112px;
  }

  .crosspoint-field {
    max-height: none;
  }

  h1 {
    font-size: 3.4rem;
  }

  .split-section,
  .split-section.reverse {
    grid-template-columns: 1fr;
  }

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

  .route-grid,
  .manual-grid,
  .log-entry header,
  .thesis-document article,
  .operator-grid,
  .point-readouts,
  .criteria-grid,
  .state-ladder,
  .write-assist-matrix,
  .calibration-console {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: sticky;
    grid-template-columns: auto auto;
    min-height: 64px;
    padding: 14px 16px;
  }

  .nav-links {
    display: none;
  }

  .shell-readout span:nth-child(n+2) {
    display: none;
  }

  .hero {
    padding: 32px 16px 54px;
  }

  h1 {
    font-size: 2.72rem;
  }

  h2 {
    font-size: 2rem;
  }

  .positioning {
    font-size: 1.16rem;
  }

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

  .action-link {
    justify-content: center;
    width: 100%;
  }

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

  .telemetry-strip div {
    padding: 10px 8px;
    border-right: 1px solid rgba(244, 240, 232, 0.1);
    border-bottom: 0;
  }

  .telemetry-strip div:last-child {
    border-right: 0;
  }

  .telemetry-strip dt,
  .telemetry-strip dd {
    font-size: 0.58rem;
  }

  .section-band,
  .contact-section {
    padding-right: 16px;
    padding-left: 16px;
  }

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

  .axis-control {
    justify-content: center;
    min-width: 0;
    padding: 0 6px;
    font-size: 0.68rem;
  }

  .assist-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .data-row,
  .array-point,
  .field-grid-two,
  .signal-review div {
    grid-template-columns: 1fr;
  }

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

  .calibration-panel {
    min-height: auto;
    padding: 20px;
  }

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

  .calibration-step {
    min-height: 68px;
    padding: 12px;
  }

  .crosspoint-field .signal text,
  .crosspoint-field .selection-target text,
  .crosspoint-field .instrument-readout text {
    font-size: 20px;
  }

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

@media (max-width: 480px) {
  .hero {
    padding-top: 24px;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .crosspoint-field {
    min-height: 300px;
  }

  .axis-controls {
    grid-template-columns: 1fr;
  }

  .register-row {
    grid-template-columns: 24px 1fr;
  }

  .register-header {
    grid-template-columns: 24px 1fr;
  }

  .register-row span:last-child {
    grid-column: 2;
  }

  .register-header span:last-child {
    grid-column: 2;
  }
}
