/* XD: full artboard width 1440px, with 25px radii at all four corners. */
.overlap-story>.program,.webkit-scroll .overlap-story>.program{position:relative;top:auto;bottom:auto;transform:none;will-change:auto;isolation:auto;backface-visibility:visible}
.program-stage{width:var(--page-width,100%);margin-left:calc((100% - var(--page-width,100%))/2);border-radius:25px;transform:translateZ(0);isolation:isolate;padding-bottom:410px}
.program-stage .cards{max-width:1200px;margin-inline:auto}
.program-search{max-width:379px}
.program-backdrop{inset:calc(-1 * var(--parallax-travel,560px) - 2px) 0 -2px;transform:translate3d(0,0,0);will-change:transform;backface-visibility:hidden}
.overlap-story>.space{position:relative;z-index:2;margin-top:-32px}
.about>.desktop-art{aspect-ratio:1440/390;height:auto}
.card>.card-desktop-art{aspect-ratio:379/523;height:auto}
.before>.desktop-art{aspect-ratio:1440/380;height:auto}
footer>.desktop-art{aspect-ratio:1440/688;height:auto}
@media(max-width:760px){
 .program-stage{border-radius:25px;padding-bottom:292px}
 .overlap-story>.space{margin-top:-20px}
 /* Size the enlarged map from its content, instead of stretching a blank grid row. */
 .space.selected{height:auto;min-height:0;--selected-map-height:clamp(104px,min(46vw,calc(100svh - 466px - env(safe-area-inset-bottom,0px))),210px)}
 .space.selected .map-layout{height:auto;grid-template-rows:var(--selected-map-height) auto}
 .space.selected .map-viewport{height:var(--selected-map-height);min-height:0}
 .space.selected .map-scene{top:35%}
 .space.selected .area-detail{margin-top:-24px}
}
@media(prefers-reduced-motion:reduce){
 .program-backdrop{inset:0;transform:none!important;will-change:auto}
 .program-stage{transform:none}
}

/* Extend only the XD gray backdrop; preserve the existing map and detail coordinates. */
.overlap-story>.space{background:transparent;box-shadow:none;isolation:isolate}
.overlap-story>.space::before{content:'';position:absolute;z-index:-1;inset:0 auto 0 50%;width:var(--page-width,100vw);transform:translateX(-50%);background:#f7f7f7;border-radius:25px;box-shadow:0 -12px 36px #16344006;pointer-events:none}

/* XD footer: blue #326b80, full screen width, rounded upper corners only. */
footer{background:transparent;overflow:visible;isolation:isolate}
footer::before{content:'';position:absolute;z-index:-1;inset:0 auto 0 50%;width:var(--page-width,100vw);transform:translateX(-50%);background:#326b80;border-radius:25px 25px 0 0;pointer-events:none}

/* Hold the card section once the photograph reaches the top of the viewport. */
.overlap-story>.program,.webkit-scroll .overlap-story>.program{position:sticky;top:calc(-1 * var(--program-heading-height,190px));bottom:auto}
@media(prefers-reduced-motion:reduce){.overlap-story>.program,.webkit-scroll .overlap-story>.program{position:relative;top:auto}}

/* Smooth the hold boundaries and keep holding until the foreground map reaches y=0. */
.overlap-story{clip-path:inset(0 -100vw)}
.overlap-story>.program,.webkit-scroll .overlap-story>.program{position:relative;top:auto;bottom:auto;transform:translate3d(0,0,0);will-change:transform;backface-visibility:hidden}
@media(prefers-reduced-motion:reduce){.overlap-story>.program,.webkit-scroll .overlap-story>.program{transform:none!important;will-change:auto}}
