/* Flag #130 (option A, "the fix happening"): the Websites page "What changes" cards act out their fix
   when hovered (on a phone, when the card reaches the middle of the screen). Every extra piece is hidden
   at rest, so a card that isn't playing is the flag #121 card. Played by f130.js. */

@property --n{syntax:'<integer>';inherits:false;initial-value:0}

/* ---------- hidden at rest ---------- */
.o130 .vg,.o130 .scr,.o130 .br,.o130 .br em,.o130 .st{position:relative}
.o130 .st{align-self:flex-start}
.o130 .bt{white-space:nowrap}
.o130 .zt1{display:inline-block}
.o130 .zt2{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:5px;opacity:0}
.o130 .zrip{position:absolute;right:-18px;bottom:-18px;width:24px;height:24px;border-radius:50%;background:rgba(47,58,69,.18);opacity:0;pointer-events:none}
.o130 .zsg{position:absolute;left:0;top:0;font-style:normal;color:#dfe3e7;opacity:0}
.o130 .zd0,.o130 .zd1,.o130 .zd2{display:inline-block;overflow:hidden}
.o130 .zd0{max-width:2em}.o130 .zd1,.o130 .zd2{max-width:0}
.o130 .zc3{position:absolute;left:0;top:0;opacity:0;pointer-events:none;z-index:3}
.o130 .zplus{position:absolute;right:-2px;top:-13px;font:700 9px/1 var(--bd);color:#2c7a4b;opacity:0}
.o130a .play .scr>.br em::after{content:counter(n);position:absolute;right:0;top:0;color:#3b3b42}
.o130a .play .scr>.br em{color:transparent;counter-reset:n var(--n)}

/* 1. the page draws itself, the Book button pops in, a cursor clicks it and it turns to Booked */
.o130a .play .s1>.ln{transform-origin:left;animation:a130ln 5.2s cubic-bezier(.3,.7,.2,1) both}
.o130a .play .s1>.ln:nth-of-type(2){animation-name:a130ln2}
.o130a .play .s1>.ln:nth-of-type(3){animation-name:a130ln3}
@keyframes a130ln{0%{transform:scaleX(0)}10%,100%{transform:none}}
@keyframes a130ln2{0%,4%{transform:scaleX(0)}14%,100%{transform:none}}
@keyframes a130ln3{0%,8%{transform:scaleX(0)}18%,100%{transform:none}}
.o130a .play .s1>.bt{animation:a130bt 5.2s both}
@keyframes a130bt{0%,14%{opacity:0;transform:scale(.7)}22%{opacity:1;transform:scale(1.06)}26%,50%{opacity:1;transform:none;background:var(--v)}
  53%{transform:scale(.92)}57%,100%{opacity:1;transform:none;background:#2c7a4b}}
.o130a .play .s1>.bt .cur{animation:a130c1 5.2s cubic-bezier(.5,0,.2,1) both}
@keyframes a130c1{0%,26%{opacity:0;transform:translate(70px,34px)}30%{opacity:1}48%{transform:none}51%{transform:scale(.82)}55%,100%{opacity:1;transform:none}}
.o130a .play .s1>.bt .zrip{animation:a130rip 5.2s ease-out both}
@keyframes a130rip{0%,51%{opacity:0;transform:scale(.3)}53%{opacity:1}68%,100%{opacity:0;transform:scale(2)}}
.o130a .play .s1>.bt .zt1{animation:a130t1 5.2s both}
.o130a .play .s1>.bt .zt2{animation:a130t2 5.2s both}
@keyframes a130t1{0%,55%{opacity:1;transform:none}60%,100%{opacity:0;transform:translateY(-8px)}}
@keyframes a130t2{0%,57%{opacity:0;transform:translateY(8px)}62%,100%{opacity:1;transform:none}}

/* 2. the search types itself, your business rises past the other result, its stars light one by one */
.o130a .play .s2>.sq .zq{animation:a130q 5.2s both}
@keyframes a130q{0%,4%{clip-path:inset(0 100% 0 0);animation-timing-function:steps(15,end)}26%,100%{clip-path:inset(0 0 0 0)}}
.o130a .play .s2>.res.top{z-index:1;animation:a130up 5.2s cubic-bezier(.4,0,.2,1) both}
.o130a .play .s2>.res:not(.top){animation:a130dn 5.2s cubic-bezier(.4,0,.2,1) both}
@keyframes a130up{0%,28%{opacity:0;transform:translateY(var(--dn))}36%,46%{opacity:1;transform:translateY(var(--dn))}
  53%{transform:translateY(calc(var(--dn)/2)) scale(1.04);box-shadow:0 10px 20px -10px rgba(47,58,69,.4)}60%,100%{opacity:1;transform:none;box-shadow:none}}
@keyframes a130dn{0%,30%{opacity:0;transform:translateY(calc(var(--up)*-1))}38%,46%{opacity:.55;transform:translateY(calc(var(--up)*-1))}60%,100%{opacity:.55;transform:none}}
.o130a .play .s2>.res .zsg{animation:a130st 5.2s both}
@keyframes a130st{0%,64%{opacity:1;clip-path:inset(0 0 0 0);animation-timing-function:steps(5,end)}84%,100%{opacity:1;clip-path:inset(0 0 0 100%)}}

/* 3. the 49 is selected and retyped as 79, a cursor presses Publish, Live on your site ticks in */
.o130a .play .s3>.in .zd0{animation:a130d0 5.2s both}
@keyframes a130d0{0%,8%{max-width:2em;background:transparent}11%,20%{max-width:2em;background:rgba(47,58,69,.2)}22%,100%{max-width:0;background:rgba(47,58,69,.2)}}
.o130a .play .s3>.in .zd1{animation:a130d1 5.2s steps(1,end) both}
.o130a .play .s3>.in .zd2{animation:a130d2 5.2s steps(1,end) both}
@keyframes a130d1{0%,27%{max-width:0}28%,100%{max-width:1em}}
@keyframes a130d2{0%,33%{max-width:0}34%,100%{max-width:1em}}
.o130a .play .s3>.zc3{animation:a130c3 5.2s cubic-bezier(.5,0,.2,1) both}
@keyframes a130c3{0%,36%{opacity:0;left:50%;top:30%}40%{opacity:1;transform:none}54%{left:var(--px);top:var(--py);transform:none}57%{transform:scale(.82)}61%,100%{opacity:1;left:var(--px);top:var(--py);transform:none}}
.o130a .play .s3>.row .bt{animation:a130pub 5.2s both}
@keyframes a130pub{0%,56%{transform:none}58%{transform:scale(.9)}61%,100%{transform:none}}
.o130a .play .s3>.row .ok{animation:a130ok 5.2s both}
@keyframes a130ok{0%,60%{opacity:0;transform:translateX(-6px)}66%,100%{opacity:1;transform:none}}
.o130a .play .s3>.row .ok svg{animation:a130tk 5.2s both}
@keyframes a130tk{0%,62%{transform:scale(0)}68%{transform:scale(1.5)}72%,100%{transform:none}}

/* 4. the bars grow, the counts count up, then one more lead lands on Google search */
.o130a .play .s4>.br i{animation:a130bar 5.2s cubic-bezier(.3,.7,.2,1) both}
.o130a .play .s4>.br:nth-child(3) i{animation-name:a130bar2}
.o130a .play .s4>.br:nth-child(4) i{animation-name:a130bar3}
@keyframes a130bar{0%,6%{width:0}40%,100%{width:var(--w)}}
@keyframes a130bar2{0%,10%{width:0}44%,100%{width:var(--w)}}
@keyframes a130bar3{0%,14%{width:0}48%,100%{width:var(--w)}}
.o130a .play .s4 em.zn42{animation:a130n42 5.2s cubic-bezier(.3,.7,.2,1) both}
.o130a .play .s4 em.zn23{animation:a130n23 5.2s cubic-bezier(.3,.7,.2,1) both}
.o130a .play .s4 em.zn17{animation:a130n17 5.2s cubic-bezier(.3,.7,.2,1) both}
@keyframes a130n42{0%,6%{--n:0}40%,78%{--n:42}80%,100%{--n:43}}
@keyframes a130n23{0%,10%{--n:0}44%,100%{--n:23}}
@keyframes a130n17{0%,14%{--n:0}48%,100%{--n:17}}
.o130a .play .s4 .zplus{animation:a130pl 5.2s both}
@keyframes a130pl{0%,77%{opacity:0;transform:translateY(6px)}81%{opacity:1;transform:none}93%,100%{opacity:0;transform:translateY(-8px)}}

@media (prefers-reduced-motion:reduce){.o130 .zc3,.o130 .zt2,.o130 .zrip,.o130 .zplus,.o130 .zsg{display:none}}
