:root {
  color-scheme: dark;
  --ink: #030403;
  --panel: #070706;
  --panel-deep: #050504;
  --ivory: #e9e1c9;
  --paper: #cfc4aa;
  --muted: #9c927f;
  --gold: #b98a42;
  --gold-bright: #e7c989;
  --line: rgba(185, 138, 66, .28);
  --line-soft: rgba(185, 138, 66, .12);
  --cobalt: #597ea7;
  --cobalt-bright: #8caed0;
  --violet: #856a9d;
  --violet-bright: #b59ac8;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--ivory);
  background:
    radial-gradient(circle at 52% 8%, rgba(125, 82, 23, .1), transparent 29rem),
    var(--ink);
  font-family: var(--sans);
}
button { color: inherit; font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.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: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 12px 16px;
  border: 1px solid var(--gold-bright);
  background: var(--ink);
  color: var(--ivory);
  font-size: .65rem;
  letter-spacing: .14em;
  text-decoration: none;
}
.skip-link:focus { transform: none; }
:where(a, button):focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

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

.archive-bar {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  min-height: calc(70px + env(safe-area-inset-top));
  padding: calc(10px + env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 10px max(24px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line-soft);
  background: rgba(3, 4, 3, .88);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  width: max-content;
  min-height: 44px;
  gap: 10px;
  align-items: center;
  font-family: var(--serif);
  font-size: .7rem;
  letter-spacing: .19em;
  text-decoration: none;
}
.brand span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-bright);
  font-size: 1rem;
  letter-spacing: 0;
}
.archive-bar > p {
  margin: 0;
  color: var(--muted);
  font-size: .55rem;
  letter-spacing: .18em;
  text-align: center;
}
.system-state {
  justify-self: end;
  color: var(--muted);
  font-size: .55rem;
  letter-spacing: .16em;
}
.system-state i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #685f50;
  transition: background .35s ease, box-shadow .35s ease;
}
.system-state.is-armed { color: var(--paper); }
.system-state.is-armed i { background: var(--gold-bright); box-shadow: 0 0 10px rgba(231, 201, 137, .72); }
.system-state.is-paused i { background: var(--violet-bright); box-shadow: 0 0 9px rgba(181, 154, 200, .45); }

main { overflow: clip; }
.eyebrow {
  margin: 0;
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(.57rem, .8vw, .7rem);
  letter-spacing: .25em;
  line-height: 1.55;
  text-transform: uppercase;
}

