.hero {
  --hero-atmosphere-position-x: 62%;
  --hero-atmosphere-position-y: 50%;
  --hero-atmosphere-size: cover;
  --hero-atmosphere-opacity: 0.42;
  --hero-layout-gap: var(--space-6);
  --hero-readers-width: min(108%, 46rem);
  --hero-readers-offset-x: 0rem;
  --hero-readers-offset-y: 0rem;
}

.hero {
  overflow: hidden;
  min-height: auto;
  padding-block-start: clamp(5rem, 12vw, 9rem);
  background:
    linear-gradient(90deg, rgba(5, 6, 5, 0.92) 0%, rgba(5, 6, 5, 0.78) 32%, rgba(5, 6, 5, 0.34) 66%, rgba(5, 6, 5, 0.58) 100%),
    linear-gradient(180deg, rgba(5, 6, 5, 0.2), var(--color-bg-primary) 95%),
    radial-gradient(circle at 78% 28%, rgba(94, 155, 189, 0.14), transparent 34rem),
    var(--color-bg-primary);
}

.hero__atmosphere {
  background-image: url("../../images/hero/hero-atmosphere-draft.webp");
  background-position: var(--hero-atmosphere-position-x) var(--hero-atmosphere-position-y);
  background-repeat: no-repeat;
  background-size: var(--hero-atmosphere-size);
  opacity: var(--hero-atmosphere-opacity);
}

.hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--hero-layout-gap);
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 3;
  min-width: 0;
  max-width: var(--width-text);
}

.hero__series-title {
  margin-block-end: var(--space-4);
  color: var(--color-accent-blue-soft);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.1;
}

.hero__title {
  margin-block-end: var(--space-4);
  max-width: 13ch;
}

.hero__title span {
  display: inline;
}

.hero__intro {
  max-width: 40rem;
  color: var(--color-text-secondary);
  font-size: var(--text-md);
}

.hero__status {
  color: var(--color-text-primary);
  font-weight: 800;
}

.hero-books {
  min-width: 0;
  margin: 0;
}

.hero-books__stage {
  position: relative;
  z-index: 2;
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
}

.hero-books__image {
  width: var(--hero-readers-width);
  height: auto;
  max-width: none;
  object-fit: contain;
  transform: translate(var(--hero-readers-offset-x), var(--hero-readers-offset-y));
}

#main-content > #revolution.book-feature--revolution {
  background:
    linear-gradient(90deg, rgba(5, 6, 5, 0.98) 0%, rgba(5, 6, 5, 0.92) 36%, rgba(5, 6, 5, 0.68) 52%, rgba(5, 6, 5, 0.38) 72%, rgba(5, 6, 5, 0.54) 100%),
    radial-gradient(circle at 76% 44%, rgba(94, 155, 189, 0.13), transparent 34rem),
    url("../../images/home/book-revolution-radar-bg.webp") calc(100% + 3rem) center / min(88rem, 112vw) auto no-repeat,
    var(--color-bg-primary);
}

#main-content > #guhavidya.book-feature--guhavidya {
  background:
    linear-gradient(90deg, rgba(14, 13, 11, 0.34) 0%, rgba(14, 13, 11, 0.46) 28%, rgba(14, 13, 11, 0.68) 50%, rgba(14, 13, 11, 0.9) 72%, rgba(14, 13, 11, 0.98) 100%),
    radial-gradient(circle at 24% 44%, rgb(var(--rgb-warm-editorial) / 0.09), transparent 34rem),
    url("../../images/home/book-guhavidya-aircraft-bg.webp") -10rem center / min(78rem, 108vw) auto no-repeat,
    var(--color-bg-secondary);
}

#main-content > #as-above-so-below.book-feature--as-above-so-below {
  background:
    linear-gradient(90deg, rgba(5, 6, 5, 0.98) 0%, rgba(5, 6, 5, 0.92) 34%, rgba(5, 6, 5, 0.62) 56%, rgba(5, 6, 5, 0.28) 76%, rgba(5, 6, 5, 0.44) 100%),
    radial-gradient(circle at 78% 42%, rgba(94, 155, 189, 0.11), transparent 34rem),
    url("../../images/home/book-as-above-so-below-fractal-bg.webp") calc(100% + 2rem) center / min(84rem, 116vw) auto no-repeat,
    var(--color-bg-primary);
}

@media (max-width: 47.99rem) {
  .hero {
    --hero-atmosphere-position-x: 58%;
    --hero-atmosphere-position-y: 26%;
    --hero-atmosphere-size: auto 84%;
    --hero-atmosphere-opacity: 0.22;
    --hero-layout-gap: var(--space-5);
    --hero-readers-width: min(100%, 24rem);
    --hero-readers-offset-y: -0.5rem;
  }

  .book-feature__actions .button,
  .final-cta__actions .button {
    width: 100%;
  }

  .illuminated-path {
    display: none;
  }
}

@media (min-width: 48rem) {
  .hero {
    --hero-atmosphere-position-x: 58%;
    --hero-atmosphere-position-y: 42%;
    --hero-atmosphere-size: cover;
    --hero-atmosphere-opacity: 0.34;
    --hero-layout-gap: var(--space-5);
    --hero-readers-width: min(94vw, 40rem);
    --hero-readers-offset-y: -0.75rem;
  }

  .hero__title span {
    display: block;
  }
}

@media (min-width: 64rem) {
  .hero {
    --hero-atmosphere-position-x: 58%;
    --hero-atmosphere-position-y: 50%;
    --hero-atmosphere-opacity: 0.42;
    --hero-layout-gap: var(--space-6);
    --hero-readers-width: min(118%, 48rem);
    --hero-readers-offset-x: -1rem;
    --hero-readers-offset-y: -1rem;
  }

  .hero {
    min-height: calc(100svh - var(--header-height));
    display: grid;
    align-items: center;
  }

  .hero__layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(24rem, 1.1fr);
  }

  .hero__title {
    max-width: 9.6em;
  }

  .hero__title span {
    display: block;
  }

  .hero-books__stage {
    min-height: clamp(31rem, 39vw, 39rem);
  }

  .signup__layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 1fr);
  }

  .signup .signup-form {
    gap: var(--space-3);
    padding: clamp(1rem, 2vw, 1.25rem);
  }

  .signup .form-field__control {
    min-height: 2.875rem;
    padding: 0.68rem 0.9rem;
  }

  .signup .button {
    min-height: 2.75rem;
    padding-block: 0.65rem;
  }
}

@media (min-width: 80rem) {
  .hero {
    --hero-atmosphere-position-x: 60%;
    --hero-atmosphere-position-y: 50%;
    --hero-atmosphere-size: cover;
    --hero-atmosphere-opacity: 0.46;
    --hero-readers-width: min(124%, 58rem);
    --hero-readers-offset-x: -0.75rem;
    --hero-readers-offset-y: -1.25rem;
  }

  .hero__layout {
    grid-template-columns: minmax(0, 0.86fr) minmax(27rem, 1.14fr);
  }
}
