:root {
  color-scheme: dark;
  --ink: #10110f;
  --night: #090a09;
  --night-soft: #121410;
  --paper: #eee9d8;
  --paper-deep: #d8d1bb;
  --fog: #a7aa9e;
  --line: rgba(238, 233, 216, 0.2);
  --dark-line: rgba(16, 17, 15, 0.2);
  --acid: #c8ff58;
  --coral: #ff755f;
  --amber: #ffcf65;
  --mint: #77dfc4;
  --blue: #8eb7ff;
  --violet: #c29cff;
  --state: var(--acid);
  --display: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shell: min(1540px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 82% 4%, rgba(200, 255, 88, 0.08), transparent 25rem),
    var(--night);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.4;
}

body[data-state="mirror"] {
  --state: var(--coral);
}

body[data-state="escrow"] {
  --state: var(--amber);
}

body[data-state^="hold"] {
  --state: #ff816d;
}

body[data-state="not-convened"],
body[data-state="witness"] {
  --state: #c6c6b9;
}

button,
input,
select {
  font: inherit;
}

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

button,
a {
  color: inherit;
}

button {
  border: 0;
}

a {
  text-decoration: none;
}

p,
h1,
h2,
h3,
dl,
dd,
blockquote,
ol,
ul {
  margin: 0;
}

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

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: var(--night);
  background: var(--acid);
  font-weight: 900;
  transform: translateY(-160%);
  transition: transform 120ms ease;
}

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

:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 4px;
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: stretch;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 10, 9, 0.93);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px 24px;
}

.brand-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--acid);
  color: var(--acid);
  font-family: var(--serif);
  font-size: 27px;
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0.12em;
}

.brand strong {
  font-size: 17px;
  line-height: 1.1;
}

.brand small {
  margin-top: 5px;
  color: var(--fog);
  font-family: var(--mono);
  font-size: 9px;
}

.site-header nav {
  display: flex;
  align-items: stretch;
  border-left: 1px solid var(--line);
}

.site-header nav a {
  display: grid;
  min-width: 82px;
  place-items: center;
  padding: 0 15px;
  border-right: 1px solid var(--line);
  color: var(--fog);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  transition:
    color 120ms ease,
    background 120ms ease;
}

.site-header nav a:hover {
  color: var(--ink);
  background: var(--acid);
}

.header-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 128px;
  padding: 0 20px;
  background: var(--acid);
  color: var(--ink);
}

.header-proof span {
  font-family: var(--serif);
  font-size: 44px;
  font-style: italic;
  line-height: 1;
}

.header-proof small {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  min-height: calc(100vh - 92px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 76px clamp(28px, 5vw, 92px);
  border-right: 1px solid var(--line);
}

.eyebrow,
.section-index {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--acid);
}

.eyebrow > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
}

.hero h1 {
  max-width: 760px;
  margin-top: 30px;
  font-size: clamp(62px, 7.2vw, 126px);
  font-weight: 800;
  letter-spacing: -0.067em;
  line-height: 0.78;
  text-transform: uppercase;
}

.hero h1 em {
  display: block;
  color: var(--acid);
  font-family: var(--serif);
  font-size: 0.86em;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-transform: none;
}

