/* ============================================================
   THE APPRENTICE — scroll-driven reel + section magnet
   ============================================================ */

/* Anchor links land below the fixed ticker + nav. No scroll snapping of any
   kind: the section magnet was removed at the author's request. */
html{scroll-padding-top:100px}

/* ------------------------------------------------------------------ reel */
.reel{
  position:relative;
  min-height:100svh;
  background:var(--ink);
}
.reel-stick{
  position:relative;min-height:100svh;overflow:hidden;
  display:grid;place-items:center;
}
/* The clip is square. Stretched edge to edge across a wide viewport it crops
   down to a nose and a sack, so it is anchored right at its own aspect ratio
   and the copy takes the space it leaves on the left. */
.reel-vid{
  position:absolute;top:0;right:0;height:100%;width:auto;max-width:66%;
  object-fit:cover;object-position:center;
  pointer-events:none;
}
.reel-scrim{
  position:absolute;inset:0;pointer-events:none;
  background:
    linear-gradient(90deg,var(--ink) 18%,rgba(2,6,9,.72) 38%,transparent 62%),
    linear-gradient(180deg,var(--ink),transparent 18%,transparent 76%,var(--ink));
}
.reel-copy{
  position:relative;z-index:2;width:min(1280px,92vw);margin-inline:auto;
  justify-self:start;align-self:center;padding-inline:max(0px,calc((100vw - min(1280px,92vw))/2));
}
.reel-copy h2{font-size:clamp(3rem,9vw,7rem);margin-bottom:20px}
.reel-copy .lede{max-width:44ch}


/* Until the clip can be scrubbed we simply show the poster — no broken frame. */
.reel-vid:not([src]){opacity:1}

@media (max-width:900px){
  /* No room for a split: the clip goes full width behind the copy instead. */
  .reel-vid{left:0;right:0;width:100%;height:auto;top:50%;translate:0 -50%;max-width:none}
  .reel-scrim{background:
    linear-gradient(180deg,var(--ink) 6%,rgba(2,6,9,.55) 30%,rgba(2,6,9,.8) 70%,var(--ink))}
}
@media (max-width:760px){
  .reel-copy h2{font-size:clamp(2.4rem,12vw,4rem)}
}
