:root {
  --night: #080a09;
  --night-2: #0d100e;
  --night-3: #131612;
  --bone: #e7dfcb;
  --ash: #aaa79c;
  --gold: #c7a85f;
  --teal: #78c7bd;
  --oxide: #ae5b42;
  --line: rgba(231, 223, 203, .14);
  --line-strong: rgba(231, 223, 203, .26);
  --gold-line: rgba(199, 168, 95, .34);
  --teal-wash: rgba(120, 199, 189, .08);
  --oxide-wash: rgba(174, 91, 66, .1);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --mono: "Courier New", Courier, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  color: var(--bone);
  background: var(--night);
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  min-width: 0;
  margin: 0;
  color: var(--bone);
  background:
    radial-gradient(circle at 75% 12%, rgba(120, 199, 189, .045), transparent 22%),
    linear-gradient(rgba(231, 223, 203, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 223, 203, .018) 1px, transparent 1px),
    var(--night);
  background-size: auto, 42px 42px, 42px 42px, auto;
  font-family: var(--sans);
  line-height: 1.6;
}

body,
button,
input,
select,
textarea {
  font-size: 16px;
}

a,
button,
input,
select,
textarea,
summary {
  font: inherit;
}

a {
  color: var(--teal);
  text-underline-offset: .25em;
}

a:hover {
  color: var(--bone);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

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

button,
.button {
  min-width: 44px;
  min-height: 44px;
}

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

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

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

.page-frame {
  width: min(1500px, 100%);
  margin-inline: auto;
  padding: 22px;
}

.site-shell {
  position: relative;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  background:
    radial-gradient(circle at 78% 8%, rgba(120, 199, 189, .055), transparent 18%),
    radial-gradient(circle at 18% 58%, rgba(174, 91, 66, .045), transparent 24%),
    linear-gradient(rgba(231, 223, 203, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 223, 203, .018) 1px, transparent 1px),
    var(--night);
  background-size: auto, auto, 42px 42px, 42px 42px, auto;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .42);
}

.site-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 72px;
  bottom: 0;
  left: 72%;
  width: 1px;
  background: linear-gradient(
    transparent,
    var(--gold-line) 5%,
    var(--gold-line) 95%,
    transparent
  );
  pointer-events: none;
}

.site-shell::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 88px 18px 18px;
  border: 1px solid rgba(199, 168, 95, .17);
  pointer-events: none;
}

.site-nav {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px 30px;
  border-bottom: 1px solid var(--gold-line);
  background: rgba(8, 10, 9, .94);
}

.brand-plate {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--bone);
  font: 700 11px/1.3 var(--mono);
  letter-spacing: .14em;
  text-decoration: none;
}

.brand-plate img {
  flex: 0 0 auto;
}

.system-status,
.return-link {
  margin: 0;
  font: 700 9px/1.4 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.system-status {
  color: var(--ash);
  text-align: center;
}

.return-link {
  justify-self: end;
  color: var(--gold);
}

.hero,
.calculator-section,
.simulation-section,
.proof-section,
.control-section,
.fit-section,
.application-section,
.faq-section {
  position: relative;
  min-width: 0;
  background: transparent;
  border-bottom: 1px solid var(--gold-line);
}

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.17fr) minmax(360px, .83fr);
}

.hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 92px 72px 84px;
}

.folio,
.eyebrow,
.trace-id,
.system-status,
.return-link,
.instrument-reading,
.simulation-label,
.status-line {
  font-family: var(--mono);
  text-transform: uppercase;
}

.folio,
.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
}

.folio {
  color: var(--gold);
}

.eyebrow {
  color: var(--teal);
}

.hero .eyebrow {
  margin-top: 18px;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  color: var(--bone);
  font-family: var(--serif);
  font-weight: 400;
}

h1 {
  max-width: 840px;
  margin: 24px 0 24px;
  font-size: clamp(3.5rem, 6.6vw, 6.7rem);
  line-height: .86;
  letter-spacing: -.062em;
}

h2 {
  margin: 22px 0 18px;
  font-size: clamp(2.2rem, 4.7vw, 4.8rem);
  line-height: .95;
  letter-spacing: -.046em;
}

