/* VNTech homepage runtime hardening and final visual cleanup.
 * Keep public content readable when viewport-observer animations are not advanced
 * by capture tools, keep the closed off-canvas drawer out of page captures, and
 * neutralize legacy decorative layers that conflict with the technical-studio UI.
 */

html.js.t5-motion body.vntech-theme5 [data-t5-reveal]:not(.is-visible) {
    opacity: 1;
}

body.vntech-theme5 .mobile-drawer[aria-hidden="true"] {
    display: none;
}

body.vntech-theme5 .mobile-drawer.is-open[aria-hidden="false"] {
    display: flex;
}

/* Services: remove the old card-kit ornaments and keep the capability row editorial. */
body.vntech-theme5 .t5-owner--services .t5-service-card::after,
body.vntech-theme5 .t5-owner--services .t5-service-card::before {
    content: none;
    display: none;
}

body.vntech-theme5 .t5-owner--services .t5-service-card__icon {
    width: auto;
    height: auto;
    margin-bottom: 18px;
    place-items: initial;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #1768e8;
    font-size: 10px;
    letter-spacing: .12em;
}

/* Projects: screenshots are the proof. The legacy status chip was expanding over
 * the media in the composed homepage and obscuring the real project image. */
body.vntech-theme5 .t5-owner--projects .t5-project-card::before,
body.vntech-theme5 .t5-owner--projects .t5-project-card__number {
    content: none;
    display: none;
}

body.vntech-theme5 .t5-owner--projects .t5-project-card__media {
    background: #e9eef5;
}

body.vntech-theme5 .t5-owner--projects .t5-project-card__media > img,
body.vntech-theme5 .t5-owner--projects .t5-project-card__media picture,
body.vntech-theme5 .t5-owner--projects .t5-project-card__media picture img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 1;
    object-fit: cover;
    object-position: top center;
}

body.vntech-theme5 .t5-owner--projects .t5-project-card__fallback {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #e9eef5;
    color: #52647e;
    font-size: 18px;
    font-weight: 800;
}

/* Keep untranslated technical meta out of the English card/spotlight until the
 * project CPT translation owns a reviewed English value. */
html[lang^="en"] body.vntech-theme5 .t5-project-card__stack,
html[lang^="en"] body.vntech-theme5 .t5-project-spotlight__technology {
    display: none;
}

/* Why VNTech: preserve 01–04 as editorial markers, remove the old semicircle UI motif. */
body.vntech-theme5 .t5-owner--why .t5-why__grid article::after,
body.vntech-theme5 .t5-owner--why .t5-why__grid article::before {
    content: none;
    display: none;
}

body.vntech-theme5 .t5-owner--why .t5-why__grid article > span {
    width: auto;
    height: auto;
    margin-bottom: 14px;
    place-items: initial;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #1768e8;
    font-size: 10px;
    letter-spacing: .12em;
}

