/* Theme 5.5.21 — Homepage Hero + motion system.
 * Loaded after the accepted responsive/closing layers. Motion is progressive
 * enhancement: all content remains readable without JS and under reduced motion.
 */

body.vntech-theme5.home {
    --t5-motion-ease: cubic-bezier(.22, 1, .36, 1);
    --t5-motion-soft: cubic-bezier(.2, .75, .25, 1);
    --t5-motion-duration: 680ms;
}

/* First fold: compact agency/studio composition rather than a large empty visual. */
body.vntech-theme5.home .t5-owner--hero .t5-hero--motion {
    position: relative;
    overflow: clip;
    padding: clamp(66px, 5.2vw, 86px) 0 clamp(30px, 3vw, 42px);
    background:
        radial-gradient(circle at 76% 24%, rgba(37, 112, 238, .22), transparent 28%),
        radial-gradient(circle at 45% -8%, rgba(42, 133, 255, .10), transparent 36%),
        linear-gradient(123deg, #031024 0%, #061a36 48%, #082b54 100%);
    isolation: isolate;
}

body.vntech-theme5.home .t5-owner--hero .t5-hero--motion::before,
body.vntech-theme5.home .t5-owner--hero .t5-hero--motion::after {
    content: '';
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

body.vntech-theme5.home .t5-owner--hero .t5-hero--motion::before {
    width: min(48vw, 720px);
    aspect-ratio: 1;
    top: -48%;
    right: 1%;
    border-radius: 50%;
    border: 1px solid rgba(93, 158, 255, .10);
    box-shadow:
        0 0 0 72px rgba(67, 139, 255, .025),
        0 0 0 144px rgba(67, 139, 255, .015);
    opacity: .88;
}

body.vntech-theme5.home .t5-owner--hero .t5-hero--motion::after {
    inset: 0;
    opacity: .14;
    background-image:
        linear-gradient(rgba(116, 168, 235, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(116, 168, 235, .08) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%);
}

@media (min-width: 901px) {
    body.vntech-theme5.home .t5-owner--hero .t5-hero__grid {
        grid-template-columns: minmax(0, 1.04fr) minmax(360px, .72fr);
        column-gap: clamp(46px, 5vw, 76px);
        row-gap: 24px;
        align-items: center;
    }

    body.vntech-theme5.home .t5-owner--hero .t5-hero__copy {
        max-width: 690px;
    }

    body.vntech-theme5.home .t5-owner--hero .t5-hero h1 {
        max-width: 11.6ch;
        margin-bottom: 20px;
        font-size: clamp(48px, 4.15vw, 68px);
        line-height: .98;
        letter-spacing: -.055em;
    }

    body.vntech-theme5.home .t5-owner--hero .t5-hero__intro {
        max-width: 57ch;
        margin-bottom: 28px;
        font-size: clamp(15.5px, 1vw, 17px);
        line-height: 1.62;
    }

    body.vntech-theme5.home .t5-owner--hero .t5-actions {
        gap: 10px;
    }
}

/* Delivery canvas: lighter information density, clear sequence, compact status. */
body.vntech-theme5.home .t5-owner--hero .t5-hero__delivery--canvas {
    --t5-hero-rotate-x: 0deg;
    --t5-hero-rotate-y: 0deg;
    --t5-hero-translate-x: 0px;
    --t5-hero-translate-y: 0px;
    --t5-hero-near-x: 0px;
    --t5-hero-near-y: 0px;
    --t5-hero-mid-x: 0px;
    --t5-hero-mid-y: 0px;
    --t5-hero-far-x: 0px;
    --t5-hero-far-y: 0px;
    --t5-hero-far-x-reverse: 0px;
    --t5-hero-far-y-reverse: 0px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(129, 180, 250, .22);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(8, 31, 65, .94), rgba(4, 20, 46, .96)),
        #05172f;
    box-shadow:
        0 34px 72px rgba(0, 8, 24, .30),
        inset 0 1px 0 rgba(255, 255, 255, .045);
    transform:
        perspective(1100px)
        rotateX(var(--t5-hero-rotate-x))
        rotateY(var(--t5-hero-rotate-y))
        translate3d(var(--t5-hero-translate-x), var(--t5-hero-translate-y), 0);
    transition: transform 360ms var(--t5-motion-soft), border-color 260ms ease, box-shadow 260ms ease;
    will-change: transform;
}

body.vntech-theme5.home .t5-owner--hero .t5-hero__delivery--canvas:hover {
    border-color: rgba(132, 186, 255, .32);
    box-shadow:
        0 38px 82px rgba(0, 8, 24, .34),
        inset 0 1px 0 rgba(255, 255, 255, .055);
}

body.vntech-theme5.home .t5-owner--hero .t5-hero__ambient {
    position: absolute;
    z-index: -1;
    display: block;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(2px);
}

body.vntech-theme5.home .t5-owner--hero .t5-hero__ambient--one {
    width: 220px;
    height: 220px;
    top: -124px;
    right: -70px;
    background: rgba(55, 133, 255, .18);
    transform: translate3d(var(--t5-hero-far-x), var(--t5-hero-far-y), 0);
}

body.vntech-theme5.home .t5-owner--hero .t5-hero__ambient--two {
    width: 170px;
    height: 170px;
    right: 18%;
    bottom: -120px;
    background: rgba(30, 96, 204, .16);
    transform: translate3d(var(--t5-hero-far-x-reverse), var(--t5-hero-far-y-reverse), 0);
}

body.vntech-theme5.home .t5-owner--hero [data-t5-motion-layer="near"] {
    transform: translate3d(var(--t5-hero-near-x), var(--t5-hero-near-y), 0);
    transition: transform 360ms var(--t5-motion-soft);
}

body.vntech-theme5.home .t5-owner--hero [data-t5-motion-layer="mid"] {
    transform: translate3d(var(--t5-hero-mid-x), var(--t5-hero-mid-y), 0);
    transition: transform 360ms var(--t5-motion-soft);
}

body.vntech-theme5.home .t5-owner--hero .t5-hero__delivery-head {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 20px 17px;
    border-bottom: 1px solid rgba(137, 180, 242, .14);
}

body.vntech-theme5.home .t5-owner--hero .t5-hero__delivery-head > div {
    display: grid;
    gap: 5px;
}

body.vntech-theme5.home .t5-owner--hero .t5-hero__delivery-status {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 7px;
    align-items: center;
    padding: 7px 9px;
    border: 1px solid rgba(109, 167, 247, .16);
    border-radius: 999px;
    background: rgba(5, 24, 51, .66);
    color: #91add1;
    font: 750 8.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .075em;
    text-transform: uppercase;
}

body.vntech-theme5.home .t5-owner--hero .t5-hero__delivery-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4c9aff;
    box-shadow: 0 0 0 4px rgba(76, 154, 255, .10);
}

body.vntech-theme5.home .t5-owner--hero .t5-hero__delivery-flow {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 18px 20px 16px;
}

body.vntech-theme5.home .t5-owner--hero .t5-hero__delivery-flow::before {
    content: '';
    position: absolute;
    left: 16%;
    right: 16%;
    top: 35px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(70, 146, 255, .38) 18%, rgba(70, 146, 255, .38) 82%, transparent);
}

