/* Take 6 · FOIL TRADING CARD. Each coach is a collectible card with a cyan frame. Build (one run per card, when it enters):
   portrait opens from the centre, the frame traces itself round the card, the name bar drops in, the stat rows rise one by
   one, one foil sheen crosses the finished card, then the bio arrives. Finished cards tilt towards a fine pointer (max 6deg). */
.pc6{--p6-ease:cubic-bezier(.22,1,.36,1);--p6-move:cubic-bezier(.65,0,.25,1);--p6-r:22px;--p6-fw:6px;--p6-card:#12161808;
  --p6-panel:var(--well);--p6-ink:#fff}
.pc6.light{--p6-ink:var(--ink)}
.pc6 .p6-coach{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(40px,6vw,120px);align-items:center}
.pc6 .p6-coach+.p6-coach{margin-top:clamp(72px,10vw,176px)}
.pc6 .p6-flip{grid-template-columns:minmax(0,6fr) minmax(0,5fr)}
.pc6 .p6-flip .p6-stage{order:2;justify-self:end}
.pc6 .p6-stage{justify-self:start;width:min(100%,calc(440px + var(--up) * .35));perspective:1100px}

/* the card: 1 : 1.4 */
.pc6 .p6-card{position:relative;width:100%;aspect-ratio:1/1.4;border-radius:var(--p6-r);padding:var(--p6-fw);
  transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transition:transform .6s var(--p6-ease);will-change:transform}
.pc6 .p6-card.p6-hot{transition-duration:.12s;transition-timing-function:linear}
.pc6 .p6-shadow{position:absolute;inset:0;border-radius:var(--p6-r);box-shadow:0 40px 70px -34px rgba(0,0,0,.75),0 0 46px -14px rgba(54,174,203,.45)}
.pc6.light .p6-shadow{box-shadow:0 36px 60px -34px rgba(11,13,14,.5),0 0 40px -16px rgba(54,174,203,.5)}
.pc6 .p6-face{position:relative;height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto;border-radius:calc(var(--p6-r) - var(--p6-fw));overflow:clip}
.pc6 .p6-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 20px;height:clamp(54px,4.2vw,64px);background:var(--p6-panel);border-bottom:2px solid var(--brand)}
.pc6 .p6-bar .co-name{font-size:clamp(22px,1.9vw,calc(30px + var(--up) * .03));line-height:1.05}
.pc6 .p6-pip{flex:none;width:10px;height:10px;border-radius:50%;background:var(--brand)}
.pc6 .p6-photo{position:relative;overflow:hidden;overflow:clip;background:var(--p6-panel);clip-path:circle(85% at 50% 50%)}
.pc6 .p6-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pc6 .p6-stats{clip-path:inset(0);padding:0;background:var(--p6-panel);border-top:2px solid var(--brand)}
.pc6 .p6-row{overflow:hidden;overflow:clip;display:grid;grid-template-columns:minmax(92px,38%) minmax(0,1fr);gap:12px;align-items:center;height:52px;padding:0 20px;border-top:1px solid var(--hair)}
.pc6 .p6-row:first-child{border-top:0}
.pc6 .p6-row dt{color:var(--mu);font:400 13.5px/1.2 var(--body)}
.pc6 .p6-row dd{margin:0;font:500 15px/1.22 var(--body);text-wrap:balance}

