.home-page {
  /* Follow the document order: introduction, Sunday details, then previews. */
  display: block;
}

.home-page [aria-labelledby="who-heading"] .btn {
  max-width: 100%;
  white-space: normal;
  line-height: 1.4;
  text-align: center;
}

.home-page [aria-labelledby="who-heading"] .btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.home-page [aria-labelledby="who-heading"] .btn-outline:hover,
.home-page [aria-labelledby="who-heading"] .btn-outline:focus-visible {
  background: var(--color-primary);
  color: var(--c-white);
  border-color: var(--color-primary);
}

.home-page .page-hero--home {
  min-height: calc(var(--header-h) + 40vw);
  display: grid;
  align-content: center;
  /* Keep the introduction and visit button within the shared banner height. */
  padding-top: calc(var(--header-h) + clamp(1rem, 2vw, 1.5rem));
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
}

.home-page .page-hero--home .lead {
  max-width: 760px;
}

/* Raise the people within the introduction photo's existing crop. */
.home-page .intro-img--photo.parallax-media img {
  object-position: center 55%;
}

/* Show both pastors clearly in the existing joint photograph. */
.home-page .pastors-combined {
  max-width: 64rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

@media (max-width: 900px) {
  .home-page .pastors-combined {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Start the video and overlay below the fixed header. */
.home-page .page-hero--home::before,
.home-page .page-hero--home .page-hero__media {
  top: var(--header-h);
}

@media (max-width: 768px) {
  .home-page .page-hero--home {
    --home-video-height: clamp(15rem, 62.5vw, 28rem);
    --page-hero-overlay: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.06) 0%,
      rgba(0, 0, 0, 0.08) 60%,
      rgba(0, 0, 0, 0.55) 100%
    );
    min-height: 0;
    display: block;
    padding: var(--header-h) 0 2rem;
    background: var(--c-bg);
    color: var(--c-text);
  }

  /* Reserve the video area independently of the introduction below it. */
  .home-page .page-hero--home::before,
  .home-page .page-hero--home .page-hero__media {
    bottom: auto;
    height: var(--home-video-height);
  }

  .home-page .page-hero--home .page-hero__content {
    width: 100%;
    max-width: none;
    padding-inline: 0;
    will-change: auto;
  }

  /* Keep only the small church name over the lower edge of the video. */
  .home-page .page-hero--home .page-hero__content > .eyebrow {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: var(--home-video-height);
    padding: 1.25rem;
    margin: 0;
    box-sizing: border-box;
  }

  .home-page .page-hero--home h1 {
    max-width: 24ch;
    margin: 1.75rem auto 0.75rem;
    padding-inline: 1.25rem;
    font-size: clamp(2rem, 6vw, 2.75rem);
    color: var(--c-heading);
  }

  .home-page .page-hero--home .lead {
    max-width: 38rem;
    margin-bottom: 0;
    padding-inline: 1.25rem;
    color: var(--c-muted);
  }

  .home-page .page-hero--home .hero-btns {
    margin-top: 1.25rem;
    padding-inline: 1.25rem;
  }

  .home-page .page-hero--home .hero-btns .btn {
    width: min(100%, 22rem);
  }
}

@media (max-width: 640px) {
  /* Let photo aspect ratios follow the available width on small screens. */
  .home-page .intro-img--photo.parallax-media,
  .home-page .service-visual {
    width: 100%;
    max-width: 100%;
    min-height: 0;
  }
}

@media (max-width: 480px) {
  /* Keep longer Russian contact choices readable on narrow phones. */
  .home-page .here-for-you__links {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-page .service-card-stack {
    grid-template-columns: minmax(0, 1fr);
  }
}
