        /* ═══════════════════════════════════════════════
       DESIGN SYSTEM
       ═══════════════════════════════════════════════ */
        :root {
            /* Palette — deep space with electric accents */
            --bg-primary: #0a0e1a;
            --bg-secondary: #111827;
            --bg-card: rgba(17, 24, 39, 0.7);
            --bg-glass: rgba(17, 24, 39, 0.55);
            --accent: #60a5fa;
            --accent-bright: #93c5fd;
            --accent-glow: rgba(96, 165, 250, 0.15);
            --accent-secondary: #a78bfa;
            --success: #34d399;
            --warning: #fbbf24;
            --text-primary: #f1f5f9;
            --text-secondary: #94a3b8;
            --text-muted: #64748b;
            --border: rgba(148, 163, 184, 0.12);
            --border-hover: rgba(96, 165, 250, 0.4);

            /* Typography */
            --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
            --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

            /* Layout */
            --max-w: 1140px;
            --section-pad: 7rem;
            --radius: 16px;
            --radius-sm: 10px;
            --radius-pill: 999px;

            /* Transitions */
            --ease: cubic-bezier(0.4, 0, 0.2, 1);
            --duration: 0.3s;
        }

        /* Reset */
        *,
        *::before,
        *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            -webkit-text-size-adjust: 100%;
            scroll-padding-top: 96px;
        }

        body {
            font-family: var(--font-sans);
            background: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.65;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        body,
        p,
        li,
        h1,
        h2,
        h3,
        h4 {
            overflow-wrap: break-word;
        }

        a {
            color: var(--accent);
            text-decoration: none;
            transition: color var(--duration) var(--ease);
        }

        a:hover {
            color: var(--accent-bright);
        }

        ul {
            list-style: none;
        }

        img {
            max-width: 100%;
            display: block;
        }

        /* ═══════════════════════════════════════════════
       UTILITIES
       ═══════════════════════════════════════════════ */
        .container {
            max-width: var(--max-w);
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        .section {
            padding: var(--section-pad) 0;
        }

        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        .skip-link {
            position: absolute;
            left: -9999px;
            top: auto;
            width: 1px;
            height: 1px;
            overflow: hidden;
        }

        .skip-link:focus {
            left: 1rem;
            top: 1rem;
            width: auto;
            height: auto;
            padding: .75rem 1rem;
            background: var(--accent);
            color: #000;
            border-radius: var(--radius-sm);
            z-index: 9999;
            font-weight: 600;
        }

        /* Section headings */
        .section-heading {
            text-align: center;
            margin-bottom: 4rem;
        }

        .section-heading h2 {
            font-size: 2.25rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 0.75rem;
        }

        .section-heading p {
            color: var(--text-muted);
            font-size: 1.05rem;
            max-width: 500px;
            margin: 0 auto;
        }

        .section-heading .accent-line {
            display: block;
            width: 48px;
            height: 3px;
            background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
            border-radius: 2px;
            margin: 1rem auto 0;
        }

        /* Glass card base */
        .glass-card {
            background: var(--bg-glass);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            transition: border-color var(--duration) var(--ease), transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
        }

        .glass-card:hover {
            border-color: var(--border-hover);
            transform: translateY(-4px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--accent-glow);
        }

        /* Pill / chip */
        .pill {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.3rem 0.7rem;
            border-radius: var(--radius-pill);
            font-size: 0.82rem;
            font-weight: 500;
            border: 1px solid var(--border);
            color: var(--text-secondary);
            transition: all var(--duration) var(--ease);
            white-space: normal;
            text-align: center;
        }

        .pill:hover {
            border-color: var(--accent);
            color: var(--accent);
            background: var(--accent-glow);
        }

        .pill.accent {
            border-color: rgba(96, 165, 250, 0.3);
            color: var(--accent);
            background: rgba(96, 165, 250, 0.08);
        }

        .pill.success {
            border-color: rgba(52, 211, 153, 0.3);
            color: var(--success);
            background: rgba(52, 211, 153, 0.08);
        }

        .pill-row {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        /* Buttons */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.85rem 1.75rem;
            min-height: 48px;
            border-radius: var(--radius-sm);
            font-family: var(--font-sans);
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: all var(--duration) var(--ease);
            border: none;
            text-decoration: none;
        }

        .btn:last-child {
            margin-right: 0;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
            color: #000;
            box-shadow: 0 4px 16px rgba(96, 165, 250, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(96, 165, 250, 0.45);
            color: #000;
        }

        .btn-outline {
            background: transparent;
            border: 1.5px solid var(--accent);
            color: var(--accent);
        }

        .btn-outline:hover {
            background: var(--accent-glow);
            transform: translateY(-2px);
        }



        /* ═══════════════════════════════════════════════
       NAVBAR
       ═══════════════════════════════════════════════ */
        .navbar {
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
            padding: 0.75rem 0;
            background: rgba(10, 14, 26, 0.85);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border);
            transition: background var(--duration) var(--ease), padding var(--duration) var(--ease);
        }

        .navbar.scrolled {
            background: rgba(10, 14, 26, 0.95);
            padding: 0.5rem 0;
        }

        .nav-inner {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.25rem;
            font-weight: 800;
            color: var(--text-primary);
            letter-spacing: -0.03em;
            padding: 0.3rem 0.6rem;
            border: 2px solid var(--accent);
            border-radius: 6px;
            transition: all var(--duration) var(--ease);
        }

        .logo:hover {
            background: var(--accent-glow);
            color: var(--accent);
        }

        .nav-links {
            display: flex;
            gap: 1.75rem;
            align-items: center;
        }

        .nav-links a {
            color: var(--text-secondary);
            font-size: 0.9rem;
            font-weight: 500;
            position: relative;
            padding: 0.45rem 0;
        }

        .nav-links a.active,
        .nav-links a[aria-current="page"] {
            color: var(--accent);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent);
            transition: width var(--duration) var(--ease);
        }

        .nav-links a:hover {
            color: var(--accent);
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .mobile-toggle {
            display: none;
            background: none;
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 1.25rem;
            padding: 0.4rem 0.6rem;
            cursor: pointer;
        }

        /* ═══════════════════════════════════════════════
       HERO
       ═══════════════════════════════════════════════ */
        .hero {
            position: relative;
            padding: 10rem 0 6rem;
            overflow: hidden;
        }

        /* Animated gradient mesh background */
        .hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background:
                radial-gradient(ellipse 80% 60% at 70% 20%, rgba(96, 165, 250, 0.12) 0%, transparent 60%),
                radial-gradient(ellipse 60% 50% at 20% 80%, rgba(167, 139, 250, 0.10) 0%, transparent 60%),
                radial-gradient(ellipse 40% 40% at 50% 50%, rgba(52, 211, 153, 0.06) 0%, transparent 60%);
            animation: heroShift 12s ease-in-out infinite alternate;
            pointer-events: none;
        }

        @keyframes heroShift {
            0% {
                transform: scale(1) translate(0, 0);
            }

            100% {
                transform: scale(1.05) translate(-2%, 3%);
            }
        }

        /* Grid overlay */
        .hero::after {
            content: '';
            position: absolute;
            inset: 0;
            background-image:
                linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
            background-size: 60px 60px;
            pointer-events: none;
        }

        .hero-inner {
            position: relative;
            z-index: 1;
        }

        .hero-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .hero-kicker {
            max-width: 840px;
            margin-bottom: 0.85rem;
            color: var(--accent-bright);
            font-size: 0.95rem;
            font-weight: 600;
            letter-spacing: 0.02em;
        }

        .hero h1 {
            font-size: clamp(2.75rem, 6vw, 4.5rem);
            font-weight: 900;
            letter-spacing: -0.03em;
            line-height: 1.08;
            margin-bottom: 1rem;
            background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero h2 {
            font-size: clamp(1.1rem, 2.5vw, 1.5rem);
            font-weight: 500;
            color: var(--accent);
            margin-bottom: 1.5rem;
            line-height: 1.4;
        }



        .hero-layout {
            display: grid;
            grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.95fr);
            gap: 1.5rem;
            align-items: start;
            margin-top: 1.75rem;
        }

        .hero-copy {
            min-width: 0;
        }

        .hero-detail {
            max-width: 860px;
            color: var(--text-primary);
            line-height: 1.7;
            font-size: 1.03rem;
            margin-bottom: 0.85rem;
            text-wrap: pretty;
        }

        .hero-panel {
            padding: 1.5rem;
            position: relative;
            overflow: hidden;
        }

        .hero-panel::before {
            content: '';
            position: absolute;
            inset: auto -40px -40px auto;
            width: 140px;
            height: 140px;
            background: radial-gradient(circle, rgba(96, 165, 250, 0.16), transparent 68%);
            pointer-events: none;
        }

        .hero-panel h3 {
            font-size: 1rem;
            color: var(--text-primary);
            margin-bottom: 1rem;
        }

        .hero-panel-list {
            display: grid;
            gap: 0.8rem;
            margin-bottom: 1rem;
        }

        .hero-panel-list li {
            color: var(--text-secondary);
            font-size: 0.94rem;
            line-height: 1.55;
            padding-left: 1rem;
            position: relative;
        }

        .hero-panel-list li::before {
            content: '';
            position: absolute;
            top: 0.55rem;
            left: 0;
            width: 0.4rem;
            height: 0.4rem;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
        }



        .hero-panel-links {
            display: flex;
            flex-wrap: wrap;
            gap: 0.85rem;
            margin-top: 1rem;
        }

        .hero-panel-links a {
            font-size: 0.9rem;
            font-weight: 600;
            padding: 0.2rem 0;
        }

        .hero-actions {
            display: flex;
            gap: 1.25rem;
            flex-wrap: wrap;
            margin-top: 2rem;
            margin-bottom: 1rem;
        }


        /* ═══════════════════════════════════════════════
       FEATURED IMPACT
       ═══════════════════════════════════════════════ */
        .featured-section {
            background: linear-gradient(180deg, transparent 0%, rgba(17, 24, 39, 0.3) 50%, transparent 100%);
        }

        /* ═══════════════════════════════════════════════
       SERVICES
       ═══════════════════════════════════════════════ */
        .services-section {
            padding-top: 2rem;
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
        }

        .service-card {
            padding: 1.75rem;
        }

        .service-card h3 {
            font-size: 1.05rem;
            font-weight: 700;
            margin-bottom: 0.65rem;
            color: var(--text-primary);
        }

        .service-card p {
            color: var(--text-secondary);
            font-size: 0.95rem;
            margin-bottom: 0;
        }

        .featured-card {
            padding: 2.5rem;
        }

        .featured-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .featured-header h3 {
            font-size: 1.6rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 0.35rem;
        }

        .featured-header .subtitle {
            color: var(--accent);
            font-size: 1.05rem;
        }

        .featured-meta {
            text-align: right;
        }

        .featured-meta .role {
            display: block;
            font-weight: 600;
            color: var(--text-primary);
        }



        .case-study-flow {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .case-study-flow.compact {
            grid-template-columns: 1fr;
            gap: 0.85rem;
            margin-bottom: 1rem;
        }

        .case-study-flow>div {
            background: rgba(10, 14, 26, 0.4);
            padding: 1.5rem;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border);
        }

        .case-study-flow h4 {
            color: var(--accent);
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            margin-bottom: 0.5rem;
        }

        .case-study-flow p {
            color: var(--text-secondary);
            font-size: 0.95rem;
            line-height: 1.65;
        }

        .impact-list {
            list-style: disc;
            padding-left: 1.15rem;
        }

        .impact-list li {
            color: var(--text-secondary);
            margin-bottom: 0.35rem;
            font-size: 0.93rem;
        }

        /* ═══════════════════════════════════════════════
       SKILLS
       ═══════════════════════════════════════════════ */
        .skills-filters {
            display: flex;
            justify-content: center;
            gap: 0.65rem;
            flex-wrap: wrap;
            margin-bottom: 3rem;
        }

        .filter-btn {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text-secondary);
            padding: 0.5rem 1.15rem;
            border-radius: var(--radius-pill);
            cursor: pointer;
            font-family: var(--font-sans);
            font-size: 0.88rem;
            font-weight: 500;
            transition: all var(--duration) var(--ease);
        }

        .filter-btn:hover,
        .filter-btn.active {
            background: var(--accent);
            color: #000;
            border-color: var(--accent);
            box-shadow: 0 0 16px var(--accent-glow);
        }

        .filter-btn.legacy-btn {
            border-color: var(--warning);
            color: var(--warning);
        }

        .filter-btn.legacy-btn:hover,
        .filter-btn.legacy-btn.active {
            background: var(--warning);
            color: #000;
            border-color: var(--warning);
        }

        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 1.5rem;
        }

        .skill-card {
            padding: 1.5rem;
        }

        .skill-card h3 {
            font-size: 1.05rem;
            font-weight: 700;
            margin-bottom: 0.35rem;
            color: var(--text-primary);
        }

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

        .skill-card .pill-row {
            gap: 0.4rem;
        }

        .capabilities-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 1.25rem;
        }

        .capability-card {
            padding: 1.5rem;
        }

        .capability-card h3 {
            font-size: 1rem;
            font-weight: 700;
            color: var(--accent);
            margin-bottom: 0.45rem;
        }

        .capability-card p {
            color: var(--text-secondary);
            font-size: 0.95rem;
        }

        /* ═══════════════════════════════════════════════
       WORK & IMPACT
       ═══════════════════════════════════════════════ */
        .work-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
            gap: 1.5rem;
        }

        .work-card {
            padding: 2rem;
        }

        .work-card h3 {
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
        }

        .core-tech {
            color: var(--text-muted);
            font-size: 0.92rem;
            margin-top: 0.75rem;
        }

        .work-card .links {
            margin-top: 0.75rem;
        }

        .work-card .links a {
            font-size: 0.88rem;
            font-weight: 500;
            margin-right: 1rem;
        }

        /* ═══════════════════════════════════════════════
       PROJECTS
       ═══════════════════════════════════════════════ */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
        }

        .project-card {
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
        }

        .project-card h3 {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 0.2rem;
        }

        .project-card .project-sub {
            font-size: 0.88rem;
            color: var(--accent);
            margin-bottom: 0.75rem;
        }

        .project-card .project-desc {
            color: var(--text-secondary);
            font-size: 0.93rem;
            flex: 1;
            margin-bottom: 1rem;
        }

        .project-card .project-link {
            font-weight: 600;
            font-size: 0.9rem;
            margin-top: auto;
        }

        .cta-section {
            padding-top: 2rem;
            padding-bottom: 2rem;
        }

        .cta-card {
            padding: 2.5rem;
            text-align: center;
        }

        .cta-card h2 {
            font-size: 2rem;
            margin-bottom: 0.75rem;
        }

        .cta-card p {
            color: var(--text-secondary);
            max-width: 700px;
            margin: 0 auto 1.5rem;
        }



        .notes-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
        }

        .note-link {
            display: block;
            color: inherit;
        }

        .note-link:hover {
            color: inherit;
        }

        .note-card {
            padding: 1.6rem;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .note-card h3 {
            font-size: 1rem;
            margin-bottom: 0.6rem;
            color: var(--text-primary);
        }

        .note-card p {
            color: var(--text-secondary);
            font-size: 0.94rem;
        }

        .note-card .note-cta {
            margin-top: auto;
            padding-top: 1rem;
            color: var(--accent);
            font-size: 0.88rem;
            font-weight: 600;
        }

        .note-page {
            min-height: 100vh;
            padding: 7.5rem 0 4rem;
        }

        .note-article {
            max-width: 860px;
            margin: 0 auto;
        }

        .note-article-header {
            margin-bottom: 2rem;
        }

        .note-eyebrow {
            display: inline-flex;
            margin-bottom: 1rem;
        }

        .note-article-header h1 {
            font-size: clamp(2.2rem, 5vw, 3.5rem);
            line-height: 1.08;
            letter-spacing: -0.03em;
            margin-bottom: 1rem;
        }

        .note-dek {
            font-size: 1.08rem;
            line-height: 1.7;
            color: var(--text-secondary);
            max-width: 62ch;
        }

        .note-summary {
            margin-top: 1.25rem;
            color: var(--text-muted);
            font-size: 0.95rem;
        }

        .note-content {
            display: grid;
            gap: 1rem;
        }

        .note-section {
            padding: 1.5rem;
        }

        .note-section h2 {
            font-size: 1.05rem;
            margin-bottom: 0.75rem;
            color: var(--text-primary);
        }

        .note-section p {
            color: var(--text-secondary);
            line-height: 1.72;
            margin-bottom: 0.85rem;
        }

        .note-section p:last-child {
            margin-bottom: 0;
        }

        .note-back-link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1.25rem;
            font-weight: 600;
        }

        .note-more {
            margin-top: 2rem;
            padding: 1.5rem;
        }

        .note-more h2 {
            font-size: 1rem;
            margin-bottom: 1rem;
        }

        .note-more-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 0.85rem;
        }

        .note-more-link {
            display: block;
            padding: 1rem;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            background: rgba(10, 14, 26, 0.35);
            color: var(--text-secondary);
            transition: border-color var(--duration) var(--ease), transform var(--duration) var(--ease), color var(--duration) var(--ease);
        }

        .note-more-link:hover {
            border-color: var(--border-hover);
            color: var(--text-primary);
            transform: translateY(-2px);
        }

        .note-more-link strong {
            display: block;
            margin-bottom: 0.35rem;
            color: var(--text-primary);
        }

        /* ═══════════════════════════════════════════════
       CONTACT
       ═══════════════════════════════════════════════ */
        .contact-section {
            background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 26, 0.6) 100%);
            border-top: 1px solid var(--border);
        }

        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            align-items: start;
        }

        .contact-info h2 {
            font-size: 2rem;
            font-weight: 800;
            margin-bottom: 1rem;
        }

        .contact-info p {
            color: var(--text-secondary);
            margin-bottom: 1.5rem;
            line-height: 1.7;
        }

        .contact-links {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .engagement-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.25rem;
        }

        .contact-note {
            color: var(--text-muted);
            font-size: 0.95rem;
        }

        .contact-links a {
            font-weight: 500;
            font-size: 0.95rem;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            flex-wrap: wrap;
            min-height: 44px;
        }

        /* Form */
        .contact-form {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }

        .field {
            display: flex;
            flex-direction: column;
        }

        .field label {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 0.35rem;
        }

        .field input,
        .field textarea,
        .field select {
            padding: 0.75rem 1rem;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border);
            background: var(--bg-glass);
            color: var(--text-primary);
            font-family: var(--font-sans);
            font-size: 0.95rem;
            transition: border-color var(--duration) var(--ease);
        }

        .field input:focus,
        .field textarea:focus,
        .field select:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-glow);
        }

        .field textarea {
            min-height: 120px;
            resize: vertical;
        }

        .field select option {
            background: var(--bg-secondary);
        }

        /* Honeypot */
        .honey {
            display: none;
        }

        /* Footer bottom */
        .footer-bottom {
            text-align: center;
            padding: 2rem 0;
            border-top: 1px solid var(--border);
            margin-top: 3rem;
            color: var(--text-muted);
            font-size: 0.88rem;
        }

        /* ═══════════════════════════════════════════════
       PROJECT SHOWCASE
       ═══════════════════════════════════════════════ */
        .showcase-section {
            background: linear-gradient(180deg, transparent 0%, rgba(17, 24, 39, 0.3) 50%, transparent 100%);
        }

        .pipeline-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
            margin-bottom: 2.5rem;
        }

        .pipeline-grid.two-col {
            grid-template-columns: repeat(2, 1fr);
            max-width: 900px;
            margin-inline: auto;
        }

        .stage-card {
            padding: 1.75rem;
            position: relative;
            overflow: hidden;
        }

        .stage-card::before {
            content: attr(data-stage);
            position: absolute;
            top: 0.75rem;
            right: 1rem;
            font-size: 3.5rem;
            font-weight: 900;
            color: rgba(96, 165, 250, 0.07);
            line-height: 1;
            pointer-events: none;
        }

        .stage-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.25rem 0.65rem;
            border-radius: var(--radius-pill);
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            margin-bottom: 0.75rem;
        }

        .stage-badge.detect {
            background: rgba(96, 165, 250, 0.12);
            color: var(--accent);
            border: 1px solid rgba(96, 165, 250, 0.25);
        }

        .stage-badge.scale {
            background: rgba(167, 139, 250, 0.12);
            color: var(--accent-secondary);
            border: 1px solid rgba(167, 139, 250, 0.25);
        }

        .stage-badge.segment {
            background: rgba(52, 211, 153, 0.12);
            color: var(--success);
            border: 1px solid rgba(52, 211, 153, 0.25);
        }

        .stage-badge.setup {
            background: rgba(251, 191, 36, 0.12);
            color: #fbbf24;
            border: 1px solid rgba(251, 191, 36, 0.25);
        }

        .stage-badge.prompt {
            background: rgba(244, 114, 182, 0.12);
            color: #f472b6;
            border: 1px solid rgba(244, 114, 182, 0.25);
        }

        .stage-badge.execute {
            background: rgba(52, 211, 153, 0.12);
            color: var(--success);
            border: 1px solid rgba(52, 211, 153, 0.25);
        }

        .showcase-divider {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            margin: 3rem 0;
        }

        .showcase-divider::before,
        .showcase-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--border), transparent);
        }

        .showcase-divider span {
            font-size: 0.82rem;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--text-muted);
            white-space: nowrap;
        }

        .stage-card h3 {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 0.4rem;
        }

        .stage-card .stage-desc {
            font-size: 0.88rem;
            color: var(--text-muted);
            margin-bottom: 1rem;
            line-height: 1.55;
        }

        .thumb-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 0.5rem;
        }

        .thumb-grid.single {
            grid-template-columns: 1fr;
        }

        .stage-thumb {
            position: relative;
            border-radius: var(--radius-sm);
            overflow: hidden;
            cursor: pointer;
            appearance: none;
            background: transparent;
            padding: 0;
            border: 2px solid transparent;
            transition: all var(--duration) var(--ease);
            aspect-ratio: 16 / 10;
            text-align: left;
        }

        .stage-badge.math {
            background: rgba(167, 139, 250, 0.12);
            color: var(--accent-secondary);
            border: 1px solid rgba(167, 139, 250, 0.25);
        }

        .stage-badge.solution {
            background: rgba(52, 211, 153, 0.12);
            color: var(--success);
            border: 1px solid rgba(52, 211, 153, 0.25);
        }

        .stage-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s var(--ease);
        }

        .stage-thumb::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.5));
            opacity: 0;
            transition: opacity var(--duration) var(--ease);
        }

        .stage-thumb:hover {
            border-color: var(--accent);
            box-shadow: 0 0 20px rgba(96, 165, 250, 0.25);
        }

        .stage-thumb:focus-visible {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-glow);
            outline: none;
        }

        .stage-thumb:hover img {
            transform: scale(1.08);
        }

        .stage-thumb:hover::after {
            opacity: 1;
        }

        .stage-thumb .thumb-expand {
            position: absolute;
            bottom: 0.4rem;
            right: 0.4rem;
            z-index: 2;
            font-size: 0.75rem;
            color: white;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 4px;
            padding: 0.15rem 0.35rem;
            opacity: 0;
            transition: opacity var(--duration) var(--ease);
        }

        .stage-thumb:hover .thumb-expand {
            opacity: 1;
        }

        .showcase-tech {
            text-align: center;
            padding: 1.5rem;
            background: rgba(10, 14, 26, 0.4);
            border-radius: var(--radius-sm);
            border: 1px solid var(--border);
        }

        .showcase-tech p {
            color: var(--text-muted);
            font-size: 0.9rem;
            max-width: 700px;
            margin: 0 auto;
            line-height: 1.6;
        }

        .showcase-tech strong {
            color: var(--text-secondary);
        }

        /* ─── Lightbox ─── */
        .lightbox {
            position: fixed;
            inset: 0;
            z-index: 9999;
            display: none;
            align-items: center;
            justify-content: center;
        }

        .lightbox.active {
            display: flex;
        }

        .lightbox-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.88);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        .lightbox-content {
            position: relative;
            z-index: 1;
            max-width: 92vw;
            max-height: 88vh;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .lightbox-img {
            max-width: 100%;
            max-height: 78vh;
            border-radius: var(--radius);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
            object-fit: contain;
            animation: lbFadeIn 0.3s var(--ease);
        }

        @keyframes lbFadeIn {
            from {
                opacity: 0;
                transform: scale(0.95);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .lightbox-caption {
            color: var(--text-secondary);
            font-size: 0.9rem;
            text-align: center;
            margin-top: 1rem;
            max-width: 600px;
        }

        .lightbox-counter {
            color: var(--text-muted);
            font-size: 0.8rem;
            font-family: var(--font-mono);
            margin-top: 0.4rem;
        }

        .lightbox-close {
            position: absolute;
            top: -2rem;
            right: -1rem;
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 2rem;
            cursor: pointer;
            transition: color var(--duration) var(--ease), transform var(--duration) var(--ease);
            z-index: 2;
            line-height: 1;
        }

        .lightbox-close:hover {
            color: var(--accent);
            transform: rotate(90deg);
        }

        .lightbox-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: white;
            font-size: 1.5rem;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--duration) var(--ease);
            z-index: 2;
        }

        .lightbox-nav:hover {
            background: var(--accent);
            color: #000;
            border-color: var(--accent);
        }

        .lightbox-prev {
            left: -3.5rem;
        }

        .lightbox-next {
            right: -3.5rem;
        }

        /* ═══════════════════════════════════════════════
       SCROLL REVEAL ANIMATION
       ═══════════════════════════════════════════════ */
        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
        }

        .reveal.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* stagger children */
        .stagger>.reveal:nth-child(1) {
            transition-delay: 0ms;
        }

        .stagger>.reveal:nth-child(2) {
            transition-delay: 80ms;
        }

        .stagger>.reveal:nth-child(3) {
            transition-delay: 160ms;
        }

        .stagger>.reveal:nth-child(4) {
            transition-delay: 240ms;
        }

        .stagger>.reveal:nth-child(5) {
            transition-delay: 320ms;
        }

        .stagger>.reveal:nth-child(6) {
            transition-delay: 400ms;
        }

        /* ═══════════════════════════════════════════════
       PRINT
       ═══════════════════════════════════════════════ */
        @media print {

            .navbar,
            .hero-actions,
            .skills-filters,
            .mobile-toggle,
            .contact-form,
            .skip-link {
                display: none !important;
            }

            .hero {
                padding-top: 2rem;
            }

            .hero::before,
            .hero::after {
                display: none;
            }

            .glass-card {
                border: 1px solid #ddd;
                box-shadow: none;
                background: #fff;
            }

            body {
                background: #fff;
                color: #111;
            }

            a[href]::after {
                content: " (" attr(href) ")";
                font-size: .8em;
                color: #666;
            }

            .section {
                padding: 2rem 0;
            }

            .reveal {
                opacity: 1 !important;
                transform: none !important;
            }
        }

        /* ═══════════════════════════════════════════════
       RESPONSIVE
       ═══════════════════════════════════════════════ */
        @media (max-width: 900px) {
            .hero-layout {
                grid-template-columns: 1fr;
            }

            .case-study-flow {
                grid-template-columns: 1fr;
            }

            .pipeline-grid {
                grid-template-columns: 1fr;
            }

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

            .contact-grid {
                grid-template-columns: 1fr;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .featured-header {
                flex-direction: column;
            }

            .featured-meta {
                text-align: left;
            }
        }

        @media (max-width: 768px) {
            .container {
                padding: 0 1rem;
            }

            .section {
                padding: 4.5rem 0;
            }

            .section-heading {
                margin-bottom: 2.5rem;
            }

            .section-heading h2 {
                font-size: 1.75rem;
            }

            .section-heading p {
                font-size: 0.98rem;
            }

            .nav-links {
                display: none;
                flex-direction: column;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background: rgba(10, 14, 26, 0.97);
                backdrop-filter: blur(20px);
                padding: 1rem 1.5rem;
                gap: 0.75rem;
                border-bottom: 1px solid var(--border);
            }

            .nav-links a {
                display: block;
                width: 100%;
                padding: 0.7rem 0;
            }

            .nav-links.open {
                display: flex;
            }

            .mobile-toggle {
                display: block;
            }

            .hero {
                padding: 7.5rem 0 3.5rem;
            }

            .hero-inner {
                text-align: left;
            }

            .hero-chips {
                gap: 0.4rem;
                margin-bottom: 1.25rem;
            }

            .hero h1 {
                font-size: clamp(2.4rem, 11vw, 3.4rem);
                margin-bottom: 0.75rem;
            }

            .hero h2 {
                font-size: 1.1rem;
                margin-bottom: 1rem;
            }

            .hero-summary {
                font-size: 0.98rem;
                line-height: 1.5;
                margin-bottom: 0.75rem;
            }

            .hero-recruiter-summary {
                font-size: 0.93rem;
                line-height: 1.55;
                margin-bottom: 0.9rem;
            }

            .hero-detail {
                font-size: 0.95rem;
                line-height: 1.58;
                margin-bottom: 0.75rem;
            }

            .hero-actions {
                flex-direction: column;
                align-items: stretch;
                gap: 0.75rem;
                margin-top: 1.25rem;
            }

            .hero-actions .btn {
                width: 100%;
            }

            .hero-panel-links a {
                min-height: 44px;
                display: inline-flex;
                align-items: center;
            }

            .hero-panel {
                padding: 1.25rem;
            }

            .hero-panel-list {
                gap: 0.65rem;
            }

            .hero-panel-list li {
                font-size: 0.9rem;
                line-height: 1.5;
            }



            .skills-grid {
                grid-template-columns: 1fr;
            }

            .projects-grid {
                grid-template-columns: 1fr;
            }

            .services-grid,
            .capabilities-grid,
            .notes-grid {
                grid-template-columns: 1fr;
            }

            .featured-card,
            .work-card,
            .project-card,
            .service-card,
            .capability-card,
            .note-card,
            .stage-card,
            .cta-card {
                padding: 1.25rem;
            }

            .featured-header h3,
            .cta-card h2,
            .contact-info h2 {
                font-size: 1.5rem;
            }

            .showcase-divider {
                gap: 0.75rem;
                margin: 2rem 0;
            }

            .showcase-divider span {
                font-size: 0.72rem;
                white-space: normal;
                text-align: center;
            }

            .note-page {
                padding: 6.75rem 0 3rem;
            }

            .note-section,
            .note-more {
                padding: 1.25rem;
            }

            .thumb-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .lightbox-prev {
                left: 0.5rem;
            }

            .lightbox-next {
                right: 0.5rem;
            }

            .lightbox-close {
                top: 0.5rem;
                right: 0.5rem;
            }



            .pipeline-grid.two-col {
                grid-template-columns: 1fr;
            }

            .contact-grid {
                gap: 2rem;
            }

            .contact-links {
                gap: 0.75rem;
            }

            .footer-bottom {
                font-size: 0.82rem;
            }

            .scroll-to-top {
                right: 1rem;
                bottom: 1rem;
            }
        }

        @media (max-width: 480px) {
            .hero {
                padding: 6.9rem 0 3rem;
            }

            .pill {
                font-size: 0.76rem;
                padding: 0.28rem 0.6rem;
            }

            .hero-kicker {
                font-size: 0.88rem;
            }

            .hero-chips {
                margin-bottom: 1rem;
            }

            .hero-panel-links {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.6rem;
            }

            .hero-detail,
                .contact-note,
                .note-dek {
                    max-width: 36ch;
                }



            .btn {
                padding: 0.8rem 1rem;
            }

            .featured-card,
            .work-card,
            .project-card,
            .service-card,
            .capability-card,
            .note-card,
            .stage-card,
            .cta-card {
                padding: 1rem;
            }

            .stage-card::before {
                font-size: 2.6rem;
                top: 0.6rem;
                right: 0.75rem;
            }

            .thumb-grid {
                grid-template-columns: 1fr;
            }

            .showcase-tech,
            .case-study-flow>div {
                padding: 1rem;
            }
        }

        /* ═══════════════════════════════════════════════
   NEW UI ENHANCEMENTS
   ═══════════════════════════════════════════════ */

        /* Reading Progress Bar */
        .reading-progress-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: transparent;
            z-index: 1001;
        }

        .reading-progress-bar {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
            transition: width 0.1s ease-out;
        }

        /* Scroll to Top Button */
        .scroll-to-top {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            background: var(--bg-card);
            color: var(--accent);
            width: 3rem;
            height: 3rem;
            border-radius: 50%;
            border: 1.5px solid var(--accent);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            transition: all var(--duration) var(--ease);
            z-index: 999;
        }

        .scroll-to-top.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .scroll-to-top:hover {
            background: var(--accent);
            color: #000;
            transform: translateY(-5px);
            box-shadow: 0 8px 16px rgba(96, 165, 250, 0.4);
        }

        /* Form Spinner */
        .spinner {
            display: inline-block;
            width: 1rem;
            height: 1rem;
            border: 2px solid rgba(0, 0, 0, 0.2);
            border-right-color: #000;
            border-radius: 50%;
            animation: spin 0.75s linear infinite;
            margin-right: 0.5rem;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        /* A11y Focus Outlines */
        a:focus-visible,
        button:focus-visible,
        input:focus-visible,
        textarea:focus-visible,
        select:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 2px;
        }

        @media (prefers-reduced-motion: reduce) {
            html {
                scroll-behavior: auto;
            }

            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }

            .reveal {
                opacity: 1;
                transform: none;
            }
        }
