/* ============================================
   THE ARCHITECTURE OF SILENCE — Stylesheet
   The Antechamber & The Chambers
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #1B1B1B;
  color: #F3F1EC;
  font-family: 'Libre Caslon Text', 'Georgia', serif;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
}

/* ============================================
   STATE I: THE ANTECHAMBER (The Manifesto)
   ============================================ */
.antechamber {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8vh 2rem 12vh;
  transition: opacity 1.8s ease;
}

.antechamber.dissolving {
  opacity: 0;
}

.antechamber[hidden] {
  display: none;
}

/* --- Manifesto Header --- */
.manifesto-header {
  text-align: center;
  margin-bottom: 6rem;
}

.manifesto-title {
  font-weight: 400;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: #F3F1EC;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  line-height: 1.4;
}

/* --- Manifesto Body --- */
.manifesto {
  max-width: 650px;
  width: 100%;
}

.movement {
  margin-bottom: 4rem;
}

.movement-title {
  font-weight: 400;
  font-size: 1rem;
  color: #F3F1EC;
  opacity: 0.5;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.movement p {
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  font-weight: 400;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 1.2rem;
}

.movement--coda {
  margin-bottom: 0;
}

/* --- The Threshold Line --- */
.threshold-line {
  margin-top: 3rem;
}

/* --- Sigil Gate --- */
/* --- The Stop Signal (Visible Agency) --- */
.stop-signal {
  text-align: center;
  font-style: italic;
  color: #F3F1EC;
  opacity: 0.6;
  max-width: 420px;
  margin: 120px auto 0;
  line-height: 1.9;
  font-size: clamp(0.88rem, 1.4vw, 0.95rem);
}

/* --- The Architectural Refusals --- */
.architectural-refusals {
  max-width: 520px;
  margin: 140px auto 0;
  text-align: left;
}

.refusals-title {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 400;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #F3F1EC;
  opacity: 0.5;
  margin-bottom: 2rem;
  text-align: center;
}

.refusal {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.65rem;
  line-height: 1.9;
  color: #F3F1EC;
  opacity: 0.5;
  margin-bottom: 1.4rem;
}

.refusal:last-child {
  margin-bottom: 0;
}

.sigil-gate {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.sigil-gate .sigil-img {
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.6s ease, filter 0.6s ease;
  animation: sigil-breathe 4s ease-in-out infinite;
}

.sigil-gate .sigil-img:hover,
.sigil-gate .sigil-img:active,
.sigil-gate .sigil-img--lit {
  opacity: 1;
  filter: brightness(1.6) drop-shadow(0 0 12px rgba(220, 200, 160, 0.3));
  animation: none;
}

@keyframes sigil-breathe {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.3; }
}

.sigil-img {
  width: clamp(140px, 28vw, 200px);
  height: auto;
}

/* ============================================
   STATE II: THE CHAMBERS (Transition)
   ============================================ */
.deep-rooms {
  opacity: 1;
  transition: opacity 1.8s ease;
}

.deep-rooms--hidden {
  display: none;
  opacity: 0;
}

.deep-rooms--entering {
  display: block;
  opacity: 0;
}

.deep-rooms--visible {
  display: block;
  opacity: 1;
}

/* --- Site Header --- */
.site-header {
  text-align: center;
  padding: 8vh 2rem 6rem;
}

.site-title {
  font-weight: 400;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: #F3F1EC;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

.site-subtitle {
  font-size: 0.85rem;
  font-weight: 400;
  font-style: italic;
  color: #F3F1EC;
  opacity: 0.4;
  letter-spacing: 0.02em;
}

/* ============================================
   THE CHAMBERS — Vertical Gallery
   ============================================ */
.chambers {
  max-width: 650px;
  margin: 0 auto;
  padding: 0 2rem 12vh;
}

/* --- Artifact (Floating in the Void) --- */
.artifact {
  text-align: center;
  padding: 0;
  margin-bottom: 240px;
}

.artifact:last-child {
  margin-bottom: 0;
}

/* --- Ritual Marker --- */
.ritual-marker {
  font-size: 0.72rem;
  font-weight: 400;
  color: #F3F1EC;
  opacity: 0.6;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.2em;
  margin-bottom: 30px;
}

/* --- Artifact Title --- */
.artifact-title {
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 2.5rem);
  color: #F3F1EC;
  line-height: 1.2;
  margin-bottom: 10px;
}

/* --- Scent Line (The Hook) --- */
.artifact-scent {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  font-weight: 400;
  font-style: italic;
  color: #F3F1EC;
  opacity: 0.5;
  margin-bottom: 40px;
}

/* --- Artifact Signal (Description) --- */
.artifact-signal {
  font-size: clamp(0.95rem, 1.5vw, 1.02rem);
  font-weight: 400;
  color: #F3F1EC;
  opacity: 0.6;
  margin-bottom: 40px;
  line-height: 1.8;
}

/* --- Tribute Line --- */
.architecture-tribute {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.78rem;
  font-weight: 400;
  color: #F3F1EC;
  opacity: 0.5;
  letter-spacing: 0.08em;
  font-variant: small-caps;
  text-transform: lowercase;
  margin-bottom: 30px;
}

/* --- The Archival Colophon --- */
.colophon {
  margin-top: 150px;
  text-align: center;
}

.colophon-heading {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #F3F1EC;
  opacity: 0.5;
  margin-bottom: 0.6rem;
}

.colophon-line {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: #F3F1EC;
  opacity: 0.5;
  line-height: 1.8;
}

/* --- Ghost Button --- */
.chamber-btn {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 400;
  color: #F3F1EC;
  opacity: 0.6;
  background: transparent;
  border: 1px solid rgba(243, 241, 236, 0.15);
  padding: 0.9rem 2.5rem;
  text-decoration: none;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: opacity 0.4s ease, border-color 0.4s ease;
}

.chamber-btn:hover {
  opacity: 1;
  border-color: rgba(243, 241, 236, 0.5);
}

.chamber-btn:active {
  border-color: rgba(243, 241, 236, 0.7);
}

.chamber-btn:disabled {
  opacity: 0.2;
  cursor: default;
}

/* --- Received State --- */
.artifact--received .artifact-title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.artifact--received .chamber-btn {
  margin-top: 40px;
}

.download-expiry {
  font-size: 0.72rem;
  color: #F3F1EC;
  opacity: 0.5;
  margin-top: 1.2rem;
  letter-spacing: 0.03em;
}

/* --- Recovery --- */
.recover-section {
  margin-top: 1.5rem;
}

.recover-link {
  font-size: 0.75rem;
  color: #F3F1EC;
  opacity: 0.45;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: opacity 0.3s ease;
}

.recover-link:hover {
  opacity: 0.5;
}

#recover-form {
  margin-top: 1.5rem;
  text-align: center;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

#recover-form label {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #F3F1EC;
  opacity: 0.4;
  margin-bottom: 0.5rem;
}

