:root {
  color-scheme: dark;
  --night: #061821;
  --deep: #082b35;
  --blue: #15536a;
  --teal: #2f7c78;
  --mint: #94c9b7;
  --sage: #b9c9ae;
  --cream: #f1efe2;
  --mist: #c8dbd6;
  --line: rgba(209, 231, 223, 0.17);
  --panel: rgba(9, 39, 48, 0.72);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 30px 80px rgba(0, 8, 11, 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 0%, rgba(29, 94, 102, 0.24), transparent 35rem),
    linear-gradient(180deg, #04141c 0%, var(--night) 35%, #041218 100%);
  color: var(--cream);
  font-family: var(--sans);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 11vw 100%;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }

body.is-locked { overflow: hidden; }
body.is-locked > .topbar,
body.is-locked > main { visibility: hidden; }

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 20% 15%, rgba(47,124,120,.32), transparent 35rem),
    radial-gradient(circle at 85% 80%, rgba(21,83,106,.35), transparent 32rem),
    #04141c;
  transition: opacity .7s ease, transform .7s ease;
}
.access-gate[hidden] { display: none; }
.access-gate::before { content: ""; position: absolute; inset: 0; opacity: .16; background: linear-gradient(90deg, transparent 49.8%, rgba(148,201,183,.18) 50%, transparent 50.2%); background-size: 16vw 100%; pointer-events: none; }
.access-gate.is-unlocked { opacity: 0; transform: scale(1.025); pointer-events: none; }
.access-card { position: relative; width: min(100%, 560px); padding: clamp(2rem, 6vw, 4.5rem); border: 1px solid rgba(148,201,183,.23); background: rgba(5,26,34,.76); box-shadow: var(--shadow); text-align: center; backdrop-filter: blur(18px); }
.access-card::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(241,239,226,.06); pointer-events: none; }
.access-monogram { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 2rem; border: 1px solid rgba(148,201,183,.55); border-radius: 50%; color: var(--mint); font-family: var(--serif); }
.access-card h1 { max-width: 440px; margin: 0 auto; font-family: var(--serif); font-size: clamp(2.7rem, 7vw, 4.8rem); font-weight: 400; line-height: .98; letter-spacing: -.04em; }
.access-copy { margin: 1.4rem auto 2.3rem; color: rgba(200,219,214,.62); font-family: var(--serif); font-size: 1.08rem; }
.access-card form { text-align: left; }
.access-card label { display: block; margin-bottom: .55rem; color: var(--mint); font-size: .63rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.access-input-row { display: grid; grid-template-columns: 1fr auto; border: 1px solid rgba(148,201,183,.34); background: rgba(1,12,17,.46); transition: border-color .2s ease, box-shadow .2s ease; }
.access-input-row:focus-within { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(148,201,183,.08); }
.access-input-row input { min-width: 0; height: 58px; padding: 0 1rem; border: 0; outline: 0; background: transparent; color: var(--cream); font-size: 1.35rem; letter-spacing: .34em; }
.access-input-row button { margin: 6px; padding: 0 1.15rem; border: 0; background: var(--mint); color: var(--night); cursor: pointer; font-size: .67rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.access-input-row button span { margin-left: .45rem; }
.access-message { min-height: 1.4em; margin: .65rem 0 0; color: rgba(200,219,214,.48); font-size: .67rem; }
.access-card form.has-error .access-input-row { border-color: #d7847d; animation: gateshake .35s ease; }
.access-card form.has-error .access-message { color: #efaaa3; }
.access-card form.is-approved .access-input-row { border-color: var(--mint); }
.access-card form.is-approved .access-message { color: var(--mint); }

.grain {
  position: fixed;
  inset: -50%;
  z-index: 20;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%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' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}

.aurora {
  position: fixed;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .12;
  pointer-events: none;
  z-index: -1;
}
.aurora-one { top: 12%; right: -20rem; background: #4ab5a4; }
.aurora-two { top: 55%; left: -25rem; background: #1c71a0; }

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(1.25rem, 4vw, 4.5rem);
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease;
}
.topbar.is-scrolled {
  background: rgba(4, 20, 28, .88);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; width: fit-content; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(148, 201, 183, .6); border-radius: 50%; color: var(--mint); font-family: var(--serif); letter-spacing: 0; }
.topbar nav { display: flex; gap: 2.25rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.topbar nav a { transition: color .2s ease; }
.topbar nav a:hover { color: var(--cream); }
.progress-label { justify-self: end; color: var(--mint); font-size: .7rem; letter-spacing: .2em; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
  align-items: center;
  gap: clamp(2rem, 8vw, 9rem);
  padding: 8rem clamp(1.5rem, 8vw, 9rem) 6rem;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 25%;
  background: linear-gradient(to bottom, transparent, var(--night));
  pointer-events: none;
}
.eyebrow { margin: 0 0 1rem; color: var(--mint); font-size: .68rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.hero h1, .section-heading h2, .welcome h2, .letter h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.05em;
}
.hero h1 { max-width: 780px; font-size: clamp(4.25rem, 10.4vw, 10.5rem); }
.hero-subtitle { margin: 1.8rem 0 .4rem; color: var(--sage); font-size: clamp(.8rem, 1.2vw, 1rem); letter-spacing: .13em; text-transform: uppercase; }
.hero-note { max-width: 35rem; margin: 1.5rem 0 2.25rem; color: var(--mist); font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.45rem); font-style: italic; }
.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 1.3rem;
  padding: .95rem 1rem .95rem 1.25rem;
  border: 1px solid rgba(148, 201, 183, .42);
  border-radius: 999px;
  background: rgba(148, 201, 183, .06);
  font-size: .76rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: background .25s ease, transform .25s ease;
}
.primary-button span:last-child { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--mint); color: var(--night); font-size: .7rem; }
.primary-button:hover { background: rgba(148, 201, 183, .13); transform: translateY(-2px); }

.hero-poster { justify-self: center; width: min(100%, 360px); transform: rotate(1.7deg); }
.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4.25;
  overflow: hidden;
  border: 1px solid rgba(207, 234, 224, .28);
  background:
    linear-gradient(155deg, transparent 30%, rgba(118, 202, 186, .2) 31%, transparent 58%),
    radial-gradient(circle at 40% 30%, #287484 0, #0d3b4b 28%, #061a25 60%, #031017 100%);
  box-shadow: var(--shadow);
}
.poster-frame::before { content: ""; position: absolute; inset: 7%; border: 1px solid rgba(241, 239, 226, .12); }
.poster-light { position: absolute; inset: -20% -30% 5%; background: conic-gradient(from 220deg at 60% 30%, transparent, rgba(144, 227, 205, .18), transparent 30%); transform: rotate(-8deg); }
.poster-content { position: absolute; inset: auto 2.5rem 2.8rem; display: flex; flex-direction: column; text-align: center; }
.poster-kicker, .poster-date { color: var(--sage); font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; }
.poster-content strong { margin: .85rem 0 1rem; font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 400; line-height: 1; }
.film-edge { position: absolute; top: 0; bottom: 0; width: 11px; background: repeating-linear-gradient(to bottom, rgba(238,239,221,.52) 0 8px, transparent 8px 16px); opacity: .26; }
.film-edge-left { left: 8px; }
.film-edge-right { right: 8px; }
.scroll-cue { position: absolute; z-index: 2; bottom: 1.5rem; left: 50%; display: flex; flex-direction: column; align-items: center; gap: .55rem; color: rgba(200,219,214,.58); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; transform: translateX(-50%); }
.scroll-cue span { width: 1px; height: 35px; background: linear-gradient(var(--mint), transparent); animation: scrollcue 2s ease-in-out infinite; }

.section-shell { width: min(1200px, calc(100% - 3rem)); margin: 0 auto; }
.welcome { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(3rem, 10vw, 10rem); align-items: end; min-height: 75vh; padding: 9rem 0; border-bottom: 1px solid var(--line); }
.section-number { position: absolute; top: 3rem; left: -1rem; color: rgba(148,201,183,.07); font-family: var(--serif); font-size: clamp(8rem, 22vw, 20rem); line-height: 1; }
.welcome h2, .letter h2 { font-size: clamp(3.2rem, 7.5vw, 7rem); }
.lead { max-width: 690px; margin: 2.5rem 0 0; color: var(--mist); font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.5; }
.opening-credits { border-top: 1px solid var(--line); }
.opening-credits div { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.opening-credits span { color: rgba(200,219,214,.57); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
.opening-credits strong { font-weight: 500; font-size: .86rem; }

.chapters { padding: 9rem 0; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 8rem; align-items: end; margin-bottom: 4rem; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2 { font-size: clamp(3.2rem, 7vw, 6.6rem); }
.section-heading > p:last-child { max-width: 28rem; margin: 0 0 .5rem; color: rgba(200,219,214,.68); }
.act-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.act-tab { position: relative; flex: 1 0 auto; padding: 1.1rem 1.5rem; border: 0; background: transparent; color: rgba(200,219,214,.48); cursor: pointer; font-size: .67rem; letter-spacing: .14em; text-transform: uppercase; }
.act-tab::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--mint); transform: scaleX(0); transition: transform .3s ease; }
.act-tab.is-active { color: var(--cream); }
.act-tab.is-active::after { transform: scaleX(1); }
.chapter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 2.5rem; background: var(--line); border: 1px solid var(--line); }
.chapter-card {
  position: relative;
  min-height: 295px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 1.5rem;
  border: 0;
  background: #08222b;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
}
.chapter-card > *:not(.chapter-cover) { position: relative; z-index: 2; }
.chapter-cover { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: .48; filter: saturate(.82) contrast(1.05); transition: transform .7s ease, opacity .5s ease; }
.chapter-card.has-photo::before { z-index: 1; background: linear-gradient(180deg, rgba(4,18,24,.12), rgba(4,18,24,.86)); opacity: 1; }
.chapter-card.has-photo:hover .chapter-cover, .chapter-card.has-photo:focus-visible .chapter-cover { transform: scale(1.06); opacity: .62; }
.chapter-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at var(--x, 70%) var(--y, 30%), rgba(79, 163, 151, .26), transparent 42%), linear-gradient(145deg, rgba(26, 84, 99, .45), rgba(4, 22, 29, .8)); transition: transform .6s ease, opacity .6s ease; }
.chapter-card::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(206, 231, 222, .09); pointer-events: none; }
.chapter-card:hover::before, .chapter-card:focus-visible::before { transform: scale(1.08); opacity: .75; }
.chapter-card:nth-child(3n+2) { --x: 20%; --y: 70%; }
.chapter-card:nth-child(3n+3) { --x: 85%; --y: 80%; }
.chapter-index { color: var(--mint); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; }
.chapter-card h3 { margin: auto 0 .8rem; font-family: var(--serif); font-size: 1.65rem; font-weight: 400; line-height: 1.05; }
.chapter-meta { display: flex; justify-content: space-between; gap: .75rem; color: rgba(200,219,214,.52); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.chapter-meta span:last-child { overflow: hidden; max-width: 55%; text-overflow: ellipsis; white-space: nowrap; }
.chapter-pagination { display: flex; justify-content: space-between; align-items: center; padding-top: 1.7rem; color: rgba(200,219,214,.55); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; }
.text-button, .dialog-navigation button { border: 0; background: none; cursor: pointer; color: var(--mint); font-size: .69rem; letter-spacing: .09em; text-transform: uppercase; }
.text-button:disabled { opacity: .25; cursor: default; }

.interlude { min-height: 65vh; display: grid; grid-template-columns: 1fr minmax(260px, 620px) 1fr; gap: clamp(1rem, 5vw, 5rem); align-items: center; padding: 5rem 0; text-align: center; }
.interlude p { font-family: var(--serif); font-size: clamp(2rem, 5vw, 4.8rem); font-style: italic; line-height: 1.2; }
.interlude-line { height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.interlude-line:last-child { transform: rotate(180deg); }

.letter { min-height: 90vh; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 10vw, 10rem); align-items: center; padding: 8rem 0; }
.letter-intro > p:last-child { max-width: 30rem; color: rgba(200,219,214,.62); }
.letter-wrap { display: grid; place-items: center; min-height: 500px; }
.envelope {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1.55;
  border: 1px solid rgba(206,231,222,.24);
  background: linear-gradient(145deg, #d5d9c8, #aebfb4);
  color: var(--night);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .35s ease;
}
.envelope:hover { transform: translateY(-5px) rotate(-.4deg); }
.envelope::before, .envelope::after { content: ""; position: absolute; inset: 0; clip-path: polygon(0 100%, 0 0, 52% 53%); background: #bdcabd; }
.envelope::after { clip-path: polygon(100% 100%, 100% 0, 48% 53%); background: #c5d0c4; }
.envelope-flap { position: absolute; z-index: 1; inset: 0; clip-path: polygon(0 0, 100% 0, 50% 60%); background: #d7ddcf; filter: drop-shadow(0 3px 3px rgba(0,0,0,.12)); }
.wax-seal { position: absolute; z-index: 3; top: 48%; left: 50%; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--blue); color: var(--cream); font-family: var(--serif); transform: translate(-50%, -50%); box-shadow: inset 0 0 0 5px rgba(255,255,255,.08), 0 5px 15px rgba(0,0,0,.3); }
.envelope-label { position: absolute; z-index: 3; right: 0; bottom: -2.5rem; left: 0; color: var(--mint); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; }
.letter-paper { width: min(100%, 600px); max-height: 72vh; overflow: auto; padding: clamp(2rem, 5vw, 4.5rem); background: #e7e6d8; color: #102a31; box-shadow: var(--shadow); transform-origin: center bottom; animation: letteropen .65s ease both; }
.letter-overline { color: #39716e; font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.letter-text { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.75; white-space: pre-wrap; }
.letter-signature { margin-top: 2.5rem; font-family: var(--serif); font-size: 1.5rem; font-style: italic; }

footer { width: min(1200px, calc(100% - 3rem)); margin: 0 auto; display: flex; justify-content: space-between; gap: 1rem; padding: 2rem 0 3rem; border-top: 1px solid var(--line); color: rgba(200,219,214,.43); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }

.chapter-dialog { width: min(1080px, calc(100% - 2rem)); max-height: calc(100svh - 2rem); padding: 0; overflow: hidden; border: 1px solid rgba(193, 226, 215, .24); background: #071c24; color: var(--cream); box-shadow: 0 40px 100px rgba(0,0,0,.75); }
.chapter-dialog::backdrop { background: rgba(1,8,11,.82); backdrop-filter: blur(10px); }
.dialog-shell { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; min-height: 690px; }
.dialog-close { position: absolute; top: 1rem; right: 1rem; z-index: 3; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(233,243,237,.2); border-radius: 50%; background: rgba(3,15,20,.45); color: var(--cream); cursor: pointer; font-size: 1.5rem; backdrop-filter: blur(10px); }
.dialog-visual { position: relative; min-height: 420px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 70% 20%, rgba(84,167,149,.42), transparent 35%), linear-gradient(145deg, #155164, #061820 75%); }
.dialog-visual.has-photo { align-items: end; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 2px; padding: 2px; }
.dialog-visual img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.dialog-no-photo { text-align: center; }
.dialog-no-photo span, .dialog-no-photo small { display: block; color: rgba(225,238,231,.62); font-size: .65rem; letter-spacing: .17em; text-transform: uppercase; }
.dialog-no-photo strong { display: block; margin: .5rem 0 1rem; font-family: var(--serif); font-size: clamp(7rem, 18vw, 14rem); font-weight: 400; line-height: .9; opacity: .55; }
.dialog-content { display: flex; flex-direction: column; overflow: auto; max-height: calc(100svh - 2rem); padding: clamp(2rem, 5vw, 4.5rem); }
.dialog-content h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.7rem, 5vw, 4.5rem); font-weight: 400; line-height: 1; }
.dialog-date { min-height: 1.4em; margin: .9rem 0 2rem; color: var(--sage); font-size: .67rem; letter-spacing: .14em; text-transform: uppercase; }
.dialog-text { flex: 1; color: var(--mist); font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.7; white-space: pre-wrap; }
.soundtrack-card { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; margin-top: 2rem; padding: 1rem; border: 1px solid var(--line); background: rgba(148,201,183,.04); }
.soundtrack-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--mint); color: var(--night); font-size: 1.15rem; }
.soundtrack-card small, .soundtrack-card span { display: block; color: rgba(200,219,214,.5); font-size: .6rem; letter-spacing: .08em; }
.soundtrack-card strong { display: block; font-family: var(--serif); font-weight: 400; }
.soundtrack-card a, .soundtrack-card button { border: 0; background: transparent; color: var(--mint); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.soundtrack-card button.needs-tap { padding: .55rem .7rem; border: 1px solid rgba(148,201,183,.45); border-radius: 999px; animation: musicpulse 1.8s ease-in-out infinite; }
.dialog-navigation { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: rgba(200,219,214,.5); font-size: .62rem; letter-spacing: .16em; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes scrollcue { 0%,100% { opacity: .35; transform: scaleY(.7); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(2%, -3%); } 40% { transform: translate(-3%, 2%); } 60% { transform: translate(3%, 3%); } 80% { transform: translate(-2%, -2%); } }
@keyframes letteropen { from { opacity: 0; transform: translateY(30px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes musicpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(148,201,183,.1); } 50% { box-shadow: 0 0 0 8px rgba(148,201,183,.08); } }
@keyframes gateshake { 0%,100% { transform: translateX(0); } 30% { transform: translateX(-7px); } 60% { transform: translateX(7px); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr .55fr; gap: 2rem; }
  .hero h1 { font-size: clamp(4.2rem, 12vw, 7rem); }
  .chapter-grid { grid-template-columns: repeat(3, 1fr); }
  .section-heading { gap: 3rem; }
  .dialog-shell { grid-template-columns: .9fr 1.1fr; }
}

@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr auto; height: 66px; padding-inline: 1rem; }
  .topbar nav { display: none; }
  .brand > span:last-child { display: none; }
  .hero { grid-template-columns: 1fr; padding: 7rem 1.5rem 5rem; }
  .hero-copy { z-index: 2; }
  .hero h1 { font-size: clamp(4rem, 20vw, 6.2rem); }
  .hero-poster { position: absolute; right: -12%; bottom: 7%; width: 60%; opacity: .32; }
  .hero-note { max-width: 75%; }
  .welcome, .letter { grid-template-columns: 1fr; padding: 7rem 0; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading .eyebrow { grid-column: auto; }
  .chapter-grid { grid-template-columns: repeat(2, 1fr); }
  .chapter-card { min-height: 240px; }
  .interlude { grid-template-columns: 1fr; padding-inline: 1.5rem; }
  .interlude-line { display: none; }
  .dialog-shell { grid-template-columns: 1fr; max-height: calc(100svh - 2rem); overflow: auto; }
  .dialog-visual { min-height: 300px; }
  .dialog-content { max-height: none; overflow: visible; }
  footer { flex-direction: column; }
}

@media (max-width: 440px) {
  .access-card { padding: 2.4rem 1.4rem; }
  .access-input-row button { padding-inline: .8rem; }
  .section-shell { width: min(100% - 2rem, 1200px); }
  .chapter-grid { grid-template-columns: 1fr; }
  .chapter-card { min-height: 210px; }
  .chapter-pagination { gap: .5rem; }
  .chapter-pagination .text-button { font-size: .58rem; }
  .soundtrack-card { grid-template-columns: auto 1fr; }
  .soundtrack-card > a, .soundtrack-card > button { grid-column: 2; justify-self: start; }
}

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