/* All portrait SVGs use the original 3840 × 1952 media coordinate system.
   Inherit the same crop at every breakpoint; only opacity changes on selection. */
.hero__portraits {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero__portrait {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: var(--hero-fit, cover);
  object-position: var(--hero-position, 50% 45%);
  opacity: 0;
  transition: opacity .45s cubic-bezier(.22, 1, .36, 1);
}
.hero__portrait.is-current { z-index: 2; opacity: 1; }
.hero__portrait.is-outgoing { z-index: 1; opacity: 1; transition: none; }
.hero__portrait[data-preparing="true"] { opacity: 0; transition: none; }
.hero__portrait[data-pinned="true"] { opacity: 1; transition: none; }
/* Feather the shared canvas edge without changing the registered face crop. */
.hero__portraits::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 20%;
  z-index: 3;
  background: linear-gradient(180deg, transparent, rgba(24,16,16,.08) 20%,
    rgba(24,16,16,.32) 42%, rgba(24,16,16,.76) 66%, #181010 82%);
  opacity: 0;
  transition: opacity .45s cubic-bezier(.22, 1, .36, 1);
}
.hero__media[data-portrait-active="true"] .hero__portraits::after { opacity: 1; }
.hero__unavailable { z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .hero__portrait, .hero__portraits::after { transition: none; }
}
