/* =========================================
   VIREXIS CINEMATIC MOTION ENGINE 3.1
   Medical Technology Experience
   ========================================= */

.vx-care-v3 {
    --vx-motion-cyan: #63ccff;
    --vx-motion-ease: cubic-bezier(.22,1,.36,1);
}

/* Independent layered motion */

.vx-care-v3.is-enhanced
.vx-care-panel.is-active {
    animation: none;
}

/* DIGITAL GRID */

.vx-care-v3 .vx-care-story::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(99,204,255,.045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(99,204,255,.045) 1px,
            transparent 1px
        );

    background-size: 38px 38px;

    -webkit-mask-image:
        linear-gradient(
            110deg,
            transparent 10%,
            #000 100%
        );

    mask-image:
        linear-gradient(
            110deg,
            transparent 10%,
            #000 100%
        );
}

/* HUD RINGS */

.vx-care-v3.is-enhanced
.vx-care-panel.is-active
.vx-care-story::before {
    animation:
        vxMotionOrbit 1.8s
        var(--vx-motion-ease) both;
}

@keyframes vxMotionOrbit {
    from {
        opacity: .15;
        transform: scale(.82) rotate(-12deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

/* WATERMARK */

.vx-care-v3.is-enhanced
.vx-care-panel.is-active
.vx-care-watermark {
    color: rgba(99,204,255,.055);

    animation:
        vxMotionNumber 1.35s
        var(--vx-motion-ease) both;
}

@keyframes vxMotionNumber {
    from {
        opacity: 0;
        transform: translateX(65px) scale(1.08);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* CLINICAL STAGE LABEL */

.vx-care-v3.is-enhanced
.vx-care-panel.is-active
.vx-care-stage-label {
    animation:
        vxMotionRise .65s
        var(--vx-motion-ease) both;
}

.vx-care-v3.is-enhanced
.vx-care-panel.is-active
.vx-care-stage-label > i {
    transform-origin: left center;

    animation:
        vxMotionBeam .9s
        var(--vx-motion-ease) both;
}

@keyframes vxMotionBeam {
    from {
        opacity: 0;
        transform: scaleX(0);
    }

    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* TYPOGRAPHIC REVEAL */

.vx-care-v3.is-enhanced
.vx-care-panel.is-active
.vx-care-story h3 {
    animation:
        vxMotionHeadline .95s .08s
        var(--vx-motion-ease) both;
}

@keyframes vxMotionHeadline {
    from {
        opacity: 0;
        transform: translateY(24px);
        clip-path: inset(0 0 100% 0);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        clip-path: inset(0);
    }
}

/* DESCRIPTION */

.vx-care-v3.is-enhanced
.vx-care-panel.is-active
.vx-care-story > p {
    animation:
        vxMotionRise .8s .22s
        var(--vx-motion-ease) both;
}

/* STAGGERED FEATURES */

.vx-care-v3.is-enhanced
.vx-care-panel.is-active
.vx-care-features li {
    animation:
        vxMotionRise .65s
        var(--vx-motion-ease) both;
}

.vx-care-v3.is-enhanced
.vx-care-panel.is-active
.vx-care-features li:nth-child(1) {
    animation-delay: .35s;
}

.vx-care-v3.is-enhanced
.vx-care-panel.is-active
.vx-care-features li:nth-child(2) {
    animation-delay: .45s;
}

.vx-care-v3.is-enhanced
.vx-care-panel.is-active
.vx-care-features li:nth-child(3) {
    animation-delay: .55s;
}

@keyframes vxMotionRise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PHOTOGRAPHIC MOTION */

.vx-care-v3.is-enhanced
.vx-care-panel.is-active
.vx-care-visual picture {
    animation:
        vxMotionPicture 1.25s
        var(--vx-motion-ease) both;
}

@keyframes vxMotionPicture {
    from {
        opacity: .35;
    }

    to {
        opacity: 1;
    }
}

.vx-care-v3.is-enhanced
.vx-care-panel.is-active:not([data-care-panel="3"])
.vx-care-visual img {
    animation:
        vxMotionPhoto 1.5s
        var(--vx-motion-ease) both;
}

@keyframes vxMotionPhoto {
    from {
        transform: scale(1.065);
    }

    to {
        transform: scale(1);
    }
}

/* DIGITAL SCANNING LAYER */

.vx-care-v3.is-enhanced
.vx-care-panel.is-active
.vx-care-photo-shade::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            transparent 42%,
            rgba(99,204,255,.07) 49%,
            rgba(99,204,255,.55) 50%,
            rgba(99,204,255,.07) 51%,
            transparent 58%
        );

    animation:
        vxMotionScanVertical 1.4s
        ease-out both;
}

@keyframes vxMotionScanVertical {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }

    20% {
        opacity: .75;
    }

    80% {
        opacity: .4;
    }

    100% {
        opacity: 0;
        transform: translateY(100%);
    }
}

/* 02 - DIAGNOSTIC PRECISION */

.vx-care-v3.is-enhanced
.vx-care-panel[data-care-panel="1"].is-active
.vx-care-photo-shade::after {

    background:
        linear-gradient(
            90deg,
            transparent 43%,
            rgba(99,204,255,.08) 49%,
            rgba(99,204,255,.65) 50%,
            rgba(99,204,255,.08) 51%,
            transparent 57%
        );

    animation-name: vxMotionScanHorizontal;
}

@keyframes vxMotionScanHorizontal {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }

    20% {
        opacity: .8;
    }

    80% {
        opacity: .4;
    }

    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* 03 - THERAPEUTIC TECHNOLOGY */

.vx-care-v3.is-enhanced
.vx-care-panel[data-care-panel="2"].is-active
.vx-care-photo-shade::after {

    background:
        linear-gradient(
            125deg,
            transparent 40%,
            rgba(99,204,255,.14) 49%,
            rgba(99,204,255,.48) 50%,
            transparent 60%
        );

    animation-name: vxMotionScanHorizontal;
    animation-duration: 1.6s;
}

/* 04 - FUNCTIONAL RECOVERY */

/* Preserve the approved DAVID composition */

.vx-care-v3.is-enhanced
.vx-care-panel[data-care-panel="3"].is-active
.vx-care-visual picture {
    animation:
        vxMotionRecovery 1.45s
        var(--vx-motion-ease) both;
}

@keyframes vxMotionRecovery {
    from {
        opacity: .4;
        transform: scale(.985);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.vx-care-v3.is-enhanced
.vx-care-panel[data-care-panel="3"].is-active
.vx-care-photo-shade::after {

    background:
        radial-gradient(
            circle at center,
            transparent 35%,
            rgba(99,204,255,.17) 48%,
            transparent 65%
        );

    animation:
        vxMotionRadial 1.5s
        ease-out both;
}

@keyframes vxMotionRadial {
    from {
        opacity: .65;
        transform: scale(.3);
    }

    to {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* TECHNOLOGICAL TAB ACTIVATION */

.vx-care-v3 .vx-care-tab.is-active
.vx-care-tab-light {
    transform-origin: left center;

    animation:
        vxMotionBeam .85s
        var(--vx-motion-ease) both;
}

.vx-care-v3 .vx-care-controls button:hover {
    box-shadow:
        0 0 18px rgba(99,204,255,.22),
        inset 0 0 12px rgba(99,204,255,.08);
}

/* MOBILE OPTIMIZATION */

@media (max-width: 767px) {

    .vx-care-v3 .vx-care-story::after {
        background-size: 28px 28px;
    }

    .vx-care-v3.is-enhanced
    .vx-care-panel.is-active
    .vx-care-story h3 {
        animation-duration: .7s;
    }

    .vx-care-v3.is-enhanced
    .vx-care-panel.is-active
    .vx-care-photo-shade::after {
        animation-duration: 1s;
    }

}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .vx-care-v3 *,
    .vx-care-v3 *::before,
    .vx-care-v3 *::after {
        animation: none !important;
        transition: none !important;
    }

    .vx-care-v3
    .vx-care-photo-shade::after {
        display: none !important;
    }

}

/* END VIREXIS CINEMATIC MOTION ENGINE 3.1 */