.threshold {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, .55fr);
  gap: clamp(50px, 9vw, 150px);
  align-items: end;
  min-height: calc(100svh - 70px);
  padding: clamp(90px, 11vw, 160px) clamp(24px, 7vw, 110px) clamp(70px, 8vw, 120px);
  isolation: isolate;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 74% 42%, rgba(69, 87, 128, .07), transparent 24rem),
    radial-gradient(circle at 30% 46%, rgba(162, 104, 35, .11), transparent 27rem),
    linear-gradient(180deg, #030403, #050504 80%, #030403);
}
.threshold-frame {
  position: absolute;
  z-index: -1;
  inset: clamp(14px, 2.5vw, 40px);
  border: 1px solid rgba(185, 138, 66, .09);
  pointer-events: none;
}
.threshold-frame::before,
.threshold-frame::after {
  content: "";
  position: absolute;
  background: rgba(185, 138, 66, .09);
}
.threshold-frame::before { top: 0; bottom: 0; left: 61.8%; width: 1px; }
.threshold-frame::after { top: 61.8%; right: 0; left: 0; height: 1px; }
.threshold-frame span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: rgba(231, 201, 137, .42);
}
.threshold-frame span:nth-child(1) { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.threshold-frame span:nth-child(2) { top: -1px; right: -1px; border-top: 1px solid; border-right: 1px solid; }
.threshold-frame span:nth-child(3) { right: -1px; bottom: -1px; border-right: 1px solid; border-bottom: 1px solid; }
.threshold-frame span:nth-child(4) { bottom: -1px; left: -1px; border-bottom: 1px solid; border-left: 1px solid; }
.threshold-copy { max-width: 980px; }
.threshold h1 {
  display: flex;
  gap: clamp(14px, 3vw, 38px);
  align-items: flex-start;
  margin: 24px 0 2px;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .78;
}
.threshold h1 span { font-size: clamp(3.4rem, 9.8vw, 10.5rem); font-weight: 400; }
.threshold h1 strong {
  margin-top: .12em;
  color: var(--gold-bright);
  font-size: clamp(1.35rem, 3.2vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -.02em;
}
.latin {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(.73rem, 1.3vw, 1.05rem);
  letter-spacing: .17em;
}
.axiom {
  margin-top: clamp(42px, 6vw, 78px);
  padding: 25px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.axiom p,
.axiom strong {
  display: block;
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: .1em;
  line-height: 1.28;
}
.axiom p { color: var(--muted); font-size: clamp(.72rem, 1.4vw, 1.05rem); }
.axiom strong { margin-top: 11px; color: var(--gold-bright); font-size: clamp(1.12rem, 2.6vw, 2.15rem); }
.lead {
  max-width: 760px;
  margin: 27px 0 0;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.65vw, 1.32rem);
  line-height: 1.65;
}
.listen-action,
.return-link {
  display: flex;
  width: min(100%, 520px);
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  margin-top: 34px;
  padding: 16px 19px;
  border: 1px solid rgba(231, 201, 137, .52);
  background: rgba(185, 138, 66, .055);
  color: var(--ivory);
  cursor: pointer;
  font-family: var(--serif);
  font-size: .68rem;
  letter-spacing: .18em;
  text-decoration: none;
  transition: background .25s ease, transform .25s ease, border-color .25s ease;
}
.listen-action:hover,
.return-link:hover { transform: translateY(-2px); border-color: var(--gold-bright); background: rgba(185, 138, 66, .12); }
.listen-action i,
.return-link i { color: var(--gold-bright); font-size: 1.2rem; font-style: normal; }
.listen-action.is-active { background: rgba(185, 138, 66, .12); }
.gesture-note {
  width: min(100%, 520px);
  margin: 12px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: .72rem;
  line-height: 1.5;
}
.classification { display: grid; border-top: 1px solid var(--line); }
.classification div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.classification span,
.classification strong { font-size: .54rem; font-weight: 400; letter-spacing: .15em; }
.classification span { color: var(--muted); }
.classification strong { color: var(--gold-bright); text-align: right; }
.threshold-index {
  position: absolute;
  right: clamp(24px, 5vw, 80px);
  bottom: 23px;
  margin: 0;
  color: rgba(231, 201, 137, .28);
  font-family: var(--serif);
  font-size: .58rem;
  letter-spacing: .18em;
}

.protocol-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: #060605;
}
.protocol-strip p {
  margin: 0;
  padding: 20px 18px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--serif);
  font-size: .56rem;
  letter-spacing: .18em;
  text-align: center;
}
.protocol-strip p:last-child { border-right: 0; }

