/* Site-wide light ambient background — GPU-friendly (no full-screen blur filter) */

html {
    background-color: #121212;
}

#mophyz-global-ambient {
    display: none;
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-color: #121212;
    background-image:
        radial-gradient(ellipse 80% 50% at 20% 10%, rgba(255, 236, 210, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 70% 45% at 85% 25%, rgba(255, 248, 235, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 90% 60% at 50% 100%, rgba(245, 158, 11, 0.06) 0%, transparent 45%),
        linear-gradient(180deg, #161412 0%, #121212 55%, #0f0f0f 100%);
}

#mophyz-global-ambient::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(18, 18, 18, 0.12) 50%,
        rgba(18, 18, 18, 0.28) 100%
    );
}

html.mophyz-ambient-active {
    background-color: transparent !important;
}

html.mophyz-ambient-active #mophyz-global-ambient {
    display: block;
}

html.mophyz-ambient-active body {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    background-color: transparent !important;
    background-image: none !important;
}

html.mophyz-ambient-active.mophyz-ambient-home body::before {
    content: none !important;
    display: none !important;
}

html.mophyz-ambient-active.mophyz-ambient-home #mophyz-global-ambient {
    background-image:
        radial-gradient(ellipse 85% 55% at 15% 8%, rgba(255, 240, 215, 0.2) 0%, transparent 58%),
        radial-gradient(ellipse 75% 50% at 88% 20%, rgba(255, 250, 240, 0.14) 0%, transparent 52%),
        radial-gradient(ellipse 95% 65% at 50% 100%, rgba(245, 158, 11, 0.08) 0%, transparent 48%),
        linear-gradient(180deg, #1a1714 0%, #121212 50%, #101010 100%);
}

html.mophyz-ambient-active.mophyz-ambient-home .modern-hero {
    background: transparent !important;
}

html.mophyz-ambient-active.mophyz-ambient-home header .top-header,
html.mophyz-ambient-active.mophyz-ambient-home header .main-header {
    background-color: rgba(30, 30, 30, 0.72) !important;
}

html.mophyz-ambient-active section:not(.mophyz-has-bg-image).bg-dark:not([class*="bg-opacity"]),
html.mophyz-ambient-active footer:not(.mophyz-has-bg-image).bg-dark-gray:not([class*="bg-opacity"]) {
    background-color: rgba(18, 18, 18, 0.72) !important;
}

html.mophyz-ambient-active section:not(.mophyz-has-bg-image).bg-dark-gray:not([class*="bg-opacity"]) {
    background-color: rgba(30, 30, 30, 0.72) !important;
}

html.mophyz-ambient-active.mophyz-ambient-home section:not(.mophyz-has-bg-image).bg-dark:not([class*="bg-opacity"]),
html.mophyz-ambient-active.mophyz-ambient-home footer:not(.mophyz-has-bg-image).bg-dark-gray:not([class*="bg-opacity"]) {
    background-color: rgba(18, 18, 18, 0.55) !important;
}

html.mophyz-ambient-active.mophyz-ambient-home section:not(.mophyz-has-bg-image).bg-dark-gray:not([class*="bg-opacity"]) {
    background-color: rgba(30, 30, 30, 0.55) !important;
}
