.prologue-body {
  background: #050506;
}

.prologue-page {
  --prologue-ink: #f9f1e5;
  --prologue-muted: rgba(249, 241, 229, 0.66);
  --prologue-gold: #ddb26f;
  --prologue-red: #d87169;
  background:
    radial-gradient(circle at 50% -12rem, rgba(160, 96, 72, 0.19), transparent 33rem),
    linear-gradient(180deg, #0c0b0d 0%, #050506 70%);
  color: var(--prologue-ink);
  min-height: 100vh;
  padding-bottom: clamp(4rem, 9vw, 8rem);
}

.prologue-site-header {
  background: #080709;
}

.prologue-width {
  margin-left: auto;
  margin-right: auto;
  max-width: 72rem;
  width: calc(100% - 2rem);
}

.prologue-hero {
  isolation: isolate;
  min-height: 30rem;
  overflow: hidden;
  position: relative;
}

.prologue-ambient {
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.96) 10%, rgba(5, 5, 6, 0.56) 58%, rgba(5, 5, 6, 0.9)),
    linear-gradient(0deg, #070708 0%, transparent 55%),
    url("/story-thumbnails/ghosting-room-thumbnail.jpg") center 24% / cover;
  filter: saturate(0.65) contrast(1.08);
  inset: 0;
  opacity: 0.76;
  position: absolute;
  z-index: -1;
}

.prologue-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 30rem;
  padding: clamp(5rem, 12vw, 9rem) 0 3rem;
}

.prologue-kicker,
.prologue-label {
  color: var(--prologue-gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

.prologue-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 10vw, 7.5rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.88;
  margin: 0;
  max-width: 9ch;
  text-wrap: balance;
}

.prologue-hook {
  color: rgba(255, 249, 240, 0.86);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.65;
  margin: 1.5rem 0;
  max-width: 42rem;
}

.prologue-reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.prologue-reassurance li {
  backdrop-filter: blur(0.6rem);
  background: rgba(7, 7, 9, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.72rem;
}

.prologue-player {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.48);
  overflow: hidden;
}

.prologue-case-strip,
.prologue-evidence-header {
  align-items: center;
  background: #171519;
  color: rgba(255, 255, 255, 0.58);
  display: flex;
  font-size: 0.67rem;
  font-weight: 800;
  justify-content: space-between;
  letter-spacing: 0.13em;
  padding: 0.8rem 1rem;
  text-transform: uppercase;
}

.prologue-case-strip span:last-child,
.prologue-evidence-header span:last-child {
  color: var(--prologue-gold);
}

.prologue-loading,
.prologue-error,
.prologue-briefing {
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.035), transparent 62%),
    #0b0a0c;
  min-height: 25rem;
  padding: clamp(2rem, 7vw, 5rem);
}

.prologue-briefing h2,
.prologue-offer h2,
.prologue-error h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 1.25rem;
}

.prologue-briefing-copy,
.prologue-loading > p:not(.prologue-label),
.prologue-error > p {
  color: var(--prologue-muted);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 42rem;
}

.prologue-primary,
.prologue-choice,
.prologue-replay {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.prologue-primary {
  align-items: center;
  background: var(--prologue-gold);
  border-radius: 0.5rem;
  color: #171008;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  margin-top: 1rem;
  min-height: 3.25rem;
  padding: 0.78rem 1.15rem;
  text-align: center;
  text-decoration: none;
}

.prologue-primary:hover {
  background: #f0c98e;
  color: #171008;
  transform: translateY(-1px);
}

.prologue-microcopy {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.78rem;
  margin: 0.75rem 0 0;
}

.prologue-investigation {
  background: #080709;
  display: grid;
  gap: 1.5rem;
  padding: clamp(1rem, 5vw, 3rem);
}

.prologue-phone {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 9rem),
    #111013;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.55rem;
  margin: 0 auto;
  max-width: 31rem;
  min-height: 30rem;
  padding: 0 1rem 1.5rem;
  width: 100%;
}

.prologue-phone-header {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: grid;
  grid-template-columns: 2rem 1fr 2rem;
  padding: 1rem 0;
  text-align: center;
}

.prologue-phone-header > span:first-child {
  color: var(--prologue-gold);
  font-size: 2rem;
  text-align: left;
}

.prologue-phone-header strong,
.prologue-phone-header small {
  display: block;
}

.prologue-phone-header strong {
  font-size: 0.84rem;
  letter-spacing: 0.1em;
}

.prologue-phone-header small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.67rem;
  margin-top: 0.2rem;
}

.prologue-status-dot {
  background: var(--prologue-red);
  border-radius: 50%;
  box-shadow: 0 0 0 0.28rem rgba(216, 113, 105, 0.11);
  height: 0.55rem;
  justify-self: end;
  width: 0.55rem;
}

