/* ==========================================================
   Norman Svelund — homepage
   One continuous scroll: NIGHT CLOUD -> BREAKING LIGHT -> GOLDEN GLORY
   ========================================================== */

/* ---------- Loader + gate ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; text-align: center;
  background: radial-gradient(70% 60% at 50% 45%, #2a2133 0%, var(--night) 70%);
  transition: opacity 1.2s var(--ease), visibility 0s 1.2s;
}
.loader.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-motes { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader-inner { position: relative; padding: 0 24px; display: grid; justify-items: center; }
.loader-star { width: 34px; height: 34px; color: var(--gold-soft); filter: drop-shadow(0 0 18px rgba(243, 199, 122, .9)); animation: starspin 9s linear infinite; }
@keyframes starspin { to { transform: rotate(360deg); } }
.loader-count { font-family: var(--f-display); font-size: clamp(64px, 12vw, 150px); line-height: 1; margin: 18px 0 6px; color: var(--vellum); font-variant-numeric: tabular-nums; }
.loader-line { font-family: var(--f-serif); font-style: italic; font-size: 20px; color: var(--mist); margin: 0; transition: opacity .6s; }
.gate { display: grid; justify-items: center; gap: 18px; }
.gate[hidden] { display: none; }
.gate .eyebrow { margin: 0; }
.gate-tag { font-family: var(--f-display); font-size: clamp(28px, 4.2vw, 54px); line-height: 1.1; margin: 0 0 14px; max-width: 18ch; text-wrap: balance; }
.gate-quiet {
  background: none; border: 0; padding: 8px; cursor: pointer; color: var(--mist);
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 5px;
}
.gate-quiet:hover { color: var(--gold-soft); }
.loader.is-gate .loader-count, .loader.is-gate .loader-line { display: none; }

/* ---------- 01 Hero ---------- */
.hero { position: relative; }
.hero-stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--night); }
.hero-gl, .hero-motes { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-gl { opacity: 0; transition: opacity 1.4s var(--ease); }
.has-gl .hero-gl { opacity: 1; }
.has-gl .hero-fallback { visibility: hidden; }

.hero-fallback { position: absolute; inset: -6%; }
.hero-fallback picture, .hf-paint { width: 100%; height: 100%; }
.hf-paint { object-fit: cover; object-position: 66% 30%; transform-origin: 66% 26%; filter: saturate(.95) brightness(.94); will-change: transform; }
.hf-glow { position: absolute; left: 66%; top: 22%; width: 60vmax; height: 60vmax; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255, 223, 160, .55), rgba(255, 200, 120, .12) 50%, transparent); mix-blend-mode: screen; opacity: .4; }
.hf-veil { position: absolute; left: -10%; width: 120%; max-width: none; opacity: .55; pointer-events: none; will-change: transform; }
.hf-veil--a { bottom: -12%; }
.hf-veil--b { top: -18%; transform: scaleY(-1); opacity: .35; }

