.homepage {
  --top-clearance: calc(var(--nav-h) + 32px);
  --bottom-clearance: clamp(16px, 2.4dvh, 32px);
  padding-bottom: 0;
}
.homepage::before { display: none; }
@media (width < 1024px) { .homepage { --nav-h: 68px; } }
@media (width < 900px) {
  .homepage {
    --bottom-clearance: calc(78px + env(safe-area-inset-bottom));
    padding-bottom: calc(65px + env(safe-area-inset-bottom));
  }
}
/* Snap only on desktop; on touch screens it pulled short scrolls back to the hero. */
@media (prefers-reduced-motion: no-preference) and (width >= 900px) {
  html:has(.homepage) { scroll-snap-type: y proximity; }
}
html:has(.homepage) { scroll-padding: 0; }
.homepage > :is(.hero, section[id]) {
  scroll-snap-align: start;
  scroll-margin: 0;
  padding-block: var(--top-clearance) var(--bottom-clearance);
}
/* Hero is exactly one window; later screens are at least one window and
   grow instead of trapping scroll when their content is taller. */
.homepage > section[id] { min-height: 100dvh; }
.homepage .hero {
  height: 100dvh;
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-rows: auto auto minmax(88px, 1fr) auto;
  justify-content: stretch;
  justify-items: center;
  align-items: center;
  gap: clamp(6px, 1.4dvh, 20px);
}
.hero h1 { font-size: clamp(34px, min(8vw, 8dvh), 94px); }
.film-slot {
  align-self: stretch;
  justify-self: stretch;
  container-type: size;
  display: grid;
  place-items: center;
}
.film-slot .film { width: min(96%, 200cqh, 1100px); aspect-ratio: 2; }
.homepage .hero-eyebrow { text-align: center; }
.services-screen { display: flex; flex-direction: column; }
.services-screen .services {
  width: min(100%, 1440px);
  padding-block: 16px;
  align-items: center;
  margin-block: auto;
}
.services-screen .spotlight { position: static; }
.services-screen .marquee { padding-block: 10px; }
.homepage :is(.how, .why, .estimate) { align-content: safe center; }
@media (min-width: 900px) {
  .svc-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .svc-head { padding-block: 10px; grid-template-columns: 25px 1fr; min-height: 44px; }
  .svc-title { font-size: clamp(17px, 1.4vw, 22px); }
  .svc-tags { font-size: 13px; line-height: 1.25; margin-top: 3px; }
  .services-intro { margin-bottom: 14px; }
  .services-screen .services { grid-template-columns: 1.5fr 1fr; }
  .homepage .estimate {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 620px);
    justify-content: center;
    align-items: center;
    column-gap: clamp(32px, 6vw, 96px);
  }
  .estimate-copy :is(h2, p) { text-align: left; }
  #estimate-form { width: 100%; padding: clamp(16px, 2.5dvh, 30px); row-gap: 10px; }
  #estimate-form textarea { height: 72px; }
  #estimate-form .dropzone { min-height: 48px; }
}
@media (min-width: 900px) and (max-height: 860px) {
  .svc-head { padding-block: 6px; min-height: 38px; }
  .services-intro { margin-bottom: 8px; }
  .services-screen .marquee { padding-block: 6px; }
  .services-screen .marquee-track li { font-size: clamp(18px, 1.6vw, 24px); }
}
@media (max-width: 700px) {
  .hero h1 { font-size: clamp(33px, min(10.5vw, 7.8dvh), 56px); }
  .film-slot .film { width: min(100%, 160cqh); aspect-ratio: 1.6; }
  .hero .service-line { margin-bottom: 8px; }
  .hero .details { width: 100%; }
  .hero .trust { gap: 3px 12px; }
  .hero .trust li { margin: 0; }
  .hero .actions .primary { height: 46px; }
}
