/* header-scrolled06 (draft): scrolled header, all pages.
   Once the page is scrolled (main.js adds .is-scrolled / .is-past-hero) the
   header gets a dark blue (#0b1733 = rgb(11,23,51)) layer at 0.60 opacity
   with a soft blur behind it, so logo and menu stay readable over cards,
   forms and photos. Unscrolled (resting) header is not touched.
   The layer is a ::before (not the header's own background), so the header
   does not become the containing block for the fixed mobile menu.
   A soft 0.3 dark-blue strip hangs under the header on desktop and scrolls
   with it (separates header from content). Mobile has no strip. */

.site-header::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:rgba(11,23,51,.60);
  -webkit-backdrop-filter:blur(14px) saturate(1.2);
          backdrop-filter:blur(14px) saturate(1.2);
  opacity:0;
  transition:opacity .25s ease;
}
body .site-header.is-scrolled::before,
body .site-header.is-past-hero::before{ opacity:1; }

/* the header's own scrolled backgrounds (all page families) give way to the layer above */
body .site-header.is-scrolled,
body .site-header.is-past-hero{
  background:transparent;
  -webkit-backdrop-filter:none;
          backdrop-filter:none;
  border-bottom:none;
  box-shadow:none;
}

@media (min-width:769px){
  .site-header::after{
    content:"";
    position:absolute;
    left:0; right:0;
    top:100%;
    height:44px;
    pointer-events:none;
    background:linear-gradient(180deg,
      rgba(11,23,51,.30) 0,
      rgba(7,15,34,.24) 28%,
      rgba(2,5,12,.12) 62%,
      rgba(0,0,0,0) 100%);
  }
}
