:root {
  color-scheme: dark;
  --ink: #f4efe8;
  --dim: rgba(244, 239, 232, 0.68);
  --black: #040506;
  --amber: #c9a861;
  --blue: #84bfff;
  --line: rgba(244, 239, 232, 0.18);
  --walk-progress: 0;
  --scene-brightness: 0.32;
  --scene-saturation: 0.42;
  --scene-veil: 0.72;
  --rain-opacity: 0.12;
  --ending-opacity: 0;
  --stillness: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--black);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 50%, rgba(0, 0, 0, 0.06) 50%),
    radial-gradient(circle at 50% 52%, transparent 28%, rgba(0, 0, 0, 0.62) 100%);
  background-size: 100% 4px, 100% 100%;
  mix-blend-mode: overlay;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 4vw, 54px);
  background: linear-gradient(to bottom, rgba(4, 5, 6, 0.78), transparent);
}

.memoir-walk .site-header {
  opacity: 0;
  pointer-events: none;
}

.brand,
.quiet-link,
.eyebrow,
.walk-cue,
.buy-corner,
.number-card span {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.quiet-link {
  color: rgba(244, 239, 232, 0.66);
}

.chapter-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  opacity: 0;
  transform: translateY(-8px);
  animation: nav-fade 1200ms ease 420ms forwards;
}

.buy-nav {
  color: rgba(132, 191, 255, 0.86);
  text-shadow: 0 0 18px rgba(132, 191, 255, 0.18);
}

.storm {
  position: fixed;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  overflow: hidden;
}

.cloud-layer {
  position: absolute;
  left: -80vw;
  width: 95vw;
  height: 38vh;
  filter: blur(28px);
  opacity: 0.48;
  background:
    radial-gradient(ellipse at 20% 45%, rgba(52, 61, 65, 0.68), transparent 54%),
    radial-gradient(ellipse at 50% 50%, rgba(17, 25, 31, 0.78), transparent 60%),
    radial-gradient(ellipse at 82% 48%, rgba(65, 69, 64, 0.42), transparent 52%);
}

.cloud-near {
  top: -9vh;
  animation: drift-near 44s linear infinite;
}

.cloud-far {
  top: 3vh;
  opacity: 0.28;
  transform: scale(1.25);
  animation: drift-far 72s linear infinite;
}

.rain {
  position: absolute;
  inset: -20%;
  opacity: var(--rain-opacity);
  transform: rotate(4deg);
  background-image: linear-gradient(112deg, rgba(132, 191, 255, 0.16) 0 1px, transparent 1px 22px);
  background-size: 86px 86px;
  animation: rain 0.9s linear infinite;
}

.lightning {
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(circle at 49% 18%, rgba(132, 191, 255, 0.42), transparent 18%),
    radial-gradient(circle at 77% 55%, rgba(132, 191, 255, 0.34), transparent 20%),
    radial-gradient(circle at 28% 44%, rgba(132, 191, 255, 0.2), transparent 17%);
  mix-blend-mode: screen;
  animation: lightning 9s steps(1, end) infinite;
}

.storm.is-still .lightning,
.house-stage.is-still .blue-reveal {
  animation: none;
  opacity: 0 !important;
}

.lightning-second {
  background:
    radial-gradient(circle at 58% 32%, rgba(132, 191, 255, 0.26), transparent 22%),
    radial-gradient(circle at 18% 72%, rgba(132, 191, 255, 0.18), transparent 20%);
  animation: lightning-second 13s steps(1, end) infinite;
  animation-delay: -4s;
}

.walk {
  position: relative;
  min-height: 830vh;
  counter-reset: walk-scene;
}

.house-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  margin-bottom: -100vh;
  overflow: hidden;
  background: #050607;
}

.scene-layer,
.vignette,
.blue-reveal,
.ending-black,
.detail-light {
  position: absolute;
  inset: 0;
}

.scene-layer {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  filter: saturate(var(--scene-saturation)) contrast(1.16) brightness(var(--scene-brightness));
  transition: opacity 2070ms cubic-bezier(0.19, 1, 0.22, 1), filter 2070ms cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform, filter, opacity;
}

