/* Phoenix logo that draws itself (logo-draw.js). Without .pld-go (before it plays, ?still, reduced
   motion) only the plain filled logo shows. Brand colours only: navy #1A338A, green #009A77. */
.phx-ld{display:inline-block;line-height:0;vertical-align:middle}
.phx-ld .pld{width:100%;height:auto;overflow:visible;display:block}
.phx-ld .pld-fl,.phx-ld .pld-wf,.phx-ld .pld-lq{fill:#1A338A}
.phx-ld .pld-wd{fill:#009A77}
.phx-ld .pld-rv,.phx-ld .pld-sk,.phx-ld .pld-ol,.phx-ld .pld-wg,.phx-ld .pld-lqw,.phx-ld .pld-dt{display:none}
.phx-ld .pld-rv path{fill:none;stroke:#1A338A;stroke-width:8.5}
.phx-ld .pld-sk path{fill:none;stroke:#009A77;stroke-width:.8;stroke-linecap:round}
.phx-ld .pld-ol{fill:none;stroke:#1A338A;stroke-width:.8;stroke-linejoin:round}
.phx-ld .pld-cr{fill:none;stroke:#009A77;stroke-width:1.4}
.phx-ld .pld-dt circle{fill:#1A338A;transform-box:fill-box;transform-origin:center}.phx-ld .pld-dt circle.pld-g{fill:#009A77}
.phx-ld .pld-mk{transform-box:fill-box;transform-origin:50% 60%}
.phx-ld .pld-wg{transform-box:fill-box;transform-origin:50% 100%}
.phx-ld .pld-wl{transform-box:fill-box;transform-origin:center}

/* shared: the clean fill lands, the mark settles with a soft green glow, then the name comes in */
.phx-ld.pld-go{--fl:1s;--w0:1.05s}
.phx-ld.pld-go .pld-fl{animation:pldIn .35s ease var(--fl) both}
.phx-ld.pld-go .pld-mk{animation:pldSettle .8s ease-out calc(var(--fl) + .15s) both}
.phx-ld.pld-go .pld{animation:pldGlow .9s ease-out calc(var(--fl) + .15s) both}
.phx-ld.pld-go .pld-wl{animation:pldWl .6s cubic-bezier(.2,.8,.2,1) calc(var(--w0) + var(--i) * 55ms) both}
.phx-ld.pld-go .pld-wt{animation:pldIn .4s ease calc(var(--w0) + .5s + var(--i) * 35ms) both}
@keyframes pldIn{from{opacity:0}}
@keyframes pldOut{to{opacity:0}}
@keyframes pldDraw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes pldBits{from{stroke-dashoffset:1.2}to{stroke-dashoffset:0}}
@keyframes pldPenA{from{stroke-dashoffset:1}to{stroke-dashoffset:.5}}
@keyframes pldPenB{from{stroke-dashoffset:-1}to{stroke-dashoffset:-.5}}
@keyframes pldSettle{0%{transform:none}35%{transform:scale(1.05)}100%{transform:none}}
@keyframes pldGlow{0%{filter:drop-shadow(0 0 0 rgba(0,154,119,0))}35%{filter:drop-shadow(0 0 7px rgba(0,154,119,.45))}100%{filter:drop-shadow(0 0 0 rgba(0,154,119,0))}}
@keyframes pldWl{from{opacity:0;transform:translateX(var(--o)) scale(.7)}}

/* 1 pieces from the centre (the stage screen in the Bookchoco video) */
.phx-ld.pld-go.pld-s1 .pld-rv{display:inline}
.phx-ld.pld-go.pld-s1 .pld-rv path{stroke-dasharray:1 .04 .05 .04 .035 2;animation:pldBits .7s cubic-bezier(.3,.6,.3,1) both}
.phx-ld.pld-go.pld-s1 .pld-rv .pld-tl{stroke-width:10;stroke-dasharray:1 2;animation:pldDraw .4s cubic-bezier(.3,.6,.3,1) .05s both}
.phx-ld.pld-go.pld-s1 .pld-rv .pld-k0{animation-delay:.22s}.phx-ld.pld-go.pld-s1 .pld-rv .pld-k1{animation-delay:.3s}.phx-ld.pld-go.pld-s1 .pld-rv .pld-k2{animation-delay:.38s}

/* 2 two pens trace the outline, then the ink fills in */
.phx-ld.pld-go.pld-s2 .pld-ol{display:inline;stroke-dasharray:1 1;animation:pldPenA 1.05s cubic-bezier(.5,0,.3,1) .1s both,pldOut .3s ease 1.3s forwards}
.phx-ld.pld-go.pld-s2 .pld-ol.pld-o2{animation-name:pldPenB,pldOut}

/* 3 a green sketch line runs out from the centre and the navy follows it */
.phx-ld.pld-go.pld-s3{--fl:1.1s;--w0:1.15s}
.phx-ld.pld-go.pld-s3 .pld-rv,.phx-ld.pld-go.pld-s3 .pld-sk{display:inline}
.phx-ld.pld-go.pld-s3 .pld-rv path,.phx-ld.pld-go.pld-s3 .pld-sk path{stroke-dasharray:1 2;animation:pldDraw .7s cubic-bezier(.4,0,.2,1) both}
.phx-ld.pld-go.pld-s3 .pld-sk{animation:pldOut .3s ease 1.15s both}
.phx-ld.pld-go.pld-s3 .pld-sk .pld-k0{animation-delay:.12s}.phx-ld.pld-go.pld-s3 .pld-sk .pld-k1{animation-delay:.18s}.phx-ld.pld-go.pld-s3 .pld-sk .pld-k2{animation-delay:.24s}
.phx-ld.pld-go.pld-s3 .pld-rv .pld-tl{animation-delay:.2s}.phx-ld.pld-go.pld-s3 .pld-rv .pld-k0{animation-delay:.42s}.phx-ld.pld-go.pld-s3 .pld-rv .pld-k1{animation-delay:.48s}.phx-ld.pld-go.pld-s3 .pld-rv .pld-k2{animation-delay:.54s}

/* 4 the wings unfold from the tail */
.phx-ld.pld-go.pld-s4{--fl:.95s}
.phx-ld.pld-go.pld-s4 .pld-wg{display:inline;animation:pldWa .95s cubic-bezier(.34,1.4,.5,1) .05s both}
.phx-ld.pld-go.pld-s4 .pld-wb{animation-name:pldWb}
@keyframes pldWa{from{transform:rotate(48deg) scale(.5);opacity:0}30%{opacity:1}}
@keyframes pldWb{from{transform:rotate(-48deg) scale(.5);opacity:0}30%{opacity:1}}

/* 5 rises from the bottom like a liquid under a green crest */
.phx-ld.pld-go.pld-s5{--fl:1.15s;--w0:1.2s}
.phx-ld.pld-go.pld-s5 .pld-lqw{display:inline}
.phx-ld.pld-go.pld-s5 .pld-rs{animation:pldRise 1.2s cubic-bezier(.45,.05,.35,1) .05s both}
.phx-ld.pld-go.pld-s5 .pld-wv{animation:pldWave .6s linear 2}
@keyframes pldRise{from{transform:translateY(41px)}to{transform:translateY(-3px)}}
@keyframes pldWave{to{transform:translateX(-6px)}}

/* 6 dots gather from all sides */
.phx-ld.pld-go.pld-s6 .pld-dt{display:inline;animation:pldOut .35s ease 1.2s forwards}
.phx-ld.pld-go.pld-s6 .pld-dt circle{animation:pldDot .75s cubic-bezier(.2,.8,.2,1) var(--d) both}
@keyframes pldDot{from{transform:translate(var(--x),var(--y)) scale(.3);opacity:0}}
