/* hero: cards peek out of the pocket */
.c1{animation:pk1 4.8s ease-in-out infinite}
.c2{animation:pk2 4.8s ease-in-out infinite .5s}
.c3{animation:pk3 4.8s ease-in-out infinite 1s}
@keyframes pk1{0%,60%,100%{transform:rotate(9deg)}25%{transform:rotate(13deg) translate(8px,-40px)}}
@keyframes pk2{0%,60%,100%{transform:rotate(-1deg)}25%{transform:rotate(1deg) translateY(-56px)}}
@keyframes pk3{0%,60%,100%{transform:rotate(-9deg)}25%{transform:rotate(-13deg) translate(-8px,-40px)}}
.pk .front{animation:jig 4.8s ease-in-out infinite}
@keyframes jig{0%,100%{transform:none}22%{transform:translateY(4px) scaleY(.98)}30%{transform:translateY(-2px)}}

/* flying pockets */
.pitch{position:relative;overflow:hidden}
.pitch .wrap{position:relative;z-index:1}
.flies{position:absolute;inset:0;pointer-events:none}
.fp{position:absolute;width:64px;height:54px;animation:fl 7s ease-in-out infinite}
.f1{color:var(--coral);top:8%;right:6%;--r:-12deg}
.f2{color:var(--teal);top:34%;left:5%;width:84px;height:72px;--r:10deg;animation-duration:8.5s;animation-delay:-2s}
.f3{color:var(--yellow);bottom:14%;right:9%;width:52px;height:44px;--r:14deg;animation-duration:6.5s;animation-delay:-4s}
.f4{color:var(--navy);bottom:6%;left:12%;width:44px;height:38px;--r:-8deg;animation-duration:7.5s;animation-delay:-1s}
.f5{color:var(--coral);top:58%;right:20%;width:36px;height:30px;--r:20deg;animation-duration:9s;animation-delay:-3s;opacity:.85}
@keyframes fl{0%,100%{transform:translate(0,0) rotate(var(--r))}33%{transform:translate(10px,-22px) rotate(calc(var(--r) + 8deg))}66%{transform:translate(-8px,-10px) rotate(calc(var(--r) - 6deg))}}

/* words jump out of the pocket */
.pop{position:relative;height:230px;width:min(560px,100%);margin:10px auto 4px}
.pop .pp{position:absolute;bottom:0;left:50%;width:132px;height:112px;margin-left:-66px;color:var(--coral);z-index:2;filter:drop-shadow(0 14px 14px rgba(27,29,79,.25))}
.pop .w{position:absolute;bottom:34px;left:50%;font-family:var(--display);font-weight:700;font-size:clamp(42px,5vw,58px);line-height:1;white-space:nowrap;z-index:1;opacity:0;transform:translate(-50%,30px) scale(.3);transition:transform .7s cubic-bezier(.3,1.6,.5,1),opacity .3s}
.pop .w1{color:var(--coral)}.pop .w2{color:var(--teal)}.pop .w3{color:var(--navy)}
.pop.on .w{opacity:1}
.pop.on .w1{transform:translate(calc(-50% + 150px),-70px) rotate(10deg);transition-delay:.05s}
.pop.on .w2{transform:translate(-50%,-104px) rotate(-3deg);transition-delay:.35s}
.pop.on .w3{transform:translate(calc(-50% - 150px),-70px) rotate(-10deg);transition-delay:.65s}
.pop.on .pp{animation:shake .5s ease-in-out 3}
@keyframes shake{0%,100%{transform:none}30%{transform:rotate(-6deg) translateY(2px)}70%{transform:rotate(6deg) translateY(2px)}}

/* reveal on scroll */
.fx .rv{opacity:0;transform:translateY(40px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.8,.2,1)}
.fx .rv.in{opacity:1;transform:none}
.fx .strip .num.rv{transform:translateY(40px) rotate(-12deg) scale(.7)}
.fx .strip .num.rv.in{transform:none}

@media(max-width:600px){
 .f1,.f2,.f5{display:none}
 .pop{height:215px}
 .pop.on .w1{transform:translate(calc(-50% + 104px),-70px) rotate(10deg)}
 .pop.on .w3{transform:translate(calc(-50% - 104px),-70px) rotate(-10deg)}
 .pop.on .w2{transform:translate(-50%,-104px) rotate(-3deg)}
}
@media(prefers-reduced-motion:reduce){.pop .w{opacity:1;transform:none;position:static;display:inline-block;margin:0 8px}.pop{height:auto}.pop .pp{display:none}.fx .rv{opacity:1;transform:none}}