.scene-layer.is-active {
  opacity: 1;
}

.scene-exterior {
  background-image:
    radial-gradient(circle at 35% 40%, rgba(255, 205, 130, 0.12), transparent 12%),
    linear-gradient(90deg, rgba(4, 5, 6, 0.78), rgba(4, 5, 6, 0.38) 54%, rgba(4, 5, 6, 0.66)),
    url("assets/scene-01-exterior.jpg");
  background-position: 54% center;
}

.scene-entry {
  background-image: url("assets/scene-02-entry.jpg");
  background-position: 48% center;
}

.scene-shock {
  background-image: url("assets/scene-03-room.jpg");
  background-position: center;
}

.scene-room {
  background-image: url("assets/scene-04-room.jpg");
  background-position: 44% center;
}

.scene-houses {
  background-image: url("assets/scene-07-kitchen.jpg");
  background-position: center;
}

.scene-lender {
  background-image: url("assets/scene-07-kitchen.jpg");
  background-position: center;
}

.scene-kitchen {
  background-image: url("assets/scene-07-kitchen.jpg");
  background-position: center;
  filter: saturate(calc(var(--scene-saturation) + 0.08)) contrast(1.1) brightness(calc(var(--scene-brightness) + 0.12));
}

.scene-ipod {
  background-image:
    radial-gradient(circle at 63% 46%, rgba(255, 252, 235, 0.42), transparent 6%),
    radial-gradient(circle at 62% 54%, rgba(132, 191, 255, 0.28), transparent 14%),
    radial-gradient(ellipse at 58% 62%, rgba(244, 239, 232, 0.24), transparent 18%),
    url("assets/scene-07-kitchen.jpg");
  background-position: center;
  filter: saturate(calc(var(--scene-saturation) + 0.1)) contrast(1.08) brightness(calc(var(--scene-brightness) + 0.2));
}

.detail-light {
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 260ms ease;
}

.detail-door {
  background:
    radial-gradient(circle at 49% 18%, rgba(132, 191, 255, 0.42), transparent 14%),
    radial-gradient(ellipse at 46% 42%, rgba(132, 191, 255, 0.12), transparent 22%);
}

.detail-counter {
  background:
    radial-gradient(circle at 78% 55%, rgba(132, 191, 255, 0.34), transparent 18%),
    radial-gradient(circle at 62% 64%, rgba(132, 191, 255, 0.14), transparent 16%);
}

.detail-boxes {
  background:
    radial-gradient(circle at 34% 64%, rgba(132, 191, 255, 0.28), transparent 20%),
    radial-gradient(circle at 45% 36%, rgba(132, 191, 255, 0.16), transparent 17%);
}

.detail-fridge {
  background:
    radial-gradient(circle at 22% 30%, rgba(132, 191, 255, 0.22), transparent 16%),
    radial-gradient(circle at 54% 56%, rgba(132, 191, 255, 0.18), transparent 18%);
}

.blue-reveal {
  opacity: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(132, 191, 255, 0.22), transparent 24%),
    radial-gradient(circle at 28% 62%, rgba(132, 191, 255, 0.14), transparent 18%),
    radial-gradient(circle at 78% 56%, rgba(132, 191, 255, 0.18), transparent 23%);
  mix-blend-mode: color-dodge;
  animation: detail-flash 9s steps(1, end) infinite;
}

.ending-black {
  z-index: 8;
  opacity: var(--ending-opacity);
  background: #000;
  pointer-events: none;
  transition: opacity 900ms ease;
}

.vignette {
  background:
    radial-gradient(circle at 54% 42%, rgba(244, 239, 232, calc(0.03 + (var(--walk-progress) * 0.08))), transparent 30%),
    linear-gradient(90deg, rgba(4, 5, 6, var(--scene-veil)), rgba(4, 5, 6, 0.1) 48%, rgba(4, 5, 6, 0.42)),
    linear-gradient(to top, #040506 0%, rgba(4, 5, 6, 0.08) 44%, rgba(4, 5, 6, 0.56) 100%);
}

.walk-step {
  position: relative;
  z-index: 20;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 14vh clamp(18px, 7vw, 104px);
  counter-increment: walk-scene;
}

.walk-step::before {
  content: counter(walk-scene);
  position: absolute;
  top: clamp(74px, 10vh, 112px);
  left: clamp(18px, 3.4vw, 42px);
  z-index: 22;
  color: rgba(201, 168, 97, 0.88);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.7vw, 42px);
  line-height: 1;
  text-shadow: 0 0 22px rgba(0, 0, 0, 0.86);
  pointer-events: none;
}

