/* Code Link It | Slow liquid ambient motion & responsive water touch, Nov 2026.
 * Existing indigo/cyan/violet palette. No distracting color flashes.
 * Public pages only; layer is fixed while moving independently of scroll.
 */
body.cl-site.cl-fluid-enabled #cli-fluid-background{
  --cl-water-x:50%;
  --cl-water-y:50%;
  --cl-water-alpha:0;
  position:fixed;
  inset:0;
  pointer-events:none;
  overflow:hidden;
  z-index:0;
  background:
    radial-gradient(ellipse at 20% 20%,rgba(43,57,130,.14),transparent 63%),
    radial-gradient(ellipse at 78% 90%,rgba(14,116,142,.11),transparent 63%),
    linear-gradient(140deg,#080d1d 0%,#10162d 56%,#08101c 100%);
}
body.cl-site.cl-fluid-enabled #cli-fluid-background .cl-liquid{
  opacity:.49;
  pointer-events:none;
  mix-blend-mode:screen;
  will-change:transform;
  transform:translate3d(0,0,0);
  filter:blur(74px);
  animation-timing-function:ease-in-out;
  animation-direction:alternate;
  animation-iteration-count:infinite;
}
body.cl-site.cl-fluid-enabled #cli-fluid-background .cl-liquid-a{
  opacity:.50;
  background:radial-gradient(circle,rgba(77,92,239,.45) 0%,rgba(99,73,210,.20) 37%,transparent 74%);
  animation-name:clWaterFloatA;
  animation-duration:102s;
}
body.cl-site.cl-fluid-enabled #cli-fluid-background .cl-liquid-b{
  opacity:.45;
  background:radial-gradient(circle,rgba(31,176,201,.38),rgba(13,107,155,.19) 44%,transparent 75%);
  animation-name:clWaterFloatB;
  animation-duration:118s;
}
body.cl-site.cl-fluid-enabled #cli-fluid-background .cl-liquid-c{
  opacity:.41;
  background:radial-gradient(circle,rgba(102,74,212,.32),rgba(51,108,188,.18) 43%,transparent 74%);
  animation-name:clWaterFloatC;
  animation-duration:131s;
}
body.cl-site.cl-fluid-enabled #cli-fluid-background .cl-liquid-d{
  opacity:.32;
  background:radial-gradient(circle,rgba(47,213,191,.28),transparent 74%);
  animation-name:clWaterFloatD;
  animation-duration:145s;
}
@keyframes clWaterFloatA{
  0%{transform:translate3d(-3vw,-2vh,0) scale(.97)}
  50%{transform:translate3d(9vw,8vh,0) scale(1.055)}
  100%{transform:translate3d(18vw,13vh,0) scale(.985)}
}
@keyframes clWaterFloatB{
  0%{transform:translate3d(3vw,4vh,0) scale(.99)}
  55%{transform:translate3d(-11vw,-8vh,0) scale(1.065)}
  100%{transform:translate3d(-17vw,5vh,0) scale(.95)}
}
@keyframes clWaterFloatC{
  0%{transform:translate3d(-8vw,2vh,0) scale(.94)}
  50%{transform:translate3d(8vw,-14vh,0) scale(1.075)}
  100%{transform:translate3d(-6vw,-21vh,0) scale(.99)}
}
@keyframes clWaterFloatD{
  0%{transform:translate3d(-7vw,-8vh,0) scale(.97)}
  100%{transform:translate3d(11vw,13vh,0) scale(1.08)}
}
/* A very faint highlight follows actual finger motion; no full-screen flash.
   The gradient stays attached to the viewport, not the scroll position. */
body.cl-site.cl-fluid-enabled #cli-fluid-background::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:radial-gradient(
    ellipse 280px 235px at var(--cl-water-x) var(--cl-water-y),
    rgba(81,224,224,.11) 0%,
    rgba(80,113,220,.075) 27%,
    rgba(104,76,203,.033) 52%,
    transparent 76%
  );
  opacity:var(--cl-water-alpha);
  transition:opacity 1000ms ease-out;
  z-index:1;
}
/* Gentle mobile limits: fewer blurred layers, short motion distances. */
@media(max-width:780px){
 body.cl-site.cl-fluid-enabled #cli-fluid-background .cl-liquid{
   filter:blur(45px);
   opacity:.29;
   will-change:auto;
 }
 body.cl-site.cl-fluid-enabled #cli-fluid-background .cl-liquid-a{opacity:.36;animation-duration:116s}
 body.cl-site.cl-fluid-enabled #cli-fluid-background .cl-liquid-b{opacity:.33;animation-duration:129s}
 body.cl-site.cl-fluid-enabled #cli-fluid-background .cl-liquid-c,
 body.cl-site.cl-fluid-enabled #cli-fluid-background .cl-liquid-d{display:none}
 body.cl-site.cl-fluid-enabled #cli-fluid-background::after{
  background:radial-gradient(
   ellipse 190px 168px at var(--cl-water-x) var(--cl-water-y),
   rgba(89,239,226,.14),rgba(79,128,226,.073) 38%,transparent 76%
  );
 }
}
@media(max-width:420px){
 body.cl-site.cl-fluid-enabled #cli-fluid-background .cl-liquid{filter:blur(31px)}
}
/* Matching colour flow in the preloader, coupled to every orbit.
   Existing 2-second hide timing remains unchanged. */
