/* Each photo extends under the panel and remains visible around its edges. */
.photo-scene {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  flex: 1 0 auto;
  min-height: max(39rem, 97svh);
  padding: clamp(2rem, 5vh, 4rem) max(48px, calc((100% - var(--wrap)) / 2)) 6rem;
}
.scene-picture {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  background: #c7c6b6;
}
.scene-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal-point, center);
}
.scene-home { --focal-point: 62% center; }
.scene-plumbing { --focal-point: 40% center; }
.scene-hvac { --focal-point: 38% center; }

.photo-panel {
  width: min(100%, 32rem);
  padding: clamp(1.6rem, 2.8vw, 2.75rem);
  border: 1px solid rgb(255 255 255 / 85%);
  border-radius: 1.15rem;
  background: rgb(252 249 240 / 81%);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  box-shadow: 0 12px 44px rgb(40 36 23 / 18%);
}
.home-copy h1 { font-size: clamp(2.5rem, 4.05vw, 3.65rem); }
.home-copy .services { margin-top: 1.45rem; }
.service-copy { justify-self: end; animation: arrive 150ms ease-out both; }
.service-copy .back { margin: -0.5rem 0 0.75rem; }
.photo-panel .cost-body {
  padding: 0.2rem 1rem;
  border-radius: 0.65rem;
  background: rgb(252 249 240 / 82%);
}

.site-footer {
  position: relative;
  width: min(calc(100% - 64px), 1280px);
  margin: -3.5rem auto 1.25rem;
  border: 1px solid #dbd5ca;
  border-radius: 1.15rem;
  background: rgb(251 248 241 / 86%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgb(53 44 27 / 9%);
}
.footer-inner {
  width: 100%;
  padding: 1.75rem clamp(1.25rem, 3vw, 3rem);
}

@media (min-width: 761px) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .scene-picture img {
    position: absolute;
    top: -64px;
    height: calc(100% + 64px);
    transform: translate3d(0, var(--photo-shift, 0px), 0);
  }
}
@media (max-width: 760px) {
  .photo-scene {
    align-content: start;
    min-height: calc(100svh - 4rem);
    padding: clamp(3.5rem, 10svh, 5rem) clamp(0.875rem, 4.5vw, 2rem) 5.75rem;
  }
  .scene-plumbing { --focal-point: 40% 45%; }
  .scene-hvac { --focal-point: 42% 50%; }
  .photo-panel {
    width: 100%;
    max-width: 32rem;
    justify-self: center;
    padding: clamp(1rem, 4.5vw, 1.75rem);
    border-radius: 1rem;
  }
  .home-copy h1 { font-size: clamp(2rem, 7.8vw, 3.15rem); }
  .service-copy h1 { font-size: clamp(2rem, 8.5vw, 2.75rem); }
  .photo-panel .back { margin: -0.25rem 0 0.6rem; }
  .photo-panel .costs { margin-top: 1.2rem; }
  .photo-panel .cost-body li div { flex-wrap: wrap; gap: 0.15rem 0.6rem; }
  .site-footer {
    width: calc(100% - 28px);
    margin: -2.5rem auto 0.85rem;
    border-radius: 0.9rem;
  }
  .footer-inner { padding: 1rem 0.75rem; gap: 0.55rem; }
  .footer-inner a { display: inline-flex; align-items: center; min-height: 30px; }
}
