.feral-hero {
  position: relative;
  aspect-ratio: var(--feral-hero-desktop-ratio, 16 / 9);
  width: 100%;
  overflow: hidden;
  background: #1e0b24;
}

.feral-hero__poster,
.feral-hero__video,
.feral-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.feral-hero__poster {
  z-index: 0;
}

.feral-hero__video {
  z-index: 1;
  display: block;
  border: 0;
}

.feral-hero__image,
.feral-hero__poster > img,
.feral-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.feral-hero[data-media-fit="contain"] .feral-hero__image,
.feral-hero[data-media-fit="contain"] .feral-hero__poster > img,
.feral-hero[data-media-fit="contain"] .feral-hero__video {
  object-fit: contain;
}

.feral-hero[data-media-position="top"] .feral-hero__image,
.feral-hero[data-media-position="top"] .feral-hero__poster > img,
.feral-hero[data-media-position="top"] .feral-hero__video {
  object-position: center top;
}

.feral-hero[data-media-position="bottom"] .feral-hero__image,
.feral-hero[data-media-position="bottom"] .feral-hero__poster > img,
.feral-hero[data-media-position="bottom"] .feral-hero__video {
  object-position: center bottom;
}

.feral-hero[data-media-position="left"] .feral-hero__image,
.feral-hero[data-media-position="left"] .feral-hero__poster > img,
.feral-hero[data-media-position="left"] .feral-hero__video {
  object-position: left center;
}

.feral-hero[data-media-position="right"] .feral-hero__image,
.feral-hero[data-media-position="right"] .feral-hero__poster > img,
.feral-hero[data-media-position="right"] .feral-hero__video {
  object-position: right center;
}

.feral-hero__image--mobile {
  display: none;
}

.feral-hero__placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 154, 198, 0.42), transparent 34%),
    radial-gradient(circle at 76% 40%, rgba(114, 60, 135, 0.5), transparent 38%),
    linear-gradient(135deg, #1e0b24, #101012);
}

.feral-hero__overlay {
  z-index: 2;
  pointer-events: none;
  background: rgb(16 16 18 / var(--feral-hero-overlay-opacity, 0%));
}

.feral-hero__content {
  position: absolute;
  right: 32px;
  bottom: 44px;
  z-index: 3;
  display: flex;
  max-width: min(620px, calc(100% - 64px));
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  pointer-events: none;
  text-align: right;
}

.feral-hero__heading {
  max-width: 100%;
  margin: 0;
  color: #fff;
  font-family: var(--feral-display, "Syne", sans-serif);
  font-size: clamp(30px, 2.8vw, 48px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.48);
  text-transform: uppercase;
}

.feral-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #fdfdfd;
  color: #101012 !important;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  pointer-events: auto;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.feral-hero[data-cta-position="bottom-left"] .feral-hero__content {
  right: auto;
  left: 32px;
  align-items: flex-start;
  text-align: left;
}

.feral-hero[data-cta-position="center"] .feral-hero__content {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  align-items: center;
  text-align: center;
  transform: translate(-50%, -50%);
}

.feral-hero[data-cta-style="dark"] .feral-hero__cta {
  border-color: rgba(253, 253, 253, 0.5);
  background: #101012;
  color: #fdfdfd !important;
}

.feral-hero[data-cta-style="pink"] .feral-hero__cta {
  background: #ff2e85;
  color: #101012 !important;
}

.feral-hero__cta:hover,
.feral-hero__cta:focus-visible {
  background: #ff9ac6;
  color: #101012 !important;
}

.feral-hero__cta:active {
  transform: translateY(1px);
}

@media (max-width: 749px) {
  .feral-hero {
    aspect-ratio: var(--feral-hero-mobile-ratio, 4 / 5);
  }

  .feral-hero--has-mobile-poster .feral-hero__image--desktop {
    display: none;
  }

  .feral-hero__image--mobile {
    display: block;
  }

  .feral-hero__content,
  .feral-hero[data-cta-position="bottom-left"] .feral-hero__content {
    right: 18px;
    bottom: 20px;
    left: auto;
    max-width: calc(100% - 36px);
    gap: 14px;
  }

  .feral-hero__heading {
    font-size: clamp(28px, 8.5vw, 38px);
  }

  .feral-hero__cta {
    min-height: 40px;
    padding: 10px 20px;
  }

  .feral-hero[data-cta-position="bottom-left"] .feral-hero__content {
    right: auto;
    left: 18px;
  }

  .feral-hero[data-cta-position="center"] .feral-hero__content {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feral-hero__video {
    display: none;
  }

  .feral-hero__cta {
    transition: none;
  }
}
