/* The public site. Storm black, bone white, one ember accent; Cinzel for names, Spectral for words.
   Ember is spent on two things only: the Listen action and Scripture in the lyrics. */
@font-face { font-family: "Spectral"; src: url("fonts/spectral-latin-400-normal.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("fonts/spectral-latin-400-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("fonts/spectral-latin-500-normal.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("fonts/spectral-latin-600-normal.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("fonts/cinzel-latin-600-normal.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("fonts/cinzel-latin-700-normal.woff") format("woff"); font-weight: 700; font-display: swap; }

:root { --bg: #0E1014; --panel: #15181E; --line: #2A2E36; --edge: #4A515D; --bone: #E8E4DA; --soft: #CFCBC1; --muted: #9B978D; --ember: #D98E2B; --ember-hi: #F0A845; }
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--bone); font: 18px/1.6 "Spectral", Georgia, serif; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; }
img { max-width: 100%; }
a { color: var(--ember); text-decoration: none; }
a:hover { color: var(--ember-hi); }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, ol { margin: 0; }
h1, .title, .page-title { font-family: "Cinzel", serif; font-weight: 600; line-height: 1.1; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 9; background: var(--bone); color: var(--bg); padding: 8px 12px; border-radius: 6px; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.center { text-align: center; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.wrap.narrow { max-width: 1000px; }
.wrap.col { max-width: 760px; }
.block { padding-top: 64px; padding-bottom: 24px; }
.block-sm { padding-top: 36px; }
.k { display: block; margin: 0 0 12px; font: 700 13px/1.3 "Cinzel", serif; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.eyebrow { font: 600 13px/1.3 "Cinzel", serif; letter-spacing: .28em; color: var(--muted); }
.lede { margin-top: 16px; max-width: 640px; font-size: clamp(18px, 2.3vw, 21px); line-height: 1.55; color: var(--soft); }
.center .lede { margin-left: auto; margin-right: auto; }
.page-title { font-size: clamp(34px, 6vw, 56px); font-weight: 700; }
.title { font-size: clamp(28px, 4vw, 40px); }

/* Header */
.top { position: relative; z-index: 4; border-bottom: 1px solid var(--line); background: var(--bg); }
.top-in { max-width: 1200px; margin: 0 auto; padding: 0 16px; min-height: 64px; display: flex; align-items: center; gap: 8px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--bone); font: 700 16px "Cinzel", serif; letter-spacing: .18em; }
.brand:hover { color: var(--bone); }
.mainnav { display: flex; align-items: center; }
.mainnav a { display: inline-flex; align-items: center; height: 44px; padding: 0 10px; color: var(--soft); font-size: 16px; }
.mainnav a:hover, .mainnav a[aria-current] { color: var(--bone); }
.mainnav a[aria-current] { box-shadow: inset 0 -2px 0 var(--bone); }
.listen { position: relative; margin-left: 6px; }
.listen summary { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 22px; background: var(--ember); color: #16110A; font-weight: 600; font-size: 16px; cursor: pointer; list-style: none; }
.listen summary::-webkit-details-marker { display: none; }
.listen .menu { position: absolute; right: 0; top: 52px; width: 220px; padding: 6px; border-radius: 12px; background: #1B1F26; border: 1px solid var(--edge); box-shadow: 0 18px 40px rgba(0,0,0,.55); }
.listen .menu a { display: flex; align-items: center; height: 48px; padding: 0 14px; border-radius: 8px; color: var(--bone); font-size: 16px; }
.listen .menu a:hover { background: #252A33; }
@media (max-width: 700px) {
  .top-in { flex-wrap: wrap; padding-top: 10px; }
  .mainnav { order: 3; flex: 1 0 100%; justify-content: space-around; margin: 10px -16px 0; padding: 0 8px; border-top: 1px solid var(--line); }
}

/* Buttons, pills, rows */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--edge); color: var(--bone); font-size: 16px; transition: border-color .2s, transform .1s; }
.btn:hover { border-color: var(--ember); color: var(--bone); }
.btn:active { transform: scale(.98); }
.btn.pri { background: var(--ember); border-color: var(--ember); color: #16110A; font-weight: 600; }
.btn.pri:hover { background: var(--ember-hi); color: #16110A; }
.btn.big { min-height: 52px; padding: 0 24px; font-size: 18px; }
.actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.actions.center, .center .actions { justify-content: center; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--line); color: var(--bone); font-size: 16px; }
.pill:hover { border-color: var(--ember); color: var(--bone); }
.rows { padding: 0; list-style: none; }
.row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 56px; padding: 4px 8px; border-radius: 8px; color: var(--bone); }
a.row:hover { background: var(--panel); color: var(--bone); }
span.row { color: var(--muted); }
.row .n, .row .r, .row .s { font-size: 15px; color: var(--muted); }
.row .r { text-align: right; }
.row.line { grid-template-columns: minmax(0, 1fr); padding: 10px 8px; }
.row.line .s { display: block; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; left: -10%; top: -40%; width: 120%; height: 180%; max-width: none; object-fit: cover; filter: blur(36px) saturate(.7) brightness(.4); }
.hero-bg + * { position: relative; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50%; background: linear-gradient(rgba(14,16,20,0), var(--bg)); pointer-events: none; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-copy { padding-top: clamp(56px, 9vw, 104px); padding-bottom: clamp(48px, 7vw, 80px); }
.hero-copy h1 { margin-top: 18px; max-width: 900px; font-size: clamp(36px, 7vw, 72px); }
.cover { display: block; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; }
.cover.blank { display: flex; align-items: center; justify-content: center; background: var(--panel); border: 1px solid var(--line); }
.cover.blank img { width: 40%; opacity: .5; }
.cover.sm { width: 64px; border-radius: 8px; }
.cover.md { width: clamp(160px, 30vw, 240px); margin: 0 auto; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.cover.lg { width: clamp(200px, 34vw, 320px); box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.song-hero { padding-top: 40px; padding-bottom: 32px; }
.song-hero h1 { margin-top: 24px; font-size: clamp(32px, 6vw, 56px); font-weight: 700; }
.song-hero .quiet { display: inline-flex; align-items: center; min-height: 44px; color: var(--soft); font-size: 16px; }
.anchor { font: 600 20px "Cinzel", serif; }
.album-hero { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 28px 40px; padding-top: 48px; padding-bottom: 40px; }
.album-hero > div { flex: 1 1 300px; min-width: 0; }
.album-hero h1 { margin: 10px 0; font-size: clamp(34px, 6vw, 60px); font-weight: 700; }

/* Home */
.sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sky-mark { position: absolute; right: -40px; top: 20px; width: 440px; max-width: none; opacity: .06; }
.ember { position: absolute; bottom: -12px; width: 3px; height: 3px; border-radius: 50%; background: var(--ember-hi); box-shadow: 0 0 6px 2px rgba(217,142,43,.7); opacity: 0; animation: rise linear infinite; }
.e0 { left: 6%; --dx: 18px; animation-duration: 9s; } .e1 { left: 13%; --dx: -24px; animation-duration: 11s; animation-delay: 2.2s; }
.e2 { left: 21%; --dx: 30px; animation-duration: 8s; animation-delay: 4.1s; } .e3 { left: 29%; --dx: -12px; animation-duration: 12s; animation-delay: 1.1s; }
.e4 { left: 37%; --dx: 22px; animation-duration: 10s; animation-delay: 5.3s; } .e5 { left: 46%; --dx: -30px; animation-duration: 9.5s; animation-delay: 3.4s; }
.e6 { left: 54%; --dx: 14px; animation-duration: 11.5s; animation-delay: .6s; } .e7 { left: 62%; --dx: -18px; animation-duration: 8.5s; animation-delay: 6.2s; }
.e8 { left: 70%; --dx: 26px; animation-duration: 12.5s; animation-delay: 2.8s; } .e9 { left: 78%; --dx: -22px; animation-duration: 10.5s; animation-delay: 4.7s; }
.e10 { left: 86%; --dx: 12px; animation-duration: 9s; animation-delay: 1.7s; } .e11 { left: 93%; --dx: -16px; animation-duration: 11s; animation-delay: 5.9s; }
@keyframes rise { 0% { transform: translate3d(0,0,0) scale(1); opacity: 0; } 12% { opacity: .95; } 70% { opacity: .6; } 100% { transform: translate3d(var(--dx), -560px, 0) scale(.3); opacity: 0; } }
.burn span { animation: burn 1.1s cubic-bezier(0,0,.2,1) both; }
@keyframes burn { 0% { color: rgba(232,228,218,0); filter: blur(6px); } 38% { color: #F3B45A; text-shadow: 0 0 22px rgba(217,142,43,.9); filter: blur(0); } 100% { color: var(--bone); text-shadow: none; filter: blur(0); } }
.tiles { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 240px)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); color: var(--bone); transition: transform .2s, border-color .2s; }
.tile:hover { transform: translateY(-3px); border-color: rgba(217,142,43,.5); color: var(--bone); }
.tile .cover { width: 100%; margin-bottom: 6px; border-radius: 8px; }
.t { display: block; font: 700 18px/1.2 "Cinzel", serif; }
.s { display: block; font-size: 14px; color: var(--muted); }
.tiles + .k { margin-top: 36px; }
.teaser { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 28px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); color: var(--bone); }
.teaser:hover { border-color: rgba(217,142,43,.5); color: var(--bone); }
.teaser > span:first-child { flex: 999 1 320px; }
.teaser .t { margin: 8px 0; font-size: clamp(24px, 3.4vw, 34px); font-weight: 600; }
.teaser .s { font-size: 18px; color: var(--soft); }
.teaser .go { color: var(--ember); }
.badge { display: inline-flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 8px 20px; border-radius: 12px; border: 1px solid var(--edge); color: var(--bone); font: 700 18px/1.25 "Cinzel", serif; text-align: left; }
.badge span { font: 400 12px/1.2 "Spectral", serif; letter-spacing: .06em; color: var(--muted); }
.badge:hover { border-color: var(--ember); color: var(--bone); }

/* Songs index */
.search-label { display: block; margin-top: 24px; font-size: 15px; color: var(--muted); }
.search { display: block; width: 100%; max-width: 560px; height: 52px; margin-top: 6px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--edge); background: var(--panel); color: var(--bone); font: 18px "Spectral", Georgia, serif; }
.release { margin-top: 56px; scroll-margin-top: 16px; }
.release-head { display: flex; align-items: center; gap: 16px; min-height: 64px; margin-bottom: 12px; color: var(--bone); }
.release-head .t { font-size: clamp(22px, 3vw, 28px); }
.more { margin-top: 56px; }

/* Song page */
.lyrics { margin-top: 8px; }
.stanza + .stanza { margin-top: clamp(28px, 4vw, 44px); }
.ly { padding: 6px 0; font-size: clamp(22px, 3.3vw, 32px); line-height: 1.35; font-weight: 500; }
.hint { font-size: 15px; margin-bottom: 12px; }
mark.scr { background: none; color: inherit; border-bottom: 2px solid var(--ember); cursor: pointer; }
mark.scr[aria-expanded="true"] { color: #F3D3A0; }
@keyframes glow { 0%, 30% { opacity: .5; } 50% { opacity: 1; color: #F3D3A0; text-shadow: 0 0 22px rgba(217,142,43,.55); } 70%, 100% { opacity: .5; } }
@supports (animation-timeline: view()) {
  .lyrics .ly { animation: glow linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
}
.verse { margin: 8px 0 6px; padding: 16px 20px; border-radius: 12px; background: var(--panel); border: 1px solid #3A3F48; font-size: 17px; line-height: 1.55; animation: verse-in .3s cubic-bezier(0,0,.2,1) both; }
.verse b { font: 700 18px "Cinzel", serif; }
.verse .rel { margin-left: 10px; }
.verse p { margin-top: 6px; color: var(--soft); }
@keyframes verse-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.rel { font-size: 13px; color: var(--muted); }
.note-block { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.note-block p { font-size: 19px; line-height: 1.7; color: var(--soft); }
.refs { margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.refs summary { display: flex; align-items: center; min-height: 60px; cursor: pointer; list-style: none; }
.refs summary::-webkit-details-marker { display: none; }
.refs summary .k { margin: 0; }
.refs summary::after { content: "+"; margin-left: auto; font-size: 24px; color: var(--bone); }
.refs[open] summary::after { content: "\2212"; }
.refs ol { padding: 0; list-style: none; font-size: 16px; }
.refs li { padding: 12px 0; border-top: 1px solid var(--line); }
.facts { padding-left: 20px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.55; color: var(--soft); }
.src { font-size: 14px; }
.disclosure { margin-top: 32px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.prevnext { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.prevnext .btn { justify-content: flex-start; min-height: 64px; text-align: left; }
.prevnext .btn.end { justify-content: flex-end; text-align: right; }
.bar { position: sticky; bottom: 12px; z-index: 3; display: flex; align-items: center; gap: 8px; margin: 40px auto 28px; padding: 10px; border-radius: 16px; background: rgba(21,24,30,.94); border: 1px solid #3A3F48; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.bar .meta { flex: 1; min-width: 0; padding-left: 6px; }
.bar .meta .t { font-size: 15px; }
@media (max-width: 560px) { .bar .meta { display: none; } .bar .btn { flex: 1; padding: 0 6px; font-size: 14px; line-height: 1.2; text-align: center; } }

/* Sections that rise in as they are scrolled to. Hidden only when the script that reveals them is running. */
.rule { display: block; height: 2px; width: 48px; margin-top: 10px; background: var(--ember); }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s cubic-bezier(0,0,.2,1), transform .5s cubic-bezier(0,0,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal .rule { width: 0; transition: width .7s cubic-bezier(.2,0,0,1) .2s; }
.js .reveal.is-in .rule { width: 48px; }

/* Home: hear a line, find the verse */
.vis-k { font-size: 13px; letter-spacing: .2em; color: var(--muted); }
.vis-k.gap { margin-top: 16px; }
.echo { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.echo-lines { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.echo-line { display: block; width: 100%; min-height: 56px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--soft); text-align: left; cursor: pointer; font: clamp(19px, 2.6vw, 24px)/1.4 "Spectral", Georgia, serif; transition: color .2s, text-shadow .2s, background-color .2s, border-color .2s, transform .1s; }
.echo-line:hover { background: rgba(232,228,218,.04); }
.echo-line:active { transform: scale(.985); }
.echo-line[aria-pressed="true"] { border-color: var(--ember); background: rgba(217,142,43,.08); color: #F3D3A0; text-shadow: 0 0 18px rgba(217,142,43,.55); }
.echo-card { flex: 1 1 300px; min-width: 0; padding: 22px 22px 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.echo-card.swap { animation: verse-in .4s cubic-bezier(0,0,.2,1) both; }
.echo-ref { margin-top: 8px; font: 700 30px/1.1 "Cinzel", serif; }
.echo-card .rel { margin-top: 6px; font-size: 15px; }
.echo-more { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 16px; }

/* Scripture: the map of all 66 books */
.testament { margin-top: 36px; }
.bookmap { display: flex; flex-wrap: wrap; gap: 6px; }
.bk { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); color: #85827A; font-size: 15px; }
a.bk.lit { border-color: var(--ember); background: rgba(217,142,43,.1); color: #F3D3A0; }
a.bk.lit:hover { background: var(--ember); color: #16110A; }
.book { scroll-margin-top: 16px; }
.chapmap { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.chp { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--line); color: #5B6069; font-size: 13px; }
a.chp.lit { width: 44px; height: 44px; border-color: var(--ember); background: rgba(217,142,43,.14); color: #F3D3A0; font-size: 15px; font-weight: 600; box-shadow: 0 0 10px rgba(217,142,43,.25); }
a.chp.lit:hover { background: var(--ember); color: #16110A; }
.chapter { margin-top: 24px; scroll-margin-top: 16px; }
.chapter .k { margin-bottom: 4px; }
.chapter:target .k { color: var(--ember); }
.book .ref { font-weight: 400; color: var(--ember); }

/* The process: five chapters, each with a small animation that plays when it is scrolled to */
.p-intro .sky-mark { right: -100px; top: -40px; width: 520px; }
.p-intro .lede { margin-top: 24px; font-size: clamp(19px, 2.4vw, 23px); }
.cue { margin-top: 36px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--muted); }
.rail { position: sticky; top: 0; z-index: 3; background: var(--bg); border-bottom: 1px solid var(--line); }
.rail ol { max-width: 1200px; margin: 0 auto; padding: 0 8px; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rail a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 58px; color: #85827A; font-size: 13px; transition: color .3s; }
.rail .rn { font: 700 16px "Cinzel", serif; transition: color .3s, text-shadow .3s; }
.rail a:hover, .rail a.on { color: var(--bone); }
.rail a.done { color: var(--soft); }
.rail a.on .rn { color: var(--ember); text-shadow: 0 0 14px rgba(217,142,43,.6); }
.rail-bar { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--ember); box-shadow: 0 0 10px rgba(217,142,43,.6); transition: width .5s cubic-bezier(.2,0,0,1); }
.ch-band { border-bottom: 1px solid var(--line); }
.ch { max-width: 1200px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; scroll-margin-top: 72px; }
.ch-copy { flex: 1 1 340px; min-width: 0; }
.ch-vis { flex: 1 1 380px; min-width: 0; }
.ch .num { font: 700 clamp(64px, 9vw, 104px)/1 "Cinzel", serif; color: var(--bone); }
.ch-copy h2 { margin-top: 8px; font: 600 clamp(28px, 4vw, 40px)/1.15 "Cinzel", serif; }
.ch-copy p { margin-top: 16px; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.6; }
.ch-copy .aside { font-size: 16px; color: var(--muted); }
.vis { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 320px; padding: 28px 24px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.vis.left { align-items: stretch; gap: 14px; }
.vis svg { width: 100%; height: auto; overflow: visible; }
.cap { align-self: flex-end; font-size: 13px; color: #85827A; }
.vis-foot { width: 100%; display: flex; justify-content: space-between; font-size: 13px; color: #85827A; }
.spark-box { position: relative; width: 200px; height: 140px; display: flex; align-items: center; justify-content: center; }
.spark { width: 14px; height: 14px; border-radius: 50%; background: #F3B45A; box-shadow: 0 0 24px 8px rgba(217,142,43,.7); }
.ring { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(217,142,43,.7); opacity: 0; }
.vis-ref { font: 700 clamp(28px, 3.6vw, 38px)/1.1 "Cinzel", serif; text-align: center; }
.draft { position: relative; display: block; height: 16px; border-radius: 8px; background: #3A3F48; opacity: .45; }
.draft::after { content: ""; position: absolute; left: -4px; right: -4px; top: 7px; height: 2px; background: var(--soft); transform-origin: left; }
.final { font-size: clamp(26px, 3.4vw, 34px); font-weight: 500; line-height: 1.25; }
.kept { display: block; width: 70%; height: 16px; border-radius: 8px; background: var(--ember); box-shadow: 0 0 14px rgba(217,142,43,.6); }
.pgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 28px; gap: 6px; width: 100%; align-items: end; }
.ptile { display: block; width: 100%; border-radius: 3px; background: var(--edge); }
.ch4 .ptile:not(.pick) { opacity: .35; }
.ch4 .ptile.pick { background: var(--ember); box-shadow: 0 0 10px rgba(217,142,43,.6); }
.lane { position: relative; width: 100%; height: 44px; display: flex; gap: 4px; padding: 6px; border-radius: 10px; border: 1px solid #3A3F48; background: var(--bg); }
.blk { display: block; border-radius: 5px; background: var(--ember); }
.playhead { position: absolute; top: 2px; bottom: 2px; left: calc(100% - 8px); width: 2px; background: var(--bone); }
.rough { opacity: .15; }
.smooth { stroke-dasharray: 100; stroke-dashoffset: 0; }
.finale { display: block; max-width: 900px; padding-top: clamp(80px, 11vw, 140px); padding-bottom: clamp(40px, 6vw, 72px); }
.finale h2 { font: 600 clamp(30px, 5vw, 52px)/1.15 "Cinzel", serif; }
.finale .lede { margin-top: 22px; }
.result { margin: 40px auto 0; max-width: 560px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); text-align: left; }
.result .cover { width: 112px; border-radius: 8px; }
.result > div { flex: 1 1 220px; min-width: 0; }
.result .t { margin-top: 2px; font-size: 24px; }
.result-links { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 0 16px; font-size: 16px; }
.result-links a { display: inline-flex; align-items: center; min-height: 44px; }
.more-link { margin-top: 24px; font-size: 17px; }

@keyframes p-num { 0% { color: #3A3F48; text-shadow: none; } 40% { color: #F3B45A; text-shadow: 0 0 30px rgba(217,142,43,.8); } 100% { color: var(--bone); text-shadow: none; } }
@keyframes p-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes p-spark { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.6); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes p-ring { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(3); opacity: 0; } }
@keyframes p-in { from { opacity: 0; } to { opacity: .45; } }
@keyframes p-strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes p-tile { from { opacity: 0; transform: scaleY(.2); } to { opacity: 1; transform: none; } }
@keyframes p-dim { from { opacity: 1; } to { opacity: .35; } }
@keyframes p-pick { 0% { opacity: .35; box-shadow: none; } 50% { opacity: 1; box-shadow: 0 0 18px rgba(217,142,43,.9); } 100% { opacity: 1; box-shadow: 0 0 10px rgba(217,142,43,.6); } }
@keyframes p-slide { from { opacity: 0; transform: translate(var(--from), -36px); } to { opacity: 1; transform: none; } }
@keyframes p-play { from { left: 6px; } to { left: calc(100% - 8px); } }
@keyframes p-fade { from { opacity: 1; } to { opacity: .15; } }
@keyframes p-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes p-pop { 0% { transform: scale(0); } 70% { transform: scale(1.4); } 100% { transform: scale(1); } }
@keyframes p-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

.process .after { animation: p-up .5s cubic-bezier(0,0,.2,1) both; }
.process .cue svg { animation: p-nudge 1.6s ease-in-out 2.2s 3; }
/* Until a chapter is scrolled to, its moving parts wait out of sight. Only with the script running. */
.js .ch:not(.is-in) .anim, .js .ch:not(.is-in) .burn span { opacity: 0; animation: none; }
.js .ch:not(.is-in) .num { color: #3A3F48; }
.ch.is-in .num { animation: p-num 1.2s cubic-bezier(0,0,.2,1) both; }
.js .ch.is-in .ch-copy > * { animation: p-up .6s cubic-bezier(0,0,.2,1) both; }
.js .ch.is-in .ch-copy > :nth-child(2) { animation-delay: .1s; }
.js .ch.is-in .ch-copy > :nth-child(3) { animation-delay: .2s; }
.js .ch.is-in .ch-copy > :nth-child(4) { animation-delay: .3s; }
.js .finale.is-in > .anim { animation: p-up .6s cubic-bezier(0,0,.2,1) 1.3s both; }
.is-in .spark { animation: p-spark .9s cubic-bezier(0,0,.2,1) .2s both; }
.is-in .ring { animation: p-ring 1.8s cubic-bezier(0,0,.2,1) .4s both; }
.is-in .ring.r2 { animation-delay: .9s; }
.is-in .vis-ref { animation: burn 1.2s cubic-bezier(0,0,.2,1) .9s both; }
.is-in .draft { animation: p-in .4s ease-out both; }
.is-in .draft::after { animation: p-strike .45s cubic-bezier(.2,0,0,1) .4s both; }
.is-in .draft.d2 { animation-delay: .15s; }
.is-in .draft.d2::after { animation-delay: .75s; }
.is-in .draft.d3 { animation-delay: .3s; }
.is-in .draft.d3::after { animation-delay: 1.1s; }
.is-in .final { animation: burn 1.2s cubic-bezier(0,0,.2,1) 1.5s both; }
.is-in .kept { animation: p-up .6s cubic-bezier(0,0,.2,1) 1.5s both; }
.ch3.is-in .ptile { animation-name: p-tile; animation-duration: .35s; animation-timing-function: cubic-bezier(0,0,.2,1); animation-fill-mode: both; }
.ch4.is-in .ptile { animation-name: p-dim; animation-duration: .6s; animation-timing-function: ease-out; animation-fill-mode: both; }
.ch4.is-in .ptile.pick { animation-name: p-pick; animation-duration: .8s; }
.ch4.is-in .blk { animation-name: p-slide; animation-duration: .6s; animation-timing-function: cubic-bezier(.2,0,0,1); animation-fill-mode: both; }
.ch4.is-in .playhead { animation: p-play 3.2s linear 2s both; }
.is-in .rough { animation: p-fade 1.2s ease-out .3s both; }
.is-in .smooth { animation: p-draw 1.6s cubic-bezier(.2,0,0,1) .6s both; }
.is-in .node { transform-box: fill-box; transform-origin: center; animation: p-pop .4s cubic-bezier(.2,0,0,1) both; }
.is-in .node.n1 { animation-delay: 1.1s; }
.is-in .node.n2 { animation-delay: 1.4s; }
.is-in .node.n3 { animation-delay: 1.7s; }
@supports (animation-timeline: view()) {
  @keyframes p-drift { from { translate: 0 40px; } to { translate: 0 -40px; } }
  .num-wrap { animation: p-drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
}

/* Footer */
.foot { margin-top: 48px; border-top: 1px solid var(--line); }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 28px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; font-size: 15px; color: var(--muted); }
.foot img { opacity: .6; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ember { display: none; }
  .burn span, .lyrics .ly, .verse, .tile, .btn { animation: none; transition: none; }
  .process *, .process *::after { animation: none !important; transition: none !important; }
  .js .ch:not(.is-in) .anim, .js .ch:not(.is-in) .burn span { opacity: 1; }
  .js .ch:not(.is-in) .num { color: var(--bone); }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .reveal .rule { width: 48px; transition: none; }
  .echo-line, .echo-card.swap { transition: none; animation: none; }
}
