/* header-scrolled-v2 (draft): load after header-scrolled06.
   Only the header BACKGROUND changes. Menu links, CTA, glow and logo
   are left exactly as they are.

   At rest (page top): a lighter, thinner dark-blue wash behind the
   nav (~0.18–0.20 at the top, fading out through the bar) so the
   header is more subtle than the current 0.6-ready / header-A look.

   When scrolling (.is-scrolled / .is-past-hero): the same #0b1733
   layer ramps to ~0.88 opacity (about +0.3 vs the live 0.60) with a
   14px blur, over 250ms, so logo and menu stay readable over cards.

   The 0.3 soft strip under the header (desktop only) is unchanged
   in shape and stays attached to the sticky header. */

/* Let the ::before layer be the only header fill, all page families. */
body .site-header,
body .site-header.is-scrolled,
body .site-header.is-past-hero,
.layout-v2 .site-header,
.layout-v2 .site-header.is-scrolled,
.layout-v2 .site-header.is-past-hero,
.agb-page .site-header.is-scrolled,
.agb-page .site-header.is-past-hero{
  background:transparent;
  -webkit-backdrop-filter:none;
          backdrop-filter:none;
  border-bottom:none;
  box-shadow:none;
}

.site-header::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  /* solid 0.88, shown faintly at rest via opacity (smooth 250ms) */
  background:rgba(11,23,51,.88);
  -webkit-backdrop-filter:none;
          backdrop-filter:none;
  /* effective ~0.19 at rest; fade the lower half so the bar reads thinner */
  opacity:.22;
  -webkit-mask-image:linear-gradient(180deg,#000 0%,#000 42%,transparent 100%);
          mask-image:linear-gradient(180deg,#000 0%,#000 42%,transparent 100%);
  transition:opacity .25s ease, backdrop-filter .25s ease, -webkit-backdrop-filter .25s ease, -webkit-mask-image .25s ease, mask-image .25s ease;
}

body .site-header.is-scrolled::before,
body .site-header.is-past-hero::before,
.layout-v2 .site-header.is-scrolled::before,
.layout-v2 .site-header.is-past-hero::before,
.agb-page .site-header.is-scrolled::before,
.agb-page .site-header.is-past-hero::before{
  opacity:1; /* effective 0.88 */
  -webkit-backdrop-filter:blur(14px) saturate(1.2);
          backdrop-filter:blur(14px) saturate(1.2);
  -webkit-mask-image:none;
          mask-image:none;
}

/* Soft 0.3 distinguishing strip under the header, desktop only. */
@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%);
  }
}