#recover-form input[type="email"] {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(243, 241, 236, 0.2);
  color: #F3F1EC;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.5rem 0;
  margin-bottom: 1.2rem;
  outline: none;
  text-align: center;
  transition: border-color 0.3s ease;
}

#recover-form input:focus {
  border-color: rgba(243, 241, 236, 0.5);
}

.recover-btn {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  padding: 0.7rem 1.5rem;
}

/* ============================================
   THE CUSTODIAN PAPERS (Level 3: The Index)
   ============================================ */
.custodian-papers {
  padding: 8vh 2rem 12vh;
}

/* --- The Divider (hairline fracture) --- */
.papers-divider {
  width: 30%;
  max-width: 200px;
  margin: 0 auto;
  border-top: 1px solid rgba(243, 241, 236, 0.2);
  padding-bottom: 150px;
}

/* --- The Sovereign Horarium --- */
.horarium {
  text-align: center;
  max-width: 480px;
  margin: 0 auto 6rem;
}

.horarium-label {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 400;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #F3F1EC;
  opacity: 0.5;
  margin-bottom: 1rem;
}

.horarium-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.6rem;
  line-height: 1.9;
  color: #F3F1EC;
  opacity: 0.5;
}

/* --- The Header --- */
.papers-header {
  text-align: center;
  margin-bottom: 4rem;
}

