/* ==========================================================
   P029M3 SCROLL PAINT STABILITY
   Remove newly introduced compositor-heavy filters only.
   ========================================================== */


/* Never expose browser white canvas during repaint */
html,
body {
    background-color: #071d2a !important;
}


/* ----------------------------------------------------------
   HEADER LOGO
   Remove GPU filter introduced in P029N3.
   Visual asset itself remains unchanged.
   ---------------------------------------------------------- */

.ph-brand-logo {
    filter: none !important;
}


/* ----------------------------------------------------------
   FOOTER LOGO
   Same rule: no filter-generated compositor layer.
   ---------------------------------------------------------- */

.pf-logo img {
    filter: none !important;
}


/* ----------------------------------------------------------
   FOOTER PAINT CONTAINMENT
   ---------------------------------------------------------- */

.pf-footer {
    contain: paint;

    isolation: isolate;

    overflow: hidden;
}


/* ----------------------------------------------------------
   REPLACE BLUR(70px) WITH GRADIENT-BASED LIGHT
   No CSS filter / no large blur layer.
   ---------------------------------------------------------- */

.pf-footer-light {
    filter: none !important;

    transform: none !important;

    will-change: auto !important;

    opacity: 1;
}


.pf-footer-light-a {
    background:
        radial-gradient(
            circle at center,
            rgba(60,210,221,.12) 0%,
            rgba(60,210,221,.075) 30%,
            rgba(60,210,221,.025) 52%,
            transparent 72%
        ) !important;
}


.pf-footer-light-b {
    background:
        radial-gradient(
            circle at center,
            rgba(104,65,164,.14) 0%,
            rgba(104,65,164,.075) 32%,
            rgba(104,65,164,.025) 54%,
            transparent 74%
        ) !important;
}


/* ----------------------------------------------------------
   Prevent accidental expensive effects in new footer layer
   ---------------------------------------------------------- */

.pf-footer,
.pf-footer *,
.pf-footer *::before,
.pf-footer *::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}


/* Preserve ordinary hover transitions;
   do not force permanent GPU layers. */

.pf-footer a {
    will-change: auto !important;
}


/* ----------------------------------------------------------
   Reduced motion
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .pf-footer *,
    .pf-footer *::before,
    .pf-footer *::after {
        transition: none !important;
        animation: none !important;
    }
}


/* END P029M3 SCROLL PAINT STABILITY */

/* ==========================================================
   P029M6 PROCESS BLUR REMOVAL
   Remove final active wide-area blur from Section 06.
   ========================================================== */

.ph-process-rail::after {
    filter: none !important;

    height: 3px !important;

    opacity: .17 !important;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            var(--ph-gold) 10%,
            var(--ph-cyan) 48%,
            var(--ph-violet) 88%,
            transparent 100%
        ) !important;
}

/* END P029M6 PROCESS BLUR REMOVAL */

/* ==========================================================
   P029M15 HERITAGE PAINT ISOLATION
   Diagnostic: remove large decorative Heritage paint layers.
   ========================================================== */

.ph-heritage-engine::before,
.ph-heritage-engine::after {
    display: none !important;
}

/* Keep core 24-year content visible */
.ph-heritage-engine {
    isolation: auto !important;
}

/* END P029M15 HERITAGE PAINT ISOLATION */

/* ==========================================================
   P029M17 HISTORY SOCIAL GAP FIX
   Reduce excessive empty seam between Heritage and Social Proof.
   ========================================================== */

.ph-history {
    padding-block-start:
        clamp(95px, 10vw, 145px) !important;

    padding-block-end:
        clamp(36px, 4vw, 58px) !important;
}

.phc-proof {
    padding-top:
        clamp(38px, 4vw, 58px) !important;

    padding-bottom:
        clamp(84px, 9vw, 136px) !important;
}

/* END P029M17 HISTORY SOCIAL GAP FIX */

/* ==========================================================
   P029M18 HOME SECTION RHYTHM
   Controlled reduction of excessive vertical empty space.
   Footer excluded.
   ========================================================== */

/* Heritage -> Social Proof already visually approved */
.ph-history {
    padding-block-end:
        clamp(36px,4vw,58px) !important;
}

.phc-proof {
    padding-block-start:
        clamp(38px,4vw,58px) !important;

    padding-block-end:
        clamp(58px,6vw,88px) !important;
}


/* Services architecture */
.ph-architecture {
    padding-block-start:
        clamp(58px,6vw,88px) !important;

    padding-block-end:
        clamp(58px,6vw,88px) !important;
}


/* Ownership */
.ph-ownership {
    padding-block-start:
        clamp(58px,6vw,88px) !important;

    padding-block-end:
        clamp(58px,6vw,88px) !important;
}


/* Process */
.ph-process {
    padding-block-start:
        clamp(58px,6vw,88px) !important;

    padding-block-end:
        clamp(58px,6vw,88px) !important;
}


/* Project Gateway */
.ph-gateway {
    padding-block-start:
        clamp(58px,6vw,88px) !important;

    padding-block-end:
        clamp(58px,6vw,88px) !important;
}


/* Portfolio - currently before Footer */
#works {
    padding-block-start:
        clamp(58px,6vw,88px) !important;

    padding-block-end:
        clamp(58px,6vw,88px) !important;
}


/* Mobile: keep breathing room without large blank fields */
@media (max-width:720px) {

    .ph-history,
    .phc-proof,
    .ph-architecture,
    .ph-ownership,
    .ph-process,
    .ph-gateway,
    #works {
        padding-block-start:
            clamp(46px,9vw,64px) !important;

        padding-block-end:
            clamp(46px,9vw,64px) !important;
    }
}

/* END P029M18 HOME SECTION RHYTHM */
