:root {
  --bg: #120f0c;
  --bg-soft: #1b1714;
  --paper: #f6f0e8;
  --paper-2: #f1e8dc;
  --ink: #1d1713;
  --muted: rgba(246,240,232,.72);
  --muted-dark: rgba(29,23,19,.58);
  --line: rgba(255,255,255,.1);
  --line-dark: rgba(29,23,19,.12);
  --accent: #c66b72;
  --accent-deep: #9f5158;
  --success: #7aa17b;
  --shadow: 0 24px 80px rgba(0,0,0,.18);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at top right, rgba(198,107,114,.15), transparent 30%),
    radial-gradient(circle at bottom left, rgba(255,255,255,.04), transparent 22%),
    var(--bg);
  font-family: var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
::selection { background: var(--accent); color: #fff; }

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

.preload {
  position: fixed; inset: 0; z-index: 10001;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(198,107,114,.18), transparent 25%),
    linear-gradient(160deg, #100d0b 0%, #191410 55%, #0d0b09 100%);
  transition: opacity .85s ease, visibility .85s ease;
}
.preload.hidden { opacity: 0; visibility: hidden; }
.preload::before,
.preload::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  inset: 12%;
  animation: pulseRing 3.2s ease-in-out infinite;
}
.preload::after { inset: 22%; animation-delay: .6s; }
@keyframes pulseRing {
  0%,100% { transform: scale(.98); opacity: .45; }
  50% { transform: scale(1.02); opacity: .9; }
}
.preload-wrap {
  position: relative; z-index: 2;
  width: min(92vw, 760px);
  text-align: center;
  padding: 28px;
}
.preload-kicker {
  margin: 0 0 14px;
  color: rgba(246,240,232,.65);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.preload-mark {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(84px, 22vw, 220px);
  line-height: .76;
  letter-spacing: -.06em;
}
.preload-mark span { color: var(--accent); }
.preload-word-box {
  min-height: 88px;
  display: grid; place-items: center;
  margin: 10px auto 18px;
}
.preload-word {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 6.2vw, 72px);
  letter-spacing: -.04em;
  opacity: 0;
  transform: translateY(18px) scale(.985);
  transition: opacity .55s ease, transform .55s ease;
}
.preload-word.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.preload-sub {
  width: min(560px, 100%);
  margin: 0 auto 28px;
  color: rgba(246,240,232,.68);
  font-size: clamp(14px, 2.8vw, 17px);
  line-height: 1.6;
}
.preload-bar {
  width: min(460px, 100%);
  height: 4px;
  margin: 0 auto 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}
.preload-bar span {
  display: block;
  width: 100%; height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(198,107,114,.5), rgba(198,107,114,1));
  transition: transform .55s ease;
}
.preload-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(246,240,232,.56);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.preload-skip {
  position: absolute;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--paper);
  border-radius: 999px;
  padding: 12px 16px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.preload-start-btn {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  box-shadow: 0 4px 20px rgba(198, 107, 114, 0.38);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.preload-start-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px rgba(198, 107, 114, 0.5);
}

.shell { position: relative; z-index: 2; }
.read-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  z-index: 120;
  background: transparent;
}
.read-progress span {
  display: block; width: 100%; height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), #efbac0);
}
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(18px + env(safe-area-inset-top)) 20px 18px;
  mix-blend-mode: difference;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--paper);
  text-decoration: none;
}
.brand strong {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.06em;
  line-height: 1;
}
.brand span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ghost-btn,
.solid-btn,
.nav-btn,
.bottom-action,
.unlock-btn,
.print-btn {
  border: 0;
  cursor: pointer;
  transition: transform .22s ease, opacity .22s ease, background .22s ease, color .22s ease;
}
.ghost-btn,
.solid-btn,
.print-btn,
.bottom-action,
.nav-btn,
.unlock-btn {
  border-radius: 999px;
}
.ghost-btn {
  padding: 11px 14px;
  background: rgba(255,255,255,.05);
  color: var(--paper);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
}
.solid-btn,
.print-btn {
  padding: 12px 16px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
}
.unlock-btn {
  padding: 12px 22px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #ffffff;
  font-weight: 600;
  border: 1px solid transparent;
  box-shadow: 0 6px 20px rgba(198, 107, 114, 0.32);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ghost-btn:hover,
.solid-btn:hover,
.unlock-btn:hover,
.print-btn:hover,
.nav-btn:hover,
.bottom-action:hover { transform: translateY(-2px); }

/* Header Music Toggle Button */
.music-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(198, 107, 114, 0.12);
  color: var(--accent-deep);
  border: 1px solid rgba(198, 107, 114, 0.28);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.music-toggle-btn:hover {
  background: rgba(198, 107, 114, 0.22);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(198, 107, 114, 0.25);
}

.music-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 12px;
}

