@font-face { font-family: "SS4"; src: url(source-serif-4-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "SS4"; src: url(source-serif-4-latin-400-italic.woff2) format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "SS4"; src: url(source-serif-4-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(Poppins-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(Poppins-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0b0908; --bg2: #1c1712; --panel: #17130f; --line: #3a3024;
  --ivory: #f4ede0; --muted: #c9bba0; --gold: #e9b85a; --gold-d: #b8892d;
  --purple: #a777d6; --orange: #e8964a;
  --sans: "Poppins", system-ui, sans-serif; --serif: "SS4", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ivory); font-family: var(--serif); font-size: 18px; line-height: 1.6; }
a { color: var(--gold); }
img, video { max-width: 100%; display: block; }
.wrap { width: min(1120px, 92vw); margin: 0 auto; }
.narrow { width: min(720px, 92vw); margin: 0 auto; }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 4vw; transition: background .4s, padding .4s; }
.nav.solid { background: rgba(11,9,8,.92); backdrop-filter: blur(8px); padding: 12px 4vw; border-bottom: 1px solid var(--line); }
.brand { font-family: var(--sans); font-weight: 500; color: var(--ivory); text-decoration: none; letter-spacing: .5px; }
.brand b { color: var(--purple); font-weight: 700; }
.nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; align-items: center; }
.nav a.l { font-family: var(--sans); font-size: 14px; color: var(--muted); text-decoration: none; letter-spacing: .5px; }
.nav a.l:hover, .nav a.l.on { color: var(--ivory); }
.menu-btn { display: none; background: none; border: 0; color: var(--ivory); font-size: 26px; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav ul { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: rgba(11,9,8,.97); padding: 18px; gap: 16px; border-bottom: 1px solid var(--line); }
  .nav ul.open { display: flex; }
}

/* buttons */
.btn { display: inline-block; font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: .5px; padding: 14px 26px;
  border-radius: 40px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.gold { background: var(--gold); color: #1a130a; }
.btn.ghost { border-color: rgba(244,237,224,.45); color: var(--ivory); background: rgba(0,0,0,.2); }
.btn.small { padding: 9px 18px; font-size: 13px; }

/* hero */
.hero { position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.hero .bgvid, .hero .bgfall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .bgfall { background:
  radial-gradient(ellipse 45% 60% at 50% 0%, rgba(255,226,160,.55), transparent 70%),
  radial-gradient(ellipse 60% 25% at 50% 52%, rgba(255,214,130,.22), transparent 70%),
  linear-gradient(#1c1712, #0b0908); }
.hero .beam { position: absolute; top: -10%; left: 50%; width: 46vw; height: 80vh; transform: translateX(-50%);
  background: linear-gradient(rgba(255,230,168,.55), rgba(233,184,90,.08) 60%, transparent);
  clip-path: polygon(35% 0, 65% 0, 100% 100%, 0 100%); filter: blur(30px); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .65; } }
.hero .veil { position: absolute; inset: 0; background: linear-gradient(rgba(11,9,8,.15), rgba(11,9,8,.35) 55%, var(--bg)); }
.hero .inner { position: relative; z-index: 2; padding: 90px 0 70px; }
.hero .crown { width: min(340px, 60vw, 30vh); margin: 0 auto 10px; filter: drop-shadow(0 0 30px rgba(255,214,120,.5)); animation: float 9s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.t-the { font-family: var(--sans); font-weight: 500; font-size: clamp(22px, 3vw, 36px); margin: 0; }
.t-worship { font-family: var(--sans); font-weight: 500; font-size: clamp(54px, min(11vw, 12vh), 150px); line-height: .95; letter-spacing: -2px; margin: 0; }
.t-of { font-family: var(--sans); font-weight: 500; color: var(--purple); font-size: clamp(20px, 2.6vw, 32px); margin: 0; }
.t-kings { font-family: var(--sans); font-weight: 700; color: var(--purple); font-size: clamp(66px, min(14vw, 15vh), 190px); line-height: .9; letter-spacing: -3px; margin: 0; }
.t-sub { font-style: italic; color: var(--orange); font-size: clamp(18px, 2vw, 26px); margin: 14px 0 26px; }
.hero .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; font-family: var(--sans); font-size: 12px; letter-spacing: 3px; color: var(--muted); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s ease, transform 1.1s ease; }
.reveal.in { opacity: 1; transform: none; }

/* sections */
section.band { padding: 110px 0; }
.eyebrow { font-family: var(--sans); font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold-d); margin: 0 0 12px; }
h2 { font-family: var(--sans); font-weight: 500; font-size: clamp(30px, 4vw, 46px); line-height: 1.15; margin: 0 0 20px; }
.lead { font-size: 21px; color: var(--muted); }
.quote { font-style: italic; font-size: clamp(24px, 3vw, 34px); line-height: 1.35; color: var(--gold); text-align: center; max-width: 800px; margin: 0 auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; gap: 36px; } }

/* scenes */
.scenes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 760px) { .scenes { grid-template-columns: 1fr; } }
.scene { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16/9; border: 1px solid var(--line); cursor: pointer; }
.scene video { width: 100%; height: 100%; object-fit: cover; }
.scene .ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px;
  background: radial-gradient(ellipse at 50% 30%, rgba(233,184,90,.25), transparent 60%), #120e0b; color: var(--muted); font-family: var(--sans); font-size: 14px; }
.scene .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.scene .cap b { display: block; font-family: var(--sans); font-weight: 500; font-size: 17px; }
.scene .cap span { font-size: 14px; color: var(--muted); font-style: italic; }

/* chapters strip */
.chapters { counter-reset: c; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .chapters { grid-template-columns: 1fr 1fr; } }
.chap { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; background: var(--panel); font-size: 16px; }
.chap small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: 2px; color: var(--gold-d); text-transform: uppercase; }
.chap.free { border-color: var(--gold-d); }
.chap .tag { float: right; font-family: var(--sans); font-size: 11px; color: #1a130a; background: var(--gold); border-radius: 20px; padding: 2px 9px; }

/* forms */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 34px; }
.field { display: block; width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid #4a3e2f; background: #0f0c0a; color: var(--ivory);
  font-family: var(--serif); font-size: 17px; margin-bottom: 12px; }
.field:focus { outline: 2px solid var(--gold-d); border-color: transparent; }
textarea.field { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); margin: 6px 0 16px; }
.check input { margin-top: 5px; accent-color: var(--gold); }
.msg { font-family: var(--sans); font-size: 14px; margin-top: 10px; min-height: 1em; }
.msg.ok { color: #9fd18b; } .msg.err { color: #f0937a; }
.price { font-family: var(--sans); font-size: 44px; color: var(--gold); margin: 6px 0; }
.price small { font-size: 15px; color: var(--muted); }
ul.ticks { list-style: none; padding: 0; } ul.ticks li { padding-left: 28px; position: relative; margin: 8px 0; }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); }

