/* Version 4: entrance animations and interaction polish on top of version 3.
   Every hidden starting state sits under .v4-ready, which v4.js adds only when it can run
   (and never for visitors who prefer reduced motion), so content is always visible without it. */

.v4-bar{position:fixed;left:0;top:0;height:3px;width:100%;z-index:70;background:linear-gradient(90deg,#FF9A2E,#F26A00);transform-origin:0 50%;transform:scaleX(0);pointer-events:none}

/* ---- on load: header and hero ---- */
.v4-ready .hdr{animation:v4drop .8s var(--ease) both}
.v4-ready .hero .kick{animation:v4rise .9s var(--ease) .25s both}
.v4-ready .hero h1{animation:v4title 1.200s cubic-bezier(.2,.8,.2,1) .4s both}
.v4-ready .swoosh path{stroke-dasharray:1;stroke-dashoffset:1;animation:v4draw .8s ease-out 1.250s forwards}
.v4-ready .hero .sub{animation:v4rise .9s var(--ease) 1s both}
.v4-ready .hero .btn-row{animation:v4rise .9s var(--ease) 1.200s both}
.v4-ready .hero-tags li{animation:v4fromright .8s var(--ease) both}
.v4-ready .hero-tags li:nth-child(1){animation-delay:1.300s}
.v4-ready .hero-tags li:nth-child(2){animation-delay:1.420s}
.v4-ready .hero-tags li:nth-child(3){animation-delay:1.540s}
.v4-ready .hero-tags li:nth-child(4){animation-delay:1.660s}
@keyframes v4drop{from{transform:translateY(-100%)}}
@keyframes v4rise{from{opacity:0;transform:translateY(28px)}}
@keyframes v4title{from{opacity:0;clip-path:inset(0 0 100% 0);transform:translateY(40px) scale(1.04)}to{opacity:1;clip-path:inset(-20% -5% -20% -5%)}}
@keyframes v4fromright{from{opacity:0;transform:translateX(40px)}}
@keyframes v4draw{to{stroke-dashoffset:0}}

/* ---- on scroll: shared engine ---- */
.v4-ready .fx{transition:opacity .9s var(--ease),translate .9s var(--ease),scale 1s var(--ease),rotate .9s var(--ease),clip-path 1.100s cubic-bezier(.7,0,.2,1),transform .35s var(--ease),box-shadow .35s var(--ease);transition-delay:var(--fd,0s)}
.v4-ready .fx-rise{opacity:0;translate:0 46px}
.v4-ready .fx-left{opacity:0;translate:-70px 0}
.v4-ready .fx-right{opacity:0;translate:70px 0}
.v4-ready .fx-flip{opacity:0;translate:0 60px;rotate:x 18deg;transform-origin:50% 100%}
.v4-ready .fx-pop{opacity:0;scale:.55;transition-timing-function:cubic-bezier(.3,1.500,.5,1)}
.v4-ready .fx-deal{opacity:0;translate:-60px 70px;scale:.7}
.v4-ready .fx-wipe{clip-path:inset(-10% 100% -25% 0);translate:-18px 0;opacity:.2}
.v4-ready .fx-curtain{clip-path:inset(100% 0 0 0 round 18px);translate:0 36px}
.v4-ready .fx-kb .im img,.v4-ready .fx-curtain img{scale:1.300;transition:scale 1.700s var(--ease),transform .9s var(--ease);transition-delay:var(--fd,0s)}
.v4-ready .fx-curtain>span{opacity:0;translate:0 18px;transition:opacity .7s var(--ease),translate .7s var(--ease);transition-delay:calc(var(--fd,0s) + .55s)}
.v4-ready .fx.v4-in{opacity:1;translate:0 0;scale:1;rotate:x 0deg}
.v4-ready .fx-wipe.v4-in{clip-path:inset(-10% -5% -25% -5%)}
.v4-ready .fx-curtain.v4-in{clip-path:inset(0 0 0 0 round 18px)}
.v4-ready .fx-kb.v4-in .im img,.v4-ready .fx-curtain.v4-in img{scale:1}
.v4-ready .fx-curtain.v4-in>span{opacity:1;translate:0 0}
.pkgs{perspective:1500px}

/* icons draw themselves */
.v4-ready .fx-draw>*{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 1.300s ease-out;transition-delay:calc(var(--fd,0s) + .2s)}
.v4-ready .fx-draw.v4-in>*{stroke-dashoffset:0}

/* the enquiry button gets one soft pulse when it arrives */
.cta .btn.v4-pulse{animation:v4pulse 1.600s ease-out 2}
@keyframes v4pulse{0%{box-shadow:0 0 0 0 rgba(242,106,0,.55),0 10px 22px -10px rgba(242,106,0,.9)}100%{box-shadow:0 0 0 22px rgba(242,106,0,0),0 10px 22px -10px rgba(242,106,0,.9)}}

/* experience cards lean toward the pointer, with a light sheen */
@media (hover:hover) and (pointer:fine){
  .v4-ready .exp-row{perspective:1400px}
  .v4-ready .exp:not(.fx){transition:transform .25s ease-out,box-shadow .25s ease-out}
  .v4-ready .exp::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;opacity:0;transition:opacity .3s;background:radial-gradient(420px circle at var(--mx,50%) var(--my,50%),rgba(255,255,255,.26),transparent 60%)}
  .v4-ready .exp:hover::before{opacity:1}
  .v4-ready .exp span{z-index:2}
  .v4-ready .exp:hover{box-shadow:0 30px 50px -20px rgba(0,20,40,.8)}
}
