/* hero-photo.css v1: the full-bleed photo hero and the see-through top bar (Max, 11 Oct 2026; matches
   lucaantoniazziproperty.co.uk). Used by the homepage (<section class="hero photo-hero">, linked by hand) and the four guides
   /mortgages/ /pensions/ /investments/ /insurance/ (<main class="ph"> + <div class="hero">, built by
   _build/theme_markup.py transform_photo_hero). Loaded after /greige.css, which forces many of these properties with
   !important: the overrides here use #heroStage / main-level specificity plus !important. greige.css is never edited for this.

   Layout: Max's photo outside the sandstone house is the top layer behind the whole hero, under the see-through bar. White
   copy sits on the left over a left-heavy scrim, never wider than 40vw, so Max (centre-right) is never covered. Phones and
   portrait tablets: the photo fills the upper part and fades into ink where the copy sits. The hero scrolls away normally
   (no pin); motion.js settles the image and runs the desktop parallax ([data-parallax]) and brings the copy in
   ([data-intro]). No border-radius anywhere (sharp corners). */

/* ---------- 1. the hero box ---------- */
:is(main>.photo-hero,main.ph>.hero){--h2top:167px;--h2fade:120px;position:relative;top:auto;z-index:0;isolation:isolate;overflow:hidden;
  display:flex;align-items:center;margin-bottom:0;
  min-height:min(100vh,max(940px,52vw));min-height:min(100svh,max(940px,52vw));
  padding:calc(var(--h2top) + clamp(24px,5vh,56px)) 0 clamp(56px,9vh,96px);
  background-color:#141414!important;background-image:none!important;color:#fff}
/* guides: the announce bar (in flow) and the sticky header sit above the hero in the page; pull the hero up under both */
main.ph>.hero{margin-top:calc(-1 * var(--h2top))}
:is(main>.photo-hero,main.ph>.hero) .hero-media{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
:is(main>.photo-hero,main.ph>.hero) .hero-img{position:absolute;top:0;left:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 85%}
/* scrim: a dark band under the top bar (header text AA over sky and cloud), a left-heavy wash for the copy, a soft foot */
:is(main>.photo-hero,main.ph>.hero) .hero-scrim{position:absolute;inset:0;
  background:
    linear-gradient(180deg,rgba(20,20,20,.66) 0,rgba(20,20,20,.6) calc(var(--h2top) + 4px),rgba(20,20,20,.14) calc(var(--h2top) + 150px),rgba(20,20,20,0) 58%,rgba(20,20,20,.34) 100%),
    linear-gradient(90deg,rgba(20,20,20,.76) 0,rgba(20,20,20,.7) 32%,rgba(20,20,20,.5) 41%,rgba(20,20,20,.2) 50%,rgba(20,20,20,.05) 58%,rgba(20,20,20,0) 68%)}
/* copy column: lines up with the header logo on laptops, never wider than 40vw so it stops short of Max's face */
:is(main>.photo-hero,main.ph>.hero)>.wrap{display:block;position:relative;z-index:1;max-width:none;width:100%;margin:0;
  padding:0 max(48px,calc(50% - 592px))}
#heroStage{max-width:min(560px,40vw);color:#fff}

/* ---------- 2. white copy over the photo ---------- */
#heroStage h1{color:#fff!important}
#heroStage .sub{color:#f3f0ea!important;max-width:46ch}
#heroStage .trust-line,#heroStage p.trust-line{color:#f3f0ea!important}
#heroStage .hero-cta .hero-tel,#heroStage .hero-cta .hero-tel:hover{color:#fff!important;text-decoration-color:currentColor!important}
/* guides: breadcrumbs on the photo; the small avatar byline is hidden here (the photo above already shows Max, and the
   header carries the same name and role); it stays in the page */
#heroStage .crumbs,#heroStage .crumbs a,#heroStage .crumbs a:hover,#heroStage .crumbs [aria-current],#heroStage .crumbs li+li::before{color:#fff!important}
#heroStage .crumbs a{text-decoration-color:rgba(255,255,255,.7)!important}
#heroStage .byline{display:none!important}
/* review line: TEXT ONLY, no box (Max, 11 Oct 2026). Stars, colour Google G and white text, left-aligned with the H1; AA comes
   from the scrim. Beats the luxe / 40-material pill chip and any global corner reset (ID + !important). */
#heroStage :is(.eyebrow,p.proof){background:none!important;background-image:none!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;padding:0!important;
  width:auto!important;max-width:100%!important;color:#fff!important}
#heroStage :is(.eyebrow,p.proof) *{color:#fff!important}
#heroStage :is(.eyebrow,p.proof) .stars{color:#e6c886!important}
/* Book: white with ink text, like the reference's primary button on the photo. The attention pulse scales from the left
   edge, so the button stays flush with the H1 */
#heroStage .hero-cta .btn{background:#fff!important;background-image:none!important;color:#0e0e0e!important;border-color:#fff!important;
  margin-left:0!important;transform-origin:0 50%;box-shadow:0 10px 26px -12px rgba(0,0,0,.6)!important}
#heroStage .hero-cta .btn *{color:#0e0e0e!important}
#heroStage .hero-cta .btn:hover{background:#ece7dd!important;color:#0e0e0e!important;border-color:#ece7dd!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.35),0 10px 26px -10px rgba(0,0,0,.6)!important}
#heroStage :focus-visible{outline:2px solid #fff!important;outline-offset:3px!important}

/* ---------- 3. phones and portrait tablets: photo on top fading into ink, copy on the ink below ---------- */
@media (max-width:767px),(max-width:1023px) and (orientation:portrait){
  :is(main>.photo-hero,main.ph>.hero){flex-direction:column;align-items:stretch;justify-content:flex-end;
    min-height:min(100vh,940px);min-height:min(100svh,940px);padding:0 0 32px}
  :is(main>.photo-hero,main.ph>.hero) .hero-media{position:relative;inset:auto;flex:1 0 auto;min-height:calc(var(--h2top) + 50vw + var(--h2fade));
    margin-bottom:calc(-1 * var(--h2fade))}
  :is(main>.photo-hero,main.ph>.hero) .hero-img{object-position:60% 30%}
  :is(main>.photo-hero,main.ph>.hero) .hero-scrim{background:
    linear-gradient(180deg,rgba(20,20,20,.7) 0,rgba(20,20,20,.62) var(--h2top),rgba(20,20,20,.12) calc(var(--h2top) + 90px),rgba(20,20,20,0) 50%),
    linear-gradient(0deg,#141414 0,rgba(20,20,20,.86) var(--h2fade),rgba(20,20,20,.32) calc(var(--h2fade) + 100px),rgba(20,20,20,0) calc(var(--h2fade) + 190px))}
  :is(main>.photo-hero,main.ph>.hero)>.wrap{padding:0 24px}
  #heroStage{max-width:640px}
}
/* portrait tablets fill the screen (phones keep the 940px cap: a crawler's very tall render must still see the content) */
@media (min-width:768px) and (max-width:1023px) and (orientation:portrait){
  :is(main>.photo-hero,main.ph>.hero){min-height:min(100vh,1366px);min-height:min(100svh,1366px)}
}
@media (max-width:767px){:is(main>.photo-hero,main.ph>.hero) .hero-img{object-position:50% 30%}}
@media (max-width:640px){
  :is(main>.photo-hero,main.ph>.hero){--h2top:98px;padding-bottom:28px}
  :is(main>.photo-hero,main.ph>.hero)>.wrap{padding:0 20px}
}

/* ---------- 4. guides: the longer intro continues below the photo (section.hero-lead, after the trust strip) ---------- */
main.ph>.hero-lead{padding:44px 0 8px}
@media (max-width:640px){main.ph>.hero-lead{padding:4px 0 0}}

/* ---------- 5. the travelling top bar: see-through over the photo, a see-through dark glass once you scroll ----------
   One frosted piece (announce bar, header, guides strip) that stays translucent while it travels with the page (Max,
   11 Oct 2026). /hero-photo.js sets --ph-p on <html> from 0 at the top to 1 by 140px of scroll (on rAF), so the glass ramps
   in gradually instead of snapping. html.ph-top (inline snippet in front of each hero, before first paint) starts it at 0;
   with no JS, or when the page opens at an anchor, --ph-p defaults to 1 (full glass).
   Final glass rgba(14,14,14,.66) + blur(16px) saturate(1.3), no brightness filter: .66 is the lowest alpha that keeps the
   #e4ded3 header descriptor at AA over a pure white card behind the bar (4.69:1; white text 6.4:1). Beats greige.css luxe /
   40-material frame glass on these five pages only (this file loads nowhere else). The phone guides panel stays solid:
   #siteHeader.gm-open keeps the greige.css glass and the panel is #1c1c1c. */
html.ph-top{--ph-p:0}
html .announce,
html #siteHeader:not(.gm-open){
  background:rgba(14,14,14,calc(.66 * var(--ph-p,1)))!important;background-image:none!important;
  -webkit-backdrop-filter:blur(calc(16px * var(--ph-p,1))) saturate(calc(1 + .3 * var(--ph-p,1)))!important;
  backdrop-filter:blur(calc(16px * var(--ph-p,1))) saturate(calc(1 + .3 * var(--ph-p,1)))!important;
  border-bottom-color:rgba(255,255,255,calc(.1 * var(--ph-p,1)))!important;
  box-shadow:0 10px 30px -12px rgba(0,0,0,calc(.3 * var(--ph-p,1)))!important;transition:none!important}
@media (min-width:641px){
  /* the strip is part of the header's glass (no extra white veil); the current guide keeps only its white underline and
     hover darkens instead of lightening, so its text stays AA over the photo and over white */
  html #siteHeader .gnav{background:transparent!important;border-top-color:rgba(255,255,255,.14)!important}
  html #siteHeader .gnav a[aria-current="page"]{background:transparent!important}
  html #siteHeader .gnav a:hover{background:rgba(0,0,0,.22)!important}
}
@supports not ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
  html .announce,html #siteHeader:not(.gm-open){background:rgba(20,20,20,calc(.9 * var(--ph-p,1)))!important}
}
@media (prefers-reduced-transparency:reduce){
  html .announce,html #siteHeader:not(.gm-open){background:#1c1c1c!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
}
