/* Inherit the original hero image's exact position, sizing and crop. */
.home-page .hero-video {
  visibility: hidden;
  pointer-events: none;
  animation: none;
}
.home-page .hero-video-playing .hero-video {
  visibility: visible;
}
.home-page .hero-video-playing > .hero-poster {
  visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .home-page .hero-video-playing .hero-video { visibility: hidden; }
  .home-page .hero-video-playing > .hero-poster { visibility: visible; }
}

/* Softer mobile overlay: reveal the video while keeping dark text legible. */
@media (max-width: 640px) {
  .home-page .hero:after {
    background: linear-gradient(180deg,
      rgba(255, 250, 246, .48) 0%,
      rgba(255, 250, 246, .40) 14%,
      rgba(255, 250, 246, .32) 28%,
      rgba(243, 233, 226, .14) 48%,
      rgba(243, 233, 226, 0) 65%);
  }
}

/* Responsive, exact first-frame fallback prevents the obsolete photo flash. */
.home-page .hero-poster { animation: none; }
.home-page .hero-poster > img { width: 100%; height: 100%; object-fit: cover; object-position: inherit; }

/* Simplified opening copy; center only the mobile composition. */
.home-page .hero .hero-title {
  max-width: 580px;
  font-size: clamp(36px, 3.4vw, 50px);
  line-height: 1.3;
  font-weight: 500;
  text-wrap: balance;
}
.home-page .hero .hero-content > .actions { margin-top: 32px; }
@media (max-width: 640px) {
  .home-page .hero-content { text-align: center; }
  .home-page .hero .hero-title {
    max-width: 360px;
    margin-inline: auto;
    font-size: clamp(28px, 7.2vw, 34px);
    line-height: 1.4;
  }
  .home-page .hero .hero-content > .actions {
    align-items: center;
    margin-top: 28px;
    gap: 12px;
  }
}

/* Blend the desktop video into the warm-white header without a hard edge. */
@media (min-width: 641px) {
  .home-page .hero:after {
    background:
      linear-gradient(180deg,
        rgba(243, 233, 226, 1) 0%,
        rgba(243, 233, 226, .92) 8%,
        rgba(243, 233, 226, .62) 22%,
        rgba(243, 233, 226, .18) 40%,
        rgba(243, 233, 226, 0) 58%),
      linear-gradient(270deg, #f3e9e252, transparent 66%);
  }
}
