/* Keep homepage media and copy in one responsive box below the shared header. */
.home-page .home-main {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}
.home-page #hero.home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  min-height: clamp(360px, calc(100vh - var(--ph-header-height, 164px) - 120px), 560px);
  min-height: clamp(360px, calc(100svh - var(--ph-header-height, 164px) - 120px), 560px);
  margin: 0;
  padding: 72px 24px;
  overflow: hidden;
  border-bottom: 5px solid #193894;
  border-radius: 0 0 50% 50% / 0 0 28px 28px;
  background: #142b55;
  transition: none;
}
/* Geometry only: retain the existing poster/video playback and fade states. */
.home-page #hero .hero-poster,
.home-page #hero video.hero-motion {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.home-page #hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(110deg, rgb(8 27 57 / 72%), rgb(8 27 57 / 48%));
  pointer-events: none;
}
.home-page #hero .home-hero__copy {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  color: #fff;
  text-align: center;
}
.home-page #hero h1 {
  margin: 0;
  color: #fff;
  font-family: 'Glegoo', Georgia, serif;
  font-size: clamp(32px, 3.6vw, 58px);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}
.home-page #hero .home-hero__copy p {
  margin: 20px 0 0;
  color: #fff;
  font-family: 'PT Sans', Arial, sans-serif;
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 400;
  line-height: 1.5;
  text-wrap: balance;
}
.home-page .home-services {
  margin-top: 0;
  padding-top: clamp(48px, 5vw, 72px);
}
@media (max-width: 650px) {
  .home-page #hero.home-hero {
    min-height: 340px;
    padding: 56px 20px;
    border-radius: 0 0 50% 50% / 0 0 18px 18px;
  }
}
@media (max-height: 500px) and (min-width: 651px) {
  .home-page #hero.home-hero { min-height: 300px; padding-block: 48px; }
}
