/* Praying in Tongues: Stir It Up.  A banked hearth.  Cold grey ash lies over coals; the film's clock (and the reading) blows the ash off and the coals come up.
   States on <html>: js, is-on (the film was pressed, permanent), is-playing, is-lit (the clock is in chapter 4: reversible), is-still (reduced motion), is-down (a look: the hearth dims once the visitor has scrolled past the film), data-ch="1".."4".
   --heat (0..1) is set by the script from the film's clock (a function of the second, so a seek is reversible).  Without script --heat stays at its default and every lie is readable and warm.
   Never animate a property that a state rule also sets (GOTCHAS 5): the hearth layers animate opacity only, driven by --heat; the lies animate their own colours and glow, set by .lit.  */
:root {
  --ink: #0b0907; --ash-0: #14110d; --ash-1: #1b1713; --ash-2: #26211b; --ash-3: #3a342d;
  --ash-text: #d3ccc3; --ash-dim: #b9b1a7; --cream: #fff1d6; --gold: #ffc15a; --ember: #ff7a1a; --coal: #c2410c;
  --heat: .5;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --col: 46rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color: var(--ash-text); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.125rem; line-height: 1.65; overflow-x: hidden; min-height: 100vh; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: .18em; }
a:hover { color: var(--cream); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
cite { font-style: normal; font-family: var(--serif); font-weight: 600; font-size: .92em; color: var(--gold); white-space: nowrap; }
p { margin: 0 0 1.05em; }
h1, h2, h3 { font-family: var(--serif); color: var(--cream); line-height: 1.15; margin: 0; font-weight: 700; }

/* ---------- keys (Menu, Share) ---------- */
.keys { position: fixed; z-index: 40; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: max(10px, env(safe-area-inset-top)) 12px 0; pointer-events: none; transition: transform .35s ease, opacity .35s ease; }
.keys.away { transform: translateY(-120%); opacity: 0; }
.keys.away .key, .keys.away .share { pointer-events: none; }
.keys:focus-within { transform: none; opacity: 1; }
.keys:focus-within .key, .keys:focus-within .share { pointer-events: auto; }
.key { pointer-events: auto; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; gap: .5em; padding: 0 16px; background: rgba(20, 17, 13, .86); color: var(--cream); border: 1px solid var(--ash-3); border-radius: 999px; font: 600 .95rem/1 var(--sans); cursor: pointer; backdrop-filter: blur(4px); }
.key:hover { border-color: var(--ember); color: #fff; }
.key .glyph { color: var(--ember); }
.keys .share { pointer-events: auto; }

/* ---------- the hearth (behind everything) ---------- */
.hearth { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--ink); overflow: hidden; }
.hearth .ash, .hearth .coals { position: absolute; inset: 0; background-size: cover; background-position: 50% 62%; }
.hearth .coals { opacity: 0; transition: opacity 1.4s ease; }
.hearth .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 9, 7, .18) 0%, rgba(11, 9, 7, .42) 55%, rgba(11, 9, 7, .8) 100%); transition: opacity .6s ease; }
.hearth .coals.ready { opacity: calc(var(--heat) * .92); }
html:not(.js) .hearth .coals { opacity: .5; background-image: url('hearth_coals.jpg?v=20261130a'); }
.is-down .hearth .veil { background: rgba(11, 9, 7, .8); }

main { position: relative; display: block; }
main > section, main > header, main > footer { position: relative; }

