/*
 * HOMEPAGE INTEGRATION 01
 * Only cross-module corrections live here. Approved module styles remain in
 * their own copied stylesheets and the MAIN V5.3 stylesheet stays untouched.
 */

#intro,
#pillars,
#philosophy,
#evidence {
    scroll-margin-top: 78px;
}

/* The Evidence study also defines a generic section-intro class. Restore the
   selected pillar module's exact left-aligned introduction after all imports. */
#pillars .section-intro {
    max-width: 920px;
    margin: 0 0 clamp(44px, 6vw, 72px);
    text-align: left;
}

#pillars .section-intro p {
    margin-left: 0;
}

/* Keep the selected wall visually attached to the retained manifesto while
   still separating both sections with the established production border. */
#evidence {
    margin: 0;
    border-top: 0;
}

#evidence .wall-card {
    isolation: isolate;
}

@media (max-width: 700px) {
    #intro,
    #pillars,
    #philosophy,
    #evidence {
        scroll-margin-top: 64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    body.js-enabled .reveal,
    body.js-enabled .reveal.active {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Keep the existing navigation legible at the narrowest mobile width. */
@media (max-width: 359px) {
    nav { padding-inline: 12px; }
    .nav-brand { gap: 8px; max-width: none; }
    .nav-logo-icon { width: 24px; height: 24px; margin-right: 0; }
    .nav-logo-text { font-size: 1.05rem; letter-spacing: .05em; }
    .nav-cluster { gap: 10px; }
    .lang-opt { padding-inline: 7px; }
}
