:root {
    --bg-obsidian: #060D14;
    --bg-obsidian-alt: #090C12;
    --card-surface: #0E1B29;
    --card-border: rgba(230, 242, 255, 0.12);
    --accent-sky: #38BDF8;
    --accent-ice: #E6F2FF;
    --accent-cyan: #22D3EE;
    --accent-indigo: #818CF8;
    --accent-magenta: #E879F9;
    --accent-amber: #F59E0B;
    --accent-amber-bright: #FFB020;
    --text-heading: #F8FAFC;
    --text-body: #CBD5E1;
    --text-meta: #64748B;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #060D14;
    color: #F8FAFC;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 18% 12%, rgba(56, 189, 248, 0.05) 0%, transparent 42%),
        radial-gradient(circle at 82% 28%, rgba(27, 49, 71, 0.12) 0%, transparent 45%),
        radial-gradient(rgba(230, 242, 255, 0.025) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 28px 28px;
}

/* =========================================================
   1. STAGE POWER-UP & SPLIT-SCREEN LED CURTAIN PRELOADER
   ========================================================= */
#av-preloader {
    background: transparent;
}

#loader-flare {
    position: absolute;
    top: 32px;
    left: 50%;
    transform: translateX(-50%) scaleX(0.35);
    width: min(76vw, 520px);
    height: 3px;
    border-radius: 9999px;
    background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.7) 25%, #E6F2FF 50%, rgba(56, 189, 248, 0.7) 75%, transparent 100%);
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.9), 0 0 60px rgba(230, 242, 255, 0.65);
    opacity: 0.25;
}

#loader-seam-flash {
    box-shadow: 0 0 36px 8px rgba(56, 189, 248, 0.95), 0 0 80px 18px rgba(230, 242, 255, 0.65);
}

/* =========================================================
   2. CURSOR FOLLOW-SPOT TORCH, OVERHEAD TRUSS FIXTURES &
      AUTOMATIC IDLE SWEEPING STAGE BEAMS
   ========================================================= */
#mouse-spotlight,
#mouse-core {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 9999px;
    pointer-events: none;
    transform: translate3d(-9999px, -9999px, 0);
    transition: opacity 0.55s ease;
    opacity: 0;
    will-change: transform, opacity;
}

#mouse-spotlight {
    width: 440px;
    height: 440px;
    margin-left: -220px;
    margin-top: -220px;
    background: radial-gradient(
        circle,
        rgba(56, 189, 248, 0.18) 0%,
        rgba(27, 49, 71, 0.14) 36%,
        rgba(6, 13, 20, 0) 72%
    );
    mix-blend-mode: screen;
}

#mouse-core {
    width: 120px;
    height: 120px;
    margin-left: -60px;
    margin-top: -60px;
    background: radial-gradient(
        circle,
        rgba(230, 242, 255, 0.28) 0%,
        rgba(56, 189, 248, 0.14) 45%,
        transparent 75%
    );
    mix-blend-mode: screen;
}

body.torch-active #mouse-spotlight,
body.torch-active #mouse-core {
    opacity: 1;
}

/* Overhead Stage Truss Fixtures & Dynamic Light Cones */
.truss-fixture {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2px;
}

.truss-lens {
    width: 14px;
    height: 6px;
    border-radius: 0 0 999px 999px;
    background: #E6F2FF;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.9), 0 0 24px rgba(230, 242, 255, 0.65);
    opacity: 0.72;
}

.truss-cone {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 190px;
    height: 520px;
    margin-left: -95px;
    transform-origin: top center;
    clip-path: polygon(45% 0%, 55% 0%, 100% 100%, 0% 100%);
    background: linear-gradient(
        to bottom,
        var(--fixture-gel, rgba(56, 189, 248, 0.2)) 0%,
        rgba(56, 189, 248, 0.06) 45%,
        transparent 100%
    );
    opacity: 0.45;
    transition: opacity 0.4s ease;
    will-change: transform;
}

/* Automatic Idle Sweeping Stage Beams */
#idle-stage-beams {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

body.stage-idle #idle-stage-beams {
    opacity: 1;
}

.stage-sweep-beam {
    position: absolute;
    top: -40px;
    width: 34vw;
    min-width: 260px;
    height: 115vh;
    transform-origin: top center;
    clip-path: polygon(46% 0%, 54% 0%, 100% 100%, 0% 100%);
    mix-blend-mode: screen;
    pointer-events: none;
}

