/* MAWQEVA Motion 1.5 — styles paired with motion.js. Hidden states apply only when
   html.mq-motion is present (set in <head> when motion is allowed). */

/* ── hidden-before-reveal (no-JS, reduced-motion and old browsers never see these) ── */
.mq-motion .mq-reveal:not(.mq-in),
.mq-motion .mq-stagger > .elementor-element:not(.mq-in),
.mq-motion .mq-stagger > .e-con-inner > .elementor-element:not(.mq-in),
.mq-motion .mq-intro-browser:not(.mq-in),
.mq-motion .mq-intro-phone:not(.mq-in),
.mq-motion .mq-pop:not(.mq-in),
.mq-motion .mq-chat > .elementor-widget-text-editor:not(.mq-in) { opacity: 0; }
/* hidden state clips the inner wrapper, not the observed element: Chrome's IntersectionObserver counts the target's own clip-path, so a fully clipped target never reaches the reveal threshold */
.mq-motion .mq-note:not(.mq-in) > .elementor-widget-container { clip-path: inset(-20% 100% -20% 0); }
.mq-motion .mq-hero-title:not(.mq-in) { clip-path: inset(0 0 100% 0); }

/* ── header: scroll progress + elevation ── */
.mq-header { transition: box-shadow .3s ease; }
.mq-header.mq-scrolled { box-shadow: 0 10px 30px -18px rgba(15, 40, 90, .35); }
.mq-progress {
  position: absolute; left: 0; bottom: -1px; z-index: 2; width: 100%; height: 2px;
  background: linear-gradient(90deg, #1E6BF0, #6FB0FF);
  transform: scaleX(0); transform-origin: left center; pointer-events: none;
}

/* ── cursor spotlight on panels ── */
.mq-spot { overflow: hidden; }
.mq-spot > :not(.mq-spot-light) { position: relative; z-index: 1; }
.mq-spot-light {
  position: absolute; left: 0; top: 0; z-index: 0; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(140, 190, 255, .28), transparent);
  opacity: 0; pointer-events: none; transition: opacity .4s ease;
}
.mq-spot--blue .mq-spot-light { background: radial-gradient(closest-side, rgba(255, 255, 255, .22), transparent); }

