
        :root {
            --bg: #FAFAFA;
            --surface: #FFFFFF;
            --ink: #111113;
            --muted: #6E6E76;
            --accent: #0891B2;
            --accent-2: #6366F1;
            --accent-dim: rgba(8, 145, 178, 0.08);
            --line: rgba(17, 17, 19, 0.09);
            --line-strong: rgba(17, 17, 19, 0.22);
            --grid: rgba(17, 17, 19, 0.05);
            --wash: rgba(17, 17, 19, 0.045);
            --shadow: 0 16px 50px -16px rgba(17, 17, 19, 0.18);
            --green: #16A34A;
        }

        html.dark {
            --bg: #0A0A0C;
            --surface: #111114;
            --ink: #FAFAFA;
            --muted: #A1A1AA;
            --accent: #22D3EE;
            --accent-2: #818CF8;
            --accent-dim: rgba(34, 211, 238, 0.10);
            --line: rgba(250, 250, 250, 0.08);
            --line-strong: rgba(250, 250, 250, 0.20);
            --grid: rgba(250, 250, 250, 0.035);
            --wash: rgba(250, 250, 250, 0.05);
            --shadow: 0 16px 50px -16px rgba(0, 0, 0, 0.6);
            --green: #4ADE80;
        }

        html[data-accent="indigo"]                 { --accent:#4F46E5; --accent-2:#7C3AED; --accent-dim:rgba(79,70,229,.08); }
        html[data-accent="purple"]                 { --accent:#9333EA; --accent-2:#DB2777; --accent-dim:rgba(147,51,234,.08); }
        html[data-accent="rose"]                   { --accent:#E11D48; --accent-2:#EA580C; --accent-dim:rgba(225,29,72,.08); }
        html[data-accent="green"]                  { --accent:#16A34A; --accent-2:#0891B2; --accent-dim:rgba(22,163,74,.08); }
        html[data-accent="amber"]                  { --accent:#D97706; --accent-2:#EA580C; --accent-dim:rgba(217,119,6,.08); }
        html.dark[data-accent="indigo"]            { --accent:#818CF8; --accent-2:#C084FC; --accent-dim:rgba(129,140,248,.10); }
        html.dark[data-accent="purple"]            { --accent:#C084FC; --accent-2:#F472B6; --accent-dim:rgba(192,132,252,.10); }
        html.dark[data-accent="rose"]              { --accent:#FB7185; --accent-2:#F97316; --accent-dim:rgba(251,113,133,.10); }
        html.dark[data-accent="green"]             { --accent:#4ADE80; --accent-2:#22D3EE; --accent-dim:rgba(74,222,128,.10); }
        html.dark[data-accent="amber"]             { --accent:#FBBF24; --accent-2:#FB923C; --accent-dim:rgba(251,191,36,.10); }

        #color-panel {
            position: absolute; right: 0; top: calc(100% + 10px);
            background: var(--surface);
            border: 1px solid var(--line-strong);
            border-radius: 14px;
            padding: 10px 12px;
            display: flex; gap: 8px; align-items: center;
            box-shadow: 0 12px 40px -8px rgba(0,0,0,.45);
            opacity: 0; transform: translateY(-6px) scale(.96);
            pointer-events: none;
            transition: opacity .2s ease, transform .22s cubic-bezier(.22,1,.36,1);
            z-index: 60; white-space: nowrap;
        }
        #color-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
        .c-swatch {
            width: 22px; height: 22px; border-radius: 50%;
            border: 2px solid transparent;
            cursor: pointer; flex-shrink: 0;
            transition: transform .15s, outline-color .15s;
            outline: 2px solid transparent; outline-offset: 2px;
        }
        .c-swatch:hover { transform: scale(1.2); }
        .c-swatch.active { outline-color: var(--ink); }

        body {
            background-color: var(--bg);
            color: var(--ink);
            overflow-x: hidden;
            transition: background-color .4s ease, color .4s ease;
        }
        ::selection { background: var(--accent); color: #08090B; }
        .text-soft { color: var(--muted); }
        .text-strong { color: var(--ink); }
        .hairline { border-color: var(--line); }

        .bg-dots {
            background-image: radial-gradient(circle, var(--grid) 1px, transparent 1px);
            background-size: 28px 28px;
        }

        #home::before {
            content: '';
            position: absolute; inset: -10%;
            pointer-events: none;
            z-index: -1;
            background:
                radial-gradient(ellipse 55% 45% at 75% 35%, var(--accent-dim) 0%, transparent 65%),
                radial-gradient(ellipse 45% 40% at 15% 80%, rgba(129, 140, 248, 0.06) 0%, transparent 60%);
            animation: auroraDrift 22s ease-in-out infinite alternate;
            will-change: transform;
        }
        @keyframes auroraDrift {
            0%   { transform: translate3d(0, 0, 0) scale(1); }
            100% { transform: translate3d(-3%, 2.5%, 0) scale(1.1); }
        }

        .grain {
            position: fixed; inset: 0;
            z-index: 1;
            pointer-events: none;
            opacity: .035;
            mix-blend-mode: overlay;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
        }
        html.dark .grain { opacity: .05; }

        #cursor-glow {
            position: fixed; top: 0; left: 0;
            width: 360px; height: 360px;
            border-radius: 50%;
            background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
            opacity: 0;
            pointer-events: none;
            z-index: 1;
            filter: blur(10px);
            will-change: transform;
            transition: opacity .5s ease;
        }
        html.dark #cursor-glow { mix-blend-mode: screen; }

        .scroll-progress {
            position: fixed; top: 0; left: 0;
            height: 2px; width: 0;
            z-index: 60;
            background: linear-gradient(90deg, var(--accent), var(--accent-2));
            transition: width .1s linear;
            pointer-events: none;
        }

        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: var(--bg); }
        ::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }
        ::-webkit-scrollbar-thumb:hover { background: var(--muted); }

        .mono-label {
            font-family: "Geist Mono", monospace;
            font-size: 10px;
            letter-spacing: .16em;
            text-transform: uppercase;
            color: var(--muted);
        }
        .serif-italic {
            font-family: "Instrument Serif", Georgia, serif;
            font-style: italic;
            font-weight: 400;
            font-size: 1.06em;
            letter-spacing: 0;
        }
        .gradient-text {
            background: linear-gradient(120deg, var(--accent), var(--accent-2));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        .section-head .flex > .mono-label:first-child { color: var(--accent); }

        .card {
            position: relative;
            background: var(--surface);
            border: 1px solid var(--line);
            border-radius: 1rem;
            transition: border-color .3s ease, transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
        }
        .lift:hover {
            transform: translateY(-3px);
            border-color: var(--line-strong);
            box-shadow: var(--shadow);
        }

        .card.lift::after {
            content: '';
            position: absolute; inset: 0;
            border-radius: inherit;
            padding: 1px;
            background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), var(--accent), transparent 65%);
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            opacity: 0;
            transition: opacity .35s ease;
            pointer-events: none;
        }
        .card.lift:hover::after { opacity: .65; }

        .gradient-border { position: relative; }
        .gradient-border::before {
            content: '';
            position: absolute; inset: 0;
            border-radius: inherit;
            padding: 1px;
            background: linear-gradient(135deg, var(--accent), var(--accent-2));
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none;
        }

        .thumb {
            background:
                linear-gradient(135deg, var(--accent-dim) 0%, transparent 55%),
                var(--surface);
        }

        .hatch {
            background-color: var(--surface);
            background-image: repeating-linear-gradient(45deg, var(--line) 0 1px, transparent 1px 12px);
        }

        .btn {
            border-radius: 9999px;
            transition: transform .25s cubic-bezier(.22,1,.36,1), background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease, opacity .25s ease;
        }
        .btn-primary { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
        .btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); opacity: .92; }
        .btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
        .btn-ghost:hover { background: var(--wash); border-color: var(--muted); transform: translateY(-1px); }
        .btn .arr { display: inline-block; transition: transform .25s cubic-bezier(.22,1,.36,1); }
        .btn:hover .arr { transform: translateX(3px); }

        .reveal {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
        }
        .reveal.visible { opacity: 1; transform: translateY(0); }
        .reveal-delay-1 { transition-delay: .08s; }
        .reveal-delay-2 { transition-delay: .16s; }
        .reveal-delay-3 { transition-delay: .24s; }

        .pop { animation: popIn .4s cubic-bezier(.22,1,.36,1) both; }
        @keyframes popIn {
            from { opacity: 0; transform: scale(.97) translateY(6px); }
            to   { opacity: 1; transform: scale(1) translateY(0); }
        }

        .skill-track { height: 5px; border-radius: 99px; background: var(--wash); overflow: hidden; }
        .skill-bar {
            width: 0; height: 100%;
            border-radius: 99px;
            background: linear-gradient(90deg, var(--accent), var(--accent-2));
            transition: width 1.3s cubic-bezier(.22,1,.36,1);
        }

        .caret {
            display: inline-block;
            width: 2px; height: 1em;
            margin-left: 4px;
            background: var(--accent);
            vertical-align: -0.12em;
            animation: blink 1s step-end infinite;
        }
        @keyframes blink { 50% { opacity: 0; } }

        #site-header {
            padding-top: 14px;
            pointer-events: none;
            transition: padding-top .35s cubic-bezier(.22,1,.36,1);
        }
        #site-header.scrolled { padding-top: 8px; }
        #site-header .nav-pill, #site-header .mobile-panel { pointer-events: auto; }

        .nav-pill {
            background: color-mix(in srgb, var(--surface) 68%, transparent);
            -webkit-backdrop-filter: blur(20px) saturate(1.6);
            backdrop-filter: blur(20px) saturate(1.6);
            border: 1px solid var(--line);
            border-radius: 9999px;
            box-shadow: 0 10px 34px -16px rgba(0,0,0,.4);
            transition: height .35s cubic-bezier(.22,1,.36,1),
                        background-color .35s ease, box-shadow .35s ease, border-color .35s ease;
        }
        #site-header.scrolled .nav-pill {
            height: 3rem;
            background: color-mix(in srgb, var(--surface) 86%, transparent);
            border-color: var(--line-strong);
            box-shadow: 0 16px 44px -16px rgba(0,0,0,.55);
        }

        .nav-list { position: relative; }
        .nav-indicator {
            position: absolute; top: 50%; left: 0;
            height: 2rem; width: 0;
            border-radius: 9999px;
            background: var(--wash);
            opacity: 0;
            transform: translate(0, -50%);
            transition: transform .32s cubic-bezier(.22,1,.36,1),
                        width .32s cubic-bezier(.22,1,.36,1), opacity .25s ease;
            pointer-events: none;
            z-index: 0;
        }
        .nav-link {
            position: relative; z-index: 1;
            padding: .4rem .75rem; border-radius: 9999px;
            color: var(--muted); transition: color .25s;
        }
        .nav-link:hover, .nav-link.active { color: var(--ink); }

        .mobile-panel {
            border: 1px solid var(--line);
            border-radius: 1.25rem;
            background: color-mix(in srgb, var(--surface) 92%, transparent);
            -webkit-backdrop-filter: blur(20px) saturate(1.4);
            backdrop-filter: blur(20px) saturate(1.4);
            box-shadow: 0 16px 44px -18px rgba(0,0,0,.5);
            opacity: 0; transform: translateY(-8px);
            transition: opacity .25s ease, transform .25s ease;
        }
        .mobile-panel.show { opacity: 1; transform: translateY(0); }

        .logo-mark {
            background: linear-gradient(135deg, var(--accent), var(--accent-2));
            color: #fff;
        }

        .theme-toggle i { grid-area: 1/1; line-height: 1; transition: transform .45s cubic-bezier(.22,1,.36,1), opacity .3s; }
        html.dark .icon-sun  { opacity: 0; transform: rotate(120deg) scale(0); }
        html.dark .icon-moon { opacity: 1; transform: rotate(0) scale(1); }
        html:not(.dark) .icon-sun  { opacity: 1; transform: rotate(0) scale(1); }
        html:not(.dark) .icon-moon { opacity: 0; transform: rotate(-120deg) scale(0); }

        .terminal { background: #0D1117; border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; }
        .terminal-bar { background: #161B22; border-bottom: 1px solid rgba(240,246,252,.08); }
        .t-prompt { color: #58A6FF; }
        .t-cmd { color: #E6EDF3; }
        .t-out { color: #8B949E; }
        .t-ok { color: #3FB950; font-weight: 500; }

        .timeline-line { background: linear-gradient(180deg, var(--accent), transparent); opacity: .35; }
        .timeline-dot { background: var(--bg); border: 1px solid var(--line-strong); }
        .timeline-dot::after {
            content: '';
            position: absolute; inset: 3px;
            border-radius: 9999px;
            background: var(--accent);
            transform: scale(0);
            transition: transform .4s cubic-bezier(.22,1,.36,1);
        }
        .reveal.visible .timeline-dot::after { transform: scale(1); }

        .input {
            background: var(--wash);
            border: 1px solid var(--line);
            color: var(--ink);
            border-radius: .75rem;
            transition: border-color .25s, box-shadow .25s, background .25s;
        }
        .input::placeholder { color: var(--muted); opacity: .55; }
        .input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); background: var(--surface); }

        .testi-dot { width: 6px; height: 6px; border-radius: 99px; background: var(--line-strong); transition: all .3s ease; }
        .testi-dot.active { background: var(--accent); width: 22px; }

        .filter-btn {
            color: var(--muted);
            border: 1px solid var(--line);
            border-radius: 9999px;
            transition: all .25s ease;
        }
        .filter-btn:hover { color: var(--ink); border-color: var(--line-strong); }
        .filter-btn.active { color: var(--bg); background: var(--ink); border-color: var(--ink); }

        details.faq { border: 1px solid var(--line); border-radius: .875rem; background: var(--surface); transition: border-color .25s; }
        details.faq:hover, details.faq[open] { border-color: var(--line-strong); }
        details.faq summary::-webkit-details-marker { display: none; }
        details.faq summary .x { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
        details.faq summary .x::before, details.faq summary .x::after {
            content: ''; position: absolute; background: var(--muted); transition: transform .3s ease; border-radius: 2px;
        }
        details.faq summary .x::before { left: 0; top: 6px; width: 14px; height: 2px; }
        details.faq summary .x::after  { left: 6px; top: 0; width: 2px; height: 14px; }
        details.faq[open] summary .x::after { transform: rotate(90deg) scaleY(0); }

        .toast {
            position: fixed; bottom: 1.5rem; left: 50%;
            transform: translate(-50%, 140%);
            opacity: 0;
            background: var(--ink); color: var(--bg);
            border-radius: 9999px;
            transition: transform .4s cubic-bezier(.22,1,.36,1), opacity .3s ease;
            z-index: 100;
        }
        .toast.show { transform: translate(-50%, 0); opacity: 1; }

        .overlay { opacity: 0; transition: opacity .25s ease; }
        .overlay.show { opacity: 1; }
        .overlay .panel { transform: translateY(14px) scale(.98); transition: transform .3s cubic-bezier(.22,1,.36,1); }
        .overlay.show .panel { transform: none; }
        .cmdk-item { border-radius: .625rem; }
        .cmdk-item.active { background: var(--wash); }

        .confetti {
            position: fixed; top: -14px;
            z-index: 160;
            pointer-events: none;
            border-radius: 2px;
            animation: confettiFall linear forwards;
        }
        @keyframes confettiFall { to { transform: translateY(105vh) rotate(740deg); } }

        .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

        ::view-transition-old(root),
        ::view-transition-new(root) {
            animation: none;
            mix-blend-mode: normal;
        }
        ::view-transition-old(root) { z-index: 0; }
        ::view-transition-new(root) { z-index: 1; }

        .magnetic { transform: translate(var(--tx, 0px), var(--ty, 0px)); }
        .btn.magnetic:hover { transform: translate(var(--tx, 0px), calc(var(--ty, 0px) - 1px)); }

        .tilt-3d { transition: transform .5s cubic-bezier(.22,1,.36,1); will-change: transform; }
        .tilt-glare {
            position: absolute; inset: 0; z-index: 4;
            pointer-events: none; border-radius: inherit;
            opacity: 0; transition: opacity .35s ease;
            background: radial-gradient(420px circle at var(--gx,50%) var(--gy,50%), rgba(255,255,255,.22), transparent 55%);
            mix-blend-mode: overlay;
        }
        .tilt-3d:hover .tilt-glare { opacity: 1; }

        #preloader {
            position: fixed; inset: 0;
            z-index: 200;
            display: grid; place-items: center;
            padding: 1.5rem;
            background: rgba(0,0,0,.82);
            backdrop-filter: blur(6px);
            transition: opacity .5s ease, visibility .5s ease;
        }
        #preloader.done { opacity: 0; visibility: hidden; }

        .mac-term {
            width: 100%; max-width: 580px;
            background: #1B1B1B;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 32px 90px rgba(0,0,0,.85), 0 0 0 .5px rgba(255,255,255,.07);
        }
        .mac-titlebar {
            background: #3B3B3B;
            height: 40px;
            display: flex; align-items: center;
            padding: 0 14px;
            position: relative;
            flex-shrink: 0;
        }
        .mac-lights { display: flex; gap: 8px; }
        .mac-light { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
        .mac-title {
            position: absolute; left: 50%; transform: translateX(-50%);
            font-family: "Geist Mono", monospace;
            font-size: 12px; color: rgba(255,255,255,.4);
            white-space: nowrap; pointer-events: none; letter-spacing: -.01em;
        }
        .mac-body {
            padding: 10px 18px 24px;
            font-family: "Geist Mono", monospace;
            font-size: 13.5px; line-height: 1.7;
            color: #F2F2F2; min-height: 168px;
        }
        .mac-login { color: rgba(242,242,242,.45); }
        @keyframes mac-blink { 0%,49%{opacity:1} 50%,100%{opacity:0} }
        .mac-caret {
            display: inline-block;
            width: 7px; height: 1.1em;
            background: rgba(242,242,242,.9);
            vertical-align: text-bottom;
            animation: mac-blink 1s step-end infinite;
        }
        .term-skip {
            margin-top: 14px; text-align: center;
            font-family: "Geist Mono", monospace;
            font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
            color: rgba(255,255,255,.3);
        }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
            .reveal { opacity: 1; transform: none; }
        }
