.hero-robot {
    isolation: isolate;
    overflow: visible;
}

.hero-robot .visual-glow {
    left: 55%;
    width: 430px;
    height: 430px;
    opacity: .72;
}

.hero-robot-stage {
    position: absolute;
    z-index: 1;
    inset: -34px -78px -40px -34px;
    overflow: visible;
    cursor: default;
}

.hero-robot-stage canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    touch-action: pan-y;
    filter: drop-shadow(0 30px 28px rgba(0, 0, 0, .32));
}

.hero-robot-loader,
.hero-robot-fallback {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    margin: 0;
    color: #aebbd3;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    letter-spacing: .07em;
    text-align: center;
    text-transform: uppercase;
    transform: translate(-50%, -50%);
}

.hero-robot-loader {
    display: grid;
    min-width: 190px;
    justify-items: center;
    gap: 15px;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.hero-robot-loader i {
    width: 38px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, .12);
    border-top-color: var(--accent);
    border-right-color: var(--accent-secondary);
    border-radius: 50%;
    animation: hero-robot-spin .8s linear infinite;
}

.hero-robot-loader b {
    color: #fff;
    font-weight: 700;
}

.hero-robot.is-loaded .hero-robot-loader {
    visibility: hidden;
    opacity: 0;
}

.hero-robot.is-error .hero-robot-loader {
    display: none;
}

.hero-robot-fallback {
    width: min(280px, calc(100% - 48px));
    line-height: 1.65;
}

@keyframes hero-robot-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
    .hero-robot-stage { inset: -20px -22px -28px; }
}

@media (max-width: 680px) {
    .hero-robot-stage { inset: -10px -12px -18px; }

    .hero-robot .visual-glow {
        left: 50%;
        width: 330px;
        height: 330px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-robot-loader i { animation-duration: 1.8s; }
}