.hero-deck {
  max-width: 670px;
  margin-top: 36px;
  color: #c9c9bd;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 31px);
  line-height: 1.2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 20px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.button.primary {
  min-width: 250px;
  color: var(--ink);
  background: var(--acid);
}

.button.ghost:hover {
  border-color: var(--paper);
  background: rgba(238, 233, 216, 0.06);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  margin-top: 64px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.hero-stats div {
  padding: 17px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-stats dt {
  font-family: var(--serif);
  font-size: 35px;
  font-style: italic;
  line-height: 1;
}

.hero-stats dd {
  margin-top: 5px;
  color: var(--fog);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-loom {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  padding: 68px;
  background:
    linear-gradient(rgba(200, 255, 88, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 255, 88, 0.025) 1px, transparent 1px),
    radial-gradient(circle at center, #17200f 0, #090a09 67%);
  background-size: 34px 34px, 34px 34px, auto;
}

.hero-loom::before {
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border: 1px solid rgba(200, 255, 88, 0.18);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 70px rgba(200, 255, 88, 0.02),
    0 0 0 140px rgba(200, 255, 88, 0.015);
}

.loom-frame {
  position: relative;
  z-index: 2;
  width: min(100%, 660px);
  aspect-ratio: 0.9;
  padding: 28px;
  border: 2px solid var(--paper);
  background: rgba(9, 10, 9, 0.74);
  box-shadow:
    16px 16px 0 rgba(200, 255, 88, 0.07),
    0 30px 90px rgba(0, 0, 0, 0.6);
}

.loom-rule {
  display: flex;
  justify-content: space-between;
  color: var(--fog);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.top-rule {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.bottom-rule {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.warp-field {
  position: relative;
  height: calc(100% - 57px);
  overflow: hidden;
}

.warp {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 9px;
  background: repeating-linear-gradient(
    180deg,
    currentColor 0 8px,
    transparent 8px 13px
  );
  opacity: 0.88;
}

.warp::after {
  position: absolute;
  inset: 0 3px;
  background: currentColor;
  content: "";
}

.warp-a {
  left: 9%;
  color: var(--acid);
}

.warp-b {
  left: 25%;
  color: var(--coral);
}

.warp-c {
  left: 41%;
  color: var(--amber);
}

.warp-d {
  left: 57%;
  color: var(--mint);
}

.warp-e {
  left: 73%;
  color: var(--blue);
}

.warp-f {
  left: 89%;
  color: var(--violet);
}

.weft {
  position: absolute;
  right: 0;
  left: 0;
  height: 10px;
  opacity: 0.73;
  background: repeating-linear-gradient(
    90deg,
    currentColor 0 11px,
    transparent 11px 16px
  );
}

.weft-a {
  top: 20%;
  color: var(--coral);
}

.weft-b {
  top: 39%;
  color: var(--amber);
}

.weft-c {
  top: 58%;
  color: var(--mint);
}

.weft-d {
  top: 77%;
  color: var(--blue);
}

.shuttle {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 2px solid var(--acid);
  border-radius: 50%;
  color: var(--ink);
  background: var(--acid);
  transform: translate(-50%, -50%) rotate(-7deg);
  box-shadow: 0 0 45px rgba(200, 255, 88, 0.25);
}

.shuttle span {
  font-family: var(--serif);
  font-size: 46px;
  font-style: italic;
  line-height: 0.7;
}

.shuttle small {
  margin-top: -26px;
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 900;
}

.loose-thread {
  position: absolute;
  right: 3%;
  bottom: 7%;
  width: 100px;
  padding: 8px;
  border: 1px solid var(--coral);
  color: var(--coral);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.08em;
  transform: rotate(4deg);
}

.loose-thread::before {
  position: absolute;
  right: 20px;
  bottom: 100%;
  width: 1px;
  height: 80px;
  background: var(--coral);
  content: "";
  transform: rotate(17deg);
  transform-origin: bottom;
}

.hero-seal {
  position: absolute;
  z-index: 5;
  right: 4%;
  bottom: 5%;
  display: flex;
  width: 156px;
  height: 156px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--acid);
  border-radius: 50%;
  color: var(--acid);
  transform: rotate(8deg);
}

.hero-seal strong {
  font-family: var(--serif);
  font-size: 30px;
  font-style: italic;
}

.hero-seal span {
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 800;
}

.thesis,
.seasons-section,
.packet-section,
.comparison-section,
.receipt-section,
.nonclaims-section {
  width: var(--shell);
  margin: 0 auto;
}

.thesis {
  padding: 96px 0 112px;
}

.section-index {
  color: #73766d;
}

.thesis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.8fr) minmax(280px, 0.7fr);
  gap: clamp(36px, 6vw, 110px);
  margin-top: 36px;
}

.thesis h2,
.section-heading h2,
.comparison-copy h2,
.receipt-section h2,
.nonclaims-section strong {
  letter-spacing: -0.048em;
}

.thesis h2 {
  font-size: clamp(52px, 6vw, 96px);
  line-height: 0.88;
  text-transform: uppercase;
}

.thesis h2 em {
  display: block;
  color: var(--acid);
  font-family: var(--serif);
  font-weight: 400;
  text-transform: none;
}

.thesis-grid > div {
  color: #cacabd;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.45;
}

.thesis-rule {
  margin-top: 34px;
  padding: 20px 0 0 24px;
  border-top: 1px solid var(--line);
  border-left: 4px solid var(--acid);
}

.thesis-rule strong {
  color: var(--paper);
}

.thesis ol {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}

.thesis li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: #c7c8bd;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.thesis li span {
  color: var(--acid);
}

.loom-section,
.return-section {
  padding: 104px max(24px, calc((100vw - min(1540px, calc(100vw - 48px))) / 2));
  color: var(--paper);
  background:
    linear-gradient(rgba(238, 233, 216, 0.025) 1px, transparent 1px),
    var(--night-soft);
  background-size: 100% 38px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.68fr);
  gap: 56px;
  align-items: end;
  padding-bottom: 32px;
  border-bottom: 1px solid currentColor;
}

.section-heading h2 {
  max-width: 900px;
  margin-top: 10px;
  font-size: clamp(48px, 5.5vw, 88px);
  line-height: 0.88;
  text-transform: uppercase;
}

.section-heading > p {
  color: #797b72;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.35;
}

.dark-heading > p {
  color: #b2b4aa;
}

.step-ribbon {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  border-left: 1px solid var(--line);
}

.step-ribbon li {
  display: flex;
  min-height: 66px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--fog);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.step-ribbon span {
  color: var(--acid);
}

.mission-block {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.control-label {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.mission-block > .control-label {
  display: block;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.control-label > span,
fieldset legend,
.result-subhead span,
.result-mast > div > p,
.virtue-panel > .result-subhead span,
.controller-panel > .result-subhead span,
.mirror-banner span,
.receipt-card > span {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.control-label small {
  max-width: 220px;
  color: var(--fog);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.25;
}

.mission-block > .control-label small {
  display: block;
  margin-top: 8px;
}

.mission-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mission-tab,
.preset-tab {
  min-width: 0;
  color: var(--paper);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.mission-tab {
  min-height: 102px;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.mission-tab:last-child {
  border-right: 0;
}

.mission-tab small,
.mission-tab strong,
.preset-tab strong,
.preset-tab small {
  display: block;
}

.mission-tab small {
  color: var(--fog);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mission-tab strong {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.05;
  text-transform: uppercase;
}

.mission-tab[aria-selected="true"],
.mission-tab:hover {
  color: var(--ink);
  background: var(--acid);
}

.mission-tab[aria-selected="true"] small {
  color: #394718;
}

.instrument-layout {
  display: grid;
  grid-template-columns: minmax(410px, 0.76fr) minmax(0, 1.24fr);
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.control-deck {
  min-width: 0;
  border-right: 1px solid var(--line);
}

.control-section {
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.preset-tabs {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.preset-tab {
  padding: 13px 14px;
  border: 1px solid var(--line);
}

.preset-tab[aria-pressed="true"] {
  border-color: var(--acid);
  box-shadow: inset 4px 0 0 var(--acid);
}

.preset-tab strong {
  font-size: 12px;
  text-transform: uppercase;
}

.preset-tab small {
  margin-top: 4px;
  color: var(--fog);
  font-family: var(--serif);
  font-size: 11px;
}

.seat-grid {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.seat-editor {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.seat-editor > label {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
}

.seat-editor input[type="checkbox"],
.check-card input {
  width: 20px;
  height: 20px;
  accent-color: var(--acid);
}

.seat-fields {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  min-width: 0;
}

.seat-fields label {
  min-width: 0;
  padding: 9px;
  border-right: 1px solid var(--line);
}

.seat-fields label:last-child {
  border-right: 0;
}

.seat-fields span {
  display: block;
  margin-bottom: 5px;
  color: var(--fog);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

select {
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 0;
  border-radius: 0;
  color: var(--paper);
  background: #1a1c18;
  font-size: 10px;
}

.legitimacy-section {
  display: grid;
  gap: 8px;
}

.legitimacy-section .control-label {
  margin-bottom: 10px;
}

.check-card {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 13px;
  padding: 11px 13px;
  border: 1px solid var(--line);
}

.check-card strong,
.check-card small {
  display: block;
}

.check-card strong {
  font-size: 11px;
  text-transform: uppercase;
}

.check-card small {
  margin-top: 3px;
  color: var(--fog);
  font-family: var(--serif);
  font-size: 11px;
}

fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

fieldset legend {
  margin-bottom: 13px;
}

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

.radio-option {
  position: relative;
  min-width: 0;
}

.radio-option input {
  position: absolute;
  opacity: 0;
}

.radio-option span {
  display: block;
  min-height: 76px;
  padding: 11px;
  border: 1px solid var(--line);
  cursor: pointer;
}

.radio-option strong,
.radio-option small {
  display: block;
}

.radio-option strong {
  font-size: 11px;
  text-transform: uppercase;
}

.radio-option small {
  margin-top: 5px;
  color: var(--fog);
  font-family: var(--serif);
  font-size: 10px;
  line-height: 1.25;
}

.radio-option input:checked + span {
  border-color: var(--acid);
  color: var(--acid);
  background: rgba(200, 255, 88, 0.06);
  box-shadow: inset 3px 0 0 var(--acid);
}

.radio-option input:focus-visible + span {
  outline: 3px solid var(--acid);
  outline-offset: 3px;
}

.radio-grid.compact .radio-option span {
  min-height: 62px;
}

.tuning-section {
  display: grid;
  gap: 20px;
}

.range-control > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.range-control strong {
  font-size: 11px;
  text-transform: uppercase;
}

.range-control output {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 11px;
}

input[type="range"] {
  width: 100%;
  height: 3px;
  appearance: none;
  background: #4a4d45;
}

input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  appearance: none;
  border: 2px solid var(--night);
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 1px var(--acid);
}

.weave-button {
  display: flex;
  width: 100%;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  color: var(--ink);
  background: var(--acid);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.weave-button:disabled {
  cursor: progress;
  opacity: 0.65;
}

.weave-button b {
  font-family: var(--serif);
  font-size: 30px;
  font-style: italic;
}

.result-stage {
  min-width: 0;
  padding: clamp(22px, 3vw, 46px);
  background:
    radial-gradient(circle at 50% 15%, rgba(200, 255, 88, 0.08), transparent 23rem),
    #0c0d0b;
}

.result-mast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--state);
  box-shadow: inset 6px 0 0 var(--state);
}

.result-mast h3 {
  margin-top: 5px;
  color: var(--state);
  font-size: clamp(30px, 3.3vw, 58px);
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-transform: uppercase;
}

.result-mast > p {
  grid-column: 1 / -1;
  max-width: 760px;
  color: #b5b7ac;
  font-family: var(--serif);
  font-size: 16px;
}

.state-chip {
  padding: 8px 10px;
  border: 1px solid var(--state);
  color: var(--state);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

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

.metric-row div {
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-row dt {
  color: var(--state);
  font-family: var(--serif);
  font-size: 32px;
  font-style: italic;
  line-height: 1;
}

.metric-row dd {
  margin-top: 5px;
  color: var(--fog);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.woven-cloth,
.guard-section {
  margin-top: 34px;
}

.result-subhead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.result-subhead h3 {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}

.result-subhead button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  color: var(--paper);
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 900;
}

.cloth-visual {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(98px, 1fr));
  min-height: 390px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 63px,
      rgba(238, 233, 216, 0.12) 63px 65px
    );
}

.cloth-visual::before,
.cloth-visual::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 8px;
  background: var(--state);
  content: "";
  opacity: 0.55;
}

.cloth-visual::before {
  top: 32%;
}

.cloth-visual::after {
  top: 68%;
}

.cloth-thread {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  padding: 12px 10px;
  border-right: 1px solid var(--line);
  background: linear-gradient(
    90deg,
    transparent calc(50% - 4px),
    var(--thread-color) calc(50% - 4px) calc(50% + 4px),
    transparent calc(50% + 4px)
  );
}

.cloth-thread:last-child {
  border-right: 0;
}

.cloth-thread.is-shared {
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0 9px,
      rgba(255, 117, 95, 0.16) 9px 18px
    ),
    linear-gradient(
      90deg,
      transparent calc(50% - 4px),
      var(--thread-color) calc(50% - 4px) calc(50% + 4px),
      transparent calc(50% + 4px)
    );
}

.thread-head,
.thread-foot {
  padding: 8px;
  border: 1px solid var(--thread-color);
  background: #0c0d0b;
}

.thread-head strong,
.thread-head small,
.thread-foot strong,
.thread-foot small {
  display: block;
  overflow-wrap: anywhere;
}

.thread-head strong,
.thread-foot strong {
  font-size: 9px;
  line-height: 1.05;
  text-transform: uppercase;
}

.thread-head small,
.thread-foot small {
  margin-top: 4px;
  color: var(--fog);
  font-family: var(--mono);
  font-size: 6px;
  line-height: 1.25;
}

.thread-knot {
  align-self: center;
  justify-self: center;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid var(--thread-color);
  border-radius: 50%;
  color: var(--thread-color);
  background: var(--night);
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
}

.cloth-ledger {
  display: none;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.ledger-view .cloth-visual {
  display: none;
}

.ledger-view .cloth-ledger {
  display: block;
}

.ledger-row {
  display: grid;
  grid-template-columns: 52px 1.3fr 1fr 1fr;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
}

.ledger-row:last-child {
  border-bottom: 0;
}

.ledger-row > * {
  min-width: 0;
  padding: 11px;
  border-right: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.ledger-row > *:last-child {
  border-right: 0;
}

.ledger-row span {
  color: var(--fog);
  font-family: var(--mono);
  font-size: 7px;
}

.ledger-row strong {
  font-size: 10px;
  text-transform: uppercase;
}

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

.guard-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.guard-card > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid currentColor;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 900;
}

.guard-card.is-hold > span {
  color: var(--coral);
}

.guard-card strong,
.guard-card small {
  display: block;
  overflow-wrap: anywhere;
}

.guard-card strong {
  font-size: 10px;
  text-transform: uppercase;
}

.guard-card small {
  margin-top: 4px;
  color: var(--fog);
  font-family: var(--serif);
  font-size: 11px;
}

.seasons-section,
.packet-section {
  padding: 108px 0;
  color: var(--ink);
  background: var(--paper);
}

.seasons-section::before,
.packet-section::before {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--dark-line);
  content: "";
}

.seasons-section {
  width: 100%;
  padding-right: max(24px, calc((100vw - min(1540px, calc(100vw - 48px))) / 2));
  padding-left: max(24px, calc((100vw - min(1540px, calc(100vw - 48px))) / 2));
}

.seasons-section .section-index,
.packet-section .section-index {
  color: #686a62;
}

.season-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 42px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.season-card {
  position: relative;
  min-height: 300px;
  padding: 28px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
}

.season-card::after {
  position: absolute;
  right: -36px;
  bottom: -65px;
  color: rgba(16, 17, 15, 0.07);
  content: attr(data-mark);
  font-family: var(--serif);
  font-size: 210px;
  font-style: italic;
  line-height: 1;
}

.season-card > span {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.season-card h3 {
  max-width: 330px;
  margin-top: 48px;
  font-size: 34px;
  line-height: 0.95;
  text-transform: uppercase;
}

.season-card p {
  position: relative;
  z-index: 1;
  max-width: 390px;
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 16px;
}

.season-card b {
  position: absolute;
  right: 20px;
  top: 20px;
  padding: 6px 8px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.dissent-airlock {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  margin-top: 48px;
  border: 1px solid var(--ink);
}

.dissent-card,
.airlock-card {
  padding: clamp(24px, 4vw, 54px);
}

.dissent-card {
  border-right: 1px solid var(--ink);
}

.dissent-card > p,
.airlock-card > p {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.dissent-card h3 {
  margin-top: 13px;
  font-family: var(--serif);
  font-size: 40px;
  font-style: italic;
  font-weight: 400;
}

.dissent-card blockquote {
  max-width: 800px;
  margin-top: 30px;
  padding-left: 22px;
  border-left: 5px solid var(--coral);
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 34px);
  line-height: 1.18;
}

.dissent-card > div {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--dark-line);
}

.dissent-card > div span {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 900;
}

.dissent-card > div p {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 16px;
}

.airlock-card {
  color: var(--paper);
  background: var(--ink);
}

.airlock-display {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  color: var(--acid);
}

.airlock-display strong {
  font-family: var(--serif);
  font-size: 94px;
  font-style: italic;
  line-height: 1;
}

.airlock-display span {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
}

.airlock-card ul {
  list-style: none;
  margin-top: 28px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.airlock-card li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8px;
}

.airlock-card li span {
  color: var(--fog);
}

.airlock-card li b {
  color: var(--acid);
}

.return-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  margin-top: 44px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.virtue-panel,
.controller-panel {
  min-width: 0;
  padding: clamp(22px, 3vw, 40px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.virtue-panel > .result-subhead > strong {
  color: var(--state);
  font-family: var(--mono);
  font-size: 8px;
}

.virtue-return {
  margin-top: 16px;
}

.virtue-row {
  display: grid;
  grid-template-columns: 36px minmax(100px, 0.75fr) minmax(120px, 1fr) 46px;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
}

.virtue-row > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--virtue);
  color: var(--virtue);
  font-family: var(--serif);
  font-style: italic;
}

.virtue-row strong,
.virtue-row small {
  display: block;
}

.virtue-row strong {
  font-size: 10px;
  text-transform: uppercase;
}

.virtue-row small {
  margin-top: 4px;
  color: var(--fog);
  font-family: var(--mono);
  font-size: 7px;
}

.virtue-bar {
  height: 7px;
  background: rgba(238, 233, 216, 0.12);
}

.virtue-bar i {
  display: block;
  width: var(--value);
  height: 100%;
  background: var(--virtue);
  transition: width 420ms ease;
}

.virtue-row b {
  color: var(--virtue);
  font-family: var(--mono);
  font-size: 10px;
  text-align: right;
}

#feedback-chart {
  width: 100%;
  margin-top: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.chart-grid path {
  fill: none;
  stroke: rgba(238, 233, 216, 0.12);
  stroke-width: 1;
}

.feedback-line {
  fill: none;
  stroke: var(--state);
  stroke-linecap: square;
  stroke-linejoin: bevel;
  stroke-width: 4;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--state) 60%, transparent));
}

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

.controller-metrics div {
  min-width: 0;
  padding: 13px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.controller-metrics dt {
  color: var(--state);
  font-family: var(--serif);
  font-size: 26px;
  font-style: italic;
}

.controller-metrics dd {
  color: var(--fog);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.mirror-banner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.6fr);
  gap: 40px;
  align-items: center;
  margin-top: 38px;
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--coral);
  color: var(--paper);
  background: linear-gradient(112deg, rgba(255, 117, 95, 0.14), transparent);
}

.mirror-banner h3 {
  margin-top: 8px;
  color: var(--coral);
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 62px);
  font-style: italic;
  font-weight: 400;
  line-height: 0.98;
}

.mirror-banner p {
  color: #c5c5ba;
  font-family: var(--serif);
  font-size: 17px;
}

.packet-section {
  width: 100%;
  padding-right: max(24px, calc((100vw - min(1540px, calc(100vw - 48px))) / 2));
  padding-left: max(24px, calc((100vw - min(1540px, calc(100vw - 48px))) / 2));
}

.packet-stack {
  margin-top: 44px;
  border-top: 1px solid var(--ink);
}

.packet-row {
  display: grid;
  grid-template-columns: 72px minmax(190px, 0.55fr) 180px minmax(0, 1fr);
  min-height: 86px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.packet-row > * {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 16px;
  border-right: 1px solid var(--dark-line);
}

.packet-row > *:last-child {
  border-right: 0;
}

.packet-row > span {
  justify-content: center;
  color: #777a70;
  font-family: var(--serif);
  font-size: 27px;
  font-style: italic;
}

.packet-row strong {
  font-size: 14px;
  text-transform: uppercase;
}

.packet-row b {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.packet-row p {
  font-family: var(--serif);
  font-size: 14px;
}

.comparison-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1.3fr);
  gap: 70px;
  padding: 112px 0;
}

.comparison-copy h2,
.receipt-section h2 {
  margin-top: 12px;
  font-size: clamp(48px, 5vw, 80px);
  line-height: 0.9;
  text-transform: uppercase;
}

.comparison-copy > p:last-child,
.receipt-section > div:first-child > p:last-child {
  max-width: 580px;
  margin-top: 28px;
  color: #b6b8ad;
  font-family: var(--serif);
  font-size: 18px;
}

.comparison-table {
  align-self: start;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.comparison-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  min-height: 74px;
}

.comparison-row > * {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.comparison-row span {
  color: var(--fog);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.comparison-row strong {
  color: var(--acid);
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
}

.comparison-row em {
  color: var(--coral);
  font-family: var(--serif);
  font-size: 24px;
}

.receipt-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(400px, 1.2fr);
  gap: 72px;
  padding: 104px 0;
  border-top: 1px solid var(--line);
}

.receipt-card {
  min-width: 0;
  padding: clamp(22px, 4vw, 46px);
  border: 1px solid var(--acid);
  background: rgba(200, 255, 88, 0.04);
}

.receipt-card code {
  display: block;
  max-width: 100%;
  margin-top: 16px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.receipt-actions {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}

.receipt-actions button {
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid var(--line);
  color: var(--paper);
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 900;
}

.receipt-actions button:hover {
  color: var(--ink);
  background: var(--acid);
}

#copy-status {
  min-height: 22px;
  margin-top: 10px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 8px;
}

.receipt-card ul {
  list-style: none;
  margin-top: 18px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.receipt-card li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7px;
}

.receipt-card li span {
  color: var(--fog);
  text-transform: uppercase;
}

.receipt-card li code {
  margin: 0;
  color: var(--paper);
  font-size: 7px;
}

.nonclaims-section {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 70px;
  padding: 66px 0 100px;
}

.nonclaims-section > div {
  max-width: 1100px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 38px);
  line-height: 1.2;
}

.nonclaims-section > div p + p {
  margin-top: 24px;
}

.nonclaims-section strong {
  color: var(--acid);
  font-weight: 400;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 130px;
  padding: 28px max(24px, calc((100vw - min(1540px, calc(100vw - 48px))) / 2));
  border-top: 1px solid var(--line);
  background: #050605;
}

footer strong,
footer span {
  display: block;
}

footer strong {
  font-size: 17px;
  letter-spacing: 0.08em;
}

footer span {
  margin-top: 5px;
  color: var(--fog);
  font-family: var(--mono);
  font-size: 8px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

footer a {
  color: var(--fog);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 900;
}

footer a:hover {
  color: var(--acid);
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
  }

  .hero-copy {
    padding: 64px 40px;
  }

  .hero-loom {
    padding: 42px;
  }

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

  .thesis-grid ol {
    grid-column: 1 / -1;
  }

  .instrument-layout {
    grid-template-columns: 390px minmax(0, 1fr);
  }

  .seat-fields {
    grid-template-columns: 1fr;
  }

  .seat-fields label {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .seat-fields label:last-child {
    border-bottom: 0;
  }

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

  .comparison-section,
  .receipt-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  :root {
    --shell: calc(100vw - 32px);
  }

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

  .brand {
    padding: 10px 16px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .header-proof {
    min-width: 92px;
    padding: 0 12px;
  }

  .header-proof span {
    font-size: 34px;
  }

  .hero {
    display: block;
    min-height: 0;
  }

  .hero-copy {
    padding: 70px 24px 58px;
    border-right: 0;
  }

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

  .hero-loom {
    min-height: 720px;
    padding: 36px 22px 90px;
    border-top: 1px solid var(--line);
  }

  .loom-frame {
    max-width: 560px;
  }

  .hero-seal {
    right: 6%;
    bottom: 4%;
    width: 128px;
    height: 128px;
  }

  .thesis {
    padding: 76px 0;
  }

  .thesis-grid,
  .section-heading,
  .mission-block,
  .instrument-layout,
  .dissent-airlock,
  .mirror-banner,
  .nonclaims-section {
    grid-template-columns: 1fr;
  }

  .thesis-grid {
    gap: 34px;
  }

  .section-heading {
    gap: 24px;
  }

  .loom-section,
  .return-section {
    padding-top: 76px;
    padding-bottom: 76px;
  }

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

  .mission-block > .control-label {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .mission-tab {
    border-bottom: 1px solid var(--line);
  }

  .mission-tab:last-child {
    grid-column: 1 / -1;
  }

  .control-deck {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .instrument-layout {
    display: block;
  }

  .seat-fields {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .seat-fields label {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .result-stage {
    padding: 26px 18px 36px;
  }

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

  .season-card {
    min-height: 230px;
  }

  .dissent-card {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .packet-row {
    grid-template-columns: 52px minmax(150px, 0.8fr) minmax(0, 1.2fr);
  }

  .packet-row p {
    grid-column: 1 / -1;
    border-top: 1px solid var(--dark-line);
  }

  .receipt-section {
    gap: 40px;
  }

  .nonclaims-section {
    gap: 28px;
  }

  footer {
    display: block;
  }

  footer nav {
    margin-top: 24px;
  }
}

@media (max-width: 560px) {
  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 13px;
  }

  .header-proof {
    min-width: 78px;
  }

  .header-proof small {
    display: none;
  }

  .hero-copy {
    padding-right: 18px;
    padding-left: 18px;
  }

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

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

  .hero-actions {
    display: grid;
  }

  .button.primary {
    min-width: 0;
  }

  .hero-stats {
    margin-top: 46px;
  }

  .hero-stats div {
    padding: 12px 9px;
  }

  .hero-stats dt {
    font-size: 28px;
  }

  .hero-loom {
    min-height: 540px;
  }

  .loom-frame {
    padding: 18px;
  }

  .shuttle {
    width: 84px;
    height: 84px;
  }

  .shuttle span {
    font-size: 36px;
  }

  .hero-seal {
    width: 104px;
    height: 104px;
  }

  .hero-seal strong {
    font-size: 23px;
  }

  .hero-seal span {
    display: none;
  }

  .thesis h2,
  .section-heading h2,
  .comparison-copy h2,
  .receipt-section h2 {
    font-size: 44px;
  }

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

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

  .mission-tab,
  .mission-tab:last-child {
    grid-column: auto;
    min-height: 74px;
    border-right: 0;
  }

  .control-section {
    padding: 18px 14px;
  }

  .seat-editor {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .seat-fields {
    grid-template-columns: 1fr;
  }

  .seat-fields label {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .radio-option span {
    min-height: 60px;
  }

  .result-mast {
    grid-template-columns: 1fr;
  }

  .state-chip {
    justify-self: start;
  }

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

  .result-subhead {
    align-items: start;
    flex-direction: column;
  }

  .cloth-visual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 650px;
  }

  .cloth-thread {
    min-height: 300px;
    border-bottom: 1px solid var(--line);
  }

  .ledger-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .ledger-row > *:nth-child(3),
  .ledger-row > *:nth-child(4) {
    border-top: 1px solid var(--line);
  }

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

  .season-card {
    padding: 22px;
  }

  .dissent-card,
  .airlock-card {
    padding: 26px 20px;
  }

  .dissent-card h3 {
    font-size: 32px;
  }

  .dissent-card blockquote {
    font-size: 21px;
  }

  .virtue-row {
    grid-template-columns: 32px minmax(0, 1fr) 42px;
    gap: 8px;
    padding: 8px 0;
  }

  .virtue-bar {
    grid-column: 2 / -1;
  }

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

  .mirror-banner {
    gap: 20px;
  }

  .packet-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .packet-row b,
  .packet-row p {
    grid-column: 1 / -1;
    border-top: 1px solid var(--dark-line);
  }

  .comparison-row {
    grid-template-columns: 0.8fr 1fr 1fr;
  }

  .receipt-card li {
    grid-template-columns: 1fr;
  }

  .receipt-actions {
    display: grid;
  }
}

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

@media (forced-colors: active) {
  .warp,
  .weft,
  .cloth-thread,
  .feedback-line {
    forced-color-adjust: none;
  }

  .mission-tab[aria-selected="true"],
  .weave-button,
  .button.primary {
    border: 2px solid ButtonText;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .control-deck,
  .receipt-actions,
  footer {
    display: none !important;
  }

  body,
  .loom-section,
  .return-section,
  .seasons-section,
  .packet-section {
    color: #000;
    background: #fff;
  }

  .instrument-layout,
  .return-layout {
    display: block;
  }
}