/* VNTech AI: present a simple controlled flow instead of faux form fields. */
body.vntech-theme5 .t5-owner--ai-product .t5-ai-product__visual {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.vntech-theme5 .t5-owner--ai-product .t5-ai-panel {
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.vntech-theme5 .t5-owner--ai-product .t5-ai-panel__header {
    margin-bottom: 10px;
    padding: 0 0 14px;
    border-bottom: 1px solid #cfdceb;
}

body.vntech-theme5 .t5-owner--ai-product .t5-ai-panel__header strong {
    color: #0a1c35;
    font-size: 15px;
}

body.vntech-theme5 .t5-owner--ai-product .t5-ai-panel__header span {
    color: #73839a;
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

body.vntech-theme5 .t5-owner--ai-product .t5-ai-thread {
    display: grid;
    gap: 0;
}

body.vntech-theme5 .t5-owner--ai-product .t5-ai-message,
body.vntech-theme5 .t5-owner--ai-product .t5-ai-message--assistant {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin: 0;
    padding: 15px 0;
    border: 0;
    border-bottom: 1px solid #dce6f2;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.vntech-theme5 .t5-owner--ai-product .t5-ai-message > span {
    display: inline-block;
    padding-top: 2px;
    color: #1768e8;
    font: 800 9px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .12em;
}

body.vntech-theme5 .t5-owner--ai-product .t5-ai-message p {
    margin: 0;
    color: #20344f;
    font-size: 12.75px;
    line-height: 1.5;
}

body.vntech-theme5 .t5-owner--ai-product .t5-ai-context {
    margin-top: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6d7e95;
    font-size: 10.5px;
    letter-spacing: .04em;
}

body.vntech-theme5 .t5-owner--ai-product .t5-ai-route,
body.vntech-theme5 .t5-owner--ai-product .t5-ai-handoff {
    display: none;
}

/* Readability pass: keep the compact composition, but avoid sub-12px body copy
 * on the proof-led homepage. */
body.vntech-theme5 .t5-owner--hero .t5-hero__proof-label {
    font-size: 9.5px;
    line-height: 1.55;
}

body.vntech-theme5 .t5-owner--hero .t5-hero__proof-list strong {
    font-size: 14.5px;
    line-height: 1.3;
}

body.vntech-theme5 .t5-owner--hero .t5-hero__proof-list small {
    font-size: 12.25px;
    line-height: 1.48;
}

body.vntech-theme5 .t5-owner--trust .t5-trust__group--static strong {
    font-size: 12.25px;
    line-height: 1.3;
}

body.vntech-theme5 .t5-owner--trust .t5-trust__group--static small {
    font-size: 10.75px;
    line-height: 1.42;
}

body.vntech-theme5 :is(.t5-owner--services, .t5-owner--projects, .t5-owner--why, .t5-owner--ai-product) .t5-section-head > p:not(.t5-eyebrow),
body.vntech-theme5 .t5-owner--why .t5-why__intro {
    font-size: 14.5px;
    line-height: 1.58;
}

body.vntech-theme5 .t5-owner--services .t5-service-card h3 {
    font-size: 19px;
}

body.vntech-theme5 .t5-owner--services .t5-service-card p {
    font-size: 13.75px;
    line-height: 1.55;
}

body.vntech-theme5 .t5-owner--services .t5-service-card > a {
    font-size: 12.25px;
}

body.vntech-theme5 .t5-owner--projects .t5-project-card__body h3,
body.vntech-theme5 .t5-owner--projects .t5-project-card h3 {
    font-size: 18.5px;
}

body.vntech-theme5 .t5-owner--projects .t5-project-card__body > p {
    font-size: 12.75px;
    line-height: 1.5;
}

body.vntech-theme5 .t5-owner--projects .t5-project-card__stack {
    font-size: 10.25px;
    line-height: 1.4;
}

body.vntech-theme5 .t5-owner--projects .t5-project-card__trigger {
    font-size: 11.5px;
}

body.vntech-theme5 .t5-owner--why .t5-why__grid h3 {
    font-size: 15px;
    line-height: 1.28;
}

body.vntech-theme5 .t5-owner--why .t5-why__grid p {
    font-size: 12.75px;
    line-height: 1.5;
}

body.vntech-theme5 .t5-owner--ai-product .t5-ai-product__copy > p:not(.t5-eyebrow) {
    font-size: 14.5px;
    line-height: 1.58;
}

body.vntech-theme5 .t5-owner--ai-product .t5-ai-product__copy li {
    font-size: 12px;
    line-height: 1.48;
}

body.vntech-theme5 .t5-owner--contact .t5-contact__surface > div:first-child > p:not(.t5-eyebrow) {
    font-size: 13px;
    line-height: 1.55;
}

/* Tablet/mobile QA guardrails: preserve the hierarchy without returning to large
 * empty surfaces or undersized touch targets. */
@media (max-width: 1120px) {
    body.vntech-theme5.home .menu-toggle {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 780px) {
    body.vntech-theme5 .t5-owner--hero .t5-hero__proof-list strong {
        font-size: 14px;
    }

    body.vntech-theme5 .t5-owner--hero .t5-hero__proof-list small {
        font-size: 12px;
    }

    body.vntech-theme5 :is(.t5-owner--services, .t5-owner--projects, .t5-owner--why, .t5-owner--ai-product) .t5-section-head > p:not(.t5-eyebrow),
    body.vntech-theme5 .t5-owner--why .t5-why__intro {
        font-size: 14px;
    }
}

@media (max-width: 620px) {
    body.vntech-theme5.home .menu-toggle {
        width: 44px;
        height: 44px;
    }

    body.vntech-theme5 .t5-owner--services .t5-service-card,
    body.vntech-theme5 .t5-owner--why .t5-why__grid article {
        padding: 20px 18px;
    }

    body.vntech-theme5 .t5-owner--projects .t5-project-card__body {
        padding: 16px 15px 18px;
    }

    body.vntech-theme5 .t5-owner--services .t5-service-card > a,
    body.vntech-theme5 .t5-owner--projects .t5-project-card__trigger {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
    }

    body.vntech-theme5 .t5-owner--ai-product .t5-ai-message,
    body.vntech-theme5 .t5-owner--ai-product .t5-ai-message--assistant {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 10px;
        padding-block: 13px;
    }

    body.vntech-theme5 .t5-owner--contact .t5-contact__surface > div:first-child > p:not(.t5-eyebrow) {
        font-size: 13.5px;
    }
}

@media (min-width: 1024px) {
    body.vntech-theme5 .t5-owner--hero .t5-hero {
        min-height: 600px;
    }
}

@media (max-width: 430px) {
    body.vntech-theme5 .t5-owner--hero .t5-hero {
        padding: 58px 0 30px;
    }

    body.vntech-theme5 .t5-owner--hero .t5-hero__grid {
        gap: 28px;
    }

    body.vntech-theme5 .t5-owner--hero .t5-hero h1 {
        max-width: 11.5ch;
        font-size: clamp(38px, 11vw, 42px);
    }

    body.vntech-theme5 .t5-owner--hero .t5-hero__intro {
        font-size: 15.5px;
        line-height: 1.56;
    }

    body.vntech-theme5 .t5-owner--hero .t5-hero__proof {
        padding-top: 16px;
    }

    body.vntech-theme5 .t5-owner--hero .t5-hero__proof-list {
        gap: 10px;
    }

    body.vntech-theme5 .t5-owner--hero .t5-hero__proof-list article {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 10px;
    }

    body.vntech-theme5 .t5-owner--hero .t5-hero__proof-list article > span {
        width: 30px;
        height: 30px;
    }

    body.vntech-theme5 :is(.t5-owner--services, .t5-owner--projects, .t5-owner--why, .t5-owner--ai-product) .t5-section-head h2,
    body.vntech-theme5 .t5-owner--ai-product .t5-ai-product__copy h2 {
        max-width: none;
        font-size: clamp(30px, 8.8vw, 36px);
    }
}
