/* Take 9, "The deal" (22 Oct 2026). Two blank cards slide in, the card arrives face down from its outer side and
   flips as it settles, the face rows stagger in, the stack eases into a fan, then the bio arrives. The base styles
   are the finished state; the build plays only under .p9-js on a coach that has gained .p9-in. */
.pc9{overflow:clip;--p9-w:min(100%,380px);--p9-card:#0f1517;--p9-line:rgba(54,174,203,.9)}
.pc9 .p9-coach{--sx:min(72vw,960px);--sy:0px;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(40px,6vw,120px);align-items:center;margin-top:clamp(64px,9vw,140px)}
.pc9 .p9-coach:first-of-type{margin-top:0}
.pc9 .p9-r .p9-stage{grid-column:2;grid-row:1;justify-self:end}
.pc9 .p9-r .p9-bio{grid-column:1;grid-row:1}
.pc9 .p9-stage{position:relative;width:var(--p9-w);padding:0}
.pc9 .p9-l .p9-stage{justify-self:start}

/* the blank cards behind: resting as a tidy fan */
.pc9 .p9-blank{position:absolute;inset:0;border-radius:18px;background:linear-gradient(160deg,#141b1e,#0c1113);border:1.5px solid rgba(54,174,203,.6);transform-origin:50% 92%}
.pc9 .p9-blank::after{content:"";position:absolute;inset:10px;border-radius:10px;border:1px solid rgba(54,174,203,.18)}
.pc9 .p9-b1{transform:translate(-12px,4px) rotate(-6deg)}
.pc9 .p9-b2{transform:translate(12px,2px) rotate(5deg)}

/* the card: perspective here, the flip inside it */
.pc9 .p9-card{position:relative;perspective:1500px}
.pc9 .p9-flip{position:relative;transform-style:preserve-3d;transform:rotateY(180deg)}
.pc9 .p9-back,.pc9 .p9-face{backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:18px;border:2px solid var(--p9-line);background:var(--p9-card);color:#fff}
.pc9 .p9-face{position:relative;padding:10px 10px 18px;transform:rotateY(180deg);box-shadow:0 30px 60px -30px rgba(0,0,0,.8),0 0 0 1px rgba(54,174,203,.18)}
.pc9 .p9-back{position:absolute;inset:0;display:grid;place-items:center;border-width:1.5px;background:radial-gradient(circle at 50% 40%,#162226,#0b1012 70%)}
.pc9 .p9-back::before{content:"";position:absolute;inset:12px;border-radius:10px;border:1px solid rgba(54,174,203,.28)}
.pc9 .p9-back svg{width:62%;height:auto;overflow:visible}
.pc9 .p9-ring{fill:none;stroke:#36AECB;stroke-width:3;stroke-linecap:round;stroke-dasharray:88 112}

.pc9 .p9-ph{position:relative;aspect-ratio:4/5;overflow:hidden;border-radius:10px;background:var(--well)}
.pc9 .p9-ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pc9 .p9-nm{margin:16px 6px 0;font-size:34px;line-height:1;color:#fff}
.pc9 .p9-st{margin:14px 6px 0;border-top:1px solid rgba(255,255,255,.18)}
.pc9 .p9-st>div{display:grid;grid-template-columns:minmax(88px,34%) 1fr;gap:10px;padding:9px 0;border-bottom:1px solid rgba(255,255,255,.18);font:400 15px/1.35 var(--body)}
.pc9 .p9-st>div:last-child{border-bottom:0;padding-bottom:0;min-height:calc(2 * 1.35 * 15px + 9px)}
.pc9 .p9-st dt{color:rgba(255,255,255,.72);font-size:14px}
.pc9 .p9-st dd{margin:0;font-weight:500;color:#fff}

/* the bio column */
.pc9 .p9-bio{max-width:48ch}
.pc9 .p9-bio .co-bio{margin-top:0;max-width:none;font-size:calc(18px + var(--up) * .01)}
.pc9 .p9-bio .co-with{margin-top:26px}
.pc9 .p9-ql{margin-top:26px;color:var(--mu);font:400 14px/1.4 var(--body)}
.pc9 .p9-bio .co-q{margin-top:6px}

/* ---- the build ---- (only the portrait fades; everything else moves, draws, masks or counts) */
.pc9 .p9-num{font-variant-numeric:tabular-nums}
.pc9 .p9-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.pc9 .p9-edge{display:none;position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.pc9.p9-js .p9-edge{display:block}
.pc9.p9-js .p9-face{border-color:transparent}
.pc9 .p9-edge path{fill:none;stroke:var(--p9-line);stroke-width:2;stroke-dasharray:100;stroke-dashoffset:0}
.pc9.p9-js .p9-coach:not(.p9-in) .p9-edge path{stroke-dashoffset:100}
.pc9.p9-js .p9-in .p9-edge path{animation:p9-edge .8s 1.2s cubic-bezier(.65,0,.25,1) both}
@keyframes p9-edge{from{stroke-dashoffset:100}to{stroke-dashoffset:0}}
.pc9.p9-js .p9-coach:not(.p9-in) .p9-blank,.pc9.p9-js .p9-coach:not(.p9-in) .p9-card{visibility:hidden}
.pc9.p9-js .p9-coach:not(.p9-in) .p9-flip{transform:rotateY(0)}
.pc9.p9-js .p9-coach:not(.p9-in) .p9-ph{opacity:0}
.pc9.p9-js .p9-coach:not(.p9-in) .p9-nm{clip-path:inset(0 0 100% 0);transform:translateY(60%)}
.pc9.p9-js .p9-coach:not(.p9-in) .p9-st>div{clip-path:inset(0 100% 0 0);transform:translateX(-18px)}
.pc9.p9-js .p9-coach:not(.p9-in) .p9-bio>:not(.co-q),.pc9.p9-js .p9-coach:not(.p9-in) .co-q li{clip-path:inset(0 0 100% 0);transform:translateY(28px)}
.pc9.p9-js .p9-pl{visibility:hidden}
.pc9.p9-js .p9-done .p9-pl{visibility:visible}
.pc9.p9-js .p9-in .p9-b1{animation:p9-b1 1.9s both}
.pc9.p9-js .p9-in .p9-b2{animation:p9-b2 1.9s .12s both}
.pc9.p9-js .p9-in .p9-card{animation:p9-travel .95s .3s both}
.pc9.p9-js .p9-in .p9-flip{animation:p9-flip .6s .75s both}
.pc9.p9-js .p9-in .p9-ring{animation:p9-draw .9s .35s both}
.pc9.p9-js .p9-in .p9-ph{animation:p9-fade .7s 1.0s both}
.pc9.p9-js .p9-in .p9-nm{animation:p9-mask .6s 1.5s cubic-bezier(.22,1,.36,1) both}
.pc9.p9-js .p9-in .p9-st>div{animation:p9-slide .65s cubic-bezier(.22,1,.36,1) both;animation-delay:calc(1.65s + var(--j,0) * .12s)}
.pc9.p9-js .p9-in .p9-st>div:nth-child(1){--j:0}
.pc9.p9-js .p9-in .p9-st>div:nth-child(2){--j:1}
.pc9.p9-js .p9-in .p9-st>div:nth-child(3){--j:2}
.pc9.p9-js .p9-in .p9-bio>:not(.co-q),.pc9.p9-js .p9-in .co-q li{animation:p9-mask .8s cubic-bezier(.22,1,.36,1) both;animation-delay:calc(2.05s + var(--k,0) * .08s)}
.pc9.p9-js .p9-in .p9-bio>:nth-child(1){--k:0}
.pc9.p9-js .p9-in .p9-bio>:nth-child(2){--k:1}
.pc9.p9-js .p9-in .p9-bio>:nth-child(3){--k:2}
.pc9.p9-js .p9-in .co-q li:nth-child(1){--k:3}
.pc9.p9-js .p9-in .co-q li:nth-child(2){--k:4}
.pc9.p9-js .p9-in .co-q li:nth-child(3){--k:5}

@keyframes p9-fade{from{opacity:0}to{opacity:1}}
@keyframes p9-mask{from{clip-path:inset(0 0 100% 0);transform:translateY(28px)}to{clip-path:inset(0 0 -20% 0);transform:none}}
@keyframes p9-slide{from{clip-path:inset(0 100% 0 0);transform:translateX(-18px)}to{clip-path:inset(0 -2% 0 0);transform:none}}
@keyframes p9-travel{
  0%{transform:translate3d(calc(var(--d) * var(--sx)),var(--sy),0) rotate(calc(var(--d) * -16deg));animation-timing-function:cubic-bezier(.22,1,.36,1)}
  55%{transform:translate3d(calc(var(--d) * var(--sx) * .3),calc(var(--sy) * .3 - 70px),0) rotate(calc(var(--d) * 7deg));animation-timing-function:cubic-bezier(.65,0,.25,1)}
  100%{transform:none}}
@keyframes p9-flip{
  0%{transform:rotateY(0)}
  50%{transform:rotateY(90deg) scale(1.07)}
  100%{transform:rotateY(180deg)}}
@keyframes p9-draw{from{stroke-dashoffset:88}to{stroke-dashoffset:0}}
@keyframes p9-b1{
  0%{transform:translate3d(calc(var(--d) * var(--sx) * 1.05),calc(var(--sy) * .8),0) rotate(calc(var(--d) * -12deg));animation-timing-function:cubic-bezier(.22,1,.36,1)}
  29%,66%{transform:translate(-8px,6px) rotate(-2.5deg);animation-timing-function:cubic-bezier(.65,0,.25,1)}
  100%{transform:translate(-12px,4px) rotate(-6deg)}}
@keyframes p9-b2{
  0%{transform:translate3d(calc(var(--d) * var(--sx) * 1.05),calc(var(--sy) * .8),0) rotate(calc(var(--d) * -12deg));animation-timing-function:cubic-bezier(.22,1,.36,1)}
  29%,66%{transform:translate(7px,3px) rotate(2deg);animation-timing-function:cubic-bezier(.65,0,.25,1)}
  100%{transform:translate(12px,2px) rotate(5deg)}}

/* phones and narrow tablets: stacked, the deal comes from below */
@media (max-width:899px){
  .pc9 .p9-coach{--sx:0px;--sy:min(46vh,380px);grid-template-columns:minmax(0,1fr);gap:44px}
  .pc9 .p9-r .p9-stage,.pc9 .p9-r .p9-bio{grid-column:1;grid-row:auto}
  .pc9 .p9-stage,.pc9 .p9-l .p9-stage,.pc9 .p9-r .p9-stage{--p9-w:min(100%,300px);justify-self:center}
  .pc9 .p9-b1{transform:translate(-8px,4px) rotate(-4deg)}
  .pc9 .p9-b2{transform:translate(8px,2px) rotate(3.5deg)}
  .pc9.p9-js .p9-in .p9-b1{animation-name:p9-b1m}
  .pc9.p9-js .p9-in .p9-b2{animation-name:p9-b2m}
  .pc9 .p9-nm{font-size:30px}
}
@keyframes p9-b1m{
  0%{transform:translate3d(0,calc(var(--sy) * .8),0) rotate(-8deg);animation-timing-function:cubic-bezier(.22,1,.36,1)}
  29%,66%{transform:translate(-5px,6px) rotate(-1.5deg);animation-timing-function:cubic-bezier(.65,0,.25,1)}
  100%{transform:translate(-8px,4px) rotate(-4deg)}}
@keyframes p9-b2m{
  0%{transform:translate3d(0,calc(var(--sy) * .8),0) rotate(8deg);animation-timing-function:cubic-bezier(.22,1,.36,1)}
  29%,66%{transform:translate(5px,3px) rotate(1.5deg);animation-timing-function:cubic-bezier(.65,0,.25,1)}
  100%{transform:translate(8px,2px) rotate(3.5deg)}}
@media (prefers-reduced-motion:reduce){
  .pc9 *{animation:none!important;transition:none!important}
}
/* keep the fan's outer edge inside the gutter */
@media (min-width:900px){
  .pc9 .p9-l .p9-stage{margin-left:44px}
  .pc9 .p9-r .p9-stage{margin-right:44px}
}
