/* ==========================================================================
   hero block
   Text sits centered both horizontally and vertically over the banner, on
   top of a scrim so it stays readable regardless of what's behind it.
   Mobile (<768px): image is treated as a pure decorative background —
   object-fit: cover on a fixed/clamp height. object-position stays tuned
   to keep the characters in frame rather than a strict top-crop, since
   the fixed clamp height already crops far more than 18% here.
   Tablet/desktop (>=768px): box height is 82% of the image's natural
   height (1895:680.6, derived from the real 1895x830 asset), so cover
   crops exactly the top 18% off; object-position: bottom keeps all of
   that crop on the top edge only, never the bottom.
   ========================================================================== */
.hero {
  position: relative;
  display: grid;
  isolation: isolate;
}

.hero__bg-img,
.hero__overlay,
.hero__content {
  grid-area: 1 / 1;
  min-width: 0;
}

.hero__bg-img {
  width: 100%;
  height: clamp(19rem, 92vw, 26rem);
  object-fit: cover;
  object-position: center 30%;
  background: var(--color-bg-dark);
}

.hero__overlay {
  background: linear-gradient(
    180deg,
    rgba(9, 14, 15, 0.82) 0%,
    rgba(9, 14, 15, 0.5) 38%,
    rgba(9, 14, 15, 0.22) 66%,
    rgba(9, 14, 15, 0.42) 100%
  );
}

.hero__content {
  align-self: center;
  justify-items: center;
  text-align: center;
  display: grid;
  gap: 0.85rem;
  padding-block: 1.5rem;
  z-index: 1;
  max-width: 42rem;
  margin-inline: auto;
  width: 100%;
}

.hero__breadcrumb { color: var(--color-white); justify-content: center; }
.hero__breadcrumb a { color: rgba(255, 255, 255, 0.75); }

.hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
  font-size: var(--fs-small);
  font-weight: var(--fw-btn);
}
.hero__rating-stars { color: var(--color-heading-accent); letter-spacing: 2px; }

.hero__title {
  color: var(--color-white);
  max-width: 26ch;
  margin-inline: auto;
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.9);
  max-width: 56ch;
  font-size: var(--fs-body);
  margin-inline: auto;
}

.hero__cta { width: max-content; }

@media (min-width: 48em) {
  .hero__bg-img {
    height: auto;
    aspect-ratio: 1895 / 680.6;
    object-fit: cover;
    object-position: center bottom;
  }
  .hero__content { gap: 1.1rem; }
}