.music-bars span {
  width: 2.5px;
  height: 100%;
  background: var(--accent-deep);
  border-radius: 2px;
  transform-origin: bottom;
  transform: scaleY(0.35);
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.music-toggle-btn.is-playing {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(198, 107, 114, 0.35);
}

.music-toggle-btn.is-playing .music-bars span {
  background: #ffffff;
  animation: eqBar 0.8s ease-in-out infinite alternate;
}

.music-toggle-btn.is-playing .music-bars span:nth-child(1) { animation-delay: 0s; }
.music-toggle-btn.is-playing .music-bars span:nth-child(2) { animation-delay: 0.25s; }
.music-toggle-btn.is-playing .music-bars span:nth-child(3) { animation-delay: 0.45s; }

@keyframes eqBar {
  0% { transform: scaleY(0.25); }
  100% { transform: scaleY(1); }
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(126px, calc(88px + env(safe-area-inset-top))) clamp(22px, 6vw, 88px) 72px;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 24%, rgba(198,107,114,.16), transparent 20%),
    radial-gradient(circle at 22% 70%, rgba(29,23,19,.035), transparent 26%),
    radial-gradient(circle at 78% 68%, rgba(198,107,114,.08), transparent 22%),
    linear-gradient(180deg, #fbf8f3 0%, #f4efe6 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,.62), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,.54), transparent 44%);
  pointer-events: none;
}
.hero::after {
  content: "5";
  position: absolute;
  left: 50%;
  bottom: -.12em;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: min(68vw, 760px);
  line-height: .75;
  letter-spacing: -.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(29,23,19,.09);
  opacity: .8;
}
.hero-copy {
  position: relative;
  z-index: 5;
  width: min(880px, 100%);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: clamp(10px, 2vw, 20px) clamp(4px, 2vw, 12px);
}

/* Awwwards Photo Collage Cluster */
.hero-collage {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.collage-item {
  position: absolute;
  pointer-events: auto;
  margin: 0;
  padding: 7px;
  background: #fffdfa;
  border: 1px solid rgba(29, 23, 19, 0.1);
  border-radius: 14px;
  box-shadow: 
    0 16px 40px rgba(29, 23, 19, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.45s ease;
  will-change: transform;
}

.collage-item img {
  display: block;
  width: 100%;
  height: 145px;
  border-radius: 9px;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.02);
  transition: filter 0.4s ease;
}

/* Tape Strip Effect */
.tape-strip {
  position: absolute;
  z-index: 3;
  width: 42px;
  height: 14px;
  background: rgba(246, 240, 232, 0.82);
  backdrop-filter: blur(4px);
  border: 1px dashed rgba(198, 107, 114, 0.35);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
  pointer-events: none;
}
.tape-strip.top-left { top: -6px; left: 12px; transform: rotate(-8deg); }
.tape-strip.top-right { top: -6px; right: 12px; transform: rotate(7deg); }
.tape-strip.top-center { top: -6px; left: 50%; transform: translateX(-50%) rotate(-2deg); }

/* Desktop Positioning */
.collage-item.item-1 {
  width: min(180px, 15vw);
  left: 3%;
  top: 18%;
  transform: rotate(-6deg);
  animation: floatSubtle1 6.5s ease-in-out infinite alternate;
}

.collage-item.item-2 {
  width: min(190px, 16vw);
  right: 3%;
  top: 16%;
  transform: rotate(5deg);
  animation: floatSubtle2 7s ease-in-out infinite alternate;
}

.collage-item.item-3 {
  width: min(170px, 14vw);
  left: 5%;
  bottom: 12%;
  transform: rotate(4deg);
  animation: floatSubtle3 6s ease-in-out infinite alternate;
}

.collage-item.item-4 {
  width: min(185px, 15vw);
  right: 4%;
  bottom: 14%;
  transform: rotate(-5deg);
  animation: floatSubtle4 7.5s ease-in-out infinite alternate;
}

.collage-item.item-5 {
  width: min(150px, 12vw);
  left: 50%;
  top: 4%;
  transform: translateX(-50%) rotate(2deg);
  opacity: 0.88;
  animation: floatSubtle5 8s ease-in-out infinite alternate;
}

/* Hover Physics */
.collage-item:hover {
  z-index: 30 !important;
  transform: translateY(-8px) scale(1.08) rotate(0deg) !important;
  box-shadow: 
    0 24px 60px rgba(198, 107, 114, 0.28),
    0 8px 24px rgba(0, 0, 0, 0.14);
  border-color: rgba(198, 107, 114, 0.45);
}

.collage-item:hover img {
  filter: saturate(1.05) contrast(1.04);
}

/* Floating Animation Keyframes */
@keyframes floatSubtle1 {
  0% { transform: translateY(0px) rotate(-6deg); }
  100% { transform: translateY(-7px) rotate(-4deg); }
}
@keyframes floatSubtle2 {
  0% { transform: translateY(0px) rotate(5deg); }
  100% { transform: translateY(-9px) rotate(7deg); }
}
@keyframes floatSubtle3 {
  0% { transform: translateY(0px) rotate(4deg); }
  100% { transform: translateY(-6px) rotate(2deg); }
}
@keyframes floatSubtle4 {
  0% { transform: translateY(0px) rotate(-5deg); }
  100% { transform: translateY(-8px) rotate(-3deg); }
}
@keyframes floatSubtle5 {
  0% { transform: translateX(-50%) translateY(0px) rotate(2deg); }
  100% { transform: translateX(-50%) translateY(-5px) rotate(-1deg); }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 24px;
  color: rgba(29,23,19,.52);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: currentColor;
}
.hero h1 {
  margin: 0;
  max-width: 10.5ch;
  font-family: var(--serif);
  font-size: clamp(70px, 11.5vw, 182px);
  line-height: .84;
  letter-spacing: -.07em;
  font-weight: 600;
}
.hero h1 em {
  display: block;
  white-space: nowrap;
  font-style: normal;
  color: var(--accent-deep);
  transform: none;
}
.hero-text {
  width: min(700px, 100%);
  margin: 28px auto 0;
  color: rgba(29,23,19,.72);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.76;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}
.hero-card {
  position: absolute;
  right: clamp(18px, 5vw, 60px);
  bottom: 58px;
  width: min(280px, 26vw);
  padding: 20px;
  border: 1px solid rgba(29,23,19,.08);
  border-radius: 22px;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 80px rgba(0,0,0,.08);
}
.hero-card .mini-label,
.timeline .mini-label,
.reading-room .mini-label,
.finale .mini-label {
  margin: 0 0 10px;
  color: rgba(29,23,19,.48);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hero-card p:last-child { margin: 0; color: rgba(29,23,19,.84); line-height: 1.7; }
.orbit {
  position: absolute;
  border: 1px solid rgba(29,23,19,.07);
  border-radius: 50%;
  pointer-events: none;
}
.orbit.one { width: 50vw; aspect-ratio: 1; left: 50%; top: 8%; transform: translateX(-50%); }
.orbit.two { width: 72vw; aspect-ratio: 1; left: 50%; top: 20%; transform: translateX(-50%); }

.timeline {
  padding: 28px clamp(18px, 6vw, 88px) 10px;
}
.timeline-panel {
  display: grid;
  gap: 24px;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
}
.timeline h2,
.reading-room h2,
.finale h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 88px);
  line-height: .92;
  letter-spacing: -.06em;
}
.timeline-copy {
  max-width: 720px;
  color: rgba(246,240,232,.72);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.75;
}
.timeline-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.moment {
  position: relative;
  padding: 16px 16px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
}
.moment strong {
  display: block;
  margin-bottom: 8px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 28px;
}
.moment p { margin: 0; color: rgba(246,240,232,.64); line-height: 1.65; font-size: 14px; }

.reading-room {
  padding: 42px clamp(18px, 6vw, 88px) 160px;
}
.reading-room-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.room-copy {
  width: min(660px, 100%);
  color: rgba(246,240,232,.72);
  line-height: 1.75;
}
.chapter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nav-btn {
  padding: 10px 14px;
  background: rgba(255,255,255,.04);
  color: rgba(246,240,232,.72);
  border: 1px solid rgba(255,255,255,.08);
}
.nav-btn.active {
  background: rgba(198,107,114,.18);
  border-color: rgba(198,107,114,.38);
  color: var(--paper);
}
.nav-btn.locked {
  opacity: .4;
}

.chapter-list {
  display: grid;
  gap: 24px;
}
.chapter-section {
  position: relative;
  scroll-margin-top: 110px;
}
.chapter-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}
.chapter-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.92%, rgba(255,255,255,.05) 50%, transparent 50.08%),
    radial-gradient(circle at 20% 8%, rgba(255,255,255,.08), transparent 24%);
  opacity: .45;
  pointer-events: none;
}
.chapter-section.locked .chapter-shell {
  filter: saturate(.85) brightness(.82);
}
.chapter-lock {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(11,9,8,.56);
  backdrop-filter: blur(10px);
}
.chapter-section.locked .chapter-lock { display: flex; }
.lock-card {
  width: min(460px, 100%);
  text-align: center;
  padding: 26px 22px;
  border-radius: 28px;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.12);
}
.lock-card strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 48px);
  line-height: .94;
}
.lock-card p {
  margin: 0;
  color: rgba(246,240,232,.72);
  line-height: 1.7;
}
.chapter-grid {
  display: grid;
  grid-template-columns: 1fr;
  min-height: auto;
}
.chapter-side {
  position: relative;
  padding: clamp(24px, 3.5vw, 38px) clamp(22px, 4vw, 44px);
  border-right: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.02) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.chapter-side .year {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.chapter-side h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 54px);
  line-height: .96;
  letter-spacing: -.05em;
  max-width: min(780px, 80%);
}
.chapter-side p {
  margin: 0;
  max-width: min(700px, 78%);
  color: rgba(246,240,232,.75);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.65;
}
.year-badge {
  position: absolute;
  top: 50%;
  right: clamp(20px, 4vw, 44px);
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: clamp(60px, 7.5vw, 104px);
  line-height: .8;
  letter-spacing: -.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.14);
  pointer-events: none;
  user-select: none;
}
.chapter-paper-wrap {
  padding: clamp(18px, 2vw, 26px);
  background: transparent;
}
.chapter-paper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 54px) clamp(20px, 5vw, 62px);
  border-radius: 30px;
  background:
    linear-gradient(rgba(246,240,232,.97), rgba(246,240,232,.97)),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.84' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='.18'/%3E%3C/svg%3E");
  color: var(--ink);
}
.paper-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-dark);
}
.paper-chapter {
  margin: 0 0 10px;
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.paper-top h4 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: .92;
  letter-spacing: -.06em;
}
.paper-date {
  color: rgba(29,23,19,.52);
  font-size: 12px;
  text-align: right;
  line-height: 1.55;
}
.letter-body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.92;
}
.letter-body p { margin: 0 0 1.28em; }
.editable[contenteditable="true"] {
  outline: 1px dashed rgba(198,107,114,.5);
  outline-offset: 8px;
  border-radius: 4px;
  background: rgba(198,107,114,.04);
}
.paper-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
}
.paper-footer small {
  color: rgba(29,23,19,.58);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.signature {
  font-family: var(--serif);
  font-size: 30px;
}
.chapter-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line-dark);
}
.chapter-end p {
  margin: 0;
  color: rgba(29,23,19,.56);
  font-size: 14px;
  line-height: 1.6;
}
.chapter-end .unlock-btn[disabled] {
  cursor: not-allowed;
  background: rgba(198, 107, 114, 0.12);
  color: var(--accent-deep);
  border: 1px solid rgba(198, 107, 114, 0.28);
  opacity: 0.85;
  box-shadow: none;
  transform: none;
}
.end-marker { width: 100%; height: 2px; }
.chapter-section.complete .unlock-btn {
  background: rgba(122, 161, 123, 0.16);
  color: #2b4c2c;
  border: 1px solid rgba(122, 161, 123, 0.32);
  box-shadow: none;
}

