:root {
  --black: #050505;
  --black-soft: #090807;
  --black-panel: rgba(12, 10, 9, 0.78);
  --ivory: #e8e2d8;
  --ivory-soft: rgba(232, 226, 216, 0.78);
  --muted: #9a9188;
  --blood: #7d1f1f;
  --blood-bright: #a5352f;
  --gold: #a58b5e;
  --line: rgba(232, 226, 216, 0.14);
  --line-strong: rgba(232, 226, 216, 0.28);
  --side: clamp(20px, 5vw, 76px);
  --header-height: 74px;
  --scar-intensity: 0.25;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--ivory);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, "Times New Roman", serif;
}

body.is-locked {
  overflow: hidden;
}

button,
textarea,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

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

button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--ivory);
  outline-offset: 5px;
}

::selection {
  background: var(--blood);
  color: var(--ivory);
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ivory);
  color: var(--black);
  font-size: 0.78rem;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

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

.chamber-atmosphere {
  position: fixed;
  z-index: -3;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 42%, rgba(125, 31, 31, 0.1), transparent 22%),
    radial-gradient(circle at 18% 78%, rgba(165, 139, 94, 0.04), transparent 24%),
    linear-gradient(120deg, #050505 0%, #090807 47%, #030303 100%);
  pointer-events: none;
}

.chamber-atmosphere::before {
  position: absolute;
  inset: -4%;
  background:
    linear-gradient(rgba(5, 5, 5, 0.84), rgba(5, 5, 5, 0.94)),
    url("../assets/images/manor-bg.jpg") center / cover;
  content: "";
  filter: grayscale(1) contrast(1.08);
  opacity: 0.2;
  transform: scale(1.04);
  animation: chamber-breath 22s ease-in-out infinite alternate;
}

.chamber-grain {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(20vw - 1px),
      rgba(255, 255, 255, 0.018) 20vw
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent calc(20vh - 1px),
      rgba(255, 255, 255, 0.014) 20vh
    );
  opacity: 0.72;
}

.chamber-scar {
  position: absolute;
  width: 1px;
  height: 72vh;
  background: linear-gradient(
    transparent,
    rgba(125, 31, 31, calc(var(--scar-intensity) * 0.75)),
    transparent
  );
  opacity: var(--scar-intensity);
  transform-origin: center;
  transition: opacity 900ms ease;
}

.chamber-scar::before,
.chamber-scar::after {
  position: absolute;
  width: 1px;
  background: inherit;
  content: "";
}

.chamber-scar::before {
  top: 21%;
  left: -16px;
  height: 24%;
  transform: rotate(-13deg);
}

.chamber-scar::after {
  right: -18px;
  bottom: 16%;
  height: 18%;
  transform: rotate(17deg);
}

.chamber-scar-a {
  top: -8vh;
  right: 20vw;
  transform: rotate(7deg);
}

.chamber-scar-b {
  bottom: -14vh;
  left: 13vw;
  transform: rotate(-10deg);
}

.chamber-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 12px var(--side);
  border-bottom: 1px solid rgba(232, 226, 216, 0.06);
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0.52), transparent);
  pointer-events: none;
}

.site-mark,
.chamber-status {
  pointer-events: auto;
}

.site-mark {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.67rem;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.site-mark:hover,
.site-mark:focus-visible {
  color: var(--ivory);
}

.site-mark-glyph {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  color: var(--ivory);
  font-size: 0.92rem;
  letter-spacing: 0;
}

.chamber-status {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.local-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.local-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blood-bright);
  box-shadow: 0 0 9px rgba(165, 53, 47, 0.5);
}

.status-divider {
  width: 34px;
  height: 1px;
  background: var(--line);
}

main {
  min-height: 100svh;
}

.chamber-view {
  min-height: 100svh;
  padding: calc(var(--header-height) + clamp(44px, 7vh, 86px)) var(--side) clamp(70px, 9vh, 110px);
  opacity: 0;
  transform: translateY(8px);
}

