/* ==========================================================
   VIREXIS — LASER DELIVERY ANIMATION V1
   Elaborado por Miguel Minier | MDesign
   ========================================================== */

.vx-laser-delivery{
    display:grid;
    grid-template-columns:minmax(0,1.08fr) minmax(380px,.72fr);
    gap:clamp(65px,8vw,130px);
    align-items:center;

    margin-top:100px;
    padding:70px 0 90px;

    border-top:1px solid rgba(91,211,255,.15);
    border-bottom:1px solid rgba(91,211,255,.15);
}


/* ==========================================================
   VISUAL
   ========================================================== */

.vx-laser-delivery__visual{
    position:relative;

    min-width:0;

    border:1px solid rgba(88,208,250,.20);

    background:
        linear-gradient(
            rgba(73,198,244,.026) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(73,198,244,.026) 1px,
            transparent 1px
        ),
        rgba(0,14,24,.30);

    background-size:44px 44px;

    box-shadow:
        inset 0 0 90px rgba(32,160,214,.025),
        0 35px 80px rgba(0,0,0,.12);
}


.vx-laser-delivery__visual-top{
    position:absolute;
    z-index:20;

    top:24px;
    left:27px;
    right:27px;

    display:flex;
    justify-content:space-between;
    align-items:center;
}

.vx-laser-delivery__visual-top > span{
    color:rgba(112,215,253,.48);

    font-size:7px;
    font-weight:700;
    letter-spacing:.28em;
}

.vx-laser-delivery__visual-top > div{
    display:flex;
    align-items:center;
    gap:8px;

    color:rgba(148,225,252,.48);

    font-size:7px;
    font-weight:700;
    letter-spacing:.20em;
}

.vx-laser-delivery__visual-top > div i{
    width:6px;
    height:6px;

    border-radius:50%;

    background:#65dcff;

    box-shadow:
        0 0 12px rgba(91,217,255,.95);

    animation:vxLdActive 1.5s ease-in-out infinite;
}


/* ==========================================================
   STAGE
   ========================================================== */

.vx-laser-delivery__stage{
    position:relative;

    height:520px;

    overflow:hidden;

    background:
        radial-gradient(
            circle at 50% 58%,
            rgba(45,185,238,.075),
            transparent 39%
        );
}


.vx-laser-delivery__axis{
    position:absolute;
    z-index:0;

    background:rgba(81,204,248,.09);
}

.vx-laser-delivery__axis--h{
    left:0;
    right:0;

    top:61%;

    height:1px;
}

.vx-laser-delivery__axis--v{
    top:0;
    bottom:0;

    left:50%;

    width:1px;

    background:
        repeating-linear-gradient(
            to bottom,
            rgba(87,210,253,.18) 0 5px,
            transparent 5px 12px
        );
}


/* ==========================================================
   EMITTER MOVEMENT
   ========================================================== */

.vx-laser-delivery__emitter-track{
    position:absolute;
    z-index:10;

    top:82px;
    left:19%;
    right:19%;

    height:250px;
}


.vx-laser-delivery__emitter{
    position:absolute;

    left:0;
    top:0;

    width:94px;

    transform:translateX(-50%);

    animation:
        vxLdSweep 8s
        cubic-bezier(.45,.02,.55,.98)
        infinite alternate;
}


.vx-laser-delivery__emitter-code{
    position:absolute;

    top:-19px;
    left:50%;

    color:rgba(112,216,254,.46);

    font-size:6px;
    font-weight:700;
    letter-spacing:.19em;

    transform:translateX(-50%);
}


/* emitter housing */

.vx-laser-delivery__head{
    position:relative;

    width:92px;
    height:54px;

    border:1px solid rgba(106,219,255,.50);
    border-radius:8px 8px 15px 15px;

    background:
        linear-gradient(
            180deg,
            rgba(89,208,250,.08),
            rgba(89,208,250,.015)
        );

    box-shadow:
        0 0 25px rgba(66,195,243,.06);
}


