/* Motion: smooth, subtle, consistent. One easing curve everywhere; everything off for prefers-reduced-motion. */
:root{
  --e-out:cubic-bezier(.16,1,.3,1);   /* soft "expo out" for entrances */
  --e-move:cubic-bezier(.22,.61,.36,1); /* hovers and state changes */
}

/* scroll reveal (replaces the basic one): fade, rise and settle, staggered per group via --d */
.up{opacity:0;transform:translate3d(0,22px,0) scale(.985);transition:opacity .9s var(--e-out),transform 1.1s var(--e-out);transition-delay:var(--d,0ms);will-change:opacity,transform}
.up.in{opacity:1;transform:none}

/* hero entrance on page load */
.hk .panel>.tx>*,.phero .panel>div>*,.phero .wrap>div[style]>*{opacity:0;transform:translate3d(0,16px,0);animation:rise .9s var(--e-out) forwards}
.hk .panel>.tx>*:nth-child(1),.phero .panel>div>*:nth-child(1){animation-delay:.05s}
.hk .panel>.tx>*:nth-child(2),.phero .panel>div>*:nth-child(2){animation-delay:.12s}
.hk .panel>.tx>*:nth-child(3),.phero .panel>div>*:nth-child(3){animation-delay:.2s}
.hk .panel>.tx>*:nth-child(4),.phero .panel>div>*:nth-child(4){animation-delay:.28s}
.hk .panel>.tx>*:nth-child(5),.phero .panel>div>*:nth-child(5){animation-delay:.34s}
.hk .mini>div{opacity:0;transform:scale(.96);animation:pop 1s var(--e-out) forwards}
.hk .mini>div:nth-child(1){animation-delay:.15s}.hk .mini>div:nth-child(2){animation-delay:.22s}
.hk .mini>div:nth-child(3){animation-delay:.29s}.hk .mini>div:nth-child(4){animation-delay:.36s}
.hk .mini>div:nth-child(5){animation-delay:.43s}.hk .mini>div:nth-child(6){animation-delay:.5s}
.hk .mini>div:nth-child(7){animation-delay:.57s}.hk .mini>div:nth-child(8){animation-delay:.64s}
.hk .mini>div:nth-child(9){animation-delay:.71s}
.phero .pic,.phero .trio{opacity:0;transform:scale(.97);animation:pop 1.1s var(--e-out) .15s forwards}
@keyframes rise{to{opacity:1;transform:none}}
@keyframes pop{to{opacity:1;transform:none}}
mark::after{transform-origin:left;transform:skewX(-8deg) scaleX(0);animation:mark .9s var(--e-out) .55s forwards}
@keyframes mark{to{transform:skewX(-8deg) scaleX(1)}}

/* buttons: tiny lift, soft shadow, smooth color */
.btn{transition:transform .35s var(--e-move),box-shadow .35s var(--e-move),background-color .3s var(--e-move),border-color .3s var(--e-move),color .3s var(--e-move)}
.btn:hover{transform:translate3d(0,-1px,0)}
.btn.k:hover{box-shadow:0 10px 22px -12px rgba(22,20,15,.55)}
.btn:active{transform:translate3d(0,0,0) scale(.985);transition-duration:.12s}
.btn .ico{transition:transform .4s var(--e-move)}
.btn:hover .ico{transform:translate3d(2px,0,0)}

/* cards: gentle lift; photos: slow drift */
.rv,.spot,.way,.val,.pk2>div,.faq details,.srow,.calc,.uses>div,.cside .ci{transition:transform .5s var(--e-move),box-shadow .5s var(--e-move),border-color .4s var(--e-move)}
.rv:hover,.spot:hover,.val:hover,.uses>div:hover,.cside .ci:hover{transform:translate3d(0,-3px,0);box-shadow:0 18px 34px -24px rgba(22,20,15,.35)}
.way:hover{transform:translate3d(0,-4px,0);box-shadow:0 22px 40px -26px rgba(22,20,15,.45)}
.way .im img,.mason img,.tile .im img,.duo .im img,.trio img,.cat img{transition:transform 1.4s var(--e-move)}
.way:hover .im img,.mason a:hover img,.tile:hover .im img,.duo:hover .im img{transform:scale(1.04)}

/* links with the amber underline: draw in */
.tlink,.subs a{background:linear-gradient(var(--amber),var(--amber)) 0 100%/0 2px no-repeat;border-bottom-color:transparent;transition:background-size .5s var(--e-move)}
.tlink{background-size:100% 2px}
.tlink:hover,.subs a:hover{background-size:100% 2px}
.subs a{background-size:0 2px;border-bottom:2px solid var(--line)}

