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

        :root {
            --primary-dark: #0d4f47;
            --accent-coral: #ff6b5a;
            --cream: #faf6f2;
            --charcoal: #2d3436;
            --font-display: "Space Grotesk", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
            --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
            --grid-color: rgba(13, 79, 71, 0.3);
            --grid-color-horizontal: rgba(13, 79, 71, 0.1);
            --grid-fill-color: rgba(13, 79, 71, 0.04);
            --grid-strong: rgba(13, 79, 71, 0.4);
            --grid-columns: 12;
            --grid-margin: 60px;
            --grid-gap: 24px;
            --grid-row: 80px;
            --header-height: 100px;
            /* 3. Define header height */
            
            /* NEW: Variables from new section */
            --slide-duration: 0.6s;
            --slide-ease: cubic-bezier(0.25, 1, 0.5, 1);
            --panel-max: 360px; /* cap for overflow scroll */
        }

        /* Media Queries for Grid */
        @media (min-aspect-ratio: 21/9) {
            :root {
                --grid-margin: 72px;
                --grid-gap: 28px;
            }
        }

        @media (min-aspect-ratio: 16/9) and (max-aspect-ratio: 21/9) {
            :root {
                --grid-margin: 64px;
                --grid-gap: 24px;
            }
        }

        @media (min-aspect-ratio: 4/3) and (max-aspect-ratio: 16/9) {
            :root {
                --grid-margin: 48px;
                --grid-gap: 20px;
                --grid-row: 72px;
            }
        }

        @media (max-aspect-ratio: 4/3) {
            :root {
                --grid-margin: 28px;
                --grid-gap: 16px;
                --grid-row: 64px;
            }
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: var(--font-body);
            background: var(--cream);
            color: var(--charcoal);
            line-height: 1.6;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: optimizeLegibility;
        }

        ::selection {
            background: rgba(255, 107, 90, 0.2);
        }

        body.popup-active {
            overflow: hidden;
        }

        /* Custom Cursor Styles */
        .cursor-dot,
        .cursor-ring {
            position: fixed;
            top: 0;
            left: 0;
            pointer-events: none;
            z-index: 6000;
            border-radius: 50%;
        }

        .cursor-dot {
            width: 8px;
            height: 8px;
            background-color: var(--accent-coral);
            transform: translate(-50%, -50%);
            transition: transform 0.1s ease-out, background-color 0.2s ease;
        }

        .cursor-ring {
            width: 40px;
            height: 40px;
            border: 2px solid rgba(13, 79, 71, 0.4);
            transform: translate(-50%, -50%);
            transition: transform 0.2s ease-out, width 0.3s ease, height 0.3s ease, border-color 0.2s ease;
        }

        body.link-hover .cursor-dot {
            transform: translate(-50%, -50%) scale(1.5);
            background-color: rgba(13, 79, 71, 0.8);
        }

        body.link-hover .cursor-ring {
            width: 25px;
            height: 25px;
            border-color: rgba(13, 79, 71, 0.8);
            transform: translate(-50%, -50%);
        }

        @media (max-width: 768px) {
            * {
                cursor: auto;
            }

            .cursor-dot,
            .cursor-ring {
                display: none;
            }

            .site-header {
                justify-content: space-between;
            }

            .header-brand {
                align-items: flex-start;
                text-align: left;
            }
        }


        /* Grid overlay */
        .grid-overlay,
        .grid-horizontal {
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: 4000;
            display: none;
        }

        .grid-overlay.active,
        .grid-horizontal.active {
            display: block;
        }

        .grid-horizontal {
            z-index: 3999;
        }

        /* Simple mono-stroke icon base */
        .icon { 
            width: 18px; height: 18px; display: inline-block; vertical-align: -3px; margin-right: 8px; 
            fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
        }

        .grid-container {
            height: 100%;
            display: grid;
            grid-template-columns: repeat(var(--grid-columns), 1fr);
            gap: var(--grid-gap);
            padding: 0 var(--grid-margin);
        }

        .grid-column {
            border-left: 1.5px solid var(--grid-color);
            border-right: 1.5px solid var(--grid-color);
            background-color: var(--grid-fill-color);
            position: relative;
        }

        .grid-column::before {
            display: none;
        }
        .grid-column.show-numbers::before {
            display: block;
        }



        .grid-horizontal .grid-row {
            height: var(--grid-row);
            border-bottom: 1px solid var(--grid-color-horizontal);
        }

        .grid-toggle {
            position: fixed;
            bottom: var(--grid-margin);
            left: var(--grid-margin);
            display: flex;
            gap: 6px;
            border: none;
            background: transparent;
            z-index: 4500;
        }

        .grid-toggle span {
            --shift: 0px;
            width: 3px;
            height: 80px;
            background: var(--primary-dark);
            border-radius: 2px;
            transform: translateY(var(--shift));
            transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
            box-shadow: 0 4px 10px rgba(0,0,0,0.08);
        }

        .grid-toggle:hover span:nth-child(1),
        .grid-toggle:hover span:nth-child(3) {
            --shift: -8px;
            background: var(--accent-coral);
        }
        .grid-toggle:hover span:nth-child(2),
        .grid-toggle:hover span:nth-child(4) {
            --shift: 8px;
            background: var(--accent-coral);
        }

        .grid-toggle:active span:nth-child(1),
        .grid-toggle:active span:nth-child(3) {
            --shift: -12px;
        }
        .grid-toggle:active span:nth-child(2),
        .grid-toggle:active span:nth-child(4) {
            --shift: 12px;
        }

        /* 3. Fixed Header Styles */
        .site-header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            padding: 0 var(--grid-margin);
            height: var(--header-height);
            display: flex;
            align-items: center;
            justify-content: flex-start;
            z-index: 1000;
            pointer-events: none;
            transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
        }
        .site-header.scrolled {
            background: rgba(250, 246, 242, 0.75);
            border-bottom: 1px solid rgba(13, 79, 71, 0.12);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            box-shadow: 0 4px 20px rgba(0,0,0,0.06);
        }

        .header-brand {
            display: inline-flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            width: 100%;
            pointer-events: auto;
            text-decoration: none;
            color: inherit;
        }

        .header-name {
            font-size: 19px;
            font-weight: 500;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--primary-dark);
            font-family: var(--font-display);
            margin-right: auto;
        }

        .header-role {
            font-size: 11px;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: rgba(13, 79, 71, 0.6);
            font-family: var(--font-body);
            font-weight: 500;
            margin-left: auto;
        }

        main {
            position: relative;
            z-index: 10;
            /* 3. Add padding to prevent overlap with fixed header */
            padding-top: var(--header-height);
        }

        .section {
            /* Adjusted min-height calculation */
            min-height: calc(100vh - var(--header-height));
            padding: calc(var(--grid-margin)) var(--grid-margin);
            /* Simplified padding */
            display: grid;
            grid-template-columns: repeat(var(--grid-columns), 1fr);
            gap: var(--grid-gap);
            align-items: center;
            position: relative;
            /* <-- Add relative position for hero animation */
        }

        /* First section needs more top padding */
        .section:first-of-type {
            padding-top: calc(var(--grid-margin) * 1.5);
        }


        /* --- Hero Section --- */
        /* Remove min-height for natural flow */
        .hero {
            min-height: auto;
        }

        .hero .brand {
            grid-column: 2 / 7;
            will-change: transform, opacity;
            /* <-- Add will-change */
            position: relative;
            font-family: var(--font-display);
            z-index: 2;
            /* <-- Add z-index to be above lines */
        }

        .hero .brand-name {
            /* This is the main title now, header has a copy */
            font-size: clamp(46px, 6.5vw, 78px);
            font-weight: 700;
            letter-spacing: -0.01em;
            color: var(--primary-dark);
            font-family: var(--font-display);
            text-transform: none;
        }
        @media (min-width: 1280px) {
            .hero .brand-name { letter-spacing: -0.02em; }
            .hero .intro-copy { line-height: 1.75; }
        }

        .hero .brand-title {
            margin-top: 10px;
            text-transform: uppercase;
            letter-spacing: 0.24em;
            font-weight: 600;
            font-family: var(--font-display);
            color: rgba(13, 79, 71, 0.72);
        }

        .hero .intro-copy {
            grid-column: 7 / 11;
            font-size: clamp(18px, 1.7vw, 24px);
            color: rgba(45, 52, 54, 0.85);
            max-width: 640px;
            will-change: transform, opacity;
            /* <-- Add will-change */
            position: relative;
            /* <-- Add relative for z-index */
            z-index: 2;
            /* <-- Add z-index to be above lines */
        }

        .hero .intro-copy strong {
            /* 2. Style added emphasis */
            color: var(--primary-dark);
            font-weight: 600;
        }

        /* --- START: Hero Animation Styles --- */
        .hero-grid-animation {
            position: absolute;
            inset: 0;
            /* Cover the whole section */
            display: grid;
            grid-template-columns: repeat(var(--grid-columns), 1fr);
            gap: var(--grid-gap);
            padding: 0 var(--grid-margin);
            z-index: 0;
            /* Behind text */
            overflow: hidden;
            pointer-events: none;
        }

        .hero-line {
            position: absolute;
            background: var(--grid-strong);
            /* Use a strong, visible grid color */
            opacity: 0.5;
            border-radius: 2px;
        }

        /* Vertical Line (start as part of an X, then unfold) */
        .hero-line.line-1 {
            grid-column: 2 / 3;
            left: 0;
            top: var(--grid-margin);
            /* Align with section padding */
            width: 4px;
            height: 80%;
            transform-origin: bottom center;
            transform: rotate(45deg) scaleY(0);
            /* Start hidden (scaled to 0) */
        }

        /* Vertical Line (at start of col 7) */
        .hero-line.line-2 {
            grid-column: 7 / 8;
            left: 0;
            top: var(--grid-margin);
            width: 4px;
            height: 60%;
            transform-origin: top center;
            transform: rotate(-45deg) scaleY(0);
            /* Start hidden */
        }

        /* Horizontal Line */
        .hero-line.line-3 {
            grid-column: 2 / 8;
            /* Position it slightly above the intro copy */
            top: calc(var(--grid-margin) * 1.5 + 40px);
            width: 100%;
            height: 3px;
            transform-origin: left center;
            transform: scaleX(0);
            /* Start hidden */
        }

        /* Initial hidden state for hero text */
        .hero-content {
            opacity: 0;
            transform: translateY(20px);
        }
        /* --- END: Hero Animation Styles --- */

        
        /* --- START: NEW CONSTELLATION SECTION (from user) --- */
        .constellation { 
            padding-top: calc(var(--grid-margin) * 2.5); 
            background: linear-gradient(180deg, rgba(13, 79, 71, 0.02) 0%, transparent 100%); 
            position: relative; 
            align-items: center; 
            padding-bottom: calc(var(--grid-margin) * 2); 
            overflow: visible; 
        }

        .constellation-mockup-wrapper { 
            grid-column: 2 / 8; 
            position: relative; 
            pointer-events: auto; 
            align-self: center; 
            /* Added fade-in styles */
            opacity: 0; 
            transform: translateY(30px);
            left: 8px;
        }

        #vscode-svg-mockup { 
            width: 100%; 
            height: auto; 
            border-radius: 8px; 
            box-shadow: 0 20px 60px rgba(0,0,0,0.2); 
            pointer-events: auto; 
        }
        #vscode-svg-mockup .dimmable { 
            transition: opacity 0.3s ease; 
        }
        .constellation-mockup-wrapper:hover #vscode-svg-mockup .dimmable { 
            opacity: 0.5; 
        }

        .mockup-screen { 
            opacity: 0; 
            pointer-events: none; 
            visibility: hidden; 
        }
        .mockup-screen.active { 
            opacity: 1; 
            pointer-events: auto; 
            visibility: visible; 
        }
        .screen-content { 
            will-change: transform, opacity; 
        }

        /* Seam strip highlight */
        .seam-glow { 
            filter: drop-shadow(0 0 6px rgba(255,107,90,.45)); 
            opacity: .85; 
        }

        /* Light grid guides over the mockup to align with page grid */
        .constellation-mockup-wrapper { position: relative; }
        .constellation-mockup-wrapper::before {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            z-index: 2;
            background-image: linear-gradient(to right, var(--grid-color) 1px, transparent 1px);
            background-size: calc(100% / 6) 100%; /* mockup spans ~6 columns (2..8) */
            opacity: .08;
            -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.85) 18%, rgba(0,0,0,.85) 82%, transparent 100%);
                    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.85) 18%, rgba(0,0,0,.85) 82%, transparent 100%);
        }

        .screen-content {
            filter: drop-shadow(0 6px 18px rgba(13,79,71,0.18));
        }

        .screen-content text {
            fill: rgba(13, 79, 71, 0.85);
            paint-order: stroke;
            stroke: rgba(250, 246, 242, 0.85);
            stroke-width: 0.6;
            stroke-linejoin: round;
        }

        /* Right column */
        .constellation-info { 
            grid-column: 8 / 11; 
            position: relative; 
            align-self: center; 
            /* Added fade-in styles */
            opacity: 0; 
            transform: translateY(30px);
        }
        /* Fading grid overlay inspired by Core Skills */
        .constellation-info::before{ 
            content:""; position:absolute; inset:0; pointer-events:none; z-index:-1; 
            background-image: linear-gradient(to right, var(--grid-color) 1px, transparent 1px); 
            background-size: calc(100%/3) 100%; /* 3 inner columns within the info column */
            opacity: .12; 
            -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.75) 18%, rgba(0,0,0,.9) 60%, transparent 100%);
                    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.75) 18%, rgba(0,0,0,.9) 60%, transparent 100%);
        }

        /* Reduce guides on smaller viewports for clarity */
        @media (max-width: 1024px) {
            .constellation-mockup-wrapper { left: 0; }
            .constellation-mockup-wrapper::before { opacity: 0; }
            .constellation-info::before { opacity: .14; }
        }
        @media (max-width: 768px) {
            .constellation-info::before { opacity: .1; }
        }
        .skill-category-title { 
            font-size: 18px; 
            font-weight: 600; 
            font-family: var(--font-display); 
            color: rgba(13, 79, 71, 0.78); 
            letter-spacing: 0.2em; 
            text-transform: uppercase; 
            margin-top: 28px; 
            margin-bottom: 0; 
            cursor: pointer; 
            transition: color 0.3s ease, transform .25s ease; 
            position: relative; 
        }
        .skill-category-title::after {
            content: "";
            position: absolute;
            left: -36px;
            top: 50%;
            width: 20px;
            height: 2px;
            background: rgba(13, 79, 71, 0.18);
            transform: translateY(-50%);
            transition: width 0.25s ease, background 0.25s ease;
        }
        .skill-category-title:hover { 
            color: var(--accent-coral); 
        }
        .skill-category-title:hover::after {
            width: 32px;
            background: rgba(255, 107, 90, 0.45);
        }
        .skill-category-title:first-child { 
            margin-top: 0; 
        }
        .skill-category-title.active { 
            color: var(--accent-coral); 
        }
        .skill-category-title.active::after {
            width: 36px;
            background: rgba(255, 107, 90, 0.75);
        }
        .skills-list { 
            display: none; 
        }

        /* Info panel */
        #skill-description-panel { 
            margin-top: 22px; 
            padding: 20px 22px 18px; 
            background: rgba(250, 246, 242, 0.18); 
            border: 1px solid rgba(13, 79, 71, 0.24); 
            border-radius: 16px; 
            position: relative; 
            opacity: 0; 
            visibility: hidden; 
            max-height: 0; 
            box-shadow: 0 24px 40px rgba(13, 79, 71, 0.12); 
            backdrop-filter: blur(16px); 
        }
        #skill-description-panel::before {
            content: 'INFO';
            position: absolute;
            top: -12px;
            left: 24px;
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.28em;
            padding: 2px 14px;
            border-radius: 999px;
            background: rgba(250, 246, 242, 0.85);
            border: 1px solid rgba(13, 79, 71, 0.28);
            color: rgba(13, 79, 71, 0.78);
            font-family: var(--font-display);
        }
        #skill-description-panel::after {
            content: '';
            position: absolute;
            top: 18px;
            left: -12px;
            width: 0;
            height: 0;
            border-top: 12px solid transparent;
            border-bottom: 12px solid transparent;
            border-right: 12px solid rgba(250, 246, 242, 0.18);
            filter: drop-shadow(-2px 0 0 rgba(13, 79, 71, 0.12));
        }
        #skill-description-panel h4 { 
            font-size: 20px; 
            color: var(--primary-dark); 
            margin: 0 0 10px; 
            font-family: var(--font-display);
            letter-spacing: 0.06em;
        }
        #skill-description-panel p { 
            font-size: 16px; 
            color: rgba(45, 52, 54, 0.85); 
            line-height: 1.7; 
            margin: 0; 
            font-family: var(--font-body);
        }
        #skill-description-panel .chips { 
            display: grid; 
            grid-template-columns: repeat(2, minmax(0, 1fr)); 
            gap: 8px; 
            margin-top: 12px; 
        }
        #skill-description-panel .chip { 
            font-size: 12px; 
            padding: 4px 8px; 
            border-radius: 12px; 
            border: 1px solid rgba(13, 79, 71, 0.24); 
            background: rgba(13, 79, 71, 0.1);
            color: rgba(13, 79, 71, 0.82);
            font-weight: 600;
            letter-spacing: 0.03em;
            text-align: center;
        }

        /* Tiny test UI */
        #test-area { 
            margin-top: 12px; 
            font-size: 13px; 
        }
        #test-area button { 
            cursor: pointer; 
            padding: 6px 10px; 
            border-radius: 8px; 
            border: 1px solid var(--grid-color); 
            background: #fff; 
        }
        #test-results { 
            list-style: none; 
            padding: 0; 
            margin: 10px 0 0; 
        }
        #test-results li { 
            margin: 4px 0; 
            padding: 6px 8px; 
            border-radius: 6px; 
        }
        #test-results li.pass { 
            background: #e7f7f0; 
            color: #0f5132; 
            border: 1px solid #badbcc; 
        }
        #test-results li.warn { 
            background: #fff3cd; 
            color: #664d03; 
            border: 1px solid #ffecb5; 
        }
        #test-results li.fail { 
            background: #f8d7da; 
            color: #842029; 
            border: 1px solid #f5c2c7; 
        }
        /* --- END: NEW CONSTELLATION SECTION --- */


        /* --- Work Section --- */
        .work {
            min-height: auto;
            /* Allow natural height */
        }

        .work-intro {
            /* 2. Intro text style */
            grid-column: 2 / 11;
            font-size: clamp(16px, 1.5vw, 19px);
            color: rgba(45, 52, 54, 0.9);
            margin-bottom: calc(var(--grid-gap) * 1.5);
            /* Space before cards */
        }

        .work .work-grid {
            grid-column: 2 / 11;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: var(--grid-gap);
        }

        .work-card {
            border: 2px solid rgba(13, 79, 71, 0.18);
            border-radius: 16px;
            display: grid;
            align-content: start;
            justify-items: center;
            position: relative;
            transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
            background: #ffffff;
            box-shadow: 0 8px 22px rgba(13, 79, 71, 0.08);
            will-change: transform;
            overflow: hidden;
            padding: 32px 24px 26px;
            row-gap: 12px;
            min-height: 360px;
        }
        .work-card::after {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(120% 80% at 50% 120%, rgba(255,107,90,0) 40%, rgba(255,107,90,0.08) 100%);
            opacity: 0;
            transition: opacity .25s ease;
        }

        .work-card:hover {
            transform: translateY(-6px);
            border-color: var(--accent-coral);
            box-shadow: 0 14px 40px rgba(0, 0, 0, 0.15);
        }
        .work-card:hover::after {
            opacity: 1;
        }

        .work-card h4 {
            font: 800 16px/1.3 "Inter";
            letter-spacing: 0.08em;
            color: var(--primary-dark);
            text-transform: uppercase;
            padding: 0 16px;
            text-align: center;
        }
        .work-card .work-blurb {
            font-size: 14px;
            line-height: 1.55;
            color: rgba(45, 52, 54, 0.78);
            padding: 0 10px;
            text-align: center;
            margin: 6px 0 20px;
        }
        .work-card .caption {
            position: static;
            margin-top: auto;
            width: 100%;
            display: flex;
            justify-content: center;
            gap: 8px;
            font-size: 12px;
            color: rgba(45,52,54,0.78);
        }
        .work-card .tag {
            border: 1px solid rgba(13,79,71,0.2);
            padding: 6px 12px;
            border-radius: 12px;
            letter-spacing: .05em;
            background: rgba(13,79,71,0.06);
            text-align: center;
            min-width: 110px;
        }

        /* --- CTA Section (Dark) --- */
        .cta {
            background: var(--primary-dark);
            position: relative;
            z-index: 5;
        }

        .cta .cta-wrap {
            grid-column: 3 / 11;
            text-align: center;
            max-width: 960px;
            margin-inline: auto;
        }

        .cta .eyebrow {
            display: inline-block;
            font-size: 12px;
            letter-spacing: 0.22em;
            text-transform: uppercase;
            color: rgba(250, 246, 242, 0.7);
            margin-bottom: 10px;
        }

        .cta h2 {
            font: 800 clamp(28px, 5vw, 50px) "Inter";
            color: var(--cream);
            margin-bottom: 10px;
        }

        .cta .lede {
            font-size: clamp(17px, 1.6vw, 22px);
            margin-bottom: 26px;
            color: rgba(250, 246, 242, 0.82);
        }

        .cta-actions {
            display: flex;
            gap: 12px;
            justify-content: center;
            flex-wrap: wrap;
            align-items: center;
            margin-bottom: 18px;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 14px 26px;
            border-radius: 12px;
            font-weight: 800;
            text-decoration: none;
            border: 2px solid transparent;
            transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
        }
        .btn .icon {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
            display: block;
        }

        .cta-panel {
            display: grid;
            gap: 24px;
            justify-items: center;
            margin-top: 44px;
            padding: 36px 42px;
            border-radius: 28px;
            background: rgba(12, 53, 49, 0.42);
            border: 1px solid rgba(250, 246, 242, 0.18);
            backdrop-filter: blur(12px);
            box-shadow: 0 22px 60px rgba(6, 24, 22, 0.28);
        }
        @media (max-width: 768px) {
            .cta-panel {
                margin-top: 32px;
                padding: 28px 26px;
                border-radius: 24px;
            }
            .cta-panel .btn {
                width: 100%;
                justify-content: center;
            }
        }

        .btn-primary {
            background: var(--accent-coral);
            color: #1f2a27;
        }
        .btn-primary:hover {
            transform: translateY(-2px);
            filter: saturate(1.1);
        }

        .btn-secondary {
            background: rgba(255,255,255,0.12);
            color: var(--cream);
            border-color: rgba(255,255,255,0.5);
        }
        .btn-secondary:hover {
            background: rgba(255,255,255,0.2);
            transform: translateY(-2px);
        }

        .btn-ghost {
            background: transparent;
            color: var(--cream);
            border-color: rgba(255,255,255,0.45);
        }
        .btn-ghost:hover {
            background: rgba(255,255,255,0.08);
            transform: translateY(-2px);
        }

        .quick-contacts {
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
            margin-bottom: 18px;
        }
        .chip {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 14px;
            border-radius: 999px;
            font-weight: 700;
            color: var(--cream);
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.4);
        }
        .chip:hover {
            background: rgba(255,255,255,0.14);
        }
        .chip .icon { width: 16px; height: 16px; stroke: currentColor; }

        .trust {
            display: flex;
            gap: 10px 14px;
            justify-content: center;
            list-style: none;
            padding: 0;
            margin: 8px 0 0;
            flex-wrap: wrap;
            color: rgba(250, 246, 242, 0.72);
            font-size: 13px;
            letter-spacing: .06em;
        }
        .trust li {
            border: 1px dashed rgba(255,255,255,0.35);
            padding: 6px 10px;
            border-radius: 8px;
        }

        @media (max-width: 1024px) {
            .cta .cta-wrap {
                grid-column: 1 / 9;
            }
        }
        @media (max-width: 768px) {
            .cta .cta-wrap {
                grid-column: 1 / 5;
            }
        }

        /* --- UNIFIED POPUP STYLES --- */
        /* --- This is for the WORK section, not skills --- */
        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(13, 79, 71, 0.3);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            z-index: 5000;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .popup-overlay.active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .popup-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 5001;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .skill-popup {
            position: absolute;
            width: 320px;
            max-width: 90vw;
            max-height: 90vh;
            overflow-y: auto;
            background: var(--cream); /* UPDATED from light-cream */
            border: 2px solid var(--primary-dark);
            border-radius: 8px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
            padding: 24px;
            z-index: 5002;
            opacity: 0;
            visibility: hidden;
            transform-origin: center center;
            pointer-events: auto;
        }
        @media (max-width: 600px) {
            .skill-popup {
                width: 98vw;
                max-width: 98vw;
                max-height: 90vh;
                left: 1vw !important;
                top: 10vh !important;
                padding: 12px;
                font-size: 15px;
                overflow-y: auto;
            }
            .skill-popup h3, .skill-popup h4 {
                font-size: 17px;
            }
            .skill-popup p {
                font-size: 14px;
            }
        }

        .skill-popup h3 {
            font-size: 20px;
            color: var(--primary-dark);
            margin-bottom: 12px;
        }

        .skill-popup h4 {
            font-size: 18px;
            color: var(--primary-dark);
            margin-bottom: 12px;
        }

        .skill-popup p {
            font-size: 15px;
            color: var(--charcoal);
            line-height: 1.7;
            margin-bottom: 12px;
        }

        .skill-popup p:last-child {
            margin-bottom: 0;
        }

        .close-popup {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 30px;
            height: 30px;
            background: transparent;
            border: none;
            opacity: 0.6;
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        .close-popup:hover {
            opacity: 1;
            transform: rotate(90deg);
        }

        .close-popup::before,
        .close-popup::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 20px;
            height: 2px;
            background: var(--primary-dark);
        }

        .close-popup::before {
            transform: translate(-50%, -50%) rotate(45deg);
        }

        .close-popup::after {
            transform: translate(-50%, -50%) rotate(-45deg);
        }

        /* --- Responsive --- */
        @media (max-width: 1024px) {

            /* Tablet */
            :root {
                --grid-columns: 8;
                --grid-margin: 40px;
            }

            .site-header {
                padding: 0 var(--grid-margin);
            }

            .section {
                padding: var(--grid-margin);
            }

            .section:first-of-type {
                padding-top: var(--grid-margin);
            }

            .hero .brand {
                grid-column: 1 / 8;
            }

            .hero .intro-copy {
                grid-column: 1 / 8;
                margin-top: 24px;
            }

            /* --- Hero Animation Responsive --- */
            .hero-line.line-2 {
                display: none;
                /* Hide 2nd line on tablet */
            }

            .hero-line.line-3 {
                grid-column: 1 / 8;
                top: calc(var(--grid-margin) * 1.5 + 50px);
            }

            /* --- End Hero Animation Responsive --- */


            /* --- Constellation Responsive (NEW) --- */
            .constellation-mockup-wrapper { 
                grid-column: 1 / 9; 
            } 
            .constellation-info { 
                grid-column: 1 / 9; 
                padding-top: 60px; 
                align-self: start; 
            }
            /* --- End Constellation Responsive --- */
            

            .work-intro {
                grid-column: 1 / 9;
            }

            .work .work-grid {
                grid-column: 1 / 9;
                grid-template-columns: repeat(2, 1fr);
            }

            .cta .cta-wrap {
                grid-column: 1 / 9;
            }
        }

        @media (max-width: 768px) {

            /* Mobile */
            :root {
                --grid-columns: 4;
                --grid-margin: 24px;
                --grid-gap: 16px;
            }

            .site-header {
                padding: 0 var(--grid-margin);
            }

            .section {
                padding: var(--grid-margin);
                /* NEW: from new section */
                min-height: 0; 
                padding-bottom: 100px;
            }

            .hero .brand {
                grid-column: 1 / 5;
            }

            .hero .intro-copy {
                grid-column: 1 / 5;
            }

            /* --- Hero Animation Responsive --- */
            .hero-grid-animation {
                padding: 0;
            }
            .hero-line {
                display: block;
                width: 2px;
                background: var(--grid-strong);
            }
            .hero-line.line-1 {
                left: 8px;
                top: calc(var(--grid-margin) + 6px);
                height: 160px;
                transform-origin: top center;
            }
            .hero-line.line-2 {
                left: 20px;
                top: calc(var(--grid-margin) + 186px);
                height: 120px;
                transform-origin: top center;
            }
            .hero-line.line-3 {
                display: none;
            }

            .hero .brand,
            .hero .intro-copy {
                grid-column: 1 / 5;
            }

            /* --- End Hero Animation Responsive --- */
            
            /* --- Constellation Responsive (NEW) --- */
            .constellation-mockup-wrapper { 
                grid-column: 1 / 5; 
            }
            .constellation-info { 
                grid-column: 1 / 5; 
                padding-top: 40px; 
            }
            /* --- End Constellation Responsive --- */

            .work-intro {
                grid-column: 1 / 5;
            }

            .work .work-grid {
                grid-column: 1 / 5;
                grid-template-columns: 1fr;
            }

            .cta .cta-wrap {
                grid-column: 1 / 5;
            }
        }
        .popup-section-label {
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0.22em;
            text-transform: uppercase;
            color: rgba(13, 79, 71, 0.55);
            margin: 20px 0 6px;
        }

        .contact-actions {
            display: flex;
            gap: 16px;
            justify-content: center;
            margin: 18px 0 8px;
            flex-wrap: wrap;
        }

        .btn-icon {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 12px 20px;
            border: 2px solid rgba(255,255,255,0.65);
            border-radius: 999px;
            background: rgba(255,255,255,0.12);
            color: var(--cream);
            text-decoration: none;
            transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
        }

        .btn-icon:hover {
            background: var(--accent-coral);
            color: #1f2a27;
            border-color: transparent;
            transform: translateY(-2px);
        }

        .contact-inline {
            display: flex;
            gap: 18px;
            justify-content: center;
            font-weight: 600;
            margin-top: 12px;
            flex-wrap: wrap;
        }

        .contact-inline a {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--cream);
        }

        .contact-inline a .icon {
            stroke: currentColor;
            width: 16px;
            height: 16px;
        }

        .work-card-image {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 12px 0 6px;
            position: relative;
        }

        .work-card-image::before {
            content: "";
            position: absolute;
            width: 88px;
            height: 88px;
            border-radius: 24px;
            background: radial-gradient(circle at 35% 30%, rgba(255, 107, 90, 0.28), rgba(255, 107, 90, 0));
            opacity: 0.85;
            filter: blur(0.4px);
            transform: scale(0.92);
            transition: opacity .25s ease, transform .25s ease;
        }
        .work-card:hover .work-card-image::before {
            opacity: 1;
            transform: scale(1);
        }

        .work-icon {
            width: 76px;
            height: 76px;
            color: rgba(13, 79, 71, 0.82);
            fill: none;
            stroke: currentColor;
            stroke-width: 2.2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        #vscode-svg-mockup {
            transform: translateX(-6px);
        }

        .constellation-mockup-wrapper::before {
            opacity: .12;
        }

        .constellation-info::before {
            opacity: .16;
        }

        #skill-description-panel .scroll {
            background: transparent;
            max-height: calc(var(--panel-max) + 40px);
            overflow-y: auto;
            padding-right: 8px;
        }

        #skill-description-panel .scroll::-webkit-scrollbar {
            width: 6px;
        }
        #skill-description-panel .scroll::-webkit-scrollbar-track {
            background: rgba(13,79,71,0.08);
            border-radius: 12px;
        }
        #skill-description-panel .scroll::-webkit-scrollbar-thumb {
            background: rgba(13,79,71,0.32);
            border-radius: 12px;
        }
        #skill-description-panel .scroll::-webkit-scrollbar-thumb:hover {
            background: rgba(255,107,90,0.65);
        }

        /* CTA inline links */
        .cta .cta-links {
            margin-top: 14px;
            display: flex;
            gap: 12px;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            color: rgba(255,255,255,0.88);
            font-size: 12px;
            letter-spacing: .06em;
        }
        .cta .cta-links a {
            color: rgba(255,255,255,0.95);
            text-decoration: none;
            padding: 4px 8px;
            border-radius: 6px;
            border: 1px solid transparent;
            transition: background .2s ease, border-color .2s ease;
            font-weight: 700;
        }
        .cta .cta-links a:hover {
            background: rgba(255,255,255,0.12);
            border-color: rgba(255,255,255,0.3);
        }
        .cta .cta-links .divider {
            color: rgba(250,246,242,0.5);
            padding: 0 4px;
        }
    