.papers-title {
  font-weight: 400;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: #F3F1EC;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  line-height: 1.4;
  margin-bottom: 0.6rem;
}

.papers-subtitle {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  color: #F3F1EC;
  opacity: 0.6;
  letter-spacing: 0.03em;
  font-style: italic;
}

/* --- The Index --- */
.papers-index {
  max-width: 750px;
  margin: 0 auto;
}

/* --- Row --- */
.paper-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.8rem 1rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.paper-row:visited {
  color: inherit;
}

.paper-row:hover {
  background-color: #222222;
}

.paper-row:active {
  background-color: #222222;
}

.paper-row:focus-visible {
  outline: 1px solid rgba(243, 241, 236, 0.3);
  outline-offset: -1px;
  background-color: #222222;
}

/* --- Column: ID --- */
.paper-id {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  color: #F3F1EC;
  opacity: 0.35;
  width: 60px;
  flex-shrink: 0;
  transition: opacity 0.3s ease, text-shadow 0.3s ease;
}

.paper-row:hover .paper-id {
  opacity: 0.9;
  text-shadow: 0 0 10px rgba(243, 241, 236, 0.4);
}

/* --- Column: Content --- */
.paper-content {
  flex: 1;
  padding-right: 2rem;
}

.paper-title {
  font-weight: 400;
  font-size: 1rem;
  color: #F3F1EC;
  opacity: 0.85;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.paper-scent {
  font-style: italic;
  font-size: 0.82rem;
  color: #F3F1EC;
  opacity: 0.5;
  line-height: 1.6;
}

/* --- Column: Action --- */
.paper-action {
  flex-shrink: 0;
}

.paper-btn {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.68rem;
  color: #F3F1EC;
  opacity: 0.4;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  font-variant: small-caps;
  border: 1px solid rgba(243, 241, 236, 0.15);
  padding: 0.5rem 1.3rem;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}

.paper-row:hover .paper-btn {
  opacity: 0.9;
  border-color: rgba(243, 241, 236, 0.5);
}

.paper-status {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.68rem;
  color: #F3F1EC;
  opacity: 0.4;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  font-variant: small-caps;
}

/* --- The Trapdoor (to the Deep Ledger) --- */
.papers-trapdoor {
  text-align: center;
  margin-top: 120px;
  margin-bottom: 2rem;
}

.trapdoor-link {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #F3F1EC;
  opacity: 0.5;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.trapdoor-link:hover {
  opacity: 1;
}

/* --- The Working Ledger (Navigation) --- */
.working-ledger-nav {
  text-align: center;
  margin-top: 100px;
  margin-bottom: 60px;
}

.working-ledger-link {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  padding: 2rem 3rem;
  border: 1px solid rgba(243, 241, 236, 0.1);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.working-ledger-link:hover {
  border-color: rgba(243, 241, 236, 0.3);
  background-color: rgba(243, 241, 236, 0.03);
}

.working-ledger-link:focus-visible {
  outline: 1px solid rgba(243, 241, 236, 0.3);
  outline-offset: -1px;
  background-color: rgba(243, 241, 236, 0.03);
}

.working-ledger-title {
  font-weight: 400;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.working-ledger-scent {
  font-style: italic;
  font-size: 0.82rem;
  color: #F3F1EC;
  opacity: 0.45;
  letter-spacing: 0.03em;
}

/* ============================================
   DISPATCH VIEW (The Reading Room)
   ============================================ */
.dispatch-view {
  max-width: 580px;
  margin: 0 auto;
  padding: 16vh 2rem 20vh;
}

.dispatch-view[hidden] {
  display: none;
}

/* --- Back link --- */
.dispatch-back {
  background: none;
  border: none;
  color: #F3F1EC;
  opacity: 0.35;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.3s ease;
}

.dispatch-back:hover {
  opacity: 0.7;
}

.dispatch-back:focus-visible {
  outline: 1px solid rgba(243, 241, 236, 0.3);
  outline-offset: 4px;
}

/* --- Header --- */
.dispatch-header {
  text-align: center;
  margin-bottom: 10rem;
}

.dispatch-id {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem;
  color: #F3F1EC;
  opacity: 0.3;
  letter-spacing: 0.1em;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.dispatch-title {
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: #F3F1EC;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.dispatch-subtitle {
  font-weight: 400;
  font-style: italic;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: #F3F1EC;
  opacity: 0.4;
}

/* --- Body --- */
.dispatch-body {
  line-height: 2.1;
}

.dispatch-body p {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 400;
  color: #F3F1EC;
  opacity: 0.75;
  margin-bottom: 2rem;
}

.dispatch-body em {
  font-style: italic;
  opacity: 0.9;
}

.dispatch-body .dispatch-epigraph {
  font-style: italic;
  text-align: center;
  opacity: 0.5;
  margin-bottom: 1rem;
}

.dispatch-break {
  width: 40px;
  margin: 5rem auto;
  border-top: 1px solid rgba(243, 241, 236, 0.12);
}

.dispatch-body .dispatch-closing {
  margin-top: 2.5rem;
  text-align: center;
  font-style: italic;
  opacity: 0.5;
}

.dispatch-body .dispatch-closing + .dispatch-closing {
  margin-top: 0.4rem;
}

/* --- Footer --- */
.dispatch-footer {
  text-align: center;
  margin-top: 12rem;
  padding-bottom: 4rem;
}

/* ============================================
   THE WITNESS LEDGER (The Quaker Meeting)
   ============================================ */

/* --- The Void (default state at essay bottom) --- */
.witness-void {
  text-align: center;
  margin-top: 10rem;
  padding-bottom: 2rem;
}

.witness-enter {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.witness-ledger-toggle {
  display: block;
  margin: 0 auto;
  background: none;
  border: none;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.68rem;
  color: #F3F1EC;
  opacity: 0.25;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  font-variant: small-caps;
  cursor: pointer;
  padding: 0.4rem 0;
  transition: opacity 0.3s ease;
}

.witness-ledger-toggle:hover {
  opacity: 0.5;
}

/* --- The Ledger (archive of entries) --- */
.witness-ledger {
  max-width: 520px;
  margin: 4rem auto 0;
  text-align: left;
}

.witness-ledger[hidden] {
  display: none;
}

.ledger-empty {
  text-align: center;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  color: #F3F1EC;
  opacity: 0.25;
  letter-spacing: 0.06em;
  padding: 3rem 0;
}

.ledger-entry {
  border-bottom: 1px solid rgba(243, 241, 236, 0.06);
  padding: 2.5rem 0;
}

.ledger-entry:first-child {
  border-top: 1px solid rgba(243, 241, 236, 0.06);
}

.ledger-meta {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.68rem;
  color: #F3F1EC;
  opacity: 0.3;
  letter-spacing: 0.06em;
  margin-bottom: 1.2rem;
}

.ledger-body {
  font-family: 'Libre Caslon Text', 'Georgia', serif;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  font-weight: 400;
  color: #F3F1EC;
  opacity: 0.6;
  line-height: 1.9;
}

/* --- The Witness Overlay (composure modal) --- */
.witness-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.witness-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.witness-panel {
  width: 90%;
  max-width: 480px;
  padding: 3rem 2rem;
  position: relative;
}

.witness-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: #F3F1EC;
  opacity: 0.25;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
  transition: opacity 0.3s ease;
}

.witness-close:hover {
  opacity: 0.6;
}

.witness-prompt {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 400;
  color: #F3F1EC;
  opacity: 0.7;
  text-align: center;
  line-height: 1.9;
  margin-bottom: 3rem;
}

.witness-label {
  display: block;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #F3F1EC;
  opacity: 0.55;
  margin-bottom: 0.5rem;
}

.witness-name {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(243, 241, 236, 0.15);
  color: #F3F1EC;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.88rem;
  padding: 0.5rem 0;
  margin-bottom: 2rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.witness-name:focus {
  border-color: rgba(243, 241, 236, 0.4);
}

.witness-text {
  display: block;
  width: 100%;
  min-height: 180px;
  background: transparent;
  border: 1px solid rgba(243, 241, 236, 0.1);
  color: #F3F1EC;
  font-family: 'Libre Caslon Text', 'Georgia', serif;
  font-size: 0.92rem;
  line-height: 1.8;
  padding: 1rem;
  margin-bottom: 0.6rem;
  outline: none;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.witness-text:focus {
  border-color: rgba(243, 241, 236, 0.25);
}

/* --- Character floor progress bar --- */
.witness-floor {
  height: 2px;
  background: rgba(243, 241, 236, 0.06);
  margin-bottom: 0.5rem;
}

.witness-floor-fill {
  height: 100%;
  width: 0%;
  background: rgba(243, 241, 236, 0.3);
  transition: width 0.15s ease;
}

.witness-floor-fill--met {
  background: rgba(243, 241, 236, 0.5);
}

.witness-floor-count {
  display: block;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.62rem;
  color: #F3F1EC;
  opacity: 0.55;
  letter-spacing: 0.06em;
  text-align: right;
  margin-bottom: 1.5rem;
}

/* --- Composure timer (the drawing line) --- */
.witness-composure-wrap {
  margin-bottom: 2rem;
}

.witness-composure-line {
  height: 1px;
  width: 0%;
  background: rgba(243, 241, 236, 0.25);
  margin-bottom: 0.5rem;
}

.witness-composure-label {
  display: block;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.6rem;
  color: #F3F1EC;
  opacity: 0.55;
  letter-spacing: 0.08em;
  text-align: center;
}

/* --- Submit button within witness --- */
.witness-submit {
  display: block;
  width: 100%;
  text-align: center;
}

/* --- Received confirmation --- */
.witness-received-msg {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 400;
  color: #F3F1EC;
  opacity: 0.6;
  text-align: center;
  line-height: 1.9;
  margin-bottom: 3rem;
}

.witness-return {
  display: block;
  width: 100%;
  text-align: center;
}

/* ============================================
   THE HEAVY SEAL (10-Second Hold for Tract)
   ============================================ */
.heavy-seal {
  position: fixed;
  inset: 0;
  background: #0A0A0A;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 1.5s ease-in-out;
}

.heavy-seal[hidden] {
  display: none;
}

.heavy-seal--unlocked {
  opacity: 0;
  pointer-events: none;
}

.heavy-seal-content {
  text-align: center;
  padding: 2rem;
}

.heavy-seal-prompt {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: #F3F1EC;
  opacity: 0.8;
  max-width: 440px;
  margin: 0 auto 4rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.heavy-seal-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.heavy-seal-trigger {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.heavy-seal-sigil {
  width: 40px;
  height: 40px;
  opacity: 0.35;
  filter: brightness(0.7);
  transition: opacity 0.4s ease, filter 0.4s ease;
  pointer-events: none;
}

.heavy-seal-trigger--active .heavy-seal-sigil {
  opacity: 1;
  filter: brightness(1.5) drop-shadow(0 0 8px rgba(220, 200, 160, 0.4));
}

.heavy-seal-trigger--complete .heavy-seal-sigil {
  opacity: 1;
  filter: brightness(2.0) drop-shadow(0 0 16px rgba(220, 200, 160, 0.6));
}

.heavy-seal-trigger--rejected .heavy-seal-sigil {
  animation: seal-reject 0.6s ease;
}

.heavy-seal-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 76px;
  height: 76px;
  transform: rotate(-90deg);
}

.heavy-seal-ring-track {
  fill: none;
  stroke: #333;
  stroke-width: 2;
}

.heavy-seal-ring-progress {
  fill: none;
  stroke: #EAEAEA;
  stroke-width: 2;
  stroke-dasharray: 282.74;
  stroke-dashoffset: 282.74;
}

.heavy-seal-ring-progress--active {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 10s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.heavy-seal-ring-progress--reset {
  stroke-dashoffset: 282.74;
  transition: none;
}

.heavy-seal-instruction {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #F3F1EC;
  opacity: 0.4;
  margin-top: 20px;
  transition: opacity 0.4s ease;
}

.heavy-seal-instruction--hidden {
  opacity: 0;
}

/* ============================================
   THE SOFT SEAL (The Temporal Lock)
   ============================================ */
.soft-seal {
  position: fixed;
  inset: 0;
  background: #050505;
  z-index: 2000;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  opacity: 1;
  transition: opacity 1.5s ease-in-out;
}

.soft-seal[hidden] {
  display: none;
}

.soft-seal--unlocked {
  opacity: 0;
  pointer-events: none;
}

body.soft-seal-active {
  overflow: hidden;
}

/* --- The Roji (The Path) --- */
.seal-roji {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.seal-thesis-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
}

.seal-thesis {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: #F3F1EC;
  text-align: center;
  max-width: 420px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  opacity: 0;
}

.seal-thesis--visible {
  animation: seal-fade-in 2s ease forwards;
}

@keyframes seal-fade-in {
  from { opacity: 0; }
  to { opacity: 0.8; }
}

/* The emptiness between thesis and gate */
.seal-path {
  height: 200vh;
}

/* --- The Gate (end of the Roji) --- */
.seal-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  justify-content: center;
}

/* --- The Trigger (Sigil + Ring) --- */
.seal-trigger {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.seal-sigil {
  width: 40px;
  height: 40px;
  opacity: 0.35;
  filter: brightness(0.7);
  transition: opacity 0.4s ease, filter 0.4s ease;
  pointer-events: none;
}

.seal-trigger--active .seal-sigil {
  opacity: 1;
  filter: brightness(1.5) drop-shadow(0 0 8px rgba(220, 200, 160, 0.4));
}

.seal-trigger--complete .seal-sigil {
  opacity: 1;
  filter: brightness(2.0) drop-shadow(0 0 16px rgba(220, 200, 160, 0.6));
}

.seal-trigger--rejected .seal-sigil {
  animation: seal-reject 0.6s ease;
}

@keyframes seal-reject {
  0%   { filter: brightness(0.7); opacity: 0.35; }
  30%  { filter: brightness(1.2) drop-shadow(0 0 6px rgba(180, 80, 60, 0.5)); opacity: 0.7; }
  100% { filter: brightness(0.7); opacity: 0.35; }
}

/* --- The Ring (SVG Progress — decaying ease) --- */
.seal-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 76px;
  height: 76px;
  transform: rotate(-90deg);
}

.seal-ring-track {
  fill: none;
  stroke: #333;
  stroke-width: 2;
}

.seal-ring-progress {
  fill: none;
  stroke: #EAEAEA;
  stroke-width: 2;
  stroke-dasharray: 282.74;
  stroke-dashoffset: 282.74;
}

.seal-ring-progress--active {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.seal-ring-progress--reset {
  stroke-dashoffset: 282.74;
  transition: none;
}

/* --- The Instruction --- */
.seal-instruction {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #F3F1EC;
  opacity: 0.4;
  margin-top: 20px;
  transition: opacity 0.4s ease;
}

.seal-instruction--hidden {
  opacity: 0;
}

/* ============================================
   CHECKOUT OVERLAY
   ============================================ */
.checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.checkout-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.checkout-panel {
  background: #1B1B1B;
  border: 1px solid rgba(243, 241, 236, 0.1);
  border-radius: 0;
  padding: 3rem 2.5rem 2.5rem;
  width: 90%;
  max-width: 420px;
  position: relative;
}

.checkout-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: #F3F1EC;
  opacity: 0.3;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.checkout-close:hover {
  opacity: 0.7;
}

.checkout-heading {
  font-weight: 400;
  font-size: 1.2rem;
  color: #F3F1EC;
  margin-bottom: 0.3rem;
}

.checkout-artifact-name {
  font-size: 0.85rem;
  color: #F3F1EC;
  opacity: 0.35;
  margin-bottom: 2rem;
  font-style: italic;
}

/* --- Form elements --- */
.checkout-panel label {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #F3F1EC;
  opacity: 0.4;
  margin-bottom: 0.5rem;
}

.checkout-panel input[type="email"],
.checkout-panel input[type="number"] {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(243, 241, 236, 0.2);
  color: #F3F1EC;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  margin-bottom: 1.5rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.checkout-panel input:focus {
  border-color: rgba(243, 241, 236, 0.5);
}

.tribute-input-wrap {
  position: relative;
}

.tribute-currency {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-70%);
  color: #F3F1EC;
  opacity: 0.4;
  font-size: 0.95rem;
  pointer-events: none;
}

.tribute-input-wrap input {
  padding-left: 1rem;
}

/* Hide number input spinners */
.tribute-input-wrap input::-webkit-outer-spin-button,
.tribute-input-wrap input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.tribute-input-wrap input[type="number"] {
  -moz-appearance: textfield;
}

.checkout-continue,
.checkout-submit {
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
}

.checkout-error {
  font-size: 0.8rem;
  color: #F3F1EC;
  opacity: 0.5;
  margin-top: 1rem;
  text-align: center;
}

#payment-element {
  margin-bottom: 1.5rem;
}

/* --- Mobile --- */
@media (max-width: 600px) {
  .antechamber {
    padding: 6vh 1.5rem 10vh;
  }

  .manifesto-header {
    margin-bottom: 4rem;
  }

  .movement {
    margin-bottom: 3rem;
  }

  .site-header {
    padding: 6vh 1.5rem 4rem;
  }

  .chambers {
    padding: 0 1.5rem 10vh;
  }

  .artifact {
    margin-bottom: 180px;
  }

  .checkout-panel {
    padding: 2.5rem 1.5rem 2rem;
  }

  /* Dispatch view — still generous on mobile */
  .dispatch-view {
    padding: 10vh 1.5rem 14vh;
  }

  .dispatch-header {
    margin-bottom: 6rem;
  }

  /* Custodian Papers — vertical stack on mobile */
  .custodian-papers {
    padding: 6vh 1.5rem 10vh;
  }

  .papers-divider {
    padding-bottom: 100px;
  }

  .working-ledger-nav {
    margin-top: 80px;
    margin-bottom: 40px;
  }

  .working-ledger-link {
    padding: 1.5rem 2rem;
    display: block;
  }

  .paper-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 1.5rem 0.5rem;
  }

  .paper-id {
    width: auto;
  }

  .paper-content {
    padding-right: 0;
  }

  .paper-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.6rem 1.3rem;
  }

  /* Witness overlay — tighter on mobile */
  .witness-panel {
    padding: 2.5rem 1.5rem;
  }

  .witness-void {
    margin-top: 6rem;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .antechamber,
  .deep-rooms,
  .checkout-overlay,
  .sigil-gate .sigil-img,
  .chamber-btn,
  .recover-link,
  .paper-row,
  .paper-id,
  .paper-btn,
  .working-ledger-link,
  .dispatch-back {
    transition: none;
  }

  .sigil-gate .sigil-img,
  .seal-thesis--visible,
  .seal-trigger--rejected .seal-sigil {
    animation: none;
  }

  .seal-thesis--visible {
    opacity: 0.8;
  }

  .seal-ring-progress--active,
  .heavy-seal-ring-progress--active {
    transition: none;
    stroke-dashoffset: 0;
  }

  .heavy-seal-trigger--rejected .heavy-seal-sigil {
    animation: none;
  }

  .soft-seal,
  .soft-seal--unlocked,
  .seal-sigil,
  .seal-instruction,
  .heavy-seal,
  .heavy-seal--unlocked,
  .heavy-seal-sigil,
  .heavy-seal-instruction,
  .witness-overlay,
  .witness-name,
  .witness-text,
  .witness-floor-fill,
  .witness-ledger-toggle {
    transition: none;
  }

  .antechamber.dissolving {
    opacity: 0;
  }
}