h3 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.05;
}

.hero-support {
  max-width: 650px;
  margin: 0;
  color: var(--ash);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions,
.fit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--gold);
  border-radius: 0;
  cursor: pointer;
  font: 700 11px/1.25 var(--mono);
  letter-spacing: .1em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.button-primary {
  color: var(--night);
  background: var(--gold);
}

.button-primary:hover {
  color: var(--night);
  background: var(--bone);
  border-color: var(--bone);
}

.button-secondary {
  color: var(--bone);
  background: transparent;
}

.button-secondary:hover,
.button-quiet:hover {
  color: var(--night);
  background: var(--teal);
  border-color: var(--teal);
}

.button-quiet {
  color: var(--ash);
  background: var(--night-2);
  border-color: var(--line-strong);
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 30px 0 0;
  padding: 0;
  color: var(--ash);
  font: 700 10px/1.5 var(--mono);
  letter-spacing: .1em;
  list-style: none;
  text-transform: uppercase;
}

.trust-line li::before {
  content: "◇";
  margin-right: 8px;
  color: var(--gold);
}

.hero-instrument {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 72px 34px;
  border-left: 1px solid var(--gold-line);
}

.hero-instrument::before,
.hero-instrument::after {
  content: "";
  position: absolute;
  background: var(--gold-line);
}

.hero-instrument::before {
  width: 1px;
  height: 84%;
}

.hero-instrument::after {
  width: 84%;
  height: 1px;
}

.astrolabe {
  position: relative;
  width: min(390px, 82%);
  aspect-ratio: 1;
  border: 1px solid rgba(199, 168, 95, .68);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(199, 168, 95, .025),
    inset 0 0 72px rgba(120, 199, 189, .035);
}

.astrolabe-ring,
.astrolabe-axis,
.astrolabe-ellipse,
.astrolabe-needle,
.astrolabe-node {
  position: absolute;
  display: block;
}

.astrolabe-ring {
  border-radius: 50%;
}

.astrolabe-ring-outer {
  inset: 28px;
  border: 1px dashed rgba(199, 168, 95, .42);
  transform: rotate(18deg);
}

.astrolabe-ring-middle {
  inset: 72px;
  border: 1px solid rgba(231, 223, 203, .22);
}

.astrolabe-ring-inner {
  inset: 114px;
  border: 1px solid var(--teal);
  box-shadow: 0 0 26px rgba(120, 199, 189, .08);
}

.astrolabe-axis-x {
  top: 50%;
  left: -8%;
  width: 116%;
  height: 1px;
  background: var(--gold-line);
}

.astrolabe-axis-y {
  top: -8%;
  left: 50%;
  width: 1px;
  height: 116%;
  background: var(--gold-line);
}

.astrolabe-ellipse {
  inset: 48px 18px;
  border: 1px solid rgba(231, 223, 203, .24);
  border-radius: 50%;
  transform: rotate(-31deg);
}

.astrolabe-needle {
  top: 50%;
  left: 50%;
  width: 47%;
  height: 1px;
  background: var(--oxide);
  transform: rotate(-38deg);
  transform-origin: left;
}

.astrolabe-needle::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--oxide);
}

.astrolabe-node {
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold);
  background: var(--night);
  transform: rotate(45deg);
}

.astrolabe-node-one {
  top: 17%;
  left: 21%;
}

.astrolabe-node-two {
  top: 46%;
  right: 6%;
}

.astrolabe-node-three {
  right: 29%;
  bottom: 9%;
}

.instrument-reading {
  position: absolute;
  z-index: 2;
  display: grid;
  justify-items: center;
  color: var(--teal);
  font-size: 10px;
  letter-spacing: .13em;
}

.instrument-reading strong {
  margin: 5px 0 1px;
  color: var(--bone);
  font: 400 clamp(3rem, 5vw, 5rem)/1 var(--serif);
  letter-spacing: -.04em;
}

.trace-id {
  position: absolute;
  right: 24px;
  bottom: 30px;
  margin: 0;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: .13em;
  writing-mode: vertical-rl;
}

