/* NEXROC v97 — cinematic THREE-stage petal-to-photo reveal; native scroll+Lenis compatible. */
.nx-future-story{position:relative;width:100%;min-height:100svh;background:#fff;color:#090909;isolation:isolate;}
html.nx-future-ready .nx-future-story{height:400svh;min-height:calc(4 * 420px);}
.nx-future-story__sticky{position:sticky;top:0;left:0;height:100svh;min-height:420px;width:100%;overflow:hidden;background:#fff;isolation:isolate;}
.nx-future-story__title{position:absolute;z-index:3;left:clamp(26px,4.2vw,100px);top:50%;transform:translateY(-50%);margin:0;width:max-content;max-width:calc(100% - 54px);font-family:Arial,Helvetica,sans-serif;font-size:clamp(46px,6.6vw,132px);font-weight:500;letter-spacing:-.072em;line-height:1.07;color:#050505;opacity:var(--nx-future-title-opacity,1);filter:blur(var(--nx-future-title-blur,0px));pointer-events:none;will-change:opacity,filter;}
.nx-future-story__petals{position:absolute;inset:0;z-index:4;pointer-events:none;opacity:var(--nx-future-petals-opacity,1);transform:translateZ(0) scale(var(--nx-future-petals-scale,1));transform-origin:64% 53%;will-change:transform,opacity;}
.nx-future-story__petal{position:absolute;display:block;width:clamp(150px,20vw,360px);height:auto;aspect-ratio:1;object-fit:contain;transform-origin:50% 95%;filter:drop-shadow(0 8px 4px rgba(226,115,157,.08));}
/* A three-petal flower, with two original illustrated petals and the third made of the photo. */
.nx-future-story__petal--left{left:64%;top:53%;transform:translate(-50%,-95%) rotate(-58deg);}
.nx-future-story__petal--right{left:64%;top:53%;transform:translate(-50%,-95%) rotate(55deg);}
.nx-future-story__flower-core{position:absolute;left:64%;top:53%;width:clamp(10px,1.5vw,22px);height:clamp(10px,1.5vw,22px);border-radius:50%;background:#9d3b5b;transform:translate(-50%,-50%);box-shadow:0 0 0 7px rgba(230,112,152,.12);}
.nx-future-story__photo-portal{position:absolute;inset:0;z-index:5;background:transparent;will-change:clip-path;-webkit-clip-path:polygon(64% 53%,66% 57%,69% 61%,73% 67%,79% 74%,81% 79%,79% 81%,79% 84%,76% 84%,71% 81%,67% 75%,64% 67%);clip-path:polygon(64% 53%,66% 57%,69% 61%,73% 67%,79% 74%,81% 79%,79% 81%,79% 84%,76% 84%,71% 81%,67% 75%,64% 67%);}
.nx-future-story__photo,.nx-future-story__fallback,.nx-future-story__shade{position:absolute;inset:0;width:100%;height:100%;}
.nx-future-story__fallback{background:#f9d9e9 url(../img/nexroc-sakura-fallback.webp) center center / cover no-repeat;}
.nx-future-story__photo{display:block;object-fit:cover;object-position:center center;}
.nx-future-story__shade{background:linear-gradient(to top,rgba(17,13,35,.50),transparent 36%);opacity:var(--nx-future-shade-opacity,0);}
.nx-future-story__ending{position:absolute;z-index:7;bottom:clamp(55px,11svh,130px);width:100%;padding:0 20px;display:flex;align-items:center;justify-content:center;opacity:var(--nx-future-together-opacity,0);transform:translate3d(0,var(--nx-future-together-y,38px),0);pointer-events:none;will-change:opacity,transform;text-align:center;}
.nx-future-story__ending span{font-family:Arial,Helvetica,sans-serif;color:#fff;font-size:clamp(72px,11vw,210px);font-weight:500;letter-spacing:-.076em;line-height:1.06;text-shadow:0 2px 25px rgba(0,0,0,.28);}
@media(max-width:767px){
 .nx-future-story__sticky{min-height:380px;}
 .nx-future-story__title{font-size:clamp(38px,9.1vw,70px);top:37%;left:20px;max-width:calc(100% - 40px);white-space:normal;line-height:1.08;letter-spacing:-.065em;}
 .nx-future-story__petals{transform-origin:55% 59%;}
 .nx-future-story__petal{width:clamp(115px,38vw,210px);}
 .nx-future-story__petal--left,.nx-future-story__petal--right{left:55%;top:59%;}
 .nx-future-story__flower-core{left:55%;top:59%;}
 .nx-future-story__ending{bottom:max(16svh,60px);}
 .nx-future-story__ending span{font-size:clamp(52px,15vw,92px);}
 .nx-future-story__photo{object-position:center center;}
}
@media(prefers-reduced-motion:reduce){
 html.nx-future-ready .nx-future-story{height:auto;min-height:100svh;}
 .nx-future-story__sticky{position:relative;min-height:550px;background:#f7d7e1;}
 .nx-future-story__photo-portal{-webkit-clip-path:none!important;clip-path:none!important;}
 .nx-future-story__petals{display:none!important;}
 .nx-future-story__title{z-index:8;top:22%;color:#fff;font-size:clamp(32px,6vw,80px);opacity:1!important;filter:none!important;text-shadow:0 1px 12px rgba(0,0,0,.45);}
 .nx-future-story__shade{opacity:1!important;}
 .nx-future-story__ending{opacity:1!important;transform:none!important;}
}
