/* A-only reversible scroll trial. The existing image and masks are never cloned. */
/* The scroll-driven height change is intentional. Excluding only the journey
   leaves following story content eligible as a viewport anchor: Chrome then
   compensates scrollY, feeding that change back into the animation indefinitely.
   Opt this enhanced layout's actual scrolling root out, not just the section.
   Stacked/mobile flow retains normal browser anchoring. */
html:has(body.journey-ready){overflow-anchor:none}
.project-journey{position:relative;background:var(--paper);overflow-anchor:none}
.journey-stage{position:relative}
.project-overview{padding:60px 6%;background:var(--paper)}
.project-overview .intro{display:block;padding:0;width:100%}
.project-overview .intro h2{font-size:clamp(36px,3.4vw,62px);margin:16px 0 24px}
.project-overview .opening{font-size:clamp(22px,1.8vw,31px);line-height:1.4;max-width:48ch}
.project-overview .project-facts{width:100%;grid-template-columns:1fr 1fr;margin-top:30px;gap:22px 28px;padding:24px 0}
.project-overview .project-facts dd{font-size:20px}
.overview-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px 28px;margin-top:24px;font:14px/1.4 Arial,sans-serif}
.explore-images{border:1px solid var(--line);background:transparent;color:var(--ink);padding:12px 18px;min-height:48px;cursor:pointer}
.overview-actions a{display:inline-flex;align-items:center;min-height:44px}
.gallery-heading .details-jump{font:13px/1.4 Arial,sans-serif;color:var(--ink);min-height:44px;display:inline-flex;align-items:center}
/* Fixed strip geometry: revealing it never changes the scroll journey's layout.
   Native horizontal overflow supplies touch swipe without a second gesture owner. */
