/* ══════════════════════════════════════════════════════════════
   TALENT CAPITAL — HERO SLIDESHOW (client 2026-10-13)
   "…like different kind of pictures online for sport and everything, and we
   just have that kind of slideshow in our hero section."  Reference sites:
   playersfund.vc, pco.com — full-bleed photographs that cross-fade on their own.

   Loaded AFTER style.css and the other fix files. The hero copy, buttons and
   marquee are untouched; only the ground behind them changes:
     .hshow        the stack of slides (replaces the old single .hero__art photo)
     .hero__bloom  re-tuned veil so white copy reads over ANY slide
     .hctl         pause/play + one dot per slide (progress fills the live dot)
   Square corners as everywhere (the guard at the end of style.css still wins).
   ══════════════════════════════════════════════════════════════ */

.hero{
  --hhold: 6500ms;      /* time a slide is held — mirrored from main.js */
  --hfade: 1400ms;      /* cross-fade */
}

/* ── the slide stack ─────────────────────────────────────────── */
.hshow{
  position:absolute; inset:0; z-index:0; overflow:hidden; background: var(--bg-ink);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.55) 5%, #000 12%);
          mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.55) 5%, #000 12%);
}
.hshow__slide{
  position:absolute; inset:0; opacity:0; z-index:0; pointer-events:none;
  transition: opacity var(--hfade) ease;
}
.hshow__slide.is-on{ opacity:1; z-index:2; }
/* the leaving slide stays fully opaque UNDER the arriving one until the fade is done (no darker dip mid-fade) */
.hshow__slide.is-out{ opacity:1; z-index:1; }
.hshow__slide img{
  display:block; width:100%; height:100%; object-fit:cover;
  object-position: var(--hx, 50%) var(--hy, 50%);
  transform-origin: var(--hx, 50%) var(--hy, 50%);
  filter: var(--hf, saturate(1.04) contrast(1.03));
}

/* --sx: slide pushed to the right (feathered at its new left edge) so the subject clears the headline */
.hshow__slide--shift img{
  margin-left: var(--sx, 0%); width: calc(100% - var(--sx, 0%));
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 9%, #000 26%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 9%, #000 26%);
}

/* slow push-in. The leaving slide keeps the SAME animation while it fades, so it never snaps back. */
@keyframes hshow-push{ from{ transform: scale(1); } to{ transform: scale(1.06); } }
.hshow__slide.is-on img,
.hshow__slide.is-out img{ animation: hshow-push calc(var(--hhold) + var(--hfade) + 400ms) linear both; }
.hero.is-paused .hshow__slide img{ animation-play-state: paused; }

/* ── the veil: pooled behind the copy (left + foot), clear over the photograph ── */
.hero__bloom{
  background:
    radial-gradient(ellipse 62% 70% at 90% 104%, rgba(10,10,11,.66) 0%, rgba(10,10,11,0) 100%),
    linear-gradient(90deg, rgba(10,10,11,.86) 0%, rgba(10,10,11,.68) 22%, rgba(10,10,11,.30) 46%, rgba(10,10,11,.04) 66%, rgba(10,10,11,0) 76%),
    linear-gradient(180deg, rgba(10,10,11,.84) 0%, rgba(10,10,11,.16) 13%, rgba(10,10,11,0) 26%,
                    rgba(10,10,11,0) 50%, rgba(10,10,11,.52) 76%, rgba(10,10,11,.92) 100%);
}

