:root {
    --bg-color: #000000;
    --text-color: #FFFFFF;
    --font-main: 'Space Grotesk', sans-serif;
    --accent-cyan: #00f0ff;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    height: 950vh; /* Keeps the deep scroll for the animation */
}

/* --- VISUAL FX --- */
#canvas-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    z-index: 1; pointer-events: none;
    transition: opacity 0.5s ease; 
}

.vignette-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2; pointer-events: none;
    background: radial-gradient(circle, rgba(0,0,0,0) 50%, rgba(0,0,0,0.8) 100%);
}

.grain-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 50; opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* --- TIMELINE RAIL --- */
.timeline-track {
    position: absolute; top: 0; left: 5vw; width: 2px; height: 100%;
    background: rgba(255, 255, 255, 0.15); z-index: 40;
}
.marker {
    position: absolute; left: -9px; display: flex; align-items: center; gap: 15px;
    font-family: 'Courier New', monospace; color: #fff;
}
.marker::before { content: ''; display: block; width: 20px; height: 1px; background: #fff; }

/* --- TEXT LAYOUTS (Base Desktop) --- */
.text-block {
    position: absolute;
    z-index: 20; 
    max-width: 450px;
    opacity: 0; 
    transform: translateY(30px);
    padding: 0 20px; 
    box-sizing: border-box;
}

.center-top {
    top: 15vh; left: 50%; transform: translateX(-50%);
    text-align: center; width: 100%; max-width: 900px;
    opacity: 1; 
}

.left-side { left: 18%; text-align: left; }
.right-side { right: 18%; text-align: right; }

.center-bottom {
    left: 50%; transform: translateX(-50%);
    text-align: center; width: 100%; max-width: 700px;
}

/* Typography Defaults */
.brand-name { font-size: 0.9rem; letter-spacing: 0.2em; opacity: 0.7; margin-bottom: 20px; }
.hero-title { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; margin: 0 0 20px 0; text-transform: uppercase; }
.hero-sub { font-size: 1.2rem; font-weight: 300; opacity: 0.8; }

.tag { display: block; font-family: 'Courier New', monospace; font-size: 0.8rem; margin-bottom: 10px; color: #666; }
h2 { font-size: 2.8rem; margin: 0 0 20px 0; font-weight: 400; text-transform: uppercase; }

.clean-list { list-style: none; padding: 0; margin: 0; }
.clean-list li {
    font-size: 1.3rem; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.2);
    font-weight: 300;
}

.client-row { margin-bottom: 40px; }
.client-row h3 { font-size: 2.2rem; margin: 0; font-weight: 400; }
.client-row p { margin: 5px 0 0 0; opacity: 0.6; font-family: 'Courier New', monospace; }

/* ========================================= */
/* MOBILE APP UI OVERHAUL (Media Queries)    */
/* ========================================= */

@media (max-width: 768px) {
    /* 1. Hide Desktop Elements */
    .timeline-track { display: none; }
    
    /* 2. Global Card Style for Mobile - CRYSTAL CLEAR GLASS */
    .text-block {
        /* Positioning */
        width: 88%; 
        max-width: none; 
        left: 50% !important; 
        right: auto !important;
        transform: translate(-50%, 0) !important;
        
        /* 100% TRANSPARENT (No Blur, No Fill) */
        background: transparent !important; 
        backdrop-filter: none !important;       /* Removes the blur */
        -webkit-backdrop-filter: none !important;
        
        /* Crisp, thin border to define the 'window' */
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 24px;
        padding: 32px 24px;
        box-shadow: none; 
        
        /* Text Alignment */
        text-align: left !important; 
    }

    /* 3. Hero Section */
    .center-top { 
        top: 15vh; 
        background: transparent; 
        border: none; 
        width: 100%;
        padding: 0 15px;
        text-align: center !important; 
    }
    
    .hero-title {
        font-size: 12vw; 
        line-height: 0.95;
        margin-bottom: 24px;
        letter-spacing: -0.04em;
        /* Heavy shadow is required for readability on clear glass */
        text-shadow: 0 10px 30px rgba(0,0,0,1);
    }
    
    .hero-sub {
        font-size: 1.1rem;
        line-height: 1.5;
        opacity: 1;
        font-weight: 400;
        text-shadow: 0 2px 10px rgba(0,0,0,1);
    }

    /* 4. Reposition Sections */
    section.left-side[style*="top: 130vh"] { top: 110vh !important; }
    section.right-side[style*="top: 160vh"] { top: 200vh !important; }
    section.left-side[style*="top: 280vh"] { top: 300vh !important; }
    section.right-side[style*="top: 310vh"] { top: 400vh !important; }
    
    /* 5. List Styles - High Contrast */
    .clean-list li {
        font-size: 1.1rem;
        padding: 18px 0;
        border-bottom: 1px solid rgba(255,255,255,0.2); /* Brighter border */
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #ffffff;
        text-shadow: 0 2px 5px rgba(0,0,0,0.9); /* Shadow for legibility */
        font-weight: 500;
    }
    
    .clean-list li::after {
        content: '→';
        font-family: 'Courier New', monospace;
        opacity: 0.8;
        text-shadow: none;
    }

    /* 6. Selected Work */
    .center-bottom { 
        top: 500vh !important; 
        background: transparent; 
        border: none; 
        padding: 0;
        width: 90%;
    }
    
    .client-row {
        background: transparent; 
        backdrop-filter: none;
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 16px;
        padding: 24px;
        margin-bottom: 16px;
        text-align: left;
    }
    .client-row h3 { 
        font-size: 1.8rem; margin-bottom: 4px; 
        text-shadow: 0 2px 10px rgba(0,0,0,1);
    }
    .client-row p {
        opacity: 1;
        text-shadow: 0 2px 8px rgba(0,0,0,1);
        font-weight: 400;
    }

    /* 7. Footer Sections */
    section[style*="top: 600vh"] { 
        top: 620vh !important; 
        background: transparent; 
        border: none; 
        text-align: center !important; 
    }
    
    section[style*="top: 750vh"] { 
        top: 720vh !important; 
        background: transparent; 
        border: none; 
        text-align: center !important; 
    }

    /* 8. UI Elements */
    .tag {
        display: inline-block;
        font-size: 0.75rem;
        letter-spacing: 0.15em;
        margin-bottom: 16px;
        border: 1px solid var(--accent-cyan);
        padding: 6px 12px;
        border-radius: 50px; 
        color: var(--accent-cyan);
        text-transform: uppercase;
        background: rgba(0,0,0,0.6); /* Keep small dark backing for contrast on tags */
        backdrop-filter: none;
        text-shadow: none;
        font-weight: 600;
    }
    
    h2 { 
        font-size: 2.2rem; 
        margin-bottom: 20px; 
        text-shadow: 0 4px 20px rgba(0,0,0,1); /* Deep shadow */
    }
}