/* Illustrated pages share the existing scene scheduler; no perpetual animation. */
.home .storybook-stage{height:175svh;position:relative;background:#281c18}
.home .home-visual{position:sticky;top:74px;height:calc(100svh - 74px);min-height:600px;max-height:none;overflow:hidden;background:#281c18}
.storybook-painting,.storybook-reality{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center bottom}
.storybook-painting{background:#f1d4b5;opacity:calc(1 - var(--story-dissolve,0));transform:translateY(calc(var(--story-dissolve,0)*-8px))}
.storybook-reality{opacity:var(--story-dissolve,0);object-fit:contain}
.home-visual:after{background:linear-gradient(90deg,#f3dcc5 0%,transparent 35%,transparent 65%,#f3dcc5 100%);opacity:calc(1 - var(--story-dissolve,0));z-index:1}
.storybook-atmosphere{position:absolute;inset:0;z-index:2;pointer-events:none;opacity:calc(1 - var(--story-dissolve,0));background:radial-gradient(ellipse at 30% 15%,#fff8ea55,transparent 60%);transform:translateX(calc(var(--story-dissolve,0)*8px))}
.storybook-ink{position:absolute;inset:0;z-index:3;opacity:calc(1 - var(--story-dissolve,0)*1.5);color:#452b25;text-align:center;pointer-events:none}
.storybook-lead{position:absolute;top:7%;left:0;right:0;font:400 clamp(20px,2.3vw,32px)/1.1 var(--serif);letter-spacing:.11em;margin:0}
.storybook-lead em{font-size:1.5em;letter-spacing:.02em}
.home .home-head{top:24%;left:0;right:0;width:auto;color:#452b25;text-shadow:none;text-align:center}
.home .home-head>.label{font-size:6px;text-align:center;color:#634337}
.home .home-head h1{font-size:clamp(37px,4vw,58px);flex-direction:row;align-items:center;justify-content:center;gap:14px;line-height:1;margin:14px 0}
.home .home-head h1>em{color:#7a3c3c;font-size:.65em;padding:0}
.home .home-caption{display:none}
.home .home-side{bottom:20px;left:20px;right:20px;text-align:center;color:#fff6e7;text-shadow:0 1px 5px #452b25}
.home .home-botanical,.venues-section .botanical,.day-section .botanical,.dress-section .botanical{display:none}
.unified-venue{display:flex;flex-direction:column;gap:40px;align-items:stretch}
.unified-venue .venue-info{max-width:650px;align-self:center;text-align:center}
.unified-venue .venue-info h2{margin-inline:auto}
.storybook-church{width:min(960px,100%);margin:0 auto;overflow:hidden}
.storybook-church img{display:block;width:100%;height:auto;mix-blend-mode:multiply}
.unified-venue .ceremony-location{width:min(1040px,100%);margin:0 auto}
.final-section.dark{position:relative;isolation:isolate;overflow:hidden;min-height:125svh;padding-bottom:35px;background:#3b1721}
.storybook-closing{position:absolute;z-index:-2;inset:0;width:100%;height:100%;object-fit:cover;object-position:center bottom;transform:translateY(calc((var(--section-progress,.5) - .5)*-12px)) scale(1.015)}
.final-section.dark:before{display:block;position:absolute;inset:0;z-index:-1;content:'';background:linear-gradient(#35172144,transparent 55%,#251214bb)}
.final-section.dark>.reveal{padding-bottom:35svh}
.final-section.dark footer{position:relative;z-index:1;margin-top:auto;background:linear-gradient(transparent,#28141dcc);padding-top:35px}
.final-section .final-botanical{opacity:.12}
/* Two scene light accents plus the envelope wash: never over the interactive UI. */
#foundation .scene-light{opacity:calc(var(--scene-light,0)*.16)}
html:not(.cinema-ready) .storybook-stage{height:auto}
html:not(.cinema-ready) .home .home-visual{position:relative;top:auto}
html:not(.cinema-ready) .storybook-reality{display:none}
@media(max-width:820px){
 .home .home-visual{top:65px;height:calc(100svh - 65px);min-height:560px}
 .home .storybook-stage{height:165svh}
 .storybook-painting{object-fit:cover;object-position:center bottom;transform:translateY(calc(var(--story-dissolve,0)*-3px))}
 .home-visual:after{background:linear-gradient(#f8e5d533,transparent 45%)}
 .storybook-lead{top:7%;font-size:23px}
 .home .home-head{top:25%;left:12px;right:12px}
 .home .home-head h1{font-size:clamp(33px,9vw,42px);gap:10px;margin-top:12px}
 .home .home-head>.label{font-size:5.5px;letter-spacing:.14em}
 .unified-venue{gap:25px}
 .final-section.dark{min-height:110svh}
 .final-section.dark>.reveal{padding-bottom:30svh}
 .storybook-closing{transform:none;object-fit:cover}
}
@media(prefers-reduced-motion:reduce){
 .home .storybook-stage{height:auto}
 .home .home-visual{position:relative;top:auto}
 .storybook-painting,.storybook-atmosphere,.storybook-closing{transform:none}
 .storybook-reality{display:none}
 .storybook-ink,.storybook-painting,.storybook-atmosphere{opacity:1}
}

.storybook-reality{object-position:center center}
.storybook-film-title{position:absolute;z-index:3;top:12%;left:20px;right:20px;text-align:center;color:var(--ivory);font:400 clamp(28px,4vw,52px)/1.12 var(--serif);letter-spacing:.03em;opacity:var(--story-dissolve,0);pointer-events:none}
.home .home-head h1{text-transform:uppercase}
@media(prefers-reduced-motion:reduce){.storybook-film-title{display:none}}
html:not(.cinema-ready) .storybook-film-title{display:none}

.snap-share-art.storybook-memory{position:relative;width:100%;height:auto;aspect-ratio:auto;padding:12px 12px 38px;background:#fffaf1;transform:rotate(-3deg);box-shadow:0 8px 24px #452b2510;overflow:visible}
.storybook-memory .home-photo{position:relative;width:100%;height:auto;aspect-ratio:4/3;margin:0;outline:0;overflow:visible}
.storybook-memory .home-photo img{display:block;width:100%;height:auto;object-fit:contain;transform:none}
.storybook-memory .photo-caption{position:absolute;left:0;bottom:-26px;color:var(--ink-muted);background:none;font-size:6px;padding:0}
.storybook-memory .snap-share-monogram,.storybook-memory .snap-share-rule{display:none}
@media(prefers-reduced-motion:reduce){.snap-share-art.storybook-memory{transform:none}}
