/* Background video only. Header, footer and other pages are unchanged. */
body.home-page { background: #f4f4f4; }
body.home-page .home-main { padding: 0; margin: 0; width: 100%; min-width: 0; }
.home-main .home-video-background {
  position: relative; width: 100%; overflow: hidden; isolation: isolate;
  height: 80vh; height: 80svh;
  max-height: calc(100vh - 160px); max-height: calc(100svh - 160px);
  background: #dce3e8;
}
.home-main .home-video, .home-main .home-video-poster {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  max-width: none; object-fit: cover; object-position: center; pointer-events: none;
}
.home-main .home-video { opacity: 1; }
.home-main .home-video-background.has-video-fallback .home-video { opacity: 0; }
.home-main .home-video::-webkit-media-controls { display: none !important; }
@media (max-width: 1024px) {
  body.home-page .home-main { padding-top: 0; }
  .home-main .home-video-background { height: 65vh; height: 65svh; max-height: none; }
}


/* Hero content only; the existing background video remains unchanged. */
.home-main .home-video-background {
  display: grid; align-items: center; box-sizing: border-box;
  height: auto; max-height: none;
  min-height: min(80vh, calc(100vh - 160px));
  min-height: min(80svh, calc(100svh - 160px));
  padding: clamp(48px, 6vw, 88px) 0;
}
.home-main .home-video-background::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.56) 0%, rgba(0,0,0,.5) 65%, rgba(0,0,0,.36) 100%);
  pointer-events: none;
}
.home-main .home-hero-content {
  position: relative; z-index: 2; width: min(1200px, calc(100% - 64px));
  margin: 0 auto; box-sizing: border-box; color: #fff;
}
.home-main .home-hero-content h1 {
  max-width: 21ch; margin: 0 0 24px; color: #fff;
  font-size: clamp(2.25rem, 4.3vw, 4.2rem); line-height: 1.08;
  letter-spacing: -.035em; text-wrap: balance;
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.home-main .home-hero-content p {
  max-width: 80ch; margin: 0 0 32px; color: #fff;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0,0,0,.65);
}
.home-main .home-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.home-main .home-hero-button {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 50px; padding: 13px 24px; box-sizing: border-box;
  border: 1px solid #0b5ed7; border-radius: 4px;
  background: #0b5ed7; color: #fff; font-size: 17px; line-height: 1.4;
  font-weight: 700; text-decoration: none;
}
.home-main .home-hero-button:hover { background: #094eb7; border-color: #094eb7; }
.home-main .home-hero-button-secondary { background: rgba(0,0,0,.14); border-color: #fff; }
.home-main .home-hero-button-secondary:hover { background: #fff; border-color: #fff; color: #202e3c; }
.home-main .home-hero-button:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
@media (max-width: 1024px) {
  .home-main .home-video-background { min-height: 65vh; min-height: 65svh; height: auto; }
}
@media (max-width: 600px) {
  .home-main .home-hero-content { width: calc(100% - 40px); }
  .home-main .home-video-background { padding: 44px 0; }
  .home-main .home-video-background::after { background: rgba(0,0,0,.54); }
  .home-main .home-hero-content h1 { font-size: clamp(2rem, 7.8vw, 2.9rem); line-height: 1.12; margin-bottom: 22px; overflow-wrap: anywhere; }
  .home-main .home-hero-content p { font-size: 17px; margin-bottom: 26px; }
  .home-main .home-hero-actions { flex-direction: column; gap: 12px; align-items: stretch; }
  .home-main .home-hero-button { width: 100%; }
}

/* Homepage services introduction. */
.home-page .home-services {
  padding: clamp(56px, 7vw, 112px) 0;
  background: #f5f6f7;
  color: #202e3c;
}
.home-page .home-services-inner {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.home-page .home-services-photo { margin: 0; min-width: 0; }
.home-page .home-services-photo img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 1.45; object-fit: cover; object-position: 72% center;
  border-radius: 4px;
}
.home-page .home-services-copy { min-width: 0; }
.home-page .home-services-label {
  margin: 0 0 20px; color: #0b5ed7;
  font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.home-page .home-services h2 {
  margin: 0 0 24px; max-width: 15ch; color: #202e3c;
  font-size: clamp(2rem, 3.5vw, 3.3rem); line-height: 1.1; letter-spacing: -.035em;
}
.home-page .home-services-copy > p:not(.home-services-label) {
  margin: 0 0 18px; font-size: 18px; line-height: 1.7; color: #465360;
}
.home-page .home-services-link {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  box-sizing: border-box; min-height: 52px; margin-top: 12px; padding: 14px 22px;
  background: #0b5ed7; border: 1px solid #0b5ed7; border-radius: 4px;
  color: #fff; font-size: 17px; line-height: 1.4; font-weight: 700; text-decoration: none;
}
.home-page .home-services-link:hover { background: #094eb7; border-color: #094eb7; }
.home-page .home-services-link:focus-visible { outline: 3px solid #202e3c; outline-offset: 5px; }
@media (max-width: 780px) {
  .home-page .home-services-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .home-page .home-services-photo img { aspect-ratio: 16 / 10; object-position: 72% center; }
  .home-page .home-services h2 { max-width: 22ch; }
}
@media (max-width: 600px) {
  .home-page .home-services-inner { width: calc(100% - 40px); }
  .home-page .home-services-copy > p:not(.home-services-label) { font-size: 17px; }
  .home-page .home-services-link { width: 100%; }
}