.chamber-view.is-active {
  animation: view-reveal 900ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.section-label {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.65rem;
  letter-spacing: 0.17em;
  line-height: 1.5;
  text-transform: uppercase;
}

.threshold-view {
  display: grid;
  align-items: center;
}

.threshold-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
  gap: clamp(64px, 10vw, 150px);
  align-items: center;
  width: min(1320px, 100%);
  min-width: 0;
  margin: 0 auto;
}

.threshold-copy {
  min-width: 0;
}

.threshold-copy h1 {
  display: grid;
  max-width: 100%;
  margin: clamp(18px, 3vh, 30px) 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 6.8vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.78;
  text-transform: uppercase;
}

.threshold-copy h1 span:last-child {
  margin-left: clamp(18px, 8vw, 118px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 226, 216, 0.54);
}

.threshold-lead {
  max-width: 660px;
  margin: clamp(52px, 8vh, 84px) 0 0;
  font-size: clamp(1.08rem, 1.7vw, 1.38rem);
  line-height: 2;
}

.threshold-subcopy {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--ivory-soft);
  font-size: 0.9rem;
  line-height: 2.1;
}

.threshold-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  align-items: center;
  margin-top: 40px;
}

.primary-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-width: min(300px, 100%);
  min-height: 58px;
  padding: 16px 20px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(100deg, rgba(125, 31, 31, 0.13), transparent 55%),
    rgba(5, 5, 5, 0.46);
  cursor: pointer;
  font-size: 0.9rem;
  text-align: left;
  transition:
    border-color 220ms ease,
    background 220ms ease,
    transform 220ms ease;
}

.primary-action::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--blood-bright);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms ease;
}

.primary-action span:last-child {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.primary-action:hover,
.primary-action:focus-visible {
  border-color: rgba(165, 53, 47, 0.7);
  background:
    linear-gradient(100deg, rgba(125, 31, 31, 0.2), transparent 62%),
    rgba(5, 5, 5, 0.64);
  transform: translateY(-2px);
}

.primary-action:hover::after,
.primary-action:focus-visible::after {
  transform: scaleX(1);
}

.text-action {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.76rem;
  transition: border-color 180ms ease, color 180ms ease;
}

.text-action:hover,
.text-action:focus-visible {
  border-color: var(--ivory);
  color: var(--ivory);
}

.instrument-panel {
  position: relative;
  display: grid;
  gap: 34px;
  justify-items: center;
  min-width: 0;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(232, 226, 216, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 226, 216, 0.02) 1px, transparent 1px),
    rgba(3, 3, 3, 0.3);
  background-size: 24px 24px;
}

.instrument-panel::before,
.instrument-panel::after {
  position: absolute;
  width: 42px;
  height: 42px;
  border-color: rgba(165, 53, 47, 0.58);
  content: "";
  pointer-events: none;
}