html.cli-js #cli-preloader{
 background:
   radial-gradient(ellipse at 28% 30%,rgba(65,91,167,.23),transparent 58%),
   radial-gradient(ellipse at 81% 74%,rgba(13,139,161,.21),transparent 56%),
   linear-gradient(130deg,#080d1d 0%,#111731 55%,#081320 100%);
}
html.cli-js #cli-preloader .cli-preloader-ring{
 isolation:isolate;
 background:radial-gradient(circle at 36% 30%,rgba(25,44,84,.98),rgba(11,24,51,.97));
 border:1px solid rgba(127,196,238,.16);
 box-shadow:0 0 0 10px rgba(77,114,217,.032),0 0 32px rgba(58,125,201,.16),0 18px 49px rgba(1,6,22,.46);
}
html.cli-js #cli-preloader .cli-preloader-ring::before{
 content:"";
 position:absolute;
 inset:-9px;
 border:0;
 border-radius:50%;
 background:conic-gradient(
  from 0deg,
  rgba(92,229,234,.11) 0deg,
  #48cde4 48deg,
  rgba(73,135,243,.94) 85deg,
  rgba(88,75,220,.21) 140deg,
  #9a78fb 208deg,
  rgba(45,204,203,.7) 284deg,
  rgba(92,229,234,.11) 360deg
 );
 filter:blur(6px);
 opacity:.83;
 z-index:0;
 animation:clLoaderColorOrbit 1.55s linear infinite;
}
html.cli-js #cli-preloader .cli-preloader-ring::after{
 content:"";
 position:absolute;
 inset:3px;
 border-radius:50%;
 border:1px solid rgba(100,179,234,.15);
 background:radial-gradient(circle at 50% 34%,#1a2a4b 0%,#101b35 51%,#0b1731 100%);
 box-shadow:inset 0 0 23px rgba(49,101,181,.12);
 z-index:1;
}
html.cli-js #cli-preloader .cli-preloader-symbol{
 position:relative;
 z-index:2;
 filter:drop-shadow(0 0 10px rgba(70,191,230,.22));
 animation:clLogoWaterBreath 1.65s ease-in-out infinite;
}
html.cli-js #cli-preloader .cli-preloader-track::before{
 background:linear-gradient(90deg,#40d8d7,#6e95f8,#ab7af6,#44d9d8);
 background-size:210% 100%;
 animation:cliBrandProgress 1.1s ease-in-out infinite,clLoaderTrackWave 1.55s linear infinite;
}
html.cli-js #cli-preloader .cli-preloader-name{
 text-shadow:0 0 18px rgba(69,173,226,.11);
}
@keyframes clLoaderColorOrbit{to{transform:rotate(360deg)}}
@keyframes clLogoWaterBreath{
 0%,100%{transform:scale(.97);opacity:.94;filter:drop-shadow(0 0 7px rgba(49,215,220,.21))}
 50%{transform:scale(1.035);opacity:1;filter:drop-shadow(0 0 15px rgba(132,120,243,.28))}
}
@keyframes clLoaderTrackWave{to{background-position:210% 0}}
@media(prefers-reduced-motion:reduce){
 body.cl-site.cl-fluid-enabled #cli-fluid-background .cl-liquid,
 html.cli-js #cli-preloader .cli-preloader-ring::before,
 html.cli-js #cli-preloader .cli-preloader-symbol,
 html.cli-js #cli-preloader .cli-preloader-track::before{
   animation:none!important;
   transform:none!important;
   will-change:auto!important;
 }
 body.cl-site.cl-fluid-enabled #cli-fluid-background::after{opacity:0!important;transition:none!important}
}
