/* Fixed page background derived from Main's original V4 layers.
   Main is untouched. The colourful hero geometry is vertically compressed
   about 25% and softly feathered into Main's original snow-white/blue body
   background. */
html[data-visual-system="v2"]{
  min-height:100%;
  background:#fff;
}
html[data-visual-system="v2"] body[data-design-variant="v4"]{
  min-height:100vh;
  background:transparent!important;
}
html[data-visual-system="v2"] body[data-design-variant="v4"]>.fixed-page-background{
  position:fixed;
  inset:0;
  z-index:0;
  width:100vw;
  height:100vh;
  height:100dvh;
  pointer-events:none;
  overflow:hidden;

  /* Exact original Main BODY background: not pure white, but a very pale
     blue-grey "snow white" with faint blue/lilac radial light. */
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,0) 80%,
      rgba(255,255,255,.18) 82%,
      rgba(255,255,255,.42) 85%,
      rgba(255,255,255,.70) 88%,
      #fff 90%,
      #fff 100%
    ),
    radial-gradient(ellipse 82% 34% at 72% 0%,rgba(126,194,247,.24),transparent 78%),
    radial-gradient(ellipse 65% 28% at 8% 7%,rgba(184,207,248,.16),transparent 82%),
    linear-gradient(165deg,#f9fbff 0%,#f5f8ff 52%,#eef4ff 100%);
}

/* Main-derived hero colours, with the blue nudged slightly toward turquoise and the ORIGINAL 365px geometry compressed
   vertically by ~25%. Absolute vertical radii/centres stop Safari from
   stretching the colour field to the full browser height. The mask feathers
   the hero into the body instead of ending it at a rectangular boundary. */
html[data-visual-system="v2"] body[data-design-variant="v4"]>.fixed-page-background::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(ellipse 72% 282px at 87% 200px,rgba(48,186,241,.72),transparent 79%),
    radial-gradient(ellipse 58% 246px at 4% 227px,rgba(230,140,229,.43),transparent 82%),
    radial-gradient(ellipse 80% 235px at 50% 0,rgba(252,240,252,.96),transparent 88%),
    linear-gradient(117deg,#fae6f6 0%,#efe7fa 30%,#b9defc 69%,#befff0 100%);
  -webkit-mask-image:linear-gradient(
    to bottom,
    #000 0,
    #000 clamp(230px,24vh,285px),
    rgba(0,0,0,.82) clamp(285px,31vh,350px),
    rgba(0,0,0,.46) clamp(350px,40vh,465px),
    transparent clamp(430px,52vh,610px)
  );
  mask-image:linear-gradient(
    to bottom,
    #000 0,
    #000 clamp(230px,24vh,285px),
    rgba(0,0,0,.82) clamp(285px,31vh,350px),
    rgba(0,0,0,.46) clamp(350px,40vh,465px),
    transparent clamp(430px,52vh,610px)
  );
}

/* Main's exact clipped overlay — the curved blue/white "Sichel". Its vertical
   geometry is compressed by the same factor and uses the same soft feather,
   so the curve survives without a hard lower edge. */
html[data-visual-system="v2"] body[data-design-variant="v4"]>.fixed-page-background::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(ellipse 76% 219px at 36% 16px,rgba(255,255,255,.56),transparent 80%),
    radial-gradient(ellipse 85% 181px at 67% 312px,rgba(29,101,217,.23),transparent 88%);
  clip-path:ellipse(108% 260px at 38% 0);
  -webkit-mask-image:linear-gradient(
    to bottom,
    #000 0,
    #000 clamp(230px,24vh,285px),
    rgba(0,0,0,.82) clamp(285px,31vh,350px),
    rgba(0,0,0,.46) clamp(350px,40vh,465px),
    transparent clamp(430px,52vh,610px)
  );
  mask-image:linear-gradient(
    to bottom,
    #000 0,
    #000 clamp(230px,24vh,285px),
    rgba(0,0,0,.82) clamp(285px,31vh,350px),
    rgba(0,0,0,.46) clamp(350px,40vh,465px),
    transparent clamp(430px,52vh,610px)
  );
}

html[data-visual-system="v2"] body[data-design-variant="v4"] header.site-header{
  background:transparent!important;
}
html[data-visual-system="v2"] body[data-design-variant="v4"] header.site-header::before{
  content:none!important;
  display:none!important;
}

html[data-visual-system="v2"] body[data-design-variant="v4"]>header,
html[data-visual-system="v2"] body[data-design-variant="v4"]>main,
html[data-visual-system="v2"] body[data-design-variant="v4"]>footer{
  position:relative;
  z-index:1;
}

@media(max-width:700px){
  html[data-visual-system="v2"] body[data-design-variant="v4"]>.fixed-page-background::before{
    background:
      radial-gradient(ellipse 108% 209px at 93% 148px,rgba(48,186,241,.72),transparent 79%),
      radial-gradient(ellipse 92% 182px at -4% 168px,rgba(230,140,229,.43),transparent 82%),
      radial-gradient(ellipse 112% 174px at 48% -2px,rgba(252,240,252,.96),transparent 88%),
      linear-gradient(117deg,#fae6f6 0%,#efe7fa 30%,#b9defc 69%,#befff0 100%);
  }
  html[data-visual-system="v2"] body[data-design-variant="v4"]>.fixed-page-background::after{
    background:
      radial-gradient(ellipse 112% 162px at 30% 12px,rgba(255,255,255,.56),transparent 80%),
      radial-gradient(ellipse 116% 134px at 72% 231px,rgba(29,101,217,.23),transparent 88%);
    clip-path:ellipse(108% 193px at 38% 0);
  }
}
