/* Carbon Labs: the hero's colour glows drift like a mesh gradient. Each of the three blobs (the brand's light blue,
   teal and the bloom under the window) wanders on its own slow loop and breathes a little in size, so the
   colours keep shifting into each other without ever reading as motion you notice. Paused for Reduce Motion.

   GPU cost: every blob is its own layer holding ONE static radial gradient, moved with the `translate` and `scale`
   properties, which the compositor animates without repainting. (The first version animated registered custom
   properties inside the gradient, which repainted the whole hero every frame, on all nine slides at once.)
   Only the slide that is showing moves (the others are paused); anim-gate.js pauses it when the hero is scrolled out of view. */

/* the slides drift down with the scroll (hero parallax, up to 18%), so the glow layer reaches 25% above the slide;
   positions and sizes are set in that taller box, matching the original layout at rest */
html .fslide__glow, html[data-theme="light"] .fslide__glow { top: -25%; background: none; }
/* each blob layer is 40% larger than the glow box (20% past every edge) so its gradient is never cut by the layer's own
   edge while it drifts; the hero (.fs) clips the overflow. Centres and radii below are the original ones re-expressed
   in the larger box: (p + 20) / 140 and r / 1.4. */
html .fslide__glow::before, html .fslide__glow::after, html .fslide__glow > i { content: ""; position: absolute; inset: -20%; pointer-events: none; }
html .fslide__glow::before { background: radial-gradient(34.29% 29.71% at 24.29% 45.71%, var(--hero-ga), transparent 70%); transform-origin: 24.29% 45.71%; }
html .fslide__glow::after  { background: radial-gradient(32.86% 29.71% at 75.71% 68.57%, var(--hero-gb), transparent 70%); transform-origin: 75.71% 68.57%; }
html .fslide__glow > i     { background: radial-gradient(42.86% 25.71% at 50% 73.14%, var(--hero-gc), transparent 72%); transform-origin: 50% 73.14%; }

html .fslide .fslide__glow::before { animation: mesh-a 26s ease-in-out infinite alternate, mesh-s 18s ease-in-out infinite alternate; }
html .fslide .fslide__glow::after  { animation: mesh-b 32s ease-in-out infinite alternate, mesh-s 18s ease-in-out infinite alternate-reverse; }
html .fslide .fslide__glow > i     { animation: mesh-c 22s ease-in-out infinite alternate, mesh-s 18s ease-in-out infinite alternate; }

/* a slide that is not showing is frozen where it stopped, not stripped of its animation: removing it snapped the
   blobs back to their start during the fade-out, and gave every slide the same start position when it came back */
html .fslide:not(.is-on) .fslide__glow::before, html .fslide:not(.is-on) .fslide__glow::after, html .fslide:not(.is-on) .fslide__glow > i { animation-play-state: paused; }

@keyframes mesh-a { 0% { translate: 0 0; } 33% { translate: 8.57% -4.57%; } 66% { translate: 2.86% 8%; } 100% { translate: 11.43% 2.29%; } }
@keyframes mesh-b { 0% { translate: 0 0; } 40% { translate: -8.57% 5.71%; } 70% { translate: -2.86% -8%; } 100% { translate: -11.43% -2.29%; } }
@keyframes mesh-c { 0% { translate: 0 0; } 50% { translate: -8.57% -4.57%; } 100% { translate: 8.57% 2.29%; } }
@keyframes mesh-s { 0% { scale: .94; } 100% { scale: 1.1; } }
@media (prefers-reduced-motion: reduce) { html .fslide__glow::before, html .fslide__glow::after, html .fslide__glow > i { animation: none !important; } }
