/* Lucent Dossier Experience — entering a world: turquoise water, olive, lantern gold for the sacred geometry */
:root {
  --bg: #031010; --fg: #e8dcc0; --muted: #b8ab90; --dim: #7f7562;
  --teal: #2fb6ad; --teal-hi: #8fe3d8; --turq: #2fb6ad; --turq-hi: #8fe3d8; --olive: #8a9a45; --olive-dk: #4d5a26; --cinnabar: #b07a5a; --ochre: #c8a25e; --lime: #e8dcc0;
  --gold: #c8962e; --gold-hi: #e8c47a; --ember: #d9642a; --jade: #2f7d5b; --violet: #2e8fa3;
  --glass: rgba(3, 17, 17, .6); --border: rgba(143, 227, 216, .22);
  --serif: 'Cinzel', 'Times New Roman', serif; --book: 'Cormorant Garamond', Georgia, serif; --sans: 'Inter', system-ui, sans-serif;
  --gutter: clamp(18px, 5vw, 84px);
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--gold); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--bg); padding: 8px 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- world + still fallback ---------- */
#world { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; display: block; opacity: 0; transition: opacity 1.6s ease; }
.gl-on #world { opacity: 1; }
.still {
  position: fixed; inset: 0; z-index: 0; transition: opacity 1.2s ease;
  background:
    radial-gradient(60% 45% at 50% 64%, rgba(47, 182, 173, .2), transparent 70%),
    radial-gradient(40% 30% at 50% 30%, rgba(138, 154, 69, .16), transparent 70%),
    linear-gradient(180deg, rgba(2, 12, 12,.2), rgba(2, 12, 12,.85)), var(--bg);   /* no photograph behind the title (Pete) */
  filter: saturate(1.05);
}
/* full frame always (Pete): the photo letterboxes over a dark, blurred copy of itself instead of being cropped */

.gl-on .still { opacity: 0; }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 52%, rgba(0,0,0,.62)); }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 40; }
.progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--jade), var(--gold), var(--ember)); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }

/* ---------- the vision: concept renders, full bleed, dissolving into the 3D scene ---------- */
#vision { position: fixed; inset: 0; z-index: 2; pointer-events: none; -webkit-mask-image: radial-gradient(circle at 50% 56%, transparent var(--r, -20%), #000 calc(var(--r, -20%) + 20%)); mask-image: radial-gradient(circle at 50% 56%, transparent var(--r, -20%), #000 calc(var(--r, -20%) + 20%)); }
.vslide { position: absolute; inset: 0; opacity: 0; will-change: transform, opacity; isolation: isolate; overflow: hidden; }
/* full frame always: the whole render/photo, contained (a margin keeps the slow push-in from ever clipping it) */
.vslide::after { content: ''; position: absolute; inset: 4.5%; background: var(--img) center / contain no-repeat; }
.vslide::before { content: ''; position: absolute; inset: -8%; background: var(--img) center / cover no-repeat; filter: blur(42px) brightness(.36) saturate(1.15); }
.vshade { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 50%, transparent 45%, rgba(0,0,0,.55)), linear-gradient(180deg, rgba(0,0,0,.28), transparent 30%, transparent 70%, rgba(0,0,0,.45)); }
/* webgl-smooth §2: the burn reveal is retired (photos cut through black, site.css "no sideways wipes"); main.js only ever
   sets its opacity to 0, so the fixed full-screen mix-blend layer is removed from the compositor entirely */
.burn { display: none; position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(circle at 50% 56%, transparent calc(var(--r, -20%) + 2%), rgba(255,110,30,.95) calc(var(--r, -20%) + 8%), rgba(255,190,110,.55) calc(var(--r, -20%) + 12%), rgba(255,90,20,.18) calc(var(--r, -20%) + 19%), transparent calc(var(--r, -20%) + 26%)); }
.credit { position: fixed; z-index: 6; left: var(--gutter); bottom: 18px; margin: 0; font: 500 9px/1.3 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: rgba(244,234,214,.72); opacity: 0; transition: opacity .5s; pointer-events: none; text-shadow: 0 1px 6px #000; }
.credit::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 9px; transform: rotate(45deg); border: 1px solid currentColor; vertical-align: 1px; }
.vlabel::before { background: var(--gold); border-color: var(--gold); }
.credit.on { opacity: 1; }
@media (max-width: 760px) { .credit { top: 62px; bottom: auto; left: 12px; font-size: 8px; padding: 4px 8px; background: rgba(2, 12, 12,.6); } }

/* ---------- chrome ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); transition: background .5s, opacity .5s; }
.topbar.scrolled { background: linear-gradient(180deg, rgba(2, 12, 12,.96) 0, rgba(2, 12, 12,.9) 74%, rgba(2, 12, 12,0) 100%); }   /* lucent-qa desktop crawl: section plaques read through the nav links under the old .72 fade */
.brand img { display: block; width: 54px; height: auto; opacity: .92; }
.tools { display: flex; gap: 8px; }
.sound, .present { font: 600 10px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); background: transparent; border: 1px solid var(--border); padding: 9px 12px; cursor: pointer; }
.sound:hover, .present:hover { color: var(--gold-hi); border-color: var(--gold); }
.sound[aria-pressed="true"] { color: var(--gold-hi); border-color: var(--gold); }
.present kbd { font: inherit; opacity: .6; margin-left: 4px; }
.rail { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 30; display: grid; gap: 12px; }
.rail a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; text-decoration: none; color: var(--dim); font: 500 9.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.rail a span { opacity: 0; transform: translateX(6px); transition: opacity .4s, transform .4s; }
.rail:hover a span, .rail a.on span { opacity: 1; transform: none; }
.rail a i { width: 7px; height: 7px; border: 1px solid var(--dim); transform: rotate(45deg); transition: background .4s, border-color .4s, box-shadow .4s; }
.rail a.on { color: var(--gold-hi); }
.rail a.on i { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 12px 2px rgba(232,196,122,.55); }
@media (max-width: 760px) { .links { flex-direction: column; align-items: center; } .contact-card { max-width: 100%; }
  .rail, .present { display: none; } .sound { padding: 8px 10px; letter-spacing: .14em; } .topbar { padding: 12px 14px; } }

/* ---------- chapters ---------- */
main { position: relative; z-index: 5; }
.ch { position: relative; min-height: 170vh; }
.ch.tall { min-height: 240vh; }
.ch.xtall { min-height: 400vh; }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding: 80px var(--gutter) 56px; }
.sticky.center { justify-content: center; text-align: center; }
.sticky.right { justify-content: flex-end; }

.panel { position: relative; max-width: 470px; padding: 30px 32px; background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.panel::before, .panel::after { content: ''; position: absolute; width: 14px; height: 14px; border: 1px solid var(--gold); }
.panel::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.panel::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.panel > .eyebrow:first-child::before { content: ''; display: block; height: 9px; margin: -6px 0 14px; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='11' viewBox='0 0 16 11'%3E%3Cg fill='none' stroke='%23e8c47a' stroke-width='.9'%3E%3Ccircle cx='4' cy='5.5' r='4.6'/%3E%3Ccircle cx='12' cy='5.5' r='4.6'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 0 / 13px 9px; height: 9px !important; }   /* a chain of interlocking circles (vesica piscis) */
.panel.wide { max-width: 720px; }
.panel.narrow { max-width: 430px; }
.eyebrow { margin: 0 0 12px; font: 600 9.5px/1.4 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--jade); }
h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; color: var(--fg); }
h2 { font-size: clamp(26px, 2.9vw, 42px); line-height: 1.12; margin-bottom: 16px; letter-spacing: .02em; }
h2.xl { font-size: clamp(34px, 4.4vw, 66px); line-height: 1.02; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #b9873c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.panel p { color: var(--muted); margin: 0 0 12px; }
.panel p:last-child { margin-bottom: 0; }
.lede { font: 400 clamp(18px, 1.5vw, 22px)/1.45 var(--book); color: var(--fg) !important; }
.lede.big { font-size: clamp(21px, 1.9vw, 28px); }
.triad { list-style: none; padding: 0; margin: 6px 0 4px; display: flex; gap: 22px; flex-wrap: wrap; font: 400 clamp(18px, 1.6vw, 24px)/1 var(--serif); color: var(--gold-hi); letter-spacing: .12em; }
.triad li { display: flex; align-items: center; gap: 22px; }
.triad li + li::before { content: ''; width: 6px; height: 6px; transform: rotate(45deg); background: var(--ember); box-shadow: 0 0 10px var(--ember); margin-right: 0; }
.plates { display: none; gap: 6px; margin-top: 16px; }
.plates img { flex: 0 1 auto; min-width: 0; height: 110px; width: auto; max-width: 100%; object-fit: contain; border: 1px solid var(--border); }
.plates.one img { height: 180px; flex: 0 0 auto; width: auto; }
.no-gl .plates { display: flex; }

/* reveal */
.rv { opacity: 0; transform: translateY(22px); transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1); }
.ch.in .rv { opacity: 1; transform: none; }
[data-words] .w { opacity: .18; transition: opacity .5s ease; }   /* wci-review-2 #8: a text-shadow transition repaints every frame; the glow now switches once */
[data-words] .w.lit { opacity: 1; text-shadow: 0 0 22px rgba(232, 196, 122, .35); }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } [data-words] .w { opacity: 1; } }