.instrument {
  padding: clamp(80px, 10vw, 150px) clamp(20px, 5vw, 82px) 0;
  background:
    radial-gradient(circle at 17% 24%, rgba(72, 94, 130, .06), transparent 31rem),
    radial-gradient(circle at 83% 73%, rgba(117, 78, 128, .055), transparent 30rem),
    #030403;
}
.instrument-head {
  display: grid;
  grid-template-columns: 1.1fr .8fr;
  gap: clamp(35px, 7vw, 100px);
  align-items: end;
  width: min(100%, 1500px);
  margin: 0 auto clamp(70px, 9vw, 130px);
}
.instrument-head h2,
.result h2 {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 7.8vw, 8.4rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .84;
}
.instrument-head > p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.55vw, 1.27rem);
  line-height: 1.68;
}
.instrument-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(330px, .72fr);
  gap: clamp(40px, 7vw, 110px);
  width: min(100%, 1500px);
  margin: 0 auto;
  align-items: stretch;
}
.organ-column { min-width: 0; }
.organ-sticky {
  position: sticky;
  top: 92px;
  width: min(100%, 680px, calc(100svh - 270px));
  margin-inline: auto;
  padding-bottom: 34px;
}
.organ-frame {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent 49.95%, rgba(185, 138, 66, .07) 50%, transparent 50.05%),
    linear-gradient(transparent 49.95%, rgba(185, 138, 66, .07) 50%, transparent 50.05%),
    radial-gradient(circle, rgba(185, 138, 66, .045), transparent 60%),
    #020302;
  place-items: center;
}
.organ-frame::before,
.organ-frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
.organ-frame::before { inset: 13px; border: 1px solid rgba(185, 138, 66, .09); }
.organ-frame::after {
  top: 0;
  bottom: 0;
  left: -28%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(231, 201, 137, .065), transparent);
  transform: skewX(-12deg);
  animation: field-scan 7s ease-in-out infinite;
}
.scan-label {
  position: absolute;
  z-index: 4;
  top: 19px;
  right: 20px;
  left: 20px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: .52rem;
  letter-spacing: .16em;
}
.scan-label i { color: var(--gold); font-style: normal; }
.organ-svg { display: block; width: 92%; height: 92%; overflow: visible; }
.reference-grid { fill: none; stroke: rgba(185, 138, 66, .1); stroke-width: 1; stroke-dasharray: 1 12; }
.fragment-arc { opacity: .13; transition: opacity .65s ease, filter .65s ease; }
.fragment-arc > circle:first-child { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 18 7 5 11; }
.fragment-arc .arc-node { opacity: .3; transition: opacity .4s ease, r .4s ease; }
.fragment-arc-1 { color: var(--gold-bright); }
.fragment-arc-1 > circle:first-child { stroke: currentColor; }
.fragment-arc-1 .arc-node { stroke: currentColor; fill: currentColor; }
.fragment-arc-2 { color: var(--cobalt-bright); }
.fragment-arc-2 > circle:first-child { stroke: currentColor; }
.fragment-arc-2 .arc-node { stroke: currentColor; fill: currentColor; }
.fragment-arc-3 { color: var(--violet-bright); }
.fragment-arc-3 > circle:first-child { stroke: currentColor; }
.fragment-arc-3 .arc-node { stroke: currentColor; fill: currentColor; }
.fragment-arc-4 { color: var(--ivory); }
.fragment-arc-4 > circle:first-child { stroke: currentColor; }
.fragment-arc-4 .arc-node { stroke: currentColor; fill: currentColor; }
.fragment-arc.is-active { opacity: .92; filter: drop-shadow(0 0 8px currentColor); }
.fragment-arc.is-active .arc-node { opacity: 1; }
.fragment-arc.is-current .arc-node { r: 8; }
.fragment-arc-1.is-active { animation: orbit-clockwise 32s linear infinite; transform-origin: center; }
.fragment-arc-2.is-active { animation: orbit-counter 27s linear infinite; transform-origin: center; }
.fragment-arc-3.is-active { animation: orbit-clockwise 23s linear infinite; transform-origin: center; }
.fragment-arc-4.is-active { animation: orbit-counter 19s linear infinite; transform-origin: center; }
.idle-mark { fill: none; stroke: rgba(231, 201, 137, .34); stroke-width: 1; transition: opacity .5s ease; }
.coemergent-aura,
.coemergent-organ { opacity: 0; transform: scale(.72); transform-origin: center; transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.2,.72,.2,1); }
.coemergent-aura { mix-blend-mode: screen; }
.organ-membrane { fill: rgba(196, 143, 83, .08); stroke: var(--gold-bright); stroke-width: 1.4; }
.organ-lobe { stroke-width: 1.2; }
.organ-lobe-a { fill: rgba(89, 126, 167, .13); stroke: var(--cobalt-bright); }
.organ-lobe-b { fill: rgba(133, 106, 157, .13); stroke: var(--violet-bright); }
.organ-axis { fill: none; stroke: rgba(233, 225, 201, .68); stroke-width: 1.25; stroke-dasharray: 4 7; }
.organ-nucleus { stroke-width: 1; }
.nucleus-a { fill: rgba(89, 126, 167, .35); stroke: var(--cobalt-bright); }
.nucleus-b { fill: rgba(133, 106, 157, .35); stroke: var(--violet-bright); }
.organ-third { fill: var(--gold-bright); stroke: var(--ivory); stroke-width: 1; }
.organ-frame[data-active-count="4"] .coemergent-aura,
.organ-frame[data-active-count="4"] .coemergent-organ { opacity: 1; transform: scale(1); }
.organ-frame[data-active-count="4"] .coemergent-organ { animation: organ-breathe 4.3s ease-in-out infinite; }
.organ-frame[data-active-count="4"] .idle-mark { opacity: 0; }
.score-ticks {
  position: absolute;
  z-index: 5;
  right: 20px;
  bottom: 69px;
  left: 20px;
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 4px;
}
.score-ticks i {
  display: block;
  height: 12px;
  border: 1px solid rgba(185, 138, 66, .17);
  background: rgba(255, 255, 255, .015);
  transition: background .12s linear, border-color .12s linear, transform .12s linear;
}
.score-ticks i[data-owner="0"].is-source-active { border-color: rgba(231, 201, 137, .58); }
.score-ticks i[data-owner="1"].is-source-active { border-color: rgba(140, 174, 208, .58); }
.score-ticks i[data-owner="2"].is-source-active { border-color: rgba(181, 154, 200, .58); }
.score-ticks i[data-owner="3"].is-source-active { border-color: rgba(233, 225, 201, .58); }
.score-ticks i.is-now { transform: translateY(-3px); border-color: var(--ivory); background: var(--gold-bright); box-shadow: 0 0 9px rgba(231, 201, 137, .52); }
.organ-status {
  position: absolute;
  z-index: 4;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: .54rem;
  letter-spacing: .15em;
}
.organ-status span { color: var(--muted); }
.organ-status strong { color: var(--gold-bright); font-weight: 400; text-align: right; }