.hero-step {
  align-items: end;
  padding-bottom: 13vh;
}

.memoir-walk .walk-step::before {
  display: none;
}

.step-copy {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--amber);
}

h1,
h2,
p,
blockquote {
  margin-top: 0;
}

h1 {
  max-width: 9ch;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(62px, 13vw, 176px);
  line-height: 0.82;
}

.tagline {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(244, 239, 232, 0.72);
  text-transform: uppercase;
  font-size: clamp(13px, 1.7vw, 18px);
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.5;
}

.memoir-line {
  margin: 18px 0 13px;
  color: rgba(244, 239, 232, 0.84);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 3vw, 38px);
  line-height: 1;
}

.author-signature {
  margin: 22px 0 0;
  color: rgba(244, 239, 232, 0.7);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2.1vw, 30px);
  line-height: 1.15;
}

.scene-truth {
  margin-top: clamp(42px, 8vh, 82px);
  color: rgba(244, 239, 232, 0.66);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3.4vw, 52px);
  line-height: 1.05;
}

.scene-truth p {
  margin-bottom: 10px;
}

.memoir-walk .hero-step .reveal.visible {
  transition-delay: 2200ms;
}

.memoir-walk .hero-step .walk-cue {
  animation-delay: 2700ms;
}

.walk-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 5vh, 44px);
  z-index: 24;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(244, 239, 232, 0.68);
  text-align: center;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.82);
  transform: translateX(-50%);
  font-size: clamp(13px, 1.55vw, 18px);
  letter-spacing: 0.2em;
  white-space: nowrap;
  opacity: 0;
  animation: cue-pulse 5.6s ease-in-out 900ms infinite;
}

.walk-cue::after {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, rgba(244, 239, 232, 0.72), transparent);
}

.door-prompt {
  color: rgba(244, 239, 232, 0.84);
}

.narrow-step .step-copy {
  margin-left: auto;
  width: min(430px, 100%);
}

.whisper,
.fragment {
  margin-bottom: 16px;
  color: rgba(244, 239, 232, 0.78);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 76px);
  line-height: 0.98;
}

.fragment {
  font-size: clamp(34px, 4.6vw, 68px);
}

.lender-number span {
  max-width: 9ch;
  color: rgba(244, 239, 232, 0.82);
  font-size: clamp(14px, 1.8vw, 21px);
  line-height: 1.35;
}

.number-step {
  justify-items: start;
}

.number-step.right {
  justify-items: end;
}

.number-step.center {
  justify-items: center;
}

.number-card {
  width: min(520px, 100%);
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.number-card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(96px, 16vw, 230px);
  line-height: 0.78;
  color: rgba(244, 239, 232, 0.94);
  text-shadow: 0 0 34px rgba(132, 191, 255, 0.16);
}

.number-card span {
  display: block;
  margin-top: 22px;
  color: var(--amber);
}

.decision-line {
  margin: 28px 0 0;
  color: rgba(244, 239, 232, 0.76);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3.2vw, 46px);
  line-height: 1.08;
}

.silent-step {
  min-height: 118vh;
}

.artifact-card {
  position: relative;
}

.artifact-card::before {
  content: "";
  position: absolute;
  right: 14px;
  top: -56px;
  width: 72px;
  height: 118px;
  border: 1px solid rgba(244, 239, 232, 0.22);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 74%, rgba(255, 252, 235, 0.9) 0 11px, transparent 12px),
    linear-gradient(to bottom, rgba(255, 252, 235, 0.92) 0 28px, rgba(132, 191, 255, 0.24) 29px 54px, rgba(4, 5, 6, 0.82) 55px);
  box-shadow:
    0 0 18px rgba(255, 252, 235, 0.46),
    0 0 58px rgba(132, 191, 255, 0.42),
    inset 0 0 16px rgba(255, 255, 255, 0.14),
    inset 0 0 26px rgba(0, 0, 0, 0.55);
  transform: rotate(-5deg);
}

