:root {
            --bg: #050505;
            --surface: #0f0f0f;
            --text-main: #e0e0e0;
            --text-muted: #999;
            --accent: #fff; 
            --border: rgba(255,255,255,0.1);
            --focus-color: #4d9fff;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        /* ACCESSIBILITY: Visible Focus States */
        *:focus-visible {
            outline: 2px solid var(--focus-color);
            outline-offset: 4px;
        }

        body {
            background-color: var(--bg);
            color: var(--text-main);
            font-family: 'Space Grotesk', sans-serif;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            line-height: 1.6;
        }

        /* Skip Link for Screen Readers */
        .skip-link {
            position: absolute;
            top: -40px;
            left: 0;
            background: var(--accent);
            color: var(--bg);
            padding: 8px;
            z-index: 10001;
            transition: top 0.3s;
            text-decoration: none;
            font-weight: bold;
        }
        .skip-link:focus { top: 0; }

        /* Grain Overlay */
        .noise {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            pointer-events: none;
            z-index: 9000;
            opacity: 0.04;
            background: url('https://grainy-gradients.vercel.app/noise.svg');
        }

        /* CUSTOM CURSOR (Desktop Only) */
        @media (hover: hover) and (pointer: fine) {
            body { cursor: none; }
            .cursor-dot, .cursor-outline {
                position: fixed;
                top: 0; left: 0;
                transform: translate(-50%, -50%);
                border-radius: 50%;
                z-index: 9999;
                pointer-events: none;
            }
            .cursor-dot {
                width: 6px; height: 6px;
                background-color: var(--accent);
            }
            .cursor-outline {
                width: 40px; height: 40px;
                border: 1px solid rgba(255,255,255,0.5);
                transition: width 0.2s, height 0.2s, background-color 0.2s;
            }
        }
        
        @media (hover: none) {
            .cursor-dot, .cursor-outline { display: none; }
        }

        /* LAYOUT UTILITIES */
        .container {
            width: 90%;
            max-width: 1400px;
            margin: 0 auto;
        }
        
        .section-spacer { padding: 8rem 0; }

        h2.section-title {
            font-family: 'Unbounded', sans-serif;
            font-size: clamp(2rem, 4vw, 3rem);
            margin-bottom: 3rem;
            text-transform: uppercase;
            border-top: 1px solid var(--border);
            padding-top: 1rem;
            display: inline-block;
        }

        /* HERO SECTION */
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 2rem 0;
            position: relative;
            z-index: 10;
        }

        .logo {
            font-family: 'Unbounded', sans-serif;
            font-weight: 700;
            font-size: 1.25rem;
            letter-spacing: -1px;
            text-decoration: none;
            color: var(--text-main);
        }

        .hero {
            min-height: 85vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .hero h1 {
            font-family: 'Unbounded', sans-serif;
            font-size: clamp(3.5rem, 11vw, 9rem);
            line-height: 0.9;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: -0.04em;
            margin-bottom: 2rem;
            will-change: transform, opacity;
        }

        .hero-line {
            display: block;
            overflow: hidden;
        }
        
        .hero-line span {
            display: block;
            transform: translateY(100%);
        }

        .hero h1 span:hover {
            -webkit-text-stroke: 1px var(--accent);
            color: transparent;
            transition: 0.3s;
        }

        .hero-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
            align-items: center;
            margin-top: 2rem;
        }

        .tags {
            display: flex;
            gap: 1rem;
            font-family: 'Unbounded', sans-serif;
            font-size: 0.9rem;
            color: var(--text-muted);
            text-transform: uppercase;
        }

        /* BUTTONS */
        .magnetic-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 1rem 2rem;
            background: transparent;
            border: 1px solid var(--border);
            border-radius: 100px;
            color: var(--text-main);
            text-decoration: none;
            font-family: 'Unbounded', sans-serif;
            font-size: 0.9rem;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .magnetic-btn::after {
            content: '';
            position: absolute;
            background: var(--text-main);
            width: 100%; height: 100%;
            top: 100%; left: 0;
            transition: top 0.3s cubic-bezier(0.19, 1, 0.22, 1);
            z-index: -1;
        }

        .magnetic-btn:hover {
            color: var(--bg);
            border-color: transparent;
        }
        .magnetic-btn:hover::after { top: 0; }

        /* MARQUEE */
        .marquee-section {
            padding: 3rem 0;
            border-top: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
            overflow: hidden;
            white-space: nowrap;
            background: var(--bg);
        }
        .marquee-content {
            display: inline-block;
            animation: scroll 25s linear infinite;
        }
        .marquee-item {
            font-family: 'Unbounded', sans-serif;
            font-size: clamp(2rem, 5vw, 4rem);
            font-weight: 800;
            color: #1a1a1a;
            margin-right: 4rem;
            text-transform: uppercase;
            transition: color 0.3s;
        }
        .marquee-item:hover { color: var(--accent); }

        @keyframes scroll {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        /* PHILOSOPHY / ABOUT */
        .about-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
        }
        
        .big-text {
            font-size: clamp(1.2rem, 2.5vw, 2rem);
            line-height: 1.4;
            max-width: 900px;
        }
        
        .big-text span {
            color: var(--text-muted);
        }
        
        .highlight { color: var(--accent) !important; }

        /* PROJECTS GRID */
        .project-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }

        .project-card {
            background: var(--surface);
            border: 1px solid var(--border);
            padding: 2rem;
            border-radius: 12px;
            transition: transform 0.3s, border-color 0.3s;
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            height: 100%;
            opacity: 0;
            transform: translateY(30px);
        }

        .project-card:hover {
            border-color: var(--accent);
            transform: translateY(-5px);
        }

        .card-header h3 {
            font-family: 'Unbounded', sans-serif;
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
        }
        
        .card-tags {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            margin-bottom: 1.5rem;
        }
        
        .tag {
            font-size: 0.75rem;
            background: rgba(255,255,255,0.05);
            padding: 4px 10px;
            border-radius: 4px;
            color: var(--text-muted);
        }

        .card-desc {
            color: var(--text-muted);
            margin-bottom: 2rem;
            font-size: 1rem;
        }

        .card-link {
            font-family: 'Unbounded', sans-serif;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        /* FOOTER */
        .footer {
            padding: 4rem 0;
            border-top: 1px solid var(--border);
            text-align: center;
        }
        
        .footer-links {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            margin-bottom: 3rem;
        }

        .footer-link {
            font-family: 'Unbounded', sans-serif;
            font-size: clamp(2rem, 5vw, 4rem);
            color: var(--text-muted);
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .footer-link:hover { color: var(--accent); }

        /* MEDIA QUERIES */
        @media (min-width: 768px) {
            .about-grid { grid-template-columns: 1fr 2fr; }
            .hero-meta { flex-direction: row; }
        }

        /* REDUCED MOTION */
        @media (prefers-reduced-motion: reduce) {
            * { animation: none !important; transition: none !important; }
            .marquee-content { animation: none; display: flex; flex-wrap: wrap; gap: 1rem; }
            .hero h1 span, .project-card { opacity: 1 !important; transform: none !important; }
        }