/* ── micro-interactions that answer the visitor's action (CSS only) ── */
.elementor-button .elementor-button-icon { transition: translate .3s cubic-bezier(.22, 1, .36, 1); }
.elementor-button:hover .elementor-button-icon,
.elementor-button:focus-visible .elementor-button-icon { translate: 4px 0; }
.elementor-button { transition-property: background, color, border-color, box-shadow, scale; }
.elementor-button:active { scale: .98; }
.elementor-button:focus-visible,
.elementor-nav-menu a:focus-visible,
.elementor-heading-title a:focus-visible { outline: 2px solid #1E6BF0; outline-offset: 3px; border-radius: 6px; }
.elementor-widget-solaceform .solaceform-style-field,
.elementor-widget-solaceform input,
.elementor-widget-solaceform select,
.elementor-widget-solaceform textarea { transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.elementor-widget-solaceform input:focus,
.elementor-widget-solaceform select:focus,
.elementor-widget-solaceform textarea:focus { box-shadow: 0 0 0 4px rgba(30, 107, 240, .14); outline: none; }

/* ── loops: infinite while on screen. JS adds .mq-paused when the element leaves the viewport.
   Browsers without motion support (html lacks .mq-motion) keep the old finite caps. ── */
html:not(.mq-motion) .mq-shimmer { animation-iteration-count: 3; }
html:not(.mq-motion) .mq-glow { animation-iteration-count: 6; }
.mq-paused, .mq-paused *, .mq-paused *::before, .mq-paused *::after { animation-play-state: paused !important; }

/* status dot in the hero badge: a soft ping ring (transform + opacity only) */
.mq-dot { position: relative; }
html.mq-motion:not(.mq-calm) .mq-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22C55E;
  animation: mqPing 2.4s ease-out infinite; pointer-events: none;
}
@keyframes mqPing { 0% { transform: scale(1); opacity: .55; } 75%, 100% { transform: scale(2.8); opacity: 0; } }

/* ── reduced motion: everything static and visible ── */
@media (prefers-reduced-motion: reduce) {
  html:not(.mq-force) .mq-shimmer, html:not(.mq-force) .mq-glow { animation: none; }
  .elementor-button .elementor-button-icon, .elementor-button { transition: none; }
  .elementor-button:hover .elementor-button-icon { translate: none; }
  .elementor-button:active { scale: none; }
  .mq-lift:hover { transform: none; }
}

/* ===== v1.5 perf mode (?mqperf=1): the first section's entrance is CSS-driven so it starts at the first paint =====
   Same keyframes, delays and easing as the JS version. Animations use fill-mode BACKWARDS only: when they end the element
   is simply in its natural state (so scroll/pointer parallax and every inline style keep working), and the hidden-state
   rules are neutralised inside the first section so nothing waits for JS. */
:root{--mq-ease:cubic-bezier(.22,1,.36,1);--mq-spring:cubic-bezier(.34,1.56,.64,1)}
.mq-delay-350{--mq-d:350ms}.mq-delay-400{--mq-d:400ms}.mq-delay-420{--mq-d:420ms}.mq-delay-480{--mq-d:480ms}.mq-delay-620{--mq-d:620ms}
@keyframes mqRise{from{opacity:0;translate:0 28px;filter:blur(6px)}to{opacity:1;translate:none;filter:none}}
@keyframes mqRiseSm{from{opacity:0;translate:0 26px}to{opacity:1;translate:none}}
@keyframes mqHeroTitle{from{clip-path:inset(0 0 100% 0);translate:0 36px}to{clip-path:inset(-10% 0 -25% 0);translate:none}}
@keyframes mqWipe{from{clip-path:inset(-20% 100% -20% 0)}to{clip-path:inset(-20% 0 -20% 0)}}
@keyframes mqBrowserIn{from{opacity:0;translate:70px 30px;scale:.92}to{opacity:1;translate:none;scale:none}}
@keyframes mqPhoneIn{from{opacity:0;translate:0 90px}to{opacity:1;translate:none}}
@keyframes mqPopIn{from{opacity:0;scale:.6}to{opacity:1;scale:none}}
@keyframes mqFloat{0%,100%{translate:0 0}50%{translate:0 -9px}}
@keyframes mqBarGrow{from{scale:1 0}to{scale:none}}
@keyframes mqGentle{from{opacity:0;translate:0 10px}to{opacity:1;translate:none}}
html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-reveal:not(.mq-in), html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-stagger > .elementor-element:not(.mq-in), html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-stagger > .e-con-inner > .elementor-element:not(.mq-in), html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-intro-browser:not(.mq-in), html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-intro-phone:not(.mq-in), html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-pop:not(.mq-in){opacity:1}
html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-hero-title:not(.mq-in), html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-note:not(.mq-in){clip-path:none}
html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-reveal, html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-stagger > .elementor-element, html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-stagger > .e-con-inner > .elementor-element{animation:mqRise 900ms var(--mq-ease) var(--mq-d,0ms) backwards}
html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-stagger > .elementor-element, html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-stagger > .e-con-inner > .elementor-element{animation-delay:calc(var(--mq-d,0ms) + var(--mq-i,0) * 80ms)}
html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-stagger > :nth-child(1), html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-stagger > .e-con-inner > :nth-child(1){--mq-i:0}
html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-stagger > :nth-child(2), html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-stagger > .e-con-inner > :nth-child(2){--mq-i:1}
html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-stagger > :nth-child(3), html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-stagger > .e-con-inner > :nth-child(3){--mq-i:2}
html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-stagger > :nth-child(4), html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-stagger > .e-con-inner > :nth-child(4){--mq-i:3}
html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-stagger > :nth-child(5), html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-stagger > .e-con-inner > :nth-child(5){--mq-i:4}
html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-stagger > :nth-child(6), html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-stagger > .e-con-inner > :nth-child(6){--mq-i:5}
html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-stagger > :nth-child(7), html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-stagger > .e-con-inner > :nth-child(7){--mq-i:6}
html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-stagger > :nth-child(8), html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-stagger > .e-con-inner > :nth-child(8){--mq-i:7}
@media (max-width:767px){html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-reveal, html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-stagger > .elementor-element, html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-stagger > .e-con-inner > .elementor-element{animation-name:mqRiseSm;animation-duration:800ms}}
html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-hero-title{animation:mqHeroTitle 1100ms var(--mq-ease) 120ms backwards}
html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-note{animation:mqWipe 1400ms cubic-bezier(.65,0,.35,1) calc(300ms + var(--mq-d,0ms)) backwards}
html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-mock .mq-note{animation-delay:1700ms}
html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-intro-browser{animation:mqBrowserIn 1300ms var(--mq-ease) 250ms backwards}
html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-intro-phone{animation:mqPhoneIn 1200ms var(--mq-ease) 600ms backwards}
html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-mock > .mq-pop{--mq-p:0;animation:mqPopIn 700ms var(--mq-spring) calc(950ms + var(--mq-p) * 200ms) backwards,mqFloat calc(4200ms + var(--mq-p) * 900ms) ease-in-out calc(1800ms + var(--mq-p) * 300ms) infinite}
html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-mock > .mq-pop ~ .mq-pop{--mq-p:1}
html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-mock > .mq-pop ~ .mq-pop ~ .mq-pop{--mq-p:2}
html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-bars > .elementor-element{transform-origin:bottom;animation:mqBarGrow 700ms var(--mq-spring) calc(1250ms + var(--mq-b,0) * 90ms) backwards}
html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-bars > .elementor-element:nth-child(1){--mq-b:0}
html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-bars > .elementor-element:nth-child(2){--mq-b:1}
html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-bars > .elementor-element:nth-child(3){--mq-b:2}
html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-bars > .elementor-element:nth-child(4){--mq-b:3}
html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-bars > .elementor-element:nth-child(5){--mq-b:4}
html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-bars > .elementor-element:nth-child(6){--mq-b:5}
html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-bars > .elementor-element:nth-child(7){--mq-b:6}
html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-bars > .elementor-element:nth-child(8){--mq-b:7}
html.mq-perf.mq-motion.mq-calm [data-elementor-type="wp-page"] > .e-con:first-child .mq-reveal:not(.mq-in), html.mq-perf.mq-motion.mq-calm [data-elementor-type="wp-page"] > .e-con:first-child .mq-stagger > .elementor-element:not(.mq-in), html.mq-perf.mq-motion.mq-calm [data-elementor-type="wp-page"] > .e-con:first-child .mq-stagger > .e-con-inner > .elementor-element:not(.mq-in), html.mq-perf.mq-motion.mq-calm [data-elementor-type="wp-page"] > .e-con:first-child .mq-intro-browser:not(.mq-in), html.mq-perf.mq-motion.mq-calm [data-elementor-type="wp-page"] > .e-con:first-child .mq-intro-phone:not(.mq-in), html.mq-perf.mq-motion.mq-calm [data-elementor-type="wp-page"] > .e-con:first-child .mq-pop:not(.mq-in){opacity:1}
html.mq-perf.mq-motion.mq-calm [data-elementor-type="wp-page"] > .e-con:first-child .mq-hero-title:not(.mq-in), html.mq-perf.mq-motion.mq-calm [data-elementor-type="wp-page"] > .e-con:first-child .mq-note:not(.mq-in){clip-path:none}
html.mq-perf.mq-motion.mq-calm [data-elementor-type="wp-page"] > .e-con:first-child .mq-reveal, html.mq-perf.mq-motion.mq-calm [data-elementor-type="wp-page"] > .e-con:first-child .mq-hero-title, html.mq-perf.mq-motion.mq-calm [data-elementor-type="wp-page"] > .e-con:first-child .mq-note, html.mq-perf.mq-motion.mq-calm [data-elementor-type="wp-page"] > .e-con:first-child .mq-stagger > .elementor-element, html.mq-perf.mq-motion.mq-calm [data-elementor-type="wp-page"] > .e-con:first-child .mq-stagger > .e-con-inner > .elementor-element{animation:mqGentle 700ms ease var(--mq-d,0ms) backwards}
html.mq-perf.mq-motion.mq-calm [data-elementor-type="wp-page"] > .e-con:first-child .mq-intro-browser{animation:mqGentle 800ms ease 0ms backwards}
html.mq-perf.mq-motion.mq-calm [data-elementor-type="wp-page"] > .e-con:first-child .mq-intro-phone{animation:mqGentle 800ms ease 160ms backwards}
html.mq-perf.mq-motion.mq-calm [data-elementor-type="wp-page"] > .e-con:first-child .mq-mock > .mq-pop{animation:mqGentle 800ms ease 320ms backwards}
html.mq-perf.mq-motion.mq-calm [data-elementor-type="wp-page"] > .e-con:first-child .mq-mock > .mq-pop ~ .mq-pop{animation-delay:480ms}
/* once the JS has seen an entrance finish it adds .mq-done: the CSS animation is removed so a restyle can never replay it (floats keep running) */
html.mq-perf .mq-done{animation:none!important}
html.mq-perf.mq-motion:not(.mq-calm) [data-elementor-type="wp-page"] > .e-con:first-child .mq-mock > .mq-pop.mq-done{animation:mqFloat calc(4200ms + var(--mq-p) * 900ms) ease-in-out calc(1800ms + var(--mq-p) * 300ms) infinite!important}
/* ===== end v1.5 ===== */
