/* LinkedIn-style avatar on the hero banner. */
.hero {
  --avatar-size: 152px;
  --avatar-ring: 4px;
  --avatar-inset: max(16px, calc((100% - min(100%, var(--max))) / 2 + 24px));
}
.hero-visual {
  position: relative;
}
.hero-avatar {
  position: absolute;
  z-index: 2;
  left: var(--avatar-inset);
  bottom: 0;
  width: var(--avatar-size);
  height: var(--avatar-size);
  transform: translateY(50%);
  border-radius: 50%;
  border: var(--avatar-ring) solid #fff;
  object-fit: cover;
  background: #00ff9c;
  box-shadow: none;
}
/* Keep the original hero padding; only grow it if the hanging avatar would sit on the text. */
.hero-body {
  padding-top: max(clamp(72px, 9vw, 120px), calc(var(--avatar-size) / 2 + 32px));
}
@media (max-width: 760px) {
  .hero {
    --avatar-size: 96px;
    --avatar-ring: 3px;
    --avatar-inset: 16px;
  }
}
/* Keep left green for the avatar on narrow phones (min-height would otherwise crop the banner from the left). */
@media (max-width: 520px) {
  .hero-banner {
    padding-left: 24px;
  }
  .hero-banner img {
    min-height: 0;
  }
}