.finale {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 42px clamp(18px, 6vw, 88px) calc(140px + env(safe-area-inset-bottom));
  overflow: hidden;
  background: linear-gradient(180deg, #faf7f1 0%, #f4efe6 100%);
}
.epilogue-veil {
  position: absolute;
  left: 0;
  width: 100%;
  height: 52%;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(244,239,230,.96), rgba(250,247,241,.98)),
    radial-gradient(circle at 50% 50%, rgba(159,81,88,.08), transparent 34%);
  transition: transform 1.35s cubic-bezier(.19,.9,.22,1), opacity 1.1s ease;
  will-change: transform, opacity;
}
.epilogue-veil.top {
  top: 0;
  border-bottom: 1px solid rgba(29,23,19,.08);
}
.epilogue-veil.bottom {
  bottom: 0;
  border-top: 1px solid rgba(29,23,19,.08);
}
.epilogue-glow {
  position: absolute;
  inset: 12% 10%;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(159,81,88,.12), transparent 58%);
  filter: blur(34px);
  opacity: 0;
  transform: scale(.88);
  transition: opacity 1.1s ease .18s, transform 1.1s ease .18s;
}
.finale-card {
  position: relative;
  z-index: 3;
  width: min(1080px, 100%);
  padding: clamp(28px, 5vw, 52px);
  border-radius: 36px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(29,23,19,.08);
  box-shadow: 0 24px 80px rgba(30, 22, 18, 0.08);
  text-align: center;
  backdrop-filter: blur(10px);
}
.finale h2,
.finale p:last-child {
  opacity: 0;
}
.finale h2 {
  display: grid;
  gap: .08em;
  margin-top: 0;
  color: #7d2d35;
}
.finale h2 span {
  display: block;
  transform: translateY(135%);
  opacity: 0;
  filter: blur(10px);
}
.finale h2 span:first-child {
  transition: transform 1s cubic-bezier(.18,.9,.2,1) .24s, opacity .8s ease .24s, filter .9s ease .24s;
}
.finale h2 span:last-child {
  transition: transform 1s cubic-bezier(.18,.9,.2,1) .4s, opacity .8s ease .4s, filter .9s ease .4s;
}
.finale p:last-child {
  width: min(720px, 100%);
  margin: 18px auto 0;
  color: rgba(29,23,19,.74);
  line-height: 1.8;
  transform: translateY(28px);
  transition: transform .85s cubic-bezier(.2,.8,.2,1) .58s, opacity .85s ease .58s;
}
.highlight-epilogue {
  color: #7d2d35;
  font-weight: 800;
  text-shadow: 0 0 0 currentColor;
}
.finale.entered .epilogue-veil.top {
  transform: translateY(-108%);
  opacity: .1;
}
.finale.entered .epilogue-veil.bottom {
  transform: translateY(108%);
  opacity: .1;
}
.finale.entered .epilogue-glow {
  opacity: 1;
  transform: scale(1);
}
.finale.entered p:last-child {
  opacity: 1;
  transform: translateY(0);
}
.finale.entered h2 {
  opacity: 1;
}
.finale.entered h2 span {
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
}