/* ---------- the name ---------- */
.name { text-align: center; padding: 58px 18px 12px; max-width: 70rem; margin: 0 auto; }
.kick { margin: 0 0 .3rem; font: 600 .82rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.name h1 { font-size: clamp(2.1rem, 6.2vw, 4rem); letter-spacing: -.01em; text-shadow: 0 2px 24px rgba(0, 0, 0, .8), 0 0 40px rgba(255, 122, 26, calc(.1 + var(--heat) * .3)); }

/* ---------- the stage: the video, centered ---------- */
.stage { max-width: 72rem; margin: 0 auto; padding: 6px 14px 18px; }
.screen { position: relative; width: min(100%, 1120px, calc((100vh - 305px) * 16 / 9)); min-width: min(100%, 300px); margin: 0 auto; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 193, 90, .28), 0 18px 60px rgba(0, 0, 0, .75), 0 0 calc(30px + var(--heat) * 90px) rgba(255, 122, 26, calc(.1 + var(--heat) * .35)); }
@supports (height: 100svh) { .screen { width: min(100%, 1120px, calc((100svh - 305px) * 16 / 9)); } }
.facade, .slot, .slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.facade img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.82); transition: filter .4s; }
.facade:hover img, .facade:focus-visible img { filter: saturate(1) brightness(1); }
.playmark { position: absolute; left: 50%; top: 50%; width: clamp(64px, 11vw, 104px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 50% 60%, #ffd27a, var(--ember) 55%, var(--coal) 100%); box-shadow: 0 0 0 6px rgba(255, 122, 26, .25), 0 0 50px rgba(255, 122, 26, .7); }
.playmark::after { content: ''; position: absolute; left: 38%; top: 28%; border-style: solid; border-width: .55em 0 .55em .95em; border-color: transparent transparent transparent #1a0c03; font-size: clamp(28px, 5.4vw, 50px); }
@media (prefers-reduced-motion: no-preference) { .playmark { animation: breathe 3.2s ease-in-out infinite; } }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 6px rgba(255, 122, 26, .2), 0 0 36px rgba(255, 122, 26, .5); } 50% { box-shadow: 0 0 0 10px rgba(255, 122, 26, .3), 0 0 70px rgba(255, 122, 26, .9); } }
.is-on .facade { display: none; }
.slot:empty { pointer-events: none; }

/* the burn bar: the whole film as a length of cold wick; the burnt part is what was actually watched */
.burn { width: min(100%, 1120px); margin: 16px auto 0; }
.screen + .burn { width: min(100%, 1120px, calc((100vh - 305px) * 16 / 9)); }
@supports (height: 100svh) { .screen + .burn { width: min(100%, 1120px, calc((100svh - 305px) * 16 / 9)); } }
.burnbar { position: relative; height: 12px; border-radius: 6px; background: linear-gradient(180deg, #2b261f, #1a1612); box-shadow: inset 0 1px 2px #000; }
.seenfill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--seen, 0) * 100%); border-radius: 6px; background: linear-gradient(90deg, var(--coal), var(--ember) 60%, var(--gold)); box-shadow: 0 0 14px rgba(255, 122, 26, .7); transition: width .5s linear; }
.nowmark { position: absolute; top: -4px; width: 4px; height: 20px; margin-left: -2px; left: calc(var(--now, 0) * 100%); background: var(--cream); border-radius: 2px; box-shadow: 0 0 10px 2px rgba(255, 241, 214, .75); opacity: 0; }
.is-on .nowmark { opacity: 1; }
.tick { position: absolute; top: -3px; width: 8px; height: 18px; margin-left: -4px; border-radius: 3px 3px 5px 5px; background: var(--ash-3); border: 1px solid #5a5249; transition: background .5s, box-shadow .5s, border-color .5s; }
.tick.lit { background: linear-gradient(180deg, var(--gold), var(--ember)); border-color: var(--gold); box-shadow: 0 0 10px rgba(255, 193, 90, .85); }
.tick.edge { top: -2px; width: 2px; height: 16px; margin-left: -1px; border: 0; border-radius: 0; background: #6b6257; }
.burnread { display: flex; justify-content: space-between; gap: 1rem; margin: 8px 0 0; padding: 4px 10px; border-radius: 6px; background: rgba(11, 9, 7, .78); font: 600 .85rem/1.2 var(--sans); letter-spacing: .04em; color: var(--ash-dim); }
.burnread b { color: var(--cream); font-variant-numeric: tabular-nums; }

/* the four chapters */
.chapters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: min(100%, 1120px, calc((100vh - 305px) * 16 / 9)); margin: 10px auto 0; }
@supports (height: 100svh) { .chapters { width: min(100%, 1120px, calc((100svh - 305px) * 16 / 9)); } }
.chapters a { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .55rem; align-items: center; min-height: 52px; padding: 6px 10px; text-decoration: none; color: var(--ash-text); background: linear-gradient(90deg, rgba(255, 122, 26, .34) calc(var(--seen, 0) * 100%), rgba(27, 23, 19, .92) calc(var(--seen, 0) * 100%)); border: 1px solid var(--ash-3); border-radius: 8px; overflow: hidden; }
.chapters a:hover { border-color: var(--ember); color: #fff; }
.chapters a[aria-current='step'] { border-color: var(--gold); box-shadow: 0 0 18px rgba(255, 193, 90, .35); color: #fff; }
.cn { grid-row: 1 / 3; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ash-3); color: var(--cream); font: 700 .85rem/1 var(--sans); }
.chapters a.whole .cn, .chapters a[aria-current='step'] .cn { background: var(--ember); color: #1a0c03; }
.ct { font: 600 .8rem/1.2 var(--sans); }
.cm { font: 500 .72rem/1.2 var(--sans); color: var(--ash-dim); font-variant-numeric: tabular-nums; }
.own { width: min(100%, 1120px); margin: 6px auto 0; font-size: .9rem; text-align: center; }
.own summary { cursor: pointer; display: inline-block; min-height: 44px; line-height: 44px; color: var(--ash-dim); }
.own video { width: 100%; max-width: 1120px; border-radius: 8px; background: #000; }

/* ---------- reading sections ---------- */
.words, .lies, .take { max-width: var(--col); margin: 0 auto; padding: 0 20px; }
.lies, .take { max-width: 60rem; }
.stir { padding-top: 56px; padding-bottom: 28px; }
section > h2 { font-size: clamp(1.6rem, 4.4vw, 2.5rem); margin-bottom: 1.2rem; text-wrap: balance; }
.lede { font-size: 1.3rem; line-height: 1.55; color: var(--cream); }
.words p, .ans p, .ben p, .steps p { text-align: justify; hyphens: auto; }
.words p.lede, .words p.soldier, .words p.verse, .words .small, .words .big, .words .shout, .words .roll, .ans p.roll, .ben p.roll { text-align: left; hyphens: none; }
.soldier { font: italic 600 clamp(1.4rem, 4vw, 1.9rem)/1.3 var(--serif); color: var(--gold); border-left: 4px solid var(--ember); padding: .2em 0 .2em 1rem; margin: 1.4em 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 1.8rem; }
.two > div { padding: 20px 20px 8px; background: rgba(27, 23, 19, .88); border: 1px solid var(--ash-3); border-radius: 12px; }
.two .small { font: 600 .95rem/1.4 var(--sans); color: var(--ash-dim); margin: 0 0 .2rem; }
.two .big { font: 800 clamp(1.7rem, 4vw, 2.4rem)/1.1 var(--serif); color: var(--cream); margin: 0 0 .6rem; }
.two .use { border-color: rgba(255, 122, 26, .6); box-shadow: inset 0 -50px 60px -40px rgba(255, 122, 26, .45); }
.two .use .big { color: var(--gold); }
.shout { font: 900 1.5rem/1 var(--serif); letter-spacing: .04em; color: var(--ember); }

/* ---------- the lies: cut-paper heads on ash slabs ---------- */
.lies { padding-top: 56px; padding-bottom: 20px; }
.lead-hint { font-size: .95rem; color: var(--ash-dim); margin-bottom: 1.6rem; }
html:not(.js) .lead-hint { display: none; }
.lie { position: relative; margin: 0 0 22px; padding: 20px 22px 14px; border-radius: 14px; border: 1px solid var(--ash-3); background: linear-gradient(180deg, var(--ash-1), var(--ash-0)); overflow: hidden;
  transition: border-color .9s, box-shadow .9s, background-color .9s; }
.lie::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1s ease;
  background: radial-gradient(ellipse at 20% 0%, rgba(58, 52, 45, .85), transparent 55%), radial-gradient(ellipse at 90% 100%, rgba(58, 52, 45, .7), transparent 50%),
              repeating-radial-gradient(circle at 30% 40%, rgba(90, 82, 73, .22) 0 1px, transparent 1px 7px); }
.js .lie:not(.lit)::before { opacity: 1; }
.lie > * { position: relative; }
.lie header { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-bottom: 14px; }
.lie h3 { flex: 1 1 18rem; font-size: clamp(1.25rem, 3.4vw, 1.7rem); color: var(--ash-text); transition: color .9s; }
.lie .ans { color: var(--ash-text); transition: color .9s; }
.lie .ans p:last-child { margin-bottom: .4em; }
.lie .ans cite { color: var(--ash-text); transition: color .9s; }
.roll { font: 700 1.05rem/1.5 var(--serif); letter-spacing: .01em; color: var(--cream); }
.cut { display: inline-flex; gap: 3px; align-items: flex-end; transform: rotate(-2deg); }
.cut i, .cut b { display: grid; place-items: center; width: 1.9rem; height: 2.4rem; font: 900 1.55rem/1 var(--serif); font-style: normal; color: #14110d; background: #bdb5aa; box-shadow: 0 2px 0 #000, 0 5px 10px rgba(0, 0, 0, .5); transition: background .9s, box-shadow .9s, color .9s; }
.cut i:nth-child(1) { transform: rotate(-4deg); } .cut i:nth-child(2) { transform: rotate(3deg) translateY(2px); font-family: var(--sans); font-weight: 800; height: 2.1rem; } .cut i:nth-child(3) { transform: rotate(-2deg); height: 2.6rem; }
.cut b { margin-left: 6px; background: var(--ash-3); color: var(--ash-text); transform: rotate(4deg); font-family: var(--sans); font-weight: 800; }
.at { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: 0 14px; margin: 6px 0 4px; border-radius: 999px; border: 1px solid var(--ash-3); text-decoration: none; font: 600 .92rem/1 var(--sans); color: var(--ash-text); }
.at b { color: var(--gold); font-variant-numeric: tabular-nums; }
.at:hover { border-color: var(--ember); color: #fff; }
.note { font: italic 500 .95rem/1.4 var(--sans); color: var(--ash-dim); margin: 6px 0 4px; }
/* lit: the ash is off and the coal shows */
.lit, html:not(.js) .lie { border-color: rgba(255, 122, 26, .7); box-shadow: inset 0 -60px 70px -50px rgba(255, 122, 26, .5), 0 0 26px rgba(255, 122, 26, .16); }
.lit h3, html:not(.js) .lie h3 { color: var(--cream); }
.lit .ans cite, html:not(.js) .lie cite { color: var(--gold); }
.lit .cut i, html:not(.js) .lie .cut i { background: var(--cream); box-shadow: 0 2px 0 #7a3a10, 0 0 18px rgba(255, 193, 90, .55); }
.lit .cut b, html:not(.js) .lie .cut b { background: var(--ember); color: #1a0c03; box-shadow: 0 2px 0 #7a3a10, 0 0 22px rgba(255, 122, 26, .8); }
.lie.now { border-color: var(--gold); box-shadow: inset 0 -60px 70px -40px rgba(255, 193, 90, .55), 0 0 40px rgba(255, 193, 90, .35); }

/* ---------- the benefits ---------- */
.benefits { padding-top: 48px; max-width: 60rem; }
.flames { columns: 2; column-gap: 18px; margin-top: 1.6rem; }
.ben { position: relative; break-inside: avoid; margin: 0 0 18px; padding: 18px 20px 6px; border-radius: 12px; background: linear-gradient(180deg, rgba(38, 33, 27, .92), rgba(20, 17, 13, .94)); border: 1px solid var(--ash-3); border-top: 3px solid var(--ember); }
.ben h3 { font-size: 1.25rem; margin-bottom: .6rem; color: var(--gold); }
.ben:first-child { column-span: all; }
.ben:first-child h3 { font-size: 1.5rem; }

/* ---------- how to receive ---------- */
.receive { padding-top: 48px; }
.verse { font: italic 600 1.5rem/1.35 var(--serif); color: var(--gold); margin-bottom: 1.4rem; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.steps li { position: relative; counter-increment: st; padding: 0 0 8px 3.4rem; margin-bottom: 18px; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: radial-gradient(circle at 50% 60%, var(--gold), var(--ember) 70%); color: #1a0c03; font: 800 1.1rem/1 var(--sans); box-shadow: 0 0 20px rgba(255, 122, 26, .5); }
.steps h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.verses { margin: 2.2rem 0 0; padding: 20px 22px; border: 1px dashed rgba(255, 193, 90, .55); border-radius: 12px; background: rgba(27, 23, 19, .86); }
.verses h3 { font-size: 1.5rem; margin-bottom: .7rem; color: var(--gold); letter-spacing: .02em; }
.verses ul { margin: 0; padding: 0; list-style: none; }
.verses li { padding: .5rem 0; border-top: 1px solid var(--ash-3); line-height: 1.45; }
.verses li:first-child { border-top: 0; }
.verses b { color: var(--gold); font-family: var(--serif); margin-right: .4em; }

/* ---------- Get it: the flame ---------- */
.getit { position: relative; text-align: center; padding: 110px 20px 90px; margin-top: 40px; overflow: hidden; }
.getit .flame { position: absolute; inset: 0; background: url('flame.jpg?v=20261130a') 50% 100% / cover no-repeat; opacity: 1; mix-blend-mode: screen; -webkit-mask-image: radial-gradient(ellipse 30% 56% at 50% 74%, #000 22%, transparent 100%); mask-image: radial-gradient(ellipse 30% 56% at 50% 74%, #000 22%, transparent 100%); }
.getit > * { position: relative; }
.getit h2 { font-size: clamp(1.8rem, 5vw, 3rem); text-shadow: 0 2px 20px #000; }
.getit .big { font: 600 clamp(1.4rem, 3.6vw, 2.1rem)/1.3 var(--serif); color: var(--cream); margin-top: .8rem; text-shadow: 0 2px 20px #000; }
.getit .big span { display: inline-block; font-weight: 900; font-size: 1.25em; letter-spacing: .04em; color: var(--gold); }
@media (prefers-reduced-motion: no-preference) { .getit .big span { animation: lick 2.6s ease-in-out infinite; } }
@keyframes lick { 0%, 100% { text-shadow: 0 0 12px rgba(255, 122, 26, .6), 0 2px 18px #000; } 50% { text-shadow: 0 0 34px rgba(255, 193, 90, 1), 0 2px 18px #000; } }

/* ---------- take it with you ---------- */
.take { padding-top: 40px; padding-bottom: 40px; }
.shelves { display: grid; grid-template-columns: 1.3fr 1.1fr .9fr; gap: 18px; }
.shelf { padding: 16px 18px 10px; border-radius: 12px; background: rgba(20, 17, 13, .92); border: 1px solid var(--ash-3); }
.shelf h3 { font-size: 1.15rem; margin-bottom: .6rem; color: var(--gold); }
.shelf ul { list-style: none; margin: 0; padding: 0; }
.shelf a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px; min-height: 44px; padding: 8px 0; border-top: 1px solid var(--ash-3); text-decoration: none; color: var(--cream); font-weight: 600; }
.shelf li:first-child a { border-top: 0; }
.shelf a i { font: 500 .8rem/1.3 var(--sans); font-style: normal; color: var(--ash-dim); }
.shelf a:hover { color: var(--gold); }
.foot { text-align: center; padding: 24px 20px 60px; font-size: .95rem; }

/* ---------- narrow screens ---------- */
@media (max-width: 760px) {
  body { font-size: 1.06rem; }
  .name { padding-top: 62px; }
  .chapters { grid-template-columns: 1fr 1fr; }
  .two, .shelves { grid-template-columns: 1fr; }
  .flames { columns: 1; }
  .ben:first-child { column-span: none; }
  .stage { padding-left: 10px; padding-right: 10px; }
  .screen, .screen + .burn, .chapters { width: 100%; }
  .lie { padding: 16px 16px 10px; }
}
@media (max-width: 380px) { .key .kl { display: none; } }

/* ---------- motion preferences: end states ---------- */
.is-still .hearth .coals, .is-still .seenfill, .is-still .lie, .is-still .lie *, .is-still .tick { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hearth .coals, .seenfill, .lie, .lie *, .tick, .keys, .hearth .veil { transition: none !important; }
}
