        @font-face {
            font-family: 'Montreal';
            src: url('./PPNeueMontreal.woff2') format('woff2');
            font-weight: 500;
        }

        @font-face {
            font-family: 'Bruno';
            src: url('./BrunoAceSC-Regular.woff2') format('woff2');
        }

        :root {
            --bg: #ffffff;
            --accent: #000000;
            --red: #FF0037;
            --mint: #3ec9a7;
            --line: rgba(0, 0, 0, 0.06);
            --font-sans: 'Geist', 'Montreal', sans-serif;
            --font-mono: 'Bruno', monospace;
        }

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

        body {
            background-color: var(--bg);
            color: var(--accent);
            overflow: hidden;
            height: 100vh;
            width: 100vw;
            display: flex;
            align-items: stretch;
            font-family: var(--font-sans);
            transition: none;
        }

        .main-content {
            flex: 1;
            min-width: 0;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
            background-size: 50px 50px;
            transition: flex 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
            overflow: hidden;
        }

        .hud {
            position: fixed;
            z-index: 1000;
            padding: 25px;
            font-family: var(--font-mono);
            font-size: 8px;
            letter-spacing: 0.15em;
            color: rgba(0, 0, 0, 0.4);
            text-transform: uppercase;
            pointer-events: none;
        }

        .top-left {
            top: 0;
            left: 0;
            color: var(--accent);
            font-weight: bold;
        }

        .top-right {
            top: 0;
            right: 0;
            text-align: right;
            transition: right 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
        }

        body.panel-open .top-right {
            right: 380px;
        }

        .folder-widget {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            margin-top: 14px;
            gap: 5px;
            pointer-events: all;
            cursor: pointer;
            opacity: 0.9;
            transition: opacity 0.2s, transform 0.2s;
        }

        .folder-widget:hover {
            opacity: 1;
            transform: scale(1.06);
        }

        .folder-icon {
            width: 54px;
            height: 54px;
        }

        .folder-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            filter: drop-shadow(0 3px 8px rgba(230, 100, 20, 0.3));
        }

        .folder-label {
            font-family: 'Geist Mono', 'Fragment Mono', monospace;
            font-size: 10px;
            letter-spacing: 0.06em;
            color: rgba(0, 0, 0, 0.5);
            text-transform: uppercase;
        }

        .hero {
            position: relative;
            text-align: center;
            width: 100vw;
            padding: 0 8vw;
            z-index: 5;
            pointer-events: none;
            user-select: none;
        }

        .hero h1 {
            font-family: 'Montreal', 'Geist', sans-serif;
            font-size: clamp(40px, 5.5vw, 80px);
            font-weight: 400;
            letter-spacing: -0.02em;
            line-height: 1.15;
            color: #000;
        }

        .hero h1 em {
            font-family: 'Instrument Serif', serif;
            font-style: italic;
            font-weight: 400;
        }

        .hero h1 .engineers {
            font-family: 'Fragment Mono', monospace;
            font-style: normal;
            font-weight: 400;
            color: var(--red);
            letter-spacing: -0.14em;
        }

        .tagline {
            font-family: 'Geist Mono', 'Fragment Mono', monospace;
            font-size: 20px;
            font-weight: 400;
            letter-spacing: -0.02em;
            margin-top: 32px;
            opacity: 0.4;
            text-transform: uppercase;
        }

        /* --- CARDS --- */
        .card-container {
            position: absolute;
            z-index: 10;
            width: 160px;
            cursor: grab;
            touch-action: none;
            will-change: transform;
        }

        .card-label {
            font-family: var(--font-mono);
            font-size: 7px;
            color: var(--accent);
            margin-bottom: 8px;
            display: block;
            border-left: 2px solid var(--mint);
            padding-left: 6px;
        }

        .card-frame {
            width: 100%;
            background: #fff;
            border: 1px solid var(--line);
            padding: 5px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        }

        .card-frame img {
            width: 100%;
            display: block;
            filter: grayscale(1);
            opacity: 0.8;
            transition: 0.5s ease;
            pointer-events: none;
        }

        .card-container:hover img {
            filter: grayscale(0);
            opacity: 1;
        }

        /* ── BIO CARD ── */
        .bio-card {
            position: fixed;
            bottom: 110px;
            right: 28px;
            width: 300px;
            background: #fff;
            border: 1.5px solid #000;
            font-family: 'Fragment Mono', 'Geist Mono', monospace;
            z-index: 500;
            opacity: 0;
            transform: translateY(12px);
            box-shadow: 4px 4px 0px #000;
        }

        .bio-card-header {
            background: #000;
            color: #fff;
            font-size: 10px;
            letter-spacing: 0.1em;
            padding: 7px 12px;
            text-transform: uppercase;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .bio-card-header span {
            font-weight: normal;
        }

        .bio-card-close {
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.4);
            color: #fff;
            font-size: 9px;
            width: 16px;
            height: 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            transition: background 0.15s;
        }

        .bio-card-close:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .bio-card-body {
            padding: 16px 14px;
            font-size: 12px;
            line-height: 1.75;
            color: #111;
        }

        /* ── DOCK ── */
        .dock-outer {
            position: fixed;
            bottom: 16px;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            align-items: flex-end;
            z-index: 1000;
            pointer-events: none;
            transition: right 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
        }

        body.panel-open .dock-outer {
            right: 380px;
        }

        .dock {
            display: flex;
            align-items: flex-end;
            gap: 8px;
            padding: 10px 14px;
            height: 74px;
            overflow: visible;
            background: rgba(255, 255, 255, 0.28);
            backdrop-filter: blur(32px) saturate(200%);
            -webkit-backdrop-filter: blur(32px) saturate(200%);
            border: 1px solid rgba(255, 255, 255, 0.6);
            border-radius: 20px;
            box-shadow:
                0 0 0 0.5px rgba(0, 0, 0, 0.08),
                0 8px 40px rgba(0, 0, 0, 0.12),
                0 2px 6px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.7);
            pointer-events: all;
        }

        .dock-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }

        .dock-icon {
            width: 54px;
            height: 54px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            transform-origin: bottom center;
            transition:
                width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                height 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-radius 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            will-change: width, height, transform;
            user-select: none;
            filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.18));
            flex-shrink: 0;
        }

        .dock-icon svg {
            width: 50%;
            height: 50%;
            flex-shrink: 0;
            transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                height 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .dock-dot {
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.45);
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            opacity: 0;
            transition: opacity 0.2s;
        }

        .dock-item.active .dock-dot {
            opacity: 1;
        }

        .dock-tooltip {
            position: absolute;
            bottom: calc(100% + 18px);
            left: 50%;
            transform: translateX(-50%) translateY(6px);
            background: rgba(18, 18, 18, 0.82);
            backdrop-filter: blur(12px);
            color: #fff;
            font-family: var(--font-mono);
            font-size: 10px;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            padding: 5px 11px;
            border-radius: 8px;
            white-space: nowrap;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.15s ease, transform 0.15s ease;
            border: 0.5px solid rgba(255, 255, 255, 0.12);
        }

        .dock-tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border: 5px solid transparent;
            border-top-color: rgba(18, 18, 18, 0.82);
        }

        .dock-item:hover .dock-tooltip {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        .dock-sep {
            width: 1px;
            height: 40px;
            background: rgba(0, 0, 0, 0.1);
            border-radius: 1px;
            margin: 0 3px 8px;
            flex-shrink: 0;
            align-self: flex-end;
        }

        .icon-home {
            background: transparent !important;
            filter: none !important;
            box-shadow: none !important;
        }

        .icon-work {
            background: linear-gradient(145deg, #3d3d3d, #1a1a1a);
        }

        .icon-framer {
            background: #0a0a0a;
        }

        .icon-framer svg {
            width: 60% !important;
            height: 60% !important;
        }

        .icon-lab {
            background: linear-gradient(145deg, #34c77b, #1a9458);
        }

        .icon-contact {
            background: linear-gradient(145deg, #e8735a, #c04030);
        }

        .icon-resume {
            background: linear-gradient(145deg, #5b8dee, #3060c0);
        }

        .icon-x {
            background: transparent !important;
            filter: none !important;
            box-shadow: none !important;
        }

        .icon-instagram {
            background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7);
        }

        .icon-projects {
            background: transparent;
            filter: drop-shadow(0 2px 6px rgba(230, 100, 20, 0.25));
        }

        .icon-llm {
            background: transparent;
            filter: drop-shadow(0 2px 8px rgba(230, 100, 20, 0.3));
            animation: pulse-glow 3s ease-in-out infinite;
        }

        @media (max-width: 768px) {
            .dock {
                gap: 6px;
                padding: 8px 10px;
                border-radius: 18px;
                height: 62px;
            }

            .dock-icon {
                width: 46px;
                height: 46px;
                border-radius: 12px;
            }

            .dock-sep {
                height: 32px;
                margin-bottom: 6px;
            }

            .dock-outer {
                bottom: 10px;
            }
        }

        /* ── AI STAR BUTTON ── */
        .ai-trigger {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            margin-top: 14px;
            gap: 5px;
            pointer-events: all;
            cursor: pointer;
        }

        .ai-star-btn {
            width: 54px;
            height: 54px;
            background: transparent;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s ease;
            overflow: hidden;
            padding: 0;
        }

        .ai-star-btn:hover {
            transform: scale(1.08);
        }

        @keyframes pulse-glow {

            0%,
            100% {
                filter: drop-shadow(0 0 4px rgba(230, 100, 20, 0.2));
            }

            50% {
                filter: drop-shadow(0 0 12px rgba(230, 100, 20, 0.5));
            }
        }

        .ai-star-btn {
            animation: pulse-glow 3s ease-in-out infinite;
        }

        .ai-label {
            font-family: 'Geist Mono', 'Fragment Mono', monospace;
            font-size: 10px;
            letter-spacing: 0.06em;
            color: rgba(0, 0, 0, 0.5);
            text-transform: uppercase;
        }

        /* ── AI SIDE PANEL ── */
        .ai-panel {
            width: 0;
            min-width: 0;
            height: 100vh;
            background: #f0efed;
            border-left: 0px solid rgba(0, 0, 0, 0.08);
            z-index: 2000;
            display: flex;
            flex-direction: column;
            flex-shrink: 0;
            overflow: hidden;
            transition: width 0.45s cubic-bezier(0.34, 1.2, 0.64, 1),
                border-left-width 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
        }

        .ai-panel.open {
            width: 380px;
            border-left-width: 1px;
        }

        .ai-panel-header {
            padding: 18px 22px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.08);
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: #f0efed;
        }

        .ai-header-left {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .ai-header-left h3 {
            font-family: var(--font-mono);
            font-size: 11px;
            letter-spacing: 0.15em;
            color: #1a1a1a;
            text-transform: uppercase;
        }

        .ai-info-btn {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            border: 1.5px solid rgba(0, 0, 0, 0.25);
            background: transparent;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(0, 0, 0, 0.4);
            font-size: 10px;
            font-family: serif;
            font-style: italic;
            line-height: 1;
            transition: border-color 0.2s;
        }

        .ai-info-btn:hover {
            border-color: rgba(0, 0, 0, 0.6);
            color: #000;
        }

        .ai-header-right {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .ai-reset-btn,
        .ai-close-btn {
            background: transparent;
            border: none;
            cursor: pointer;
            color: rgba(0, 0, 0, 0.45);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color 0.2s;
            padding: 2px;
        }

        .ai-reset-btn:hover,
        .ai-close-btn:hover {
            color: #000;
        }

        .ai-reset-btn svg,
        .ai-close-btn svg {
            width: 16px;
            height: 16px;
        }

        /* messages area — only shown after first message */
        .ai-messages {
            flex: 1;
            overflow-y: auto;
            padding: 20px 22px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            scrollbar-width: thin;
            scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
        }

        .ai-messages:empty {
            display: none;
        }

        .ai-msg {
            max-width: 90%;
            font-family: 'Montreal', sans-serif;
            font-size: 14px;
            line-height: 1.6;
            padding: 12px 15px;
            border-radius: 14px;
            animation: fadeUp 0.3s ease;
        }

        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(8px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .ai-msg.assistant {
            background: #fff;
            color: #111;
            align-self: flex-start;
            border: 1px solid rgba(0, 0, 0, 0.07);
            border-bottom-left-radius: 4px;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
        }

        .ai-msg.user {
            background: #1a1a1a;
            color: #fff;
            align-self: flex-end;
            border-bottom-right-radius: 4px;
        }

        .ai-msg.thinking {
            background: transparent;
            color: rgba(0, 0, 0, 0.3);
            align-self: flex-start;
            font-family: var(--font-mono);
            font-size: 9px;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            border: none;
            padding: 4px 0;
        }

        /* Empty state — big prompt + suggestions */
        .ai-empty-state {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 0 22px 28px;
        }

        .ai-empty-state h2 {
            font-family: 'Montreal', sans-serif;
            font-size: 28px;
            font-weight: 400;
            color: #1a1a1a;
            letter-spacing: -0.02em;
            margin-bottom: 28px;
            line-height: 1.2;
        }

        .ai-prompt-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0;
            margin-bottom: 28px;
        }

        .ai-prompt-list li {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 13px 0;
            border-top: 1px solid rgba(0, 0, 0, 0.09);
            cursor: pointer;
            transition: opacity 0.15s;
        }

        .ai-prompt-list li:last-child {
            border-bottom: 1px solid rgba(0, 0, 0, 0.09);
        }

        .ai-prompt-list li:hover {
            opacity: 0.6;
        }

        .ai-prompt-list li .arrow {
            font-size: 13px;
            color: rgba(0, 0, 0, 0.35);
            flex-shrink: 0;
            margin-top: 1px;
        }

        .ai-prompt-list li span {
            font-family: 'Montreal', sans-serif;
            font-size: 14px;
            color: #1a1a1a;
            line-height: 1.4;
        }

        /* Input row */
        .ai-input-row {
            padding: 14px 22px 22px;
            border-top: 1px solid rgba(0, 0, 0, 0.08);
            display: flex;
            align-items: center;
            gap: 0;
            background: #f0efed;
        }

        .ai-input {
            flex: 1;
            background: #fff;
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: 10px;
            color: #000;
            font-family: 'Montreal', sans-serif;
            font-size: 14px;
            padding: 13px 50px 13px 16px;
            resize: none;
            outline: none;
            line-height: 1.4;
            max-height: 120px;
            scrollbar-width: none;
            transition: border-color 0.2s;
            position: relative;
        }

        .ai-input:focus {
            border-color: rgba(0, 0, 0, 0.25);
        }

        .ai-input::placeholder {
            color: rgba(0, 0, 0, 0.28);
        }

        .ai-input-wrap {
            position: relative;
            flex: 1;
        }

        .ai-send-btn {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            width: 30px;
            height: 30px;
            border-radius: 7px;
            background: #1a1a1a;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: opacity 0.2s;
        }

        .ai-send-btn:hover {
            opacity: 0.75;
        }

        .ai-send-btn:disabled {
            opacity: 0.25;
            cursor: not-allowed;
        }

        .ai-send-btn svg {
            width: 13px;
            height: 13px;
        }

        /* overlay — not used in push layout, kept as no-op */
        .ai-overlay {
            display: none;
        }
    
