/* ═══════════════════════════════════════════════════════════════════
   hero-anim.css  v2  —  Spray Can Burst Reveal + Hero Styles
═══════════════════════════════════════════════════════════════════ */

/* ── 1. SPRAY REVEAL OVERLAY ────────────────────────────────────── */
#sprayRevealOverlay {
    position: fixed;
    inset: 0;
    z-index: 9999998;
    background: #020202;
    pointer-events: all;
    overflow: hidden;
}

/* Full-screen reveal canvas — draws the spray paint effect */
#sprayCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* The actual mural preview (dimly shown under the spray as it paints in) */
#sprayMuralPreview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: block;
}

/* Bottom bar UI */
.spray-loader-ui {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 40px 36px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    z-index: 2;
    pointer-events: none;
}

.spray-loader-brand {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 11px;
    letter-spacing: 7px;
    text-transform: uppercase;
    color: rgba(126, 237, 87, 0.6);
}

.spray-loader-counter {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 72px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.12);
    letter-spacing: -2px;
    transition: color 0.3s ease;
}

.spray-loader-counter.painting {
    color: rgba(255, 255, 255, 0.85);
}

/* Drip overlays — thin vertical paint lines painted on */
.spray-drip {
    position: absolute;
    top: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color) 0%, transparent 100%);
    transform-origin: top center;
    transform: scaleY(0);
    border-radius: 0 0 2px 2px;
    animation: drip var(--dur) var(--delay) ease-in forwards;
}

@keyframes drip {
    0%   { transform: scaleY(0);   opacity: 1; }
    60%  { transform: scaleY(1);   opacity: 0.9; }
    100% { transform: scaleY(1.4); opacity: 0; }
}

/* Exit curtain — overlay slides UP to reveal the site */
#sprayRevealOverlay.exit {
    animation: overlaySlideUp 1s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes overlaySlideUp {
    0%   { transform: translateY(0);    }
    100% { transform: translateY(-100%); }
}

/* ── 2. HERO REVEAL — stagger-in after overlay exits ────────────── */
.hero-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.85s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.85s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}
.hero-reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* ── 3. HERO MURAL STRUCTURE (responsive) ───────────────────────── */
.old-hero-mural-wrap {
    position: relative;
    width: 100%;
    height: clamp(280px, 42vw, 530px);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-mural-bg {
    position: absolute;
    inset: -10px;
    background-image: url('../assets/images/hero/hands-bg.webp');
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    will-change: transform;
    z-index: 0;
}

@media screen and (max-width:900px) {
    .hero-mural-bg {
        background-image: url('../assets/images/hero-bg-mobile.webp');
    }
}

.hero-mural-deity-wrap {
    position: relative;
    /* height: 100%; */
    width: 100%;
    max-width: clamp(420px, 70vw, 936px);
    aspect-ratio: 1201 / 680;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    will-change: transform;
    flex-shrink: 0;
}

.hero-deity-halo,
.hero-deity-orbit,
.hero-deity-orbit-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    pointer-events: none;
}

.hero-deity-halo {
    width: 48%;
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(circle, rgba(255, 197, 54, 0.34) 0%, rgba(255, 197, 54, 0.14) 28%, rgba(0, 179, 179, 0.16) 48%, rgba(0, 179, 179, 0.04) 66%, rgba(0, 0, 0, 0) 74%);
    filter: blur(8px);
    z-index: 0;
    animation: deityHaloPulse 6.5s ease-in-out infinite;
}

.hero-deity-halo::before,
.hero-deity-halo::after {
    content: "";
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    border: 1px solid rgba(255, 197, 54, 0.22);
}

.hero-deity-halo::after {
    inset: 24%;
    border-color: rgba(126, 237, 87, 0.24);
}

.hero-deity-orbit {
    width: 58%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.09);
    z-index: 1;
}

.hero-deity-orbit-a {
    transform: translate(-50%, -50%) rotate(0deg);
    animation: deityOrbitSpin 18s linear infinite;
}

.hero-deity-orbit-b {
    width: 68%;
    border-style: dashed;
    border-color: rgba(0, 179, 179, 0.16);
    transform: translate(-50%, -50%) rotate(14deg);
    animation: deityOrbitSpinReverse 24s linear infinite;
}

.hero-deity-orbit-dot {
    width: 12px;
    aspect-ratio: 1;
    border-radius: 50%;
    z-index: 1;
}

.hero-deity-orbit-dot-a {
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255, 197, 54, 0.95) 38%, rgba(255, 197, 54, 0) 72%);
    box-shadow: 0 0 18px rgba(255, 197, 54, 0.6);
    animation: deityOrbitDotA 11s linear infinite;
}

.hero-deity-orbit-dot-b {
    width: 10px;
    background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(126, 237, 87, 0.9) 40%, rgba(126, 237, 87, 0) 72%);
    box-shadow: 0 0 16px rgba(126, 237, 87, 0.52);
    animation: deityOrbitDotB 15s linear infinite;
}

.hero-mural-deity-wrap img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    position: relative;
    z-index: 2;
}

@keyframes deityHaloPulse {
    0%, 100% {
        opacity: 0.78;
        transform: translate(-50%, -50%) scale(0.96);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.04);
    }
}

@keyframes deityOrbitSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes deityOrbitSpinReverse {
    from { transform: translate(-50%, -50%) rotate(14deg); }
    to { transform: translate(-50%, -50%) rotate(-346deg); }
}

@keyframes deityOrbitDotA {
    0%   { transform: translate(calc(-50% + 170px), calc(-50% - 8px)); opacity: 0.9; }
    25%  { transform: translate(calc(-50% + 6px), calc(-50% - 142px)); opacity: 1; }
    50%  { transform: translate(calc(-50% - 170px), calc(-50% + 8px)); opacity: 0.72; }
    75%  { transform: translate(calc(-50% - 8px), calc(-50% + 142px)); opacity: 1; }
    100% { transform: translate(calc(-50% + 170px), calc(-50% - 8px)); opacity: 0.9; }
}

@keyframes deityOrbitDotB {
    0%   { transform: translate(calc(-50% - 198px), calc(-50% - 12px)); opacity: 0.72; }
    25%  { transform: translate(calc(-50% - 10px), calc(-50% + 162px)); opacity: 1; }
    50%  { transform: translate(calc(-50% + 198px), calc(-50% + 12px)); opacity: 0.82; }
    75%  { transform: translate(calc(-50% + 10px), calc(-50% - 162px)); opacity: 1; }
    100% { transform: translate(calc(-50% - 198px), calc(-50% - 12px)); opacity: 0.72; }
}

/* Atmospheric vignette */
.hero-mural-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 50%, transparent 40%, rgba(2,2,2,0.5) 100%),
        linear-gradient(to bottom, rgba(2,2,2,0.15) 0%, transparent 25%, transparent 72%, rgba(2,2,2,0.55) 100%);
    z-index: 3;
    pointer-events: none;
}

/* Background animation canvas */
#heroBgCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ── 5. LEGACY OVERRIDES (neutralise old system) ─────────────────── */
.site-loader         { display: none !important; }
.site-loader-reveal  { opacity: 1 !important; transform: none !important; }
.c2-particle         { display: none !important; }
#muralRevealOverlay  { display: none !important; }
