/* Take 10 · SCRUBBED BUILD. On a desktop each coach gets a pinned stage and the scroll position drives the build
   (pc10.js lerps the progress, so it is smooth and fully reversible). The final state is the base CSS: with JS off, on
   reduced motion, everything shows built. Initial states are set inline by the script, never here.
   Phones: no pin; the same sequence plays once as a timed build when the coach reaches the screen. */
.pc10{--p10-bw:3px}
.pc10 .p10-run{position:relative}
.pc10 .p10-stage{display:grid;grid-template-columns:minmax(0,1fr);gap:28px;max-width:calc(1600px + var(--up) * .5);margin:0 auto}
.pc10 .p10-run + .p10-run{margin-top:clamp(72px,10vw,120px)}
.pc10 .p10-run + .wrap{margin-top:0}

/* the card: portrait on top, the nameplate and facts beneath, the cyan edge drawn over the four sides */
.pc10 .p10-cardwrap{--ch:min(calc((100vw - var(--g) * 2) / .72),640px);position:relative;width:min(100%,calc(var(--ch) * .72));aspect-ratio:.72;margin:0 auto}
.pc10 .p10-card{position:relative;z-index:1;display:flex;flex-direction:column;width:100%;height:100%}
.pc10 .p10-fig{position:relative;flex:0 0 60%;min-height:0;overflow:clip;background:var(--well)}
.pc10 .p10-fig img{width:100%;height:100%;object-fit:cover;transform-origin:50% 40%}
.pc10 .p10-plate{position:relative;flex:1 1 0;min-height:0;display:flex;flex-direction:column;justify-content:space-between;
  padding:clamp(12px,calc(var(--ch) * .028),24px) clamp(14px,calc(var(--ch) * .04),32px) clamp(12px,calc(var(--ch) * .03),26px)}
.pc10 .p10-pbg{position:absolute;inset:0;background:var(--well)}
.pc10 .p10-plate>*:not(.p10-pbg){position:relative}
.pc10 .co-name{overflow:clip;padding-bottom:.16em;margin-bottom:-.16em;font-size:clamp(26px,calc(var(--ch) * .058),54px)}
.pc10 .p10-nmi{display:block}
.pc10 .p10-dl{font-size:clamp(14px,calc(var(--ch) * .026),19px);line-height:1.4}
.pc10 .p10-row{position:relative;overflow:clip;display:grid;grid-template-columns:minmax(0,34%) minmax(0,1fr);gap:12px;align-items:baseline;padding:.5em 0}
.pc10 .p10-rule{position:absolute;left:0;right:0;top:0;height:1px;background:var(--hair);transform-origin:left}
.pc10 .p10-row dt{color:var(--mu);font-size:.88em}
.pc10 .p10-row dd{position:relative;margin:0;overflow:clip;padding-bottom:.14em;margin-bottom:-.14em;font-weight:500;font-variant-numeric:tabular-nums}
.pc10 .p10-in{display:block}
.pc10 .p10-n{font-variant-numeric:tabular-nums}
.pc10 .p10-pl{display:inline-block}
.pc10 .p10-sr{position:absolute;width:1px;height:1px;overflow:clip;clip-path:inset(50%);white-space:nowrap}

/* the cyan edge: six scaled bars. The bottom halves grow from the bottom centre outwards, the sides run up, and the top
   halves meet at the top centre (Sam's 22 Oct outline rule). Every bar overlaps its neighbour at the corners, so they close cleanly. */
.pc10 .p10-edge{position:absolute;inset:0;z-index:3;pointer-events:none}
.pc10 .p10-b{position:absolute;display:block;background:var(--edge)}
.pc10 .p10-bl,.pc10 .p10-br,.pc10 .p10-tl,.pc10 .p10-tr{width:50%;height:var(--p10-bw)}
.pc10 .p10-bl{left:0;bottom:0;transform-origin:100% 50%}
.pc10 .p10-br{right:0;bottom:0;transform-origin:0 50%}
.pc10 .p10-tl{left:0;top:0;transform-origin:0 50%}
.pc10 .p10-tr{right:0;top:0;transform-origin:100% 50%}
.pc10 .p10-sl,.pc10 .p10-sr2{top:0;bottom:0;width:var(--p10-bw);transform-origin:50% 100%}
.pc10 .p10-sl{left:0}
.pc10 .p10-sr2{right:0}

