:root {
    --internal-width: 1600px;
}

.internal-shell {
    width: min(
        calc(100% - 96px),
        var(--internal-width)
    );
    margin-inline: auto;
}


/* ==========================================================
   INTERNAL HERO
   ========================================================== */

.internal-hero {
    position: relative;
    overflow: hidden;
    padding: 160px 0 115px;

    background:
        radial-gradient(
            circle at 78% 15%,
            rgba(0, 126, 255, .12),
            transparent 31%
        ),
        radial-gradient(
            circle at 24% 90%,
            rgba(111, 63, 255, .07),
            transparent 29%
        ),
        #020812;
}

.internal-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background-image:
        radial-gradient(
            circle,
            rgba(70, 190, 255, .22) 0 1px,
            transparent 1.4px
        );

    background-size: 84px 84px;
    opacity: .3;
}

.internal-hero > * {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    margin-bottom: 74px;

    display: flex;
    align-items: center;
    gap: 12px;

    color: #7087a6;

    font-size: .76rem;
}

.breadcrumb a {
    transition: color .2s ease;
}

.breadcrumb a:hover {
    color: #fff;
}

.page-eyebrow {
    display: inline-block;

    color: #75dfff;

    font-size: .7rem;
    font-weight: 700;

    letter-spacing: .31em;
}

.internal-hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.22fr)
        minmax(340px, .78fr);

    gap: 100px;

    align-items: end;
}

.internal-hero h1 {
    max-width: 950px;

    margin:
        25px 0
        0;

    font-size:
        clamp(
            4.3rem,
            6.3vw,
            7.4rem
        );

    line-height: .93;

    letter-spacing: -.065em;
}

.internal-hero h1 span {
    display: block;

    color: transparent;

    background:
        linear-gradient(
            100deg,
            #22e6ff,
            #098aff 52%,
            #8c4fff
        );

    background-clip: text;
    -webkit-background-clip: text;
}

.internal-hero-copy {
    padding-bottom: 11px;
}

.internal-hero-copy p {
    max-width: 550px;

    margin:
        0 0
        30px;

    color: #adbbce;

    font-size: 1.05rem;
    line-height: 1.78;
}


/* ==========================================================
   SHARED HEADING
   ========================================================== */

.service-intro {
    padding:
        130px 0
        76px;
}

.section-heading-large {
    max-width: 930px;
}

.section-heading-large h2 {
    margin:
        21px 0
        21px;

    font-size:
        clamp(
            3rem,
            4.6vw,
            5.4rem
        );

    line-height: .99;

    letter-spacing: -.055em;
}

.section-heading-large h2 span {
    color: #6f819c;
}

.section-heading-large > p {
    max-width: 660px;

    color: #8fa0b8;

    font-size: 1rem;
    line-height: 1.75;
}


/* ==========================================================
   SERVICES
   ========================================================== */

.service-grid-section {
    padding:
        30px 0
        135px;
}

.service-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 22px;
}

