/**
 * Performance CSS — smooth scroll, no freeze overlays on mobile.
 * Load after brand-bridge. Cache: ?v=20260908perf
 */

html.eh-perf,
html.eh-perf body {
  scroll-behavior: auto !important;
}

/* Always: don't let cinematic overlays trap interaction */
.electric-route,
.electric-intro {
  pointer-events: none !important;
}
body.cinematic-lock {
  overflow: auto !important;
}

html.eh-perf .electric-route,
html.eh-perf .electric-intro,
html.eh-perf .home-hero-aura,
html.eh-perf .home-speed-lines,
html.eh-perf .natural-lightning,
html.eh-perf .electric-route-cloud {
  display: none !important;
  animation: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html.eh-perf .home-core-rings i,
html.eh-perf .core-rings i,
html.eh-perf .integration-marquee,
html.eh-perf .security-glass-orbit {
  animation: none !important;
}

html.eh-perf .capability-glass,
html.eh-perf .workspace-card,
html.eh-perf .why-card,
html.eh-perf .deep-glass-layer,
html.eh-perf .site-header {
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

html.eh-perf-save .electric-route,
html.eh-perf-save .electric-intro,
html.eh-perf-save .home-hero-aura,
html.eh-perf-save .home-speed-lines,
html.eh-perf-save .natural-lightning,
html.eh-perf-save .electric-route-cloud {
  display: none !important;
  animation: none !important;
  visibility: hidden !important;
}

html.eh-perf-save * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.12s !important;
  scroll-behavior: auto !important;
}

/* Keep essential button hover feedback */
html.eh-perf-save .button-primary,
html.eh-perf-save .button-secondary,
html.eh-perf-save .site-dashboard,
html.eh-perf-save .eh-corp-footer__cta,
html.eh-perf-save .site-nav__cta {
  transition-duration: 0.15s !important;
}

html.eh-perf-save .capability-glass,
html.eh-perf-save .workspace-card,
html.eh-perf-save .why-card,
html.eh-perf-save .deep-glass-layer,
html.eh-perf-save .site-header,
html.eh-perf-save .eh-modal-panel {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  will-change: auto !important;
  filter: none !important;
}

html.eh-perf-save body.crystal-site::before,
html.eh-perf-save body.crystal-site::after {
  display: none !important;
  content: none !important;
}

/* Below-fold paint containment */
.eh-corp-footer,
.site-footer,
.home-ai,
.home-industries,
.home-security,
.deep-dive-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}

@media (max-width: 900px) {
  .electric-route,
  .electric-intro,
  .home-hero-aura,
  .home-speed-lines {
    display: none !important;
  }

  body.crystal-site::before,
  body.crystal-site::after {
    display: none !important;
  }

  .site-header,
  .capability-glass,
  .workspace-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Reduce layout thrash */
  .home-core-rings i,
  .core-rings i {
    animation: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