.manual-panel { margin-top: 10px; border: 1px solid var(--line); background: rgba(7, 7, 6, .92); }
.manual-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--gold);
  font-size: .52rem;
  letter-spacing: .15em;
}
.manual-heading small { color: var(--muted); font-size: inherit; }
.fragment-controls { display: grid; grid-template-columns: repeat(4, 1fr); }
.fragment-control {
  display: grid;
  min-height: 62px;
  place-items: center;
  gap: 5px;
  padding: 9px 5px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.fragment-control:last-child { border-right: 0; }
.fragment-control i { font-family: var(--serif); font-size: .9rem; font-style: normal; }
.fragment-control span { font-size: .45rem; letter-spacing: .12em; }
.fragment-control:disabled { cursor: not-allowed; opacity: .4; }
.fragment-control[aria-pressed="true"] { background: rgba(185, 138, 66, .08); color: var(--gold-bright); }
.fragment-control-2[aria-pressed="true"] { background: rgba(89, 126, 167, .11); color: var(--cobalt-bright); }
.fragment-control-3[aria-pressed="true"] { background: rgba(133, 106, 157, .11); color: var(--violet-bright); }
.fragment-control-4[aria-pressed="true"] { background: rgba(233, 225, 201, .08); color: var(--ivory); }
.transport { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.transport button {
  min-height: 44px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .5rem;
  letter-spacing: .16em;
}
.transport button:last-child { border-right: 0; }
.transport button:not(:disabled):hover { color: var(--gold-bright); background: rgba(185, 138, 66, .07); }
.transport button:disabled { cursor: not-allowed; opacity: .35; }
.interaction-mode {
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .48rem;
  letter-spacing: .14em;
}

.score-column { min-width: 0; padding-bottom: 16vh; }
.score-threshold {
  position: relative;
  display: flex;
  min-height: 86svh;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 7vw, 92px) clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
  isolation: isolate;
}
.score-threshold:last-child { border-bottom: 1px solid var(--line); }
.score-threshold::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10%;
  border: 1px solid rgba(185, 138, 66, .055);
  opacity: 0;
  transform: scale(.94);
  transition: opacity .7s ease, transform .7s ease;
}
.score-threshold.is-passed::before { opacity: 1; transform: scale(1); }
.threshold-number {
  position: absolute;
  top: 24px;
  right: 0;
  color: var(--muted);
  font-size: .5rem;
  letter-spacing: .16em;
}
.threshold-symbol {
  position: relative;
  display: grid;
  width: 82px;
  height: 82px;
  margin-bottom: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-bright);
}
.threshold-symbol::before,
.threshold-symbol::after {
  content: "";
  position: absolute;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .2;
}
.threshold-symbol::before { inset: 9px; }
.threshold-symbol::after { inset: -10px; border-style: dashed; }
.threshold-symbol i { position: absolute; width: 1px; height: 110px; background: linear-gradient(transparent, currentColor, transparent); opacity: .25; transform: rotate(28deg); }
.threshold-symbol b { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; }
.fragment-two .threshold-symbol { color: var(--cobalt-bright); }
.fragment-three .threshold-symbol { color: var(--violet-bright); }
.fragment-four .threshold-symbol { color: var(--ivory); }
.score-threshold h3 {
  margin: 16px 0 25px;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 5.4vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .88;
}
.score-threshold > p:not(.eyebrow) {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(.95rem, 1.4vw, 1.17rem);
  line-height: 1.68;
}
.fragment-data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 34px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .48rem;
  letter-spacing: .12em;
  line-height: 1.45;
}
.fragment-data span:last-child { color: var(--gold); text-align: right; }

