        /* Basic Reset and Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html, body {
            height: 100%;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
            background-color: #0A0A0A; /* Dark background */
            overflow: hidden; 
            position: relative;
        }

        /* Wrapper for the central content that will be inverted */
        #content-wrapper {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            position: relative;
            z-index: 1; /* BEHIND the liquid container */
        }

        /* Container for the text (h1) */
        #yellkell-text-container {
            padding: 20px;
        }

        /* The "yellkell" text element */
        #yellkell-text {
            font-size: clamp(3rem, 9vw, 8rem);
            font-weight: 500;
            line-height: 1;
            text-align: center;
            letter-spacing: -0.01em;
            white-space: nowrap;
            color: #FFFFFF; /* Light text for dark background */
            transition: transform 2.5s cubic-bezier(0.25, 1, 0.5, 1);
            will-change: transform;
        }
        
        /* Individual letter styling and animation */
        #yellkell-text span {
            display: inline-block;
            opacity: 0; 
            transform-origin: center center;
            will-change: transform, opacity; 
            animation-duration: 0.7s;
            animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
            animation-fill-mode: forwards;
            /* Ensure consistent positioning after animation */
            position: relative;
            backface-visibility: hidden;
            /* Force exact final position */
            transform: translate3d(0, 0, 0) rotateY(0deg) scale(1);
        }
        
        /* Stabilize letters after animation completes */
        #yellkell-text span.stable {
            transform: translate3d(0, 0, 0) rotateY(0deg) scale(1) !important;
            opacity: 1 !important;
            animation: none !important;
        }

        @keyframes letterAppearSpin {
            0% { 
                opacity: 0; 
                transform: translate3d(0, 25px, 0) rotateY(-90deg) scale(0.8); 
            }
            70% { 
                opacity: 0.8; 
                transform: translate3d(0, -8px, 0) rotateY(10deg) scale(1.1); 
            }
            100% { 
                opacity: 1; 
                transform: translate3d(0, 0, 0) rotateY(0deg) scale(1); 
            }
        }

        @keyframes letterFastBlurFlash {
            0% { opacity: 0; filter: blur(6px); transform: scale(0.7); }
            50% { opacity: 1; filter: blur(0px); transform: scale(1); }
            100% { opacity: 0; filter: blur(6px); transform: scale(0.7); }
        }

        /* Links container at the bottom */
        #links-container {
            position: fixed;
            bottom: 30px;
            left: 0;
            width: 100%;
            padding: 0 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            opacity: 0;
            transition: opacity 1s ease 0.5s;
            z-index: 3; /* On top layer with button */
        }

        .icon-link {
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 50px;
            border-radius: 8px;
            border: 2px solid rgba(255, 255, 255, 0.2);
            background: rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(8px);
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
        }

        .icon-link:hover {
            transform: scale(1.05);
            border-color: rgba(255, 255, 255, 0.4);
            background: rgba(0, 0, 0, 0.4);
        }

        .icon-link.home-link:hover {
            border-color: rgba(243, 156, 18, 0.6);
            background: rgba(243, 156, 18, 0.1);
            box-shadow: 0 0 15px rgba(243, 156, 18, 0.3);
        }

        .icon-link.experimental-link:hover {
            border-color: rgba(160, 0, 255, 0.6);
            background: rgba(160, 0, 255, 0.1);
            box-shadow: 0 0 15px rgba(160, 0, 255, 0.3);
        }
        
        .icon-link svg {
            width: 20px;
            height: 20px;
            display: block;
        }

        .icon-link i {
            font-size: 20px;
            display: block;
        }

        /* --- Refined Icon Color System --- */
        .icon-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 50px;
        }

        .icon-color, .icon-gray {
            position: absolute;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.4s ease;
        }

        .icon-gray {
            color: rgba(255, 255, 255, 0.4);
            z-index: 2;
        }

        .icon-color {
            color: rgba(255, 255, 255, 0.6);
            z-index: 1;
            opacity: 0;
        }

        .icon-link:hover .icon-gray {
            opacity: 0;
        }

        .icon-link:hover .icon-color {
            opacity: 1;
        }

        .home-link .icon-color {
            color: #f39c12;
        }

        .experimental-link .icon-color {
            color: #a000ff;
        }

        /* --- THE INVERSION LAYER --- */
        #liquid-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 2; /* ABOVE the content, below the button */
            pointer-events: none;
            mix-blend-mode: difference; /* This inverts everything behind it */
        }

        /* The ink blobs start as borders, become filled. The blend mode does the work. */
        .ink-blob {
            position: absolute;
            background: #FFFFFF; /* White blobs */
            border-radius: 50%; /* Make them circular */
            transform: translate(-50%, -50%) scale(0); /* Initial state */
            box-sizing: border-box;
            will-change: transform, opacity;
        }

        .ink-blob.small { 
            width: 15vmin; 
            height: 15vmin; 
        }
        .ink-blob.medium { 
            width: 30vmin; 
            height: 30vmin; 
        }
        .ink-blob.large { 
            width: 45vmin; 
            height: 45vmin; 
        }

        

        /* Remove CSS keyframes - using JS animation instead */

        /* --- UI ON TOP --- */
        #toggle-button {
            position: fixed;
            top: 75%; /* Lowered position further */
            left: 50%;
            transform: translate(-50%, 0);
            width: 50px; /* Made slightly smaller */
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.3s ease, transform 0.3s ease;
            pointer-events: none; /* Not clickable when invisible */
            
            /* Redesigned as a solid ring that is ALWAYS white on dark bg */
            background: transparent;
            border: 8px solid #FFFFFF; /* Thicker border */
        }

        #toggle-button:hover {
            transform: translate(-50%, 0) scale(1.1);
        }

        #toggle-button.visible {
            opacity: 1;
            pointer-events: auto; /* Clickable when visible */
        }
        
        /* --- Animation State --- */
        body.liquid-active #yellkell-text {
            transform: scale(1.25);
        }
        
        body.liquid-active .svg3-title {
            transform: scale(1.25);
        }
        
        /* Ensure smooth transition after animations complete */
        #yellkell-text.animation-complete {
            transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
        }

        /* --- Mobile Responsiveness --- */
        @media (max-width: 768px) {
            #links-container {
                padding: 0 20px;
            }

            #toggle-button {
                /* Move button slightly higher on mobile */
                top: 70%; 
                width: 55px; /* Slightly larger touch target */
                height: 55px;
            }
        }

        /* --- Performance fallback for reduced-motion preference --- */
        @media (prefers-reduced-motion: reduce) {
            /* Disable the gooey liquid overlay */
            #liquid-container {
                display: none !important;
            }

            /* Hide the interaction button only when the effect itself is removed */
            #toggle-button {
                display: none !important;
            }

            /* Keep the text readable without scale jumps */
            body.liquid-active #yellkell-text {
                transform: none !important;
            }
        }

        /* --- Text Variant System --- */
        .text-variant {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.6s ease, visibility 0.6s ease;
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .text-variant.active {
            opacity: 1;
            visibility: visible;
        }



        /* --- SVG3 Gradient Text Styles --- */
        .svg3-title {
            font: 900 clamp(48px, 12vw, 160px)/1.4 system-ui, -apple-system, 'Segoe UI', Roboto, Inter, sans-serif;
            text-transform: lowercase;
            background: linear-gradient(90deg, #F2385A, #F5A503, #E9F1DF, #56D9CD, #3AA1BF, #F2385A);
            background-size: 200% 100%;
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            animation: svg3-gradient-move 3s linear infinite;
            letter-spacing: 0.02em;
            padding: 0.1em 0;
            transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
            will-change: transform;
        }
        
        @keyframes svg3-gradient-move {
            to { background-position: 200% center; }
        }

        /* --- Text Effect Toggle Styles --- */
        #text-effect-toggle {
            position: fixed;
            top: 30px;
            right: 30px;
            width: 40px;
            height: 40px;
            border-radius: 8px;
            border: 2px solid rgba(255, 255, 255, 0.2);
            background: rgba(0, 0, 0, 0.3);
            color: rgba(255, 255, 255, 0.4);
            cursor: pointer;
            transition: all 0.4s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            backdrop-filter: blur(8px);
            z-index: 10;
            opacity: 0;
            transform-origin: center center;
        }

        #text-effect-toggle.visible {
            opacity: 1;
        }

        #text-effect-toggle:hover {
            border-color: rgba(255, 255, 255, 0.4);
            color: rgba(255, 255, 255, 0.7);
            transform: scale(1.05);
            background: rgba(0, 0, 0, 0.4);
        }

        #text-effect-toggle.gradient-active {
            border-color: rgba(243, 56, 90, 0.5);
            color: #F2385A;
            background: rgba(243, 56, 90, 0.1);
            box-shadow: 0 0 15px rgba(243, 56, 90, 0.3);
        }

        #text-effect-toggle.gradient-active:hover {
            border-color: rgba(243, 56, 90, 0.7);
            color: #F2385A;
            transform: scale(1.05);
        }

        .toggle-icon {
            pointer-events: none;
            transition: transform 0.3s ease;
            transform-origin: center center;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            width: 100%;
            height: 100%;
        }

        #text-effect-toggle.gradient-active .toggle-icon {
            transform: rotate(180deg);
        }

        /* Adjust for mobile */
        @media (max-width: 768px) {
            #text-effect-toggle {
                top: 20px;
                right: 20px;
                width: 35px;
                height: 35px;
                font-size: 16px;
            }

            #links-container {
                padding: 0 20px;
                bottom: 20px;
            }

            .icon-link {
                width: 45px;
                height: 45px;
            }

            .icon-wrapper {
                width: 45px;
                height: 45px;
            }

            .icon-link svg {
                width: 18px;
                height: 18px;
            }

            .icon-link i {
                font-size: 18px;
            }
        }