/* ZB Stack · 1150 · the ground: the shipped black, a slow fade at the top and bottom of every page, and dotted
   shapes behind the content. Loads last, after design-1150.css. Decoration only: both layers ignore the pointer. */

html:root{background:var(--bg)}
html:root body[data-page],html:root body{position:relative;background:transparent!important}
/* inner pages paint the ground on main and on every band; they go clear so the dots show through. The one
   raised band keeps a faint lift. */
html:root body[data-page] #main#main#main#main,
html:root body[data-page] #main#main#main#main>section,
html:root body[data-page] #main#main#main#main>div>section{background-color:transparent!important}
html:root body[data-page] #main#main#main#main>section:is(.rd-ink,.d39-ink):not(#_):not(#_):not(#_),
html:root body[data-page] #main#main#main#main>div>section:is(.rd-ink,.d39-ink):not(#_):not(#_):not(#_){background-color:transparent!important}

/* 1 · the fade. Screen-blended, so it lifts the black, the panels, the nav and the dark side of the hero photo
   together and leaves no seam. Black adds nothing, so each gradient ends in black. */
html:root body[data-page]::before,html:root body::before{
  content:""!important;display:block!important;position:absolute!important;inset:0!important;width:auto!important;height:auto!important;z-index:70!important;pointer-events:none;mix-blend-mode:screen!important;opacity:1!important;
  --fade:#15120D;
  background:
    linear-gradient(180deg,var(--fade) 0,color-mix(in srgb,var(--fade) 84%,#000) 14%,color-mix(in srgb,var(--fade) 62%,#000) 32%,color-mix(in srgb,var(--fade) 38%,#000) 52%,color-mix(in srgb,var(--fade) 18%,#000) 72%,color-mix(in srgb,var(--fade) 6%,#000) 88%,#000 100%) top/100% min(1500px,100%) no-repeat,
    linear-gradient(0deg,color-mix(in srgb,var(--fade) 80%,#000) 0,color-mix(in srgb,var(--fade) 50%,#000) 30%,color-mix(in srgb,var(--fade) 20%,#000) 62%,#000 100%) bottom/100% min(1100px,60%) no-repeat!important;
}

/* 2 · the dotted shapes. One field of dots behind the content, shown only where there is no text:
   a disc behind the hero media at the top right, then a ring on the left and a disc on the right repeating
   down the page, both cut to the page margins outside the 1240px text column. */
html:root body::after{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background-image:radial-gradient(circle,rgba(245,243,238,.42) 0 1.15px,transparent 1.75px);
  background-size:15px 15px;background-position:50% 0;
  --hero:radial-gradient(circle 600px at 98% 400px,#000 0,rgba(0,0,0,.85) 50%,transparent 100%);
  --pair:radial-gradient(circle 620px at 103% 400px,#000 0,rgba(0,0,0,.85) 55%,transparent 100%),
         radial-gradient(circle 640px at -6% 1750px,transparent 0 50%,#000 51%,rgba(0,0,0,.75) 84%,transparent 100%);
  --gate:linear-gradient(90deg,#000 0,#000 calc(50% - 636px),transparent calc(50% - 616px),transparent calc(50% + 616px),#000 calc(50% + 636px),#000 100%);
  /* hero + (gate ∩ (disc + ring)) */
  -webkit-mask-image:var(--hero),var(--gate),var(--pair);
  mask-image:var(--hero),var(--gate),var(--pair);
  -webkit-mask-size:100% 1100px,100% 100%,100% 2700px,100% 2700px;
  mask-size:100% 1100px,100% 100%,100% 2700px,100% 2700px;
  -webkit-mask-repeat:no-repeat,no-repeat,repeat-y,repeat-y;
  mask-repeat:no-repeat,no-repeat,repeat-y,repeat-y;
  -webkit-mask-composite:source-over,source-in,source-over;
  mask-composite:add,intersect,add;
}
/* below the full container width there are no margins to hold the shapes: only the hero disc stays, and on
   phones, where the hero text runs the full width, it shrinks into the top right corner */
@media (max-width:1100px){
  html:root body::after{
    --hero:radial-gradient(circle 420px at 100% 330px,#000 0,rgba(0,0,0,.8) 50%,transparent 100%);
    -webkit-mask-image:var(--hero);mask-image:var(--hero);
    -webkit-mask-size:100% 900px;mask-size:100% 900px;
    -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
    -webkit-mask-composite:source-over;mask-composite:add;
  }
}
@media (max-width:760px){
  html:root body::after{
    background-image:radial-gradient(circle,rgba(245,243,238,.3) 0 1px,transparent 1.6px);background-size:13px 13px;
    --hero:radial-gradient(circle 130px at 100% 56px,#000 0,rgba(0,0,0,.7) 45%,transparent 100%);
  }
}
/* NewsRoom pages run text across the full width at the top, so their hero disc keeps to the top right corner */
@media (min-width:1101px){
  html:root body[data-page="newsroom"]::after{--hero:radial-gradient(circle 250px at 100% 140px,#000 0,rgba(0,0,0,.8) 50%,transparent 100%)}
}