.hero-night {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 18, 32, .65), rgba(14, 18, 32, .1) 40%, rgba(14, 18, 32, .85));
}
.hero-rays {
  position: absolute; left: 66%; top: 24%; width: 220vmax; height: 220vmax; transform: translate(-50%, -50%); pointer-events: none; opacity: 0;
  background: repeating-conic-gradient(from 0deg, rgba(255, 226, 170, .13) 0deg 2deg, transparent 2deg 9deg);
  -webkit-mask-image: radial-gradient(closest-side, transparent 4%, #000 14%, transparent 60%); mask-image: radial-gradient(closest-side, transparent 4%, #000 14%, transparent 60%);
  mix-blend-mode: screen;
}
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(14, 18, 32, .85) 0%, rgba(14, 18, 32, .45) 36%, transparent 62%);
}
.hero-copy { position: absolute; inset: 0; margin: 0 auto; display: flex; align-items: center; max-width: 1480px; pointer-events: none; }
.hero-copy a, .hero-copy button { pointer-events: auto; }
.hero-title-block { max-width: 640px; padding-top: 40px; }
.hero-title { font-size: clamp(54px, 9vw, 132px); color: #FBF2E2; text-shadow: 0 0 60px rgba(14, 18, 32, .6); }
.hero-title .char { display: inline-block; }
.hero-tag { margin: 22px 0 12px; color: var(--gold-soft); font-size: clamp(22px, 2.3vw, 34px); }
.hero-sub { max-width: 46ch; color: #E6DCCD; margin: 0 0 34px; }
.hero-lines { position: absolute; left: var(--gutter); right: var(--gutter); top: 50%; transform: translateY(-50%); max-width: 760px; }
.hero-line {
  display: flex; align-items: baseline; gap: 22px; margin: 0 0 6px; opacity: 0;
  font-family: var(--f-display); font-size: clamp(30px, 4.6vw, 68px); line-height: 1.12; color: #FBF2E2; text-shadow: 0 2px 40px rgba(14, 18, 32, .7);
}
.hl-num { font-family: var(--f-sans); font-size: 12px; letter-spacing: .3em; color: var(--gold); min-width: 30px; }
.hero-invite { margin: 34px 0 0 52px; font-family: var(--f-serif); font-style: italic; font-size: clamp(26px, 3vw, 42px); color: var(--gold-soft); opacity: 0; }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: var(--mist); }
.scroll-cue i { width: 1px; height: 54px; background: linear-gradient(var(--gold), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0) } 50% { transform: scaleY(1) } 100% { transform: scaleY(1); opacity: 0 } }

/* ---------- 02 Statement ---------- */
.statement { padding-top: clamp(110px, 16vw, 210px); }
.statement-text {
  font-family: var(--f-display); font-size: clamp(30px, 4.4vw, 66px); line-height: 1.18; margin: 0; max-width: 21ch; text-wrap: balance;
}
.js .statement-text .w { color: rgba(29, 26, 23, .16); }
.statement-text .w.is-lit { color: var(--ink); }
.statement-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(29, 26, 23, .14); }
.statement-foot p { margin: 0; max-width: 52ch; }
.on-light .link-arrow { color: #A0672A; }

/* ---------- 03 Books ---------- */
.books { position: relative; background: linear-gradient(180deg, var(--night) 0%, var(--dusk) 60%, #2B2030 100%); }
.books-intro .h2 { max-width: 16ch; }
.books-intro-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 100px); margin-top: 30px; }
.paths { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(233, 180, 95, .22); }
.paths li { display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 24px 0; border-bottom: 1px solid rgba(233, 180, 95, .22); transition: opacity .6s var(--ease); }
.js .paths li { opacity: .28; }
.js .paths li.is-lit { opacity: 1; }
.paths-n { font-size: 12px; letter-spacing: .2em; color: var(--gold); padding-top: 8px; }
.paths h3 { font-family: var(--f-serif); font-weight: 500; font-size: clamp(23px, 2.1vw, 30px); line-height: 1.2; margin: 0 0 6px; }
.paths p { margin: 0; color: var(--mist); }

.shelf { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.shelf-light { position: absolute; inset: 0; background: radial-gradient(60% 70% at 32% 50%, rgba(233, 180, 95, .2), transparent 70%); pointer-events: none; }
.shelf-inner { position: relative; height: 100%; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(30px, 5vw, 90px); max-width: 1440px; }
.shelf-stage { position: relative; height: min(78vh, 720px); perspective: 1400px; display: grid; place-items: center; touch-action: pan-y; }
.shelf-glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(243, 199, 122, .35), transparent); filter: blur(10px); }
.is-lite .shelf-glow { filter: none; }
.shelf-shadow { position: absolute; bottom: 4%; width: 46%; height: 34px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); }
.drag-hint { position: absolute; bottom: -4px; margin: 0; font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--mist); }