.service-panel {
    position: relative;

    min-height: 500px;

    padding:
        48px 48px
        45px;

    border:
        1px solid
        rgba(70, 161, 255, .18);

    border-radius: 20px;

    background:
        radial-gradient(
            circle at 92% 10%,
            rgba(0, 140, 255, .11),
            transparent 31%
        ),
        linear-gradient(
            145deg,
            rgba(9, 26, 47, .89),
            rgba(3, 11, 23, .98)
        );

    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

.service-panel:hover {
    transform:
        translateY(-6px);

    border-color:
        rgba(50, 203, 255, .46);

    box-shadow:
        0 28px 70px
        rgba(0, 20, 55, .28);
}

.service-number {
    position: absolute;

    top: 31px;
    right: 34px;

    color: #405674;

    font-size: .76rem;

    letter-spacing: .18em;
}

.service-icon {
    margin-bottom: 42px;

    color: #23dbff;

    font-size: 2rem;

    text-shadow:
        0 0 25px
        rgba(0, 216, 255, .35);
}

.service-panel h2 {
    max-width: 520px;

    margin:
        0 0
        19px;

    font-size:
        2.2rem;

    letter-spacing: -.038em;
}

.service-panel > p {
    max-width: 570px;

    margin:
        0 0
        33px;

    color: #95a8c2;

    line-height: 1.7;
}

.service-panel ul {
    margin: 0;
    padding: 0;

    display: grid;
    gap: 13px;

    list-style: none;

    color: #c2cde0;
}

.service-panel li {
    position: relative;

    padding-left: 21px;

    font-size: .86rem;
}

.service-panel li::before {
    content: "";

    position: absolute;

    width: 6px;
    height: 6px;

    top: .5em;
    left: 0;

    border-radius: 50%;

    background: #26d7ff;

    box-shadow:
        0 0 10px
        rgba(38, 215, 255, .5);
}


/* ==========================================================
   PRODUCT ENGINEERING
   ========================================================== */

.product-engineering {
    padding:
        0 0
        150px;
}

.engineering-panel {
    padding:
        78px 78px;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 105px;

    align-items: center;

    border:
        1px solid
        rgba(73, 166, 255, .25);

    border-radius: 26px;

    background:
        radial-gradient(
            circle at 80% 25%,
            rgba(105, 57, 255, .18),
            transparent 34%
        ),
        radial-gradient(
            circle at 14% 90%,
            rgba(0, 153, 255, .17),
            transparent 36%
        ),
        #07172c;
}

.engineering-panel h2 {
    max-width: 670px;

    margin:
        22px 0
        0;

    font-size:
        clamp(
            2.8rem,
            4vw,
            4.8rem
        );

    line-height: 1;

    letter-spacing: -.055em;
}

.engineering-panel p {
    max-width: 570px;

    margin:
        0 0
        29px;

    color: #b2c0d4;

    line-height: 1.75;
}

.text-action {
    display: inline-flex;

    gap: 11px;

    color: #2bd5ff;

    font-weight: 700;
}


/* ==========================================================
   PROCESS
   ========================================================== */

.build-process {
    padding:
        0 0
        150px;
}

.process-track {
    margin-top: 55px;

    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    overflow: hidden;

    border:
        1px solid
        rgba(83, 153, 230, .19);

    border-radius: 18px;

    background:
        rgba(5, 15, 29, .65);
}

.process-track article {
    min-height: 255px;

    padding:
        31px 27px;

    display: flex;
    flex-direction: column;

    border-right:
        1px solid
        rgba(83, 153, 230, .15);
}

.process-track article:last-child {
    border-right: 0;
}

.process-track article > span {
    color: #49617f;

    font-size: .68rem;
}

.process-track strong {
    margin-top: auto;

    font-size: 1rem;
}

.process-track p {
    margin:
        12px 0
        0;

    color: #7f92ad;

    font-size: .77rem;
    line-height: 1.5;
}


/* ==========================================================
   FIT
   ========================================================== */

.service-fit {
    padding:
        0 0
        150px;
}

.fit-grid {
    display: grid;

    grid-template-columns:
        .95fr 1.05fr;

    gap: 100px;

    align-items: start;
}

.fit-heading h2 {
    margin:
        22px 0
        0;

    font-size:
        clamp(
            2.8rem,
            4.2vw,
            5rem
        );

    line-height: 1;

    letter-spacing: -.055em;
}

.fit-list {
    border-top:
        1px solid
        rgba(86, 151, 224, .18);
}

.fit-list article {
    min-height: 105px;

    padding:
        22px 0;

    display: grid;

    grid-template-columns:
        80px 1fr;

    align-items: center;

    border-bottom:
        1px solid
        rgba(86, 151, 224, .18);
}

.fit-list article > span {
    color: #2cd5ff;

    font-size: .7rem;

    letter-spacing: .15em;
}

.fit-list p {
    max-width: 580px;

    margin: 0;

    color: #bdc8d9;

    font-size: 1rem;
    line-height: 1.55;
}


/* ==========================================================
   INTERNAL CTA
   ========================================================== */

.internal-cta {
    padding:
        0 0
        150px;
}

.internal-cta-panel {
    padding:
        80px;

    display: grid;

    grid-template-columns:
        1.2fr .8fr;

    gap: 100px;

    border:
        1px solid
        rgba(68, 174, 255, .29);

    border-radius: 28px;

    background:
        radial-gradient(
            circle at 82% 30%,
            rgba(102, 50, 255, .31),
            transparent 35%
        ),
        radial-gradient(
            circle at 12% 90%,
            rgba(0, 163, 255, .2),
            transparent 36%
        ),
        #07162d;
}

.internal-cta-panel h2 {
    max-width: 760px;

    margin:
        22px 0
        0;

    font-size:
        clamp(
            3rem,
            4.5vw,
            5.2rem
        );

    line-height: .98;

    letter-spacing: -.055em;
}

.internal-cta-panel p {
    margin:
        0 0
        29px;

    color: #bac7da;

    line-height: 1.75;
}


/* ==========================================================
   PLACEHOLDER PAGES
   ========================================================== */

.compact-internal-hero {
    min-height: 760px;
}

.coming-page {
    max-width: 1050px;
}

.coming-page h1 {
    max-width: 1050px;

    margin:
        24px 0
        28px;

    font-size:
        clamp(
            4rem,
            6vw,
            7rem
        );
}

.coming-page p {
    max-width: 670px;

    margin:
        0 0
        30px;

    color: #aebdd1;

    font-size: 1.06rem;
    line-height: 1.75;
}

.coming-detail {
    padding:
        110px 0
        150px;
}

.coming-detail-card {
    max-width: 760px;

    padding: 40px;

    border:
        1px solid
        rgba(72, 161, 236, .18);

    border-radius: 17px;

    background:
        rgba(7, 18, 34, .7);
}

.coming-detail-card > span {
    color: #24d7ff;

    font-size: .65rem;

    letter-spacing: .2em;
}

.coming-detail-card p {
    margin:
        15px 0
        0;

    color: #94a5bd;

    line-height: 1.7;
}


/* ==========================================================
   CONTACT
   ========================================================== */

.contact-options {
    padding:
        120px 0
        150px;
}

.contact-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.contact-grid article {
    min-height: 390px;

    padding: 40px;

    display: flex;
    flex-direction: column;

    border:
        1px solid
        rgba(69, 161, 239, .2);

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #091b31,
            #04101f
        );
}

