/* Houses Foundation home: the owner's photo as the calm hero background (preview).
   No petals, no glow, no zoom, no parallax: the photo is shown at exactly 1:1 with its box (scale 1, no overscan).
   The photo is anchored to the BOTTOM so the big terracotta vase and the doorway floor are never cut; only a little sky is lost on very wide screens.
   A paper-coloured scrim sits behind the text only (a soft ellipse around the headline), so the vase stays clear. */
.hf-bg{position:absolute;inset:0;overflow:hidden;contain:paint;container-type:size}
.hf-par,.hf-kb{position:absolute;inset:0}
.hf-kb picture,.hf-kb .hf-img{position:absolute;inset:0;display:block;width:100%;height:100%}
.hf-img{object-fit:cover;object-position:30% 100%}
/* the film frame (site.css) starts the picture at scale 1.12 and eases it to 1 on scroll: no extra zoom for this photo */
.hero-film-frame .hf-bg .hf-img{transform:none}

/* desktop / landscape screens (wider than the photo's 3:2): show the WHOLE photo, full height, nothing cropped; it sits against the right edge and its left edge melts into the paper behind the headline.
   Screens closer to square than that fall back to the bottom-anchored fill above. */
@media (min-width:1024px) and (min-height:561px) and (min-aspect-ratio:4/3){
  .hero-film-frame .hf-bg .hf-img{object-fit:contain;object-position:100% 100%}
  .hf-par{-webkit-mask-image:linear-gradient(90deg,transparent calc(100% - 150cqh),rgba(0,0,0,.55) calc(100% - 150cqh + 14cqh),#000 calc(100% - 150cqh + 30cqh));mask-image:linear-gradient(90deg,transparent calc(100% - 150cqh),rgba(0,0,0,.55) calc(100% - 150cqh + 14cqh),#000 calc(100% - 150cqh + 30cqh))}
}

/* tablets in portrait: same idea, the photo on top (almost the whole 3:2 frame), the text below it */
@media (min-width:768px) and (max-width:1023px) and (orientation:portrait){
  .hero-film .hero-film-copy{justify-content:flex-end;padding-bottom:calc(6rem + 4rem + clamp(2rem,4.2vw,3.75rem))}
  .hf-bg{bottom:50%;-webkit-mask-image:linear-gradient(#000 88%,transparent);mask-image:linear-gradient(#000 88%,transparent)}
  .hf-bg::after{display:none}
  .hero-film-frame .hf-bg .hf-img{object-position:30% 50%}
}

/* readability: soft paper scrim behind the headline / paragraph / buttons only (fades out well before the vase); dark text keeps WCAG AA */
.hf-bg::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse 36% 46% at 14% 56%,rgba(243,236,221,.86) 0,rgba(243,236,221,.78) 50%,rgba(243,236,221,.4) 78%,rgba(243,236,221,0) 100%)}
@media (max-width:1023px){.hf-bg::after{background:radial-gradient(ellipse 70% 52% at 30% 47%,rgba(243,236,221,.86) 0,rgba(243,236,221,.74) 48%,rgba(243,236,221,.36) 78%,rgba(243,236,221,0) 100%)}}
/* phones in portrait: the photo takes the top part of the screen (whole height of the photo, vase + doorway), the text sits below it on paper */
@media (max-width:767px) and (orientation:portrait){
  .hf-bg{bottom:54%;-webkit-mask-image:linear-gradient(#000 84%,transparent);mask-image:linear-gradient(#000 84%,transparent)}
  .hf-bg::after{display:none}
  .hero-film-frame .hf-bg .hf-img.hero-poster{object-position:27% 50%!important}
}

/* a soft paper halo around the small text only (keeps WCAG AA over foliage / vase edges without washing the photo) */
.hero-film-copy p,.hero-ctas a:not(.give-btn){text-shadow:0 0 .5rem rgba(243,236,221,.95),0 0 1.1rem rgba(243,236,221,.85),0 0 .15rem rgba(243,236,221,.9)}