body.memory-film-active .header,
body.preload-active .header {
  opacity: 0 !important;
  pointer-events: none !important;
}

.header {
  transition: opacity 0.35s ease;
}

.memory-film {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(50px, 6vh, 70px) 16px clamp(20px, 3vh, 30px);
  background: #090705;
  overflow: hidden;
}

.memory-film-header {
  position: absolute;
  top: max(16px, calc(12px + env(safe-area-inset-top)));
  left: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 520px;
  margin: 0 auto;
}

.memory-film-tag {
  color: rgba(246, 240, 232, 0.6);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.memory-skip-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}
.memory-skip-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.memory-stage {
  position: relative;
  z-index: 2;
  width: min(440px, 88vw);
  height: min(520px, 58vh);
  border-radius: clamp(16px, 2.5vw, 24px);
  overflow: hidden;
  isolation: isolate;
  background: #110d0a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 
    0 24px 80px rgba(0, 0, 0, 0.7),
    0 4px 18px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
}

.memory-slides {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.memory-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.2, 0.75, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 16px 60px;
  overflow: hidden;
}

.memory-slide.active {
  opacity: 1;
  transform: scale(1);
}

.memory-slide-bg {
  position: absolute;
  inset: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  object-fit: cover;
  filter: blur(40px) brightness(0.25) saturate(1.1);
  opacity: 0.8;
  transform: scale(1.1);
  pointer-events: none;
}

