[data-diego-hero] {
  isolation: isolate;
  pointer-events: none;
}

.diego-hero-surface,
[data-diego-hero]::before {
  position: absolute;
  display: block;
  width: 82.5%;
  left: 50%;
  bottom: -5.75%;
  transform: translateX(-50%);
}

.diego-hero-surface {
  /* The video adds 40 transparent pixels above the original 480 × 640 frame. */
  height: auto;
  aspect-ratio: 480 / 680;
}

[data-diego-hero]::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: auto 0 -3.3%;
  height: 7%;
  background:
    radial-gradient(ellipse 9% 14% at 37.4% 51%, #170b20ed 12%, #210e2ac4 53%, transparent),
    radial-gradient(ellipse 9% 14% at 62.3% 51%, #170b20ed 12%, #210e2ac4 53%, transparent),
    radial-gradient(ellipse 28% 29% at 56% 48%, #26122f9e 19%, #37153d70 61%, transparent);
}

[data-diego-hero]::before {
  content: '';
  height: 110%;
  background: url('assets/cartoon/hero-coin-poster.webp?v=2') center / contain no-repeat;
}

.diego-hero-surface,
[data-diego-hero][data-hero-video]::before {
  visibility: hidden;
}

[data-hero-video='alpha'] .diego-hero-video,
[data-hero-video='packed'] .diego-hero-canvas {
  visibility: visible;
}

.hero-copy {
  --hero-social-size: clamp(44px, 3.7cqw, 60px);
  gap: clamp(22px, 3.2vw, 28px);
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: clamp(9px, 1cqw, 16px);
}

.hero-socials > :is(a, button) {
  display: block;
  width: var(--hero-social-size);
  height: var(--hero-social-size);
  padding: 0;
  border: 0;
  border-radius: 24%;
  background: none;
  box-shadow: 0 3px 0 #270b3e9e;
}

.hero-socials > :is(a, button):hover { filter: brightness(1.13); }
.hero-socials > :is(a, button):focus-visible { outline-color: var(--cream); }
.hero-socials img { width: 100%; height: 100%; object-fit: contain; }

@media (min-width: 801px) {
  .hero-scene {
    height: clamp(580px, min(56.25vw, 100svh), 1080px);
  }

  .hero-character { bottom: 5%; }

  .hero-copy { bottom: max(22px, calc(11% - var(--hero-social-size) - 13px)); }
}

@media (max-width: 800px) {
  .hero-character {
    --hero-character-size: clamp(150px, 52cqw, 400px);
    top: calc(var(--hero-floor) - var(--hero-character-size));
    bottom: auto;
    left: 14%;
    height: var(--hero-character-size);
  }

  .hero-copy {
    position: relative;
    inset: auto;
    margin: calc(var(--hero-floor) + 21px) 6% 0;
    max-width: none;
    width: auto;
    align-items: center;
    text-align: center;
  }

  .hero-copy .button {
    min-width: 0;
    max-width: 100%;
    padding-inline: clamp(14px, 4vw, 24px);
  }

}
