.hero.hero-immersive {
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "title" "invitation";
  align-content: stretch;
  justify-items: center;
  gap: 0;
  min-height: 100svh;
  max-width: none;
  padding: 7rem 1.5rem 2.5rem;
  background: #030816;
}

.hero-immersive .hero-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  grid-area: auto;
  width: 100%;
  height: 100%;
  margin: 0;
}

.hero-immersive .hero-scene {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  mask-image: none;
}

.hero-immersive .hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-immersive::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(3, 8, 22, 0.32), transparent 20%, transparent 60%, rgba(3, 8, 22, 0.82) 90%, #030816);
}

.hero-immersive .hero-copy {
  align-self: center;
  width: 100%;
  padding: 1rem 0;
}

.hero-immersive #book-title {
  width: min(28vw, calc((100svh - 24rem) * 0.8), 26rem);
  min-width: 12rem;
  margin: -0.5rem auto -1rem;
}

.hero-immersive .book-title-art {
  filter: drop-shadow(0 0 1.5rem rgba(3, 8, 22, 0.75));
}

.hero-immersive .eyebrow {
  color: #c5d5fb;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-shadow: 0 2px 10px #030816;
}

.hero-immersive .byline {
  margin-top: 0.5rem;
  color: #c6d2ea;
  text-shadow: 0 2px 10px #030816;
}

.hero-immersive .hero-invitation {
  width: 100%;
  padding-top: 1rem;
}

.hero-immersive .hook {
  margin-top: 0;
  font-size: clamp(1.2rem, 1.6vw, 1.65rem);
  line-height: 1.45;
  text-shadow: 0 2px 14px #030816;
}

.hero-immersive .primary-link {
  margin-top: 1.3rem;
  background: rgba(3, 8, 22, 0.5);
}

@media (max-width: 900px) {
  .hero.hero-immersive {
    padding: 7rem 1.5rem 2rem;
  }

  .hero-immersive #book-title {
    width: min(26vw, calc((100svh - 24rem) * 0.8), 14rem);
  }

  .hero-immersive .hero-copy {
    align-self: end;
    padding: 0;
  }
}

@media (max-width: 620px) {
  .hero.hero-immersive {
    padding: 6rem 1.25rem 1.75rem;
  }

  .hero-immersive #book-title {
    width: clamp(8rem, 44vw, 15rem);
    min-width: 0;
    margin: 0 auto -0.4rem;
  }

  .hero-immersive .eyebrow {
    max-width: 9rem;
    margin: 0 auto;
    font-size: 0.75rem;
    letter-spacing: 0.07em;
    line-height: 1.55;
  }

  .hero-immersive .hero-copy {
    align-self: end;
    padding: 0;
  }

  .hero-immersive .byline {
    margin-top: 0.5rem;
    font-size: 0.8rem;
  }

  .hero-immersive .hook {
    font-size: clamp(1rem, 4.9vw, 1.5rem);
  }

  .hero-immersive .primary-link {
    margin-top: 1.1rem;
  }
}

@media (max-width: 620px) and (max-height: 650px) {
  .hero.hero-immersive {
    min-height: 42rem;
  }
}