.vx-laser-delivery__head::before{
    content:"";

    position:absolute;

    left:50%;
    top:-25px;

    width:1px;
    height:25px;

    background:rgba(98,213,254,.35);
}


.vx-laser-delivery__head::after{
    content:"LASER";

    position:absolute;

    left:50%;
    top:50%;

    color:rgba(166,231,253,.50);

    font-size:6px;
    font-weight:700;
    letter-spacing:.22em;

    transform:translate(-50%,-50%);
}


.vx-laser-delivery__head i{
    position:absolute;

    top:9px;

    width:3px;
    height:3px;

    border-radius:50%;

    background:#65d8ff;

    box-shadow:
        0 0 6px rgba(91,211,255,.8);
}

.vx-laser-delivery__head i:nth-child(1){
    left:10px;
}

.vx-laser-delivery__head i:nth-child(2){
    right:10px;
}

.vx-laser-delivery__head i:nth-child(3){
    left:50%;

    top:auto;
    bottom:8px;
}


/* lens */

.vx-laser-delivery__lens{
    position:relative;

    width:40px;
    height:13px;

    margin:-1px auto 0;

    border:
        1px solid rgba(102,217,255,.52);

    border-radius:0 0 14px 14px;

    background:rgba(76,202,248,.08);
}


.vx-laser-delivery__lens::after{
    content:"";

    position:absolute;

    left:50%;
    bottom:-4px;

    width:8px;
    height:8px;

    border-radius:50%;

    background:#c7f5ff;

    box-shadow:
        0 0 9px #5ed7ff,
        0 0 22px rgba(65,202,252,.80);

    transform:translateX(-50%);

    animation:vxLdLens 1.25s ease-in-out infinite;
}


/* ==========================================================
   LASER BEAM
   ========================================================== */

.vx-laser-delivery__beam{
    position:absolute;

    left:50%;
    top:68px;

    width:40px;
    height:150px;

    transform:translateX(-50%);

    clip-path:
        polygon(
            43% 0,
            57% 0,
            88% 100%,
            12% 100%
        );

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(71,207,255,.08),
            rgba(137,232,255,.68),
            rgba(71,207,255,.08),
            transparent
        );

    filter:
        drop-shadow(
            0 0 10px rgba(74,207,255,.45)
        );

    animation:
        vxLdBeam 1.25s ease-in-out infinite;
}


.vx-laser-delivery__beam span{
    position:absolute;

    left:50%;
    top:0;

    width:1px;
    height:100%;

    background:
        linear-gradient(
            to bottom,
            rgba(202,248,255,.85),
            #56d3ff
        );

    box-shadow:
        0 0 7px #56d3ff;

    transform:translateX(-50%);
}


/* ==========================================================
   TARGET
   ========================================================== */

.vx-laser-delivery__target{
    position:absolute;

    left:50%;
    top:211px;

    width:74px;
    height:74px;

    transform:translateX(-50%);
}


.vx-laser-delivery__target i{
    position:absolute;

    left:50%;
    top:50%;

    border:
        1px solid rgba(99,217,255,.52);

    border-radius:50%;

    transform:translate(-50%,-50%);

    animation:
        vxLdTarget 2.1s ease-out infinite;
}


.vx-laser-delivery__target i:nth-child(1){
    width:18px;
    height:18px;
}

.vx-laser-delivery__target i:nth-child(2){
    width:40px;
    height:40px;

    animation-delay:.38s;
}

.vx-laser-delivery__target i:nth-child(3){
    width:68px;
    height:68px;

    animation-delay:.76s;
}


.vx-laser-delivery__target b{
    position:absolute;

    left:50%;
    top:50%;

    width:10px;
    height:10px;

    border-radius:50%;

    background:#c9f5ff;

    box-shadow:
        0 0 9px #6cddff,
        0 0 25px rgba(75,209,255,.85);

    transform:translate(-50%,-50%);

    animation:
        vxLdImpact 1.25s ease-in-out infinite;
}


