/* Responsive background images for .hero-bg
   Generated from 23andme-hero.png
*/

.hero-bg {
  background-image: url('23andme-hero-640.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Larger tablets and small laptops */
@media (min-width: 768px) {
  .hero-bg {
    background-image: url('23andme-hero-1024.webp');
  }
}

/* Desktop */
@media (min-width: 1200px) {
  .hero-bg {
    background-image: url('23andme-hero-1440.webp');
  }
}

/* Large and hi-res displays */
@media (min-width: 1600px) {
  .hero-bg {
    background-image: url('23andme-hero-1920.webp');
  }
}

.intentions-hero {
  position: relative;
}

.intentions-hero::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(transparent, rgba(5, 6, 3, 0.68));
  pointer-events: none;
}

.intentions-hero .hero__image {
  width: 100%;
  height: auto;
  display: block;
}

.intentions-hero__title {
  position: absolute;
  z-index: 1;
  top: min(calc(100vh - 13rem), calc(100% - 13rem));
  left: clamp(1.5rem, 8vw, 9rem);
  right: clamp(1.5rem, 8vw, 9rem);
  max-width: 60rem;
  margin: 0;
  color: #faf7f2;
  font-size: clamp(3rem, 5.9vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

@media (max-width: 640px) {
  .intentions-hero::after {
    display: none;
  }

  .intentions-hero__title {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: auto;
    margin: -1.5rem 1rem 0;
    padding: 1.1rem 1rem 0.5rem;
    background: #faf7f2;
    color: #111;
    font-size: clamp(2.4rem, 10vw, 3.8rem);
    text-shadow: none;
  }
}

/* Optional PNG fallback for very old browsers:
.hero-bg {
  background-image: url('23andme-hero-optim.png');
}
*/
