/* =========================================================================
RECKLESS STUDIOS — MASTER STYLESHEET
Locked Light Mode • Twisting Staff Layering • Intro Blink • Studio Lab
========================================================================= */

/* Lock light mode to prevent mobile browsers and WebViews from auto-inverting */
:root {
    color-scheme: light only;
}

html,
body {
    background-color: #ffffff !important;
    color: #18181b;
}

/* Layer page content cleanly above the twisting musical staff & intro backdrop */
#page-home,
#page-beats,
#page-studio,
footer {
    position: relative;
    z-index: 10;
    background-color: transparent !important;
}

#page-home>section,
#page-beats>section,
#page-studio>section {
    background-color: transparent !important;
}

/* =========================================================================
INTRO VIDEO BLINKING BACKDROP (Active only while the 5s hero video plays)
========================================================================= */
.intro-blink-backdrop {
    opacity: 0;
    background-color: #ffffff;
    transition: opacity 0.55s ease;
}

.intro-blink-backdrop.is-blinking {
    opacity: 1;
    animation: recklessIntroBlink 0.72s steps(2, end) infinite;
}

@keyframes recklessIntroBlink {
    0% {
        background-color: #ffffff;
    }

    25% {
        background-color: #ffedd5;
        /* Warm Studio Orange Flash */
    }

    50% {
        background-color: #ffffff;
    }

    75% {
        background-color: #ccfbf1;
        /* Crisp Studio Teal Flash */
    }

    100% {
        background-color: #ffffff;
    }
}

/* Respect accessibility reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .intro-blink-backdrop.is-blinking {
        animation: none;
        background-color: #fff7ed;
    }
}

/* =========================================================================
ACCESSIBLE KEYBOARD FOCUS RINGS
========================================================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* =========================================================================
STUDIO LAB — MPC DRUM PADS & 25-KEY SYNTHESIZER KEYBOARD
========================================================================= */
.drum-pad {
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.drum-pad-active {
    transform: scale(0.95);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.45), inset 0 2px 10px rgba(0, 0, 0, 0.15);
}

.piano-key {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.piano-white-active {
    background: linear-gradient(to bottom, #ffedd5 0%, #fed7aa 100%) !important;
    transform: translateY(2px);
}

.piano-black-active {
    background: linear-gradient(to bottom, #f97316 0%, #ea580c 100%) !important;
    transform: translateY(2px);
}