/* ==========================================================
   TISSUE
   ========================================================== */

.vx-laser-delivery__tissue{
    position:absolute;
    z-index:4;

    left:8%;
    right:8%;

    bottom:52px;

    width:84%;
    height:220px;

    overflow:visible;
}


.vx-ld-tissue{
    fill:none;

    stroke:#58cffa;

    stroke-width:1;

    vector-effect:
        non-scaling-stroke;

    opacity:.62;
}


.vx-ld-tissue--1{
    stroke-width:1.2;
}

.vx-ld-tissue--2{
    opacity:.48;
}

.vx-ld-tissue--3{
    opacity:.30;
}


/* tissue illumination */

.vx-laser-delivery__tissue::after{
    content:"";
}


/* ==========================================================
   DEPTH SCALE
   ========================================================== */

.vx-laser-delivery__depth{
    position:absolute;

    z-index:5;

    left:24px;
    top:125px;
    bottom:70px;

    display:flex;
    flex-direction:column;
    justify-content:space-between;

    color:rgba(117,217,253,.26);

    font-size:6px;
    font-weight:700;
    letter-spacing:.12em;
}


.vx-laser-delivery__depth::before{
    content:"";

    position:absolute;

    left:22px;
    top:2px;
    bottom:2px;

    width:1px;

    background:
        repeating-linear-gradient(
            to bottom,
            rgba(92,211,253,.20) 0 2px,
            transparent 2px 9px
        );
}


/* ==========================================================
   DATA LABELS
   ========================================================== */

.vx-laser-delivery__data{
    position:absolute;
    z-index:6;
}

.vx-laser-delivery__data span,
.vx-laser-delivery__data strong{
    display:block;
}

.vx-laser-delivery__data span{
    color:rgba(109,216,254,.34);

    font-size:6px;
    font-weight:700;
    letter-spacing:.22em;
}

.vx-laser-delivery__data strong{
    margin-top:5px;

    color:rgba(206,242,253,.54);

    font-size:7px;
    font-weight:600;
    letter-spacing:.16em;
}


.vx-laser-delivery__data--a{
    left:72px;
    top:170px;
}


.vx-laser-delivery__data--b{
    right:55px;
    bottom:98px;

    text-align:right;
}


/* ==========================================================
   MONITOR
   ========================================================== */

.vx-laser-delivery__monitor{
    display:grid;
    grid-template-columns:repeat(3,1fr);

    border-top:
        1px solid rgba(91,210,253,.14);
}


.vx-laser-delivery__monitor > span{
    display:flex;
    align-items:center;

    gap:7px;

    min-height:50px;

    padding:0 16px;

    color:rgba(137,222,251,.38);

    font-size:6px;
    font-weight:700;
    letter-spacing:.15em;

    border-right:
        1px solid rgba(91,210,253,.10);
}


.vx-laser-delivery__monitor > span:last-child{
    border-right:0;
}


.vx-laser-delivery__monitor i{
    width:4px;
    height:4px;

    flex:0 0 auto;

    border-radius:50%;

    background:#5ed6ff;

    box-shadow:
        0 0 7px rgba(91,212,255,.70);
}


.vx-laser-delivery__monitor strong{
    margin-left:auto;

    color:rgba(222,245,253,.68);

    font-size:6px;
    font-weight:700;
}


/* ==========================================================
   COPY
   ========================================================== */

.vx-laser-delivery__copy{
    max-width:560px;
}


.vx-laser-delivery__kicker{
    display:block;

    margin-bottom:25px;

    color:#63d7ff;

    font-size:8px;
    font-weight:700;
    letter-spacing:.34em;
}


.vx-laser-delivery__copy h2{
    margin:0;

    color:#f5fbff;

    font-size:clamp(60px,5vw,88px);
    line-height:.88;
    font-weight:400;
    letter-spacing:-.065em;
}


