/* Defensive layout rules for the public site shell. */
html,
body {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

body {
    background: #f4f9fc;
}

main {
    background: #f4f9fc;
}

main > .section:not(.dark-band) {
    background: linear-gradient(180deg, #f8fcff 0%, #eef7fb 100%);
}

.page-hero:not(.detail-hero) {
    background:
        radial-gradient(circle at 18% 18%, rgba(6, 182, 212, .2), transparent 30%),
        radial-gradient(circle at 84% 20%, rgba(124, 58, 237, .22), transparent 34%),
        linear-gradient(135deg, #07111f 0%, #0b1220 58%, #1e1640 100%);
    color: #fff;
}

.page-hero:not(.detail-hero) p {
    color: #d7e3ef;
}

.page-hero:not(.detail-hero) h1 {
    color: #fff;
}

.detail-hero .btn-outline,
.page-hero:not(.detail-hero) .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, .42);
    background: rgba(255, 255, 255, .08);
}

.detail-hero .btn-outline:hover,
.page-hero:not(.detail-hero) .btn-outline:hover {
    color: #07111f;
    border-color: #fff;
    background: #fff;
}

main > .section.soft,
.soft {
    background: #eef7fb;
}

.feature-band:not(.soft),
.services-ecosystem,
.platforms,
.process-section,
.contact-section {
    background: #f7fbff;
}

.case-card,
.insight-card,
.cards-4 article,
.cards-list article,
.mission-panel,
.service-panel,
.aside-card,
.form-card,
.contact-panel,
.admin-panel,
.inline-cta,
.service-node,
.process-step,
details,
.map-placeholder {
    background-color: #fff;
}

.site-header,
main,
.site-footer,
main > section {
    width: 100%;
    max-width: none;
}

.container {
    width: min(1180px, calc(100% - 40px));
    max-width: 1180px;
    margin-inline: auto;
}

.hero,
.dark-band,
.feature-band,
.final-cta,
.page-hero,
.site-footer {
    margin-inline: 0;
}

.hero-visual img,
.feature-grid img,
.detail-hero img {
    display: block;
    max-width: 100%;
    height: auto;
}

.site-footer .footer-logo {
    display: block;
    width: min(390px, 100%);
    height: auto;
    max-height: 120px;
    object-fit: contain;
    object-position: left center;
    background: transparent;
    border-radius: 0;
    padding: 0;
    filter: none !important;
    margin-bottom: 1.1rem;
}

.aso-navbar .container {
    gap: 1rem;
}

.aso-brand {
    flex: 0 0 auto;
}

.aso-brand img {
    display: block;
    width: min(250px, 36vw);
    height: auto;
    max-height: 70px;
    object-fit: contain;
}

.aso-navbar {
    padding-block: 1rem;
}

.navbar-collapse {
    min-width: 0;
}

.aso-navbar .navbar-nav {
    min-width: 0;
    flex-wrap: wrap;
}

.aso-navbar .nav-link {
    white-space: nowrap;
}

.nav-cta {
    flex: 0 0 auto;
    align-items: center;
}

.nav-cta .btn {
    white-space: nowrap;
}

@media (max-width: 991px) {
    .aso-navbar .navbar-nav {
        flex-wrap: nowrap;
    }

    .nav-cta {
        margin-left: 0;
    }
}

/* Homepage compact layout. */
.hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
    min-height: 600px;
    padding-block: 4.75rem 4rem;
}

.hero-copy .eyebrow {
    font-size: .68rem;
    line-height: 1.35;
    max-width: none;
    white-space: nowrap;
}

.hero-copy h1 {
    max-width: 980px;
    font-size: clamp(2.35rem, 3.55vw, 3.85rem);
}

.hero-copy p {
    max-width: 720px;
}

.hero-visual img {
    max-height: 430px;
    margin-inline: auto;
}

.services-ecosystem {
    padding-block: 4.5rem;
}

.services-ecosystem .section-head {
    max-width: 980px;
    margin-bottom: 2rem;
}

.services-ecosystem .section-head h2 {
    font-size: clamp(2rem, 3.2vw, 3.05rem);
}

.service-map {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.service-map::before,
.service-core {
    display: none;
}

.service-node {
    min-height: 0;
    padding: 1rem;
}

.service-node img {
    height: 78px;
    margin-bottom: .55rem;
}

.service-node h3 {
    margin-bottom: .55rem;
}

.service-node p {
    margin-bottom: .85rem;
}

@media (max-width: 1100px) {
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-visual {
        max-width: 640px;
    }

    .service-map {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hero-copy .eyebrow {
        white-space: normal;
    }
}

@media (max-width: 760px) {
    .service-map {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .hero-grid {
        padding-block: 3.5rem;
    }

    .service-map {
        grid-template-columns: 1fr;
    }
}

/* Case studies page compact SEO layout. */
.case-studies-hero {
    padding-block: 4rem 2.75rem;
}

.case-studies-hero .container {
    max-width: 1040px;
}

.case-studies-hero h1 {
    max-width: 980px;
    font-size: clamp(2.1rem, 3.35vw, 3.35rem);
}

.case-studies-hero p {
    max-width: 860px;
}

.case-studies-list {
    padding-block: 3.25rem 4rem;
    background: #f7fbff;
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.case-study-summary {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.15rem;
}

.case-study-summary h2 {
    font-size: 1.22rem;
    line-height: 1.18;
    margin-bottom: .75rem;
}

.case-study-summary p {
    font-size: .95rem;
    margin-bottom: .9rem;
}

.case-study-summary .btn {
    margin-top: auto;
}

.compact-tags {
    gap: .45rem;
    margin-bottom: 1rem;
}

.compact-tags span {
    padding: .38rem .55rem;
    font-size: .76rem;
}

.case-studies-cta {
    padding-block: 3rem;
}

.case-studies-cta h2 {
    font-size: clamp(1.8rem, 2.6vw, 2.45rem);
}

@media (max-width: 1100px) {
    .case-study-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .case-studies-hero {
        padding-block: 3rem 2rem;
    }

    .case-study-grid {
        grid-template-columns: 1fr;
    }
}