/* ---------- hero ---------- */
.hero { min-height: 200vh; }
.hero-copy { position: relative; display: flex; flex-direction: column; align-items: center; transform: translateY(-9vh); }
.hero-copy::before { content: ''; position: absolute; inset: -18% -30%; z-index: -1; background: radial-gradient(closest-side, rgba(2, 12, 12,.72), rgba(2, 12, 12,.38) 55%, transparent); pointer-events: none; }
.hero-logo { width: clamp(170px, 20vw, 300px); height: auto; filter: drop-shadow(0 0 28px rgba(232,196,122,.35)); animation: logoIn 2.2s cubic-bezier(.2,.7,.2,1) both .3s; }
.hero-eyebrow { margin: 26px 0 10px; color: var(--muted); letter-spacing: .6em; }
.hero-title { font-size: clamp(38px, 6.4vw, 104px); line-height: 1; letter-spacing: .06em; background: linear-gradient(180deg, #fff3d6, var(--gold) 58%, #a8742e); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(255,150,60,.25)); }
.hero-for { margin: 18px 0 0; font: 500 clamp(11px, .95vw, 13px)/1.4 var(--sans); letter-spacing: .42em; text-transform: uppercase; color: var(--fg); }
.hero-for .dot { color: var(--ember); margin: 0 .5em; }
.hero-eyebrow, .hero-title, .hero-for { opacity: 0; animation: fade 1.6s ease forwards; }
.hero-eyebrow { animation-delay: 1.4s; } .hero-title { animation-delay: 1.8s; } .hero-for { animation-delay: 2.4s; }
@keyframes logoIn { from { opacity: 0; transform: scale(.96); filter: blur(6px); } to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
.hero-sound { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; font: 600 10.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--fg); background: rgba(2, 12, 12,.45); border: 1px solid var(--gold); padding: 12px 18px; cursor: pointer; opacity: 0; animation: fade 1.6s ease 2.9s forwards; }
.hero-sound i { width: 14px; height: 12px; background: linear-gradient(90deg, var(--gold) 0 2px, transparent 2px 4px, var(--gold) 4px 6px, transparent 6px 8px, var(--gold) 8px 10px, transparent 10px 12px, var(--gold) 12px 14px); -webkit-mask: linear-gradient(0deg, #000 0 100%); clip-path: polygon(0 40%, 14% 40%, 14% 0, 29% 0, 29% 60%, 43% 60%, 43% 20%, 57% 20%, 57% 70%, 71% 70%, 71% 10%, 86% 10%, 86% 50%, 100% 50%, 100% 100%, 0 100%); }
.hero-sound[aria-pressed="true"] { background: rgba(232,196,122,.16); color: var(--gold-hi); }
.hero-sound:hover { background: rgba(232,196,122,.12); }
.hero-sound { flex-wrap: wrap; justify-content: center; row-gap: 6px; }
.hero-sound small { flex-basis: 100%; text-align: center; font: italic 400 12px/1 var(--book); letter-spacing: .04em; text-transform: none; color: var(--gold-hi); opacity: .8; }
.hero-sound small:empty { display: none; }
.hero-sound[data-state="playing"] { padding: 9px 14px; opacity: .7; }
.hero-sound[data-state="waiting"], .hero-sound[data-state="off"] { background: rgba(232,196,122,.2); color: var(--gold-hi); }
.hero-sound[data-state="waiting"] i { animation: cueBreath 1.6s ease-in-out infinite; }
/* the scroll cue sat absolute at the copy's bottom edge, on top of the sound button (Pete 2026-10-20 screenshot): flow it below */
.hero-copy .scroll-cue { position: static; transform: none; margin-top: 22px; }
@media (prefers-reduced-motion: reduce) { .hero-sound { animation: none; opacity: 1; } }
/* client 2026-10-19: a scroll instruction you can read, not a hairline */
.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--gold); opacity: .85; animation: cueBreath 2.6s ease-in-out infinite; }
.scroll-cue span { font: 500 10px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; }
.scroll-cue i { display: block; width: 10px; height: 10px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg); animation: cueDrop 1.6s ease-in-out infinite; }
@keyframes cueDrop { 0%, 100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(6px) rotate(45deg); } }
.scroll-nudge { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 7; margin: 0; padding: 7px 14px; font: 500 10px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
  background: rgba(2, 12, 12,.6); border: 1px solid rgba(232,196,122,.35); opacity: 0; transition: opacity .6s; pointer-events: none; white-space: nowrap; }
