/* particle-flow: the canvas under a part's content, and its knobs. The lights are drawn by effect.js in the two
   colors below. Every rule sits in :where(), so any rule of the page wins. */

:where([data-fx~="particle-flow"]) {
  /* knobs */
  --flow-color: var(--fx-tint);       /* most of the lights: the brand as it reads on this ground */
  --flow-color-2: var(--fx-tint-2);   /* one in four: the accent */
  --flow-density: 1;     /* how many lights: 0.5 half, 2 double (a phone always gets fewer) */
  --flow-speed: 1;       /* times the site's --fx-pace */
  --flow-size: 1;        /* the lights' size */
  --flow-opacity: 0.75;  /* 0 to 1 */
  --flow-pointer: 0.6;   /* 0 to 1: how much they answer the mouse; 0 for none */
  --flow-reach: 1;       /* orbit: the rings' size; constellation: how far two points still join */
  position: relative;
  isolation: isolate;
}
:where(.fx-flow) { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0; transition: opacity 0.6s linear; }
:where(.fx-flow[data-on]) { opacity: 1; }

:where([data-fx~="particle-flow"][data-fx-preset="drift"]) { --flow-opacity: 0.6; }
:where([data-fx~="particle-flow"][data-fx-preset="constellation"]) { --flow-opacity: 0.65; }

@media (prefers-reduced-motion: reduce) {
  :where(.fx-flow) { transition: none; }
}
@media (forced-colors: active) {
  :where(.fx-flow) { display: none; }
}