.artifact-card::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -78px;
  width: 128px;
  height: 170px;
  pointer-events: none;
  background: radial-gradient(ellipse at 56% 46%, rgba(255, 252, 235, 0.28), rgba(132, 191, 255, 0.12) 32%, transparent 68%);
  mix-blend-mode: screen;
}

.ipod-cta {
  display: grid;
  gap: 12px;
  justify-items: start;
  margin-top: 32px;
}

.chapter-link {
  color: rgba(244, 239, 232, 0.68);
  font-size: clamp(14px, 1.8vw, 18px);
  line-height: 1.35;
  text-decoration: none;
}

.quote-step {
  align-items: center;
}

blockquote {
  width: min(960px, 100%);
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(48px, 8vw, 118px);
  line-height: 0.94;
}

.buy-corner {
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  bottom: clamp(22px, 5vh, 40px);
  z-index: 25;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  color: rgba(244, 239, 232, 0.72);
  border: 1px solid rgba(132, 191, 255, 0.28);
  border-radius: 4px;
  background: rgba(4, 5, 6, 0.42);
  box-shadow: 0 0 18px rgba(132, 191, 255, 0.12);
  backdrop-filter: blur(8px);
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease, color 250ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(244, 239, 232, 0.22);
  border-radius: 4px;
  background: var(--ink);
  color: var(--black);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease, background 250ms ease, color 250ms ease;
}

.button.primary-door {
  position: relative;
  overflow: hidden;
  background: rgba(4, 5, 6, 0.58);
  color: var(--ink);
  border-color: rgba(132, 191, 255, 0.36);
  box-shadow: 0 0 28px rgba(132, 191, 255, 0.18), inset 0 0 24px rgba(132, 191, 255, 0.08);
}

.button.primary-door::before {
  content: "";
  position: absolute;
  inset: -120% -24%;
  opacity: 0;
  background: radial-gradient(ellipse at 50% 52%, rgba(132, 191, 255, 0.38), transparent 32%);
  transform: scaleX(0.28);
  transition: opacity 300ms ease, transform 480ms cubic-bezier(0.19, 1, 0.22, 1);
}

.button.primary-door:hover::before,
.button.primary-door:focus-visible::before {
  opacity: 1;
  transform: scaleX(1);
}

.ghost-button {
  background: rgba(4, 5, 6, 0.38);
  color: var(--ink);
  border-color: rgba(244, 239, 232, 0.18);
}

.button:hover,
.button:focus-visible,
.buy-corner:hover,
.buy-corner:focus-visible {
  transform: scale(1.03);
  color: var(--ink);
  border-color: rgba(132, 191, 255, 0.48);
  box-shadow: 0 0 28px rgba(132, 191, 255, 0.22);
  outline: none;
}

.button:not(.ghost-button):hover,
.button:not(.ghost-button):focus-visible {
  color: var(--black);
}

.button.primary-door:hover,
.button.primary-door:focus-visible {
  color: var(--ink);
  border-color: rgba(132, 191, 255, 0.74);
  box-shadow: 0 0 44px rgba(132, 191, 255, 0.34), inset 0 0 34px rgba(132, 191, 255, 0.14);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.book-section {
  position: relative;
  min-height: 190vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #080909;
}

.memoir-walk .book-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0 46%, rgba(0, 0, 0, 0.18) 58%, #000 86%, #000 100%);
}

.book-bg,
.chapter-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 5, 6, 0.72), rgba(4, 5, 6, 0.54)),
    url("assets/scene-07-kitchen.jpg") center / cover;
  filter: saturate(0.7) brightness(0.5);
  transform: scale(1.04);
}

