:root {
    --cursor-size: 20px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #050505;
    color: #e5e5e5;
    overflow-x: hidden;
    margin: 0;
    cursor: none;
}

h1, h2, h3, .display-font {
    font-family: 'Space Grotesk', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050505;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Canvas Container */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    /* Using CSS gradient for the main page background */
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
}

.content-wrapper {
    position: relative;
    z-index: 10;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Standard Outline Text */
.outline-text {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    transition: all 0.5s ease;
}
.group:hover .outline-text,
.group.is-visible .outline-text {
    color: white;
    -webkit-text-stroke: 1px white;
}

/* --- HERO SPOTLIGHT EFFECT --- */
.spotlight-container {
    position: relative;
    width: 100%;
    /* Ensure container has some aspect ratio or width to hold SVG */
    max-width: 100%;
}

/* ... [Previous CSS remains unchanged] ... */

/* Updated Layer Styles */
.layer-top {
    opacity: 1; 
    pointer-events: none;
    /* CSS masking is removed here; handled by SVG mask attribute */
}

/* ... [Rest of CSS remains unchanged] ... */
/* Custom Cursor - Hidden on Mobile */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--cursor-size);
    height: var(--cursor-size);
    border: 1px solid white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: difference;
}
#cursor.hovered {
    width: 50px;
    height: 50px;
    background-color: white;
    border-color: transparent;
    mix-blend-mode: difference;
}

/* Hide cursor on touch devices to prevent "dot" effect */
@media (hover: none) and (pointer: coarse) {
    #cursor {
        display: none !important;
    }
    body {
        cursor: auto; /* Restore default cursor */
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Loader */
#loader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out;
}
.loader-line {
    width: 0%;
    height: 1px;
    background: white;
    transition: width 1s cubic-bezier(0.85, 0, 0.15, 1);
}

/* Mobile specific styles for studio section interactions */
@media (max-width: 768px) {
    .group.is-visible .mobile-text-white {
        color: white;
    }
    .group.is-visible .mobile-translate-x {
        transform: translateX(0.5rem); 
    }
    .group.is-visible .mobile-grid-expand {
        grid-template-rows: 1fr;
    }
    .group.is-visible .mobile-opacity-100 {
        opacity: 1;
        padding-top: 1rem; 
    }
}