body.vntech-theme5.home .t5-owner--hero .t5-hero__delivery-flow li {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-content: start;
    min-height: 126px;
    padding: 0;
    border: 0;
}

body.vntech-theme5.home .t5-owner--hero .t5-hero__delivery-flow li + li {
    border-top: 0;
}

body.vntech-theme5.home .t5-owner--hero .t5-hero__delivery-flow li:not(:last-child)::after {
    content: none;
}

body.vntech-theme5.home .t5-owner--hero .t5-hero__delivery-flow li > span {
    width: 36px;
    height: 36px;
    border-color: rgba(91, 158, 255, .50);
    border-radius: 10px;
    background: #0a2a58;
    box-shadow: 0 0 0 6px rgba(6, 27, 58, .9);
}

body.vntech-theme5.home .t5-owner--hero .t5-hero__delivery-flow strong {
    margin-bottom: 4px;
    font-size: 12.5px;
    line-height: 1.3;
}

body.vntech-theme5.home .t5-owner--hero .t5-hero__delivery-flow small {
    color: #95aac6;
    font-size: 10.75px;
    line-height: 1.48;
}

body.vntech-theme5.home .t5-owner--hero .t5-hero__deployment {
    gap: 11px;
    margin: 0 20px 20px;
    padding: 13px;
    border-radius: 14px;
    background: rgba(1, 15, 35, .55);
}

body.vntech-theme5.home .t5-owner--hero .t5-hero__deployment-options button {
    min-height: 40px;
}

body.vntech-theme5.home .t5-owner--hero .t5-hero__deployment-copy {
    min-height: 0;
}