.contact-number {
    color: #3ad9ff;

    font-size: .67rem;

    letter-spacing: .18em;
}

.contact-grid h2 {
    margin:
        43px 0
        16px;

    font-size: 2rem;
}

.contact-grid p {
    max-width: 380px;

    margin: 0;

    color: #95a7c0;

    line-height: 1.68;
}

.contact-grid a {
    margin-top: auto;

    color: #2bd4ff;

    font-weight: 700;
}

.contact-email {
    margin-top: 70px;

    padding:
        41px 0;

    border-top:
        1px solid
        rgba(82, 147, 218, .17);

    border-bottom:
        1px solid
        rgba(82, 147, 218, .17);
}

.contact-email span {
    display: block;

    margin-bottom: 11px;

    color: #67809f;

    font-size: .62rem;

    letter-spacing: .22em;
}

.contact-email a {
    font-size:
        clamp(
            1.6rem,
            3vw,
            3.2rem
        );

    letter-spacing: -.035em;
}


/* ==========================================================
   ERRORS
   ========================================================== */

.error-page {
    min-height: 780px;

    padding:
        190px 0
        120px;

    display: flex;

    align-items: center;
}

.error-code {
    display: block;

    color: #26d5ff;

    font-size: .8rem;

    letter-spacing: .3em;
}

.error-page h1 {
    max-width: 800px;

    margin:
        20px 0
        20px;

    font-size:
        clamp(
            3.2rem,
            6vw,
            6.5rem
        );

    line-height: .95;

    letter-spacing: -.06em;
}

