/*!
 * Net Group Motion – default scroll-reveal for every page. No per-section setup needed.
 * Pairs with assets/motion.js. Nothing here clips overflow; only opacity + translate/scale are animated
 * (individual `translate` / `scale` properties, so your own `transform: …` rules are never overwritten).
 * Everything is gated behind `html.ng-motion`, which an inline <head> script only sets when it is safe
 * (no reduced-motion preference, not the Divi builder, JS available).
 *
 * Tweak per section / row / module / element with classes (they inherit down, so put them on a section to affect all inside):
 *   no-animation | ng-static   switch off          ng-up ng-down ng-left ng-right   direction
 *   ng-fade   fade only        ng-zoom  scale-in    ng-blur  blur-in    ng-wipe  left-to-right wipe
 *   ng-far / ng-near           travel distance      ng-slow / ng-fast               speed
 *   ng-delay-1 … ng-delay-5    +0.2 s steps         ng-stagger (on a container)     children in sequence
 *   ng-words / ng-chars        split text           no-splitting                    headings fade as one block
 *   ng-repeat                  replay on every scroll in      ng-reveal   animate any element
 *   ng-count                   count numbers up     ng-parallax (+ data-speed=".15") image drift
 */
html.ng-motion{--ng-dur:.85s;--ng-ease:cubic-bezier(.22,1,.36,1);--ng-x:0px;--ng-y:34px;--ng-s:1;--ng-base:0ms;--ng-k:1;--ng-word:38ms}
@media (max-width:767px){html.ng-motion{--ng-k:.6}}

@media screen{
/* hidden state – the rule simply disappears on .ng-in, so the element returns to *your* styles */
html.ng-motion :is(.et_pb_text_inner>:is(p,ul,ol,blockquote,table,figure,pre,h4,h5,h6),.et_pb_blurb,.et_pb_image,.et_pb_button_module_wrapper,.et_pb_video,.et_pb_cta,.et_pb_testimonial,.et_pb_team_member,.et_pb_pricing_table,.et_pb_toggle,.et_pb_contact_form_container,.et_pb_portfolio_item,.et_pb_fullwidth_header .header-content>:is(.et_pb_fullwidth_header_subhead,.header-content-container,.et_pb_button_one,.et_pb_button_two,.et_pb_fullwidth_header_scroll),.animate-image,.ng-reveal,.ng-count,.et_pb_text_inner>:is(h1,h2,h3),.et_pb_fullwidth_header .header-content :is(h1,h2),.et_pb_heading_container :is(h1,h2,h3,h4,h5,h6),.ng-heading,.split-words .et_pb_text_inner>*,.ng-words .et_pb_text_inner>*,.ng-chars .et_pb_text_inner>*):not(.ng-in,.ng-skip,.ng-split,.no-animation,.et_animated,.et-l--header,.et-l--footer,#main-header,#main-footer,.et_pb_menu,.et_pb_slider,.et_pb_carousel,.swiper,.swiper-container,.et_pb_modal_overlay,.mfp-wrap,.tf-v1-popup,.ng-static,.no-animation *,.et_animated *,.et-l--header *,.et-l--footer *,#main-header *,#main-footer *,.et_pb_menu *,.et_pb_slider *,.et_pb_carousel *,.swiper *,.swiper-container *,.et_pb_modal_overlay *,.mfp-wrap *,.tf-v1-popup *,.ng-static *){
  opacity:0;
  translate:calc(var(--ng-x) * var(--ng-k)) calc(var(--ng-y) * var(--ng-k));
  scale:var(--ng-s);
}
html.ng-motion .ng-blurry:not(.ng-in){filter:blur(10px)}
html.ng-motion .ng-wipey:not(.ng-in){clip-path:inset(0 100% 0 0)}
/* split headings: the heading itself stays put, only its words / letters move */
html.ng-motion .ng-split:not(.ng-in) .ng-wi{opacity:0;translate:0 .55em;rotate:4deg}
html.ng-motion .ng-w,html.ng-motion .ng-c{display:inline-block;white-space:pre}
html.ng-motion .ng-wi{display:inline-block;transform-origin:0 100%}
}

/* transition is only attached while revealing (class removed afterwards, so your hover transitions stay intact) */
html.ng-motion .ng-go{
  transition:opacity var(--ng-dur) var(--ng-ease),translate var(--ng-dur) var(--ng-ease),scale var(--ng-dur) var(--ng-ease),filter var(--ng-dur) var(--ng-ease),clip-path calc(var(--ng-dur) * 1.2) var(--ng-ease)!important;
  transition-delay:calc(var(--ng-base) + var(--ng-stag,0ms))!important;
}
html.ng-motion .ng-split.ng-go .ng-wi{
  transition:opacity calc(var(--ng-dur) * .8) var(--ng-ease),translate var(--ng-dur) var(--ng-ease),rotate var(--ng-dur) var(--ng-ease);
  transition-delay:calc(var(--ng-base) + var(--ng-stag,0ms) + var(--i,0) * var(--ng-word));
}

/* modifiers */
.ng-up{--ng-x:0px;--ng-y:44px}
.ng-down{--ng-x:0px;--ng-y:-44px}
.ng-left{--ng-x:-56px;--ng-y:0px}
.ng-right{--ng-x:56px;--ng-y:0px}
.ng-fade{--ng-x:0px;--ng-y:0px;--ng-s:1}
.ng-zoom{--ng-x:0px;--ng-y:0px;--ng-s:.9}
.ng-wipe{--ng-x:0px;--ng-y:0px}
.ng-far{--ng-y:90px}
.ng-near{--ng-y:14px}
.ng-slow{--ng-dur:1.4s;--ng-word:55ms}
.ng-fast{--ng-dur:.45s;--ng-word:22ms}
.ng-delay-1{--ng-base:200ms}.ng-delay-2{--ng-base:400ms}.ng-delay-3{--ng-base:600ms}.ng-delay-4{--ng-base:800ms}.ng-delay-5{--ng-base:1000ms}
.ng-parallax{overflow:hidden}
.ng-parallax img{scale:1.2;will-change:translate}