.result {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-content: center;
  justify-items: center;
  padding: clamp(100px, 13vw, 190px) clamp(20px, 7vw, 110px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 45%, rgba(185, 138, 66, .13), transparent 26rem),
    radial-gradient(circle at 43% 47%, rgba(89, 126, 167, .045), transparent 20rem),
    radial-gradient(circle at 57% 47%, rgba(133, 106, 157, .045), transparent 20rem),
    #030403;
  text-align: center;
}
.result > *:not(.result-orbit) { position: relative; z-index: 2; }
.result-orbit { position: absolute; width: min(80vw, 870px); aspect-ratio: 1; pointer-events: none; }
.result-orbit i { position: absolute; border: 1px solid rgba(185, 138, 66, .13); border-radius: 50%; animation: orbit-clockwise 38s linear infinite; }
.result-orbit i:nth-child(1) { inset: 0; border-style: dashed; }
.result-orbit i:nth-child(2) { inset: 7%; border-color: rgba(89, 126, 167, .1); animation-duration: 34s; animation-direction: reverse; }
.result-orbit i:nth-child(3) { inset: 14%; border-color: rgba(133, 106, 157, .1); animation-duration: 30s; }
.result-orbit i:nth-child(4) { inset: 21%; border-color: rgba(233, 225, 201, .1); animation-duration: 26s; animation-direction: reverse; }
.result h2 { font-size: clamp(3rem, 8vw, 8rem); }
.result-lead {
  max-width: 800px;
  margin: 34px auto 0;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.7vw, 1.38rem);
  line-height: 1.7;
}
.equation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  align-items: center;
  margin-top: 50px;
  font-family: var(--serif);
}
.equation span,
.equation strong {
  min-width: 52px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  color: var(--ivory);
  font-size: .74rem;
  font-weight: 400;
  letter-spacing: .13em;
}
.equation strong { border-color: rgba(231, 201, 137, .5); color: var(--gold-bright); }
.equation i,
.equation b { color: var(--muted); font-size: .8rem; font-style: normal; font-weight: 400; }
.equation b { color: var(--gold-bright); }
.final-status {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  width: min(100%, 900px);
  margin-top: 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.final-status span,
.final-status strong {
  padding: 16px 14px;
  border-right: 1px solid var(--line);
  font-size: .58rem;
  font-weight: 400;
  letter-spacing: .15em;
}
.final-status strong:last-child { border-right: 0; }
.final-status span { color: var(--ivory); font-family: var(--serif); }
.final-status strong { color: var(--gold-bright); }
.result-note {
  max-width: 750px;
  margin: 28px auto 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: .8rem;
  line-height: 1.65;
}
.return-link { margin: 36px auto 0; }

footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 28px max(24px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--serif);
  font-size: .54rem;
  letter-spacing: .14em;
  line-height: 1.5;
}
footer span:nth-child(2) { text-align: center; }
footer span:last-child { text-align: right; }

@keyframes field-scan {
  0%, 100% { transform: translateX(-30%) skewX(-12deg); opacity: 0; }
  50% { transform: translateX(470%) skewX(-12deg); opacity: 1; }
}
@keyframes orbit-clockwise { to { transform: rotate(360deg); } }
@keyframes orbit-counter { to { transform: rotate(-360deg); } }
@keyframes organ-breathe {
  0%, 100% { transform: scale(.985); filter: brightness(.9); }
  50% { transform: scale(1.025); filter: brightness(1.18); }
}

@media (max-width: 1100px) {
  .threshold { grid-template-columns: minmax(0, 1fr) minmax(250px, .45fr); gap: 50px; }
  .instrument-grid { grid-template-columns: minmax(380px, 1fr) minmax(310px, .82fr); gap: 36px; }
  .organ-sticky { top: 82px; }
}