.calculator-copy,
.simulation-section,
.control-section,
.application-section,
.faq-section {
  padding: 72px;
}

.calculator-copy {
  max-width: 900px;
}

.calculator-copy > p:last-child,
.section-heading > p,
.proof-copy > p,
.fit-copy > p,
.application-intro > p,
.faq-section > p {
  color: var(--ash);
  font-size: 17px;
}

.formula-note {
  margin-top: 24px;
  color: var(--gold) !important;
  font-family: var(--mono);
  font-size: 12px !important;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.calculator-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  border-top: 1px solid var(--gold-line);
}

.calculator-fields {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  padding: 44px 52px 52px;
}

.field {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
}

.calculator-fields .field:nth-child(even) {
  border-left: 0;
}

.calculator-fields .field:nth-child(n + 3) {
  border-top: 0;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 9px;
  color: var(--bone);
  font: 700 12px/1.45 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.field legend {
  padding: 0;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 13px;
  color: var(--bone);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--night-2);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--gold);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--oxide);
  box-shadow: inset 4px 0 0 var(--oxide);
}

.input-prefix,
.input-suffix {
  min-width: 0;
  display: grid;
  align-items: center;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  background: var(--night-2);
}

.input-prefix {
  grid-template-columns: auto 1fr;
}

.input-suffix {
  grid-template-columns: 1fr auto;
}

.input-prefix > span,
.input-suffix > span {
  padding: 0 13px;
  font-family: var(--mono);
}

.input-prefix input,
.input-suffix input {
  min-width: 0;
  border: 0;
  background: transparent;
}

.field-help,
.field-error {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.field-help {
  color: var(--ash);
}

.field-error:not(:empty) {
  padding: 8px 10px;
  color: var(--bone);
  border-left: 3px solid var(--oxide);
  background: var(--oxide-wash);
}

.calculator-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
}

.calculator-output {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px;
  border-left: 1px solid var(--gold-line);
  background: rgba(199, 168, 95, .018);
}

.instrument-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}

.instrument-header > * {
  margin: 0;
}

.instrument-header > span {
  color: var(--oxide);
  font: 700 9px/1.4 var(--mono);
  letter-spacing: .12em;
}

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

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

.count-register dt {
  color: var(--ash);
  font: 700 10px/1.4 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.count-register dd {
  margin: 6px 0 0;
  color: var(--bone);
  font: 400 2rem/1 var(--serif);
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--gold-line);
}

.scenario-grid article {
  min-width: 0;
  padding: 18px 14px;
  text-align: center;
}

.scenario-grid article + article {
  border-left: 1px solid var(--gold-line);
}

.scenario-grid p {
  margin: 0 0 7px;
  color: var(--ash);
  font: 700 10px/1.4 var(--mono);
  letter-spacing: .08em;
}

.scenario-grid strong {
  color: var(--bone);
  font: 400 clamp(1.6rem, 3vw, 2.6rem)/1 var(--serif);
}

.scenario-base {
  background: var(--teal-wash);
}

.scenario-base strong {
  color: var(--teal);
}

.disclosure {
  margin: 24px 0 0;
  color: var(--ash);
  font-size: 14px;
}

.status-line {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--teal);
  font-size: 10px;
  letter-spacing: .08em;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 54px;
  align-items: end;
}

.section-heading > p {
  margin: 0 0 18px;
}

.simulation-path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 52px 0 0;
  padding: 0;
  list-style: none;
}

.simulation-path::before {
  content: "";
  position: absolute;
  top: 27px;
  right: 8%;
  left: 8%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--teal), var(--gold));
}

.simulation-path li {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 0 14px;
  text-align: center;
}

.step-index {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--night);
  font: 700 11px var(--mono);
}

.simulation-path li[aria-current="step"] .step-index {
  color: var(--night);
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 0 0 8px rgba(120, 199, 189, .07);
}

.simulation-path li[data-state="complete"] .step-index::after {
  content: " ✓";
}

.simulation-label {
  margin: 0 0 9px;
  color: var(--teal);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .09em;
}

.simulation-path h3 {
  font-size: 1.2rem;
}