.prologue-timestamp {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  margin: 1.1rem 0;
  text-align: center;
}

.prologue-system-message {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
  line-height: 1.5;
  margin: 0.85rem auto;
  max-width: 22rem;
  text-align: center;
}

.prologue-incoming,
.prologue-outgoing {
  border-radius: 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0.7rem 0;
  max-width: 82%;
  padding: 0.72rem 0.9rem;
}

.prologue-incoming {
  background: #29272c;
  border-bottom-left-radius: 0.25rem;
}

.prologue-outgoing {
  background: #71522f;
  border-bottom-right-radius: 0.25rem;
  margin-left: auto;
}

.prologue-branch,
.prologue-cliffhanger,
.prologue-evidence-card {
  animation: prologue-reveal 420ms ease both;
}

.prologue-consequence {
  border-left: 2px solid var(--prologue-red);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  line-height: 1.55;
  margin: 1.2rem 0;
  padding-left: 0.8rem;
}

.prologue-decision,
.prologue-action,
.prologue-evidence-card {
  margin: 0 auto;
  max-width: 48rem;
  width: 100%;
}

.prologue-choices {
  display: grid;
  gap: 0.75rem;
}

.prologue-choice {
  background: #151317;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.7rem;
  color: var(--prologue-ink);
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  text-align: left;
}

.prologue-choice:hover {
  border-color: rgba(221, 178, 111, 0.68);
  transform: translateY(-1px);
}

.prologue-choice strong {
  color: #fff;
}

.prologue-choice span,
.prologue-action p {
  color: var(--prologue-muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.prologue-action {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 1.25rem;
}

.prologue-evidence-card {
  background: #e7dccb;
  border-radius: 0.3rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.35);
  color: #191619;
  overflow: hidden;
  transform: rotate(-0.25deg);
}

.prologue-evidence-header {
  background: #29242a;
  color: rgba(255, 255, 255, 0.68);
}

.prologue-evidence-card h2,
.prologue-evidence-card > p,
.prologue-evidence-card .prologue-finding,
.prologue-evidence-card > .prologue-primary {
  margin-left: clamp(1.1rem, 5vw, 2.5rem);
  margin-right: clamp(1.1rem, 5vw, 2.5rem);
}

.prologue-evidence-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 5vw, 2.7rem);
  margin-bottom: 0.8rem;
  margin-top: 2rem;
}

.prologue-evidence-card > p {
  color: #4b4243;
  line-height: 1.7;
}

.prologue-finding {
  border: 1px solid rgba(25, 22, 25, 0.2);
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
  margin-top: 1.4rem;
  padding: 1rem;
}

.prologue-finding span {
  color: #7a352e;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.prologue-finding strong {
  font-size: 0.9rem;
  line-height: 1.55;
}

.prologue-evidence-card > .prologue-primary {
  margin-bottom: 2rem;
}

.prologue-offer {
  align-items: start;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  display: grid;
  gap: 2rem;
  margin-top: clamp(4rem, 9vw, 7rem);
  padding-top: clamp(3rem, 7vw, 5rem);
}

.prologue-offer-copy > p:not(.prologue-kicker),
.prologue-offer-copy li {
  color: var(--prologue-muted);
  line-height: 1.65;
}

.prologue-offer-copy ul {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.prologue-offer-copy li::before {
  color: var(--prologue-gold);
  content: "+";
  font-weight: 900;
  margin-right: 0.65rem;
}

.prologue-terms {
  font-size: 0.78rem;
  margin-top: 1.5rem;
}

.prologue-price-card {
  background: linear-gradient(150deg, rgba(221, 178, 111, 0.12), transparent 54%), #111014;
  border: 1px solid rgba(221, 178, 111, 0.28);
  border-radius: 0.85rem;
  display: flex;
  flex-direction: column;
  padding: clamp(1.3rem, 5vw, 2.2rem);
}

.prologue-price-card > p {
  color: var(--prologue-gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin: 0;
  text-transform: uppercase;
}

.prologue-price-card > strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  margin-top: 1.2rem;
}

.prologue-price-card > span,
.prologue-price-card > small {
  color: var(--prologue-muted);
}

.prologue-price-card > small {
  font-size: 0.72rem;
  line-height: 1.5;
  margin-top: 0.8rem;
}

.prologue-replay {
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  grid-column: 1 / -1;
  justify-self: start;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

@keyframes prologue-reveal {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 46rem) {
  .prologue-width {
    width: calc(100% - 4rem);
  }

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

  .prologue-offer {
    grid-template-columns: minmax(0, 1.4fr) minmax(17rem, 0.6fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .prologue-branch,
  .prologue-cliffhanger,
  .prologue-evidence-card {
    animation: none;
  }

  .prologue-primary:hover,
  .prologue-choice:hover {
    transform: none;
  }
}