/* ── controls ────────────────────────────────────────────────── */
.hero.is-live .hctl{ display:flex; }   /* hidden unless initHeroShow() is running (no dead buttons without JS) */
.hctl{
  position:absolute; z-index:3;
  display:none; align-items:center; gap:10px;
  right: var(--gutter); top: 50%; transform: translateY(-50%);
  flex-direction: column;
}
.hctl__dots{ display:flex; flex-direction:column; align-items:center; }
.hctl__dot, .hctl__pp{
  appearance:none; -webkit-appearance:none; background:none; border:0; padding:0; margin:0;
  cursor:pointer; color: var(--txt-inv); font: inherit; -webkit-tap-highlight-color: transparent;
}
.hctl__dot{ position:relative; width:28px; height:30px; display:grid; place-items:center; }
.hctl__dot::before, .hctl__dot::after{
  content:''; position:absolute; left:50%; top:50%; width:2px; height:22px; margin:-11px 0 0 -1px;
}
.hctl__dot::before{ background: rgba(244,248,251,.6); transition: background .25s ease; filter: drop-shadow(0 0 2px rgba(10,10,11,.75)); }
.hctl__dot.is-wait{ opacity:.4; cursor:default; }
.hctl__dot:hover::before{ background: rgba(244,248,251,.9); }
.hctl__dot::after{ background: var(--accent); transform: scaleY(0); transform-origin: top center; }
.hctl__dot.is-on::before{ background: rgba(244,248,251,.34); }
.hctl__dot.is-on::after{ animation: hctl-fill var(--hhold) linear forwards; }
@keyframes hctl-fill{ from{ transform: scaleY(0); } to{ transform: scaleY(1); } }
.hero.is-paused .hctl__dot.is-on::after{ animation-play-state: paused; }
.hero.is-still .hctl__dot.is-on::after{ animation: none; transform: scaleY(1); }   /* reduced motion / capture: no clock, just the marker */

.hctl__pp{
  position:relative; width:30px; height:30px; display:grid; place-items:center;
  border: 1px solid rgba(244,248,251,.4); background: rgba(10,10,11,.42);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.hctl__pp:hover{ border-color: var(--accent); color: var(--accent); }
.hctl__ico{ width:12px; height:12px; display:block; }
.hctl__ico--play{ display:none; }
.hctl__pp[aria-pressed="true"] .hctl__ico--pause{ display:none; }
.hctl__pp[aria-pressed="true"] .hctl__ico--play{ display:block; }
.hctl__dot:focus-visible, .hctl__pp:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── phones & tablets ≤900px: the photograph takes the TOP of the hero (the copy owns the lower half),
   fading into the ink; the controls become a quiet row under the header ── */
@media (max-width: 999px){
  .hshow{
    inset: 0 0 auto 0; height: 62%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 42%, transparent 92%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 42%, transparent 92%);
  }
  .hero .hshow__slide--shift img{ margin-left: 0; width: 100%; -webkit-mask-image: none; mask-image: none; }
  /* phone framing: the photo is scaled to --mz x the box height and lifted by --mt so the SUBJECT'S HEAD lands in the clear top
     of the box (the lower half fades into the ink under the copy). Computed per slide by .claude/tc-hero-build.py --html */
  .hero .hshow__slide img{
    position:absolute; left:0; width:100%; height: calc(100% * var(--mz, 1)); top: var(--mt, 0%);
    object-position: var(--mx, 50%) 50%;
    transform-origin: 50% 20%;
  }
  .hero__bloom{
    background:
      linear-gradient(180deg, rgba(10,10,11,.82) 0%, rgba(10,10,11,.12) 14%, rgba(10,10,11,.5) 24%, rgba(10,10,11,.62) 34%,
                      rgba(10,10,11,.74) 46%, rgba(10,10,11,.88) 60%, rgba(10,10,11,.96) 100%);
  }
  .hero .kicker{ text-shadow: 0 0 12px rgba(10,10,11,.95), 0 1px 2px rgba(10,10,11,.9); }   /* the small yellow line must read over bright photos */
  .hctl{
    top: 86px; right: auto; left: var(--gutter); transform: none; flex-direction: row-reverse; gap: 8px;
  }
  .hctl__dots{ flex-direction: row; }
  .hctl__dot{ width:30px; height:28px; }
  .hctl__dot::before, .hctl__dot::after{ width:22px; height:2px; margin:-1px 0 0 -11px; }
  .hctl__dot::after{ transform: scaleX(0); transform-origin: left center; }
  .hctl__dot.is-on::after{ animation-name: hctl-fill-x; }
  .hero.is-still .hctl__dot.is-on::after{ animation: none; transform: scaleX(1); }
}
@keyframes hctl-fill-x{ from{ transform: scaleX(0); } to{ transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce){
  .hshow__slide{ transition-duration: .01ms; }
  .hshow__slide.is-on img, .hshow__slide.is-out img{ animation: none; }
}
