        :root {
            --bg: #08090b;
            --surface: #12141a;
            --surface-2: #1a1d26;
            --text: #d0cec9;
            --text-heading: #eae8e3;
            --text-muted: #8a8880;
            --accent: #e8c547;
            --accent-dim: rgba(232, 197, 71, 0.12);
            --green: #4ade80;
            --blue: #60a5fa;
            --border: rgba(255, 255, 255, 0.08);
            --nav-bg: rgba(8, 9, 11, 0.88);
            --grain-opacity: 0.4;
            --font-display: 'Instrument Serif', Georgia, serif;
            --font-body: 'Outfit', system-ui, sans-serif;
            --font-mono: 'JetBrains Mono', 'Courier New', monospace;
            --radius: 12px;
        }

        [data-theme="light"] {
            --bg: #f5f4f0;
            --surface: #ffffff;
            --surface-2: #ece9e3;
            --text: #3a3835;
            --text-heading: #1a1815;
            --text-muted: #6b6860;
            --accent: #b8941a;
            --accent-dim: rgba(184, 148, 26, 0.12);
            --green: #16a34a;
            --blue: #2563eb;
            --border: rgba(0, 0, 0, 0.1);
            --nav-bg: rgba(245, 244, 240, 0.9);
            --grain-opacity: 0.15;
        }

        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        html { scroll-behavior: smooth; }

        body {
            background: var(--bg);
            color: var(--text);
            font-family: var(--font-body);
            font-size: 16px;
            line-height: 1.6;
            overflow-x: hidden;
        }

        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
            pointer-events: none;
            z-index: 9999;
            opacity: var(--grain-opacity);
        }

        .container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
        .section { padding: 72px 0; }

        .section-label {
            font-family: var(--font-mono);
            font-size: 11px;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            color: var(--accent);
            margin-bottom: 16px;
        }

        .section-title {
            font-family: var(--font-display);
            font-size: clamp(28px, 4vw, 44px);
            font-weight: 400;
            line-height: 1.15;
            margin-bottom: 48px;
        }

        a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
        a:hover { opacity: 0.8; }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            border-radius: 8px;
            font-family: var(--font-body);
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
            border: none;
        }
        .btn-primary { background: var(--accent); color: #0a0a0a; }
        .btn-primary:hover { opacity: 0.9; transform: translateY(-1px); color: #0a0a0a; }
        .btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
        .btn-outline:hover { border-color: var(--accent); color: var(--accent); }

        .card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 24px;
            transition: border-color 0.2s, transform 0.2s;
        }
        .card:hover { border-color: rgba(232, 197, 71, 0.25); transform: translateY(-2px); }

        /* NAV */
        nav {
            position: fixed;
            top: 0; left: 0; right: 0;
            z-index: 100;
            background: var(--nav-bg);
            backdrop-filter: blur(16px);
            border-bottom: 1px solid var(--border);
            transition: background 0.3s;
        }
        .nav-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 60px;
        }
        .nav-brand {
            font-family: var(--font-display);
            font-size: 18px;
            color: var(--text);
            text-decoration: none;
        }
        .nav-links {
            display: flex;
            align-items: center;
            gap: 4px;
            list-style: none;
        }
        .nav-links a {
            color: var(--text-muted);
            font-size: 14px;
            padding: 6px 12px;
            border-radius: 6px;
            transition: color 0.2s;
        }
        .nav-links a:hover { color: var(--text); }
        .nav-links .nav-cta {
            background: var(--accent);
            color: #0a0a0a;
            font-weight: 600;
            padding: 6px 16px;
            border-radius: 6px;
        }
        .nav-links .nav-cta:hover { opacity: 0.9; color: #0a0a0a; }
        .nav-toggle {
            display: none;
            background: none;
            border: none;
            color: var(--text);
            font-size: 20px;
            cursor: pointer;
        }

        /* HERO */
        #hero { padding: 120px 0 56px; }
        .hero-inner {
            display: grid;
            grid-template-columns: 1fr 380px;
            gap: 56px;
            align-items: center;
        }
        .hero-image img {
            width: 100%;
            aspect-ratio: 4/5;
            object-fit: cover;
            object-position: top;
            border-radius: 20px;
            box-shadow: 0 24px 64px rgba(0,0,0,0.25);
        }
        .hero-eyebrow {
            font-family: var(--font-mono);
            font-size: 12px;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--accent);
            margin-bottom: 20px;
        }
        .hero-name {
            font-family: var(--font-display);
            font-size: clamp(44px, 7vw, 80px);
            font-weight: 400;
            line-height: 1.05;
            margin-bottom: 22px;
        }
        .hero-title {
            font-size: clamp(16px, 2vw, 20px);
            color: var(--text-muted);
            margin-bottom: 36px;
            font-weight: 300;
            max-width: 560px;
        }
        .hero-title .highlight { color: var(--text); font-weight: 500; }
        .hero-stats {
            display: flex;
            flex-wrap: wrap;
            gap: 32px;
            margin-bottom: 40px;
        }
        .hero-stat { display: flex; flex-direction: column; }
        .hero-stat-value {
            font-family: var(--font-display);
            font-size: 32px;
            color: var(--accent);
            line-height: 1;
        }
        .hero-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
        .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

        /* ABOUT */
        .bento-grid {
            display: grid;
            grid-template-columns: repeat(12, 1fr);
            gap: 16px;
        }
        .bento-bio { grid-column: span 7; }
        .bento-photo { grid-column: span 5; }
        .bento-focus { grid-column: span 4; }
        .bento-current { grid-column: span 4; }
        .bento-stats { grid-column: span 4; }

        .bento-photo .card {
            padding: 0;
            overflow: hidden;
            height: 100%;
            min-height: 280px;
        }
        .bento-photo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .focus-tag {
            display: inline-block;
            background: var(--accent-dim);
            color: var(--accent);
            font-size: 12px;
            font-family: var(--font-mono);
            padding: 4px 10px;
            border-radius: 20px;
            margin: 3px;
        }

        .stat-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 11px 0;
            border-bottom: 1px solid var(--border);
        }
        .stat-row:last-child { border-bottom: none; }
        .stat-row-label { font-size: 13px; color: var(--text-muted); }
        .stat-row-value { font-family: var(--font-mono); color: var(--accent); font-size: 13px; }

        .current-badge {
            display: inline-block;
            background: rgba(74, 222, 128, 0.12);
            color: var(--green);
            font-size: 11px;
            font-family: var(--font-mono);
            padding: 2px 8px;
            border-radius: 20px;
            margin-top: 8px;
        }

        /* BOOKS */
        #books { background: var(--surface); }
        .book-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 24px;
        }
        .book-card { display: flex; flex-direction: column; }
        .book-cover {
            width: 110px;
            height: 150px;
            object-fit: cover;
            border-radius: 6px;
            margin-bottom: 20px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
        }
        .book-title {
            font-family: var(--font-display);
            font-size: 22px;
            margin-bottom: 12px;
        }
        .book-meta { display: flex; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
        .book-stat {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 13px;
            color: var(--text-muted);
            font-family: var(--font-mono);
        }
        .book-stat i { color: var(--accent); font-size: 11px; }
        .book-desc {
            font-size: 15px;
            line-height: 1.7;
            color: var(--text-muted);
            margin-bottom: 20px;
            flex: 1;
        }
        .book-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

        /* WRITING */
        .writing-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
        }
        .writing-card { display: flex; flex-direction: column; }
        .writing-date {
            font-family: var(--font-mono);
            font-size: 11px;
            color: var(--text-muted);
            margin-bottom: 10px;
            letter-spacing: 0.05em;
        }
        .writing-title {
            font-size: 15px;
            font-weight: 600;
            margin-bottom: 8px;
            line-height: 1.35;
            color: var(--text);
        }
        .writing-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; flex: 1; }
        .writing-read {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            color: var(--accent);
            margin-top: 16px;
            font-weight: 500;
        }
        .writing-footer { text-align: center; margin-top: 40px; }

        /* VIDEOS */
        #videos { background: var(--surface); }
        .video-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
        }
        .video-card { display: flex; flex-direction: column; }
        .video-thumb {
            position: relative;
            width: 100%;
            aspect-ratio: 16/9;
            background: var(--surface-2);
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 14px;
            flex-shrink: 0;
        }
        .video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .video-duration {
            position: absolute;
            bottom: 8px; right: 8px;
            background: rgba(0,0,0,0.82);
            color: #fff;
            font-family: var(--font-mono);
            font-size: 11px;
            padding: 2px 6px;
            border-radius: 4px;
        }
        .video-play-overlay {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0,0,0,0);
            transition: background 0.2s;
        }
        .video-card:hover .video-play-overlay { background: rgba(0,0,0,0.35); }
        .video-play-overlay i {
            font-size: 40px;
            color: rgba(255,255,255,0);
            transition: color 0.2s;
        }
        .video-card:hover .video-play-overlay i { color: rgba(255,255,255,0.9); }
        .video-title {
            font-size: 14px;
            font-weight: 600;
            line-height: 1.35;
            color: var(--text);
            margin-bottom: 8px;
            flex: 1;
        }
        .video-meta {
            display: flex;
            gap: 12px;
            font-family: var(--font-mono);
            font-size: 11px;
            color: var(--text-muted);
        }
        .video-footer { text-align: center; margin-top: 40px; }

        /* PROJECTS */
        #projects { background: var(--surface); }
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
        }
        .project-card { display: flex; flex-direction: column; }
        .project-name {
            font-family: var(--font-mono);
            font-size: 14px;
            color: var(--accent);
            margin-bottom: 10px;
            word-break: break-all;
        }
        .project-desc {
            font-size: 14px;
            color: var(--text-muted);
            flex: 1;
            margin-bottom: 16px;
            line-height: 1.6;
        }
        .project-stats { display: flex; gap: 16px; margin-bottom: 16px; }
        .project-stat {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 13px;
            font-family: var(--font-mono);
            color: var(--text-muted);
        }
        .project-stat i { color: var(--accent); }
        .project-links { display: flex; gap: 8px; }
        .ghost-card {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            min-height: 180px;
            border-style: dashed;
        }

        /* EXPERIENCE */
        .timeline { display: flex; flex-direction: column; }
        .timeline-item {
            display: grid;
            grid-template-columns: 200px 1fr;
            gap: 32px;
            padding: 32px 0;
            border-bottom: 1px solid var(--border);
        }
        .timeline-item:last-child { border-bottom: none; }
        .timeline-period {
            font-family: var(--font-mono);
            font-size: 12px;
            color: var(--text-muted);
            margin-bottom: 8px;
        }
        .timeline-company { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
        .timeline-role { font-size: 13px; color: var(--text-muted); }
        .timeline-current {
            display: inline-block;
            background: rgba(74, 222, 128, 0.12);
            color: var(--green);
            font-size: 11px;
            font-family: var(--font-mono);
            padding: 2px 8px;
            border-radius: 20px;
            margin-top: 6px;
        }
        .timeline-desc {
            font-size: 15px;
            line-height: 1.7;
            color: var(--text-muted);
            margin-bottom: 16px;
        }
        .timeline-tags { display: flex; flex-wrap: wrap; gap: 6px; }
        .tag {
            display: inline-block;
            background: var(--surface-2);
            color: var(--text-muted);
            font-size: 12px;
            font-family: var(--font-mono);
            padding: 3px 10px;
            border-radius: 20px;
            border: 1px solid var(--border);
        }

        /* STACK */
        #stack { background: var(--surface); }
        .stack-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
            gap: 20px;
        }
        .stack-category-title {
            font-family: var(--font-mono);
            font-size: 11px;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--accent);
            margin-bottom: 14px;
        }
        .stack-items { display: flex; flex-wrap: wrap; gap: 6px; }
        .stack-item {
            background: var(--bg);
            border: 1px solid var(--border);
            color: var(--text);
            font-size: 13px;
            padding: 5px 12px;
            border-radius: 6px;
        }

        /* MENTORSHIP */
        .mentorship-inner {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 48px;
            align-items: center;
        }
        .mentorship-title {
            font-family: var(--font-display);
            font-size: clamp(26px, 3vw, 38px);
            margin-bottom: 18px;
        }
        .mentorship-desc {
            font-size: 15px;
            line-height: 1.75;
            color: var(--text-muted);
            margin-bottom: 24px;
        }
        .mentorship-services { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
        .mentorship-service {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 14px;
        }
        .mentorship-service i { color: var(--accent); width: 16px; }
        .mentorship-card { text-align: center; padding: 40px; background: var(--surface-2); }
        .mentorship-card h3 {
            font-family: var(--font-display);
            font-size: 26px;
            margin-bottom: 12px;
        }
        .mentorship-card p { color: var(--text-muted); margin-bottom: 28px; font-size: 15px; line-height: 1.6; }

        /* CONTACT */
        #contact { background: var(--bg); text-align: center; }
        .contact-title {
            font-family: var(--font-display);
            font-size: clamp(34px, 5vw, 58px);
            margin-bottom: 14px;
        }
        .contact-subtitle { color: var(--text-muted); margin-bottom: 40px; font-size: 16px; }
        .contact-links {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 12px;
        }
        .contact-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 24px;
            border-radius: 10px;
            border: 1px solid var(--border);
            color: var(--text);
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;
            text-decoration: none;
        }
        .contact-link:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
        .contact-link i { font-size: 16px; }

        /* FOOTER */
        footer {
            background: var(--bg);
            border-top: 1px solid var(--border);
            padding: 28px 0;
            text-align: center;
        }
        .footer-text { font-size: 13px; color: var(--text-muted); }

        /* ANIMATIONS */
        .fade-in {
            opacity: 0;
            transform: translateY(18px);
            transition: opacity 0.55s ease, transform 0.55s ease;
        }
        .fade-in.visible { opacity: 1; transform: translateY(0); }

        /* THEME TOGGLE */
        .theme-toggle {
            background: none;
            border: 1px solid var(--border);
            color: var(--text-muted);
            width: 34px;
            height: 34px;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: border-color 0.2s, color 0.2s;
            flex-shrink: 0;
        }
        .theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

        /* Smooth color transitions */
        body, nav, .card, .btn-outline, .contact-link, .stack-item, .tag {
            transition: background 0.3s, border-color 0.3s, color 0.3s;
        }

        /* Headings stay bright; body prose uses the softer --text */
        .hero-name,
        .section-title,
        .nav-brand,
        .book-title,
        .writing-title,
        .video-title,
        .mentorship-title,
        .contact-title {
            color: var(--text-heading);
        }

        /* RESPONSIVE */
        @media (max-width: 900px) {
            .hero-inner { grid-template-columns: 1fr; }
            .hero-image { order: -1; max-width: 280px; }
            .bento-bio { grid-column: span 12; }
            .bento-photo { grid-column: span 12; }
            .bento-focus, .bento-current, .bento-stats { grid-column: span 12; }
            .mentorship-inner { grid-template-columns: 1fr; }
            .timeline-item { grid-template-columns: 1fr; gap: 10px; }
        }

        @media (max-width: 640px) {
            .nav-links { display: none; }
            .nav-links.open {
                display: flex;
                flex-direction: column;
                position: absolute;
                top: 60px; left: 0; right: 0;
                background: rgba(8, 9, 11, 0.98);
                border-bottom: 1px solid var(--border);
                padding: 16px;
                gap: 4px;
            }
            .nav-toggle { display: block; }
            .hero-stats { gap: 20px; }
        }

        @media (max-width: 400px) {
            .contact-links { flex-direction: column; align-items: center; }
        }