.simulation-path p:last-child {
  color: var(--ash);
  font-size: 14px;
}

.js .simulation-path li:not([aria-current="step"]):not([data-state="complete"]) {
  opacity: .44;
}

.simulation-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 42px;
}

.proof-section,
.fit-section {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
}

.proof-copy,
.fit-copy {
  min-width: 0;
  padding: 72px;
  border-right: 1px solid var(--gold-line);
}

.chapter-register {
  margin: 0;
  padding: 0;
  list-style: none;
}

.chapter-register li {
  min-height: 210px;
  display: grid;
  grid-template-columns: 110px minmax(170px, .62fr) minmax(220px, 1fr);
  gap: 24px;
  align-items: center;
  padding: 34px 48px;
  border-bottom: 1px solid var(--line);
}

.chapter-register li:last-child {
  border-bottom: 0;
}

.chapter-register span {
  color: var(--gold);
  font: 700 10px/1.4 var(--mono);
  letter-spacing: .1em;
}

.chapter-register p {
  color: var(--ash);
}

.control-ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 48px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}

.control-ledger li {
  min-width: 0;
  min-height: 126px;
  padding: 19px;
  color: var(--bone);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.control-ledger span {
  display: block;
  margin-bottom: 18px;
  color: var(--oxide);
  font: 700 10px var(--mono);
}

.fit-section {
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
}

.fit-copy h2 {
  font-size: clamp(3rem, 6vw, 6rem);
}

.scope-ledger {
  min-width: 0;
  padding: 72px;
}

.scope-ledger h3 {
  margin-bottom: 25px;
}

.scope-ledger ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 28px;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}

.scope-ledger li {
  padding: 15px;
  color: var(--ash);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.scope-ledger > p {
  color: var(--ash);
}

.scope-ledger strong {
  color: var(--bone);
}

.adjacent-offers {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--gold-line);
}

.application-intro {
  max-width: 920px;
}

.privacy-note {
  margin-top: 24px;
  padding: 17px 18px;
  color: var(--bone) !important;
  border-left: 3px solid var(--oxide);
  background: var(--oxide-wash);
}

#fit-application {
  margin-top: 48px;
}

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

.application-grid .field {
  border-top: 0;
  border-left: 0;
}

.application-span {
  grid-column: 1 / -1;
}

.optional {
  color: var(--ash);
  font-size: .85em;
}

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

.choice-grid label,
.authorization label {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  color: var(--ash);
  border: 1px solid var(--line);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.choice-grid input,
.authorization input {
  flex: 0 0 auto;
  width: 20px;
  min-height: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--teal);
}

#application-errors:not([hidden]) {
  margin-top: 24px;
  padding: 18px;
  color: var(--bone);
  border: 1px solid var(--oxide);
  background: var(--oxide-wash);
}

#application-errors h3 {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

#application-errors a {
  color: var(--bone);
}

#application-status {
  min-height: 28px;
  margin-top: 18px;
  color: var(--teal);
}

#application-status[data-state="error"] {
  padding: 16px;
  color: var(--bone);
  border-left: 3px solid var(--oxide);
  background: var(--oxide-wash);
}

#application-status[data-state="success"] {
  padding: 16px;
  color: var(--bone);
  border-left: 3px solid var(--teal);
  background: var(--teal-wash);
}

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

.application-actions p,
.form-privacy {
  color: var(--ash);
  font-size: 14px;
}

.form-privacy {
  margin-top: 20px;
}

.faq-section {
  border-bottom: 0;
}

.faq-section > p {
  max-width: 760px;
}

.faq-list {
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  min-height: 58px;
  padding: 17px 42px 17px 0;
  color: var(--bone);
  cursor: pointer;
  font: 400 1.25rem/1.35 var(--serif);
}

.faq-list details p {
  max-width: 850px;
  margin: 0;
  padding: 0 0 24px;
  color: var(--ash);
}

footer {
  min-height: 120px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 26px;
  padding: 32px;
  border-top: 1px solid var(--gold-line);
  background: var(--night-2);
  font: 700 10px/1.5 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}

footer p {
  margin: 0;
  color: var(--ash);
}