/* the name, very large and outlined, slides in behind the card (it only exists while the build is animated) */
.pc10 .p10-ghost{display:none;position:absolute;z-index:0;top:-.04em;left:50%;font:600 var(--p10-gs,min(15vw,18vh))/.82 var(--head);letter-spacing:-.045em;text-transform:uppercase;
  color:transparent;-webkit-text-stroke:1.5px var(--edge);opacity:.6;white-space:nowrap;pointer-events:none;user-select:none}
.pc10[data-g="light"] .p10-ghost,.pc10.light .p10-ghost{opacity:.4}
.pc10 .p10-run[data-dir="l"] .p10-ghost{left:auto;right:50%}
.pc10.p10-anim .p10-ghost{display:block}

/* the bio column */
.pc10 .p10-bio{max-width:46ch;margin:0 auto;width:100%}
.pc10 .p10-ln{display:flow-root;overflow:clip}
.pc10 .p10-lab{margin-top:22px;color:var(--mu);font:400 14px/1.4 var(--body)}
.pc10 .p10-labw{padding-bottom:6px;margin-bottom:-6px}
.pc10 .co-q{margin-top:6px;border-top:0}
.pc10 .co-q li{padding:0;border:0;overflow:clip}
.pc10 .co-q li>span{display:block;padding:9px 0;border-bottom:1px solid var(--hair)}
.pc10 .co-q li:first-child>span{border-top:1px solid var(--hair)}

/* phones, and the timed build: coaches clip the sliding name so the page never widens */
.pc10.p10-anim:not(.p10-live) .p10-run{overflow:clip}
.pc10.p10-anim:not(.p10-live) .p10-cardwrap{margin-top:calc(var(--p10-gs) * .9);--p10-gs:min(17vw,76px)}
.pc10.p10-anim:not(.p10-live) .p10-ghost{top:calc(-.82em - .04em)}
.pc10 .p10-run[data-dir="r"] .p10-ghost{left:0}
.pc10 .p10-run[data-dir="l"] .p10-ghost{right:0}

/* desktop: card and bio side by side, the second coach mirrored */
@media (min-width:900px){
  .pc10 .p10-stage{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,5vw,96px);align-items:center}
  .pc10 .p10-cardwrap{--ch:560px;width:min(100%,calc(var(--ch) * .72))}
  .pc10 .p10-run[data-dir="l"] .p10-cardcol{order:2}
  .pc10 .p10-run[data-dir="r"] .p10-ghost{left:calc(100% - .2em)}
  .pc10 .p10-run[data-dir="l"] .p10-ghost{right:calc(100% - .2em)}
  .pc10.p10-anim .p10-cardwrap{margin-top:0}
  .pc10.p10-anim .p10-ghost{top:-.04em}
}

/* desktop with motion: the pin. Each coach holds a stage a screen tall for about 1.8 screens of scroll. The stage keeps
   clear of the floating header pill (--bar + --top). overflow: clip, never hidden: focus inside must not scroll it. */
.pc10.p10-live .p10-run{height:280vh}
.pc10.p10-live .p10-run + .p10-run{margin-top:0}
.pc10.p10-live .p10-pin{position:sticky;top:0;height:100vh;overflow:clip;margin-inline:calc(var(--g) * -1);
  padding:calc(var(--bar) + var(--top) + 16px) var(--g) 32px}
.pc10.p10-live .p10-stage{height:100%;align-items:center}
.pc10.p10-live .p10-stage{--ch:min(calc(100vh - var(--bar) - var(--top) - 48px),calc(780px + var(--up) * .5))}
.pc10.p10-live .p10-cardcol{height:100%;display:flex;align-items:center;justify-content:center}
.pc10.p10-live .p10-cardwrap{--ch:min(calc(100vh - var(--bar) - var(--top) - 48px),calc(780px + var(--up) * .5));height:var(--ch);width:auto;margin:0}
.pc10.p10-live .p10-ghost{--p10-gs:min(13vw,calc(var(--ch) * .3))}
.pc10.p10-live .p10-bio{height:var(--ch);align-self:center;display:flex;flex-direction:column;justify-content:flex-end}
.pc10 .p10-run[data-dir="r"] .p10-fig img{object-position:50% 25%}
.pc10 .p10-run[data-dir="l"] .p10-fig img{object-position:50% 30%}
