/* LuminCel Studio — design tokens from the master spec (section 1.2). No frameworks. */
:root {
  --cream: #FAF7F2;
  --limestone: #F2ECE1;
  --espresso: #3B2F2A;
  --umber: #6E5D54;
  --teal: #4FA3A5;
  --rose: #D98A6C;
  --gold: #E8B86D;
  --line: rgba(59, 47, 42, .14);
  --line-strong: rgba(59, 47, 42, .28);
  --serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(59, 47, 42, .06), 0 8px 24px rgba(59, 47, 42, .07);
  --act1-a: #F6DDD3; --act1-b: #F2ECE1;
  --act2-a: #DCEFE8; --act2-b: #A9D6D3;
  --act3-a: #F5DCC4; --act3-b: #EFCB8C;
  --act4-a: #F3D3A2; --act4-b: #C3C0DE;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--cream); color: var(--espresso); font: 400 16px/1.65 var(--sans); }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; font-variation-settings: 'opsz' 72; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.muted { color: var(--umber); }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--espresso); color: var(--cream); padding: 8px 14px; border-radius: 99px; z-index: 50; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.eyebrow { font: 600 .74rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin: 0 0 .9em; }
.lede { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--umber); max-width: 46em; }
.tag { display: inline-block; font: 600 .7rem/1 var(--sans); letter-spacing: .08em; padding: 5px 8px; border-radius: 99px; background: var(--cream); color: var(--umber); border: 1px solid var(--line); }
.text-link { color: var(--teal); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* buttons */
.pill { display: inline-flex; align-items: center; gap: .5em; padding: .78em 1.35em; border-radius: 999px; font: 600 .95rem/1 var(--sans); text-decoration: none; border: 1.5px solid var(--espresso); transition: background .2s, color .2s, box-shadow .2s, transform .2s; white-space: nowrap; }
.pill .ico { width: 1.15em; height: 1.15em; }
.pill-dark { background: var(--espresso); color: var(--cream); }
.pill-dark:hover { box-shadow: 0 0 0 4px rgba(232, 184, 109, .45); }
.pill-light { background: transparent; color: var(--espresso); }
.pill-light:hover { background: var(--gold); border-color: var(--gold); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(250, 247, 242, .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.12rem/1 var(--serif); color: var(--espresso); white-space: nowrap; }
.brand .lamp { width: 40px; height: 40px; }
.main-nav { display: flex; gap: 4px; margin-inline: auto; }
.main-nav a { text-decoration: none; padding: 8px 12px; border-radius: 99px; font-weight: 500; font-size: .93rem; color: var(--umber); }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--espresso); background: var(--limestone); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .pill { padding: .65em 1.1em; font-size: .88rem; }
.social { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--umber); transition: color .2s, background .2s; }
.social a:hover { color: var(--espresso); background: rgba(232, 184, 109, .35); }
.social .ico { width: 17px; height: 17px; }
@media (max-width: 1080px) { .social-header { display: none; } }
@media (max-width: 860px) {
  .header-row { flex-wrap: wrap; gap: 6px 12px; padding-block: 10px 0; }
  .header-cta { margin-left: auto; }
  .main-nav { order: 3; width: 100%; margin: 0 -8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { white-space: nowrap; font-size: .86rem; padding: 7px 8px; }
  .main-nav { justify-content: space-between; }
}
@media (max-width: 420px) { .brand span { font-size: 1rem; } .brand .lamp { width: 34px; height: 34px; } .header-cta .pill { font-size: .8rem; padding: .6em .9em; } }

/* media slots + still title cards */
.media { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--limestone); isolation: isolate; }
.media > video, .media > img, .media > iframe, .media > .yt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; z-index: 2; }
.r-16x9 { aspect-ratio: 16 / 9; }
.r-9x16 { aspect-ratio: 9 / 16; }
.r-4x5 { aspect-ratio: 4 / 5; }
.still { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 7%; background: linear-gradient(170deg, var(--a) 0%, var(--b) 100%); }
.still-art { position: absolute; inset: 0; background: var(--motif) center bottom / cover no-repeat; opacity: .95; }
.act-1 { --a: var(--act1-a); --b: var(--act1-b); --motif: url(/assets/img/motif-1.svg); --accent: var(--rose); }
.act-2 { --a: var(--act2-a); --b: var(--act2-b); --motif: url(/assets/img/motif-2.svg); --accent: var(--teal); }
.act-3 { --a: var(--act3-a); --b: var(--act3-b); --motif: url(/assets/img/motif-3.svg); --accent: #C77A55; }
.act-4 { --a: var(--act4-a); --b: var(--act4-b); --motif: url(/assets/img/motif-4.svg); --accent: #7470A8; }
.still-copy { position: relative; display: grid; gap: .45em; max-width: 34em; }
.still-eyebrow { font: 600 .66rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--umber); }
.still-title { font: 600 clamp(1.05rem, 2.2vw, 1.5rem)/1.15 var(--serif); color: var(--espresso); }
.still-line { font-size: .86rem; line-height: 1.45; color: var(--espresso); opacity: .85; }
.still-line em { font-style: normal; color: var(--umber); white-space: nowrap; }
.r-9x16 .still { padding: 12% 9% 22%; }
.r-9x16 .still-title { font-size: 1.15rem; }
.still-title.is-quote { font-weight: 500; font-style: italic; font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.3; }
.r-9x16 .still-art { background-size: auto 62%; background-position: center 18%; }
.r-9x16 .still { align-items: flex-end; }
.media .yt { display: grid; place-items: center; cursor: pointer; background: center / cover no-repeat; padding: 0; }
.play-badge { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(250, 247, 242, .92); color: var(--espresso); box-shadow: var(--shadow); }
.play-badge .ico { width: 26px; height: 26px; margin-left: 3px; }

/* hero */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; overflow: hidden; }
.hero > .media { position: absolute; inset: 0; border-radius: 0; }
.hero .still { padding: 0; background: #E3F1EE; }
.hero .still-art { background: url(/assets/img/hero.svg) right bottom / cover no-repeat; opacity: 1; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(250, 247, 242, .92) 0%, rgba(250, 247, 242, .72) 38%, rgba(250, 247, 242, 0) 72%); pointer-events: none; z-index: 3; }
.hero-copy { position: relative; z-index: 4; padding-block: 120px 72px; }
.hero-copy h1 { max-width: 13em; }
.hero-copy .lede { max-width: 34em; color: var(--espresso); opacity: .85; margin-bottom: 1.6em; }
@media (max-width: 700px) {
  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero > .media { position: relative; aspect-ratio: 16 / 10; }
  .hero::after { display: none; }
  .hero-copy { padding-block: 28px 48px; }
  .btn-row .pill { width: 100%; justify-content: center; }
}

/* sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-alt { background: var(--limestone); }
.section-head { margin-bottom: 32px; max-width: 760px; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-hero { padding-block: clamp(48px, 8vw, 96px) clamp(32px, 5vw, 56px); background: linear-gradient(180deg, var(--limestone), var(--cream)); }

/* act cards */
.act-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.act-card { position: relative; border-radius: var(--radius); background: linear-gradient(160deg, var(--a), var(--b)); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.act-card::before { content: ''; position: absolute; inset: 0; background: var(--motif) right bottom / 70% auto no-repeat; opacity: .5; pointer-events: none; }
.act-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 3px rgba(232, 184, 109, .5), var(--shadow); }
.act-link { position: relative; display: block; padding: 28px 28px 12px; text-decoration: none; flex: 1; }
.act-num { font: 600 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.act-card h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: .35em 0 .15em; }
.act-ch { font-weight: 600; color: var(--umber); font-size: .9rem; margin-bottom: .8em; }
.act-card p { max-width: 30em; }
.act-palette { display: inline-block; font-size: .78rem; color: var(--umber); background: rgba(250, 247, 242, .7); padding: 5px 10px; border-radius: 99px; }
.act-audio { position: relative; padding: 4px 28px 24px; }
.act-track { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--umber); }
.act-track .ico { width: 16px; height: 16px; color: var(--accent); }
.snippet { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; background: var(--cream); color: var(--espresso); padding: 8px 14px 8px 8px; border-radius: 99px; font: 600 .85rem/1 var(--sans); box-shadow: var(--shadow); }
.snippet .ico { width: 26px; height: 26px; padding: 6px; border-radius: 50%; background: var(--espresso); color: var(--cream); }
.snippet:not([hidden]) + .act-track { display: none; }
.snippet[aria-pressed="true"] .ico { background: var(--teal); }
@media (max-width: 760px) { .act-grid { grid-template-columns: 1fr; } }

