* { margin: 0; padding: 0; box-sizing: border-box; }
        :root {
            --text-color: #ffffff;
            --accent-color: #fd5457;
            --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        }
        body, html { width: 100%; height: 100%; font-family: var(--font-main); color: var(--text-color); overflow: hidden; background-color: #000; overscroll-behavior-y: none; }
        #webgl-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100dvh; z-index: 0; pointer-events: none; }

        .scroll-container { position: absolute; top: 0; left: 0; width: 100%; height: 100dvh; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; z-index: 1; scroll-snap-type: y mandatory; -webkit-overflow-scrolling: touch; }
        .snap-section { width: 100%; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; }

        /* UI Layer */
        #ui-layer { position: fixed; top: 0; left: 0; width: 100%; height: 100dvh; z-index: 10; pointer-events: none; }
        header { display: flex; justify-content: space-between; align-items: center; padding: 2rem 4rem; pointer-events: auto; }
        .logo-area { display: flex; flex-direction: column; }
        .logo { font-weight: 800; font-size: 1.5rem; letter-spacing: 2px; cursor: pointer; }
        .logo span { color: var(--accent-color); }
        .logo-img { height: 118px; width: auto; margin-top: 0.4rem; margin-left: 7.6rem; object-fit: contain; align-self: flex-start; will-change: filter; }
        .scroll-progress { position: absolute; right: 4rem; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 1.5rem; pointer-events: auto; }
        .dot { width: 8px; height: 8px; border-radius: 50%; background-color: var(--text-color); opacity: 0.3; cursor: pointer; transition: 0.3s; }
        .dot.active { opacity: 1; transform: scale(1.5); }
        .scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 1rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.7; }
        .scroll-line { width: 1px; height: 40px; background-color: var(--text-color); }
        /* Removed the transform so it stops pulling upward. Adjust 'top: 40%' to your exact liking */
        .content-overlay { position: absolute; top: 45%; left: 10%; max-width: 500px; pointer-events: auto; transition: opacity 0.1s linear; }
        .content-overlay h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 1rem; }

        #room-ui-layer { position: fixed; top: 0; left: 0; width: 100%; height: 100dvh; z-index: 9; pointer-events: none; opacity: 0; transition: opacity 0.5s linear; }
        .bottom-text { position: absolute; bottom: 8%; width: 100%; text-align: center; font-family: 'Impact', 'Arial Black', sans-serif; font-size: 2vw; text-transform: uppercase; z-index: 10; letter-spacing: 1px; color: var(--text-color); will-change: opacity; transition: opacity 0.5s ease; }

        /* --- Dynamic Archive Button --- */
        .brutalist-coming-soon {
            display: inline-block;
            margin-top: 2rem;
            padding: 1rem 2.5rem;
            border: 2px solid var(--accent-color);
            color: var(--accent-color);
            font-family: var(--font-main);
            font-size: 0.8rem;
            font-weight: 800;
            letter-spacing: 2px;
            text-transform: uppercase;
            text-decoration: none;
            cursor: none; /* Keeps your custom cursor active */
            transition: background-color 0.3s, color 0.3s;
        }

        .brutalist-coming-soon:hover {
            background-color: var(--accent-color);
            color: #010101; /* High contrast dark text on hover */
        }
        /* SMOKEY LOGIN BUTTON */
        #auth-section {
            position: fixed; top: 0; left: 0; width: 100%; height: 100dvh;
            z-index: 8; pointer-events: none; opacity: 0;
            transition: opacity 0.8s ease;
            display: flex; align-items: center; justify-content: center;
        }
        /* Wrapper stays pass-through so wheel/touch reaches the scroll-container
           underneath (fixes "can't scroll back up on the login page").
           Only the actual buttons capture pointer events. */
        #auth-section.visible { opacity: 1; }
        #auth-section.visible .smokey-btn-wrap,
        #auth-section.visible .lusion-cta-wrap,
        #auth-section.visible .portal-wrap { pointer-events: auto; }
        #auth-section.no-interact, #auth-section.no-interact * { pointer-events: none !important; }

        .smokey-btn-wrap {
            position: relative;
            border-radius: 14px;
            overflow: hidden;
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            gap: 1.2rem;
        }
        .smokey-btn {
            position: relative;
            border-radius: 14px;
            font-size: 1rem;
            font-weight: 600;
            font-family: var(--font-main);
            overflow: hidden;
            background: none;
            border: none;
            padding: 0;
            cursor: pointer;
            letter-spacing: 2px;
            text-transform: uppercase;
        }
        .smokey-btn .smokey-canvas-wrap {
            position: absolute;
            z-index: -1;
            inset: -16px;
            transition: transform 0.3s ease, filter 0.3s ease;
        }
        .smokey-btn:hover .smokey-canvas-wrap {
            transform: scale(1.2) rotate(10deg);
            filter: brightness(1.3);
        }
        .smokey-btn .smokey-inner {
            margin: 2px;
            padding: 0.85rem 3rem;
            border-radius: 12px;
            background: rgba(0,0,0,0.55);
            transition: background 0.3s;
        }
        .smokey-btn:hover .smokey-inner { background: rgba(0,0,0,0.25); }
        .smokey-btn .smokey-label {
            color: rgba(255,255,255,0.8);
            transition: color 0.3s, transform 0.3s;
            display: block;
        }
        .smokey-btn:hover .smokey-label { color: #fff; transform: scale(1.05); }
        .smokey-divider {
            font-size: 0.65rem;
            letter-spacing: 4px;
            color: rgba(255,255,255,0.2);
            text-transform: uppercase;
        }
        #auth-tagline {
            font-size: 0.7rem;
            letter-spacing: 4px;
            text-transform: uppercase;
            color: rgba(255,255,255,0.25);
            text-align: center;
            margin-bottom: 2rem;
        }

        /* ============================================================
        LUSION-STYLE CTA 
        ============================================================ */
        .lusion-cta-wrap {
            display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
            margin-bottom: 6vh; text-align: center;
        }
        .lusion-subtitle {
            font-family: 'Courier New', monospace; 
            font-size: clamp(0.7rem, 2vw, 1rem);
            text-transform: uppercase; letter-spacing: 4px; 
            color: rgba(255,255,255,0.5);
        }
        .lusion-title {
            font-family: var(--font-main); 
            font-size: clamp(4rem, 12vw, 12rem); font-weight: 900;
            text-transform: uppercase; line-height: 0.85; letter-spacing: -0.04em;
            color: #ffffff; text-decoration: none;
            transition: color 0.4s ease, -webkit-text-stroke 0.4s ease, transform 0.4s ease;
            position: relative;
        }
        .lusion-title:hover {
            color: transparent;
            -webkit-text-stroke: 3px var(--accent-color);
            transform: scale(1.02);
        }
        .portal-wrap {
            display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
        }
        /* Brutalist modal */
        .brutalist-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100dvh; background-color: #010101; color: #ffffff; z-index: 10000; display: flex; flex-direction: column; padding: 2rem 4rem; transform: translateY(100%); transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1); overflow-y: auto; pointer-events: none; }
        .brutalist-modal.open { transform: translateY(0); pointer-events: auto; }
        .modal-header { display: flex; justify-content: space-between; align-items: center; width: 100%; }
        .close-btn { background: none; border: none; color: #fd5457; font-size: 1rem; font-family: var(--font-main); font-weight: 700; letter-spacing: 2px; cursor: pointer; text-transform: uppercase; transition: color 0.3s ease; }
        .close-btn:hover { color: #fff; }
        .modal-content { margin-top: 10vh; max-width: 1200px; display: flex; flex-direction: column; gap: 2rem; }
        .modal-content h2 { font-size: clamp(4rem, 12vw, 10rem); font-weight: 900; letter-spacing: -0.05em; line-height: 0.9; text-transform: uppercase; }
        .modal-content p { font-size: clamp(1.2rem, 3vw, 2.5rem); font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; max-width: 900px; color: rgba(255,255,255,0.8); }

        @media (max-width: 768px) {
            header { padding: 1.5rem; justify-content: center; } 
            .logo-area { align-items: center; text-align: center; }
            .logo { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
            .mobile-drop { display: block; }
            .content-overlay { left: 1.5rem; right: 1.5rem; top: 58%; }
            .content-overlay h1 { font-size: 2.5rem; }
            .content-overlay p { padding-right: 1.5rem; line-height: 1.4; } 
            
            .scroll-progress { right: 1.5rem; gap: 1rem; } .bottom-text { font-size: 4vw; bottom: 12%; }
            #crawl-track { display: none; }
            .logo-img { height: 89px; margin-left: 0; margin-top: 0.5rem; align-self: center; }

            /* --- NEW: Brutalist Modal Mobile Fixes --- */
            .brutalist-modal { padding: 2rem 1.5rem; }

            .modal-header { 
                position: relative; 
                align-items: flex-start; 
            }
            .modal-header .logo { 
                max-width: 100%; 
                line-height: 1.3; 
                align-items: flex-start;
                text-align: left;
            }
            .close-btn { 
                position: absolute; 
                right: 0; 
                top: 95px;
                font-size: 0.8rem; 
                padding: 5px; 
            }
        }

        /* ============================================================
           HAMBURGER & SIDE MENU  (GSAP-powered, exact tattoo pattern)
           ============================================================ */
        .custom-hamburger {
            position: fixed; top: 24px; right: 24px;
            width: 48px; height: 48px; border-radius: 50%;
            background-color: var(--accent-color); border: 2px solid rgba(255,255,255,0.2);
            display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
            cursor: pointer; z-index: 100005;
            box-shadow: 0 0 14px rgba(253,84,87,0.5);
            
            /* START INVISIBLE AND UNCLICKABLE */
            opacity: 0; 
            pointer-events: none; 
            
            /* The 1.5s delay is parked right here so it knows to wait during the fade-in */
            transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 2s cubic-bezier(0.25, 1, 0.5, 1) 1.5s;
        }
        .custom-hamburger:hover { transform: scale(1.05); box-shadow: 0 0 22px rgba(253,84,87,0.8); }
        .hamburger-line {
            width: 20px; height: 2px; background-color: #fff;
            transition: all 0.4s cubic-bezier(0.65, 0.05, 0, 1);
        }
        .custom-hamburger.is-active .hamburger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
        .custom-hamburger.is-active .hamburger-line:nth-child(2) { opacity: 0; }
        .custom-hamburger.is-active .hamburger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

        .side-nav-wrapper {
            display: none; position: fixed; inset: 0;
            z-index: 100002; width: 100%; height: 100vh;
        }
        .nav-overlay {
            position: absolute; inset: 0; width: 100%; height: 100%;
            background-color: rgba(0,0,0,0.6); cursor: pointer; opacity: 0;
        }
        .side-menu {
            position: absolute; top: 0; right: 0;
            width: 45vw; min-width: 320px; height: 100%; overflow: hidden;
            padding: 8em 3em; display: flex; flex-direction: column;
        }
        .menu-bg { position: absolute; inset: 0; z-index: 0; }
        .bg-panel {
            position: absolute; inset: 0;
            border-top-left-radius: 20px; border-bottom-left-radius: 20px;
        }
        .bg-panel.first  { background-color: #1a0000; }
        .bg-panel.second { background-color: #3d0000; }
        .bg-panel.third  { background-color: #6b0000; }
        .menu-inner {
            position: relative; z-index: 1; display: flex;
            flex-direction: column; justify-content: center; height: 100%; gap: 40px;
        }
        .menu-list { list-style: none; display: flex; flex-direction: column; gap: 2.5em; }
        .menu-list-item { overflow: hidden; position: relative; padding: 10px 0; }
        .menu-link { text-decoration: none; display: flex; align-items: center; gap: 24px; cursor: pointer; }
        .menu-link-heading {
            font-family: 'Helvetica Neue', Impact, sans-serif;
            font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 900;
            color: #fff; text-transform: uppercase; line-height: 0.85; letter-spacing: -0.03em;
            margin: 0; position: relative;
        }
        .eyebrow {
            font-family: 'Courier New', monospace; font-size: 1rem; font-weight: bold;
            color: rgba(255,180,180,0.5);
        }
        .menu-link-heading::before {
            content: ""; position: absolute;
            top: 50%; left: -5%; width: 110%; height: 6px;
            background-color: rgba(255,255,255,0.6);
            transform: translateY(-50%) scaleX(0); transform-origin: left;
            transition: transform 0.4s cubic-bezier(0.65, 0.05, 0, 1);
            z-index: 3; pointer-events: none;
        }
        .menu-link-heading::after {
            content: attr(data-name); position: absolute;
            top: 0; left: 0; color: #696a6a;
            clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
            transition: opacity 0.4s ease; z-index: 2; opacity: 0; pointer-events: none;
        }
        .menu-link:hover .menu-link-heading::before { transform: translateY(-50%) scaleX(1); }
        .menu-link:hover .menu-link-heading::after  { opacity: 1; }

        @media (max-width: 768px) {
            .side-menu { width: 88vw; padding: 5em 1.6em; }
            .bg-panel { border-radius: 0; }
            .menu-link-heading { font-size: clamp(2rem, 10vw, 2.8rem); }
            .menu-list { gap: 1.6em; }
        }
        /* --- Side Menu Logo --- */
        .side-menu-logo {
            position: absolute;
            top: 24px;       
            left: 24px;      
            width: 60px;     
            height: auto;
            filter: brightness(0) invert(1); /* Forces logo to pure white */
            z-index: 100003; /* Places it above the dark overlay */
            pointer-events: none; /* Prevents it from blocking clicks to the overlay */
        }
        /* ============================================================
           CUSTOM CURSOR
           ============================================================ */
        @media (pointer: fine) {
            * { cursor: none !important; } /* Hides the default system cursor */
            
            .custom-cursor {
                position: fixed;
                top: 0; left: 0;
                pointer-events: none; /* Lets you click through it */
                z-index: 9999999;
                border-radius: 50%;
                mix-blend-mode: exclusion;
                will-change: transform;
            }
            #cursor-dot {
                width: 14px;
                height: 14px;
                background-color: #e70404;
                /* NEW: Smooth transition for the scaling effect */
                transition: width 0.2s ease, height 0.2s ease, margin 0.2s ease, background-color 0.2s ease;
            }

            /* NEW: The expanded hover state */
            #cursor-dot.hover-active {
                width: 32px;
                height: 32px;
                /* Subtracts exactly half the size difference (9px) to keep it dead-center with the JS math */
                margin: -9px 0 0 -9px; 
                background-color: rgba(231, 4, 4, 0.5); /* Drops the opacity slightly so you can see what you're clicking */
            }
            #cursor-ring {
                width: 50px;
                height: 50px;
                border: 2px solid #817e7e;
                /* Added width, height, margin, and border transitions alongside the trail speed */
                transition: transform 150ms ease-out, width 0.2s ease, height 0.2s ease, margin 0.2s ease, border-color 0.2s ease;
            }

            /* NEW: Shrinks the ring inside the expanded dot */
            #cursor-ring.hover-active {
                width: 20px;
                height: 20px;
                /* Subtracts the difference (50-20=30), cuts it in half (15) to keep it dead-center */
                margin: 15px 0 0 15px; 
                border-color: #ffffff; /* Turns white to pop aggressively against the red dot */
            }
            .expand {
                animation: ringClick 0.5s forwards;
                border-color: var(--accent-color) !important;
            }
            .custom-cursor {
                opacity: 0;
                transition: opacity 0.4s ease;
            }

            body.site-loaded .custom-cursor {
                opacity: 1;
            }

            @keyframes ringClick {
                0% {
                    width: 50px; height: 50px; margin: 0; opacity: 1;
                }
                50% {
                    /* Scales up to double size. The negative margin keeps it perfectly centered on the mouse */
                    width: 100px; height: 100px; margin: -25px 0 0 -25px; opacity: 0.8;
                }
                100% {
                    width: 50px; height: 50px; margin: 0; opacity: 0;
                }
            }
        }

        /* ============================================================
           LOADER & CINEMATIC REVEAL
           ============================================================ */
        #site-loader {
            position: fixed; inset: 0; z-index: 11000;
            display: flex; justify-content: center; align-items: center;
            background: transparent; pointer-events: none;
        }
        .curtain-panel {
            position: absolute; top: 0; width: 51%; height: 100%;
            background: #010101; z-index: 11001; /* Pitch black */
            transition: transform 2s cubic-bezier(0.7, 0, 0.3, 1);
            pointer-events: auto;
        }
        .curtain-panel.left { left: 0; transform-origin: top left; }
        .curtain-panel.right { right: 0; transform-origin: top right; }
        
        /* The opening action */
        .loader-finished .curtain-panel.left { transform: translateX(-100%) skewX(-5deg); }
        .loader-finished .curtain-panel.right { transform: translateX(100%) skewX(5deg); }
        
        .loader-center-content { 
            position: relative; z-index: 11002; 
            display: flex; flex-direction: column; align-items: center; 
            opacity: 1; transition: opacity 0.8s ease;
        }
        .loader-finished .loader-center-content { opacity: 0; }
        
        #loader-logo-evolving { 
            width: 80px; margin-bottom: 20px; 
            filter: brightness(0) invert(1); /* Forces pure white */
        }
        
        .loading-ui { width: 250px; text-align: center; }
        .symmetrical-bar-container { 
            position: relative; width: 100%; height: 1px; 
            background: rgba(255, 255, 255, 0.1); margin: 15px 0; overflow: hidden; 
        }
        #loader-progress-center {
            position: absolute; left: 50%; transform: translateX(-50%);
            width: 0%; height: 100%; 
            background: var(--accent-color); /* The IJS red */
            transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
            box-shadow: 0 0 10px var(--accent-color);
        }

        /* --- THE FADE IN REVEAL --- */
        #ui-layer, #webgl-canvas, .scroll-progress {
            opacity: 0;
            transition: opacity 3s cubic-bezier(0.25, 1, 0.5, 1);
        }
        
        /* Applied via JS when the curtains start opening */
        body.site-loaded #ui-layer,
        body.site-loaded #webgl-canvas,
        body.site-loaded .scroll-progress {
            opacity: 1;
        }
        
        /* Hides the custom cursor completely on touchscreens */
        @media (pointer: coarse) {
            .custom-cursor { display: none !important; } 
        }

        /* THE REVEAL TRIGGER */
        body.site-loaded .custom-hamburger {
            opacity: 1;
            pointer-events: auto;
        }