/* frame: one rect whose stroke draws round the card, starting top left */
.pc6 .p6-frame{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.pc6 .p6-frame path{display:none;fill:none;stroke:var(--brand);stroke-width:var(--p6-fw);stroke-linejoin:round;stroke-dasharray:1 1;stroke-dashoffset:0}
.pc6.p6-geo .p6-frame path{display:inline}
.pc6.p6-geo .p6-frame rect{display:none}
.pc6 .p6-frame rect{x:calc(var(--p6-fw) / 2);y:calc(var(--p6-fw) / 2);width:calc(100% - var(--p6-fw));height:calc(100% - var(--p6-fw));
  rx:calc(var(--p6-r) - var(--p6-fw) / 2);ry:calc(var(--p6-r) - var(--p6-fw) / 2);fill:none;stroke:var(--brand);stroke-width:var(--p6-fw);
  stroke-linejoin:round;stroke-dasharray:1 1;stroke-dashoffset:0}

/* foil sheen (played once) and the pointer glare */
.pc6 .p6-sheen,.pc6 .p6-glare{position:absolute;inset:0;border-radius:var(--p6-r);overflow:clip;pointer-events:none}
.pc6 .p6-sheen::before{content:"";position:absolute;top:-25%;bottom:-25%;left:0;width:62%;mix-blend-mode:overlay;opacity:0;
  background:linear-gradient(100deg,transparent 0,rgba(255,255,255,.7) 34%,rgba(130,235,255,.95) 48%,rgba(255,214,250,.8) 56%,rgba(255,255,255,.6) 66%,transparent 100%);
  transform:translateX(-230%) skewX(-18deg)}
.pc6 .p6-glare{opacity:0;transition:opacity .4s;background:radial-gradient(circle at var(--gx,50%) var(--gy,50%),rgba(255,255,255,.34),rgba(255,255,255,0) 55%);mix-blend-mode:soft-light}
.pc6 .p6-card.p6-hot .p6-glare{opacity:1}

/* the bio column */
.pc6 .p6-bio{justify-self:start}
.pc6 .p6-bio .co-with{margin-top:0}
.pc6 .p6-ql{margin-top:26px;color:var(--mu);font:400 14px/1 var(--body)}
.pc6 .p6-ql+.co-q{margin-top:10px}
.pc6 .p6-flip .p6-bio{justify-self:end}

.pc6 .p6-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.pc6 .p6-vis{font-variant-numeric:tabular-nums}
.pc6 .p6-n{display:inline-block;min-width:calc(var(--d,2) * 1ch);text-align:right;font-weight:inherit}
.pc6 .p6-plus{display:inline-block;font-weight:inherit}
.pc6 .p6-li>span{display:block}
.pc6 .p6-b,.pc6 .p6-li>span{clip-path:inset(0 0 -10px 0)}

/* build states: only when the script has switched them on. Nothing fades in but the portrait. */
.pc6.p-js .p6-coach:not(.p6-in) .p6-photo{opacity:0;clip-path:circle(0% at 50% 50%)}
.pc6.p-js .p6-coach:not(.p6-in) .p6-frame path{stroke-dashoffset:1}
.pc6.p-js .p6-coach:not(.p6-in) .p6-shadow{opacity:0}
.pc6.p-js .p6-coach:not(.p6-in) .p6-bar{transform:translateY(-101%)}
.pc6.p-js .p6-coach:not(.p6-in) .p6-pip{transform:scale(0)}
.pc6.p-js .p6-coach:not(.p6-in) .p6-stats{clip-path:inset(0 0 100% 0)}
.pc6.p-js .p6-coach:not(.p6-in) .p6-row dt,.pc6.p-js .p6-coach:not(.p6-in) .p6-row dd{transform:translateY(120%)}
.pc6.p-js .p6-coach:not(.p6-plusin) .p6-plus{clip-path:inset(0 100% 0 0);transform:translateX(-.4em)}
.pc6.p-js .p6-coach:not(.p6-in) .p6-b,.pc6.p-js .p6-coach:not(.p6-in) .p6-li>span{clip-path:inset(0 0 100% 0);transform:translateY(28px)}

.pc6.p6-t .p6-photo{transition:clip-path 1s var(--p6-move),opacity .7s linear}
.pc6.p6-t .p6-frame path{transition:stroke-dashoffset 1.2s var(--p6-move) .4s}
.pc6.p6-t .p6-shadow{transition:opacity .9s var(--p6-ease) 1.4s}
.pc6.p6-t .p6-bar{transition:transform .7s var(--p6-ease) 1.3s}
.pc6.p6-t .p6-pip{transition:transform .5s var(--p6-ease) 1.7s}
.pc6.p6-t .p6-stats{transition:clip-path .7s var(--p6-move) 1.35s}
.pc6.p6-t .p6-row dt,.pc6.p6-t .p6-row dd{transition:transform .65s var(--p6-ease)}
.pc6.p6-t .p6-row:nth-child(1) dt{transition-delay:1.5s}.pc6.p6-t .p6-row:nth-child(1) dd{transition-delay:1.56s}
.pc6.p6-t .p6-row:nth-child(2) dt{transition-delay:1.65s}.pc6.p6-t .p6-row:nth-child(2) dd{transition-delay:1.71s}
.pc6.p6-t .p6-row:nth-child(3) dt{transition-delay:1.8s}.pc6.p6-t .p6-row:nth-child(3) dd{transition-delay:1.86s}
.pc6.p6-t .p6-plus{transition:clip-path .35s var(--p6-ease),transform .45s var(--p6-ease)}
.pc6.p6-t .p6-b,.pc6.p6-t .p6-li>span{transition:clip-path .8s var(--p6-ease),transform .9s var(--p6-ease)}
.pc6.p6-t .p6-b:nth-child(1){transition-delay:2.3s}
.pc6.p6-t .p6-b:nth-child(2){transition-delay:2.42s}
.pc6.p6-t .p6-b:nth-child(3){transition-delay:2.54s}
.pc6.p6-t .p6-li:nth-child(1)>span{transition-delay:2.62s}
.pc6.p6-t .p6-li:nth-child(2)>span{transition-delay:2.72s}
.pc6.p6-t .p6-li:nth-child(3)>span{transition-delay:2.82s}
.pc6.p6-t .p6-in .p6-sheen::before{animation:p6-sheen 1.15s var(--p6-move) 2.1s 1 both}
@keyframes p6-sheen{0%{transform:translateX(-230%) skewX(-18deg);opacity:1}100%{transform:translateX(260%) skewX(-18deg);opacity:1}}

@media (max-width:899px){
  .pc6 .p6-coach,.pc6 .p6-flip{grid-template-columns:minmax(0,1fr);gap:36px;align-items:start}
  .pc6 .p6-coach+.p6-coach{margin-top:80px}
  .pc6 .p6-stage,.pc6 .p6-flip .p6-stage{order:0;justify-self:center;width:min(100%,420px)}
  .pc6 .p6-bio,.pc6 .p6-flip .p6-bio{justify-self:start}
  .pc6 .p6-row{height:56px;padding:0 16px}
  .pc6 .p6-bar{padding:0 16px}
}
@media (prefers-reduced-motion:reduce){
  .pc6 .p6-card{transform:none!important}
  .pc6 .p6-sheen::before{display:none}
}