footer p:last-child {
  justify-self: end;
  text-align: right;
}

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

.honey {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

@media (max-width: 1100px) {
  .hero-copy,
  .calculator-copy,
  .simulation-section,
  .proof-copy,
  .control-section,
  .fit-copy,
  .scope-ledger,
  .application-section,
  .faq-section {
    padding: 58px 44px;
  }

  .calculator-fields,
  .calculator-output {
    padding: 38px;
  }

  .chapter-register li {
    grid-template-columns: 80px minmax(150px, .6fr) 1fr;
    padding-inline: 34px;
  }

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

@media (max-width: 900px) {
  .site-shell::before {
    left: 50%;
    opacity: .45;
  }

  .hero,
  .calculator-grid,
  .proof-section,
  .fit-section {
    grid-template-columns: 1fr;
  }

  .hero-instrument,
  .calculator-output,
  .proof-copy,
  .fit-copy {
    border-left: 0;
    border-right: 0;
  }

  .hero-instrument,
  .calculator-output {
    border-top: 1px solid var(--gold-line);
  }

  .proof-copy,
  .fit-copy {
    border-bottom: 1px solid var(--gold-line);
  }

  .hero-instrument {
    min-height: 530px;
  }

  .simulation-path {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .simulation-path::before {
    top: 5%;
    right: auto;
    bottom: 5%;
    left: 27px;
    width: 1px;
    height: auto;
  }

  .simulation-path li {
    min-height: 54px;
    display: grid;
    grid-template-columns: 54px 1fr;
    column-gap: 20px;
    align-items: center;
    padding: 0;
    text-align: left;
  }

  .step-index {
    grid-row: 1 / span 3;
    margin: 0;
  }

  .simulation-label,
  .simulation-path li p:last-child {
    margin: 4px 0 0;
  }

  .chapter-register li {
    grid-template-columns: 90px 1fr;
  }

  .chapter-register p {
    grid-column: 2;
    margin: 0;
  }
}

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

  .system-status {
    display: none;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .application-span {
    grid-column: auto;
  }

  .scope-ledger ul,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .application-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  footer p:last-child {
    justify-self: center;
    text-align: center;
  }
}

@media (max-width: 620px) {
  .page-frame {
    padding-inline: 18px;
    padding-block: 12px;
  }

  .site-shell::after {
    inset-inline: 9px;
  }

  .site-nav {
    gap: 12px;
    padding-inline: 18px;
  }

  .brand-plate {
    font-size: 9px;
    letter-spacing: .08em;
  }

  .brand-plate img {
    width: 28px;
    height: 28px;
  }

  .return-link {
    font-size: 8px;
  }

  .hero-copy,
  .calculator-copy,
  .simulation-section,
  .proof-copy,
  .control-section,
  .fit-copy,
  .scope-ledger,
  .application-section,
  .faq-section {
    padding: 48px 24px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.2rem);
  }

  h2 {
    font-size: clamp(2.35rem, 12vw, 3.5rem);
  }

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

  .button {
    width: 100%;
  }

  .hero-instrument {
    min-height: 410px;
    padding-inline: 18px;
  }

  .astrolabe {
    width: min(290px, 82%);
  }

  .astrolabe-ring-middle {
    inset: 54px;
  }

  .astrolabe-ring-inner {
    inset: 84px;
  }

  .calculator-fields,
  .scenario-grid,
  .application-grid {
    grid-template-columns: 1fr;
  }

  .calculator-fields,
  .calculator-output {
    padding: 24px;
  }

  .calculator-fields .field:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .calculator-fields .field + .field {
    border-top: 0;
  }

  .scenario-grid article + article {
    border-top: 1px solid var(--gold-line);
    border-left: 0;
  }

  .instrument-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .count-register {
    grid-template-columns: 1fr;
  }

  .chapter-register li {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 28px 24px;
  }

  .chapter-register p {
    grid-column: auto;
  }

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

  .control-ledger li {
    min-height: 104px;
  }

  .trace-id {
    right: 12px;
  }

  footer {
    padding: 34px 24px;
  }
}

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

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