/* 3D hardcover books. Sizes come from the real print files:
   --r = height / width of the cover, --dr = spine width / cover width (set per book in the markup).
   Nothing that flattens 3D (opacity, filter) is put on .book-set or .book3d: the fade runs on the faces via --op. */
.shelf-stage { --w: clamp(230px, 24vw, 370px); }
.book-set { position: absolute; transform-style: preserve-3d; visibility: hidden; --op: 0; transform: rotateX(-7deg) rotateY(34deg); }
.book-set.is-active { visibility: visible; --op: 1; }
.book3d {
  --r: 1.313; --dr: .07;
  --h: calc(var(--w) * var(--r)); --d: calc(var(--w) * var(--dr) + 6px);
  position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d;
}
.book3d--back-vol { position: absolute; left: 0; top: 0; transform: translate3d(98%, -1%, calc(var(--w) * -.55)) rotateY(-2deg); }
.b-face { position: absolute; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; opacity: var(--op, 1); background: #2a1d14; }
.b-face img { width: 100%; height: 100%; object-fit: cover; }
/* front: hinge groove near the spine + soft light falloff */
.b-front { inset: 0; transform: translateZ(calc(var(--d) / 2)); border-radius: 1px 4px 4px 1px; }
.b-front::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.55) 0, rgba(0,0,0,.15) 1.2%, rgba(255,240,215,.22) 2.4%, rgba(0,0,0,.28) 3.6%, rgba(0,0,0,.06) 6%, transparent 9%),
    linear-gradient(90deg, transparent 55%, rgba(0,0,0,.18) 100%),
    linear-gradient(180deg, rgba(255,245,225,.08), transparent 30%, transparent 75%, rgba(0,0,0,.18));
}
.b-back { inset: 0; transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); border-radius: 4px 1px 1px 4px; }
.b-back::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(270deg, rgba(0,0,0,.5) 0, rgba(0,0,0,.1) 2%, transparent 7%), linear-gradient(90deg, rgba(0,0,0,.25), transparent 40%); }
/* spine: rounded hardcover spine shading */
.b-spine { top: 0; left: 50%; width: var(--d); height: 100%; margin-left: calc(var(--d) / -2); transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.b-spine::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.05) 30%, rgba(255,240,215,.16) 55%, rgba(0,0,0,.1) 75%, rgba(0,0,0,.5)); }
/* page block, set in from the boards like a real hardcover */
.b-pages {
  top: 1.6%; left: 50%; width: calc(var(--d) - 4px); height: 96.8%; margin-left: calc(var(--d) / -2 + 2px);
  transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 5px));
  background: linear-gradient(90deg, rgba(0,0,0,.25), transparent 20%, transparent 80%, rgba(0,0,0,.25)), repeating-linear-gradient(90deg, #f3ead9 0 1px, #d9ccb4 1px 2px);
}
.b-top, .b-bottom {
  left: 2px; top: 50%; width: calc(var(--w) - 7px); height: calc(var(--d) - 4px); margin-top: calc(var(--d) / -2 + 2px);
  background: linear-gradient(90deg, #3a2618 0 5px, transparent 5px), repeating-linear-gradient(0deg, #f3ead9 0 1px, #d9ccb4 1px 2px);
}
.b-top { transform: rotateX(90deg) translateZ(calc(var(--h) / 2 - 4px)); }
.b-bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2 - 4px)); }
/* back volume sits a little in shadow */
.book3d--back-vol .b-face::after { content: ""; position: absolute; inset: 0; background: rgba(12, 9, 16, .32); pointer-events: none; z-index: 2; }
.b-sheen { position: absolute; inset: 0; z-index: 2; background: linear-gradient(105deg, transparent 30%, rgba(255, 240, 210, .22) 46%, transparent 60%); mix-blend-mode: screen; pointer-events: none; transform: translateX(var(--sheen, 0%)); }