@media (max-width: 840px) {
  .archive-bar { grid-template-columns: 1fr auto; gap: 10px; min-height: calc(64px + env(safe-area-inset-top)); padding: calc(8px + env(safe-area-inset-top)) 18px 8px; }
  .archive-bar > p { display: none; }
  .threshold { grid-template-columns: 1fr; align-items: center; min-height: calc(100svh - 64px); padding: 92px 22px 76px; }
  .threshold-frame::before { left: 72%; }
  .classification { width: 100%; margin-top: 10px; }
  .protocol-strip { grid-template-columns: repeat(2, 1fr); }
  .protocol-strip p:nth-child(2) { border-right: 0; }
  .protocol-strip p:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .instrument { padding: 78px 0 0; }
  .instrument-head { grid-template-columns: 1fr; gap: 24px; padding: 0 20px; margin-bottom: 62px; }
  .instrument-grid { display: block; width: 100%; }
  .organ-column {
    position: sticky;
    z-index: 20;
    top: calc(64px + env(safe-area-inset-top));
    padding: 0 10px 9px;
    background: linear-gradient(180deg, rgba(3,4,3,.99) 88%, transparent);
  }
  .organ-sticky { position: static; padding: 0; }
  .organ-frame { min-height: 0; height: min(42svh, 390px); aspect-ratio: auto; }
  .organ-svg { width: auto; height: 93%; }
  .manual-panel { margin-top: 6px; }
  .manual-heading { padding: 8px 10px; }
  .fragment-control { min-height: 48px; padding: 5px 3px; }
  .transport button { min-height: 38px; }
  .interaction-mode { padding: 7px 10px; }
  .score-column { position: relative; z-index: 1; padding: 6svh 18px 14svh; }
  .score-threshold { min-height: 92svh; padding: 54px 9px 60px; }
  .score-threshold::before { inset: 7% 0; }
  .threshold-number { right: 7px; }
  .result { padding-right: 20px; padding-left: 20px; }
}

@media (max-width: 560px) {
  .system-state { font-size: .49rem; }
  .threshold h1 { display: block; margin-top: 19px; }
  .threshold h1 span { display: block; font-size: clamp(2.65rem, 14.2vw, 4.55rem); line-height: .84; }
  .threshold h1 strong { display: block; margin-top: 15px; font-size: 1.45rem; }
  .axiom { margin-top: 34px; padding: 20px 0; }
  .classification div { padding: 11px 0; }
  .classification span, .classification strong { font-size: .5rem; }
  .protocol-strip p { padding: 16px 8px; font-size: .49rem; }
  .instrument-head h2 { font-size: clamp(2.55rem, 13vw, 4.3rem); }
  .organ-column { padding-right: 6px; padding-left: 6px; }
  .organ-frame { height: min(36svh, 318px); }
  .scan-label { top: 13px; right: 14px; left: 14px; font-size: .46rem; }
  .score-ticks { right: 14px; bottom: 57px; left: 14px; gap: 2px; }
  .score-ticks i { height: 8px; }
  .organ-status { right: 14px; bottom: 14px; left: 14px; font-size: .46rem; }
  .manual-heading small { display: none; }
  .fragment-control span { font-size: .39rem; }
  .transport button { font-size: .46rem; }
  .interaction-mode { font-size: .42rem; }
  .score-column { padding-right: 15px; padding-left: 15px; }
  .score-threshold h3 { font-size: clamp(2.25rem, 12vw, 3.7rem); }
  .threshold-symbol { width: 68px; height: 68px; }
  .fragment-data { grid-template-columns: 1fr; }
  .fragment-data span:last-child { text-align: left; }
  .equation { gap: 8px; }
  .equation span, .equation strong { min-width: 44px; padding: 8px; font-size: .64rem; }
  .final-status { grid-template-columns: 1fr; }
  .final-status span, .final-status strong { border-right: 0; border-bottom: 1px solid var(--line); }
  .final-status strong:last-child { border-bottom: 0; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer span:nth-child(2), footer span:last-child { text-align: center; }
}

@media (max-width: 380px) {
  .brand { font-size: .63rem; }
  .system-state { max-width: 104px; line-height: 1.35; text-align: right; }
  .organ-frame { height: min(32svh, 270px); }
  .fragment-control { min-height: 44px; }
  .manual-heading { display: none; }
  .interaction-mode { display: none; }
}

@media (max-height: 680px) {
  .organ-sticky {
    position: relative;
    top: auto;
    width: min(100%, 560px);
  }
}

@media (max-width: 840px) and (max-height: 620px) {
  .organ-column { position: relative; top: auto; }
  .organ-frame { height: min(52vw, 280px); }
}

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