.vx-laser-delivery__copy h2 em{
    display:block;

    color:#55d4ff;

    font-weight:300;
}


.vx-laser-delivery__copy p{
    max-width:520px;

    margin:37px 0 0;

    color:rgba(204,232,243,.64);

    font-size:15px;
    line-height:1.82;
}


/* sequence */

.vx-laser-delivery__sequence{
    display:grid;

    grid-template-columns:
        auto 1fr
        auto 1fr
        auto;

    align-items:center;

    gap:16px;

    margin-top:46px;
}


.vx-laser-delivery__sequence div span{
    display:block;

    color:#61d5ff;

    font-size:7px;
    font-weight:700;
}


.vx-laser-delivery__sequence div strong{
    display:block;

    margin-top:7px;

    color:rgba(226,244,251,.68);

    font-size:8px;
    font-weight:500;
    letter-spacing:.10em;
}


.vx-laser-delivery__sequence > i{
    height:1px;

    background:
        linear-gradient(
            90deg,
            rgba(88,209,251,.08),
            rgba(88,209,251,.40),
            rgba(88,209,251,.08)
        );
}


.vx-laser-delivery__copy > small{
    display:block;

    margin-top:40px;

    color:rgba(110,215,252,.28);

    font-size:6px;
    font-weight:700;
    letter-spacing:.25em;
}


/* ==========================================================
   ANIMATIONS
   ========================================================== */

@keyframes vxLdSweep{

    0%{
        left:8%;
    }

    22%{
        left:8%;
    }

    78%{
        left:92%;
    }

    100%{
        left:92%;
    }

}


@keyframes vxLdBeam{

    0%,100%{
        opacity:.38;
    }

    50%{
        opacity:1;
    }

}


@keyframes vxLdLens{

    0%,100%{
        opacity:.55;
        transform:
            translateX(-50%)
            scale(.82);
    }

    50%{
        opacity:1;
        transform:
            translateX(-50%)
            scale(1.18);
    }

}


@keyframes vxLdTarget{

    0%{
        opacity:.75;

        transform:
            translate(-50%,-50%)
            scale(.35);
    }

    100%{
        opacity:0;

        transform:
            translate(-50%,-50%)
            scale(1.25);
    }

}


@keyframes vxLdImpact{

    0%,100%{
        transform:
            translate(-50%,-50%)
            scale(.82);
    }

    50%{
        transform:
            translate(-50%,-50%)
            scale(1.25);
    }

}


@keyframes vxLdActive{

    0%,100%{
        opacity:.35;
    }

    50%{
        opacity:1;
    }

}


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

@media (max-width:1100px){

    .vx-laser-delivery{
        grid-template-columns:1fr;
        gap:65px;
    }

    .vx-laser-delivery__copy{
        max-width:700px;
    }

}


@media (max-width:700px){

    .vx-laser-delivery{
        margin-top:75px;
        padding:50px 0 65px;
    }

    .vx-laser-delivery__stage{
        height:410px;
    }

    .vx-laser-delivery__emitter-track{
        left:15%;
        right:15%;
        top:75px;
    }

    .vx-laser-delivery__tissue{
        left:4%;
        width:92%;
        bottom:34px;
    }

    .vx-laser-delivery__data{
        display:none;
    }

    .vx-laser-delivery__monitor{
        grid-template-columns:1fr;
    }

    .vx-laser-delivery__monitor > span{
        min-height:38px;

        border-right:0;
        border-bottom:
            1px solid rgba(91,210,253,.08);
    }

    .vx-laser-delivery__copy h2{
        font-size:55px;
    }

    .vx-laser-delivery__sequence{
        grid-template-columns:1fr;
        gap:15px;
    }

    .vx-laser-delivery__sequence > i{
        display:none;
    }

}


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

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

    .vx-laser-delivery__emitter{
        left:50%;
    }

}