/* all copies share one grid cell, so the column is as tall as the longest text and the progress line sits below it */
.shelf-copy { position: relative; display: grid; }
.book-copy { position: relative; grid-area: 1 / 1; align-self: start; opacity: 0; visibility: hidden; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease), visibility 0s .7s; }
.book-copy.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .9s var(--ease) .15s, transform .9s var(--ease) .15s, visibility 0s; }
.book-num { font-family: var(--f-display); font-size: 22px; color: var(--gold); margin: 0 0 18px; }
.book-num span { color: var(--mist); font-size: 14px; }
.book-title { font-size: clamp(32px, 3.7vw, 56px); margin-bottom: 10px; }
.book-title em { display: block; font-family: var(--f-serif); font-weight: 400; color: var(--gold-soft); font-size: .8em; margin-top: 6px; }
.book-vols { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--vellum); opacity: .8; margin: 0 0 22px; }
.book-copy .prose { margin-bottom: 30px; }
.shelf-progress { position: relative; grid-area: 2 / 1; margin-top: 44px; height: 1px; background: rgba(245, 238, 226, .15); }
.shelf-progress i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }

/* ---------- 04 For you ---------- */
.foryou { background: #2B2030; text-align: center; overflow: hidden; }
.foryou-light { position: absolute; left: 50%; bottom: -40%; width: 120vmax; height: 80vmax; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(233, 180, 95, .28), transparent); pointer-events: none; }
.foryou-lines { list-style: none; margin: 30px auto 0; padding: 0; max-width: 980px; }
.foryou-lines li {
  font-family: var(--f-serif); font-size: clamp(26px, 3.4vw, 50px); line-height: 1.2; margin: 0 0 .5em; text-wrap: balance;
  color: rgba(245, 238, 226, .18); transition: color .8s var(--ease), text-shadow .8s var(--ease);
}
.foryou-lines li.is-lit { color: #FBF2E2; text-shadow: 0 0 40px rgba(243, 199, 122, .35); }
.no-js .foryou-lines li { color: #FBF2E2; }
.foryou-invite { display: inline-flex; align-items: center; gap: 16px; margin: 40px 0 0; font-family: var(--f-display); font-size: clamp(30px, 4vw, 60px); color: var(--gold-soft); }
.foryou-invite .star-ico { width: .7em; height: .7em; }

/* ---------- 05 Conviction (horizontal) ---------- */
.convict { position: relative; background: linear-gradient(180deg, #2B2030, #3a2a24 40%, #4a3424); }
.convict-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.convict-track { display: flex; align-items: center; gap: clamp(30px, 4vw, 70px); padding: 0 var(--gutter); will-change: transform; }
.convict-panel { flex: none; width: min(78vw, 560px); }
.convict-panel--intro { width: min(86vw, 620px); }
.convict-title { font-size: clamp(48px, 7vw, 108px); margin-bottom: 30px; color: #FBF2E2; }
.cp-img { margin: 0 0 26px; aspect-ratio: 4 / 3.2; overflow: hidden; border-radius: var(--radius); position: relative; }
.cp-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.cp-img::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(243, 199, 122, .25); }
.cp-text { display: grid; grid-template-columns: 50px 1fr; column-gap: 8px; }
.cp-text p { grid-column: 2; margin: 0; color: #E2D6C6; max-width: 44ch; }
.cp-n { font-family: var(--f-display); color: var(--gold); font-size: 20px; padding-top: 6px; }
.convict-count { position: absolute; right: var(--gutter); bottom: 34px; font-size: 12px; letter-spacing: .3em; color: var(--mist); }
.convict-count span { color: var(--gold); }

/* ---------- 06 Author ---------- */
.author { overflow: hidden; padding-bottom: 0; }
.author-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.author-photo { position: relative; margin: 0; padding: 14px; background: #E8DCC6; box-shadow: 0 40px 80px -40px rgba(60, 40, 20, .55); transform: rotate(-1.5deg); max-width: 500px; }
.author-photo img { width: 100%; aspect-ratio: 640 / 826; object-fit: cover; filter: sepia(.12) contrast(1.02); }
.author-photo figcaption { font-family: var(--f-serif); font-style: italic; font-size: 17px; color: var(--ink-soft); padding: 12px 4px 2px; }
.author-text .lede { color: #8a5a26; margin: -6px 0 22px; }
.author-text .prose { margin-bottom: 30px; }
.marquee { margin-top: clamp(70px, 9vw, 130px); padding: 26px 0; border-top: 1px solid rgba(29, 26, 23, .12); overflow: hidden; background: var(--vellum-2); }
.marquee-track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--f-display); font-size: clamp(24px, 3vw, 44px); white-space: nowrap; color: var(--ink); }
.marquee i { width: 14px; height: 14px; flex: none; background: #A0672A; clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 07 Readers ---------- */
.readers { background: radial-gradient(80% 60% at 80% 0%, rgba(156, 59, 34, .18), transparent 60%), var(--night); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 40px 0 90px; }
.quote { margin: 0; padding: 34px 30px; border-top: 1px solid rgba(233, 180, 95, .35); }
.quote blockquote { margin: 0 0 18px; font-family: var(--f-serif); font-size: 23px; line-height: 1.45; font-style: italic; }
.quote blockquote p { margin: 0; }
.quote figcaption { font-size: 12px; letter-spacing: .2em; color: var(--gold); }
.reflect {
  position: relative; display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px 60px; padding: clamp(32px, 5vw, 64px);
  border: 1px solid rgba(233, 180, 95, .25); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(233, 180, 95, .08), rgba(14, 18, 32, 0) 60%);
}
.reflect-head .star-ico { width: 26px; height: 26px; color: var(--gold); margin-bottom: 16px; }
.reflect-head p { margin: 0; font-size: 14px; }
.reflect-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.reflect-opt {
  text-align: left; min-height: 64px; padding: 14px 20px; background: transparent; border: 1px solid rgba(245, 238, 226, .22); border-radius: var(--radius);
  font-family: var(--f-serif); font-size: 21px; line-height: 1.25; cursor: pointer; transition: border-color .4s, background-color .4s, color .4s;
}
.reflect-opt:hover, .reflect-opt[aria-pressed="true"] { border-color: var(--gold); background: rgba(233, 180, 95, .1); color: var(--gold-soft); }
.reflect-answer { grid-column: 1 / -1; margin: 0; min-height: 3em; font-family: var(--f-serif); font-style: italic; font-size: clamp(21px, 2vw, 28px); line-height: 1.45; color: #FBF2E2; max-width: 60ch; }

/* ---------- 08 Journal ---------- */
.journal .wrap { position: relative; }
.journal-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.journal-head .h2 { margin: 0; max-width: 14ch; }
.journal-head p { margin: 0; }
.journal-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 34px; margin-bottom: 50px; }
.j-card { text-decoration: none; display: block; }
.j-card figure { margin: 0 0 20px; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; }
.j-card--feature figure { aspect-ratio: 4 / 3.4; }
.j-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.j-card:hover img { transform: scale(1.06); }
.j-meta { display: flex; gap: 14px; align-items: center; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #A0672A; font-weight: 700; margin-bottom: 10px; }
.j-card .h3 { font-size: clamp(22px, 2vw, 30px); transition: color .3s; }
.j-card--feature .h3 { font-size: clamp(26px, 2.6vw, 38px); }
.j-card:hover .h3 { color: #8a5a26; }
.j-card p { margin: 0; }

/* ---------- 09 Events ---------- */
.events { background: var(--dusk); }
.events-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; align-items: start; }
.events .h2 { margin: 0; }
.events-empty { border-top: 1px solid rgba(233, 180, 95, .3); padding-top: 26px; }
.events-empty .lede { margin: 0 0 10px; color: #FBF2E2; }
.events-empty .muted { margin: 0 0 22px; max-width: 52ch; }

/* ---------- 10 Newsletter ---------- */
.newsletter { position: relative; overflow: hidden; text-align: center; background: #3a2a24; }
.newsletter-sky { position: absolute; inset: 0; opacity: .5; }
.newsletter-sky img { width: 100%; height: 100%; object-fit: cover; }
.newsletter-sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--dusk), rgba(58, 42, 36, .35) 40%, rgba(14, 18, 32, .9)); }
.newsletter-inner { position: relative; max-width: 820px; }
.newsletter-star { width: 30px; height: 30px; color: var(--gold-soft); filter: drop-shadow(0 0 14px rgba(243, 199, 122, .9)); margin-bottom: 22px; }
.newsletter .lede { color: #EDE2D2; margin: 0 auto 36px; max-width: 34ch; }
.nl-form { display: flex; gap: 12px; max-width: 560px; margin: 0 auto; }
.nl-form input {
  flex: 1; min-width: 0; height: 56px; padding: 0 20px; border-radius: var(--radius); font: inherit;
  background: rgba(14, 18, 32, .45); border: 1px solid rgba(245, 238, 226, .35); color: var(--vellum);
}
.nl-form input::placeholder { color: rgba(245, 238, 226, .6); }
.nl-form input:focus { outline: none; border-color: var(--gold-soft); box-shadow: 0 0 0 3px rgba(243, 199, 122, .2); }
.nl-msg { min-height: 1.6em; margin: 16px 0 0; color: var(--gold-soft); }

/* ---------- 11 Part the clouds ---------- */
.part { position: relative; background: var(--night); }
.part-scene { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; display: grid; place-items: center; --open: 0; }
.part-scene::before { content: ""; position: absolute; inset: 0; background: url("../images/finale-blur.webp") center / cover no-repeat; opacity: calc(.18 + var(--open) * .7); }
.part-light {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 244, 214, calc(.15 + var(--open) * .85)) 0%, rgba(243, 199, 122, calc(.1 + var(--open) * .55)) calc(8% + var(--open) * 22%), rgba(90, 58, 38, calc(.2 + var(--open) * .4)) calc(30% + var(--open) * 30%), transparent 75%);
}
.part-rays {
  position: absolute; left: 50%; top: 50%; width: 220vmax; height: 220vmax; transform: translate(-50%, -50%) rotate(calc(var(--open) * 30deg));
  background: repeating-conic-gradient(from 0deg, rgba(255, 230, 180, .16) 0deg 1.6deg, transparent 1.6deg 7deg);
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent 55%); mask-image: radial-gradient(closest-side, #000, transparent 55%);
  opacity: calc(var(--open) * 1); mix-blend-mode: screen;
}
.part-cloud { position: absolute; width: 95vw; max-width: none; pointer-events: none; filter: brightness(calc(.55 + var(--open) * .6)) saturate(.8); will-change: transform; }
.part-cloud--l { left: -10vw; top: 6%; transform: translateX(calc(var(--open) * -60vw)) scale(1.4); }
.part-cloud--r { right: -10vw; top: 22%; transform: translateX(calc(var(--open) * 60vw)) scaleX(-1) scale(1.4); }
.part-cloud--b { left: 2vw; bottom: -12%; transform: translateY(calc(var(--open) * 40vh)) scale(1.6); }
/* the reveal line sits outside the flow, so the eyebrow + star + label stay centred; when opened the block lifts a little to make room */
.part-copy { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; transform: translateY(calc(var(--open) * -11vh)); }
.part-copy .eyebrow { transition: color .6s var(--ease); }
.part.is-open .part-copy .eyebrow { color: #2a1b0e; }
.part-btn {
  display: grid; justify-items: center; gap: 22px; background: none; border: 0; padding: 20px; cursor: pointer; color: var(--vellum);
  -webkit-user-select: none; user-select: none; touch-action: none;
}
.part-star {
  display: grid; place-items: center; width: 120px; height: 120px; border-radius: 50%;
  border: 1px solid rgba(243, 199, 122, .5); background: radial-gradient(closest-side, rgba(243, 199, 122, .25), transparent);
  transform: scale(calc(1 + var(--open) * .3)); box-shadow: 0 0 calc(20px + var(--open) * 120px) rgba(243, 199, 122, calc(.3 + var(--open) * .6));
  transition: border-color .4s;
}
.part-star .star-ico { width: 46px; height: 46px; color: var(--gold-soft); transform: rotate(calc(var(--open) * 90deg)); }
.part-label { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; font-weight: 700; }
.part-reveal {
  position: absolute; top: 100%; left: 50%; width: min(14ch, 92vw); pointer-events: none;
  margin: 20px 0 0; font-family: var(--f-display); font-size: clamp(36px, 6vw, 92px); line-height: 1.04; text-wrap: balance;
  color: #2a1b0e; opacity: var(--open); transform: translate(-50%, calc((1 - var(--open)) * 30px)); text-shadow: 0 0 40px rgba(255, 244, 214, .8);
}
.part.is-open .part-label { color: #2a1b0e; }

/* ---------- 12 Finale ---------- */
.finale { position: relative; background: var(--night); }
.finale-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.finale-mask { position: absolute; inset: 0; clip-path: circle(11% at 50% 48%); will-change: clip-path; }
.finale-mask picture, .finale-img { width: 100%; height: 100%; }
.finale-img { object-fit: cover; object-position: 50% 20%; transform: scale(1.35); transform-origin: 50% 47%; }
.finale-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 18, 32, .1) 0%, rgba(14, 18, 32, .15) 40%, rgba(14, 18, 32, .82) 100%); }
.finale-copy { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; align-self: end; padding-bottom: clamp(50px, 9vh, 110px); }
.finale-title { font-size: clamp(38px, 6.2vw, 96px); max-width: 15ch; text-wrap: balance; color: #FFF8EC; text-shadow: 0 4px 50px rgba(14, 18, 32, .6); margin-bottom: 22px; }
.finale-copy .lede { max-width: 44ch; color: #F5EBDD; margin: 0 0 32px; text-shadow: 0 2px 20px rgba(14, 18, 32, .8); }
.finale-copy .btn-row { justify-content: center; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1024px) {
  .books-intro-grid, .author-grid, .journal-head, .events-inner { grid-template-columns: 1fr; }
  .reflect { grid-template-columns: 1fr; }
  .shelf { height: auto; padding: 40px 0 100px; overflow: visible; overflow-x: clip; }
  .shelf-inner { grid-template-columns: 1fr; height: auto; gap: 10px; }
  .shelf-stage { height: 60vh; min-height: 420px; }
  .shelf-copy { display: block; }
  .shelf-stage.is-sticky { position: sticky; top: var(--header-h); z-index: 2; background: linear-gradient(180deg, #2a2030 82%, rgba(42, 32, 48, 0)); }
  .shelf { background: #2a2030; }
  .book-copy { position: relative; inset: auto; opacity: 1; visibility: visible; transform: none; padding: 34px 0 70px; }
  .shelf-progress, .drag-hint { display: none; }
  .journal-grid { grid-template-columns: 1fr 1fr; }
  .j-card--feature { grid-column: 1 / -1; }
  .author-photo { max-width: 420px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 767px) {
  :root { --header-h: 70px; }
  .hero-shade { background: linear-gradient(180deg, rgba(14, 18, 32, .2) 0%, rgba(14, 18, 32, .35) 40%, rgba(14, 18, 32, .92) 75%); }
  .hero-copy { align-items: flex-end; }
  .hero-title-block { padding-bottom: 90px; }
  .hero-sub { font-size: 15px; margin-bottom: 26px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .hf-paint { object-position: 50% 20%; }
  .hero-rays, .hf-glow { left: 50%; top: 20%; }
  .hero-line { gap: 14px; }
  .hero-invite { margin-left: 44px; }
  .shelf-stage { --w: min(42vw, 210px); }
  .shelf-stage { height: 48vh; min-height: 340px; }
  .quotes { grid-template-columns: 1fr; gap: 6px; margin-bottom: 60px; }
  .reflect-opts { grid-template-columns: 1fr; }
  .journal-grid { grid-template-columns: 1fr; }
  .nl-form { flex-direction: column; }
  .nl-form input { flex: none; width: 100%; }
  .nl-form .btn { width: 100%; }
  .convict-panel { width: 82vw; }
  .part-star { width: 96px; height: 96px; }
  .scroll-cue { display: none; }
  .finale-mask { clip-path: circle(15% at 50% 48%); }
}
@media (max-width: 380px) {
  .btn { padding: 0 20px; letter-spacing: .14em; }
}

/* ---------- Reduced motion: plain stacked page ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-lines { display: none; }
  .shelf, .convict-pin, .finale-pin, .part-scene { height: auto; min-height: 0; }
  .shelf-copy { display: block; }
  .book-copy { position: relative; opacity: 1; visibility: visible; transform: none; margin-bottom: 60px; }
  .book-set:not(.is-active) { display: none; }
  .convict-pin { padding: 100px 0; }
  .convict-track { flex-direction: column; align-items: stretch; }
  .convict-panel { width: auto; }
  .convict-count { display: none; }
  .finale-mask { clip-path: none; }
  .finale-img { transform: none; }
  .finale-pin { min-height: 100vh; }
  .part-scene { --open: 1; padding: 120px 0; }
  .part-copy { transform: none; }
  .part-reveal { position: static; transform: none; width: auto; max-width: 14ch; }
  .js .statement-text .w, .foryou-lines li, .js .paths li { color: inherit; opacity: 1; }
  .marquee-track { animation: none; }
}
.has-gl .hero-rays { display: none; }

/* ==========================================================
   Phone & tablet polish
   ========================================================== */
/* .section sets side padding to 0, which removed the .wrap gutter here */
.books-intro.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }

/* Inline 3D book shown with each book text on phones/tablets (the pinned stage is desktop only) */
.book-inline { display: none; }
@media (max-width: 1024px) {
  .shelf-stage { display: none; }
  .book-inline { --w: min(50vw, 230px); display: grid; place-items: center; height: calc(var(--w) * 1.62); perspective: 1200px; margin: 0 0 18px; position: relative; }
  .book-inline::after { content: ""; position: absolute; bottom: 2%; left: 50%; width: calc(var(--w) * 1.1); height: 26px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .5), transparent); }
  .book-inline::before { content: ""; position: absolute; width: calc(var(--w) * 1.5); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(243, 199, 122, .28), transparent); }
  .book-inline-set { position: relative; z-index: 1; transform-style: preserve-3d; --op: 1; transform: rotateX(-6deg) rotateY(30deg); animation: bookFloat 7s ease-in-out infinite; }
  .book-copy { padding: 20px 0 60px; }
  .shelf { padding: 30px 0 40px; }
}
@keyframes bookFloat {
  0%, 100% { transform: translateY(0) rotateX(-6deg) rotateY(24deg); }
  50% { transform: translateY(-10px) rotateX(-4deg) rotateY(36deg); }
}
@media (max-width: 767px) {
  /* finale: keep the headline readable over the painting */
  .finale-shade { background: linear-gradient(180deg, rgba(14, 18, 32, .05) 0%, rgba(14, 18, 32, .35) 38%, rgba(14, 18, 32, .9) 62%, rgba(14, 18, 32, .96) 100%); }
  .finale-copy .lede { font-size: 19px; }
  .author-photo { max-width: 300px; }
}
@media (prefers-reduced-motion: reduce) { .book-inline-set { animation: none; } }