.scroll-nudge i { display: inline-block; font-style: normal; margin-left: 6px; animation: cueDrop 1.6s ease-in-out infinite; }
.scroll-nudge.on { opacity: 1; }
@media (min-width: 761px) { .scroll-nudge { left: calc((100vw - var(--railw, 300px)) * .5); } }
.spin-hint i { font-style: normal; color: var(--gold); margin: 0 2px; }
.spin-hint.used.on { opacity: .5; }
.spin-arrow { position: fixed; top: 40vh; z-index: 7; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(232,196,122,.55); background: rgba(2, 12, 12,.55); color: var(--gold); font-size: 14px; line-height: 42px; text-align: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .5s, background .2s; }
.spin-arrow.on { opacity: .9; pointer-events: auto; }
.spin-arrow:hover { background: rgba(232,196,122,.18); }
.spin-arrow.l { left: 36vw; } .spin-arrow.r { right: calc(var(--railw, 300px) + 24px); }
@media (max-width: 760px) { .spin-arrow { top: auto; bottom: 30svh; } .spin-arrow.l { left: 12px; } .spin-arrow.r { right: 12px; } }
.click-tag { position: fixed; z-index: 8; padding: 5px 9px; font: 500 9.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #e8dcc0; background: rgba(2, 12, 12,.72); border: 1px solid rgba(232,196,122,.45); pointer-events: none; opacity: 0; transition: opacity .15s; white-space: nowrap; }
.click-tag.on { opacity: 1; }
@media (pointer: coarse) { .click-tag { display: none; } }
/* client 2026-10-19: the show date front and centre of the reading */
.reading-date { font: 400 clamp(30px, 3.6vw, 54px)/1.05 var(--serif, Georgia, serif); color: var(--gold); margin: 6px 0 18px; letter-spacing: .01em; }
.reading .rl { margin: 0 0 10px; }
@media (prefers-reduced-motion: reduce) { .hero-logo, .hero-eyebrow, .hero-title, .hero-for { animation: none; opacity: 1; } .scroll-cue { display: none; } }

/* ---------- the ceremony's lines ---------- */
.line { font: italic 400 clamp(19px, 1.6vw, 24px)/1.4 var(--book) !important; color: var(--gold-hi) !important; margin: 10px 0 12px !important; text-shadow: 0 0 18px rgba(255,170,80,.25); }
.line.soft { font-size: clamp(16px, 1.25vw, 19px) !important; color: var(--muted) !important; }
.line.top { margin: 0 0 14px !important; }
.invocation { min-height: 1.5em; margin: 22px 0 0; font: italic 400 clamp(18px, 1.7vw, 25px)/1.4 var(--book); color: var(--gold-hi); letter-spacing: .02em; text-shadow: 0 0 16px rgba(0,0,0,.9); }
.invocation::after { content: ''; display: inline-block; width: 1px; height: 1em; margin-left: 3px; vertical-align: -2px; background: var(--gold); animation: blink 1.1s steps(1) infinite; }
.invocation.done::after { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.count-plate { position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%); margin: 0; width: max-content; max-width: calc(100% - 32px); text-align: center; font: 500 9.5px/1.5 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); padding: 7px 14px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(2, 12, 12,.45); }
.count-plate.inline { position: static; transform: none; margin: 0 auto 10px; width: auto; max-width: 100%; }
.look-up { margin: 18px 0 0; font: italic 400 clamp(26px, 3vw, 44px)/1 var(--book); color: var(--gold-hi); text-shadow: 0 0 26px rgba(255,170,80,.5); }
.awake { margin: 0 0 16px; font: 400 clamp(22px, 2.4vw, 36px)/1.2 var(--serif); letter-spacing: .08em; background: linear-gradient(180deg, #fff3d6, var(--gold) 60%, #a8742e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.adviser { margin: 10px 0 0; font: 400 10.5px/1.5 var(--sans); color: var(--dim); letter-spacing: .06em; }
@media (prefers-reduced-motion: reduce) { .invocation::after { display: none; } }

/* ---------- guests ---------- */
.big-num { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.big-num span { font: 500 clamp(11px, 1vw, 14px)/1 var(--sans); letter-spacing: .5em; text-transform: uppercase; color: var(--fg); }
.big-num b { font: 400 clamp(96px, 17vw, 260px)/0.95 var(--serif); letter-spacing: .02em; background: linear-gradient(180deg, #fff6df, var(--gold) 50%, #9e6a26); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 40px rgba(255,160,70,.35)); }

/* ---------- lucent ---------- */
.created { margin: 4px 0 0 !important; font: 500 10px/1.4 var(--sans) !important; letter-spacing: .3em; text-transform: uppercase; color: var(--gold) !important; }
.lib { margin: 18px 0 0; }
.lib img { display: block; width: 100%; height: auto; max-height: 46vh; object-fit: contain; border: 1px solid var(--border); background: rgba(2, 12, 12,.5); }
.lib figcaption { margin-top: 8px; font: 500 10px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }

/* ---------- in motion ---------- */
.motion { max-width: 860px; width: min(860px, 62vw); }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--border); overflow: hidden; }
.player iframe, .player .poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.player .poster { z-index: 2; transition: opacity .6s; }
.player.live .poster, .player.live .play { opacity: 0; pointer-events: none; }
.play { position: absolute; z-index: 3; left: 50%; top: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%; border: 1px solid var(--gold); background: rgba(2, 12, 12,.55); cursor: pointer; transition: transform .3s, background .3s, opacity .4s; }
.play:hover { transform: scale(1.06); background: rgba(232,196,122,.2); }
.play i { position: absolute; left: 31px; top: 25px; border-left: 22px solid var(--gold-hi); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.now { margin: 10px 0 12px !important; font: 500 11px/1.4 var(--sans) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi) !important; }
.reels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.reels button { display: block; width: 100%; padding: 0; text-align: left; background: none; border: 1px solid var(--border); color: var(--muted); cursor: pointer; font: 500 10px/1.35 var(--sans); transition: border-color .3s, color .3s; }
.reels button img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; opacity: .75; transition: opacity .3s; }
.reels button span { display: block; padding: 6px 7px 7px; }
.reels button b { display: block; font-weight: 500; color: var(--dim); margin-top: 2px; }
.reels button:hover, .reels button.on { border-color: var(--gold); color: var(--fg); }
.reels button:hover img, .reels button.on img { opacity: 1; }
.footnote { margin: 12px 0 0 !important; font-size: 10.5px; color: var(--dim) !important; letter-spacing: .06em; }
@media (max-width: 760px) { .motion { width: 100%; } .reels { grid-template-columns: repeat(2, minmax(0, 1fr)); } #motion .sticky { position: relative; height: auto; min-height: 100svh; } #motion { min-height: auto; } }

/* ---------- press ---------- */
.press { display: grid; gap: clamp(22px, 3.4vh, 40px); max-width: 940px; padding: clamp(24px, 3vw, 44px); background: rgba(3, 17, 17, .62); border: 1px solid var(--border); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-align: left; }
.quote { margin: 0; }
.quote blockquote { margin: 0 0 10px; font: italic 400 clamp(17px, 1.65vw, 25px)/1.42 var(--book); color: var(--fg); }
.quote figcaption { font: 600 10px/1 var(--sans); letter-spacing: .36em; text-transform: uppercase; color: var(--gold); }
.quote figcaption::before { content: ''; display: inline-block; width: 26px; height: 1px; background: var(--gold); vertical-align: middle; margin-right: 12px; }

/* ---------- contact ---------- */
.contact { min-height: 150vh; }
.contact-card { position: relative; max-width: 760px; display: flex; flex-direction: column; align-items: center; transform: translateY(-14vh); }
.contact-card::before { content: ''; position: absolute; inset: -14% -18%; z-index: -1; background: radial-gradient(closest-side, rgba(2, 12, 12,.7), rgba(2, 12, 12,.3) 60%, transparent); }
.contact-logo { width: clamp(150px, 15vw, 230px); height: auto; filter: drop-shadow(0 0 22px rgba(232,196,122,.35)); }
.contact-card h2 { margin-top: 18px; font-size: clamp(24px, 2.6vw, 38px); }
.who { margin: 0 0 6px; font: 400 clamp(19px, 1.6vw, 24px)/1.3 var(--book); color: var(--gold-hi); }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 4px 0 26px; }
.links a { font: 500 13px/1.4 var(--sans); letter-spacing: .08em; text-decoration: none; color: var(--fg); border-bottom: 1px solid var(--border); padding-bottom: 3px; }
.links a:hover { color: var(--gold-hi); border-color: var(--gold); }
.music { margin: 0 0 14px; font: 500 10px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.legal { max-width: 640px; margin: 0; font-size: 11px; line-height: 1.6; color: var(--dim); }

/* ---------- presenter ---------- */
.hud { position: fixed; left: var(--gutter); bottom: 30px; z-index: 50; font: 500 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.presenting .topbar, .presenting .progress, .presenting .rail { opacity: 0; pointer-events: none; }
.presenting { cursor: none; }

/* ---------- phones: chapters flow at their own height; the scene sits behind the copy ---------- */
@media (max-width: 760px) {
  .ch, .ch.tall { min-height: 150vh; }
  .ch.xtall { min-height: 260vh; }
  .hero { min-height: 120vh; }
  .count-plate { bottom: 22px; font-size: 8px; letter-spacing: .14em; white-space: normal; }
  .sticky, .sticky.right { justify-content: center; align-items: flex-end; padding: 72px 16px 40px; }
  .sticky.center { align-items: center; }
  .panel, .panel.wide, .panel.narrow { max-width: 100%; padding: 22px 20px; background: rgba(3, 17, 17, .72); }
  .plates { display: flex; }
  .plates img { height: 84px; }
  .plates.one img { height: 150px; }
  .lib img { max-height: 34vh; }
  .press { gap: 22px; }
  .quote blockquote { font-size: 16.5px; }
  #press .sticky { position: relative; height: auto; min-height: 100svh; }
  #press { min-height: auto; }
  #story .sticky { position: relative; height: auto; min-height: 100svh; }
  #story { min-height: auto; }
}

/* ============================== the geometry rail ============================== */
:root { --railw: clamp(300px, 26vw, 440px); }
.calrail { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100svh; z-index: 4; pointer-events: none; }
.calprobe { position: absolute; width: var(--railw); height: 0; visibility: hidden; }
/* the hero opens on the wheels: the 3D theatre dims behind them, the title sits on its own dark pool, notches hide until docked */
.in-hero #world { opacity: 0 !important; }   /* beats the world's inline fade */
/* the hero is the graphic: the wheels in firelight over a faint warm dust haze, nothing photographic behind the title */
.in-hero .calrail { background: radial-gradient(70% 60% at 50% 52%, rgba(120,64,20,.22), rgba(20,10,4,.0) 70%), radial-gradient(40% 30% at 30% 80%, rgba(255,150,60,.08), transparent 70%); }
.calrail { transition: background .8s; }
.in-hero .rail { opacity: 0; pointer-events: none; }
.has-wheels .rail { transition: opacity .6s; }
.hero-copy { position: relative; }
.hero-copy::before { content: ''; position: absolute; inset: -18% -26%; z-index: -1; background: radial-gradient(closest-side, rgba(2, 12, 12,.82), rgba(2, 12, 12,.5) 60%, transparent); pointer-events: none; }
/* webgl-smooth §2: no filter on a canvas that redraws every scrolled frame. The rail canvas is viewport-sized, so its
   drop-shadow() re-rasterised the whole screen on every scrolled frame; the rail now casts no CSS shadow */
.calrail canvas { width: 100%; height: 100%; display: block; }
.calglow { position: absolute; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,214,140,.85), rgba(255,140,40,.35) 45%, transparent); mix-blend-mode: screen; transition: opacity .3s; }
.has-wheels .rail { inset: 0 0 0 auto; width: var(--railw); height: 100vh; transform: none; display: block; pointer-events: none; z-index: 31; }
.has-wheels .rail a { position: absolute; transform: translate(calc(-100% + 8px), -50%); pointer-events: auto; padding: 6px 0; }
.has-wheels .rail a i { background: rgba(2, 12, 12,.6); }
.has-wheels .sticky.right { padding-right: calc(var(--railw) + 12px); }
.has-wheels .sticky:not(.right):not(.center) { padding-right: var(--railw); }
.has-wheels .sticky.center { padding-right: var(--railw); }
.calplate { position: fixed; right: 18px; bottom: 16px; z-index: 32; display: grid; gap: 3px; justify-items: end; text-align: right; pointer-events: none;
  font: 500 9px/1.25 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-shadow: 0 1px 6px #000; }
.calplate b { font: 500 11px/1.2 var(--sans); letter-spacing: .16em; color: var(--gold-hi); }
.calplate #cp-lc { font: 400 15px/1.1 'Cinzel', serif; letter-spacing: .12em; color: var(--gold); }
.calplate.arrived #cp-lc, .calplate.arrived b { color: #ffe3a3; text-shadow: 0 0 14px rgba(232,196,122,.8); }
.presenting .calplate { opacity: .75; }

/* ============================== the arrival ============================== */
.arrival { min-height: 300vh; }
.arrive { width: min(980px, 100%); }
.arrive-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(22px, 4vw, 64px); align-items: center; text-align: left; margin-top: 14px; }
.is-wrap { position: relative; margin: 0; padding: 18px 22px; background: rgba(3, 17, 17,.62); border: 1px solid var(--border); }
.is-morley { position: absolute; left: -46px; top: 50%; height: 104%; width: auto; transform: translateY(-50%); opacity: .14; filter: invert(1) sepia(1) saturate(2.4) brightness(1.1); mix-blend-mode: screen; pointer-events: none; }
.is-col { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.is-col li { display: grid; grid-template-columns: 46px 46px auto; align-items: center; gap: 10px; opacity: .08; transform: translateY(8px) scale(.96); transition: opacity .7s, transform .7s; }
.is-col li.lit { opacity: 1; transform: none; }
.is-n { width: 42px; height: 42px; }
.is-g { width: 44px; height: 44px; filter: invert(1) sepia(1) saturate(3) hue-rotate(-6deg) brightness(1.05); mix-blend-mode: screen; }
.is-g9 { grid-column: 1 / span 2; justify-self: center; font: 500 20px/1 'Cinzel', serif; color: var(--gold); letter-spacing: .1em; }
.is-l { font: 500 10px/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.is-col li:not(:has(.is-g)) .is-l { grid-column: 3; }
.is-col li:not(:has(.is-g)):not(:has(.is-g9)) .is-n { grid-column: 1; }
.is-wrap figcaption { margin-top: 10px; font: 500 8.5px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.reading { padding: 24px 28px; background: rgba(6,5,4,.66); border: 1px solid var(--border); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: .15; transform: translateY(10px); transition: opacity 1.1s, transform 1.1s; }
.reading.lit { opacity: 1; transform: none; }
.reading h2 { font-size: clamp(26px, 3vw, 44px); margin: 0 0 16px; }
.reading .rl { font: italic 400 clamp(18px, 1.7vw, 24px)/1.45 'Cormorant Garamond', serif; color: var(--ink, #f4ead6); margin: 0 0 10px; }
.reading.draft .rl { color: var(--dim); font-style: normal; font: 500 11px/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; border-left: 2px dashed var(--ember, #e0763a); padding-left: 12px; }
.reading-caveat, .reading-sources { font: 500 9px/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin: 14px 0 0; }
.credit-line { max-width: 640px; margin: 8px auto 0; font: 400 9px/1.5 var(--sans); letter-spacing: .08em; color: var(--dim); text-align: center; }
.credit-line a { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .is-col li, .reading { opacity: 1; transform: none; transition: none; } }

@media (max-width: 760px) {
  .calrail { inset: 0; width: 100vw; height: 100svh; }
  .calglow { width: 110px; height: 110px; margin: -55px 0 0 -55px; }
  .has-wheels .rail { display: none; }
  .has-wheels .sticky, .has-wheels .sticky.right, .has-wheels .sticky:not(.right):not(.center), .has-wheels .sticky.center { padding-right: 16px; padding-bottom: 132px; }
  .calplate { right: auto; left: 12px; bottom: 122px; justify-items: start; text-align: left; gap: 1px; }
  .calplate #cp-lc { font-size: 12px; } .calplate #cp-night { display: none; }
  .arrive-grid { grid-template-columns: 1fr; text-align: center; }
  .is-wrap { justify-self: center; }
  .is-morley { display: none; }
  .label-covered .credit { opacity: 0 !important; }
  .count-plate { bottom: 128px; }
}
/* the bookings list arrives line by line over a soft dawn */
.reading-kicker { font: 500 9.5px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.reading .rl { opacity: 0; transform: translateY(8px); transition: opacity .9s, transform .9s; }
.reading .rl.lit { opacity: 1; transform: none; }
.reading-closing { font: 500 clamp(15px, 1.4vw, 19px)/1.3 'Cinzel', serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); margin: 16px 0 0; opacity: 0; transition: opacity 1.2s; }
.reading-closing.lit { opacity: 1; text-shadow: 0 0 18px rgba(232,196,122,.6); }
.dawn { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .6s; }
.rainlight { position: absolute; inset: -20% 0 0; opacity: .5; mix-blend-mode: screen;
  background: repeating-linear-gradient(100deg, transparent 0 22px, rgba(150,200,255,.07) 22px 23px, transparent 23px 61px),
              linear-gradient(180deg, rgba(40,70,120,.25), transparent 40%, rgba(30,60,110,.28));
  animation: rain 1.1s linear infinite; }
@keyframes rain { to { transform: translate3d(-14px, 90px, 0); } }
.skypair { position: absolute; left: 7%; top: 16%; display: flex; align-items: center; gap: 14px; }
.skypair .star { width: 9px; height: 9px; border-radius: 50%; background: #fff8e6; box-shadow: 0 0 10px 3px rgba(255,244,214,.95), 0 0 46px 14px rgba(255,226,163,.35); }
.skypair .moon { width: 30px; height: 30px; margin-top: 26px; fill: #f3ead8; filter: drop-shadow(0 0 8px rgba(243,234,216,.7)); transform: rotate(-28deg); }
.skypair span { font: 500 8.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: rgba(244,234,214,.55); margin-top: 40px; }
@media (prefers-reduced-motion: reduce) { .rainlight { animation: none; } .reading .rl, .reading-closing { opacity: 1; transform: none; transition: none; } }
@media (max-width: 760px) { .skypair { top: 70px; left: 14px; } .skypair span { display: none; } }
/* a dark photograph gets room: no extra shading over it, and its blurred surround stays dimmer than the frame */
#vision .vshade { transition: opacity .6s; }
#vision.light .vshade { opacity: .25; }

.has-wheels .arrival .sticky.center { padding-right: calc(var(--railw) * .7); }
@media (max-width: 760px) { .reading { padding: 18px 16px; } }
/* film grain over everything (very light; stepped so it shimmers without costing a frame) */
.grain { position: fixed; inset: -50%; z-index: 45; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(-1%, 1%); } }
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }
/* the one obvious control: ▶ PLAY THE SHOW (gold) + a speaker icon + a tiny shortcuts hint */
.tools { display: flex; align-items: center; gap: 8px; }
.playshow { font: 600 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #140d05; background: linear-gradient(180deg, #ffe2a3, #d9a64e); border: 0; padding: 11px 16px; cursor: pointer; box-shadow: 0 0 22px rgba(232,196,122,.35); }
.playshow:hover { filter: brightness(1.08); } .playshow.on { background: rgba(2, 12, 12,.6); color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold); }
.sound.icon { width: 36px; height: 34px; padding: 0; display: grid; place-items: center; }
.sound.icon svg { width: 18px; height: 18px; }
.sound.icon[aria-pressed="false"] .wave { opacity: .25; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.keys { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--dim); font: 600 11px/1 var(--sans); cursor: help; }
.esc-hint { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 60; margin: 0; padding: 8px 14px; background: rgba(2, 12, 12,.75); border: 1px solid var(--border); font: 500 10px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.presenting .topbar { opacity: 1; pointer-events: auto; background: transparent; }
.presenting .topbar .brand, .presenting .topbar .keys { opacity: 0; }
@media (max-width: 760px) { .keys { display: none; } .playshow { padding: 10px 12px; font-size: 9.5px; } }
/* the 2,000 sits in the dark upper part of the ensemble image, never over faces */
#clients .sticky { align-items: flex-start; padding-top: 11vh; }
@media (max-width: 760px) { #clients .sticky { padding-top: 72px; } }
/* atmosphere only: the 3D world stays as a dim, soft haze behind the photography */
/* (the global .atmos haze is retired: the world is crisp wherever it shows) */
.leds { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .8s; }

.arrive { transition: opacity 1s; }

/* ======================================================================================================================
   2026-10-19 review fixes (builder B). Loaded before rail.css; nothing here styles the wheels, rail, plate or arrival.
   ====================================================================================================================== */

/* ---------- credits and the "Concept render" label: legible, sentence case, 11px+ (fm-vfx P2-18) ---------- */
.credit { font: 500 11.5px/1.35 var(--sans); letter-spacing: .03em; text-transform: none; color: rgba(244,234,214,.92); bottom: 16px;
  max-width: min(560px, calc(100vw - 2 * var(--gutter))); white-space: normal; }
.vlabel.render { color: #f6e2b0; }
.vlabel.render::before { background: var(--gold); border-color: var(--gold); }

/* ---------- photo layouts: full bleed, text only in each photograph's empty space ---------- */
/* Desktop: the photograph fills the screen as in v2 (whole, contained, over a blurred copy of itself), clear of the rail.
   The chapter's words are placed by main.js layoutText() in the first zone of that photograph that touches no
   performer, face or fire (per-image subject boxes in SUBJ); with no clean zone the words wait for a later frame. */
:root { --ph-t: 4.5vh; --ph-b: 4.5vh; --ph-l: 2vw; --ph-r: 2vw; }
.has-wheels { --ph-r: calc(var(--railw, 300px) + 8px); }
.vslide::after { inset: var(--ph-t) var(--ph-r) var(--ph-b) var(--ph-l); background-position: center; }
.vslide::before { filter: blur(40px) brightness(.42) saturate(1.1); }
.vslide { transform-origin: calc(var(--ph-l) + (100% - var(--ph-l) - var(--ph-r)) / 2) 50%; }
.note { font: 400 12.5px/1.5 var(--sans) !important; color: var(--dim) !important; }

@media (min-width: 761px) and (min-aspect-ratio: 1/1) {
  .zoned { position: absolute !important; margin: 0 !important; width: clamp(250px, 19vw, 380px); max-width: none !important; transition: none; }
  .zoned h2 { font-size: clamp(24px, 2.2vw, 38px) !important; margin-bottom: 8px; } .zoned h2.xl { font-size: clamp(26px, 2.3vw, 42px) !important; white-space: nowrap; }
  .zoned .lede, .zoned .line { font-size: clamp(16px, 1.15vw, 21px) !important; margin: 4px 0 6px !important; }
  .zoned .eyebrow { margin-bottom: 8px; }
  .zoned.zone-none { visibility: hidden; }
  .zoned.zone-cover { visibility: visible; z-index: 6; padding: 20px 22px 18px !important; }   /* no GPU: the words on their own panel (parchment from v2.css) */
  html.vis-up .zoned .more { display: none !important; }
  #clients .zoned { width: auto; }
  #clients .guests { display: flex; align-items: baseline; justify-content: center; gap: clamp(18px, 2.4vw, 44px); flex-wrap: nowrap; white-space: nowrap; }
  #clients .big-num { flex-direction: row; align-items: baseline; gap: .55em; }
  #clients .big-num b { font-size: clamp(64px, 9vh, 128px); }
  #clients .look-up { margin: 0; }
  #clients .eyebrow { display: none; }
  #story .panel p { font-size: 14px; line-height: 1.55; }
  #story .lib img { max-height: 22vh; }
  /* after the photographs burn away the full copy returns in a left column over the dimmed stage */
  #troupe .panel, #fire .panel, #worlds .panel, #aerial .panel, #story .panel { max-width: clamp(320px, 30vw, 520px); }
}
@media (min-width: 761px) and (min-aspect-ratio: 1/1) and (max-height: 960px) { #story .lib { display: none; } }
/* a soft scrim that belongs to the words, never a box */
#troupe .panel::before, #fire .panel::before, #worlds .panel::before, #aerial .panel::before, #story .panel::before, #clients .guests::before {
  display: block; content: ''; position: absolute; inset: -34% -26%; z-index: -1; border: 0; width: auto; height: auto; pointer-events: none;
  background: radial-gradient(closest-side, rgba(2, 12, 12,.62), rgba(2, 12, 12,.36) 55%, rgba(2, 12, 12,0)); }
#troupe .panel, #fire .panel, #worlds .panel, #aerial .panel, #story .panel, #clients .guests { isolation: isolate; position: relative; }

/* portrait (tablets and phones): the photograph on top, the text in the dark below it */
@media (max-aspect-ratio: 1/1) {
  :root { --ph-t: 72px; --ph-h: 44vh; --ph-l: 14px; --ph-r: 14px; }
  .has-wheels { --ph-r: 14px; }
  .vslide::after { inset: var(--ph-t) var(--ph-r) auto var(--ph-l); height: var(--ph-h); }
  #vision[data-lay="split"] .vshade, #vision[data-lay="below"] .vshade { background: linear-gradient(180deg, rgba(2, 12, 12,0) calc(var(--ph-t) + var(--ph-h)), rgba(2, 12, 12,.92) calc(var(--ph-t) + var(--ph-h) + 28px)); }
  #troupe .sticky, #fire .sticky, #worlds .sticky, #aerial .sticky, #clients .sticky, #story .sticky {
    align-items: flex-start; justify-content: center; padding-top: calc(var(--ph-t) + var(--ph-h) + 34px); }
  .credit { top: calc(var(--ph-t) + var(--ph-h) + 6px); bottom: auto; left: var(--ph-l); }
  #clients .guests { text-align: center; }
  #clients .big-num b { font-size: clamp(56px, 12vw, 140px); }
}
@media (max-width: 760px) {
  :root { --ph-t: 64px; --ph-h: 31svh; --ph-l: 12px; --ph-r: 12px; }
  .credit { font-size: 11px; padding: 0; background: none; left: 12px; }
  #troupe .sticky, #fire .sticky, #worlds .sticky, #aerial .sticky, #clients .sticky { padding-top: calc(var(--ph-t) + var(--ph-h) + 30px); padding-left: 18px; padding-right: 18px; }
  .panel h2 { font-size: 24px; margin-bottom: 10px; } .panel h2.xl { font-size: 32px; }
  .panel .lede { font-size: 17px; } .panel .line { font-size: 17px !important; margin: 6px 0 8px !important; }
  .triad { font-size: 15px; gap: 14px; margin: 2px 0; } .triad li { gap: 14px; }
  .plates { display: none; } .no-gl .plates { display: flex; }
  .panel .eyebrow { margin-bottom: 8px; }
}
/* no cards on the photo chapters: type on the dark, never a translucent box in the middle of a picture */
#troupe .panel, #fire .panel, #worlds .panel, #aerial .panel, #story .panel {
  background: none; border: 0; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; text-shadow: 0 1px 14px rgba(0,0,0,.9); }
#troupe .panel::after, #fire .panel::after, #worlds .panel::after, #aerial .panel::after, #story .panel::after { display: none; }
@media (max-aspect-ratio: 1/1), (max-width: 760px) { #troupe .panel::before, #fire .panel::before, #worlds .panel::before, #aerial .panel::before, #story .panel::before, #clients .guests::before { display: none; } }

/* ---------- the contact card sits on a solid panel, after the photograph has burned away (fm-vfx P1-3) ---------- */
.contact-card { background: rgba(3, 17, 17,.93); border: 1px solid var(--border); padding: clamp(26px, 3vw, 44px) clamp(22px, 3.4vw, 52px); opacity: 0; }
.contact-card::before { display: none; }
.no-gl .contact-card { opacity: 1; }
.legal { font-size: 11.5px; }
.credit-line { font-size: 11px; }
@media (max-width: 760px) { .contact-card { transform: none; padding: 22px 16px; } }

/* ---------- the avenue: words that come out of the Metatron gate ---------- */
.emerge { position: fixed; inset: 0; z-index: 6; pointer-events: none; opacity: 0; transition: opacity .35s; }
.emerge.on { opacity: 1; }
.emerge-i { position: absolute; left: 0; top: 0; margin: 0; white-space: nowrap; text-align: center; opacity: 0; will-change: transform, opacity, filter; isolation: isolate; }
.emerge-i::before { content: ''; position: absolute; inset: -70% -16%; z-index: -1; background: radial-gradient(closest-side, rgba(2, 12, 12,.6), rgba(2, 12, 12,.28) 58%, transparent); }
.emerge-i { transition: opacity .35s cubic-bezier(.3,.6,.3,1); }
.em-title { font: 400 clamp(26px, 7vw, 80px)/1 var(--serif); letter-spacing: .14em; padding-left: .14em; text-transform: uppercase; color: #f7e4b6;
  text-shadow: 0 0 28px rgba(255,170,80,.35), 0 2px 18px rgba(0,0,0,.8); transition: text-shadow .4s; }
.em-title.glow { text-shadow: 0 0 14px rgba(255,214,140,.95), 0 0 46px rgba(255,140,40,.75); }
.em-word { font: 500 clamp(13px, 1.45vw, 26px)/1 var(--sans); letter-spacing: .52em; padding-left: .52em; text-transform: uppercase; color: var(--fg); text-shadow: 0 1px 14px rgba(0,0,0,.95); }
.em-word.glow { text-shadow: 0 0 12px rgba(255,214,140,.9), 0 0 30px rgba(255,140,40,.6); }
.em-line { width: min(88vw, 760px); white-space: normal; font: italic 400 clamp(17px, 1.55vw, 28px)/1.35 var(--book); color: var(--gold-hi); text-shadow: 0 1px 14px rgba(0,0,0,.95); }
@media (max-width: 760px) { .em-word { letter-spacing: .3em; padding-left: .3em; } .em-title { letter-spacing: .1em; padding-left: .1em; } }

/* ---------- sound: on by default; one quiet line until the browser lets it start ---------- */
.sound-cue { position: absolute; left: 50%; bottom: 118px; transform: translateX(-50%); margin: 0; font: italic 400 16px/1.3 var(--book); letter-spacing: .04em; color: var(--gold-hi);
  text-shadow: 0 1px 10px #000; white-space: nowrap; animation: cueBreath 3.2s ease-in-out infinite; pointer-events: none; }
.sound-cue[hidden] { display: none; }
@keyframes cueBreath { 0%, 100% { opacity: .72; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sound-cue { animation: none; opacity: .9; } }
@media (hover: hover) and (pointer: fine) { .sound-cue::after { content: ''; } }
@media (max-width: 760px) { .sound-cue { bottom: 196px; font-size: 15px; } }

/* ---------- phone header: never wider than the screen (codex P1-6) ---------- */
.playshow { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.playshow b { font-weight: 400; }
.tools { flex: 0 1 auto; min-width: 0; }
@media (max-width: 420px) { .playshow .pl-t { display: none; } .playshow { padding: 10px 13px; } }

/* ---------- big rooms: type scales up past 1920 CSS px (fm-vfx P1-25) ---------- */
@media (min-width: 2200px) { :root { --z: 1.28; } }
@media (min-width: 2900px) { :root { --z: 1.6; } }
@media (min-width: 3600px) { :root { --z: 1.95; } }
@media (min-width: 2200px) {
  .panel, .press, .guests, .contact-card, .hero-copy, .motion, .credit, .count-plate, .topbar .tools, .em-word, .em-line { zoom: var(--z); }
  #troupe .panel, #fire .panel, #worlds .panel, #aerial .panel, #story .panel { width: calc(var(--col) / var(--z)); max-width: calc(var(--col) / var(--z)); }
  :root { --col: clamp(290px, 23vw, 700px); }
}
/* the hero's dark pool extended 26-30% past each side and the title did not fit: the phone page measured 468px wide */
@media (max-width: 760px) {
  .hero-copy::before { left: -6%; right: -6%; }
  .hero-title { font-size: clamp(26px, 8vw, 40px); letter-spacing: .04em; white-space: normal; text-align: center; }
  .hero-copy { max-width: 100%; }
}
html, body { overflow-x: clip; }
.ch .sticky { transition: opacity .38s cubic-bezier(.3,.6,.3,1); }
@media (max-width: 760px) { #contact .sticky { position: relative; height: auto; min-height: 100svh; padding-top: 76px; } #contact { min-height: auto; } }
/* portrait tablets keep the desktop rail on the right: the photograph stays clear of it */
@media (max-aspect-ratio: 1/1) and (min-width: 761px) { .has-wheels { --ph-r: calc(var(--railw, 300px) + 8px); } }

/* ---------- client 2026-10-19: "i dont like the images coming out of the back ground" ----------
   No blurred, enlarged copy of a photo behind itself; behind a photograph there is black. No burn or fade up out of the
   background: a chapter's photographs leave with a hard-edged wipe that uncovers the crisp 3D stage, and change through
   a quick dip to black. Motion is a fixed-scale parallax drift of the photograph itself (never a scale-up). */
#vision { -webkit-mask-image: none !important; mask-image: none !important; clip-path: inset(0 0 0 var(--wipe, 0%)); }
#vision { clip-path: none; }   /* no sideways wipes: photos come and go by a quick cut through black */
.vslide { background: rgba(2, 12, 12, .7); transform: none !important; }   /* G2: a 70% scrim behind the photo, the world breathing at the edges */
.vslide::before { display: none !important; }
.vslide::after { transform: translate3d(0, var(--py, 0px), 0) scale(var(--ps, 1)); will-change: transform; }
.vshade { display: none; }
@media (prefers-reduced-motion: reduce) { .vslide::after { transform: none; } }

/* ---------- composites: pairs, floats and stacks; every item whole, revealed by a clip-path wipe ---------- */
.cbox { position: absolute; display: grid; place-items: center; will-change: transform, opacity; opacity: 0; scale: .94; transition: opacity .6s ease, scale .9s cubic-bezier(.2,.7,.2,1); }   /* a compositor-only scale reveal (the clip-path wipe repainted three video boxes every frame) */
.cbox.on { opacity: 1; scale: 1; }
.cbox img, .cbox video { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; object-fit: contain; }
.cbox.cv video { width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) { .cbox { transition: none; scale: 1; } }

/* effects layer: over the photographs, under the words */
.fx { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .8s; }
/* a slow, faint light sweep across a chapter's opening frame */
/* compositor-only: a narrow band of light translated across (the full-screen background-position + screen-blend
   version repainted the whole vision layer every frame and halved the frame rate under the aerial stack) */
#vision::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 34%; pointer-events: none; opacity: 0; will-change: transform, opacity;
  background: linear-gradient(105deg, transparent 20%, rgba(255,226,170,.075) 50%, transparent 80%); transform: translateX(-110%); }
#vision.sweep::after { animation: sweep 2.8s cubic-bezier(.3,.1,.3,1) both; }
@keyframes sweep { 0% { opacity: 1; transform: translateX(-110%); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(310%); } }
@media (prefers-reduced-motion: reduce) { #vision.sweep::after { animation: none; } }

/* composites float over the live 3D stage (no dead black between them) */
.vslide:has(.cbox) { background: rgba(2, 12, 12, .7); }
/* (no CSS filter on the stack's back video: a filtered full-frame layer re-rasterised every frame) */

/* ---------- flame: a 2.39:1 letterbox while the line of fire leads; the words live in the bottom bar ---------- */
.lbox { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
.lbox i { position: absolute; left: 0; right: 0; height: 12vh; background: #000; transform: scaleY(0); transition: transform .7s cubic-bezier(.7,0,.2,1); }
.lbox i:first-child { top: 0; transform-origin: 50% 0; } .lbox i:last-child { bottom: 0; transform-origin: 50% 100%; }
html.lb-on .lbox i { transform: scaleY(1); }
@media (min-width: 761px) and (min-aspect-ratio: 1/1) {
  html.lb-on #fire .sticky { align-items: flex-end; padding-bottom: 0; }
  html.lb-on #fire .panel { max-width: none; width: calc(100% - var(--railw, 300px) - 40px); height: 12vh; display: flex; align-items: center; gap: 28px; padding: 0; }
  html.lb-on #fire .panel::before { display: none; }
  html.lb-on #fire .panel > * { margin: 0 !important; }
  html.lb-on #fire .panel .eyebrow::before { display: none !important; }
  html.lb-on #fire .panel h2.xl { font-size: clamp(26px, 2.4vw, 44px); white-space: nowrap; }
  html.lb-on #fire .panel .lede, html.lb-on #fire .plates { display: none; }
}

html.film-on #world { opacity: 0 !important; transition: opacity .6s; }

/* §2.11 dawn: the horizon goes black -> indigo -> one thin gold line, low in the east */
.dawn .horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 46vh; pointer-events: none;
  background: linear-gradient(0deg, rgba(10,8,20,.0) 0, rgba(40,36,90,.45) 22%, rgba(232,176,92,.55) 23.2%, rgba(40,36,90,.38) 24.6%, rgba(20,16,44,.18) 60%, transparent); }

/* §2.12 the contact card sits left, over black sky, clear of the centre fire */
@media (min-width: 761px) and (min-aspect-ratio: 1/1) { #contact .sticky.center { justify-content: flex-start; padding-left: var(--gutter); } #contact .contact-card { max-width: min(640px, 40vw); } }

/* ---------- EFFECTS-SPEC-PHONE §2: per-window phone layouts (TOP ceremony, BOTTOM flame, TALL aerial/lucent, FULL arrival) ---------- */
@media (max-aspect-ratio: 1/1) {
  html.ph-top, html.ph-bottom, html.ph-tall, html.ph-full { --ph-t: var(--pht); --ph-h: var(--phh); }
  html.ph-bottom #fire .sticky { align-items: flex-start; padding-top: 72px !important; }
  html.vis-up.ph-tall .ch .sticky > .panel, html.vis-up.ph-full .ch .sticky > .panel { visibility: hidden; }
}
@media (max-width: 760px) {
  #light { min-height: 520svh; }                                    /* §1.1: each hall frame gets ~0.35 screen */
  .em-word { font-size: 17px; letter-spacing: .2em; padding-left: .2em; }
  .em-line { font-size: 17px; }
  #story .sticky { padding-top: 42vh !important; }                  /* §3 bug 1: the copy flows below the mandala */
  #story .sticky, #motion .sticky, #press .sticky { padding-top: max(72px, var(--pad-top, 72px)); }
}

@media (max-width: 760px) { #troupe .sticky { align-items: flex-end; } }   /* phones: the copy under the carousel, above the dial */

@media (max-width: 760px) {   /* EFFECTS-SPEC-PHONE §3 bug 1: flowing copy reads in a dark band, never over the stage's graphics */
  #story .panel, #press .press { background: linear-gradient(180deg, rgba(2, 12, 12,0), rgba(2, 12, 12,.9) 56px, rgba(2, 12, 12,.94)) !important; padding-top: 64px !important; }
}

/* G4: the rail docks to <= 72px during the avenue (desktop); it slides back for the hand-off */
.calrail, .has-wheels .rail, .calplate { transition: transform .7s cubic-bezier(.6,0,.2,1), opacity .5s; }
@media (min-width: 761px) {
  html.rail-docked .calrail, html.rail-docked .has-wheels .rail, html.rail-docked.has-wheels .rail { transform: translateX(calc(var(--railw, 300px) - 72px)); }
  html.rail-docked .calplate { opacity: 0; }
}

/* ---------- In Motion: the film card is the moment, large and alive ---------- */
@media (min-width: 761px) {
  #motion { min-height: 170vh; }
  #motion .sticky { justify-content: center; padding-right: var(--railw, 300px); }
  .motion.panel { width: min(1180px, calc(100vw - var(--railw, 300px) - 2 * var(--gutter))); max-width: none; padding: 26px 30px; background: rgba(3, 17, 17, .82); }
  .motion h2 { font-size: clamp(30px, 2.6vw, 48px); }
  .reels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.player .loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.player .poster { opacity: 0; }   /* the loop (with its own poster) stands in for the still */
.player.live .loop { opacity: 0; pointer-events: none; }
.play { box-shadow: 0 0 0 10px rgba(2, 12, 12,.25), 0 0 40px rgba(232,196,122,.35); }

/* ---------- Press: one quote at a time, lit by a torch ---------- */
@media (min-width: 761px) { #press { min-height: 160vh; } #press .sticky.center { justify-content: flex-start; padding-left: var(--gutter); } }   /* gate: a shorter hold on the quotes */
#press .press { position: relative; max-width: min(1080px, calc(100vw - 2 * var(--gutter))); min-height: 0; display: grid; align-items: center;
  padding: clamp(40px, 5vw, 84px) clamp(36px, 5vw, 96px); border: 1px solid rgba(232,196,122,.28); overflow: hidden;
  background: radial-gradient(120% 90% at 8% 100%, rgba(255,150,60,.16), transparent 55%),
    repeating-linear-gradient(97deg, rgba(255,255,255,.012) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, #17120d, #0d0a07); }
#press .press::after { content: ''; position: absolute; left: -10%; bottom: -20%; width: 60%; height: 80%; pointer-events: none; will-change: opacity;
  background: radial-gradient(closest-side, rgba(255,160,70,.22), transparent); animation: torch 2.6s ease-in-out infinite alternate; }
@keyframes torch { 0% { opacity: .65; } 40% { opacity: 1; } 70% { opacity: .8; } 100% { opacity: .95; } }
@media (prefers-reduced-motion: reduce) { #press .press::after { animation: none; } }
#press .quote { grid-area: 1 / 1; transition: opacity .7s ease; }
#press .quote:not(.cur) { position: absolute; inset: auto 0; visibility: hidden; opacity: 0; }   /* Pete 2026-11-26: the card hugs the quote on show (no empty dark box) */
@media (prefers-reduced-motion: reduce) { #press .quote:not(.cur) { position: static; visibility: visible; opacity: 1; } }
#press .quote blockquote { font: italic 500 clamp(24px, 2.25vw, 42px)/1.34 var(--book); color: #ead6ad;
  text-shadow: 0 -1px 0 rgba(0,0,0,.9), 0 1px 0 rgba(255,225,170,.16), 0 0 26px rgba(255,150,60,.18); }
#press .quote figcaption { margin-top: 18px; font-size: 12px; }
#press [data-words] .w { opacity: .14; }
#press [data-words] .w.lit { opacity: 1; }
@media (prefers-reduced-motion: reduce) { #press [data-words] .w { opacity: 1; } }
@media (max-width: 760px) { #press .press { min-height: 0; padding: 64px 20px 28px !important; } #press .quote blockquote { font-size: 19px; } }

@media (min-width: 761px) { #press .press { max-width: min(1080px, calc(100vw - var(--railw, 300px) - 2 * var(--gutter))); } }
@media (max-width: 760px) { #press .press { width: 100%; max-width: 100%; } }
@media (max-width: 760px) { html.flow-copy .calplate { opacity: 0 !important; } }
/* the carousel now centres left of the rail: its words sit low on the plaza floor, under the panels, never over them */
@media (min-width: 761px) and (min-aspect-ratio: 1/1) { #troupe .sticky { align-items: flex-end; padding-bottom: 7vh; } }

/* ---------- phone-lite (html.lite, set in index.html): cheap compositing for real phone GPUs ---------- */
html.gl-lost #world { opacity: 0 !important; }
html.gl-lost .still { opacity: 1 !important; }
html.lite .grain, html.lite .fx, html.lite .leds, html.lite .vignette { display: none !important; }   /* no full-screen blended layers */
html.lite .panel, html.lite .press, html.lite .reading, html.lite .contact-card { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html.lite .vslide, html.lite .cbox, html.lite .emerge-i { will-change: auto; }
html.lite #vision::after { display: none; }
html.lite .has-wheels .rail { height: 100svh; }

/* ---------- phones: nothing prints over copy, nothing under Safari's floating URL bar ---------- */
@media (max-width: 760px) {
  .calplate { display: none !important; }                     /* "Date is over the text": the date lives in the hero and the reading */
  html:not(.in-hero) .calrail { opacity: 0 !important; transition: opacity .4s; }   /* the half-dial collided with the URL bar */
  .has-wheels .sticky, .has-wheels .sticky.right, .has-wheels .sticky:not(.right):not(.center), .has-wheels .sticky.center { padding-bottom: calc(40px + env(safe-area-inset-bottom)) !important; }
  html.reading-flow #work { min-height: auto !important; }
  html.reading-flow #work .sticky { position: relative; height: auto; min-height: 0; display: block; padding: 88px 18px calc(56px + env(safe-area-inset-bottom)) !important; }
  html.reading-flow #work .arrive { opacity: 1 !important; transform: none !important; width: 100%; }
  html.reading-flow #reading { opacity: 1; transform: none; padding: 22px 18px; }
  html.reading-flow .reading .rl { font-size: 20px; line-height: 1.45; margin-bottom: 14px; }
  html.reading-flow .reading-caveat, html.reading-flow .reading-sources { font-size: 12px; letter-spacing: .04em; text-transform: none; line-height: 1.55; }
  html.reading-flow .reading-kicker { font-size: 11px; }
  html.reading-flow .reading-kicker, html.reading-flow .reading-caveat, html.reading-flow .reading-sources { opacity: 0; transition: opacity .8s; }
  html.reading-flow .reading-kicker.lit, html.reading-flow .reading-caveat.lit, html.reading-flow .reading-sources.lit { opacity: 1; }
}
/* phone-lite: the press words relit with a 22px glow and a pulsing torch layer repainted every frame on WebKit */
html.lite [data-words] .w, html.lite [data-words] .w.lit { text-shadow: none !important; transition: opacity .3s linear; }
html.lite #press .press::after { animation: none; }
html.lite #press .quote blockquote { text-shadow: 0 1px 0 rgba(0,0,0,.9); }

/* ---------- spin and open: hit area, hint, lightbox ---------- */
.spin-hit { position: fixed; left: 0; top: 64px; width: calc(100vw - var(--railw, 300px)); height: 62vh; z-index: 6; display: none; touch-action: pan-y; cursor: grab; -webkit-tap-highlight-color: transparent; outline: none; }
.spin-hit.on { display: block; }
.spin-hit.grabbing { cursor: grabbing; }
.spin-hit[data-ch="light"] { cursor: pointer; top: 18vh; height: 58vh; }
.spin-hit:focus-visible { box-shadow: inset 0 0 0 2px rgba(95,179,196,.7); }
@media (min-width: 761px) and (min-aspect-ratio: 1/1) { .spin-hit[data-ch="troupe"] { left: 34vw; width: calc(66vw - var(--railw, 300px)); top: 10vh; height: 64vh; } }
@media (max-width: 760px) { .spin-hit { width: 100vw; top: 70px; height: 46svh; } .spin-hit[data-ch="light"] { top: 22svh; height: 44svh; } }
.spin-hint { position: fixed; left: 50%; bottom: 13vh; transform: translateX(-50%); z-index: 7; margin: 0; padding: 7px 14px; font: 500 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  color: #e8dcc0; background: rgba(2, 12, 12,.6); border: 1px solid rgba(95,179,196,.45); opacity: 0; transition: opacity .5s; pointer-events: none; white-space: nowrap; }
.spin-hint.on { opacity: 1; }
@media (min-width: 761px) { .spin-hint { left: calc((100vw - var(--railw, 300px)) * .62); } }
@media (max-width: 760px) { .spin-hint { bottom: auto; top: 76px; } }
html.lb-open body { position: fixed; left: 0; right: 0; overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 80; }
.lb[hidden] { display: none; }
.lb-dim { position: absolute; inset: 0; background: rgba(3,4,6,.96); opacity: 0; transition: opacity .45s ease; }
.lb.on .lb-dim { opacity: 1; }
.lb-fig { position: absolute; margin: 0; transform-origin: 0 0; will-change: transform, opacity; }
.lb-media { position: absolute; inset: 0; box-shadow: 0 0 0 1px rgba(200,150,46,.55), 0 30px 80px rgba(0,0,0,.6); background: #000; }
.lb-media img, .lb-media video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.lb-cap { position: absolute; left: 0; right: 0; top: calc(100% + 12px); font: 500 12px/1.4 var(--sans); letter-spacing: .06em; color: #e8dcc0; text-align: center; }
.lb-btn { position: absolute; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(232,220,192,.45); background: rgba(2, 12, 12,.55); color: #e8dcc0; font: 400 26px/1 var(--serif); cursor: pointer; }
.lb-btn:hover, .lb-btn:focus-visible { border-color: #5fb3c4; color: #fff; outline: none; }
.lb-close { top: 18px; right: 18px; font-size: 18px; }
.lb-prev { left: 18px; top: 50%; margin-top: -23px; } .lb-next { right: 18px; top: 50%; margin-top: -23px; }
.lb-btn[hidden] { display: none; }
@media (max-width: 760px) { .lb-prev, .lb-next { top: auto; bottom: 22px; margin: 0; } .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); } }

/* ---------- type and ornament ---------- */
.eyebrow { color: var(--turq-hi); }
h2.xl, .hero-title, .awake { background-image: linear-gradient(180deg, #f3e6c6, var(--ochre) 62%, #8a5a22) !important; }
.line { color: #f0d9a8 !important; }
.triad li + li::before { background: var(--cinnabar); box-shadow: none; }
/* nested-polygon chapter marks, next to each chapter title */
.mnum { display: inline-block; vertical-align: middle; width: 22px; height: 26px; margin: 0 12px 0 0; opacity: .9; }
.mnum svg { width: 100%; height: 100%; display: block; }
/* corner ornaments (unused since the geometry rework) */
.cartouche { position: relative; }
.cartouche::before, .cartouche::after { content: ''; position: absolute; width: 26px; height: 26px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M1 25V9a8 8 0 0 1 8-8h16M5 25V10a5 5 0 0 1 5-5h15M9 14h5v-5' fill='none' stroke='%23c8962e' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat; }
.cartouche::before { left: -1px; top: -1px; } .cartouche::after { right: -1px; bottom: -1px; transform: rotate(180deg); }
.fret-frame { border: 1px solid rgba(200,150,46,.35) !important; box-shadow: inset 0 0 0 5px rgba(2, 12, 12,.0); }
.fret-frame > .fret { position: absolute; left: 12px; right: 12px; height: 11px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='11' viewBox='0 0 32 11'%3E%3Cpath d='M0 10h5V7h3V4h3V1h9v7h-5V5h-2M20 10h12' fill='none' stroke='%232e8fa3' stroke-width='1.3'/%3E%3C/svg%3E") repeat-x 0 0 / 32px 11px; opacity: .8; }
.fret-frame > .fret.t { top: 8px; } .fret-frame > .fret.b { bottom: 8px; transform: scaleY(-1); }
img.mnum { width: 24px; height: 24px; margin-right: 12px; vertical-align: -2px; }
h2.xl img.mnum { width: 30px; height: 30px; vertical-align: 2px; }
.zoned h2 img.mnum, .zoned h2.xl img.mnum { width: 22px; height: 22px; }
.press.fret-frame, .contact-card.fret-frame, .motion.fret-frame { padding-top: clamp(34px, 4vw, 60px); padding-bottom: clamp(34px, 4vw, 60px); }
@media (min-width: 2200px) { .zoned { zoom: 1 !important; } .zoned h2 { font-size: clamp(30px, 1.6vw, 52px) !important; } .zoned .lede, .zoned .line { font-size: clamp(20px, 0.95vw, 28px) !important; } .zoned { width: clamp(380px, 17vw, 560px); } }   /* placed boxes measure true size */

/* gate: the quotes sit left in a narrower column so the lit press stage (arch, moon plate) reads to their right */
@media (min-width: 761px) { #press .press { max-width: min(700px, 38vw); min-height: 0; } }

/* a framed title (unused since the geometry rework) */
  box-shadow: inset 0 0 0 4px rgba(2, 12, 12,.9), inset 0 0 0 5.5px rgba(95,179,196,.55), 0 0 22px rgba(46,143,163,.18); background: rgba(2, 12, 12,.35); }
  background: radial-gradient(circle at 50% 22%, var(--ochre) 2.2px, transparent 2.8px), radial-gradient(circle at 50% 78%, var(--ochre) 2.2px, transparent 2.8px), linear-gradient(var(--ochre), var(--ochre)) 50% 50% / 10px 2px no-repeat; }
.spin-hit[data-ch="fire"], .spin-hit[data-ch="aerial"], .spin-hit[data-ch="story"], .spin-hit[data-ch="press"] { cursor: default; }
/* fm-vfx F3/F4: a side plate leaves the stage undimmed beside it (no full-screen scrim, no vignette) */
.vslide.plate { background: none !important; }
#vision.plate .vshade { opacity: 0 !important; }
.spin-hit[data-ch="fire"], .spin-hit[data-ch="aerial"], .spin-hit[data-ch="story"], .spin-hit[data-ch="press"] { top: 64px; height: calc(100vh - 150px); }   /* plates sit low as well as high */
/* the rail's layout box: the viewport (the .calrail wrap shrinks to the rail itself once the wheels dock) */
.calfull { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; height: 100svh; visibility: hidden; pointer-events: none; z-index: -1; }

/* the worlds list folds after its first line; the hint sits at the bottom of the
   free area, not mid-screen; nothing from the scroll cue collides with the auto-play status line */
#vol-lines.folded .rl:nth-child(n+2) { display: none; }
.vol-more { margin: 6px 0 0; padding: 4px 10px; background: none; border: 1px solid var(--border); color: var(--gold); font: 500 10px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; cursor: pointer; pointer-events: auto; }
@media (min-width: 761px) { .spin-hint { bottom: 64px; } }
html.presenting .scroll-cue, html.presenting .scroll-nudge { display: none !important; }
@media (min-width: 761px) { .has-wheels { --ph-r: calc(var(--railw, 300px) + 24px); } }   /* the photo frame never reaches under the rail */

/* client (Dream) 2026-10-19 18:48: "lightly image with Lucent Dossier Experience" — a soft mark over every photo frame,
   bottom-right of the free area, never over the subject's centre; hidden on phones (the frame is the whole screen there) */
#vision[data-lay="photo"]::before { content: ''; position: absolute; right: calc(var(--railw, 300px) + 36px); bottom: 44px; width: 210px; height: 163px; background: url(../assets/logo-gold.png) center / contain no-repeat; opacity: .58; filter: drop-shadow(0 2px 10px rgba(0,0,0,.85)); pointer-events: none; z-index: 4; }
@media (max-width: 760px) { #vision[data-lay="photo"]::before { display: none; } }

/* Pete 2026-10-20: photographs burn in and burn out. One pre-drawn ring of fire (100 px radius at scale 1) that main.js
   only scales and fades, centred where the burn starts (50% / 52%); the photo's own edge is a clip-path. Above the
   photograph, below the copy and the rail. */
.ember-ring { position: fixed; left: 50%; top: 52%; width: 240px; height: 240px; z-index: 3; pointer-events: none; opacity: 0; display: none;
  border-radius: 50%; transform: translate(-50%,-50%) scale(0); will-change: transform, opacity;
  background: radial-gradient(circle closest-side, transparent 70%, rgba(255,120,30,.0) 74%, rgba(255,140,40,.55) 79%, rgba(255,214,150,.95) 83%, rgba(255,150,50,.6) 86%, rgba(200,60,10,.25) 91%, transparent 100%);
  filter: drop-shadow(0 0 6px rgba(255,120,30,.6)); }
.ember-ring.on { display: block; }

/* Pete 2026-10-20 (Fire aerial cards: "needs instructions telling them to click"): the click cue is a gold plaque that
   breathes, large enough to read across the room, and it stays bright after first use */
.spin-hint { padding: 11px 20px; font-size: 12.5px; color: var(--gold-hi); border: 1px solid var(--gold); background: rgba(2, 12, 12,.72); box-shadow: 0 0 22px rgba(232,196,122,.18); }
.spin-hint.on { animation: hintBreath 2.8s ease-in-out infinite; }
.spin-hint.used.on { opacity: .8; animation: none; }
.spin-hint.used:not(.on) { opacity: 0; }   /* a used hint dims, it never lingers into chapters with nothing to spin */
.spin-hint i { color: var(--gold-hi); font-size: 1.15em; }
@keyframes hintBreath { 0%, 100% { opacity: .82; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .spin-hint.on { animation: none; } }

/* ---------- sacred geometry additions ---------- */
/* the gate between far chapters: Metatron's cube flashes through the cut (world.js writes --portal 0..1) */
.portal { position: fixed; left: 50%; top: 50%; width: min(70vmin, 720px); aspect-ratio: 1; z-index: 2; pointer-events: none;
  opacity: calc(var(--portal, 0) * .85); transform: translate(-50%, -50%) scale(calc(.82 + var(--portal, 0) * .3)) rotate(calc(var(--portal, 0) * 30deg));
  filter: drop-shadow(0 0 18px rgba(255,190,110,.55)); }
.portal svg { width: 100%; height: 100%; display: block; }
@media (prefers-reduced-motion: reduce) { .portal { display: none; } }
/* press: three quotes, one at a time */
#press .press .quote { opacity: 0; }
#press .press .quote.cur { opacity: 1; }
@media (prefers-reduced-motion: reduce) { #press .press .quote { transition: none; } }
/* festivals: the long list under the count */
.fest-more { margin: 14px 0 0; font: 500 11px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 761px) and (min-aspect-ratio: 1/1) { #clients .fest-more { display: none; } }
/* bookings: "perfect for" list in the old column slot */
.is-wrap.perfect { padding: 22px 26px; }
.is-wrap.perfect figcaption { margin: 0 0 12px; font: 600 10px/1 var(--sans); letter-spacing: .3em; color: var(--gold); }
.is-wrap.perfect .is-col li { display: block; font: 400 clamp(14px, 1.05vw, 17px)/1.35 var(--book); color: var(--fg); padding-left: 18px; position: relative; }
.is-wrap.perfect .is-col li::before { content: ''; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }
#reading .rl b { color: var(--gold-hi); font-weight: 500; }
#worlds .rl b { color: var(--gold-hi); font-weight: 500; }
.motion-lede { margin: 0 0 14px; }
/* hero: the quote sits left of the cube, never under it */
@media (min-width: 761px) { .has-wheels .hero .hero-title { font-size: clamp(30px, 3.4vw, 62px); max-width: 19ch; margin-left: auto; margin-right: auto; } }
/* the fire chapter's letterbox: the click hint rides above the bottom bar, clear of the title */
@media (min-width: 761px) { html.lb-on .spin-hint { bottom: calc(12vh + 22px); } }
/* bookings: the event types are a subtitle, not a headline */
#work .reading-date { font-size: clamp(18px, 1.7vw, 28px); letter-spacing: .06em; }

/* ---------- multi-page: header nav, buttons ---------- */
.topbar .pages { display: flex; gap: clamp(14px, 1.8vw, 30px); align-items: center; margin-left: auto; margin-right: clamp(14px, 2vw, 30px); }
.topbar .pages a { font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--fg); text-decoration: none; opacity: .9; transition: opacity .3s, color .3s; }
.topbar .pages a:hover, .topbar .pages a[aria-current="page"] { opacity: 1; color: var(--turq-hi); }
.topbar .pages a.propose { padding: 9px 14px; border: 1px solid rgba(232,196,122,.6); color: var(--gold-hi); border-radius: 2px; }
@media (max-width: 760px) { .topbar .pages a:not(.propose) { display: none; } .topbar .pages { margin-right: 8px; } .topbar .pages a.propose { padding: 7px 10px; letter-spacing: .18em; } }
.presenting .topbar .pages { display: none; }
/* phone home: the page links live in a menu instead of vanishing (codex seat 6 F8) */
.m-menu { display: none; }
@media (max-width: 760px) {
  .topbar .m-menu { display: block; position: relative; margin-right: 8px; }
  .m-menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 38px; height: 34px; border: 1px solid rgba(232,196,122,.45); border-radius: 2px; color: var(--gold-hi); font: 600 17px/1 var(--sans); }
  .m-menu summary::-webkit-details-marker { display: none; }
  .m-menu[open] summary { background: rgba(232,196,122,.14); }
  .m-menu nav { position: absolute; top: calc(100% + 8px); right: 0; min-width: 180px; display: flex; flex-direction: column; padding: 6px 0; background: rgba(8,12,12,.97); border: 1px solid rgba(232,196,122,.35); box-shadow: 0 12px 30px rgba(0,0,0,.5); }
  .m-menu nav a { padding: 13px 18px; font: 600 13px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--fg); text-decoration: none; }
  .m-menu nav a:hover, .m-menu nav a:focus-visible { color: var(--gold-hi); background: rgba(232,196,122,.08); }
}
.presenting .topbar .m-menu { display: none; }
.btn { display: inline-block; padding: 12px 20px; border: 1px solid rgba(143,227,216,.5); color: var(--turq-hi); font: 600 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; text-decoration: none;
  background: rgba(3,17,17,.55) url("../assets/tex-water.jpg") 0 0 / 260px; background-blend-mode: soft-light; transition: border-color .3s, color .3s; }
.btn:hover { border-color: var(--turq-hi); color: #fff; }
.btn.gold { border-color: rgba(232,196,122,.7); color: var(--gold-hi); }
.cta { margin: 18px 0 0; }
.who.small { font-size: 12px; opacity: .8; }

/* panels carry the world's texture: a faint water light in the glass */
.panel, .press, .reading, .contact-card, .is-wrap { background-image: linear-gradient(rgba(3,17,17,.86), rgba(3,17,17,.86)), url("../assets/tex-water.jpg"); background-size: auto, 420px; }

/* ---------- who they've performed for ---------- */
#clients .guests.clients { display: block; white-space: normal; text-align: center; max-width: min(1180px, calc(100vw - var(--railw, 300px) - 2 * var(--gutter))); margin: 0 auto; }
#clients .clients .eyebrow { display: block; }
.cl-title { margin: 0 0 22px; font: 400 clamp(26px, 2.6vw, 44px)/1.1 var(--serif); color: var(--fg); }
.cl-tiles { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.2vw, 18px); }
.cl-tiles a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(180px, 22vh, 260px); padding: 14px; text-align: left; text-decoration: none; overflow: hidden;
  border: 1px solid rgba(143,227,216,.22); background: rgba(3,17,17,.7) url("../assets/tex-paper.jpg") 0 0 / 300px; }
.cl-tiles img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #021010; opacity: .9; transition: opacity .4s, transform .6s; }
.cl-tiles a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(2,12,12,.92)); }
.cl-tiles a:hover img { opacity: 1; transform: scale(1.02); }
.cl-tiles b, .cl-tiles span { position: relative; z-index: 1; }
.cl-tiles b { font: 400 clamp(16px, 1.25vw, 21px)/1.15 var(--serif); color: var(--gold-hi); }
.cl-tiles span { margin-top: 6px; font: 400 12px/1.4 var(--sans); color: var(--muted); }
.cl-tiles .vid { position: absolute; z-index: 1; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--turq-hi); }
.cl-tiles .vid::after { content: ''; position: absolute; left: 13px; top: 10px; border-left: 10px solid var(--turq-hi); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.cl-mark { position: absolute !important; inset: 12% 18% 34%; opacity: .55; background: url("../assets/metatron.svg") center / contain no-repeat; }
.cl-names { margin: 0 auto 10px; max-width: 980px; font: 400 clamp(14px, 1.05vw, 17px)/1.7 var(--book); color: var(--fg); letter-spacing: .04em; }
.cl-more { margin: 0 auto; max-width: 980px; font: 500 10.5px/1.7 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) { .cl-tiles { grid-template-columns: 1fr 1fr; } .cl-tiles a { min-height: 150px; } #clients .guests.clients { max-width: none; } }

/* ---------- Dream: the disciplines ---------- */
.disciplines { list-style: none; margin: 14px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.disciplines li { padding: 5px 10px; border: 1px solid rgba(138,154,69,.55); color: #d6dcb0; font: 500 10.5px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; background: rgba(77,90,38,.18); }

#clients .sticky { align-items: center !important; padding-top: 64px; }

/* codex seat 5 first fix 3: the phone troupe chapter gives photo, copy and controls their own regions.
   The copy reads in a dark band (the #story/#press pattern), so the dial and carousel frames never cross it;
   the spin arrows sit on the carousel band instead of over the copy; the hint wraps instead of being cropped. */
@media (max-width: 760px) {
  #troupe .panel { background: linear-gradient(180deg, rgba(2, 12, 12, 0), rgba(2, 12, 12, .9) 22px, rgba(2, 12, 12, .95)) !important;
    margin: 0 -18px !important; padding: 24px 18px 22px !important; max-width: none !important; width: auto !important; }
  .spin-arrow { top: calc(var(--ph-t) + var(--ph-h) * .5 - 22px); bottom: auto; }
  .spin-hint { white-space: normal; width: max-content; max-width: calc(100vw - 32px); text-align: center; line-height: 1.45; letter-spacing: .1em; font-size: 10px; padding: 8px 12px; }
}

/* #241 phone glitch (2026-11-27): on portrait phones the words under a photo window jumped 100-270 px when the window
   opened or closed (--phh/--pht change per photo; fire flipped bottom -> top on ph-bottom). Fire's words now sit at the
   top for the whole chapter, and the other panels glide to their new place instead of snapping. */
@media (max-aspect-ratio: 1/1) {
  #fire .sticky { align-items: flex-start; padding-top: 72px !important; }   /* the 'bottom' layout for the whole chapter: words on top, photo window below them */
  #troupe .sticky, #fire .sticky, #worlds .sticky, #aerial .sticky, #clients .sticky, #story .sticky { transition: opacity .38s cubic-bezier(.3,.6,.3,1); }   /* the glide is a transform on the panel now (main.js phGlide): an animated padding-top was 0.094 of phone CLS */
}
@media (prefers-reduced-motion: reduce) { .ch .sticky { transition: none !important; } }
/* #241 phone: a photo window's lower edge fades into the stage instead of ending on a hard line */
@media (max-aspect-ratio: 1/1) { .vslide::after { -webkit-mask-image: linear-gradient(180deg, #000 84%, transparent 100%); mask-image: linear-gradient(180deg, #000 84%, transparent 100%); } }

/* #241 phone CLS (2026-11-27): the words under a photo window used to glide by animating the sticky's padding-top, which
   the browser counts as a layout shift on every frame (#vol-reading = 0.094-0.24 of phone CLS). The padding is now fixed
   and the panel rides an independent `translate` (a transform: never a layout shift) to the same place. */
@media (max-aspect-ratio: 1/1) {
  #worlds .sticky, #aerial .sticky { padding-top: 64px !important; }
  #worlds .sticky > .panel, #aerial .sticky > .panel { translate: 0 calc(var(--ph-t) + var(--ph-h) + 34px - 64px); transition: translate .5s cubic-bezier(.3,.6,.3,1), opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1); }
}
@media (max-width: 760px) {
  #worlds .sticky > .panel, #aerial .sticky > .panel { translate: 0 calc(var(--ph-t) + var(--ph-h) + 30px - 64px); }
}
@media (prefers-reduced-motion: reduce) { #worlds .sticky > .panel, #aerial .sticky > .panel { transition: none !important; } }

/* desktop CLS (2026-11-27): the press card hugs whichever quote is showing, so its height changes per quote; centred,
   that moved its top every time (0.157 of desktop home CLS). Anchored to the top of the pinned view, it only grows down. */
@media (min-width: 761px) { #press .sticky { align-items: flex-start; } }
/* lucent-qa 2026-11-28 #1: on desktop the troupe ring's hint sat over "A Diverse Cast" card text. It now centres between the
   card edge (37.5vw + 8px; the card ends by 36.3vw at 1024) and the rail labels (they hang about 92px left of the rail), and wraps inside that gap, so it never reaches the card or the rail */
@media (min-width: 761px) and (min-aspect-ratio: 1/1) {
  .spin-hint[data-ch="troupe"] { left: calc(68.75vw - var(--railw, 300px) / 2 - 50px); width: max-content; max-width: calc(62.5vw - var(--railw, 300px) - 116px); white-space: normal; text-align: center; line-height: 1.5; }
}
