/* --- Performance Optimization --- */
.reveal-up, .image-mask img, .parallax-text, #cursor, #cursor-follower {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translate3d(0,0,0); /* Force Hardware Acceleration */
}

/* --- Optimized Noise Texture (Static for Performance) --- */
.noise-bg {
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    background-repeat: repeat;
    opacity: 0.04;
    pointer-events: none;
    z-index: 99;
}

/* --- Custom Cursor --- */
#cursor, #cursor-follower {
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.cursor-hover #cursor-follower {
    width: 60px;
    height: 60px;
    background-color: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
}

/* --- Smooth Scroll (Lenis) --- */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

/* --- Navigation (Optimized) --- */
nav {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

nav.scrolled {
    background-color: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

/* --- Mobile Specific Refinements --- */
@media (max-width: 768px) {
    .parallax-text { display: none; }
    
    .reveal-up {
        opacity: 1 !important;
        transform: none !important;
    }

    .py-40 { padding-top: 5rem; padding-bottom: 5rem; }
    .py-60 { padding-top: 8rem; padding-bottom: 8rem; }
    
    h1 { font-size: 3rem !important; line-height: 1.1 !important; }
}

/* --- Animations Base --- */
.gsap-reveal { opacity: 0; }

.image-mask {
    overflow: hidden;
    position: relative;
    background: #111;
}

.image-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Parallax Typography --- */
.parallax-text {
    position: absolute;
    font-size: 20vw;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
    z-index: -1;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}
