/* Each homepage section fills the viewport, with navigation over the photo. */
html.homepage {
  scroll-snap-type: y mandatory;
  scroll-padding-top: 0;
}

.home-section {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.home-header {
  position: relative;
  background: var(--color-navy);
  display: flex;
  align-items: center;
  padding: calc(var(--navigation-height, 120px) + 32px) var(--page-padding) 64px;
}

.home-header-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
}

/* Keep snapping gentler when reduced motion is requested. */
@media (prefers-reduced-motion: reduce) {
  html.homepage { scroll-snap-type: y proximity; }
}

/* Keep the opening copy within the blue-tinted half of the photograph. */
.home-header-copy {
  position: relative;
  width: 46%;
  max-width: 660px;
  color: #FFFFFF;
}

.home-header-copy h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(44px, min(6.7vw, 11vh), 104px);
  font-weight: 700;
  line-height: 1.08;
  color: #FFFFFF;
}

.home-header-copy p {
  max-width: 540px;
  margin: 26px 0 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(18px, 2.2vw, 30px);
  font-weight: 400;
  line-height: 1.2;
}

.home-services-button {
  display: inline-block;
  margin-top: 30px;
  padding: 16px 24px;
  border: 1px solid #FFFFFF;
  border-radius: 100px;
  background: #19293C;
  color: #FFFFFF;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: 7px 17px 39px 0 rgba(0, 0, 0, 0.25);
}
.home-services-button:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 5px;
}

@media (max-width: 600px) {
  .home-header { padding-bottom: 48px; }
  .home-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(25, 41, 60, 0.8), rgba(25, 41, 60, 0.15));
    pointer-events: none;
  }
  .home-header-copy { width: 100%; max-width: 360px; z-index: 1; }
  .home-header-copy h1 { font-size: clamp(40px, 10vw, 58px); }
  .home-header-copy p { max-width: 300px; font-size: 20px; }
}
