/*
 * Hero image refresh.
 * The desktop height follows the source image's native 5016 × 2966 ratio.
 * Width and page-shell measures remain controlled by the existing V9 styles.
 */

.hero-v9-refresh {
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 2508 / 1483;
  overflow: hidden;
}

.hero-v9-refresh .hero-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-v9-refresh .hero-copy,
.hero-v9-refresh .hero-copy-inner {
  min-height: 100%;
  height: 100%;
}

/* Preserve the existing typography while using the taller frame for spacing. */
.hero-v9-refresh .hero-copy .eyebrow {
  top: 11%;
}

.hero-v9-refresh .hero-copy h1 {
  top: 44%;
}

.hero-v9-refresh .hero-copy p:not(.eyebrow) {
  bottom: 16%;
}

.hero-v9-refresh .hero-copy .primary-action {
  bottom: 6.5%;
}

@media (max-width: 900px) {
  .hero-v9-refresh {
    min-height: 720px;
    aspect-ratio: auto;
  }

  .hero-v9-refresh .hero-image {
    object-position: center;
  }
}

@media (max-width: 720px) {
  .hero-v9-refresh .hero-copy .eyebrow {
    top: 62px;
  }

  .hero-v9-refresh .hero-copy h1 {
    top: 43%;
  }

  .hero-v9-refresh .hero-copy p:not(.eyebrow) {
    bottom: 106px;
  }

  .hero-v9-refresh .hero-copy .primary-action {
    bottom: 36px;
  }
}
