/* One-shot electric trace for the home intro logo. */
.statinger-home-intro__script {
    position: relative;
    isolation: isolate;
}

.statinger-logo-spark {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    color: transparent;
    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-transform: inherit;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    clip-path: inset(-45% 104% -45% -12%);
    will-change: clip-path, filter, opacity, transform;
}

.statinger-logo-spark::before,
.statinger-logo-spark::after {
    position: absolute;
    inset: 0;
    content: attr(data-text);
    color: transparent;
    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-transform: inherit;
    white-space: nowrap;
}

.statinger-logo-spark::before {
    -webkit-text-stroke: 2.2px rgba(92, 221, 255, 0.72);
    filter: blur(1.2px);
}

.statinger-logo-spark::after {
    -webkit-text-stroke: 0.75px rgba(244, 253, 255, 0.98);
    text-shadow:
        0 0 2px rgba(255, 255, 255, 0.95),
        0 0 7px rgba(96, 225, 255, 0.9),
        0 0 13px rgba(64, 178, 255, 0.58);
}

.statinger-logo-spark.is-running {
    animation: statinger-logo-electric-trace 0.81s linear 0.62s both;
}

.statinger-home-intro__script.is-spark-tracing {
    transform-origin: center 70%;
    animation: statinger-logo-gentle-lift 0.81s cubic-bezier(0.38, 0, 0.28, 1) 0.62s both;
}

.statinger-home-intro__sub.is-spark-flashing {
    transform-origin: center;
    animation: statinger-logo-apps-flash 0.41s ease-out both;
}

@keyframes statinger-logo-electric-trace {
    0% {
        opacity: 0;
        clip-path: inset(-45% 104% -45% -12%);
        transform: translateY(0);
        filter: brightness(1.42);
    }
    8% {
        opacity: 1;
        clip-path: inset(-45% 94.72% -45% -2.96%);
        transform: translateY(0);
        filter: brightness(1.42);
    }
    92% {
        opacity: 1;
        clip-path: inset(-45% -2.72% -45% 91.96%);
        transform: translateY(0);
        filter: brightness(1.42);
    }
    100% {
        opacity: 0;
        clip-path: inset(-45% -12% -45% 101%);
        transform: translateY(0);
        filter: brightness(1.42);
    }
}

@keyframes statinger-logo-gentle-lift {
    0% {
        transform: translateY(0) scale(1);
    }
    22% {
        transform: translateY(-0.6px) scale(1.011);
    }
    52% {
        transform: translateY(-1.7px) scale(1.032);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes statinger-logo-apps-flash {
    0% {
        color: #E6E6E6;
        opacity: 1;
        filter: brightness(1);
        text-shadow: none;
        transform: scale(1);
    }
    18% {
        color: #FFFFFF;
        opacity: 1;
        filter: brightness(1.85);
        text-shadow:
            0 0 3px rgba(255, 255, 255, 1),
            0 0 10px rgba(112, 230, 255, 0.96),
            0 0 22px rgba(72, 183, 255, 0.72);
        transform: scale(1.045);
    }
    42% {
        color: #F7FDFF;
        filter: brightness(1.28);
        text-shadow:
            0 0 2px rgba(255, 255, 255, 0.9),
            0 0 7px rgba(112, 230, 255, 0.64);
        transform: scale(1.015);
    }
    100% {
        color: #E6E6E6;
        opacity: 1;
        filter: brightness(1);
        text-shadow: none;
        transform: scale(1);
    }
}

@media only screen and (max-width: 600px) {
    .statinger-home-intro__script {
        margin-left: -8px;
        padding-left: 8px;
    }

    .statinger-home-intro__script.is-spark-tracing {
        transform-origin: calc(50% + 4px) 70%;
    }

    .statinger-logo-spark {
        left: 8px;
    }

    .statinger-logo-spark::before {
        -webkit-text-stroke-width: 1.8px;
        filter: blur(1px);
    }

    .statinger-logo-spark::after {
        -webkit-text-stroke-width: 0.65px;
        text-shadow:
            0 0 2px rgba(255, 255, 255, 0.92),
            0 0 6px rgba(96, 225, 255, 0.82),
            0 0 10px rgba(64, 178, 255, 0.48);
    }
}

@media only screen and (orientation: landscape) and (max-height: 520px) {
    .statinger-home-intro__script {
        margin-left: -8px;
        padding-left: 8px;
    }

    .statinger-home-intro__script.is-spark-tracing {
        transform-origin: calc(50% + 4px) 70%;
    }

    .statinger-logo-spark {
        left: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .statinger-logo-spark {
        display: none;
    }

    .statinger-logo-spark,
    .statinger-home-intro__script.is-spark-tracing,
    .statinger-home-intro__sub.is-spark-flashing {
        animation: none;
    }
}
