/* Full approved film; action, lighting and flames are already in the footage. */
.opening-sound-controls{display:flex;position:absolute;top:105px;right:4.3%;width:140px;z-index:4;gap:0;flex-direction:column;align-items:stretch}
.sound-supported .opening-sound-controls{display:flex}
.opening-sound-controls button{position:static;display:block;width:100%;min-height:44px;padding:8px 10px;text-align:left;background:transparent;border:0;color:var(--text-dim);font:400 10px Cinzel,serif;letter-spacing:.07em;text-shadow:0 2px 4px #000,0 4px 12px #000}
.opening-bottom .skip-intro{width:140px;flex-shrink:0;padding:10px;text-align:left;border-bottom:0}
.opening-sound-controls button[aria-pressed="true"]{color:var(--gold-lt)}
.opening-sound-controls button:hover{color:#fff;text-decoration:underline;text-underline-offset:5px}
.opening-sound-controls button:disabled{opacity:.45;cursor:default}
.sound-notice{position:absolute;right:4.3%;top:200px;max-width:250px;z-index:4;text-align:right}
.sound-status{font-size:14px;color:var(--text);background:transparent;padding:0;text-shadow:0 2px 4px #000,0 4px 12px #000}
.sound-status:empty{display:none}
.opening-player{position:fixed;inset:0;margin:0;width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;padding:0;border:0;background:#000;color:var(--text);overflow:hidden}
.opening-player::backdrop{background:#000}
.opening-player-heading{position:absolute;inset:0 0 auto;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:15px;height:100px;margin:0;padding:0 4.3%;background:linear-gradient(#0a0808e8,transparent)}
.opening-player-close{background:#08080899;border:1px solid #e8bb6980;color:var(--text);min-height:44px;padding:10px 15px;font:400 11px Cinzel,serif}
.opening-player-play{position:absolute;z-index:3;left:50%;top:50%;transform:translate(-50%,-50%);min-height:54px;padding:14px 22px;border:1px solid #e8bb69;background:#080808dc;color:#f2d18a;font:600 12px Cinzel,serif;letter-spacing:.08em;text-transform:uppercase}
.opening-player-play span{margin-left:12px}
.opening-player-play[hidden]{display:none}
.opening-player video{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;background:#000;object-fit:cover;object-position:center}
/* Preserve the full widescreen composition on narrow portrait screens. */
@media(max-width:1050px) and (orientation:portrait){.opening-player video{inset:17% auto auto 50%;width:100vw;height:auto;aspect-ratio:16/9;max-height:none;transform:translateX(-50%);object-fit:contain}}
/* In landscape the 16:9 film fits the viewport height, with modest side bars. */
@media(max-width:1050px) and (orientation:landscape){.opening-player video{object-fit:cover;object-position:center}.opening-player-heading{height:72px}.opening-player-brand.wordmark{font-size:20px}.opening-player-brand .brand-tagline{font-size:11px}.opening-player-close{min-height:40px}}
@media(max-width:760px){.opening-sound-controls{left:auto;right:4.3%;top:100px}.sound-notice{top:195px;left:auto;right:4.3%}.opening-player-heading{padding:0 4.3%}}
.opening{height:100svh;background:var(--dark)}
.opening-scripted:not(.motion-reduced) .opening{height:500svh}
.opening-pin,.scene-window{background:var(--film-surround,#0a0808)}
.scene-window{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;transform:none}
.scene-poster{background-image:var(--poster-image,url('assets/motion/ETV_Opening_Start_v1.webp'));background-size:cover!important;background-position:center!important;background-repeat:no-repeat;opacity:1}
.opening-video,.opening-idle{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:0;pointer-events:none;transform:none}
.video-ready:not(.motion-reduced) .opening-video{opacity:1}
.video-ready:not(.motion-reduced) .scene-poster{opacity:0}
.opening-idle{transition:opacity .4s linear}
.opening-idle-active:not(.motion-reduced) .opening-idle{opacity:1}
.scene-shade{background:linear-gradient(0deg,#0a0808da,transparent 60%,#0a080833)!important;opacity:var(--film-shade,.72);pointer-events:none}
.opening-study-link{font-size:11px;margin-top:20px;color:var(--gold-lt)}
.opening-copy{bottom:22%;pointer-events:none}
.opening h1{font-size:clamp(26.88px,3.392vw,52.48px)}
.opening-copy a{pointer-events:auto}
.opening-copy[inert]{visibility:hidden}
.opening .scene-chapters button[aria-current="step"]{border-color:var(--gold-lt);color:var(--gold-lt);background:#c9a84c18}
.opening-bottom{padding-top:24px;text-shadow:0 2px 12px #000}
.scroll-prompt{display:flex;align-items:center;gap:16px}
/* Desktop: a single level row, with audio and motion centered between the ends. */
@media(min-width:761px){
 .opening-bottom{bottom:38px;min-height:44px;padding-top:0;align-items:center}
 .opening-bottom .scroll-prompt{min-height:44px}
 .opening-bottom .skip-intro{display:flex;align-items:center;min-height:44px;border:0;text-decoration:none}
 .opening-sound-controls{top:auto;bottom:38px;left:50%;right:auto;transform:translateX(-50%);width:max-content;min-height:44px;flex-direction:row;align-items:center;gap:32px}
 .opening-sound-controls button{width:auto;white-space:nowrap;text-align:center}
 .opening-sound-controls,.opening-bottom{transition:opacity .5s ease}
 .opening-controls-desktop-hidden .opening-sound-controls,.opening-controls-desktop-hidden .opening-bottom{opacity:0;pointer-events:none}
 .opening-controls-revealed .opening-sound-controls,.opening-controls-revealed .opening-bottom,.opening-sound-controls:has(:focus-visible),.opening-bottom:has(:focus-visible){opacity:1;pointer-events:auto}
 .sound-notice{top:auto;bottom:92px;left:50%;right:auto;transform:translateX(-50%);text-align:center}
}
.opening-whiteout .opening-bottom{color:#382d26;text-shadow:none}
.opening-whiteout .opening-bottom small,.opening-whiteout .scene-chapters button{color:#382d26}
.opening-whiteout .scene-chapters button,.opening-whiteout .skip-intro{border-color:#382d2670}
.opening-whiteout .scroll-line{background:#382d26}
.opening-load-note{position:absolute;bottom:130px;left:4.3%;max-width:380px;z-index:4;font-size:15px;padding:12px 16px;background:#110d0de0;border:1px solid var(--border)}
.opening-load-note[hidden]{display:none}
.motion-reduced .opening{height:100svh!important}
.motion-reduced .opening-video,.motion-reduced .opening-idle{opacity:0!important;display:none}
.motion-reduced .scene-poster{opacity:1!important;background-image:url('assets/motion/ETV_Opening_Start_v1.webp')}
.motion-reduced .scene-shade{opacity:.85}
.motion-reduced .opening-copy{visibility:visible;opacity:1!important}
.invitation{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:42%;max-width:640px;padding:0;text-shadow:0 2px 5px #000,0 4px 18px #0008}
.invitation h2{font-size:clamp(31.2px,3.84vw,55.2px);color:#E8BB69}
.invitation p:not(.eyebrow){font-size:clamp(18px,1.5vw,22px);line-height:1.5;margin:18px 0 20px}
.invitation .invitation-link{display:inline-flex;align-items:center;gap:16px;min-height:44px;padding:10px 0;background:transparent;border:0;color:#E8BB69;font:600 12px/1.5 Cinzel,serif;letter-spacing:.08em;text-decoration:none}
.invitation .invitation-link:hover{color:#fff;text-decoration:underline;text-underline-offset:6px}
/* Portrait layouts retain both priest and veil, with a soft full-width picture. */
@media(max-width:760px),(min-width:761px) and (max-width:1050px) and (orientation:portrait){
 .opening-scripted:not(.motion-reduced) .opening{height:420svh}
 .opening-video,.opening-idle{top:17%;height:auto;aspect-ratio:16/9;object-fit:contain;mask-image:linear-gradient(transparent,#000 8%,#000 92%,transparent)}
 .scene-poster{background-position:65% center!important}
 .video-ready:not(.motion-reduced) .scene-poster{opacity:.28;filter:blur(22px) brightness(.5);transform:scale(1.1)}
 .opening-copy{left:25px;right:25px;bottom:16%;max-width:650px}
 .opening h1{font-size:clamp(21.76px,5.12vw,38.4px)}
 .opening-sub{font-size:20px}
 .opening-study-link{margin-top:10px}
 .invitation{left:50%;right:auto;top:auto;bottom:16%;transform:translateX(-50%);width:calc(100% - 90px);max-width:360px;padding:0}
 .invitation h2{font-size:clamp(26.4px,6.72vw,38.4px)}
 .invitation p:not(.eyebrow){font-size:18px;margin:12px 0 14px}
 .invitation .eyebrow{margin-bottom:12px}
 .invitation small{margin-top:14px}
 .scene-shade{background:linear-gradient(0deg,#0a0808c0,transparent 70%)!important}
 .opening .scene-chapters{bottom:63px;gap:8px}
}
/* Place phone controls in the dark space above and below the artwork. */
@media(max-width:760px){
 .opening-copy{top:calc(17% + 28.125vw);bottom:auto;transform:translateY(-50%)}
 .opening-sound-controls{left:25px;right:20px;top:calc(17% - 44px);transform:none;width:auto;max-width:none;flex-direction:row;align-items:center;justify-content:space-between;gap:0}
 .opening-sound-controls,.opening-bottom{opacity:var(--opening-controls-opacity,1)}
 .opening-controls-hidden .opening-sound-controls,.opening-controls-hidden .opening-bottom{visibility:hidden}
 .opening-controls-revealed .opening-sound-controls,.opening-controls-revealed .opening-bottom,.opening-sound-controls:has(:focus-visible),.opening-bottom:has(:focus-visible){opacity:1;visibility:visible}
 .opening-sound-controls button{display:flex;align-items:flex-end;width:auto;white-space:nowrap;text-align:left;min-height:44px;padding:0 10px 4px;font-size:9px}
 .opening-sound-controls #sound-toggle{flex:1;min-width:0;padding-left:17px}
 .opening-sound-controls .motion-toggle{width:140px;flex-shrink:0}
 .opening-bottom{top:calc(17% + 56.25vw);bottom:auto;min-height:44px;padding-top:0;align-items:flex-start}
 .opening-bottom .scroll-prompt{min-height:44px;align-items:flex-start;padding-top:4px}
 .opening-bottom .scroll-line{height:20px}
 .opening-bottom .scroll-prompt small{font-size:10px}
 .opening-bottom .skip-intro{min-height:44px;padding-top:4px;font-size:8px}
 .invitation{top:calc(17% + 56.25vw + 20px);bottom:auto}
}
@media(max-width:760px) and (max-height:700px){
 .opening-sound-controls{top:calc(13% - 44px)}
 .opening-video,.opening-idle{top:13%}
 .opening-bottom{top:calc(13% + 56.25vw)}
 .opening-copy{top:calc(13% + 28.125vw);bottom:auto}
 .opening h1{font-size:20.48px}
 .opening-copy .eyebrow{margin-bottom:10px}
 .opening-sub{font-size:18px;margin-top:12px}
 .invitation{top:calc(13% + 56.25vw + 16px);bottom:auto}
 .invitation h2{font-size:26.4px}
 .invitation small{display:none}
}
@media(prefers-reduced-motion:reduce){
 .opening-scripted:not(.motion-reduced) .opening{height:100svh}
 .opening-video,.opening-idle{display:none!important}
 .scene-poster{opacity:1!important}
 .opening-idle{transition:none}
}
/* Give the portrait hero more room below the phone header and menu. */
@media(max-width:760px) and (orientation:portrait){
 .opening-video,.opening-idle{top:calc(17% + 20px)}
 .opening-sound-controls{top:100px}
 .opening-copy{top:calc(17% + 28.125vw + 20px)}
 .opening-bottom{top:calc(17% + 56.25vw + 20px)}
}
@media(max-width:760px) and (orientation:portrait) and (max-height:700px){
 .opening-video,.opening-idle{top:calc(17% + 20px)}
 .opening-copy{top:calc(17% + 28.125vw + 20px)}
 .opening-bottom{top:calc(17% + 56.25vw + 20px)}
}
/* Align mobile opening actions in clear top and bottom rows around the artwork. */
@media(max-width:760px) and (orientation:portrait){
 .opening-sound-controls{left:25px;right:20px;top:100px;align-items:center;justify-content:space-between}
 .opening-sound-controls button{display:flex;align-items:center;min-height:44px;padding:0 4px;white-space:nowrap}
 .opening-sound-controls #sound-toggle{flex:1;justify-content:flex-start;min-width:0;padding-left:0}
 .opening-sound-controls .motion-toggle{width:auto;flex:0 1 auto;justify-content:center}
 .opening-sound-controls #watch-opening{width:auto;flex:0 1 auto;justify-content:flex-end;text-align:right}
 .opening-bottom{left:25px;right:20px;align-items:center}
 .opening-bottom .scroll-prompt{align-items:center;gap:0 12px}
 .opening-bottom .scroll-line{height:20px;align-self:center}
 .opening-bottom .scroll-prompt small{align-self:center;padding:0}
 .opening-bottom .skip-intro{display:flex;align-items:center;justify-content:flex-end;text-align:right;min-height:44px;padding:0}
}
/* Phone portrait: two opening options above the artwork and three evenly spaced below it. */
@media(max-width:760px) and (orientation:portrait){
 .opening-sound-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);left:25px;right:20px;top:17%;width:auto;align-items:center;justify-content:initial;gap:0}
 .opening-sound-controls button{display:flex;align-items:center;min-height:44px;padding:0 4px;white-space:nowrap}
 .opening-sound-controls #sound-toggle{grid-column:1;grid-row:1;justify-content:flex-start;min-width:0;padding-left:0}
 .opening-sound-controls #watch-opening{grid-column:2;grid-row:1;justify-content:flex-end;text-align:right}
 .opening-bottom{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));left:25px;right:20px;top:calc(17% + 56.25vw - 1px);align-items:center;gap:0}
 .opening-bottom .scroll-prompt{grid-column:1;justify-self:start;display:flex;align-items:center;gap:10px}
 .opening-bottom .scroll-line{height:20px;align-self:center}
 .opening-bottom .scroll-prompt small{align-self:center;padding:0}
 .opening-bottom .motion-toggle{grid-column:2;justify-self:center;width:auto;min-height:44px;padding:0 4px;white-space:nowrap;text-align:center}
 .opening-bottom .skip-intro{grid-column:3;justify-self:end;display:flex;align-items:center;justify-content:flex-end;width:auto;min-width:0;min-height:44px;padding:0;text-align:right;white-space:nowrap}
}@media(max-width:760px) and (orientation:portrait){
 .opening-bottom .motion-toggle{position:static!important;left:auto;right:auto;top:auto;transform:none;grid-column:2;justify-self:center;align-self:center;width:auto;min-width:0}
}