/**
 * @file starfield.css
 * Ambient hero starfield for Celthrac dark pages.
 * Injected by starfield.js into each page's hero (.<prefix>-hero).
 * Three overscanned star layers move at different speeds on mouse-move
 * (depth) + a very slow idle drift. Pure transform = GPU-cheap.
 */
.cx-starfield{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
  /* Isolate the star layers' painting from the surrounding text so scrolling
     (under GSAP ScrollSmoother) doesn't re-rasterize the paragraphs. */
  contain:layout paint;
  transform:translateZ(0);
}
.cx-starfield__l{
  position:absolute;
  inset:-16%;                       /* overscan: room to move, no edge reveal */
  /* Tile the star image at its native pixel size so stars stay crisp.
     `cover` upscaled the artwork on tall sections and blurred the points. */
  background-position:center;
  background-repeat:repeat;
  background-size:auto;
  will-change:transform;
  transform:translate3d(0,0,0);
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
}
.cx-starfield__l--far {background-image:url('../img/starfield/stars-fine.webp');opacity:.90;}
.cx-starfield__l--mid {background-image:url('../img/starfield/stars-mid.webp'); opacity:.85;}
.cx-starfield__l--near{background-image:url('../img/starfield/stars-band.webp');opacity:.80;}

/* Host hero: establish a stacking context and lift real content above stars. */
[data-starfield-host]{position:relative;}
[data-starfield-host] > *:not(.cx-starfield){position:relative;z-index:1;}

/* Idle drift removed: animating background-position repainted the tiled star
   layers every frame, which flickered the paragraphs during scroll. Motion now
   comes only from the GPU-composited mouse parallax (transform). */

/* Respect reduced-motion: keep stars, drop all movement. */
@media (prefers-reduced-motion:reduce){
  .cx-starfield__l{transition:none;}
}


/* ---------------------------------------------------------------------------
 * Home page: the star-free band after "The reality" up to "Proof"
 * (Capabilities, Sovereignty, Featured panels) drops its decorative
 * glow/gradient overlays for a clean, flat-dark look. Content imagery
 * (mosaic tiles, Featured images) is kept; only glows/gradients are removed.
 * ------------------------------------------------------------------------- */
.ds-home .ds-sov-glow,
.ds-home .ds-mosaic-line,
.ds-home .ds-tile-scrim {
  display: none !important;
}