/* shorts rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 22vw, 260px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(16px, (100% - 1200px) / 2) 20px; scroll-padding-inline: max(16px, (100% - 1200px) / 2); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.rail .short-card { scroll-snap-align: start; }
.short-card { margin: 0; }
.short-card .media { box-shadow: var(--shadow); }
.short-meta { padding: 12px 2px 0; }
.short-meta h3 { font-size: 1.05rem; margin: .45em 0 .2em; }
.short-meta p { font-size: .86rem; color: var(--umber); margin: 0; line-height: 1.45; }

/* OST */
.ost-preview { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.ost-preview .pill { margin-top: 8px; }
@media (max-width: 900px) { .ost-preview { grid-template-columns: 1fr; gap: 8px; } }
.tracks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.track { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; border-left: 4px solid var(--accent); }
.section-alt .track, .ost-act .track { background: #FFFDF9; }
.track-main { display: flex; align-items: center; gap: 14px; }
.track-n { font: 600 1.5rem/1 var(--serif); color: var(--accent); min-width: 1.6em; }
.track-info { flex: 1; min-width: 0; }
.track-info h3 { font-size: 1.15rem; margin: 0 0 .15em; }
.track-ctx { margin: 0; font-size: .82rem; color: var(--umber); }
.vocal { color: var(--rose); font-weight: 600; }
.track-bpm { font-size: .76rem; font-weight: 600; color: var(--umber); white-space: nowrap; }
.track-role { margin: 10px 0 2px; font-size: .92rem; }
.track-inst { margin: 0; font-size: .82rem; color: var(--umber); font-style: italic; }
.track-play { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; background: var(--espresso); color: var(--cream); }
.track-play .ico { width: 18px; height: 18px; margin-left: 2px; }
.track-play[aria-pressed="true"] { background: var(--teal); }
.lyrics { margin-top: 12px; border-top: 1px dashed var(--line-strong); padding-top: 10px; }
.lyrics summary { cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--teal); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.lyrics summary::-webkit-details-marker { display: none; }
.lyrics summary::before { content: '+'; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; font-size: .8rem; line-height: 1; }
.lyrics[open] summary::before { content: '−'; }
.lyrics-body { columns: 2 220px; column-gap: 32px; padding-top: 10px; font-family: var(--serif); font-size: 1.02rem; line-height: 1.55; }
.lyrics-body p { break-inside: avoid; }
.lyr-label { display: block; font: 600 .66rem/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--umber); }
.ost-act { padding-block: 40px; }
.ost-act + .ost-act { padding-top: 8px; }
.ost-act-h { font-size: clamp(1.4rem, 2.6vw, 1.9rem); display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.ost-act-h span { font: 600 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.ost-act-h small { font: 500 .85rem/1 var(--sans); color: var(--umber); }
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(59, 47, 42, .96); color: var(--cream); padding: 10px 0; }
.player-row { display: flex; align-items: center; gap: 14px; }
.player .track-play { background: var(--cream); color: var(--espresso); }
#player-title { font: 600 1rem/1.2 var(--serif); flex: none; }
#player-progress { flex: 1; height: 4px; appearance: none; border: 0; background: rgba(250, 247, 242, .25); border-radius: 4px; overflow: hidden; }
#player-progress::-webkit-progress-bar { background: rgba(250, 247, 242, .25); }
#player-progress::-webkit-progress-value { background: var(--gold); }
#player-progress::-moz-progress-bar { background: var(--gold); }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { background: var(--cream); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.pillar h3 { font-size: 1.25rem; }
.pillar p { color: var(--umber); margin: 0; }
.pillar-mark { display: block; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 18px; }
.p1 { background: radial-gradient(circle at 35% 35%, #FAF7F2 0 18%, transparent 19%), var(--rose); box-shadow: inset 0 0 0 2px var(--espresso); }
.p2 { background: linear-gradient(135deg, var(--teal), #8CC7C4); box-shadow: inset 0 0 0 2px var(--espresso); }
.p3 { background: radial-gradient(circle, #FFF5DC 0 30%, var(--gold) 31%); box-shadow: inset 0 0 0 2px var(--espresso); }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

/* /luke explorer */
.act-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 28px; }
.act-tab { display: block; text-decoration: none; padding: 14px 16px; border-radius: var(--radius-sm); background: linear-gradient(160deg, var(--a), var(--b)); font: 600 1.05rem/1.2 var(--serif); transition: transform .2s, box-shadow .2s; }
.act-tab span { display: block; font: 600 .68rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.act-tab:hover { transform: translateY(-2px); box-shadow: 0 0 0 3px rgba(232, 184, 109, .5); }
@media (max-width: 760px) { .act-tabs { grid-template-columns: repeat(2, 1fr); } }
.act-section { padding-block: clamp(48px, 7vw, 88px); background: linear-gradient(180deg, color-mix(in srgb, var(--a) 55%, var(--cream)) 0, var(--cream) 420px); }
.act-head { margin-bottom: 36px; max-width: 820px; }
.act-head .eyebrow { color: var(--accent); }
.act-tracks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .9rem; color: var(--umber); }
.act-tracks .ico { width: 16px; height: 16px; color: var(--accent); }
.act-tracks a { color: var(--espresso); }
.chapter { padding: 28px 0 36px; border-top: 1px solid var(--line); }
.chapter-grid { display: grid; grid-template-columns: 6fr 5fr; gap: 32px; align-items: start; }
.chapter-num { font: 600 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: .7em; }
.chapter-copy h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.chapter-copy p { color: var(--umber); }
.chapter-cue { display: flex; align-items: center; gap: 6px; font-size: .88rem; }
.chapter-cue .ico { width: 16px; height: 16px; color: var(--accent); }
.chapter-cue a { color: var(--espresso); font-weight: 600; }
.chapter-shorts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.chapter-shorts .short-card { max-width: 260px; }
@media (max-width: 900px) { .chapter-grid { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 760px) { .chapter-shorts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; } .chapter-shorts .short-card { scroll-snap-align: start; } }
.char-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.char-card h3 { margin: 14px 0 .3em; }
.char-card p { font-size: .92rem; margin-bottom: .4em; }
.char-still { background: linear-gradient(165deg, #FFFDF9, var(--limestone)); align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); }
.char-initial { font: 600 5rem/1 var(--serif); color: var(--rose); opacity: .55; }
@media (max-width: 860px) { .char-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
.rules { margin: 40px 0 0; padding: 24px 28px; list-style: none; background: var(--cream); border-radius: var(--radius); border: 1px solid var(--line); display: grid; gap: 10px; }
.rules li { padding-left: 26px; position: relative; }
.rules li::before { content: ''; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(232, 184, 109, .3); }

/* about */
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 1.6em; }
.prose p { font-size: 1.05rem; }
.facts { padding: 0; list-style: none; display: grid; gap: 14px; margin: 0 0 2em; }
.facts li { background: var(--limestone); padding: 16px 20px; border-radius: var(--radius-sm); }
.prose .pill { margin: 0 8px 8px 0; }

/* footer */
.site-footer { background: var(--limestone); border-top: 1px solid var(--line); padding-top: 56px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid nav { display: grid; align-content: start; gap: 8px; }
.footer-grid nav a { text-decoration: none; color: var(--umber); }
.footer-grid nav a:hover { color: var(--espresso); }
.footer-h { font: 600 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.site-footer .brand { margin-bottom: 14px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-block: 28px; margin-top: 40px; border-top: 1px solid var(--line); font-size: .85rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
body:has(.player:not([hidden])) .site-footer { padding-bottom: 64px; }