/* Trust row becomes part of the first-fold rhythm, not a detached card strip. */
@media (min-width: 901px) {
    body.vntech-theme5.home .t5-owner--hero .t5-hero__proof--rail {
        margin-top: 4px;
        padding-top: 18px;
        border-top: 1px solid rgba(128, 177, 244, .14);
    }

    body.vntech-theme5.home .t5-owner--hero .t5-hero__proof-set {
        gap: 22px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    body.vntech-theme5.home .t5-owner--hero .t5-hero__proof-item {
        min-height: 38px;
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 8px;
        padding: 0;
    }

    body.vntech-theme5.home .t5-owner--hero .t5-hero__proof-item + .t5-hero__proof-item {
        border-left: 0;
    }

    body.vntech-theme5.home .t5-owner--hero .t5-hero__proof-item > span {
        width: 22px;
        height: 22px;
        border: 1px solid rgba(91, 158, 255, .28);
        background: rgba(31, 101, 211, .08);
        color: #69a7ff;
    }

    body.vntech-theme5.home .t5-owner--hero .t5-hero__proof-item strong {
        color: #c8d9ee;
        font-size: 11.5px;
        font-weight: 720;
    }
}

/* Reveal system: hidden only after JS has initialized the Theme 5 runtime. */
html.t5-motion body.vntech-theme5.vntech-theme5-ready [data-t5-reveal]:not(.is-visible) {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
}

html.t5-motion body.vntech-theme5.vntech-theme5-ready [data-t5-reveal] {
    transition:
        opacity var(--t5-motion-duration) var(--t5-motion-ease) var(--t5-reveal-delay, 0ms),
        transform var(--t5-motion-duration) var(--t5-motion-ease) var(--t5-reveal-delay, 0ms);
}

html.t5-motion body.vntech-theme5.vntech-theme5-ready [data-t5-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Section rhythm: subtle surface arrival without motion-dependent information. */
html.t5-motion body.vntech-theme5.home .t5-owner {
    --t5-section-shift: 0px;
}

html.t5-motion body.vntech-theme5.home .t5-owner:not(.is-in-view) {
    --t5-section-shift: 8px;
}

html.t5-motion body.vntech-theme5.home .t5-owner > :first-child {
    transform: translate3d(0, var(--t5-section-shift), 0);
    transition: transform 900ms var(--t5-motion-ease);
}

/* Interactive depth on proof-oriented cards. */
@media (hover: hover) and (pointer: fine) {
    body.vntech-theme5.home :is(
        .t5-owner--services .t5-service-card,
        .t5-owner--projects .t5-project-card,
        .t5-owner--why .t5-why__grid article,
        .t5-owner--packages .t5-package
    ) {
        transition:
            transform 300ms var(--t5-motion-ease),
            box-shadow 300ms ease,
            border-color 300ms ease;
    }

    body.vntech-theme5.home :is(
        .t5-owner--services .t5-service-card,
        .t5-owner--projects .t5-project-card,
        .t5-owner--why .t5-why__grid article,
        .t5-owner--packages .t5-package
    ):hover {
        transform: translate3d(0, -5px, 0);
    }

    body.vntech-theme5.home .t5-owner--projects .t5-project-card__media img {
        transition: transform 520ms var(--t5-motion-ease);
    }

    body.vntech-theme5.home .t5-owner--projects .t5-project-card:hover .t5-project-card__media img {
        transform: scale(1.018);
    }
}

/* Ambient Hero drift is intentionally low-amplitude and compositor-friendly. */
html.t5-motion body.vntech-theme5.home.vntech-theme5-ready .t5-hero--motion::before {
    animation: vntech-hero-ambient-drift 13s var(--t5-motion-soft) infinite alternate;
}

html.t5-motion body.vntech-theme5.home.vntech-theme5-ready .t5-hero__delivery-status i {
    animation: vntech-hero-status-pulse 2.8s ease-in-out infinite;
}

@keyframes vntech-hero-ambient-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-18px, 14px, 0) scale(1.025); }
}

@keyframes vntech-hero-status-pulse {
    0%, 100% { opacity: .78; box-shadow: 0 0 0 3px rgba(76, 154, 255, .08); }
    50% { opacity: 1; box-shadow: 0 0 0 6px rgba(76, 154, 255, .13); }
}

@media (max-width: 1120px) and (min-width: 901px) {
    body.vntech-theme5.home .t5-owner--hero .t5-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr);
        column-gap: 34px;
    }

    body.vntech-theme5.home .t5-owner--hero .t5-hero h1 {
        font-size: clamp(46px, 5vw, 58px);
    }

    body.vntech-theme5.home .t5-owner--hero .t5-hero__delivery-status {
        display: none;
    }
}

@media (max-width: 900px) {
    body.vntech-theme5.home .t5-owner--hero .t5-hero--motion {
        padding-top: 78px;
    }

    body.vntech-theme5.home .t5-owner--hero .t5-hero__delivery--canvas,
    body.vntech-theme5.home .t5-owner--hero [data-t5-motion-layer] {
        transform: none;
        transition: none;
    }
}

@media (max-width: 620px) {
    body.vntech-theme5.home .t5-owner--hero .t5-hero--motion {
        padding: 58px 0 32px;
    }

    body.vntech-theme5.home .t5-owner--hero .t5-hero h1 {
        max-width: 11.4ch;
        font-size: clamp(36px, 10.4vw, 43px);
        line-height: 1;
    }

    html.t5-motion body.vntech-theme5.vntech-theme5-ready [data-t5-reveal]:not(.is-visible) {
        transform: translate3d(0, 14px, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.vntech-theme5.home .t5-hero--motion::before,
    body.vntech-theme5.home .t5-hero__delivery-status i {
        animation: none;
    }

    body.vntech-theme5.home .t5-hero__delivery--canvas,
    body.vntech-theme5.home [data-t5-motion-layer],
    body.vntech-theme5.home [data-t5-reveal],
    body.vntech-theme5.home .t5-owner > :first-child,
    body.vntech-theme5.home :is(
        .t5-owner--services .t5-service-card,
        .t5-owner--projects .t5-project-card,
        .t5-owner--why .t5-why__grid article,
        .t5-owner--packages .t5-package,
        .t5-owner--projects .t5-project-card__media img
    ) {
        animation: none;
        transition: none;
        transform: none;
    }
}
