/* The Porto opening scene: a sticky photograph behind the hero and glass intro. */
.home .opening-scene {
  --scene-height: max(100svh, 720px);
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #182730;
}
.home .scene-photo {
  position: sticky;
  top: 0;
  display: block;
  width: 100%;
  height: var(--scene-height);
  margin-bottom: calc(-1 * var(--scene-height));
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.home .scene-photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 54%;
}
.home .opening-scene .hero {
  isolation: isolate;
  z-index: 1;
  background: transparent;
  min-height: var(--scene-height);
}
.home .opening-scene .hero::after { pointer-events: none; }
.home .frost-intro {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  padding: clamp(24px, 3.4vw, 42px) 0;
  background: rgba(232, 231, 224, .77);
  backdrop-filter: blur(17px);
  -webkit-backdrop-filter: blur(17px);
  color: #24231f;
}
.home .frost-intro h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2.4rem); line-height: 1.15; }
.home .home-service-cards { padding-top: clamp(20px, 3vw, 38px); }
.home .home-service-cards .service-grid { margin-top: 0; }
@media (max-width: 600px) {
  .home .opening-scene { --scene-height: max(100svh, 660px); }
  .home .frost-intro { background: rgba(232, 231, 224, .79); backdrop-filter: blur(13px); -webkit-backdrop-filter: blur(13px); }
}
@media (prefers-reduced-motion: reduce) {
  .home .scene-photo { position: absolute; inset: 0 0 auto; margin: 0; }
  .home .frost-intro { backdrop-filter: none; -webkit-backdrop-filter: none; background: #e8e7e0; }
}

/* Seat the headline on the mountain ridge without changing the photo crop. */
.home .opening-scene .hero-content {
  padding-top: calc(clamp(135px, 20svh, 210px) + clamp(16px, 2.8svh, 32px));
}
@media (max-width: 640px) {
  .home .opening-scene .hero-content {
    padding-top: calc(clamp(123px, 19svh, 166px) + clamp(34px, 6.6svh, 62px));
  }
}
@media (max-width: 350px) {
  .home .opening-scene .hero-content {
    padding-top: calc(115px + clamp(30px, 6svh, 50px));
  }
}
@media (max-height: 540px) and (orientation: landscape) {
  .home .opening-scene .hero-content { padding-top: 106px; }
}

/* Mobile Safari: scroll the photo with the hero, without a live blur layer. */
@media (max-width: 640px), (max-width: 950px) and (hover: none) and (pointer: coarse) {
  .home .opening-scene { overflow: visible; }
  .home .scene-photo { position: absolute; inset: 0 0 auto; margin: 0; }
  .home .frost-intro {
    background: linear-gradient(180deg, #deded7, #e8e7e0);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