#beam-left {
    left: 12%;
    background: linear-gradient(
        to bottom,
        rgba(56, 189, 248, 0.22) 0%,
        rgba(230, 242, 255, 0.08) 42%,
        transparent 88%
    );
    animation: starlight-sweep-left 9.5s ease-in-out infinite alternate;
}

#beam-right {
    right: 12%;
    background: linear-gradient(
        to bottom,
        rgba(129, 140, 248, 0.20) 0%,
        rgba(34, 211, 238, 0.08) 42%,
        transparent 88%
    );
    animation: starlight-sweep-right 11s ease-in-out infinite alternate;
}

@keyframes starlight-sweep-left {
    0%   { transform: rotate(-28deg); }
    100% { transform: rotate(24deg); }
}

@keyframes starlight-sweep-right {
    0%   { transform: rotate(28deg); }
    100% { transform: rotate(-24deg); }
}

/* =========================================================
   3. FLOATING TRANSLUCENT HEADER + DMX ILLUMINATED NAV ITEMS
   ========================================================= */
#main-header {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(6, 13, 20, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(230, 242, 255, 0.08);
    transition:
        top 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        max-width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        border-radius 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

#main-header.scrolled {
    top: 12px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 1240px;
    border-radius: 9999px;
    background-color: rgba(14, 27, 41, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(230, 242, 255, 0.14);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(56, 189, 248, 0.12);
}

#main-header.scrolled .header-inner {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

/* DMX Nav Items: Spring Hover / Touch Lift */
.dmx-nav-item {
    transition:
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        color 0.25s ease,
        text-shadow 0.25s ease,
        box-shadow 0.25s ease;
}

.dmx-nav-item:hover,
.dmx-nav-item:focus-visible,
.dmx-nav-item.is-touched {
    transform: translateY(-2px);
    text-shadow: 0 0 14px var(--item-gel, rgba(56, 189, 248, 0.65));
}

/* Gliding DMX Spotlight Pill & Luminous Underline Bar */
#dmx-nav-pill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 9999px;
    pointer-events: none;
    opacity: 0;
    background: rgba(var(--dmx-rgb, 56, 189, 248), 0.16);
    border: 1px solid rgba(var(--dmx-rgb, 56, 189, 248), 0.35);
    box-shadow: 0 0 18px rgba(var(--dmx-rgb, 56, 189, 248), 0.28);
    transition:
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

#dmx-nav-underline {
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 2px;
    border-radius: 9999px;
    pointer-events: none;
    opacity: 0;
    background: var(--dmx-gel, #38BDF8);
    box-shadow: 0 0 10px var(--dmx-gel, #38BDF8), 0 0 20px var(--dmx-gel, #38BDF8);
    transition:
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

/* =========================================================
   4. FULL-BLEED HERO SLIDER: LEFT PROGRESSIVE SEMI-BLUR,
      MIDNIGHT GRADIENT SCRIM & 7S KEN BURNS ZOOM
   ========================================================= */
.heroSwiper .swiper-slide img,
.heroSwiper .swiper-slide video,
.heroSwiper .swiper-slide iframe {
    filter: brightness(1) saturate(1.06);
}

.heroSwiper .swiper-slide .hero-main-img {
    transform: scale(1);
    transition: transform 7s ease-out;
    will-change: transform;
}

.heroSwiper .swiper-slide.swiper-slide-active .hero-main-img {
    transform: scale(1.07);
}

.hero-left-blur-mask {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    -webkit-mask-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.96) 44%,
        rgba(0, 0, 0, 0.45) 58%,
        rgba(0, 0, 0, 0) 72%
    );
    mask-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.96) 44%,
        rgba(0, 0, 0, 0.45) 58%,
        rgba(0, 0, 0, 0) 72%
    );
}

.hero-left-gradient-scrim {
    background:
        linear-gradient(
            90deg,
            rgba(6, 13, 20, 0.98) 0%,
            rgba(6, 13, 20, 0.95) 38%,
            rgba(6, 13, 20, 0.78) 54%,
            rgba(6, 13, 20, 0.22) 68%,
            rgba(6, 13, 20, 0) 82%
        ),
        linear-gradient(
            to top,
            #060D14 0%,
            rgba(6, 13, 20, 0.7) 10%,
            transparent 24%
        );
}