.settled-gallery{margin:0 5% 44px;min-width:0}
.settled-gallery[hidden]{display:none}
.settled-gallery>.eyebrow{margin:0 0 10px}
.settled-photos{display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;padding:4px;min-width:0}
.settled-photos::-webkit-scrollbar{display:none}
.settled-photos a{display:grid;grid-template-rows:minmax(0,1fr);place-items:center;flex:0 0 108px;height:76px;overflow:hidden;scroll-snap-align:start;border:1px solid var(--line)}
.settled-photos img{display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain}
.settled-photos a:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.settled-gallery .gallery-toolbar{margin-top:8px;gap:12px}
.settled-gallery .gallery-toolbar button{width:44px;height:44px}
body.journey-ready .settled-gallery{position:absolute;top:var(--settled-top);left:4%;width:46%;height:var(--settled-height,190px);margin:0;visibility:var(--settled-visibility,hidden);opacity:var(--settled-opacity,0);transform:translateY(var(--settled-rise,16px))}
.settled-photos a[aria-current="true"]{border:2px solid var(--ink)}
.preview-controls[hidden]{display:none}
.preview-controls{position:absolute;inset:0;pointer-events:none}
.preview-controls button{pointer-events:auto;cursor:pointer;color:white;border:0;border-radius:0}
.preview-open{position:absolute;inset:0;width:100%;height:100%;background:transparent}
.preview-open span{position:absolute;bottom:18px;right:18px;padding:8px;background:#0007;font:14px Arial,sans-serif}
.preview-previous,.preview-next{position:absolute;top:calc(50% - 44px);width:64px;height:88px;font:44px/1 Arial,sans-serif;background:transparent;z-index:3}
.preview-previous{left:0}.preview-next{right:0}
.preview-controls::before,.preview-controls::after{content:"";position:absolute;top:0;bottom:0;width:12%;pointer-events:none;background:linear-gradient(90deg,#0004,transparent)}
.preview-controls::before{left:0}.preview-controls::after{right:0;transform:scaleX(-1)}
/* Phones: slim arrows over the photo, no shaded side bands; sideways swipes change the photo (project-journey.js). */
@media(max-width:700px){.preview-previous,.preview-next{top:calc(50% - 22px);width:36px;height:44px;font-size:26px;text-shadow:0 1px 3px #000c}.preview-controls::before,.preview-controls::after{display:none}.immersive{touch-action:pan-y pinch-zoom}}
.preview-open:focus-visible,.preview-previous:focus-visible,.preview-next:focus-visible{outline:3px solid white;outline-offset:-4px}
body[data-variant="A"] .hero-zones{z-index:4}
body[data-variant="A"] .hero-scope{z-index:5}
body.journey-ready .preview-controls{visibility:var(--preview-visibility,hidden)}
body.journey-ready .preview-open span{transform:scale(var(--scope-counter-scale,1));transform-origin:100% 100%}
body.journey-ready .preview-previous,body.journey-ready .preview-next{transform:scale(var(--scope-counter-scale,1));transform-origin:center left}
body.journey-ready .preview-next{transform-origin:center right}
/* Progressive enhancement: small screens/short windows retain normal stacked flow. */
body.scroll-header-ready[data-variant="A"] .project-journey .immersive{position:relative;top:auto}
body.journey-ready[data-variant="A"] .project-journey{height:calc(var(--journey-height) + var(--journey-travel))}
body.journey-ready .journey-stage{position:sticky;top:0;height:var(--journey-height);isolation:isolate;overflow:clip}
body.journey-ready[data-variant="A"] .project-journey .immersive{position:absolute;inset:0 0 auto;transform-origin:0 0;transform:translate(var(--journey-x,0px),var(--journey-y,0px)) scale(var(--journey-scale,1));width:100%;will-change:transform}
body.journey-ready .journey-gallery{position:absolute;top:var(--hero-height);left:0;right:0;opacity:var(--gallery-opacity,1);transform:translateY(var(--gallery-rise,0px));visibility:var(--gallery-visibility,visible)}
body.journey-ready .project-overview{position:absolute;top:var(--overview-top,150px);right:5%;width:43%;padding:0;background:transparent;opacity:var(--overview-opacity,0);transform:translate(var(--overview-x,0px),var(--overview-rise,40px));visibility:var(--overview-visibility,hidden)}
body.journey-ready .project-overview .project-facts{margin-top:24px}
body.journey-ready .journey-stage:focus{outline:none}
body.journey-ready .journey-stage .hero-scope{transform:scale(var(--scope-counter-scale,1));transform-origin:0 100%;max-width:360px}
body.journey-ready .journey-stage .finish-detail{max-height:200px;overflow:auto}
/* Contrast stays local to the controls; never paint a full-width scroll slab.
   No geometry changes: anchoring and the compact/logo controller stay independent. */
body.scroll-header-ready[data-variant="A"] .site-header,
body.scroll-header-ready[data-variant="A"].header-compact .site-header{background:transparent;box-shadow:none}
body.scroll-header-ready[data-variant="A"].header-compact .site-header>.wordmark,
body.scroll-header-ready[data-variant="A"].header-compact .site-header>.header-project-name,
body.scroll-header-ready[data-variant="A"].header-compact .site-header>.header-controls,
body.scroll-header-ready.journey-moving[data-variant="A"] .site-header>.wordmark,
body.scroll-header-ready.journey-moving[data-variant="A"] .site-header>.header-project-name,
body.scroll-header-ready.journey-moving[data-variant="A"] .site-header>.header-controls,
body.scroll-header-ready[data-variant="A"] .expanded-menu{
 color:var(--ink);background:transparent;
 box-shadow:none;border-radius:0
}
/* The full-width resting bar fades/seats during the final 18% of native scroll.
   It never changes header geometry or restores individual item panels. */
body.scroll-header-ready[data-variant="A"] .site-header{isolation:isolate}
body.scroll-header-ready[data-variant="A"] .site-header::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--paper);box-shadow:0 1px 0 var(--line);opacity:var(--header-bar-progress,0);transform:translateY(calc(-4px * (1 - var(--header-bar-progress,0))))}
@media(prefers-reduced-motion:reduce){body.scroll-header-ready[data-variant="A"] .site-header::before{transform:none}}
/* Header artwork and navigation float without item panels, including the mobile menu. */
body[data-variant="A"] .site-header .project-menu nav{background:transparent;box-shadow:none;border:0}
.site-footer{align-items:start;padding-block:44px;margin-top:64px;font:18px/1.5 'Times New Roman',Times,serif}
.footer-identity p{font-size:32px;line-height:1.1}
.footer-identity span{display:block;color:var(--muted);margin-top:12px}
.site-footer nav{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px 28px}
.site-footer nav a{display:inline-flex;align-items:center;min-height:44px}
@media(max-width:620px){.site-footer{flex-direction:column;gap:24px}.site-footer nav{justify-content:flex-start;gap:4px 22px}}
/* The supporting story follows the details; it cannot cover their reading area. */
.rising-narrative{border-top:1px solid var(--line)}
@media(max-width:999px){
 .project-overview{padding:44px 5%}.project-overview .opening{font-size:24px}
 .project-overview .intro h2{font-size:42px}.project-overview .project-facts{gap:22px}
}
@media(max-width:500px){.project-overview .project-facts{grid-template-columns:1fr}.project-overview .intro h2{font-size:36px}}
@media print{.settled-gallery{display:none}body.journey-ready .project-journey{height:auto!important}body.journey-ready .journey-stage{position:static;height:auto}body.journey-ready[data-variant="A"] .project-journey .immersive,body.journey-ready .journey-gallery,body.journey-ready .project-overview{position:relative;inset:auto;width:100%;transform:none;opacity:1;visibility:visible}.explore-images{display:none}}
