        :root {
            /* Brand Teal Palette */
            --teal-primary: #018488;
            --teal-hover: #016668;
            --teal-light: #01969a;
            --teal-pale: #d3e7e5;
            
            /* Neutrals */
            --black: #0b0b0b;
            --white: #fff;
            --off: #f7f7f7;
            
            /* Semantic Tokens */
            --gold: var(--teal-primary);
            --text: var(--black);
            --bg: var(--off);
            --glass: rgba(255, 255, 255, .12);
            --glass-txt: #444;
            --dark-glass: rgba(255, 255, 255, .05)
        }

        html[data-theme=dark] {
            --text: #fff;
            --bg: #0e0e0e;
            --glass: var(--dark-glass);
            --glass-txt: #ccc
        }

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

        body {
            font-family: Inter, sans-serif;
            background: var(--bg);
            color: var(--text);
            line-height: 1.6;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased
        }

        a {
            color: var(--gold);
            text-decoration: none;
            transition: opacity 0.2s ease
        }

        a:hover {
            opacity: 0.8
        }

        .card a, section a {
            border-bottom: 1px solid rgba(1, 132, 136, 0.3)
        }

        .card a:hover, section a:hover {
            border-bottom-color: var(--gold)
        }

        .skip {
            position: absolute;
            left: -999px;
            width: 1px;
            height: 1px;
            overflow: hidden
        }

        .skip:focus {
            left: 0;
            width: auto;
            height: auto;
            padding: .5rem 1rem;
            background: var(--gold);
            color: #000;
            z-index: 1000
        }

        nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 3000;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 2rem;
            font-weight: 500
        }

        .nav-logo {
            border: none;
        }

        .nav-logo img {
            height: 96px;
            width: auto;
            display: block;
        }

        nav a {
            color: #fff;
            position: relative
        }

        nav a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -4px;
            width: 0;
            height: 2px;
            background: var(--gold);
            transition: width .3s
        }

        nav a:hover::after {
            width: 100%
        }

        .theme-toggle {
            background: var(--glass);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            width: 44px;
            height: 22px;
            cursor: pointer;
            position: relative;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            padding: 2px;
            margin-left: 1rem;
        }

        .theme-toggle::before {
            content: "";
            position: absolute;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #fff;
            transition: all 0.3s ease;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        [data-theme="dark"] .theme-toggle::before {
            transform: translateX(20px);
            background: var(--gold);
        }

        /* Mobile Nav Styles */
        .burger {
            display: none;
            cursor: pointer;
            z-index: 3001;
            background: none;
            border: none;
            flex-direction: column;
            gap: 5px;
            padding: 5px;
        }

        .burger span {
            display: block;
            width: 25px;
            height: 2px;
            background: var(--text);
            transition: all 0.3s ease;
        }

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

        @media (max-width: 768px) {
            nav {
                top: 0;
                left: 0;
                right: 0;
                padding: 1rem 1.5rem;
                justify-content: space-between;
            }

            .burger {
                display: flex;
            }

            .burger span {
                background: #fff;
            }

            .nav-links {
                position: fixed;
                top: 0;
                right: -100%;
                height: 100vh;
                width: 75%;
                max-width: 280px;
                background: rgba(11, 11, 11, 0.98);
                flex-direction: column;
                justify-content: center;
                align-items: center;
                gap: 2.5rem;
                transition: right 0.3s ease;
                box-shadow: -5px 0 20px rgba(0,0,0,0.6);
                padding: 4rem 2rem;
                backdrop-filter: blur(12px);
                border-left: 1px solid rgba(255,255,255,0.08);
            }

            .nav-links.active {
                right: 0;
            }

            .nav-links a {
                font-size: 1.1rem;
                color: #fff;
            }

            /* Burger Animation */
            .burger.active span:nth-child(1) {
                transform: rotate(45deg) translate(5px, 5px);
                background: var(--gold);
            }
            .burger.active span:nth-child(2) {
                opacity: 0;
            }
            .burger.active span:nth-child(3) {
                transform: rotate(-45deg) translate(5px, -5px);
                background: var(--gold);
            }
        }

        .theme-toggle:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.2);
        }

        #c,
        #f {
            position: fixed;
            top: 0;
            left: 0;
            pointer-events: none;
            border-radius: 50%;
            transform: translate(-50%, -50%);
            mix-blend-mode: difference;
            z-index: 9999
        }

        #c {
            width: 8px;
            height: 8px;
            background: var(--white)
        }

        #f {
            width: 36px;
            height: 36px;
            border: 2px solid var(--white);
            opacity: .15;
            transition: width .2s, height .2s, opacity .3s
        }

        .hover:hover~#f {
            width: 48px;
            height: 48px;
            opacity: .25
        }

        @media(hover:none) {

            #c,
            #f {
                display: none
            }
        }

        header {
            position: relative;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            overflow: hidden;
            background: #000
        }

        header video {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: grayscale(100%) brightness(.55);
            animation: z 22s ease-in-out infinite
        }

        @keyframes z {

            0%,
            100% {
                transform: scale(1)
            }

            50% {
                transform: scale(1.08)
            }
        }

        header .o {
            position: relative;
            z-index: 2;
            padding: 0 2rem
        }

        h1 {
            font-family: "Playfair Display", serif;
            font-size: clamp(2.7rem, 6vw, 6rem);
            letter-spacing: -2px;
            color: #fff;
            line-height: 1.1;
            text-shadow: 0 2px 8px rgba(0, 0, 0, .35)
        }

        h1 span {
            display: inline
        }

        header p {
            font-size: clamp(1rem, 1.5vw, 1.25rem);
            color: #dcdcdc;
            margin: 1.2rem 0 2.2rem
        }

        header .cta {
            display: flex;
            justify-content: center;
            gap: 1rem
        }

        .btn {
            background: linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-light) 100%);
            color: #fff;
            padding: .7rem 1.6rem;
            border: none;
            font-size: .85rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: .5px;
            border-radius: 4px;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(1, 132, 136, 0.3);
            transition: all .3s ease
        }

        .btn:hover {
            background: linear-gradient(135deg, var(--teal-hover) 0%, var(--teal-primary) 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(1, 132, 136, 0.4)
        }

        section {
            padding: 7rem 5%
        }

        h2 {
            font-size: clamp(1.8rem, 3.5vw, 2.5rem);
            text-align: center;
            margin-bottom: 4rem;
            position: relative;
            letter-spacing: -0.5px
        }

        h2::after {
            content: "";
            display: block;
            width: 60px;
            height: 3px;
            background: var(--gold);
            margin: 1.5rem auto 0
        }

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

        .grid.grid--center {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
        }

        .grid.grid--center > .card {
            flex: 1 1 280px;
            max-width: 360px;
        }

        /* Education timeline accent */
        #edu .grid.grid--center {
            position: relative;
        }

        #edu .grid.grid--center::before {
            content: "";
            position: absolute;
            top: 0.5rem;
            bottom: 0.5rem;
            left: -1.4rem;
            width: 3px;
            background: var(--gold);
            border-radius: 999px;
            opacity: 0.9;
            pointer-events: none;
        }

        #edu .grid.grid--center > .card {
            position: relative;
            z-index: 1;
        }

        .card {
            padding: 2.2rem 1.8rem;
            border-radius: 18px;
            background: var(--glass);
            backdrop-filter: blur(24px);
            box-shadow: 0 20px 55px rgba(0, 0, 0, .08);
            opacity: 0;
            transform: translateY(40px);
            transition: all .7s
        }

        .card.show {
            opacity: 1;
            transform: translateY(0)
        }

        .card h3 {
            margin-bottom: .6rem;
            font-size: 1.15rem;
            font-weight: 600
        }

        .card p {
            font-size: .92rem;
            color: var(--glass-txt)
        }

        /* About/Profile readability tweaks (markup unchanged for YAML updates) */
        #about .card {
            max-width: 1000px;
            margin: 0 auto;
        }

        #about .card p {
            max-width: 70ch;
            margin-inline: auto;
            font-size: 1.05rem;
            line-height: 1.9;
            text-wrap: pretty;
        }

        /* Structured profile elements (rendered by updater script) */
        #about .profile-lead { /* inherits paragraph typography above */ }
        #about .profile-supporting { color: var(--glass-txt); margin-top: .5rem; line-height: 1.8; }
        #about .pills {
            margin-top: .75rem;
            display: flex;
            flex-wrap: wrap;
            gap: .5rem .5rem;
            max-width: 70ch;
            margin-inline: auto;
        }
        #about .pills-bottom {
            margin-top: 1.25rem;
        }
        #about .pill {
            padding: .22rem .52rem;
            border-radius: 999px;
            font-size: .74rem;
            letter-spacing: .2px;
            color: var(--gold);
            background: rgba(1, 132, 136, 0.08);
            border: 1px solid rgba(1, 132, 136, 0.22);
            white-space: nowrap;
        }
        /* Permit block (text display) */
        #about .permit-block {
            margin-top: .75rem;
            max-width: 70ch;
            margin-inline: auto;
            color: var(--glass-txt);
            font-size: .94rem;
        }
        #about .permit-heading {
            margin: 0 0 .2rem;
            display: flex;
            align-items: baseline;
            flex-wrap: wrap;
            gap: .4rem;
        }
        #about .permit-heading .label {
            font-weight: 600;
            color: var(--glass-txt);
        }
        #about .permit-heading strong {
            font-weight: 600;
            color: var(--text);
        }
        #about .permit-list {
            list-style: none;
            margin: 0;
            padding-left: 1.4rem;
            color: var(--glass-txt);
            display: flex;
            flex-direction: column;
            gap: .18rem;
        }
        #about .permit-list li {
            position: relative;
            line-height: 1.6;
        }
        #about .permit-list li::before {
            content: '•';
            position: absolute;
            left: -1.4rem;
            color: var(--glass-txt);
            opacity: .75;
        }
        /* Permit chips placed after the tag pills */
        #about .permit-pills {
            margin-top: .75rem;
            display: flex;
            flex-wrap: wrap;
            gap: .5rem .6rem;
            max-width: 70ch;
            margin-inline: auto;
        }
        #about .permit-chip {
            padding: .28rem .58rem;
            border-radius: 999px;
            font-size: .78rem;
            letter-spacing: .2px;
            border: 1px solid rgba(255, 255, 255, 0.18);
            background: rgba(255, 255, 255, 0.06);
            color: var(--text);
        }
        #about .permit-chip.primary {
            color: #111;
            background: var(--gold);
            border-color: rgba(1, 132, 136, 0.55);
        }
        #about .permit-chip.muted { color: var(--glass-txt); }

        .timeline {
            padding-left: 2rem;
            margin-left: 1rem;
            border-left: 3px solid var(--gold)
        }

        .item {
            margin-bottom: 2rem;
            opacity: 0;
            transform: translateY(30px);
            transition: all .7s
        }

        .item.show {
            opacity: 1;
            transform: translateY(0)
        }

        .item h3 {
            font-size: 1.15rem;
            margin-bottom: .25rem;
            font-weight: 600
        }

        .item time {
            font-size: .85rem;
            color: var(--gold);
            display: block;
            margin-bottom: .3rem
        }

        .skills-grid .skill {
            background: var(--glass);
            backdrop-filter: blur(24px);
            padding: 1.8rem 1.4rem;
            border-radius: 18px;
            box-shadow: 0 20px 55px rgba(0, 0, 0, .08);
            opacity: 0;
            transform: translateY(40px);
            transition: all .7s
        }

        .skills-grid .skill.show {
            opacity: 1;
            transform: translateY(0)
        }

        .skills-grid .skill h3 {
            font-size: 1.15rem;
            margin-bottom: .35rem;
            font-weight: 600
        }

        .skill-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 2rem;
            height: 2rem;
            padding: 0 .5rem;
            background: linear-gradient(135deg, var(--teal-primary), var(--teal-hover));
            color: #0b0b0b;
            font-size: .7rem;
            font-weight: 700;
            border-radius: 6px;
            letter-spacing: .02em
        }

        .skills-grid .skill span {
            font-size: .88rem;
            color: var(--glass-txt)
        }

        footer {
            background: #0e0e0e;
            color: #777;
            text-align: center;
            padding: 3rem 2rem;
            font-size: .82rem
        }

        /* Contact Form Styles */
        .contact-form {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
            opacity: 0;
            margin-top: 0;
        }
        .contact-form.open {
            max-height: 400px;
            opacity: 1;
            margin-top: 1.5rem;
        }
        .contact-form input,
        .contact-form textarea {
            width: 100%;
            padding: .85rem 1rem;
            margin-bottom: .8rem;
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: 8px;
            background: rgba(255,255,255,0.05);
            color: var(--text);
            font-family: inherit;
            font-size: .95rem;
            transition: border-color 0.2s, background 0.2s;
        }
        .contact-form input:focus,
        .contact-form textarea:focus {
            outline: none;
            border-color: var(--gold);
            background: rgba(255,255,255,0.08);
        }
        .contact-form input::placeholder,
        .contact-form textarea::placeholder {
            color: var(--glass-txt);
        }
        .contact-form textarea {
            min-height: 100px;
            resize: vertical;
        }
        .contact-form .btn {
            width: 100%;
            margin-top: .5rem;
        }
        .form-success {
            color: #4ade80;
            font-weight: 500;
            text-align: center;
            padding: 1rem;
        }

        .circle {
            position: absolute;
            border-radius: 50%;
            filter: blur(110px);
            opacity: .2;
            pointer-events: none;
            mix-blend-mode: overlay;
            animation: f 18s ease-in-out infinite alternate
        }

        .circle1 {
            width: 560px;
            height: 560px;
            background: var(--gold);
            top: -170px;
            left: -170px
        }

        .circle2 {
            width: 360px;
            height: 360px;
            background: #9c6cff;
            bottom: -130px;
            right: -130px;
            animation-delay: 4s
        }

        @keyframes f {
            to {
                transform: translateY(55px) translateX(38px)
            }
        }

        @media(max-width:768px) {
            nav {
                top: 1rem;
                right: 1rem;
                flex-wrap: wrap;
                gap: 0.5rem;
                max-width: calc(100% - 2rem);
            }

            nav a {
                font-size: 0.85rem;
                padding: 0.25rem 0.5rem;
            }

            .theme-toggle {
                width: 36px;
                height: 18px;
                margin-left: 0.5rem;
            }

            .theme-toggle::before {
                width: 14px;
                height: 14px;
            }

            html[data-theme="dark"] .theme-toggle::before {
                transform: translateX(18px);
            }

            header .o {
                padding: 0 1rem;
            }

            h1 {
                font-size: clamp(2rem, 8vw, 3.5rem);
                line-height: 1.2;
                color: #fff !important;
                text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
            }

            header p {
                font-size: clamp(0.9rem, 3vw, 1.1rem);
                margin: 1rem 0 1.5rem;
                color: #fff !important;
                text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
            }

            .cta {
                flex-direction: column;
                align-items: center;
                gap: 0.75rem;
            }

            .btn {
                padding: 0.75rem 1.5rem;
                font-size: 0.9rem;
                min-width: 200px;
                text-align: center;
            }

            section {
                padding: 4rem 1.5rem;
            }

            h2 {
                font-size: clamp(1.5rem, 6vw, 2.5rem);
                margin-bottom: 2.5rem;
            }

            .grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .grid.grid--center > .card {
                flex: 1 1 100%;
                max-width: 100%;
            }

            #edu .grid.grid--center::before {
                display: none;
            }

            .card,
            .skills-grid .skill {
                padding: 1.5rem;
                margin: 0;
            }

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

            .timeline {
                padding-left: 1.5rem;
                margin-left: 0.5rem;
            }

            .item h3 {
                font-size: 1rem;
                line-height: 1.3;
            }

            .item time {
                font-size: 0.8rem;
            }

            .circle1,
            .circle2 {
                display: none;
            }
        }

        @media(max-width:480px) {
            nav {
                /* Keep transparent like desktop, but ensure spacing is safe */
                padding: 1rem 1.5rem; 
                justify-content: space-between; /* Restore left/right alignment */
                background: transparent; /* Remove the solid black bar */
                backdrop-filter: none; /* Remove blur box */
                border-bottom: none; /* Remove border */
            }

            nav a {
                font-size: 0.75rem;
                color: #fff !important;
                padding: 0.4rem 0.6rem;
                border-radius: 6px;
                transition: background 0.3s;
            }

            nav a:hover {
                background: rgba(255, 255, 255, 0.1);
            }

            header {
                height: auto;
                min-height: 100vh;
                padding-top: 4rem;
                position: relative;
            }

            header::before {
                content: "";
                position: absolute;
                inset: 0;
                background: rgba(0, 0, 0, 0.4);
                z-index: 1;
            }

            header .o {
                position: relative;
                z-index: 2;
            }

            h1 {
                font-size: clamp(1.8rem, 10vw, 2.8rem);
                color: #fff !important;
                text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
            }

            header p {
                font-size: 1rem;
                line-height: 1.4;
                color: #fff !important;
                text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
            }

            .btn {
                padding: 0.7rem 1.2rem;
                font-size: 0.85rem;
                min-width: 180px;
            }

            section {
                padding: 3rem 1rem;
            }

            .card,
            .skills-grid .skill {
                padding: 1.2rem;
            }

            .timeline {
                padding-left: 1rem;
                margin-left: 0.25rem;
            }
        }

        @media(hover:none) {
            #c,
            #f {
                display: none;
            }

            .card:hover {
                transform: none !important;
            }
        }