.memoir-walk .book-bg {
  background:
    radial-gradient(circle at 50% 38%, rgba(132, 191, 255, 0.12), transparent 28%),
    linear-gradient(to bottom, rgba(4, 5, 6, 0.46), rgba(4, 5, 6, 0.64)),
    url("assets/scene-01-exterior.jpg") center / cover;
  filter: saturate(0.82) brightness(0.48);
}

.chapter-hero .chapter-bg,
.excerpt-section .chapter-bg {
  background:
    linear-gradient(90deg, rgba(4, 5, 6, 0.72), rgba(4, 5, 6, 0.38)),
    url("assets/scene-07-kitchen.jpg") center / cover;
}

.archive-callout .chapter-bg {
  background:
    linear-gradient(90deg, rgba(4, 5, 6, 0.62), rgba(4, 5, 6, 0.34)),
    url("assets/scene-01-exterior.jpg") center / cover;
}

.book-layout {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 640px);
  gap: clamp(34px, 8vw, 96px);
  align-items: center;
  padding: 40vh 0 72px;
}

.memoir-walk .book-layout {
  grid-template-columns: 1fr;
  place-items: center;
  text-align: center;
  padding: 36vh 0 78vh;
}

.memoir-walk .cover-frame {
  display: none;
}

.memoir-walk .book-copy p:not(.eyebrow) {
  display: block;
  max-width: 540px;
  margin: 0 auto 22px;
  color: rgba(244, 239, 232, 0.66);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 40px);
  line-height: 1.12;
}

.final-signature {
  margin-top: clamp(46px, 9vh, 92px);
  color: rgba(244, 239, 232, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.4vw, 34px);
  line-height: 1.15;
  opacity: 0;
  animation: final-signature 5200ms ease 2600ms forwards;
}

.memoir-walk .book-copy .final-signature,
.chapter-copy .final-signature {
  max-width: none;
  margin: clamp(46px, 9vh, 92px) 0 0;
  color: rgba(244, 239, 232, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.4vw, 34px);
  line-height: 1.15;
}

.memoir-walk .book-copy {
  display: grid;
  justify-items: center;
}

.cover-frame {
  width: min(320px, 78vw);
  border: 1px solid rgba(244, 239, 232, 0.22);
  box-shadow: 0 32px 86px rgba(0, 0, 0, 0.64);
}

.cover-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.book-copy h2 {
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(50px, 7vw, 96px);
  line-height: 0.92;
}