.instrument-panel::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.instrument-panel::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.observation-instrument {
  position: relative;
  width: min(320px, 66vw);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.instrument-ring,
.instrument-cross,
.instrument-index,
.instrument-core {
  position: absolute;
}

.instrument-ring {
  inset: 50%;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-outer {
  width: 82%;
  height: 82%;
  border-color: rgba(125, 31, 31, 0.44);
  animation: instrument-rotate 28s linear infinite;
}

.ring-outer::before,
.ring-outer::after {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blood);
  content: "";
}

.ring-outer::before {
  top: 9%;
  left: 20%;
}

.ring-outer::after {
  right: 7%;
  bottom: 30%;
}

.ring-middle {
  width: 57%;
  height: 57%;
  border-style: dashed;
  animation: instrument-rotate-reverse 18s linear infinite;
}

.ring-inner {
  width: 30%;
  height: 30%;
  border-color: rgba(165, 139, 94, 0.38);
}

.instrument-cross {
  top: 50%;
  left: 50%;
  background: var(--line);
  transform: translate(-50%, -50%);
}

.cross-horizontal {
  width: 94%;
  height: 1px;
}

.cross-vertical {
  width: 1px;
  height: 94%;
}

.instrument-index {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.55rem;
}

.index-north {
  top: 3%;
  left: 50%;
  transform: translateX(-50%);
}

.index-east {
  top: 50%;
  right: 3%;
  transform: translateY(-50%);
}

.index-south {
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
}

.index-west {
  top: 50%;
  left: 3%;
  transform: translateY(-50%);
}

.instrument-core {
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(165, 139, 94, 0.46);
  background: rgba(5, 5, 5, 0.9);
  font-family: Georgia, "Times New Roman", serif;
  transform: translate(-50%, -50%) rotate(45deg);
}

.instrument-core::after {
  color: var(--ivory);
  content: "G";
  transform: rotate(-45deg);
}

.privacy-ledger {
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.ledger-title {
  margin: 0 0 16px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.privacy-ledger dl {
  margin: 0;
}

.privacy-ledger dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 20px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(232, 226, 216, 0.07);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.privacy-ledger dt {
  color: var(--muted);
}

.privacy-ledger dd {
  margin: 0;
  text-align: right;
}

.privacy-ledger > p:last-child {
  margin: 18px 0 0;
  color: rgba(232, 226, 216, 0.6);
  font-size: 0.72rem;
  line-height: 1.9;
}

.prior-mark {
  display: grid;
  width: 100%;
  padding: 16px 18px;
  border-left: 1px solid var(--blood);
  background: rgba(125, 31, 31, 0.06);
}

.prior-mark span,
.prior-mark small {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.55rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.prior-mark strong {
  margin: 7px 0 5px;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.threshold-footnote {
  position: absolute;
  right: var(--side);
  bottom: 24px;
  margin: 0;
  color: rgba(154, 145, 136, 0.58);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.52rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.interrogation-view {
  display: grid;
  align-items: center;
}

.interrogation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
  gap: clamp(64px, 10vw, 148px);
  width: min(1180px, 100%);
  margin: 0 auto;
}

.question-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.question-number {
  display: flex;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.7rem;
}

.question-number span:first-child {
  color: var(--ivory);
}

.testimony-form {
  margin-top: clamp(40px, 6vh, 70px);
}

.testimony-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.testimony-form legend {
  max-width: 820px;
  padding: 0;
  font-size: clamp(2rem, 4.1vw, 4.35rem);
  line-height: 1.42;
}

.question-instruction {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--ivory-soft);
  font-size: 0.86rem;
  line-height: 1.9;
}

.answer-label {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(42px, 6vh, 68px);
  padding-bottom: 10px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.answer-label b {
  color: var(--ivory);
  font-weight: 400;
}

.answer-frame {
  position: relative;
}

.answer-frame textarea {
  display: block;
  width: 100%;
  min-height: 190px;
  resize: vertical;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(125, 31, 31, 0.035), transparent 44%),
    rgba(3, 3, 3, 0.38);
  caret-color: var(--blood-bright);
  color: var(--ivory);
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  line-height: 2;
  transition: border-color 180ms ease, background 180ms ease;
}

.answer-frame textarea:hover,
.answer-frame textarea:focus {
  border-color: rgba(232, 226, 216, 0.32);
  background:
    linear-gradient(135deg, rgba(125, 31, 31, 0.06), transparent 46%),
    rgba(3, 3, 3, 0.52);
  outline: none;
}

.answer-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(165, 53, 47, 0.58);
  pointer-events: none;
}

.corner-tl {
  top: -1px;
  left: -1px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.corner-tr {
  top: -1px;
  right: -1px;
  border-top: 1px solid;
  border-right: 1px solid;
}

.corner-bl {
  bottom: -1px;
  left: -1px;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.corner-br {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.answer-note,
.answer-error {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: rgba(154, 145, 136, 0.68);
  font-size: 0.66rem;
  line-height: 1.8;
}

.answer-error {
  min-height: 1.8em;
  margin-top: 4px;
  color: #c46f67;
}

.question-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
}

.silence-action {
  padding: 9px 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.75rem;
  transition: border-color 180ms ease, color 180ms ease;
}

.silence-action:hover,
.silence-action:focus-visible {
  border-color: var(--line);
  color: var(--ivory);
}

.submit-action {
  min-width: 240px;
}

.sequence-panel {
  align-self: center;
  padding: 28px 0 0 clamp(24px, 4vw, 52px);
  border-left: 1px solid var(--line);
}

.sequence-title {
  margin: 0 0 30px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.62rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.sequence-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sequence-list li {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 18px;
  padding: 0 0 31px;
  color: rgba(154, 145, 136, 0.48);
  transition: color 300ms ease;
}

.sequence-list li::before {
  position: absolute;
  top: 5px;
  bottom: -3px;
  left: 13px;
  width: 1px;
  background: var(--line);
  content: "";
}

.sequence-list li:last-child::before {
  display: none;
}

.sequence-list li > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-self: start;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: var(--black);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.55rem;
}

.sequence-list strong,
.sequence-list small {
  display: block;
  font-weight: 400;
}

.sequence-list strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sequence-list small {
  margin-top: 6px;
  font-size: 0.68rem;
}

.sequence-list li.is-current,
.sequence-list li.is-complete {
  color: var(--ivory);
}

.sequence-list li.is-current > span {
  border-color: var(--blood-bright);
  box-shadow: 0 0 18px rgba(125, 31, 31, 0.18);
}

.sequence-list li.is-complete > span {
  border-color: rgba(165, 139, 94, 0.42);
  color: var(--gold);
}

.sequence-progress {
  height: 1px;
  margin-top: 7px;
  background: var(--line);
}

.sequence-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blood-bright);
  transition: width 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.sequence-disclaimer {
  margin: 24px 0 0;
  color: rgba(154, 145, 136, 0.58);
  font-size: 0.64rem;
  line-height: 1.9;
}

.processing-view {
  display: grid;
  place-items: center;
  text-align: center;
}

.processing-content {
  width: min(720px, 100%);
}

.processing-sigil {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 0 auto 50px;
}

.processing-sigil span {
  position: absolute;
  inset: 50%;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.processing-sigil span:nth-child(1) {
  width: 100%;
  height: 100%;
  border-color: rgba(125, 31, 31, 0.52);
  animation: processing-pulse 2s ease-in-out infinite;
}

.processing-sigil span:nth-child(2) {
  width: 68%;
  height: 68%;
  border-style: dashed;
  animation: instrument-rotate 8s linear infinite;
}

.processing-sigil span:nth-child(3) {
  width: 38%;
  height: 38%;
  border-color: rgba(165, 139, 94, 0.5);
  animation: processing-pulse 2s 400ms ease-in-out infinite;
}

.processing-sigil b {
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 400;
  transform: translate(-50%, -50%);
}

.processing-content h2 {
  margin: 24px 0 0;
  font-size: clamp(1.8rem, 3.4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.6;
}

.processing-content > p:last-child {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.result-view {
  display: grid;
  align-items: center;
}

.record-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  background:
    linear-gradient(130deg, rgba(125, 31, 31, 0.045), transparent 36%),
    rgba(5, 5, 5, 0.48);
}

.record-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 24px clamp(22px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.record-id {
  margin: 8px 0 0;
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.record-meta {
  display: grid;
  gap: 5px;
  text-align: right;
}

.record-meta span {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.55rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.record-meta strong {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.record-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}

.verdict {
  min-width: 0;
  padding: clamp(42px, 7vw, 88px);
  border-right: 1px solid var(--line);
}

.verdict-kicker {
  margin: 0;
  color: var(--blood-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.verdict h2 {
  max-width: 780px;
  margin: 20px 0 0;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  font-weight: 400;
  line-height: 1.35;
}

.verdict-copy {
  display: grid;
  gap: 22px;
  max-width: 720px;
  margin-top: clamp(44px, 7vh, 78px);
  color: var(--ivory-soft);
  font-size: clamp(0.92rem, 1.3vw, 1.06rem);
  line-height: 2.15;
}

.verdict-copy p {
  margin: 0;
}

.verdict-copy .verdict-final {
  padding-left: 20px;
  border-left: 1px solid var(--blood);
  color: var(--ivory);
  font-size: clamp(1.05rem, 1.65vw, 1.3rem);
}

.verdict-signature {
  display: grid;
  justify-items: end;
  margin: clamp(48px, 8vh, 86px) 0 0 auto;
  text-align: right;
}

.verdict-signature span {
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.verdict-signature small {
  margin-top: 8px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.trace-panel {
  padding: clamp(36px, 5vw, 62px) clamp(26px, 4vw, 48px);
}

.trace-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.trace-heading p,
.trace-heading span {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trace-heading span {
  color: var(--muted);
}

.trace-list {
  display: grid;
  gap: 24px;
  margin-top: 34px;
}

.trace-item {
  display: grid;
  gap: 10px;
}

.trace-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.68rem;
}

.trace-label b {
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.trace-track {
  height: 2px;
  background: rgba(232, 226, 216, 0.08);
}

.trace-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blood), var(--blood-bright), var(--gold));
  transition: width 1000ms 300ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.result-view.is-active .trace-track span {
  width: var(--trace-value);
}

.trace-note {
  margin: 34px 0 0;
  color: rgba(154, 145, 136, 0.65);
  font-size: 0.64rem;
  line-height: 1.9;
}

.record-facts {
  margin: 38px 0 0;
  border-top: 1px solid var(--line);
}

.record-facts div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(232, 226, 216, 0.07);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.59rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.record-facts dt {
  color: var(--muted);
}

.record-facts dd {
  margin: 0;
}

.record-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  padding: 24px clamp(22px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.record-actions .primary-action {
  min-width: 260px;
}

.danger-action {
  color: rgba(196, 111, 103, 0.76);
}

.manor-return {
  margin-left: auto;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease;
}

.manor-return:hover,
.manor-return:focus-visible {
  border-color: var(--ivory);
  color: var(--ivory);
}

.site-credit {
  position: fixed;
  z-index: 20;
  bottom: 18px;
  left: var(--side);
  pointer-events: none;
}

.site-credit p {
  margin: 0;
  color: rgba(154, 145, 136, 0.48);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.48rem;
  letter-spacing: 0.09em;
}

.burn-dialog {
  width: min(540px, calc(100vw - 36px));
  padding: 0;
  border: 1px solid var(--line-strong);
  background: #080706;
  color: var(--ivory);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    display 220ms allow-discrete,
    overlay 220ms allow-discrete;
}

.burn-dialog[open] {
  opacity: 1;
  transform: translateY(0);
}

@starting-style {
  .burn-dialog[open] {
    opacity: 0;
    transform: translateY(10px);
  }
}

.burn-dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
}

.burn-dialog form {
  padding: clamp(28px, 6vw, 52px);
}

.burn-dialog h2 {
  margin: 18px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.5;
}

.burn-dialog form > p:not(.section-label) {
  margin: 22px 0 0;
  color: var(--ivory-soft);
  font-size: 0.78rem;
  line-height: 2;
}

.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  margin-top: 34px;
}

.burn-confirm {
  min-width: 190px;
}

.noscript-message {
  position: fixed;
  z-index: 300;
  right: 20px;
  bottom: 20px;
  left: 20px;
  margin: 0;
  padding: 16px 20px;
  border: 1px solid rgba(232, 226, 216, 0.36);
  background: #130909;
  color: var(--ivory);
  font-size: 0.8rem;
  text-align: center;
}

.is-sealing .answer-frame {
  animation: answer-seal 420ms ease both;
}

@media (max-width: 1180px) {
  .threshold-layout,
  .interrogation-layout {
    grid-template-columns: 1fr;
  }

  .threshold-layout {
    gap: 70px;
    padding-top: 30px;
  }

  .instrument-panel {
    width: min(620px, calc(100% - 2px));
    margin-inline: auto;
  }

  .observation-instrument {
    width: min(280px, 66vw);
  }

  .threshold-footnote {
    position: static;
    margin-top: 56px;
    text-align: right;
  }

  .interrogation-layout {
    gap: 60px;
  }

  .sequence-panel {
    padding: 28px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .sequence-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sequence-list li {
    grid-template-columns: 28px 1fr;
    padding: 0 14px 0 0;
  }

  .sequence-list li::before {
    top: 13px;
    right: -2px;
    bottom: auto;
    left: 13px;
    width: auto;
    height: 1px;
  }

  .sequence-list li:last-child {
    padding-right: 0;
  }

  .sequence-list small {
    display: none;
  }

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

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

@media (max-width: 640px) {
  :root {
    --header-height: 62px;
    --side: 18px;
  }

  .chamber-header {
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .site-mark-name,
  .local-status,
  .status-divider {
    display: none;
  }

  .chamber-view {
    padding-top: calc(var(--header-height) + 46px);
    padding-bottom: 78px;
  }

  .threshold-copy h1 {
    font-size: clamp(2.4rem, 12vw, 4.4rem);
    letter-spacing: -0.055em;
    line-height: 0.86;
  }

  .threshold-copy h1 span:last-child {
    margin-left: 0;
  }

  .threshold-lead br {
    display: none;
  }

  .threshold-actions,
  .question-actions,
  .record-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .threshold-actions .primary-action,
  .submit-action,
  .record-actions .primary-action {
    width: 100%;
  }

  .threshold-actions .text-action,
  .question-actions .silence-action,
  .record-actions .text-action {
    align-self: flex-start;
  }

  .instrument-panel {
    width: calc(100% - 2px);
    padding: 26px 20px;
  }

  .privacy-ledger dl div {
    gap: 12px;
    font-size: 0.56rem;
  }

  .testimony-form legend {
    font-size: clamp(1.7rem, 8vw, 2.5rem);
  }

  .question-actions {
    gap: 28px;
  }

  .sequence-list li {
    display: block;
    padding-right: 8px;
  }

  .sequence-list li::before {
    left: 27px;
  }

  .sequence-list li > span {
    margin-bottom: 8px;
  }

  .sequence-list strong {
    font-size: 0.55rem;
  }

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

  .record-meta {
    text-align: left;
  }

  .verdict,
  .trace-panel {
    padding: 34px 22px;
  }

  .verdict h2 {
    font-size: clamp(2rem, 10vw, 3.4rem);
  }

  .record-actions {
    padding: 24px 22px;
  }

  .manor-return {
    align-self: flex-start;
    margin-left: 0;
  }

  .site-credit {
    position: static;
    padding: 0 var(--side) 18px;
  }

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

  .dialog-actions .text-action {
    align-self: flex-start;
  }
}

@media (min-width: 1181px) and (max-height: 900px) {
  .threshold-view,
  .interrogation-view,
  .result-view {
    align-items: start;
  }
}

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

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

@keyframes view-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chamber-breath {
  from {
    filter: grayscale(1) contrast(1.08) brightness(0.84);
    transform: scale(1.04);
  }

  to {
    filter: grayscale(0.94) contrast(1.12) brightness(0.94);
    transform: scale(1.075);
  }
}

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

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

@keyframes processing-pulse {
  0%,
  100% {
    opacity: 0.42;
    transform: translate(-50%, -50%) scale(0.97);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.03);
  }
}

@keyframes answer-seal {
  0% {
    filter: none;
    opacity: 1;
  }

  45% {
    filter: brightness(1.2);
    opacity: 0.7;
  }

  100% {
    filter: brightness(0.5);
    opacity: 0;
    transform: scaleY(0.985);
  }
}
