/* ==========================================================================
   The Studio — hero graphic (reactor / energy core)
   Scoped under .studio-visual so the products page hero is unaffected.
   ========================================================================== */

.product-hero .hero-visual.studio-visual {
    width: 320px;
    height: 320px;
    margin: 4rem auto 0;
}

.studio-visual {
    position: relative;
}

.studio-visual .studio-graphic {
    position: absolute;
    inset: 0;
}

/* Power-up entrance (plays once, after the hero title/subtitle animate in) */
.studio-graphic--reactor {
    transform-origin: center;
    animation: reactorEntrance 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both;
}

@keyframes reactorEntrance {
    from { opacity: 0; transform: scale(0.3); }
    to   { opacity: 1; transform: scale(1); }
}

/* Reactor core */
.reactor-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 92px;
    height: 92px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.9) 0%, var(--color-primary) 28%, var(--color-accent) 70%, transparent 100%);
    filter: blur(1px);
    box-shadow: 0 0 50px rgba(0, 255, 178, 0.6), 0 0 90px rgba(123, 97, 255, 0.45);
    animation: reactorPulse 3.2s ease-in-out infinite;
    z-index: 3;
}

@keyframes reactorPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.92; }
    50%      { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}

/* Counter-rotating arc rings */
.reactor-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 2px solid transparent;
}

.reactor-ring--a {
    width: 150px; height: 150px;
    border-top-color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    animation: reactorSpin 6s linear infinite;
}
.reactor-ring--b {
    width: 220px; height: 220px;
    border-left-color: var(--color-accent);
    border-right-color: var(--color-accent);
    animation: reactorSpin 9s linear infinite reverse;
}
.reactor-ring--c {
    width: 290px; height: 290px;
    border-top-color: rgba(0, 255, 178, 0.55);
    border-left-color: rgba(123, 97, 255, 0.45);
    animation: reactorSpin 15s linear infinite;
}

/* Orbiting spark particles */
.reactor-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
}
.reactor-orbit--1 { width: 150px; height: 150px; animation: reactorSpin 6s linear infinite;  }
.reactor-orbit--2 { width: 220px; height: 220px; animation: reactorSpin 9s linear infinite reverse; }
.reactor-orbit--3 { width: 290px; height: 290px; animation: reactorSpin 15s linear infinite; }

.reactor-spark {
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 12px 2px var(--color-primary);
}
.reactor-orbit--2 .reactor-spark { box-shadow: 0 0 12px 2px var(--color-accent); }

@keyframes reactorSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .studio-visual * {
        animation: none !important;
    }
}