/* nav: smoother bar change, dropdown glide */
.nav{transition:box-shadow .5s var(--e-move),background-color .5s var(--e-move)}
.nav .bar,.nav .logo img{transition:height .5s var(--e-move)}
.mega{transition:opacity .35s var(--e-move),transform .45s var(--e-out)}
.mnav.open{animation:sheet .45s var(--e-out)}
.mnav.open>*{opacity:0;animation:rise .55s var(--e-out) forwards}
.mnav.open>*:nth-child(2){animation-delay:.04s}.mnav.open>*:nth-child(3){animation-delay:.08s}.mnav.open>*:nth-child(4){animation-delay:.12s}
.mnav.open>*:nth-child(5){animation-delay:.16s}.mnav.open>*:nth-child(6){animation-delay:.2s}.mnav.open>*:nth-child(7){animation-delay:.24s}.mnav.open>*:nth-child(8){animation-delay:.28s}
@keyframes sheet{from{opacity:0;transform:translate3d(0,-8px,0)}to{opacity:1;transform:none}}

/* FAQ: answer eases in */
.faq details[open] p{animation:rise .5s var(--e-out)}
.faq summary::after{transition:transform .4s var(--e-move)}

/* calculator: photo crossfade, price pulse, chips glide */
#cimg{transition:opacity .45s var(--e-move),transform 1.2s var(--e-out)}
#cimg.swap{opacity:0;transform:scale(1.025)}
.cres b.bump{animation:bump .5s var(--e-out)}
@keyframes bump{0%{transform:translate3d(0,6px,0);opacity:.2}100%{transform:none;opacity:1}}
.seg button,.tiers2 button{transition:background-color .3s var(--e-move),border-color .3s var(--e-move),color .3s var(--e-move),transform .3s var(--e-move)}
.seg button:active,.tiers2 button:active{transform:scale(.97)}

/* lightbox fade */
.lb{display:grid;opacity:0;pointer-events:none;transition:opacity .35s var(--e-move)}
.lb.on{opacity:1;pointer-events:auto}
.lb img{transform:scale(.97);transition:transform .5s var(--e-out)}
.lb.on img{transform:none}

/* back-to-top + phone bar */
.totop,.sbar{transition-timing-function:var(--e-out)!important;transition-duration:.5s!important}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-delay:0s!important;transition-duration:.01ms!important;transition-delay:0s!important}
  .up,.hk .panel>.tx>*,.hk .mini>div,.phero .pic,.phero .trio,.phero .panel>div>*{opacity:1!important;transform:none!important}
  mark::after{transform:skewX(-8deg)!important}
}

/* form success pop-up */
.pc-ok{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:20px;background:rgba(22,20,15,.45);backdrop-filter:blur(6px);opacity:0;transition:opacity .35s var(--e-move)}
.pc-ok.on{opacity:1}
.pc-ok .card{width:min(420px,100%);background:#fff;border-radius:20px;padding:34px 26px 26px;text-align:center;box-shadow:0 30px 80px -30px rgba(22,20,15,.6);transform:translate3d(0,18px,0) scale(.94);transition:transform .6s var(--e-out)}
.pc-ok.on .card{transform:none}
.pc-ok .badge{position:relative;width:72px;height:72px;margin:0 auto 18px;border-radius:50%;background:var(--amber-t);color:var(--amber-d);display:grid;place-items:center;transform:scale(.4);animation:okpop .7s var(--e-out) .12s forwards}
.pc-ok .badge svg{width:34px;height:34px}
.pc-ok .badge path{stroke-dasharray:30;stroke-dashoffset:30;animation:okdraw .55s var(--e-out) .45s forwards}
.pc-ok .pc-conf{position:absolute;left:50%;top:50%;width:9px;height:9px;margin:-4.5px;border-radius:2px;opacity:0;animation:okburst 1.1s var(--e-out) .3s both}
.pc-ok h3{font-size:24px;margin-bottom:8px}
.pc-ok p{font-size:15px;margin-bottom:20px}
.pc-ok .btn{min-width:180px}
@keyframes okpop{60%{transform:scale(1.08)}to{transform:scale(1)}}
@keyframes okdraw{to{stroke-dashoffset:0}}
@keyframes okburst{0%{opacity:1;transform:translate3d(0,0,0) rotate(0) scale(.6)}70%{opacity:1}100%{opacity:0;transform:translate3d(var(--x),var(--y),0) rotate(var(--r)) scale(1)}}
@media (prefers-reduced-motion:reduce){.pc-ok .badge{transform:none}.pc-ok .badge path{stroke-dashoffset:0}.pc-ok .pc-conf{display:none}}