/* reader */
.reader { display: grid; grid-template-columns: 280px 1fr; gap: 50px; padding-top: 100px; }
@media (max-width: 900px) { .reader { grid-template-columns: 1fr; } .toc { position: static !important; max-height: none !important; } }
.toc { position: sticky; top: 90px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; font-size: 15px; }
.toc a { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; }
.toc a.on { background: #2a2118; color: var(--ivory); }
.toc a .lock { flex: none; opacity: .6; }
.page { max-width: 720px; }
.page .cl { font-family: var(--sans); font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold-d); text-align: center; margin-top: 10px; }
.page h1 { font-family: var(--sans); font-weight: 500; font-size: clamp(28px, 4vw, 40px); text-align: center; line-height: 1.2; margin: 6px 0 30px; }
.page p { margin: 0 0 1.05em; }
.page blockquote { margin: 1.3em 0 1.3em 1.2em; padding-left: 1em; border-left: 2px solid var(--gold-d); font-style: italic; color: #e2d6c0; font-size: 17px; }
.page blockquote p { margin-bottom: .4em; }
.page aside.pull { margin: 1.6em 0; padding: 18px 0; border-top: 1px solid var(--gold-d); border-bottom: 1px solid var(--gold-d); text-align: center; font-style: italic; font-size: 22px; color: var(--gold); }
.page h3 { font-family: var(--sans); font-weight: 500; color: var(--purple); font-size: 19px; margin: 1.8em 0 .6em; }
.page p.epi { text-align: center; font-style: italic; color: var(--muted); }
.page p.dialog { font-style: italic; padding-left: 1.2em; }
.page figure { margin: 2em 0; } .page figure img { border-radius: 10px; }
.page figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.page sup { color: var(--gold-d); font-size: 11px; }
.page .sc { font-variant: small-caps; }
.paywall { margin-top: 40px; text-align: center; }
.pagenav { display: flex; justify-content: space-between; margin: 50px 0 30px; gap: 12px; flex-wrap: wrap; }

/* community */
.post { border-bottom: 1px solid var(--line); padding: 34px 0; }
.post h3 { font-family: var(--sans); font-weight: 500; font-size: 24px; margin: 0 0 8px; }
.post .meta, .comment .meta { font-family: var(--sans); font-size: 12px; color: var(--gold-d); letter-spacing: 1px; }
.comment { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 12px 0; font-size: 16px; }
.comment .meta { margin-bottom: 4px; }

/* footer + notice */
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14px; font-family: var(--sans); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.notice { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 60; background: #2a2118; border: 1px solid var(--gold-d);
  color: var(--ivory); padding: 12px 18px; border-radius: 12px; font-family: var(--sans); font-size: 13px; width: max-content; max-width: min(560px, calc(100vw - 32px)); display: none; }
.hide { display: none !important; }

/* ===== cinematic hero ===== */
.hero { --mx: 0; --my: 0; --sp: 0; background: #050403; }
.hero #sky { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero .camera { position: absolute; inset: 0; animation: push 26s ease-in-out infinite alternate; }
@keyframes push { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero .beam { z-index: 0; top: -12%; transform: translateX(calc(-50% + var(--mx) * 8px)) scaleY(0); transform-origin: top center;
  opacity: 0; transition: transform 3s cubic-bezier(.2,.8,.2,1), opacity 2.4s; animation: none; width: 54vw; height: 112vh; }
.hero[data-stage="1"] .beam, .hero[data-stage="2"] .beam, .hero[data-stage="3"] .beam, .hero[data-stage="4"] .beam, .hero[data-stage="5"] .beam {
  transform: translateX(calc(-50% + var(--mx) * 8px)) scaleY(1); opacity: calc(1 - var(--sp) * .4); }
.hero[data-stage="5"] .beam { animation: breathe 7s ease-in-out 1.6s infinite; }
.hero .rays { position: absolute; z-index: 0; left: 50%; top: -40vh; width: 160vh; height: 160vh; margin-left: -80vh; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,226,160,.07) 0deg 4deg, transparent 4deg 13deg);
  mask-image: radial-gradient(circle, #000 0%, transparent 62%); -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 62%);
  opacity: 0; transition: opacity 4s; animation: spin 90s linear infinite; }
.hero:not([data-stage="0"]) .rays { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero .flashlayer { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse 60% 45% at 50% 8%, rgba(255,248,225,1), rgba(255,220,150,.5) 40%, transparent 75%); }
.hero.flash .flashlayer { animation: flash 2.8s ease-out forwards; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
.hero .veil { z-index: 2; pointer-events: none; }
.hero .inner { z-index: 4; transform: translateY(calc(var(--sp) * -90px)); opacity: calc(1 - var(--sp) * 1.1); }

/* crown */
.hero .crownwrap { transform: translate(calc(var(--mx) * 14px), calc(var(--my) * 10px)); }
.hero .crown { opacity: 0; transform: translateY(-90px) scale(.85); filter: blur(10px) drop-shadow(0 0 0 rgba(255,214,120,0));
  transition: opacity 2.6s ease, transform 3.6s cubic-bezier(.16,.84,.24,1), filter 3s ease; animation: none; }
.hero[data-stage="2"] .crown, .hero[data-stage="3"] .crown, .hero[data-stage="4"] .crown, .hero[data-stage="5"] .crown {
  opacity: 1; transform: none; filter: blur(0) drop-shadow(0 0 34px rgba(255,214,120,.55)); }
.hero[data-stage="5"] .crown { animation: float 9s ease-in-out infinite, glow 4.5s ease-in-out infinite; }
@keyframes glow { 50% { filter: drop-shadow(0 0 60px rgba(255,214,120,.85)); } }

/* title letters */
.hero .ltr { display: inline-block; opacity: 0; transform: translateY(.45em) rotateX(70deg); filter: blur(10px);
  transition: opacity 1.5s ease, transform 1.9s cubic-bezier(.2,.9,.25,1), filter 1.7s ease; transition-delay: calc(var(--i) * 160ms); }
.hero .t-the, .hero .t-of { opacity: 0; transform: translateY(20px); transition: opacity 1.8s, transform 1.8s; }
.hero[data-stage="3"] .t-worship .ltr, .hero[data-stage="4"] .ltr, .hero[data-stage="5"] .ltr { opacity: 1; transform: none; filter: blur(0); }
.hero[data-stage="3"] .t-the, .hero[data-stage="4"] .t-the, .hero[data-stage="5"] .t-the,
.hero[data-stage="4"] .t-of, .hero[data-stage="5"] .t-of { opacity: 1; transform: none; }
.hero .t-kings .ltr { transform: scale(1.6); filter: blur(16px); transition-duration: 1.8s, 2.4s, 2s; }
.hero .t-kings .ltr { color: var(--purple); }
.hero[data-stage="5"] .t-kings .ltr { animation: glint 7s ease-in-out infinite; animation-delay: calc(1.2s + var(--i) * 110ms); }
@keyframes glint { 0%, 62%, 100% { color: var(--purple); text-shadow: 0 0 30px rgba(167,119,214,.25); }
  72% { color: #f6e3ae; text-shadow: 0 0 34px rgba(246,220,150,.8), 0 0 80px rgba(233,184,90,.45); } }
.hero .t-sub, .hero .ctas, .hero .scroll { opacity: 0; transform: translateY(16px); transition: opacity 2s, transform 2s; }
.hero[data-stage="4"] .t-sub, .hero[data-stage="5"] .t-sub, .hero[data-stage="5"] .ctas, .hero[data-stage="5"] .scroll { opacity: 1; transform: none; }
.hero[data-stage="5"] .scroll { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(0, 8px); } }
.hero .scroll { left: 0; right: 0; text-align: center; transform: none; }

/* intro overlay */
.intro { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; text-align: center; padding: 0 8vw; pointer-events: none; }
.intro p { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 3.4vw, 46px); line-height: 1.35; color: #efe2c4; margin: 0; max-width: 900px; }
.intro .w { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(10px); transition: opacity 1.8s, filter 1.8s, transform 1.8s; }
.intro .w.on { opacity: 1; filter: blur(0); transform: none; }
.intro small { display: block; margin-top: 18px; font-family: var(--sans); font-style: normal; font-size: 12px; letter-spacing: 4px; color: var(--gold-d); opacity: 0; transition: opacity 1.4s 1.6s; }
.intro .w.on ~ small { opacity: 1; }
.intro.fade { opacity: 0; transform: scale(1.06); filter: blur(6px); transition: opacity 1.8s, transform 2.4s, filter 1.8s; }
.intro.gone { display: none; }
.skip { position: absolute; z-index: 7; right: 24px; bottom: 24px; font-family: var(--sans); font-size: 12px; letter-spacing: 2px; color: var(--muted);
  background: rgba(0,0,0,.35); border: 1px solid #4a3e2f; border-radius: 20px; padding: 8px 14px; cursor: pointer; }
.skip.gone { display: none; }
.hero.instant *, .hero.instant { transition: none !important; }

/* quote words light up */
.quote[data-scrub] span { color: rgba(233,184,90,.18); transition: color .5s, text-shadow .5s; }
.quote[data-scrub] span.lit { color: var(--gold); text-shadow: 0 0 24px rgba(233,184,90,.35); }

/* cover tilt */
.tilt { transition: transform .4s ease-out; will-change: transform; }

/* scene cards: living placeholders */
.scene .ph { background: radial-gradient(ellipse at 50% 120%, rgba(233,184,90,.35), transparent 60%), radial-gradient(ellipse at 50% -20%, rgba(167,119,214,.25), transparent 55%), #0e0b09;
  background-size: 140% 140%; animation: drift 12s ease-in-out infinite alternate; }
@keyframes drift { to { background-position: 30% 70%; } }
.scene { transition: transform .5s, box-shadow .5s; }
.scene:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 40px rgba(233,184,90,.12); }

@media (prefers-reduced-motion: reduce) {
  .hero .camera, .hero .rays, .hero .crown, .hero .t-kings .ltr, .scene .ph { animation: none !important; }
}
.hero[data-stage="4"] .t-kings .ltr, .hero[data-stage="5"] .t-kings .ltr { opacity: 1; transform: none; filter: blur(0); }

/* chapter media slots */
.page figure.slot { margin: 2.2em 0; }
.slot .frame { position: relative; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line); aspect-ratio: 16/9; }
.slot .frame video, .slot .frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.slot .ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--sans); font-size: 14px; letter-spacing: 1px; color: var(--muted);
  background: radial-gradient(ellipse at 50% 120%, rgba(233,184,90,.35), transparent 60%), radial-gradient(ellipse at 50% -20%, rgba(167,119,214,.25), transparent 55%), #0e0b09;
  background-size: 140% 140%; animation: drift 12s ease-in-out infinite alternate; }
.slot .ph span::before { content: "▶  "; color: var(--gold); }
.slot.art .ph span::before { content: "✦  "; }
.page figure img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(5,4,3,.94); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }

/* hero clip: fades in at the flash, plays once, holds the last frame */
.hero .bgvid { opacity: 0; transition: opacity 3s ease; }
.hero .bgvid.on { opacity: .8; }
.hero .bgvid.on { opacity: .75; filter: brightness(.62) saturate(1.05); }
.hero .t-the, .hero .t-worship, .hero .t-sub { text-shadow: 0 2px 28px rgba(0,0,0,.6), 0 0 2px rgba(0,0,0,.35); }
.hero .t-kings .ltr { text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.nav:not(.solid) { background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0)); }
