        :root {
            --bg: #0F1220;
            --paper: #0B0F1B;
            --text: #F4F7FF;
            --muted: #B6BBD5;
            --accent: #FFD96A;
            --max: 1120px;
            --radius: 16px;
        }

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

        html,
        body {
            background: var(--bg);
            color: var(--text);
            font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
            scroll-behavior: smooth;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        .container {
            width: min(var(--max), 92%);
            margin: 0 auto;
        }

        /* ---------------- HEADER ---------------- */
        header.nav {
            position: sticky;
            top: 0;
            z-index: 50;
            background: var(--paper);
            backdrop-filter: blur(6px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            transition: transform 0.35s ease, opacity 0.25s ease;
            overflow: visible;
            /* allows logo to overlap bottom border */
            height: 280px;
            /* taller to fit logo overlap */
        }

        /* Hidden state */
        header.nav.hide-header {
            transform: translateY(-100%);
            opacity: 0;
        }

        .header-inner {
            position: relative;
            display: block;
            height: 100%;
            max-width: var(--max);
            margin: 0 auto;
            padding: 0 3%;
        }

        /* nav links above logo */
        nav {
            position: absolute;
            top: 60px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 50px;
        }

        nav a {
            color: var(--muted);
            font-weight: 500;
            font-size: 1.1rem;
            transition: color 0.2s ease;
        }

        nav a:hover {
            color: var(--text);
        }

        nav .btn {
            background: var(--accent);
            color: #1b1406;
            font-weight: 700;
            padding: 10px 16px;
            border-radius: 12px;
            transition: filter 0.2s ease;
        }

        nav .btn:hover {
            filter: brightness(1.1);
        }

        /* logo centered and overlapping bottom border */
        .brand {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            bottom: -95px;
            /* adjust overlap depth */
            z-index: 1;
            display: flex;
            justify-content: center;
        }

        .brand img.logo-img {
            height: 275px;
            width: auto;
            display: block;
            transition: transform 0.25s ease;
        }

        .brand img.logo-img:hover {
            transform: scale(1.04);
        }

        /* --- MOBILE DROPDOWN --- */
        .menu-toggle {
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 5px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 10px;
            z-index: 100;
        }

        .menu-toggle span {
            width: 26px;
            height: 3px;
            background: var(--text);
            border-radius: 2px;
            transition: all 0.3s ease;
        }

        /* X animation */
        .menu-toggle.open span:nth-child(1) {
            transform: rotate(45deg) translateY(8px);
        }

        .menu-toggle.open span:nth-child(2) {
            opacity: 0;
        }

        .menu-toggle.open span:nth-child(3) {
            transform: rotate(-45deg) translateY(-8px);
        }

        /* Mobile Nav Container */
        .nav-links {
            display: flex;
            align-items: center;
            gap: 40px;
            transition: all 0.3s ease;
        }

        /* ---------------- HERO ---------------- */
        .hero {
            padding: 84px 0 54px;
            text-align: center;
        }

        .eyebrow {
            display: inline-block;
            background: rgba(255, 217, 106, .15);
            color: #FFE9A9;
            border: 1px solid rgba(255, 217, 106, .35);
            padding: 6px 10px;
            border-radius: 999px;
            font-size: .85rem;
            margin-bottom: 14px;
        }

        .hero h1 {
            margin: 0 0 12px;
            font-size: clamp(2rem, 4.5vw, 3.25rem);
            line-height: 1.05;
        }

        .hero p {
            margin: 8px auto 22px;
            color: var(--muted);
            max-width: 760px;
        }

        .btn {
            display: inline-block;
            background: var(--accent);
            color: #1b1406;
            font-weight: 700;
            padding: 10px 16px;
            border-radius: 12px;
            transition: filter 0.2s ease;
        }

        .btn:hover {
            filter: brightness(1.1);
            color: #fff;
        }

        form .btn {
            display: block;
            /* ensures it takes full width context for centering */
            margin: 24px auto 0;
            /* centers horizontally */
            padding: 14px 50px;
            /* bigger button */
            font-size: 1.1rem;
            /* slightly larger text */
            border-radius: 12px;
            /* keep consistent with rest of design */
            text-align: center;
        }

        .subline {
            margin-top: 12px;
            color: var(--muted);
            font-size: .95rem;
        }

        /* ---------------- SECTIONS ---------------- */
        .section {
            padding: 40px 0;
        }

        h2 {
            margin: 0 0 14px;
            font-size: clamp(1.5rem, 2.6vw, 2.1rem);
        }

        .grid {
            display: grid;
            gap: 18px;
            grid-template-columns: repeat(3, 1fr);
        }

        .card {
            background: var(--paper);
            border: 1px solid rgba(255, 255, 255, .06);
            border-radius: var(--radius);
            padding: 18px;
            transition: transform 0.25s ease, box-shadow 0.25s ease;
            cursor: pointer;
        }

        .card h3 {
            margin: 0 0 6px;
        }

        .work-card {
            background: var(--paper);
            border: 2px solid rgba(255, 255, 255, .06);
            border-radius: var(--radius);
            padding: 18px;
            transition: transform 0.25s ease, box-shadow 0.25s ease;
            cursor: pointer;

            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.25s ease;
        }
        @media (max-width: 900px) {
            .work-card {
                border: 5px solid rgba(255, 255, 255, .06);
            }
            /* Click (active) effect */
            .work-card:active {
                transform: translateY(-6px) scale(.98);
                box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
            }
        }

        .work-card.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Hover effect */
        .work-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
        }

        .work-card h3 {
            margin: 0 0 6px;
        }

        .muted {
            color: var(--muted);
        }

        /* ---------------- ABOUT ---------------- */
        .about {
            width: min(var(--max), 92%);
            margin: 0 auto;
        }

        /* ---------------- CONTACT ---------------- */
        .contact .card {
            max-width: 760px;
            margin: 0 auto;
        }

        .field {
            display: grid;
            gap: 8px;
            margin-bottom: 14px;
        }

        input,
        textarea,
        select {
            width: 100%;
            padding: 12px 14px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, .12);
            background: #0b0f21;
            color: var(--text);
            font-size: 18px;
        }

        input:focus,
        textarea:focus,
        select:focus {
            outline: 2px solid var(--accent);
        }

        .consent {
            display: flex;
            gap: 10px;
            align-items: flex-start;
            margin: 8px 0 16px;
        }

        .consent input {
            margin-top: 3px;
        }

        /* ---------------- FOOTER ---------------- */
        .footer {
            background: var(--paper);
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            padding: 10px 0 50px;
            color: var(--muted);
            text-align: center;
        }

        .footer-inner {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 36px;
        }

        /* Brand */
        .footer-brand {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .footer-logo {
            height: 125px;
            width: auto;
            display: block;
            transition: transform 0.25s ease;
        }

        .footer-logo:hover {
            transform: scale(1.04);
        }

        .tagline {
            color: var(--text);
            font-weight: 500;
            font-size: .9rem;
            margin: -25px 0 0;
        }

        /* Footer Navigation / Sitemap */
        .footer-nav-wrapper {
            display: block;
            width: 100%;
            text-align: center;
        }

        .footer-nav {
            display: flex !important;
            justify-content: center;
            flex-wrap: wrap;
            gap: 24px;
            opacity: 1 !important;
            visibility: visible !important;
            position: relative;
            z-index: 5;
            margin-top: -55px;
            margin-bottom: 40px;
        }

        .footer-nav a {
            display: inline-block;
            color: var(--muted);
            font-size: 1rem;
            font-weight: 400;
            text-decoration: none;
            transition: color 0.25s ease;
        }

        .footer-nav a:hover {
            color: var(--text);
        }

        /* Social Icons */
        .footer-social {
            display: flex;
            justify-content: center;
            gap: 24px;
            width: 100%;
            /* added */
            margin-top: 6px;
            /* added */
        }

        .footer-social a {
            display: inline-block;
            transition: transform 0.25s ease;
        }

        .footer-social a:hover {
            transform: translateY(-3px);
        }

        .social-icon {
            height: 50px;
            width: 50px;
            object-fit: contain;
            filter: brightness(0) invert(1);
            /* keeps icons white */
        }

        /* Copyright */
        .footer-copy {
            font-size: 0.9rem;
            color: var(--muted);
            margin-top: 30px;
            margin-bottom: 20px;
        }

        /* Hide the mobile accordion on desktop */
        @media (min-width: 901px) {
            .mobile-footer-accordion {
                display: none;
            }
        }

        /* ---------------- RESPONSIVE ---------------- */
        @media (max-width: 600px) {
            .footer {
                padding: 10px 0 40px;
            }

            .footer-logo {
                height: 150px;
                margin-top: -20px;
            }

            .tagline {
                margin: -30px 0 0;
            }

            /* Hide desktop footer links/icons on mobile */
            .footer-nav-wrapper,
            .footer-social {
                display: none;
            }

            /* Show mobile accordion on mobile only */
            .mobile-footer-accordion {
                display: block;
                width: 100%;
                margin-top: 0px;
                border-top: 1px solid rgba(255, 255, 255, 0.10);
            }

            .mobile-footer-accordion details {
                border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            }

            .mobile-footer-accordion summary {
                list-style: none;
                cursor: pointer;
                padding: 14px 0;
                text-align: center;
                font-weight: 600;
                color: var(--text);
                position: relative;
            }

            /* remove default triangle */
            .mobile-footer-accordion summary::-webkit-details-marker {
                display: none;
            }

            /* add a chevron */
            .mobile-footer-accordion summary::after {
                content: "▾";
                position: absolute;
                right: 12%;
                top: 50%;
                transform: translateY(-50%) rotate(0deg);
                transition: transform .2s ease;
                opacity: 0.8;
                font-size: 3rem;
            }

            .mobile-footer-accordion details[open] summary::after {
                transform: translateY(-50%) rotate(180deg);
            }

            .mobile-footer-nav,
            .mobile-footer-social {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 12px;
                padding: 10px 0 16px;
            }

            .mobile-footer-social {
                flex-direction: row;
            }

            .mobile-footer-nav a {
                color: var(--muted);
                text-decoration: none;
                font-size: 1rem;
            }

            .mobile-footer-nav a:hover {
                color: var(--text);
            }

            .mobile-footer-social .social-icon {
                width: 40px;
                height: 40px;
                filter: brightness(0) invert(1);
            }
        }

        /* ---------------- RESPONSIVE ---------------- */
        @media (max-width: 900px) {
            :root {
                --mobile-header-h: 140px;
            }

            /* make the actual header this tall (moves the bottom border too) */
            header.nav {
                height: var(--mobile-header-h);
                /* NEW: prevent fixed children from being clipped by header on mobile */
                backdrop-filter: none;
                -webkit-backdrop-filter: none;
                overflow: visible;
            }

            nav {
                flex-wrap: wrap;
                justify-content: center;
                gap: 16px;
            }

            .brand img.logo-img {
                height: 175px;
                margin-top: 60px;
            }

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

            .hero {
                padding-top: 64px;
            }

            /* keep header items inline */
            .header-inner {
                flex-direction: row;
                justify-content: center;
                align-items: center;
                height: 80px;
                padding: 0 4%;
            }

            /* show hamburger icon */
            .menu-toggle {
                /* CHANGED: fixed so it sits above the fullscreen overlay */
                position: fixed;
                right: 50px;
                top: 25px;
                transform: none;
                display: flex;
                z-index: 100;
            }

            /* FULLSCREEN nav links */
            .nav-links {
                position: fixed;
                inset: 0;
                height: 100vh;
                background: rgba(15, 18, 32, 0.98);
                display: flex;
                flex-direction: column;
                justify-content: flex-start;
                /* move links toward the top */
                align-items: center;
                gap: 28px;
                padding-top: 140px;
                /* adjust spacing from the very top */
                opacity: 0;
                pointer-events: none;
                transform: translateY(-10px);
                transition: all 0.3s ease;
                z-index: 99;
            }

            .nav-links.show {
                opacity: 1;
                pointer-events: auto;
                transform: translateY(0);
            }

            .nav-links a {
                font-size: 1.1rem;
                text-align: center;
                width: 100%;
            }

            .nav-links .btn {
                width: 80%;
                text-align: center;
            }

            .brand {
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
                bottom: -120px;
                /* adjust overlap depth */
                z-index: 1;
                display: flex;
                justify-content: center;
            }
        }