/* Rivers of Grace: photographic cinematic journey. Progressive enhancement. */
:root{--cinema-ink:#0a171b;--cinema-white:#fcfcf8}
.story-opening,.story-chapter{position:relative;isolation:isolate;background:var(--cinema-ink);color:var(--cinema-white);overflow:clip}
.story-opening{min-height:calc(100svh - 100px);padding:2.2rem 5.5vw 4.5rem;display:flex;flex-direction:column;justify-content:space-between}
.opening-landscape,.opening-scrim,.chapter-image,.chapter-shade{position:absolute;inset:0;width:100%;height:100%;z-index:-2}
.opening-landscape,.chapter-image img{width:100%;height:100%;object-fit:cover;object-position:64% center}
.opening-scrim,.chapter-shade{z-index:-1;background:linear-gradient(90deg,#061117ac 0,#06111755 40%,transparent 75%),linear-gradient(0deg,#061117db,transparent 60%)}
.story-brand{display:flex;align-items:center;gap:1.2rem}
.story-brand img{width:130px;height:130px;padding:8px;background:#fff;border-radius:50%}
.story-brand p{font-size:.7rem;letter-spacing:.18em;text-transform:uppercase;max-width:9rem;line-height:1.6}
.opening-message>p{font-size:.7rem;letter-spacing:.22em;margin-bottom:1.3rem}
.opening-message h1{font-family:'DM Sans',sans-serif;font-weight:600;font-size:clamp(4.6rem,8.7vw,9.5rem);line-height:.91;letter-spacing:-.065em;margin:0 0 2rem;max-width:10ch}
.opening-message h1 em{font-family:'Instrument Serif',Georgia,serif;font-weight:400;color:#fff}
.opening-message>div{display:flex;justify-content:space-between;align-items:flex-end;gap:2rem}
.opening-message span{font-size:.95rem;line-height:1.7}
.opening-message a{color:#fff;border-bottom:1px solid #ffffffa8;text-decoration:none;padding:.8rem 0;min-height:48px;font-size:.88rem}
.opening-message a:hover{border-color:#fff}
.chapter-sticky{position:relative;min-height:100svh;display:flex;align-items:center;padding:8vh 6vw;isolation:isolate}
.chapter-copy{width:min(45%,640px);position:relative;z-index:3;color:#fff}
.chapter-reference{font-size:.68rem;letter-spacing:.2em;text-transform:uppercase;color:#e6ecea}
.chapter-copy h2{font-family:'DM Sans',sans-serif;font-size:clamp(4rem,7.2vw,8.7rem);font-weight:550;line-height:.96;letter-spacing:-.065em;margin:.25em 0 .36em;max-width:9ch}
.chapter-copy>p:not(.chapter-reference){font-size:1.04rem;line-height:1.75;max-width:25rem;color:#fff;text-wrap:pretty}
.chapter-copy a{display:inline-flex;align-items:center;min-height:48px;color:white;text-decoration:none;border-bottom:1px solid #ffffff8a;margin-top:1rem;font-size:.85rem;font-weight:600;letter-spacing:.015em}
.chapter-copy a:hover{border-color:#fff}
.chapter-word,.gospel-journey{display:none}
/* Enhancement shares one viewport across the original semantic sections. */
.cinema{position:relative;isolation:isolate;background:var(--cinema-ink)}
.cinema-viewport{position:sticky;top:0;height:100svh;margin-bottom:-100svh;overflow:hidden;z-index:0;pointer-events:none;background:var(--cinema-ink)}
.cinema-frame{position:absolute;inset:-2%;opacity:0;overflow:hidden;will-change:opacity;contain:paint}
.cinema-frame:first-child{opacity:1}
.cinema-frame img{width:100%;height:100%;object-fit:cover;object-position:var(--focus,64%) center;transform:scale(1.04);will-change:transform}
.cinema-light{position:absolute;inset:0;z-index:6;background:linear-gradient(90deg,#061117a8 0,#06111780 25%,#06111724 55%,transparent 75%),linear-gradient(0deg,#061117b8,transparent 55%)}
.cinema-readings{position:relative;z-index:2}
.cinema .story-opening{background:none;overflow:visible;min-height:calc(100svh - 100px)}
.cinema .opening-landscape,.cinema .opening-scrim,.cinema .chapter-image,.cinema .chapter-shade{display:none}
.cinema .story-chapter{background:none;overflow:visible;height:130svh}
.cinema .chapter-sticky{position:sticky;top:0;height:100svh;min-height:100svh}
.cinema-rail{position:fixed;top:26px;left:5.5vw;display:flex;gap:5px;z-index:40;opacity:0;visibility:hidden;transition:opacity .2s}
body.cinema-chapters .cinema-rail{opacity:1;visibility:visible}
.cinema-rail a{min-width:44px;height:44px;display:flex;align-items:center;justify-content:center;color:#fff;text-decoration:none;font-size:.65rem;border-bottom:1px solid #ffffff50;transition:background .2s,border-color .2s;text-shadow:0 1px 8px #000}
.cinema-rail a[aria-current=true]{border-color:white;background:#06111755}
.cinema-rail a:hover{background:#06111799}
.cinema-signature{position:fixed;top:22px;right:4vw;z-index:40;opacity:0;visibility:hidden;transition:opacity .2s}
body.cinema-chapters .cinema-signature{opacity:1;visibility:visible}
.cinema-signature img{width:70px;height:70px;padding:5px;border-radius:50%;background:white}
.cinema-rail a:focus-visible,.cinema-signature:focus-visible,.cinema a:focus-visible{outline:3px solid #fff;outline-offset:5px}
.cinema .chapter-copy{transition:opacity .15s}
.cinema-paused .cinema-frame img{transform:none!important}
.cinema-frame img:not([src]){visibility:hidden}
/* The light ministry sections keep their identity after the immersive narrative. */
.heart{padding-top:7rem;padding-bottom:7rem}
.motion-toggle{font-size:.68rem!important;border:1px solid #d3d9df!important;box-shadow:none!important;border-radius:30px!important;padding:.6rem 1rem!important;min-height:44px}
@media(max-width:800px){
.story-opening{min-height:calc(100svh - 88px);padding:1.6rem 7% 3.5rem}
.story-brand img{width:100px;height:100px}
.story-brand p{font-size:.6rem}
.opening-message h1{font-size:clamp(3.8rem,14vw,6.6rem);max-width:10ch;line-height:.95;margin-bottom:1.3rem}
.opening-message>p{font-size:.6rem}
.opening-message>div{display:block}
.opening-message span{display:block;font-size:.84rem;max-width:18rem}
.opening-message a{display:inline-flex;margin-top:.5rem}
.chapter-sticky{padding:48vh 7% 6.5rem;align-items:flex-end}
.chapter-copy{width:100%;max-width:34rem}
.chapter-copy h2{font-size:clamp(2.5rem,10vw,4rem);max-width:13ch;line-height:1}
.chapter-copy>p:not(.chapter-reference){font-size:.94rem;line-height:1.65;max-width:28rem}
.chapter-copy a{margin-top:.5rem;font-size:.8rem}
.chapter-reference{font-size:.6rem;letter-spacing:.14em}
.cinema .story-opening{min-height:calc(100svh - 88px)}
.cinema-frame{inset:0;bottom:22%}
.cinema-frame img{object-position:var(--mobile-focus,68%) center}
.cinema-light{background:linear-gradient(0deg,#0a171b 16%,#0a171be8 30%,#0a171b80 44%,transparent 68%)}
.cinema-rail{top:16px;left:5%;gap:1px}
.cinema-rail a{width:38px;min-width:38px;height:44px;font-size:.6rem}
.cinema-signature{top:12px;right:5%}
.cinema-signature img{width:58px;height:58px;padding:4px}
.chapter-shade{background:linear-gradient(0deg,#061117f5,#061117b8 45%,transparent 80%)}
.cinema .chapter-sticky{padding-top:44vh}
.heart{padding-top:4rem;padding-bottom:4rem}
}
@media(max-height:650px) and (min-width:801px){
.chapter-copy h2{font-size:4.4rem}.chapter-copy>p:not(.chapter-reference){font-size:.9rem}.story-opening{padding-bottom:2rem}.opening-message h1{font-size:5rem}
}
@media(max-height:720px) and (max-width:800px){
.chapter-sticky,.cinema .chapter-sticky{padding-top:30vh;padding-bottom:4.5rem}
.chapter-copy h2{font-size:2.3rem}
.chapter-copy>p:not(.chapter-reference){font-size:.86rem;line-height:1.55}
.chapter-reference{margin-bottom:.5rem}
.story-brand img{width:78px;height:78px}.opening-message h1{font-size:3.6rem}
}
@media(prefers-reduced-motion:reduce){
.cinema-rail,.cinema-signature,.cinema .chapter-copy{transition:none}
.cinema-frame img{transform:none!important}
}

.cinema-rail{background:#071a23d9;border-radius:5px;padding:0 4px}
.cinema-rail a{min-width:44px}
@media(max-width:800px){.cinema-rail{padding:0;gap:0}.cinema-rail a{width:44px;min-width:44px}}
@media(max-width:800px){html[lang="fr"] .opening-message h1{font-size:clamp(2.8rem,11vw,5rem)}}
/* Contain the shared scene at the end of the story; the ministry section starts on white. */
.cinema{overflow:clip}
.heart{position:relative;z-index:1}
@media(max-width:800px){.cinema-light{background:linear-gradient(0deg,#0a171b 26%,#0a171bf0 34%,#0a171b70 48%,transparent 72%)}}