.error-page p {
    margin:
        0 0
        30px;

    color: #93a4bc;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1180px) {

    .internal-shell {
        width:
            min(
                calc(100% - 50px),
                var(--internal-width)
            );
    }

    .internal-hero-grid,
    .engineering-panel,
    .fit-grid,
    .internal-cta-panel {
        grid-template-columns: 1fr;

        gap: 45px;
    }

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

    .process-track {
        grid-template-columns:
            repeat(4, 1fr);
    }

    .process-track article:nth-child(4) {
        border-right: 0;
    }

    .process-track article:nth-child(-n+4) {
        border-bottom:
            1px solid
            rgba(83, 153, 230, .15);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 760px) {

    .internal-shell {
        width:
            calc(100% - 34px);
    }

    .internal-hero {
        padding:
            120px 0
            78px;
    }

    .breadcrumb {
        margin-bottom: 45px;
    }

    .internal-hero h1 {
        font-size:
            clamp(
                3.1rem,
                15vw,
                4.8rem
            );
    }

    .service-intro {
        padding:
            85px 0
            45px;
    }

    .service-grid-section {
        padding-bottom: 90px;
    }

    .service-panel {
        min-height: auto;

        padding:
            32px 28px
            35px;
    }

    .service-panel h2 {
        font-size: 1.8rem;
    }

    .engineering-panel,
    .internal-cta-panel {
        padding:
            42px 28px;
    }

    .product-engineering,
    .build-process,
    .service-fit,
    .internal-cta {
        padding-bottom: 95px;
    }

    .process-track {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .process-track article {
        min-height: 195px;

        border-bottom:
            1px solid
            rgba(83, 153, 230, .15);
    }

    .process-track article:nth-child(even) {
        border-right: 0;
    }

    .fit-list article {
        grid-template-columns:
            50px 1fr;
    }

    .contact-options {
        padding:
            85px 0
            100px;
    }

    .contact-grid article {
        min-height: 320px;

        padding: 30px;
    }

}


/* ==========================================================
   STAGE 4B.1 — INTERNAL PAGE READABILITY
   ========================================================== */

.internal-hero-copy p {
    font-size: 1.12rem;
    line-height: 1.78;
}

.service-panel > p {
    font-size: .98rem;
}

.service-panel li {
    font-size: .94rem;
    line-height: 1.5;
}


/*
 * Replace the overly narrow seven-column process
 * with four readable cards followed by three.
 */

.process-track {
    grid-template-columns:
        repeat(12, 1fr);

    gap: 14px;

    overflow: visible;

    border: 0;

    background: transparent;
}

.process-track article,
.process-track article:nth-child(4),
.process-track article:nth-child(-n+4) {
    grid-column: span 3;

    min-height: 220px;

    padding: 30px 27px;

    border:
        1px solid
        rgba(83, 153, 230, .18);

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(8, 23, 43, .82),
            rgba(4, 13, 27, .96)
        );
}

.process-track article:nth-child(n+5) {
    grid-column: span 4;
}

.process-track strong {
    font-size: 1.02rem;
}

.process-track p {
    font-size: .84rem;
    line-height: 1.55;
}

.fit-list p {
    font-size: 1.05rem;
}

.engineering-panel p,
.internal-cta-panel p {
    font-size: 1.02rem;
}

@media (max-width: 1180px) {

    .process-track {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .process-track article,
    .process-track article:nth-child(n+5) {
        grid-column: auto;
    }

}

@media (max-width: 620px) {

    .process-track {
        grid-template-columns: 1fr;
    }

}

/* Stage 4E-8 QA: preserve layout while wrapping narrow-screen content. */
.footer-socials > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
}

.main-nav a[aria-current="page"] {
    color: #fff;
}

@media (min-width: 701px) and (max-width: 940px) {
    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 22px;
    }
}

@media (max-width: 480px) {
    main :is(h1, h2, h3, h4) {
        overflow-wrap: anywhere;
        min-width: 0;
    }
}

/* The unenhanced form is a complete, single-page form. */
.contact-spatial-page:not(.build-room-js) :is([data-build-next], [data-build-back], .build-review, .build-room-counter, .build-room-progress) {
    display: none;
}

@media (max-width: 480px) {
    main .button {
        white-space: normal;
        text-align: center;
    }

    .contact-email-link {
        overflow-wrap: anywhere;
    }
}

/* Keep the intrinsic wordmark ratio when HTML reserves its dimensions. */
.footer-brand img {
    height: auto;
}

/* Stage 4O: keep desktop display text inside its reading column.
   Page-level overflow checks alone miss clipped background-clip text. */
@media (min-width: 1201px) {
    .company-entry-copy h1,
    .services-entry-copy h1,
    .insights-entry-copy h1,
    .labs-detail-entry-copy h1 {
        font-size: clamp(5rem, 5.6vw, 6.5rem);
    }

    .labs-project-intro h2 {
        font-size: clamp(4rem, 4.8vw, 5.3rem);
    }

    .labs-architecture-copy h2 {
        font-size: clamp(3.5rem, 4.4vw, 4.8rem);
    }
}

/* Operational labels and section numbers must remain legible on dark surfaces. */
:root { --public-readable-muted: #9aafc6; }
main :is(.services-system-readout, .work-readout, .company-identity-readout,
         .insights-index-readout, .contact-room-readout, .labs-scene-readout) > span,
main :is(.services-system-readout, .work-readout, .company-identity-readout,
         .insights-index-readout, .contact-room-readout, .labs-scene-readout) dt,
main :is(.services-layer-number, .work-chapter-index, .company-section-index,
         .company-route-id, .insights-topic-index, .labs-protocol-index,
         .labs-architecture-index),
main .services-build-flow span,
main .product-hero-status span,
main .live-logistics-topbar span,
main .live-dashboard-header span,
main .company-principle-list > article > span,
main .company-capability-grid span,
main .company-corporate-data dt,
main .labs-project-data dt,
main .labs-principles-sequence span,
main .company-origin-line span,
main .insights-signal-stream span,
main .build-route-explainer span,
main .labs-project-overline span,
main .labs-project-overline span:last-child,
main .labs-project-coordinate :is(span, small),
main .immersive-product-bottom > div > span,
main .product-feature-wall article > span,
main .blueprint-node > span,
main .option-top > strong,
main .product-release-track article > span {
    color: var(--public-readable-muted);
}