.memory-slide-img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
  filter: saturate(0.98) contrast(1.03) brightness(0.96);
  transition: transform 0.5s ease;
}

.memory-card-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(9, 7, 5, 0.94) 0%, rgba(9, 7, 5, 0.5) 75%, transparent 100%);
  backdrop-filter: blur(8px);
}

.memory-caption {
  font-family: var(--serif);
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 500;
  color: var(--paper);
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.memory-counter {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(246, 240, 232, 0.75);
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.memory-loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  bottom: auto;
  transform: none;
  border-radius: 0;
}
.memory-loader-line {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), #f4cfd3);
  transition: transform 0.3s linear;
}

/* Cinematic Curtain Transition (Abrir & Revelar) */
.memory-transition {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.memory-transition.visible {
  opacity: 1;
  visibility: visible;
}

.memory-curtain {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50.5%;
  background: 
    radial-gradient(circle at 50% 50%, rgba(198, 107, 114, 0.15), transparent 45%),
    linear-gradient(180deg, #090705 0%, #15100c 100%);
  transition: transform 1.6s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}

.memory-curtain.top {
  top: 0;
  transform: translateY(0);
  border-bottom: 1px solid rgba(198, 107, 114, 0.25);
}

.memory-curtain.bottom {
  bottom: 0;
  transform: translateY(0);
  border-top: 1px solid rgba(198, 107, 114, 0.25);
}

.memory-transition.active .memory-curtain.top {
  transform: translateY(-102%);
}

.memory-transition.active .memory-curtain.bottom {
  transform: translateY(102%);
}

.memory-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, #fff 0%, rgba(246, 240, 232, 0.8) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.memory-transition.active .memory-flash {
  animation: flashPulse 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes flashPulse {
  0% { opacity: 0.15; }
  30% { opacity: 0.08; }
  100% { opacity: 0; }
}

@media (max-width: 720px) {
  .memory-film {
    padding: calc(60px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom));
  }
  .memory-stage {
    width: min(380px, 92vw);
    height: min(480px, 58svh);
    border-radius: 18px;
  }
  .memory-slide {
    padding: 10px 10px 54px;
  }
  .memory-card-footer {
    padding: 12px 14px;
  }
  .memory-caption {
    font-size: 17px;
  }
}
.mobile-dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 130;
  display: none;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.mobile-dock-inner {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 8px;
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 22px;
  background: rgba(16,13,11,.82);
  border: 1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 55px rgba(0,0,0,.24);
}
.mobile-chip {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  color: rgba(246,240,232,.88);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.bottom-action {
  padding: 11px 14px;
  background: rgba(255,255,255,.06);
  color: var(--paper);
  border: 1px solid rgba(255,255,255,.08);
}
.bottom-action.primary {
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 200;
  transform: translate(-50%, 130%);
  opacity: 0;
  width: min(92vw, 460px);
  padding: 14px 16px;
  border-radius: 999px;
  text-align: center;
  background: rgba(16,13,11,.92);
  color: var(--paper);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .3s ease, opacity .3s ease;
}
.toast.visible { transform: translate(-50%, 0); opacity: 1; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .85s cubic-bezier(.2,.65,.2,1), transform .85s cubic-bezier(.2,.65,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1140px) {
  .hero-collage {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: 36px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
    padding: 12px 16px 28px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
  }
  .collage-item {
    position: relative;
    inset: auto !important;
    flex: 0 0 160px;
    width: 160px !important;
    transform: none !important;
    animation: none !important;
    scroll-snap-align: center;
  }
  .collage-item img {
    height: 120px;
  }
  .collage-item.item-5 {
    display: none;
  }
}

@media (max-width: 960px) {
  .chapter-grid { grid-template-columns: 1fr; }
  .chapter-side {
    padding: 22px 20px 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .year-badge {
    top: 14px; right: 18px; left: auto; bottom: auto;
    font-size: 64px;
  }
  .hero-card { display: none; }
  .timeline-track { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 720px) {
  .preload-wrap { padding: 22px 14px; }
  .preload-word-box { min-height: 72px; }
  .header {
    padding: calc(14px + env(safe-area-inset-top)) 14px 14px;
  }
  .brand span,
  .header-actions .ghost-btn { display: none; }
  .header-actions .solid-btn { padding: 10px 13px; font-size: 12px; }
  .hero {
    min-height: 100svh;
    padding: max(104px, calc(70px + env(safe-area-inset-top))) 18px 92px;
    place-items: center;
  }
  .hero h1 {
    max-width: none;
    font-size: clamp(60px, 18vw, 106px);
    line-height: .82;
  }
  .hero h1 em,
  .hero-text,
  .hero-actions { transform: none; margin-left: 0; }
  .hero-text {
    margin: 24px auto 0;
    font-size: 16px;
    line-height: 1.75;
  }
  .hero-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
  }
  .hero-actions .solid-btn,
  .hero-actions .ghost-btn,
  .print-btn {
    width: auto;
    min-width: 230px;
    justify-content: center;
    text-align: center;
  }
  .orbit.one { width: 74vw; left: 50%; right: auto; top: 10%; transform: translateX(-50%); }
  .orbit.two { width: 105vw; left: 50%; right: auto; top: 16%; transform: translateX(-50%); }
  .timeline { padding: 8px 14px 0; }
  .timeline-panel { padding: 20px; gap: 18px; border-radius: 24px; }
  .timeline-track { grid-template-columns: 1fr; }
  .reading-room {
    padding: 26px 14px 120px;
  }
  .reading-room-head {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
  }
  .room-copy { font-size: 15px; }
  .chapter-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-btn { padding: 12px 10px; font-size: 12px; }
  .chapter-list { gap: 18px; }
  .chapter-shell { border-radius: 26px; }
  .chapter-grid { min-height: auto; }
  .chapter-side {
    padding: 20px 18px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .chapter-side h3 { font-size: clamp(28px, 8vw, 40px); margin-bottom: 8px; max-width: 82%; }
  .chapter-side p { font-size: 14px; margin-bottom: 0; max-width: 82%; }
  .year-badge { font-size: 48px; opacity: .7; right: 14px; }
  .chapter-paper-wrap { padding: 10px; }
  .chapter-paper {
    border-radius: 22px;
    padding: 22px 16px 18px;
  }
  .paper-top {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 14px;
  }
  .paper-top h4 {
    font-size: clamp(32px, 11vw, 48px);
  }
  .paper-date { text-align: left; font-size: 11px; }
  .letter-body {
    font-size: 17px;
    line-height: 1.86;
  }
  .paper-footer {
    display: grid;
    gap: 8px;
    align-items: start;
  }
  .chapter-end {
    display: grid;
    gap: 10px;
  }
  .unlock-btn,
  .chapter-end .unlock-btn,
  .print-btn { width: 100%; }
  .finale {
    min-height: 92svh;
    padding: 24px 14px calc(126px + env(safe-area-inset-bottom));
  }
  .finale-card {
    padding: 24px 18px;
    border-radius: 26px;
  }
  .finale h2 {
    gap: .14em;
  }
  .finale p:last-child {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.72;
  }
  
.mobile-dock { display: block; }
}

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

@page { size: A4 portrait; margin: 0; }
@media print {
  body, html { background: #fff !important; }
  body::before,
  .preload,
  .header,
  .read-progress,
  .memory-film,
  .timeline,
  .chapter-nav,
  .chapter-lock,
  .chapter-end,
  .finale,
  .mobile-dock,
  .toast { display: none !important; }
  .reading-room { padding: 0 !important; }
  .chapter-list { gap: 0 !important; }
  .chapter-section,
  .chapter-shell,
  .chapter-grid,
  .chapter-paper-wrap {
    display: block !important;
    page-break-after: always;
    break-after: page;
    background: #fff !important;
    box-shadow: none !important;
    border: 0 !important;
  }
  .chapter-section:last-child { page-break-after: auto; break-after: auto; }
  .chapter-side { display: none !important; }
  .chapter-paper {
    width: 210mm;
    min-height: 297mm;
    padding: 20mm 21mm 17mm !important;
    border-radius: 0 !important;
    background: #fffdf8 !important;
    box-shadow: none !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .paper-top { padding-bottom: 7mm !important; margin-bottom: 9mm !important; }
  .paper-top h4 { font-size: 36pt !important; }
  .letter-body { font-size: 11.1pt !important; line-height: 1.62 !important; }
  .letter-body p { margin-bottom: .95em !important; }
  .paper-footer { padding-top: 5mm; }
  .editable[contenteditable="true"] { outline: 0 !important; background: transparent !important; }
}