.book-copy p:not(.eyebrow) {
  max-width: 600px;
  color: var(--dim);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.chapter-page {
  --scene-brightness: 0.48;
  --scene-saturation: 0.7;
}

.chapter-hero,
.excerpt-section,
.archive-callout {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #080909;
}

.archive-callout .chapter-layout {
  display: grid;
  place-items: center;
  text-align: center;
}

.archive-callout .chapter-copy {
  display: grid;
  justify-items: center;
}

.archive-callout .chapter-copy p {
  margin-top: -8px;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.16;
}

.large-archive-button {
  min-height: 58px;
  margin-top: 10px;
  padding: 0 34px;
  box-shadow: 0 0 30px rgba(132, 191, 255, 0.18);
}

.chapter-layout {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 120px 0;
}

.chapter-copy {
  width: min(820px, 100%);
}

.chapter-copy h1,
.chapter-copy h2 {
  max-width: 11ch;
  margin-bottom: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.9;
}

.chapter-intro,
.chapter-copy p:not(.eyebrow),
.excerpt-card p {
  max-width: 660px;
  color: var(--dim);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.excerpt-card {
  width: min(760px, 100%);
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid rgba(244, 239, 232, 0.14);
  border-radius: 6px;
  background: rgba(4, 5, 6, 0.56);
  box-shadow: 0 0 56px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(5px);
  transition: opacity 1610ms cubic-bezier(0.19, 1, 0.22, 1), transform 1610ms cubic-bezier(0.19, 1, 0.22, 1), filter 1610ms cubic-bezier(0.19, 1, 0.22, 1);
}

.door-transition {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 55%, rgba(132, 191, 255, 0.22), transparent 14%),
    #000;
  transition: opacity 600ms ease;
}

body.opening-door .door-transition {
  opacity: 1;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@keyframes drift-near {
  from {
    transform: translateX(-10vw);
  }
  to {
    transform: translateX(185vw);
  }
}

@keyframes drift-far {
  from {
    transform: translateX(40vw) scale(1.25);
  }
  to {
    transform: translateX(190vw) scale(1.25);
  }
}

@keyframes rain {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -86px 86px;
  }
}

@keyframes lightning {
  0%, 61%, 63%, 66%, 72%, 74%, 100% {
    opacity: 0;
  }
  62% {
    opacity: 0.42;
  }
  65% {
    opacity: 0.16;
  }
  73% {
    opacity: 0.28;
  }
}

@keyframes lightning-second {
  0%, 46%, 48%, 52%, 100% {
    opacity: 0;
  }
  47% {
    opacity: 0.24;
  }
  51% {
    opacity: 0.12;
  }
}

@keyframes detail-flash {
  0%, 61%, 63%, 66%, 72%, 74%, 100% {
    opacity: 0;
  }
  62% {
    opacity: 0.66;
  }
  65% {
    opacity: 0.24;
  }
  73% {
    opacity: 0.34;
  }
}

@keyframes cue-pulse {
  0%, 100% {
    opacity: 0.42;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 0.95;
    transform: translateX(-50%) translateY(7px);
  }
}

@keyframes nav-fade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes final-signature {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  45%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .quiet-link {
    font-size: 10px;
  }

  .chapter-nav {
    gap: 12px;
  }

  .walk-step {
    align-content: center;
    padding-left: 18px;
    padding-right: 18px;
    padding-bottom: 18vh;
  }

  .scene-layer {
    background-position: 52% center;
  }

  .scene-exterior {
    background-position: 52% center;
  }

  .vignette {
    background:
      radial-gradient(circle at 52% 42%, rgba(244, 239, 232, calc(0.04 + (var(--walk-progress) * 0.08))), transparent 30%),
      linear-gradient(to top, #040506 0%, rgba(4, 5, 6, 0.12) 58%, rgba(4, 5, 6, 0.58) 100%),
      linear-gradient(90deg, rgba(4, 5, 6, 0.62), rgba(4, 5, 6, 0.12));
  }

  .narrow-step .step-copy {
    margin-left: 0;
  }

  .number-step,
  .number-step.right,
  .number-step.center {
    justify-items: start;
  }

  .walk-cue {
    width: max-content;
    max-width: calc(100% - 36px);
    bottom: 20px;
    font-size: 12px;
    white-space: normal;
  }

  .walk-cue::after {
    height: 24px;
  }

  .buy-corner {
    position: static;
    justify-self: start;
    align-self: end;
    margin-top: 28px;
    margin-bottom: 86px;
    font-size: 10px;
  }

  .silent-step {
    min-height: 112vh;
  }

  .book-layout {
    grid-template-columns: 1fr;
    padding-top: 42vh;
  }
}

@media (max-width: 520px) {
  .brand {
    max-width: 190px;
    font-size: 10px;
  }

  h1 {
    font-size: clamp(58px, 20vw, 88px);
  }

  .memoir-line {
    font-size: clamp(19px, 6.4vw, 28px);
  }

  .author-signature {
    font-size: clamp(17px, 5.3vw, 24px);
  }

  .scene-truth {
    margin-top: 34px;
    font-size: clamp(24px, 8vw, 38px);
  }

  .whisper,
  .fragment {
    font-size: clamp(38px, 13vw, 58px);
  }

  .number-card strong {
    font-size: clamp(112px, 34vw, 150px);
  }

  .book-copy h2,
  .chapter-copy h1,
  .chapter-copy h2 {
    font-size: clamp(54px, 15vw, 76px);
  }

  .button-row,
  .ipod-cta {
    align-items: stretch;
  }

  .button,
  .ghost-button {
    width: 100%;
  }

  .chapter-nav .quiet-link {
    display: none;
  }

  .chapter-nav .buy-nav {
    display: inline-flex;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .final-signature {
    opacity: 1;
    transform: none;
  }
}