@media (max-width: 767px) {
    .hero-left-blur-mask {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        -webkit-mask-image: linear-gradient(
            165deg,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.8) 45%,
            rgba(0, 0, 0, 0.98) 100%
        );
        mask-image: linear-gradient(
            165deg,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.8) 45%,
            rgba(0, 0, 0, 0.98) 100%
        );
    }

    .hero-left-gradient-scrim {
        background:
            linear-gradient(
                90deg,
                rgba(6, 13, 20, 0.92) 0%,
                rgba(6, 13, 20, 0.72) 58%,
                rgba(6, 13, 20, 0.22) 100%
            ),
            linear-gradient(
                to top,
                #060D14 0%,
                rgba(6, 13, 20, 0.78) 28%,
                transparent 65%
            );
    }
}

/* =========================================================
   5. .STUDIO-CARD RIM-GLOW & 2.5DEG 3D MICRO-TILT
   ========================================================= */
.studio-card {
    position: relative;
    background-color: #0E1B29;
    border: 1px solid rgba(230, 242, 255, 0.10);
    overflow: hidden;
    --card-x: 50%;
    --card-y: 50%;
    transform-style: preserve-3d;
    transition:
        transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    will-change: transform;
}

/* Radial Ice-Blue Rim Glow Following Pointer (--card-x, --card-y) */
.studio-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    background: radial-gradient(
        380px circle at var(--card-x) var(--card-y),
        rgba(56, 189, 248, 0.22) 0%,
        rgba(230, 242, 255, 0.08) 38%,
        transparent 72%
    );
    transition: opacity 0.3s ease;
}

/* Top Rim Volumetric Beam Sweep */
.studio-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 90%;
    height: 2px;
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(56, 189, 248, 0.85) 48%,
        rgba(230, 242, 255, 0.95) 72%,
        transparent 100%
    );
    transition: left 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.studio-card:hover {
    border-color: rgba(56, 189, 248, 0.52);
    box-shadow:
        0 20px 42px rgba(0, 0, 0, 0.62),
        0 0 28px rgba(56, 189, 248, 0.16);
}

.studio-card:hover::before {
    opacity: 1;
}

.studio-card:hover::after {
    left: 120%;
}

.studio-card img {
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.studio-card:hover img {
    transform: scale(1.035);
}

/* LED-Wall Shimmer on Primary CTA Buttons */
.av-btn-shimmer {
    position: relative;
    overflow: hidden;
}

.av-btn-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -130%;
    width: 65%;
    pointer-events: none;
    transform: skewX(-22deg);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.38),
        transparent
    );
    transition: left 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.av-btn-shimmer:hover::after {
    left: 145%;
}

/* =========================================================
   6. HERO SLIDER PAGINATION & PARTNER LOGO MARQUEE
   ========================================================= */
.hero-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: rgba(230, 242, 255, 0.35);
    opacity: 1;
    transition: all 0.25s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
    width: 28px;
    background: #38BDF8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.75);
}

.marquee-wrapper {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 1rem;
    animation: starlight-marquee 34s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.marquee-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 64px;
    padding: 0 1.5rem;
    border-radius: 0.75rem;
    background-color: #0E1B29;
    border: 1px solid rgba(230, 242, 255, 0.10);
    filter: grayscale(65%) brightness(0.85);
    transition: border-color 0.25s ease, transform 0.25s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.marquee-badge:hover {
    transform: translateY(-2px);
    filter: grayscale(0%) brightness(1.1);
    border-color: rgba(56, 189, 248, 0.65);
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.22);
}

@keyframes starlight-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* =========================================================
   7. LIGHTBOX MODAL & FLOATING SCROLL-TO-TOP BUTTON
   ========================================================= */
#gallery-lightbox {
    transition: opacity 0.25s ease;
}

#gallery-lightbox.lightbox-open {
    display: flex;
    opacity: 1;
}

#scroll-top-btn.scroll-top-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#scroll-top-btn:hover {
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    #av-preloader,
    #stage-lighting-layer {
        display: none !important;
    }
    .heroSwiper .swiper-slide.swiper-slide-active .hero-main-img {
        transform: scale(1) !important;
    }
    .marquee-track {
        animation: none;
        flex-wrap: wrap;
        width: auto;
    }
    .marquee-group[aria-hidden="true"] {
        display: none;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #060D14; }
::-webkit-scrollbar-thumb { background: #1B3147; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #38BDF8; }
