.hero-with-portrait {
  --portrait-light: 85%;
  background: radial-gradient(ellipse at var(--portrait-light) 43%, #2b2b2b, #131313 29%, #070707 65%);
}
[dir="rtl"] .hero-with-portrait { --portrait-light: 15%; }

.hero-with-portrait .hero-media { z-index: -2; }
.hero-with-portrait .hero-art {
  left: -10%;
  right: auto;
  object-position: 45% center;
}
.hero-with-portrait .hero-media::after {
  background: linear-gradient(90deg, #070707 6%, #070707d9 28%, #07070765 45%, transparent 63%, #141414 91%);
}

.hero-portrait {
  --portrait-edge: to right;
  position: absolute;
  inset-inline-end: clamp(-44px, -2.6vw, -12px);
  inset-block-end: -4px;
  z-index: -1;
  width: clamp(292px, 39vw, 526px);
  pointer-events: none;
}
.hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(.65) brightness(.9);
  mask-image:
    linear-gradient(var(--portrait-edge), transparent, #000 13%),
    linear-gradient(#000 67%, #000d 84%, transparent 100%);
  mask-composite: intersect;
  animation: hero-portrait-in .9s var(--ease) both;
}
[dir="rtl"] .hero-portrait { --portrait-edge: to left; }
@keyframes hero-portrait-in {
  from { opacity: .25; transform: translateY(12px); }
}

@media (max-width: 700px) {
  .hero-with-portrait {
    padding-block-end: 237px;
    background: #070707;
  }
  .hero-with-portrait .hero-media { height: 240px; }
  .hero-with-portrait .hero-art {
    top: auto;
    bottom: 0;
    left: max(-58%, -360px);
    width: min(150%, 870px);
    height: auto;
    max-width: none;
  }
  .hero-with-portrait .hero-media::after {
    background:
      linear-gradient(180deg, #070707, transparent 38%, #07070732 83%, #070707 100%),
      linear-gradient(90deg, transparent 55%, #121212 89%);
  }
  .hero-portrait {
    inset-inline-end: -5%;
    width: clamp(182px, 57vw, 242px);
    inset-block-end: -3px;
  }
}
