/* Global performance — GPU hints, lite mode, reduced motion */

.p4p-home-canvas canvas,
.p4p-page-mesh {
    will-change: transform, opacity;
}

.p4p-home-canvas canvas {
    contain: none;
}

html.p4p-perf-lite .p4p-optical-flares,
html.p4p-perf-lite .p4p-universe-bg__orb {
    opacity: 0.2 !important;
}

html.p4p-perf-lite .p4p-global-shader__grain {
    opacity: 0.06 !important;
}

html.p4p-reduced-motion *,
html.p4p-reduced-motion *::before,
html.p4p-reduced-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

body.p4p-home .p4p-lang-switcher {
    z-index: 10001;
}

html.p4p-perf-lite .p4p-home-canvas .p4p-mesh {
    filter: brightness(1.2) contrast(1.05) saturate(1.08);
}

html.p4p-perf-lite .p4p-cursor__orbit,
html.p4p-perf-lite .p4p-cursor__ring-2 {
    opacity: 0.35;
}

.p4p-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 100vh;
}

body.p4p-home .p4p-home-main .p4p-section,
body.p4p-home .p4p-section {
    content-visibility: visible;
    contain: none;
    contain-intrinsic-size: auto;
}

@media (max-width: 768px) {
    .p4p-section {
        content-visibility: visible;
        contain-intrinsic-size: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .p4p-home-canvas .p4p-mesh,
    .p4p-home-canvas .p4p-atmospheric__sky {
        display: none !important;
    }
}

html.p4p-perf-lite .web-orbit-ring,
html.p4p-perf-lite .web-orbit-ring-1,
html.p4p-perf-lite .web-orbit-ring-2 {
    animation-play-state: paused !important;
}

html.p4p-perf-lite .p4p-dental-compare__wrap,
html.p4p-perf-lite .p4p-contact-trust__item,
html.p4p-perf-lite .p4p-web-network-card,
html.p4p-perf-lite .p4p-blog-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

html.p4p-perf-lite .p4p-page-mesh {
    opacity: 0.85;
}
