
/* ============================================================
   EVO AI STUDIO — PERFORMANCE LAYER
   Keeps the premium look while reducing GPU / paint load.
   ============================================================ */

html{
  scroll-behavior:smooth;
}

body{
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Isolate expensive sections so they do not trigger whole-page repaints. */
section,
.evo-footer,
.evo-helper-panel,
.island-dock,
.evo-marquee-two,
.evo-mobile-premium-hero{
  contain:layout paint style;
}

/* Promote only elements that actually animate. */
.evo-marquee-track,
.evo-mobile-premium-hero .emh-aura,
.evo-mobile-premium-hero .emh-grid,
.evo-film-hero::after,
#evoStableIntro .esi-glow,
#evoStableIntro .esi-grid,
#evoStableIntro .esi-logo,
#evoStableIntro .esi-progress span{
  will-change:transform,opacity,background-position;
  transform:translateZ(0);
  backface-visibility:hidden;
}

/* Cards should not keep unnecessary compositing layers alive. */
.service-detail,
.service-item,
.price-card,
.mp-card,
.process-card,
.delivery-card,
.contact-social-card,
.hero-side-card,
.hero-link-card,
.hero-mini-card{
  will-change:auto!important;
}

/* Stop expensive continuous animation when a section is offscreen. */
.evo-perf-paused,
.evo-perf-paused *,
.evo-perf-paused::before,
.evo-perf-paused::after{
  animation-play-state:paused!important;
}

/* Pause global animation work while browser tab is hidden. */
html.evo-page-hidden *,
html.evo-page-hidden *::before,
html.evo-page-hidden *::after{
  animation-play-state:paused!important;
}

/* Reduce expensive blur radii without visually flattening the design. */
.evo-mobile-premium-hero .emh-aura,
#evoStableIntro .esi-glow,
.evo-film-hero::after{
  filter:blur(54px)!important;
}

/* Avoid overdraw from background layers on mobile. */
@media(max-width:767px){
  .evo-mobile-premium-hero .emh-aura{
    width:290px!important;
    height:290px!important;
    filter:blur(48px)!important;
    opacity:.28!important;
  }

  #evoStableIntro .esi-glow{
    width:min(330px,82vw)!important;
    height:min(330px,82vw)!important;
    filter:blur(50px)!important;
    opacity:.24!important;
  }

  /* Backdrop blur is one of the most expensive effects on mobile GPUs.
     Keep it on the dock, simplify it elsewhere. */
  .emh-proof>div,
  .emh-badge,
  .service-detail,
  .contact-social-card,
  .hero-side-card{
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }

  .island-dock{
    backdrop-filter:blur(14px) saturate(125%)!important;
    -webkit-backdrop-filter:blur(14px) saturate(125%)!important;
  }

  .island-mobile{
    backdrop-filter:blur(14px)!important;
    -webkit-backdrop-filter:blur(14px)!important;
  }
}

/* Lower the frequency of decorative background motion. */
.evo-mobile-premium-hero,
.evo-film-hero,
.evo-footer,
.evo-helper-panel,
.evo-cookie-banner,
.find-thanks-shell{
  animation-duration:18s!important;
}

/* Marquees remain smooth but slightly slower = less constant GPU work. */
.evo-marquee-row-a .evo-marquee-track{
  animation-duration:30s!important;
}

.evo-marquee-row-b .evo-marquee-track{
  animation-duration:34s!important;
}

@media(max-width:767px){
  .evo-marquee-row-a .evo-marquee-track{
    animation-duration:24s!important;
  }

  .evo-marquee-row-b .evo-marquee-track{
    animation-duration:27s!important;
  }
}

/* Avoid transitions on every property. */
a,
button,
.service-item,
.island-links a{
  transition-property:transform,opacity,color,background-color,border-color,box-shadow!important;
}

/* Keep scroll interaction responsive. */
.island-shell,
.evo-helper,
.evo-marquee-two,
.evo-mobile-premium-hero{
  touch-action:manipulation;
}

/* Low-power/mobile safety mode: retain motion but remove the heaviest layers. */
@media(max-width:480px){
  .evo-mobile-premium-hero::before,
  #home.evo-film-hero::after{
    opacity:.18!important;
  }

  .evo-mobile-premium-hero .emh-aura-b{
    display:none!important;
  }

  #evoStableIntro .esi-glow-b{
    display:none!important;
  }
}

/* Respect user preference fully. */
@media(prefers-reduced-motion:reduce){
  html{
    scroll-behavior:auto!important;
  }

  *,
  *::before,
  *::after{
    animation-duration:.001ms!important;
    animation-iteration-count:1!important;
    transition-duration:.001ms!important;
  }
}


html.evo-touch-device .service-item:hover,
html.evo-touch-device .island-links a:hover,
html.evo-touch-device .contact-social-card:hover,
html.evo-touch-device .price-card:hover,
html.evo-touch-device .mp-card:hover{
  transform:none!important;
}
