

.bricks-is-frontend :is(.animation-trigger, .animation-trigger--replay) {
  opacity: 0;
}


@media (prefers-reduced-motion: no-preference) {

  
  .animate {
    
    --duration: 300ms;  
    --delay: 1;   
    
    animation-name: microAnimation;
    animation-delay: calc(var(--delay) * 200ms);
    animation-duration: var(--duration);
    animation-timing-function: var(--timing-function, ease-in-out);
    animation-fill-mode: forwards;

    
    --translate-x: var(--translate-x, 0px);
    --translate-y: var(--translate-y, 0px);
    --translate-z: 0px;
    --scale: var(--scale-start, 1);
  }
  
  @supports (animation-timing-function: linear(0, 1)) {
    .animate {
      --duration: 800ms;
      animation-timing-function: var(--timing-function, linear(0, 0.008 1.1%, 0.033 2.3%, 0.076 3.6%, 0.138 5%, 0.274 7.5%, 0.698 14.5%, 0.813 16.7%, 0.907 18.8%, 0.985 20.9%, 1.045 23%, 1.091 25.2%, 1.12 27.4%, 1.139 30.6%, 1.133 34.3%, 1.019 49.4%, 0.996 53.8%, 0.984 58.4%, 0.981 64.9%, 1 84.4%, 1));
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate {
    animation: none !important;
    transition: none !important;
  }
  .bricks-is-frontend :is(.animation-trigger, .animation-trigger--replay) {
    opacity: 1 !important;
  }
}


:root {
  --translate-amount: var(--at-gutter, 10px); 

  
  --move-none: 0;
  --move-left: calc(-1 * var(--translate-amount));  
  --move-right: calc(1 * var(--translate-amount));  
  --move-up: calc(1 * var(--translate-amount));    
  --move-down: calc(-1 * var(--translate-amount));   

  
  --opacity-start: 0;
  
  
  --scale-start: 1;

  
  --scroll-direction: var(--move-up); 
}


body.scrolling-down {
  --scroll-direction: var(--move-up);
}

body.scrolling-up {
  --scroll-direction: var(--move-down);
}


[class^="animation-trigger"] {
  --translate-x: var(--move-none);
  --translate-y: var(--move-none);
  --translate-z: var(--move-none);
  --scale: var(--scale-start);
  --opacity: var(--opacity-start);
}

.animation--fade {
  --duration: 2s;
}


.animation--zoom {
  --scale-start: 0.8;  
  --opacity-start: 1; 
}


.animation--from-left {
  --translate-x: var(--move-left);
}

.animation--from-right {
  --translate-x: var(--move-right);
}


.animation--up {
  --translate-y: var(--move-up);
}

.animation--down {
  --translate-y: var(--move-down);
}


.animation--scroll {
  --translate-y: var(--scroll-direction);
}


@keyframes microAnimation {
  from {
    opacity: var(--opacity, 0);
    transform: translate3d(var(--translate-x, 0px), var(--translate-y, 0px), var(--translate-z, 0px)) scale(var(--scale, 1));
  }

  to {
    opacity: 1;
    transform: translate3d(0px, 0px, 0px) scale(1);
  }
}





.animation--stagger > * {
  --delay: 1;
}

.animation--stagger > *:nth-child(1) { --delay: .5; }
.animation--stagger > *:nth-child(2) { --delay: 1; }
.animation--stagger > *:nth-child(3) { --delay: 1.5; }
.animation--stagger > *:nth-child(4) { --delay: 2; }
.animation--stagger > *:nth-child(5) { --delay: 2.5; }
.animation--stagger > *:nth-child(6) { --delay: 3; }
.animation--stagger > *:nth-child(7) { --delay: 3.5; }
.animation--stagger > *:nth-child(8) { --delay: 4; }
.animation--stagger > *:nth-child(9) { --delay: 4.5; }
.animation--stagger > *:nth-child(10) { --delay: 5; }
.animation--stagger > *:nth-child(11) { --delay: 5.5; }
.animation--stagger > *:nth-child(12) { --delay: 6; }
.animation--stagger > *:nth-child(13) { --delay: 6.5; }
.animation--stagger > *:nth-child(14) { --delay: 7; }
.animation--stagger > *:nth-child(15) { --delay: 7.5; }
.animation--stagger > *:nth-child(16) { --delay: 8; }
.animation--stagger > *:nth-child(17) { --delay: 8.5; }
.animation--stagger > *:nth-child(18) { --delay: 9; }
.animation--stagger > *:nth-child(19) { --delay: 9.5; }
.animation--stagger > *:nth-child(20) { --delay: 10; }