/* MOCK only: etched, popped-out founder carousel. Loaded after founder-reel.css.
   Reuses the site's own depth technique:
   1. bg + cut pair, like the hero (.ve__bg / .ve__cut) and CTA (.cta__bg / .cta__cut):
      the full photo sits dimmed inside the frame, a B&W cut-out of Simon sits on top, registered
      pixel for pixel, with the hero's stacked drop shadows.
   2. pop-out, like the sports posters (.poster__athlete) and the old founder pop (founder-pop.css):
      the cut-out is clipped flat at the frame bottom only, so his head and arms break out of the
      top edge into the overhang the card already reserves (--f-over), in front of the ink border.
   3. layer order like the poster: photo, then slashes, then Simon, then the stroked sport word.
   4. tilt + glare like the poster (desktop, fine pointer), gentle scroll tilt on touch.
   Timing unchanged: 2s per photo, 0.4s slash wipe. */

.founder__stage--etched{
  --pop:24cqw;
  --bw:2.5px;
  --rx:0deg; --ry:0deg; --tx:0; --ty:0; --sy:0;
  container-type:inline-size;
  transform:perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style:flat;
  will-change:transform;
}
@media (min-width:901px) and (max-width:1180px){.founder__stage--etched{--pop:22cqw}}
@media (max-width:900px),(max-device-width:500px){.founder__stage--etched{--pop:21cqw}}

/* the frame no longer makes its own stacking context, so Simon can sit between the slashes and the word */
.founder__stage--etched .founder__media{z-index:auto;container-type:normal}
.founder__stage--etched .founder__reel{z-index:auto;inset:0;overflow:visible;background:transparent}

/* one shared image box for photo and cut-out: the frame's inside, stretched up by --pop */
.founder__stage--etched .founder__bgs{
  position:absolute;z-index:1;left:0;right:0;bottom:0;
  top:calc(-1 * var(--pop) - var(--bw));
  background:#1b1c1e;
}
.founder__stage--etched .founder__cuts{
  position:absolute;z-index:3;pointer-events:none;
  left:var(--bw);right:var(--bw);bottom:var(--bw);
  top:calc(-1 * var(--pop));
  /* flat at the frame bottom and sides (like .poster__athlete); above the frame top it has room to
     breathe, so the soft shadow never ends in a hard line */
  --side:10%;
  --edge:calc(var(--pop) + var(--bw));
  clip-path:polygon(calc(-1 * var(--side)) -20%, calc(100% + var(--side)) -20%, calc(100% + var(--side)) var(--edge), 100% var(--edge), 100% 100%, 0 100%, 0 var(--edge), calc(-1 * var(--side)) var(--edge));
}

.founder__stage--etched .founder__photo,
.founder__stage--etched .founder__cut{
  /* every photo uses the same box (box width, 4:5) and is placed by founder-reel-etched.js from its
     measured head box, so all slides share one pop-out, one head size and one centre line */
  position:absolute;left:0;top:0;display:block;
  width:100%;height:auto;aspect-ratio:1020/1275;max-width:none;
  transform-origin:0 0;
  transform:translate3d(calc(var(--L,0) * 1px + var(--tx) * .5px), calc(var(--T,0) * 1px + var(--ty) * .5px + var(--sy) * 1px), 0) scale(var(--S,1));
  visibility:hidden;pointer-events:none;
}
.founder__stage--etched .founder__photo.is-on,.founder__stage--etched .founder__photo.is-in,
.founder__stage--etched .founder__cut.is-on,.founder__stage--etched .founder__cut.is-in{visibility:visible}
.founder__stage--etched .founder__photo.is-on,.founder__stage--etched .founder__cut.is-on{z-index:1}
.founder__stage--etched .founder__photo.is-in,.founder__stage--etched .founder__cut.is-in{z-index:2}

/* the scene: dimmed and softened, like the hero bg on mobile (.ve__bg), so Simon lifts off it */
.founder__stage--etched .founder__photo{
  filter:grayscale(1) contrast(.84) brightness(.62) blur(.4px);
}
/* Simon: crisp etched B&W, with the hero cut-out's stacked shadows (.ve__cut) plus a hard ink edge
   that matches the frame's 5px ink offset */
.founder__stage--etched .founder__cut{
  filter:grayscale(1) contrast(1.16) brightness(1.05)
    drop-shadow(0 0 .6px rgba(9,11,16,.9))
    drop-shadow(0 2px 2px rgba(9,11,16,.30))
    drop-shadow(0 14px 18px rgba(9,11,16,.24));
}

/* one sport word style for every slide: same size (sized so CROSSFIT, the longest, fits), same
   position, same -7deg rotation */
.founder__stage--etched .founder__words span,
.founder__stage--etched .founder__words span[data-i]{font-size:12.6cqw}
.founder__dot:nth-child(6){--on:var(--orange)}

/* the CrossFit bar runs edge to edge in the photo: above the frame it fades out at the frame sides */
.founder__stage--etched[data-cut="3"] .founder__cuts{
  --side:0%;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 9%,#000 91%,transparent 100%),linear-gradient(#000,#000);
  mask-image:linear-gradient(90deg,transparent 0,#000 9%,#000 91%,transparent 100%),linear-gradient(#000,#000);
  -webkit-mask-size:100% var(--edge),100% calc(100% - var(--edge));mask-size:100% var(--edge),100% calc(100% - var(--edge));
  -webkit-mask-position:0 0,0 100%;mask-position:0 0,0 100%;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}

/* slashes now sit behind Simon, in front of the scene (poster order) */
.founder__stage--etched .founder__clip{z-index:2;border-radius:inherit}
.founder__stage--etched .founder__clip .pslash{opacity:.96;translate:calc(var(--tx) * -.3px) calc(var(--ty) * -.3px)}

/* sport word in front of Simon, drifting the other way (poster parallax) */
.founder__stage--etched .founder__words{z-index:4;translate:calc(var(--tx) * -.6px) calc(var(--ty) * -.6px)}
.founder__stage--etched .founder__words span{text-shadow:.07em .07em 0 var(--ink-0),.12em .14em .16em rgba(9,11,16,.25)}
.founder__stage--etched .founder__count{z-index:4}
.founder__stage--etched .founder__blade{z-index:5}
.founder__stage--etched .founder__dots{z-index:6}

/* glare, same recipe as .poster__glare */
.founder__glare{
  position:absolute;inset:0;z-index:4;pointer-events:none;opacity:0;mix-blend-mode:soft-light;
  transition:opacity .35s ease;
  background:radial-gradient(42% 40% at calc(50% + var(--gx,0) * 1%) calc(38% + var(--gy,0) * 1%),rgba(255,255,255,.9),rgba(255,255,255,0) 70%);
}
.founder__stage--etched.is-hover .founder__glare{opacity:.55}

html.motion-off .founder__stage--etched{transform:none}
@media (prefers-reduced-motion:reduce){
  .founder__stage--etched{transform:none}
  .founder__stage--etched .founder__photo,.founder__stage--etched .founder__cut{transform:translate3d(calc(var(--L,0) * 1px),calc(var(--T,0) * 1px),0) scale(var(--S,1))}
  .founder__stage--etched .founder__words,.founder__stage--etched .founder__clip .pslash{translate:none}
  .founder__glare{display:none}
}