:root {
            --bg-base: #02060d;
            --bg-1: #02060d;
            --bg-2: #07101b;
            --bg-3: #10213a;
            --card-bg: rgba(15, 25, 45, 0.78);
            --card-bg-soft: rgba(22, 33, 62, 0.70);
            --border: rgba(255, 255, 255, 0.14);
            --border-hover: rgba(126, 224, 255, 0.34);
            --text: #ffffff;
            --muted: #d8dbe8;
            --accent: #7ee0ff;
            --accent-2: #f08b7b;
            --radius-lg: 32px;
            --radius-md: 28px;
            --shadow-lg: 0 24px 80px rgba(1, 7, 18, 0.42);
            --shadow-md: 0 14px 42px rgba(0, 0, 0, 0.28);
        }

        *, *::before, *::after { box-sizing: border-box; }

        html {
            min-height: 100%;
            background-color: var(--bg-base);
            scroll-behavior: smooth;
            scrollbar-width: thin;
            scrollbar-color: rgba(255,255,255,.28) transparent;
            overscroll-behavior-y: none;
        }

        body {
            margin: 0;
            min-height: 100vh;
            min-height: 100svh;
            background-color: var(--bg-base);
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            color: var(--text);
            background:
                radial-gradient(circle at 12% 15%, rgba(126,224,255,.22), transparent 27rem),
                radial-gradient(circle at 88% 12%, rgba(240,139,123,.18), transparent 24rem),
                radial-gradient(circle at 76% 76%, rgba(109,157,255,.17), transparent 28rem),
                radial-gradient(circle at 20% 84%, rgba(126,224,255,.11), transparent 23rem),
                radial-gradient(ellipse at 50% 35%, rgba(255,255,255,.055), transparent 38rem),
                linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 42%, var(--bg-3) 100%);
            background-attachment: scroll;
            overflow-x: hidden;
            isolation: isolate;
        }

        body::before,
        body::after {
            content: '';
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: -1;
        }

        body::before {
            background:
                linear-gradient(180deg, rgba(255,255,255,.032), transparent 23%, transparent 77%, rgba(2,6,13,.60)),
                linear-gradient(115deg, transparent 0 28%, rgba(126,224,255,.044) 43%, transparent 63% 100%),
                linear-gradient(62deg, transparent 0 35%, rgba(240,139,123,.028) 50%, transparent 69% 100%),
                linear-gradient(155deg, transparent 0 18%, rgba(109,157,255,.026) 38%, transparent 57% 100%),
                repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 118px),
                repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 118px),
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
            background-size: auto, auto, auto, auto, auto, auto, 180px 180px;
            opacity: .92;
            mix-blend-mode: screen;
            mask-image: linear-gradient(180deg, rgba(0,0,0,.82), rgba(0,0,0,1) 23%, rgba(0,0,0,.90));
        }

        body::after {
            inset: -24%;
            background:
                radial-gradient(ellipse at 18% 22%, rgba(126,224,255,.155), transparent 34%),
                radial-gradient(ellipse at 82% 18%, rgba(240,139,123,.110), transparent 32%),
                radial-gradient(ellipse at 70% 74%, rgba(109,157,255,.118), transparent 38%),
                conic-gradient(from 220deg at 52% 42%, transparent 0deg, rgba(126,224,255,.115) 58deg, transparent 124deg, rgba(240,139,123,.080) 184deg, transparent 252deg, rgba(109,157,255,.085) 310deg, transparent 360deg),
                linear-gradient(135deg, transparent 0 18%, rgba(255,255,255,.030) 38%, transparent 62% 100%);
            opacity: .66;
            filter: saturate(1.02);
            transform: translate3d(0,0,0) scale(1.02);
        }

        @keyframes ambient-drift {
            from { transform: translate3d(-0.28%, -0.22%, 0) rotate(-.18deg) scale(1.045); }
            to { transform: translate3d(0.28%, 0.22%, 0) rotate(.22deg) scale(1.058); }
        }

        a { color: inherit; }

        .container {
            width: min(100% - 2rem, 1280px);
            margin-inline: auto;
        }

        .row {
            display: flex;
            flex-wrap: wrap;
        }

        .g-4 { gap: 1.5rem; }
        .align-items-center { align-items: center; }
        .text-center { text-align: center; }
        .d-flex { display: flex; }
        .flex-wrap { flex-wrap: wrap; }
        .justify-content-center { justify-content: center; }
        .mb-0 { margin-bottom: 0; }
        .ms-1 { margin-left: .25rem; }

        .col-md-4,
        .col-lg-5,
        .col-lg-6,
        .col-lg-7 {
            flex: 1 1 100%;
            min-width: 0;
        }

        @media (min-width: 768px) {
            .col-md-4 { flex-basis: calc((100% - 3rem) / 3); }
        }

        @media (min-width: 992px) {
            .col-lg-5 { flex: 0 0 calc(41.666% - .75rem); }
            .col-lg-6 { flex: 0 0 calc(50% - .75rem); }
            .col-lg-7 { flex: 0 0 calc(58.333% - .75rem); }
        }

        .btn { border: 0; }

        .content-wrapper { min-height: 100vh; min-height: 100svh; }

        .hero-section {
            min-height: 100vh;
            min-height: 100svh;
            display: grid;
            place-items: center;
            position: relative;
            padding: 2rem;
        }

        .hero-section .container { max-width: 1280px; }

        .glass-card,
        .hero-card,
        .info-card,
        .project-card,
        .contact-panel {
            --tilt-x: 0deg;
            --tilt-y: 0deg;
            --lift: 0px;
            --glow-x: 50%;
            --glow-y: 45%;
            --glow-strength: .82;
            position: relative;
            overflow: hidden;
            border: 1px solid var(--border);
            background: linear-gradient(145deg, var(--card-bg), var(--card-bg-soft));
            box-shadow: var(--shadow-md);
            backdrop-filter: blur(8px) saturate(135%);
            -webkit-backdrop-filter: blur(8px) saturate(135%);
            transform: perspective(1100px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x)) translateY(var(--lift)) translateZ(0);
            transform-style: preserve-3d;
            transition: transform .22s ease-out, border-color .24s ease, box-shadow .24s ease, background .24s ease;
            will-change: auto;
        }

        .hero-card {
            width: 100%;
            max-width: 1200px;
            padding: clamp(1.5rem, 4vw, 3.5rem);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-lg);
            animation: fade-in-up .65s ease-out both;
        }

        .info-card,
        .project-card,
        .contact-panel {
            height: 100%;
            border-radius: var(--radius-md);
        }

        .info-card,
        .project-card { padding: 1.5rem; }
        .contact-panel { padding: clamp(1.5rem, 3vw, 1.9rem); }

        .hero-card::before,
        .info-card::before,
        .project-card::before,
        .contact-panel::before {
            content: '';
            position: absolute;
            inset: 0;
            pointer-events: none;
            border-radius: inherit;
            background:
                radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255,255,255,.24), transparent 34%),
                linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.015));
            opacity: var(--glow-strength, .82);
            transition: opacity .24s ease;
        }

        .hero-card > *,
        .info-card > *,
        .project-card > *,
        .contact-panel > * {
            position: relative;
            z-index: 1;
        }

        @media (hover:hover) and (pointer:fine) {
            .hero-card:hover,
            .info-card:hover,
            .project-card:hover,
            .contact-panel:hover {
                --lift: -4px;
                border-color: var(--border-hover);
                box-shadow: 0 22px 70px rgba(1,7,18,.42);
            }


            .contact-panel:hover {
                --lift: -2px;
            }

            .hero-card:hover::before,
            .info-card:hover::before,
            .project-card:hover::before,
            .contact-panel:hover::before {
                opacity: 1;
            }
        }

        .hero-title,
        .section-heading h2,
        .contact-panel h2 {
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            font-weight: 700;
        }

        .hero-title {
            font-size: clamp(2.35rem, 6vw, 4rem);
            line-height: 1.1;
            margin-bottom: 1rem;
        }

        .hero-subtitle {
            display: block;
            margin-top: .6rem;
            color: var(--accent);
            font-size: clamp(1.2rem, 3vw, 1.5rem);
            font-weight: 600;
            min-height: 1.9em;
        }

        .typing-text {
            border-right: 3px solid var(--accent);
            padding-right: 5px;
            animation: caret .8s steps(1) infinite;
        }

        .hero-description,
        .section-heading p,
        .info-card p,
        .project-card p,
        .contact-panel p {
            color: var(--muted);
            line-height: 1.75;
        }

        .hero-description {
            max-width: 660px;
            margin-bottom: 2rem;
            font-size: 1.08rem;
        }

        .profile-image {
            width: 100%;
            max-width: 430px;
            height: auto;
            aspect-ratio: auto;
            border-radius: 24px;
            border: 1px solid rgba(255,255,255,.14);
            box-shadow: 0 22px 56px rgba(0,0,0,.36);
            transform: translateZ(0);
            transition: transform .22s ease, box-shadow .22s ease;
        }

        @media (hover:hover) and (pointer:fine) {
            .profile-image:hover {
                transform: translateY(-4px) scale(1.015) translateZ(0);
                box-shadow: 0 26px 68px rgba(0,0,0,.44);
            }
        }

        .skills-section { margin-top: 2rem; }

        .skill-badge,
        .project-tag {
            display: inline-flex;
            align-items: center;
            gap: .5rem;
            border-radius: 999px;
            background: rgba(255,255,255,.10);
            border: 1px solid rgba(255,255,255,.14);
            color: #fff;
            font-size: .9rem;
        }

        .skill-badge {
            padding: .5rem 1rem;
            margin: .3rem;
            font-weight: 500;
        }

        .project-tag { padding: .38rem .7rem; font-size: .82rem; }

        .skill-badge,
        .project-tag {
            transform: translateZ(18px);
            transition: transform .26s cubic-bezier(.22, 1, .36, 1), background .26s ease, border-color .26s ease, box-shadow .26s ease;
        }

        @media (hover:hover) and (pointer:fine) {
            .skill-badge:hover,
            .project-tag:hover {
                transform: translateY(-2px) translateZ(22px);
                background: rgba(255,255,255,.15);
                border-color: rgba(126,224,255,.30);
                box-shadow: 0 10px 24px rgba(0,0,0,.16);
            }
        }

        .btn-custom {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: .55rem;
            padding: .9rem 2rem;
            border-radius: 999px;
            font-weight: 700;
            text-decoration: none;
            transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
        }

        .btn-primary-custom {
            color: #fff !important;
            background: linear-gradient(180deg, #7ee0ff 0%, #6d9dff 100%) !important;
            border: 1px solid rgba(255,255,255,.28);
        }

        .btn-secondary-custom {
            color: #fff !important;
            background: rgba(255,255,255,.06) !important;
            border: 1px solid rgba(126,224,255,.50);
        }

        @media (hover:hover) and (pointer:fine) {
            .btn-custom:hover {
                transform: translateY(-2px);
                box-shadow: 0 12px 28px rgba(126,224,255,.22);
            }
            .btn-secondary-custom:hover {
                border-color: rgba(126,224,255,.78);
                background: rgba(126,224,255,.12) !important;
            }
        }

        .section-block { padding: 1rem 0 3rem; }
        .section-block-alt { padding-top: 0; }

        .section-heading {
            max-width: 760px;
            margin-bottom: 1.5rem;
        }

        .section-kicker {
            display: inline-block;
            margin-bottom: .75rem;
            color: var(--accent-2);
            font-size: .82rem;
            text-transform: uppercase;
            letter-spacing: .18em;
            font-weight: 800;
        }

        .section-heading h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: .75rem; }

        .info-card i,
        .project-card i {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2.75rem;
            height: 2.75rem;
            margin-bottom: 1rem;
            border-radius: 16px;
            background: linear-gradient(135deg, rgba(126,224,255,.24), rgba(240,139,123,.24));
            color: #dff7ff;
        }

        .info-card h3,
        .project-card h3 { font-size: 1.15rem; margin-bottom: .75rem; }

        .project-tags,
        .contact-actions {
            display: flex;
            flex-wrap: wrap;
            gap: .6rem;
        }

        .project-tags { margin-top: 1rem; }
        .contact-panel p { margin-bottom: 1.25rem; }

        .scroll-indicator {
            position: absolute;
            left: 50%;
            bottom: 2rem;
            width: 44px;
            height: 44px;
            display: grid;
            place-items: center;
            border: 0;
            background: transparent;
            color: rgba(255,255,255,.72);
            font-size: 1.45rem;
            cursor: pointer;
            animation: bounce 2s infinite;
        }

        footer {
            padding: 1.5rem 0;
            text-align: center;
            color: #e6e6e6;
        }

        .loading-screen {
            position: fixed;
            inset: 0;
            z-index: 9999;
            display: grid;
            place-items: center;
            overflow: hidden;
            background:
                radial-gradient(circle at 50% 42%, rgba(126,224,255,.16), transparent 34rem),
                radial-gradient(circle at 58% 55%, rgba(240,139,123,.10), transparent 28rem),
                linear-gradient(135deg, var(--bg-1), var(--bg-2), var(--bg-3));
            transition: opacity .5s cubic-bezier(.22, 1, .36, 1), visibility .5s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
        }

        .loading-screen::before {
            content: '';
            position: absolute;
            width: 34rem;
            height: 34rem;
            border-radius: 50%;
            background: conic-gradient(from 140deg, transparent, rgba(126,224,255,.16), rgba(109,157,255,.12), rgba(240,139,123,.12), transparent);
            filter: blur(28px);
            opacity: .74;
            animation: loaderAurora 4.8s ease-in-out infinite alternate;
            pointer-events: none;
        }

        .loading-screen.hidden {
            opacity: 0;
            visibility: hidden;
            transform: scale(1.018);
        }

        .loading-wrap {
            position: relative;
            display: grid;
            justify-items: center;
            gap: 1.25rem;
            animation: loaderEnter .7s cubic-bezier(.22, 1, .36, 1) both;
        }

        .loading-card {
            position: relative;
            width: 92px;
            height: 92px;
            display: grid;
            place-items: center;
            border-radius: 30px;
            border: 1px solid rgba(255,255,255,.18);
            background:
                linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.055)),
                rgba(8,16,30,.72);
            box-shadow: 0 22px 70px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.10);
            backdrop-filter: blur(10px) saturate(135%);
            -webkit-backdrop-filter: blur(10px) saturate(135%);
        }

        .loading-card::before {
            content: '';
            position: absolute;
            inset: 10px;
            border-radius: 22px;
            background: radial-gradient(circle at 38% 26%, rgba(255,255,255,.18), transparent 44%);
            opacity: .9;
            pointer-events: none;
        }

        .loading-initial {
            position: relative;
            z-index: 1;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            font-size: 2.25rem;
            font-weight: 700;
            color: var(--accent);
            text-shadow: 0 0 24px rgba(126,224,255,.28);
        }

        .loading-ring,
        .loading-ring-soft {
            position: absolute;
            border-radius: 34px;
            pointer-events: none;
        }

        .loading-ring {
            inset: -9px;
            border: 2px solid rgba(255,255,255,.08);
            border-top-color: rgba(126,224,255,.95);
            border-right-color: rgba(126,224,255,.28);
            animation: spin 1.45s cubic-bezier(.55, .08, .28, .95) infinite;
        }

        .loading-ring-soft {
            inset: -17px;
            border: 1px solid rgba(255,255,255,.07);
            border-bottom-color: rgba(240,139,123,.58);
            border-left-color: rgba(240,139,123,.16);
            opacity: .84;
            animation: spinReverse 2.6s cubic-bezier(.55, .08, .28, .95) infinite;
        }

        .loading-name {
            margin: 0;
            color: rgba(255,255,255,.52);
            font-size: .84rem;
            letter-spacing: .22em;
            text-transform: uppercase;
        }

        .loading-dots {
            display: flex;
            gap: .42rem;
            margin-top: -.55rem;
        }

        .loading-dots span {
            width: .34rem;
            height: .34rem;
            border-radius: 999px;
            background: rgba(126,224,255,.68);
            box-shadow: 0 0 18px rgba(126,224,255,.22);
            animation: dotPulse 1.25s ease-in-out infinite;
        }

        .loading-dots span:nth-child(2) { animation-delay: .14s; }
        .loading-dots span:nth-child(3) { animation-delay: .28s; }

        @keyframes loaderEnter {
            from { opacity: 0; transform: translateY(10px) scale(.96); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        @keyframes loaderAurora {
            from { transform: translate3d(-1.5rem, .5rem, 0) rotate(0deg) scale(.96); }
            to { transform: translate3d(1.5rem, -1rem, 0) rotate(16deg) scale(1.06); }
        }

        @keyframes dotPulse {
            0%, 100% { opacity: .34; transform: translateY(0) scale(.84); }
            45% { opacity: 1; transform: translateY(-2px) scale(1); }
        }



        @media (prefers-reduced-motion: reduce) {
            .loading-screen::before,
            .loading-ring,
            .loading-ring-soft,
            .loading-dots span,
            .loading-wrap {
                animation: none !important;
            }
        }

        .btn-custom:focus-visible,
        .social-link:focus-visible,
        .scroll-indicator:focus-visible,
        .skill-badge:focus-visible {
            outline: 3px solid #fff;
            outline-offset: 4px;
        }

        @keyframes fade-in-up {
            from { opacity: 0; transform: translateY(24px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes caret { 50% { border-color: transparent; } }
        @keyframes bounce {
            0%, 100% { transform: translateX(-50%) translateY(0); }
            50% { transform: translateX(-50%) translateY(6px); }
        }
        @keyframes spin { to { transform: rotate(360deg); } }

        @media (prefers-reduced-motion: reduce) {
            body::after { animation: none !important; }

            *, *::before, *::after {
                animation-duration: .01ms !important;
                animation-iteration-count: 1 !important;
                scroll-behavior: auto !important;
                transition-duration: .01ms !important;
            }
            .hero-card, .info-card, .project-card, .contact-panel, .profile-image {
                transform: none !important;
                will-change: auto !important;
            }
        }

        @media (prefers-contrast: more) {
            :root { --muted: #ffffff; --border: rgba(255,255,255,.34); }
            .hero-card, .info-card, .project-card, .contact-panel { background: rgba(4, 9, 19, .92); }
        }

        @media (forced-colors: active) {
            .hero-card, .info-card, .project-card, .contact-panel, .skill-badge, .project-tag, .btn-custom {
                border: 1px solid CanvasText;
                background: Canvas;
                color: CanvasText;
                box-shadow: none;
            }
        }



        @media (max-width: 1279.98px) and (min-width: 992px) {
            .hero-card .col-lg-7 {
                text-align: center;
            }

            .hero-actions,
            .hero-card .skills-section .d-flex {
                justify-content: center;
            }
        }

        @media (max-width: 1199.98px) and (min-width: 992px) {
            .hero-card {
                padding-inline: clamp(2rem, 3.2vw, 2.8rem);
            }

            .hero-actions {
                justify-content: center;
            }

            .hero-card .col-lg-7 {
                text-align: center;
            }

            .hero-card .skills-section .d-flex {
                justify-content: center;
            }
        }

        @media (max-width: 991.98px) {
            .hero-section { padding: 1rem; }
            .profile-image { max-width: 320px; margin-top: 1.5rem; }
        }

        @media (max-width: 575.98px) {
            .hero-section { align-items: start; padding-top: 1rem; }
            .hero-card { border-radius: 24px; }
            .btn-custom { width: 100%; }
            .scroll-indicator { display: none; }
        }


        /* Mobile polish: keep the desktop look, but make touch layouts calmer and easier to use. */
        @media (hover: none), (pointer: coarse) {
            .hero-card,
            .info-card,
            .project-card,
            .contact-panel,
            .profile-image,
            .skill-badge,
            .project-tag {
                transform: none !important;
                will-change: auto !important;
            }

            .hero-card::before,
            .info-card::before,
            .project-card::before,
            .contact-panel::before {
                --glow-x: 50%;
                --glow-y: 42%;
                opacity: .72;
            }

            .skill-badge:hover,
            .project-tag:hover,
            .profile-image:hover {
                transform: none !important;
            }
        }

        @media (max-width: 991.98px) {
            body {
                background-attachment: scroll;
                background:
                    radial-gradient(circle at 12% 10%, rgba(126,224,255,.18), transparent 20rem),
                    radial-gradient(circle at 88% 8%, rgba(240,139,123,.13), transparent 18rem),
                    radial-gradient(circle at 70% 76%, rgba(109,157,255,.13), transparent 22rem),
                    linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 45%, var(--bg-3) 100%);
            }

            body::after {
                inset: -14%;
                opacity: .46;
                filter: blur(14px) saturate(1.03);
                animation-duration: 120s;
            }

            body::before {
                opacity: .70;
                background-size: auto, auto, auto, auto, auto, auto, 220px 220px;
            }

            .hero-section {
                min-height: auto;
                min-height: 100svh;
                padding: max(1rem, env(safe-area-inset-top)) 1rem 1.25rem;
                place-items: start center;
            }

            .hero-card {
                margin-top: .25rem;
                padding: clamp(1.35rem, 4.5vw, 2rem);
                border-radius: 26px;
            }

            .hero-title,
            .hero-description,
            .skills-section,
            .social-links,
            .contact-panel {
                text-align: center;
            }

            .hero-actions {
                justify-content: center;
            }

            .hero-description {
                max-width: 42rem;
                margin-inline: auto;
            }

            .skills-section .d-flex {
                justify-content: center;
            }

            .profile-image {
                width: min(72vw, 300px);
                max-width: 300px;
                aspect-ratio: 1 / 1;
                object-fit: cover;
                margin: .75rem auto 0;
                border-radius: 22px;
            }

            .section-block {
                padding: 2.25rem 0;
            }

            .section-block-alt {
                padding-top: .5rem;
            }

            .section-heading {
                text-align: center;
                margin-inline: auto;
            }

            .info-card,
            .project-card,
            .contact-panel {
                border-radius: 24px;
                backdrop-filter: blur(6px) saturate(125%);
                -webkit-backdrop-filter: blur(6px) saturate(125%);
            }

            .contact-actions {
                justify-content: center;
            }
        }

        @media (max-width: 575.98px) {
            :root {
                --radius-lg: 24px;
                --radius-md: 22px;
            }

            .container {
                --bs-gutter-x: 1.25rem;
            }

            .hero-section {
                padding-inline: .75rem;
            }

            .hero-card {
                padding: 1.15rem;
                border-radius: 22px;
            }

            .hero-title {
                font-size: clamp(2.05rem, 12vw, 2.75rem);
                line-height: 1.08;
                margin-bottom: .85rem;
            }

            .hero-subtitle {
                font-size: clamp(1.02rem, 5.2vw, 1.25rem);
                min-height: 1.65em;
            }

            .typing-text {
                border-right-width: 2px;
            }

            .hero-description {
                font-size: .98rem;
                line-height: 1.62;
                margin-bottom: 1.25rem;
            }

            .hero-actions {
                width: 100%;
            }

            .hero-actions .btn-custom {
                width: 100%;
                min-height: 48px;
                padding: .78rem 1rem;
            }

            .skills-section {
                margin-top: 1.25rem;
            }

            .skill-badge {
                flex: 1 1 calc(50% - .6rem);
                justify-content: center;
                min-height: 42px;
                margin: .22rem;
                padding: .48rem .58rem;
                font-size: .82rem;
                white-space: nowrap;
            }

            .skill-badge i {
                font-size: .98rem;
            }

            .profile-image {
                width: min(68vw, 240px);
                max-width: 240px;
                margin-top: .9rem;
            }

            .section-block {
                padding: 1.85rem 0;
            }

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

            .section-kicker {
                font-size: .76rem;
                letter-spacing: .14em;
            }

            .section-heading h2,
            .contact-panel h2 {
                font-size: clamp(1.45rem, 8vw, 1.85rem);
            }

            .section-heading p,
            .info-card p,
            .project-card p,
            .contact-panel p {
                font-size: .95rem;
                line-height: 1.62;
            }

            .info-card,
            .project-card,
            .contact-panel {
                padding: 1.15rem;
                border-radius: 20px;
            }

            .info-card i,
            .project-card i {
                width: 2.45rem;
                height: 2.45rem;
                border-radius: 14px;
                margin-bottom: .85rem;
            }

            .project-tags {
                gap: .42rem;
            }

            .project-tag {
                min-height: 34px;
                padding: .34rem .62rem;
                font-size: .78rem;
            }

            .contact-actions {
                display: grid;
                grid-template-columns: 1fr;
                gap: .7rem;
            }

            footer {
                padding: 1.1rem 0 max(1.1rem, env(safe-area-inset-bottom));
                font-size: .9rem;
            }

            .loading-card {
                width: 76px;
                height: 76px;
                border-radius: 24px;
            }

            .loading-name {
                font-size: .78rem;
            }
        }

        @media (max-width: 380px) {
            .skill-badge {
                flex-basis: 100%;
            }

            .hero-title {
                font-size: 2rem;
            }
        }


        /* Firefox/Gecko performance path: keep the same visual direction, but avoid expensive live backdrop sampling. */
        html.is-firefox body {
            background-attachment: scroll;
        }

        html.is-firefox body::after {
            opacity: .52;
            filter: blur(10px) saturate(1.02);
            animation-duration: 140s;
            transform: translate3d(0,0,0) scale(1.035);
        }

        html.is-firefox body::before {
            opacity: .78;
            mix-blend-mode: normal;
        }

        html.is-firefox .hero-card,
        html.is-firefox .info-card,
        html.is-firefox .project-card,
        html.is-firefox .contact-panel,
        html.is-firefox .loading-card {
            /* Firefox handles backdrop-filter differently from Chromium; a stronger solid glass fill is smoother. */
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            background:
                linear-gradient(145deg, rgba(15,25,45,.90), rgba(22,33,62,.76));
            box-shadow: 0 16px 52px rgba(1,7,18,.34);
        }

        html.is-firefox .hero-card::before,
        html.is-firefox .info-card::before,
        html.is-firefox .project-card::before,
        html.is-firefox .contact-panel::before {
            background:
                radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255,255,255,.18), transparent 31%),
                linear-gradient(160deg, rgba(255,255,255,.095), rgba(255,255,255,.012));
        }

        html.is-firefox .skill-badge,
        html.is-firefox .project-tag,
        html.is-firefox .btn-secondary-custom {
            background: rgba(255,255,255,.085);
        }

        @media (hover:hover) and (pointer:fine) {
            html.is-firefox .hero-card:hover,
            html.is-firefox .info-card:hover,
            html.is-firefox .project-card:hover,
            html.is-firefox .contact-panel:hover {
                box-shadow: 0 18px 58px rgba(1,7,18,.38);
            }
        }



        /* Safari/iOS polish: prevent white rubber-band/fade, avoid 100vh toolbar jumps, and reduce fixed-layer repaint cost. */
        

        @supports (height: 100dvh) {
            body,
            .content-wrapper,
            .hero-section,
            .loading-screen {
                min-height: 100dvh;
            }
        }


        /* iOS/WebKit horizontal overflow hotfix
           Keep the dark Safari overscroll color, but prevent decorative layers
           from increasing the layout viewport width. */
        html,
        body {
            width: 100%;
            max-width: 100%;
            overflow-x: hidden;
        }

        @supports (overflow: clip) {
            html,
            body {
                overflow-x: clip;
            }
        }

        img,
        svg,
        video,
        canvas {
            max-width: 100%;
        }

        


        /* iOS bottom-blank hotfix
           On Safari, transformed/scaled body pseudo-elements can contribute to
           scrollable visual overflow. Keep the dark overscroll, but prevent
           decorative layers from adding extra page height. */

        /* Final Safari/iOS path
           Keep the same dark base color for the initial canvas/rubber-band area,
           avoid fixed-background attachment on WebKit mobile, and keep decorative
           layers viewport-bound so they cannot create horizontal or vertical overflow. */
        @supports (-webkit-touch-callout: none) {
            html {
                min-height: 100%;
                background: var(--bg-base);
                background-color: var(--bg-base);
            }

            body {
                min-height: 100svh;
                background-color: var(--bg-base);
                background-attachment: scroll;
                -webkit-font-smoothing: antialiased;
                position: relative;
                overflow-x: hidden;
            }

            @supports (overflow: clip) {
                html,
                body {
                    overflow-x: clip;
                }
            }

            .content-wrapper,
            .hero-section,
            .loading-screen {
                min-height: 100svh;
            }

            @supports (height: 100dvh) {
                body,
                .content-wrapper,
                .hero-section,
                .loading-screen {
                    min-height: 100dvh;
                }
            }

            .hero-section {
                padding-top: max(1.25rem, env(safe-area-inset-top));
                padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
            }

            body::before,
            body::after {
                position: fixed;
                inset: 0;
                width: auto;
                height: auto;
                min-height: 0;
                max-width: none;
                overflow: hidden;
                contain: paint;
                pointer-events: none;
                transform: translate3d(0, 0, 0);
            }

            body::after {
                filter: blur(12px) saturate(1.03);
                opacity: .48;
                animation: safari-ambient-drift 115s ease-in-out infinite alternate;
            }

            @keyframes safari-ambient-drift {
                from { background-position: 49.7% 49.8%, 50.2% 50%, 50% 50%, 50% 50%, 50% 50%; }
                to { background-position: 50.3% 50.2%, 49.8% 50%, 50% 50%, 50% 50%, 50% 50%; }
            }

            .loading-screen {
                min-height: 100svh;
                background-color: var(--bg-base);
                padding-top: env(safe-area-inset-top);
                padding-bottom: env(safe-area-inset-bottom);
            }

            footer {
                padding-bottom: max(1.1rem, env(safe-area-inset-bottom));
                margin-bottom: 0;
            }
        }


        /* Final mobile hero centering pass
           Earlier mobile rules used place-items: start center to avoid iOS toolbar issues,
           but that makes the first screen feel too high. This keeps safe-area handling,
           while optically centering the hero card when there is enough vertical room. */
        @media (max-width: 991.98px) {
            .hero-section {
                display: flex;
                align-items: center;
                justify-content: center;
                min-height: 100svh;
                padding-top: max(1.35rem, env(safe-area-inset-top));
                padding-bottom: max(1.35rem, env(safe-area-inset-bottom));
                place-items: initial;
            }

            .hero-section > .container {
                width: 100%;
            }

            .hero-card {
                margin-top: 0;
                margin-bottom: 0;
            }
        }

        @supports (height: 100dvh) {
            @media (max-width: 991.98px) {
                .hero-section {
                    min-height: 100dvh;
                }
            }
        }

        @media (max-width: 575.98px) {
            .hero-section {
                align-items: center;
                padding-inline: .75rem;
                padding-top: max(1.15rem, env(safe-area-inset-top));
                padding-bottom: max(1.15rem, env(safe-area-inset-bottom));
            }
        }

        /* If the viewport is very short, do not force centering because the card can become taller than the visible area. */
        @media (max-width: 575.98px) and (max-height: 720px) {
            .hero-section {
                align-items: flex-start;
                padding-top: max(.85rem, env(safe-area-inset-top));
            }
        }

        @supports (-webkit-touch-callout: none) {
            @media (max-width: 991.98px) {
                .hero-section {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    min-height: 100svh;
                    padding-top: max(1.35rem, env(safe-area-inset-top));
                    padding-bottom: max(1.35rem, env(safe-area-inset-bottom));
                }
            }

            @supports (height: 100dvh) {
                @media (max-width: 991.98px) {
                    .hero-section {
                        min-height: 100dvh;
                    }
                }
            }

            @media (max-width: 575.98px) and (max-height: 720px) {
                .hero-section {
                    align-items: flex-start;
                    padding-top: max(.85rem, env(safe-area-inset-top));
                }
            }
        }
        .hero-card,
        .info-card,
        .project-card,
        .contact-panel,
        .loading-card {
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            will-change: auto;
            background: linear-gradient(145deg, rgba(15, 25, 45, .96), rgba(22, 33, 62, .90));
        }

        .hero-card,
        .info-card,
        .project-card,
        .contact-panel {
            transform: none;
            animation: none;
            opacity: 1;
        }

        .hero-card::before,
        .info-card::before,
        .project-card::before,
        .contact-panel::before {
            display: none;
        }

        .profile-image {
            height: auto;
            aspect-ratio: auto;
        }

        body::after {
            display: none;
        }

        .hero-section {
            justify-items: center;
            justify-content: center;
            padding-inline: 1rem;
        }

        .hero-section > .container {
            width: min(100%, 1280px);
            margin-inline: auto;
        }

        .hero-card {
            margin-inline: auto;
        }

        .hero-actions {
            display: flex;
            justify-content: flex-start;
            width: 100%;
        }

        @media (max-width: 1279.98px) {
            .hero-actions {
                justify-content: center;
            }
        }

        @media (max-width: 991.98px) {
            .hero-section {
                display: grid;
                place-items: center;
            }

            .hero-actions .btn-custom {
                width: min(100%, 430px);
                margin-inline: auto;
            }
        }

        .easter-egg {
            position: fixed;
            right: clamp(1rem, 3vw, 2rem);
            bottom: clamp(1rem, 3vw, 2rem);
            z-index: 20;
            width: min(36rem, calc(100vw - 2rem));
            max-height: calc(100svh - 2rem);
            border: 1px solid rgba(126, 224, 255, .26);
            border-radius: 20px;
            background:
                linear-gradient(180deg, rgba(126,224,255,.08), transparent 42%),
                rgba(4, 9, 19, .96);
            box-shadow: 0 22px 70px rgba(0, 0, 0, .44), 0 0 0 1px rgba(255,255,255,.035) inset;
            color: var(--text);
            font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;
            font-size: .82rem;
            line-height: 1.55;
            opacity: 0;
            pointer-events: none;
            transform: translateY(.75rem);
            transition: opacity .24s ease, transform .24s ease;
            overflow: hidden;
        }

        .easter-egg.is-visible {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
        }

        .easter-egg::before {
            content: '';
            position: absolute;
            inset: 0;
            pointer-events: none;
            background: repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0 1px, transparent 1px 7px);
            opacity: .22;
        }

        body.egg-active .hero-card,
        body.egg-active .skill-badge {
            border-color: rgba(126, 224, 255, .38);
        }

        .egg-window {
            position: relative;
            display: grid;
            gap: .75rem;
            padding: 1rem;
        }

        .egg-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding-bottom: .65rem;
            border-bottom: 1px solid rgba(255,255,255,.08);
            color: rgba(223,248,255,.86);
        }

        .egg-context {
            display: flex;
            min-width: 0;
            align-items: center;
            gap: .55rem;
        }

        .egg-live {
            width: .52rem;
            height: .52rem;
            flex: 0 0 auto;
            border-radius: 50%;
            background: #55d69e;
            box-shadow: 0 0 0 .28rem rgba(85, 214, 158, .11), 0 0 1rem rgba(85, 214, 158, .42);
            animation: egg-status-pulse 1.8s ease-in-out infinite;
        }

        @keyframes egg-status-pulse {
            50% { opacity: .55; transform: scale(.88); }
        }

        .egg-title {
            margin: 0;
            font-size: .72rem;
            letter-spacing: .08em;
            text-transform: uppercase;
        }

        .egg-close {
            border: 0;
            background: transparent;
            color: rgba(255,255,255,.62);
            font: inherit;
            font-size: 1.1rem;
            cursor: pointer;
            line-height: 1;
            padding: 0 .15rem;
            transition: color .15s ease;
        }

        .egg-close:hover,
        .egg-close:focus-visible {
            color: var(--accent);
        }

        .egg-output {
            display: grid;
            gap: .32rem;
            min-height: 1.55rem;
            max-height: min(19rem, 46svh);
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: rgba(126, 224, 255, .35) transparent;
        }

        .egg-line {
            margin: 0;
            padding: .12rem .3rem;
            border-radius: 6px;
            color: #dff8ff;
            white-space: pre-wrap;
            overflow-wrap: anywhere;
        }

        .egg-line-command {
            margin-bottom: .25rem;
            padding-bottom: .55rem;
            border-bottom: 1px dashed rgba(126, 224, 255, .18);
            border-radius: 0;
            color: #fff;
            font-weight: 700;
        }

        .egg-line-pass { color: #8ff0bc; }
        .egg-line-info { color: #8eddf5; }
        .egg-line-fun { color: #f3c982; }

        .egg-line-result {
            margin-top: .3rem;
            padding: .55rem .65rem;
            border: 1px solid rgba(85, 214, 158, .24);
            background: rgba(85, 214, 158, .09);
            color: #b8f7d5;
            font-weight: 800;
            letter-spacing: .025em;
        }

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

        .egg-muted {
            margin: 0;
            color: var(--muted);
        }

        .egg-status {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: .5rem;
        }

        .egg-pill {
            padding: .55rem .6rem;
            border: 1px solid rgba(126,224,255,.18);
            border-radius: 12px;
            background: rgba(255,255,255,.055);
        }

        .egg-pill strong,
        .egg-pill span {
            display: block;
        }

        .egg-pill strong {
            color: #fff;
            font-size: .86rem;
        }

        .egg-pill span {
            color: var(--muted);
            font-size: .7rem;
        }

        .egg-progress {
            position: relative;
            height: .38rem;
            border-radius: 999px;
            background: rgba(255,255,255,.08);
            overflow: hidden;
        }

        .egg-progress span {
            display: block;
            width: 0;
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(90deg, var(--accent), #6d9dff);
            transition: width .22s ease;
        }

        .easter-egg.is-visible .egg-progress span {
            width: 100%;
        }

        @media (max-width: 575.98px) {
            .easter-egg {
                right: 1rem;
                bottom: 1rem;
            }

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

            .egg-pill:last-child {
                grid-column: 1 / -1;
            }
        }

        .loading-screen {
            display: none;
        }
        .skill-groups {
            display: grid;
            gap: .6rem;
            max-width: 680px;
        }

        .skill-group {
            display: grid;
            grid-template-columns: 8.5rem minmax(0, 1fr);
            gap: .8rem;
            align-items: start;
            padding-block: .68rem;
            border-top: 1px solid rgba(255,255,255,.11);
        }

        .skill-group:last-child {
            border-bottom: 1px solid rgba(255,255,255,.11);
        }

        .skill-group-label {
            color: var(--accent);
            font-size: .72rem;
            font-weight: 700;
            letter-spacing: .08em;
            line-height: 1.3;
            padding-top: .55rem;
            text-transform: uppercase;
        }

        .skill-list {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: .48rem;
        }

        .skill-list .skill-badge {
            width: 100%;
            min-height: 40px;
            justify-content: flex-start;
            margin: 0;
            padding: .48rem .72rem;
            border-radius: 12px;
            font-size: .88rem;
            line-height: 1.2;
        }

        .skill-list .skill-badge i {
            width: 1rem;
            text-align: center;
        }

        @media (max-width: 991.98px) {
            .skill-groups {
                max-width: 44rem;
                margin-inline: auto;
            }

            .skill-group {
                grid-template-columns: 1fr;
                gap: .5rem;
            }

            .skill-group-label {
                padding-top: 0;
                text-align: center;
            }
        }

        @media (max-width: 575.98px) {
            .skill-list {
                grid-template-columns: 1fr 1fr;
            }

            .skill-list .skill-badge {
                min-height: 44px;
                justify-content: center;
                padding-inline: .55rem;
                text-align: center;
            }
        }

        @media (max-width: 380px) {
            .skill-list {
                grid-template-columns: 1fr;
            }
        }


        /* Readability and surface tuning */
        .hero-card {
            background: linear-gradient(145deg, rgba(10, 20, 36, .90), rgba(17, 29, 49, .76));
            border-color: rgba(126, 224, 255, .18);
            box-shadow: 0 18px 48px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255,255,255,.035);
        }

        .info-card,
        .project-card,
        .contact-panel {
            background: linear-gradient(145deg, rgba(12, 22, 39, .90), rgba(18, 30, 50, .78));
            border-color: rgba(255,255,255,.105);
            box-shadow: 0 12px 34px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255,255,255,.03);
        }

        .info-card,
        .project-card {
            display: flex;
            flex-direction: column;
            gap: .85rem;
        }

        .info-card i,
        .project-card i {
            margin-bottom: .2rem;
            background: rgba(126,224,255,.12);
            border: 1px solid rgba(126,224,255,.16);
        }

        .info-card h3,
        .project-card h3,
        .info-card p,
        .project-card p {
            margin-bottom: 0;
        }

        .card-points {
            display: grid;
            gap: .45rem;
            margin: .1rem 0 0;
            padding: 0;
            list-style: none;
            color: rgba(216,219,232,.90);
            font-size: .92rem;
            line-height: 1.45;
        }

        .card-points li {
            position: relative;
            padding-left: 1.2rem;
        }

        .card-points li::before {
            content: '';
            position: absolute;
            left: 0;
            top: .62em;
            width: .38rem;
            height: .38rem;
            border-radius: 999px;
            background: var(--accent);
            box-shadow: 0 0 0 3px rgba(126,224,255,.10);
        }

        .project-tags {
            margin-top: auto;
            padding-top: .15rem;
        }

        .skill-group {
            border-top-color: rgba(255,255,255,.08);
        }

        .skill-group:last-child {
            border-bottom-color: rgba(255,255,255,.08);
        }

        .skill-list .skill-badge {
            background: rgba(255,255,255,.072);
            border-color: rgba(255,255,255,.11);
            color: rgba(255,255,255,.94);
        }

        @media (hover:hover) and (pointer:fine) {
            .hero-card:hover,
            .info-card:hover,
            .project-card:hover,
            .contact-panel:hover {
                box-shadow: 0 16px 44px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.035);
            }
        }

        @media (max-width: 575.98px) {
            .card-points {
                font-size: .88rem;
            }
        }

        /* Hero/card refinement pass */
        .hero-section .container {
            max-width: 1180px;
        }

        .hero-card {
            max-width: 1160px;
            padding: clamp(1.45rem, 3.2vw, 3rem);
            border-radius: 24px;
            background:
                linear-gradient(180deg, rgba(255,255,255,.026), transparent 26%),
                linear-gradient(145deg, rgba(7, 16, 30, .88), rgba(14, 25, 44, .72));
            border-color: rgba(126, 224, 255, .145);
            box-shadow: 0 16px 42px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255,255,255,.035);
        }

        .hero-title {
            font-size: clamp(2.45rem, 4.7vw, 3.55rem);
            line-height: 1.04;
            margin-bottom: .9rem;
        }

        .hero-subtitle {
            margin-top: .5rem;
            font-size: clamp(1.05rem, 2vw, 1.28rem);
            min-height: 1.55em;
        }

        .hero-description {
            max-width: 595px;
            margin-bottom: 1.65rem;
            color: rgba(231,235,246,.88);
            font-size: 1rem;
            line-height: 1.85;
        }

        .hero-actions {
            margin-bottom: .15rem;
        }

        .btn-custom {
            min-height: 44px;
            padding: .72rem 1.45rem;
            font-size: .92rem;
        }

        .btn-primary-custom {
            background: linear-gradient(180deg, rgba(126,224,255,.96), rgba(109,157,255,.92)) !important;
            box-shadow: 0 10px 24px rgba(109,157,255,.16);
        }

        .profile-image {
            max-width: 410px;
            border-radius: 18px;
            border-color: rgba(255,255,255,.11);
            box-shadow: 0 18px 42px rgba(0,0,0,.28);
        }

        .skills-section {
            margin-top: 1.85rem;
        }

        .skill-groups {
            max-width: 622px;
            gap: 0;
            padding-top: .78rem;
            border-top: 1px solid rgba(255,255,255,.075);
        }

        .skill-group {
            grid-template-columns: 7.75rem minmax(0, 1fr);
            gap: .9rem;
            padding-block: .65rem;
            border-top: 0;
        }

        .skill-group + .skill-group {
            border-top: 1px solid rgba(255,255,255,.065);
        }

        .skill-group:last-child {
            border-bottom: 0;
        }

        .skill-group-label {
            color: rgba(126,224,255,.95);
            font-size: .68rem;
            letter-spacing: .105em;
            padding-top: .62rem;
        }

        .skill-list {
            gap: .5rem;
        }

        .skill-list .skill-badge {
            position: relative;
            overflow: hidden;
            min-height: 39px;
            padding: .48rem .68rem .48rem .78rem;
            border-radius: 10px;
            background: linear-gradient(180deg, rgba(255,255,255,.062), rgba(255,255,255,.038));
            border-color: rgba(255,255,255,.085);
            box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
            color: rgba(248,250,255,.95);
            font-size: .86rem;
        }

        .skill-list .skill-badge::before {
            content: '';
            position: absolute;
            left: 0;
            top: .58rem;
            bottom: .58rem;
            width: 2px;
            border-radius: 999px;
            background: rgba(126,224,255,.75);
            opacity: .85;
        }

        .skill-list .skill-badge i {
            color: rgba(236,246,255,.86);
            opacity: .95;
        }

        .info-card,
        .project-card,
        .contact-panel {
            border-radius: 18px;
            background:
                linear-gradient(180deg, rgba(255,255,255,.024), transparent 34%),
                linear-gradient(145deg, rgba(10, 20, 36, .84), rgba(16, 28, 48, .70));
            border-color: rgba(255,255,255,.09);
            box-shadow: 0 10px 28px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.028);
        }

        .info-card,
        .project-card {
            padding: 1.35rem;
            gap: .78rem;
        }

        .info-card i,
        .project-card i {
            width: 2.35rem;
            height: 2.35rem;
            border-radius: 12px;
        }

        .info-card h3,
        .project-card h3 {
            font-size: 1.08rem;
        }

        .info-card p,
        .project-card p {
            color: rgba(226,230,242,.84);
            line-height: 1.62;
        }

        .card-points {
            margin-top: .2rem;
            padding-top: .7rem;
            border-top: 1px solid rgba(255,255,255,.065);
            color: rgba(226,230,242,.82);
            font-size: .89rem;
        }

        .card-points li::before {
            width: .32rem;
            height: .32rem;
            background: rgba(126,224,255,.88);
            box-shadow: 0 0 0 3px rgba(126,224,255,.075);
        }

        @media (hover:hover) and (pointer:fine) {
            .hero-card:hover,
            .info-card:hover,
            .project-card:hover,
            .contact-panel:hover {
                border-color: rgba(126,224,255,.20);
                box-shadow: 0 14px 38px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.035);
            }

            .skill-list .skill-badge:hover {
                background: linear-gradient(180deg, rgba(126,224,255,.092), rgba(255,255,255,.045));
                border-color: rgba(126,224,255,.18);
                box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 8px 18px rgba(0,0,0,.14);
            }
        }

        @media (max-width: 991.98px) {
            .hero-card {
                max-width: 720px;
            }

            .hero-title,
            .hero-description,
            .hero-subtitle {
                text-align: center;
            }

            .skills-section {
                margin-top: 1.55rem;
            }

            .skill-group {
                grid-template-columns: 1fr;
                gap: .55rem;
            }

            .skill-group-label {
                padding-top: 0;
            }
        }

        @media (max-width: 575.98px) {
            .hero-card {
                padding: 1.15rem;
                border-radius: 20px;
            }

            .hero-title {
                font-size: clamp(2rem, 12vw, 2.6rem);
            }

            .hero-description {
                font-size: .94rem;
                line-height: 1.68;
            }

            .skill-groups {
                padding-top: .65rem;
            }

            .skill-list {
                gap: .42rem;
            }

            .skill-list .skill-badge {
                min-height: 40px;
                justify-content: flex-start;
                text-align: left;
                font-size: .8rem;
            }
        }

        /* Professional polish pass */
        .hero-card {
            overflow: hidden;
            background:
                linear-gradient(180deg, rgba(255,255,255,.032), transparent 22%),
                linear-gradient(145deg, rgba(6, 14, 27, .90), rgba(13, 24, 42, .76));
            border-color: rgba(126,224,255,.13);
        }

        .hero-card::after {
            content: '';
            position: absolute;
            inset: 1px;
            border-radius: inherit;
            pointer-events: none;
            background:
                linear-gradient(90deg, transparent 0 57%, rgba(126,224,255,.055) 57%, transparent 58%),
                radial-gradient(circle at 83% 25%, rgba(126,224,255,.08), transparent 20rem);
            opacity: .78;
        }

        .hero-kicker {
            margin: 0 0 .78rem;
            color: rgba(126,224,255,.88);
            font-size: .76rem;
            font-weight: 800;
            letter-spacing: .13em;
            line-height: 1.3;
            text-transform: uppercase;
        }

        .hero-title {
            max-width: 12ch;
            letter-spacing: 0;
        }

        .hero-description {
            max-width: 560px;
        }

        .profile-panel {
            position: relative;
            z-index: 1;
            display: grid;
            gap: .75rem;
            max-width: 400px;
            margin: 0 0 0 auto;
            padding: .55rem;
            border: 1px solid rgba(255,255,255,.085);
            border-radius: 20px;
            background: rgba(255,255,255,.035);
            box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
        }

        .profile-panel figcaption {
            margin: 0;
            padding: 0 .25rem .1rem;
            color: rgba(216,219,232,.72);
            font-size: .78rem;
            line-height: 1.45;
            text-align: left;
        }

        .profile-panel .profile-image {
            width: 100%;
            max-width: none;
            border-radius: 15px;
            box-shadow: 0 14px 34px rgba(0,0,0,.24);
        }

        .skill-groups {
            border-top-color: rgba(126,224,255,.11);
        }

        .skill-group {
            align-items: stretch;
        }

        .skill-group-label {
            display: flex;
            align-items: center;
            color: rgba(192,239,255,.88);
        }

        .skill-list .skill-badge {
            min-height: 38px;
            border-radius: 8px;
            background: rgba(255,255,255,.045);
            border-color: rgba(255,255,255,.075);
            transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
        }

        .skill-list .skill-badge::before {
            top: .72rem;
            bottom: .72rem;
            opacity: .68;
        }

        .section-block {
            padding-top: 1.35rem;
        }

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

        .section-heading h2 {
            font-size: clamp(1.55rem, 3vw, 2.1rem);
        }

        .section-heading p {
            max-width: 680px;
            color: rgba(216,219,232,.82);
            line-height: 1.65;
        }

        .info-card,
        .project-card {
            padding: 1.25rem;
            border-radius: 14px;
        }

        .info-card i,
        .project-card i {
            width: 2.15rem;
            height: 2.15rem;
            margin-bottom: .05rem;
            border-radius: 10px;
            color: rgba(223,248,255,.92);
        }

        .card-eyebrow {
            color: rgba(126,224,255,.82);
            font-size: .68rem;
            font-weight: 800;
            letter-spacing: .11em;
            line-height: 1.2;
            text-transform: uppercase;
        }

        .info-card h3,
        .project-card h3 {
            margin-top: -.35rem;
            color: rgba(255,255,255,.96);
        }

        .card-points {
            gap: .38rem;
        }

        .project-tag {
            border-radius: 8px;
            background: rgba(255,255,255,.055);
            border-color: rgba(255,255,255,.075);
            color: rgba(248,250,255,.90);
        }

        .contact-panel {
            border-radius: 16px;
        }

        @media (hover:hover) and (pointer:fine) {
            .skill-list .skill-badge:hover {
                transform: translateY(-1px);
            }

            .info-card:hover,
            .project-card:hover,
            .contact-panel:hover {
                transform: translateY(-2px);
            }
        }

        @media (max-width: 991.98px) {
            .hero-card::after {
                background: radial-gradient(circle at 50% 72%, rgba(126,224,255,.06), transparent 18rem);
            }

            .hero-kicker {
                text-align: center;
            }

            .hero-title {
                max-width: none;
            }

            .profile-panel {
                margin-inline: auto;
            }

            .profile-panel figcaption {
                text-align: center;
            }
        }

        @media (max-width: 575.98px) {
            .hero-kicker {
                margin-bottom: .55rem;
                font-size: .7rem;
            }

            .profile-panel {
                padding: .42rem;
                border-radius: 17px;
            }

            .profile-panel figcaption {
                font-size: .74rem;
            }

            .info-card,
            .project-card {
                padding: 1.1rem;
            }
        }

        /* Remove forced hero split and caption treatment */
        .hero-card::after {
            background: radial-gradient(circle at 82% 28%, rgba(126,224,255,.065), transparent 20rem);
            opacity: .7;
        }

        .profile-panel {
            display: block;
            max-width: 390px;
            padding: 0;
            border: 0;
            background: transparent;
            box-shadow: none;
        }

        .profile-panel figcaption {
            display: none;
        }

        .profile-panel .profile-image {
            border-radius: 17px;
            border: 1px solid rgba(255,255,255,.12);
            box-shadow: 0 18px 42px rgba(0,0,0,.30);
        }

        @media (max-width: 991.98px) {
            .hero-card::after {
                background: radial-gradient(circle at 50% 68%, rgba(126,224,255,.055), transparent 18rem);
            }
        }

        /* Center skill item labels */
        .skill-list .skill-badge {
            justify-content: center;
            text-align: center;
        }

        .skill-list .skill-badge i {
            flex: 0 0 auto;
        }

        /* Optically center skill group labels */
        .skill-group-label {
            align-self: stretch;
            align-items: center;
            padding-top: 0;
            padding-bottom: 0;
            line-height: 1;
        }

        @media (max-width: 991.98px) {
            .skill-group-label {
                justify-content: center;
                min-height: 1rem;
            }
        }

        /* Allow native mobile pull-to-refresh */
        html,
        body {
            overscroll-behavior-y: auto;
        }

        /* Language and theme controls */
        .site-controls {
            position: fixed;
            top: max(1rem, env(safe-area-inset-top));
            right: max(1rem, env(safe-area-inset-right));
            z-index: 30;
            display: flex;
            align-items: center;
            gap: .5rem;
            padding: .35rem;
            border: 1px solid rgba(255,255,255,.11);
            border-radius: 999px;
            background: rgba(6, 14, 27, .78);
            box-shadow: 0 14px 36px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.04);
            backdrop-filter: blur(10px) saturate(130%);
            -webkit-backdrop-filter: blur(10px) saturate(130%);
        }

        .language-toggle {
            display: inline-flex;
            align-items: center;
            gap: .2rem;
        }

        .control-pill,
        .theme-toggle {
            min-height: 34px;
            border: 1px solid transparent;
            color: rgba(248,250,255,.88);
            background: transparent;
            font: inherit;
            font-size: .78rem;
            font-weight: 800;
            letter-spacing: .03em;
            cursor: pointer;
            transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
        }

        .control-pill {
            min-width: 38px;
            padding: .35rem .6rem;
            border-radius: 999px;
        }

        .control-pill.is-active {
            color: #07101b;
            background: var(--accent);
            border-color: rgba(255,255,255,.22);
        }

        .theme-toggle {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: .45rem;
            padding: .35rem .72rem;
            border-radius: 999px;
            border-color: rgba(255,255,255,.10);
            background: rgba(255,255,255,.055);
        }

        .theme-toggle i {
            width: .9rem;
            text-align: center;
            color: var(--accent);
        }

        .control-pill:hover,
        .theme-toggle:hover,
        .control-pill:focus-visible,
        .theme-toggle:focus-visible {
            color: #fff;
            background: rgba(126,224,255,.12);
            border-color: rgba(126,224,255,.25);
            outline: none;
        }

        .control-pill.is-active:hover,
        .control-pill.is-active:focus-visible {
            color: #07101b;
            background: var(--accent);
        }

        @media (max-width: 575.98px) {
            .site-controls {
                top: max(.65rem, env(safe-area-inset-top));
                right: max(.65rem, env(safe-area-inset-right));
                gap: .35rem;
                padding: .28rem;
            }

            .control-pill,
            .theme-toggle {
                min-height: 32px;
                font-size: .72rem;
            }

            .control-pill {
                min-width: 35px;
                padding-inline: .52rem;
            }

            .theme-toggle {
                padding-inline: .62rem;
            }
        }

        /* Light theme */
        html[data-theme="light"] {
            --bg-base: #eef4f8;
            --bg-1: #eef4f8;
            --bg-2: #dbe7ef;
            --bg-3: #c8d8e4;
            --text: #101828;
            --muted: #475467;
            --accent: #007fa3;
            --accent-2: #ad564c;
            --border: rgba(16,24,40,.14);
            --border-hover: rgba(0,127,163,.30);
        }

        html[data-theme="light"] body {
            color: var(--text);
            background:
                radial-gradient(circle at 12% 15%, rgba(0,127,163,.16), transparent 27rem),
                radial-gradient(circle at 88% 12%, rgba(173,86,76,.13), transparent 24rem),
                radial-gradient(circle at 76% 76%, rgba(68,109,160,.12), transparent 28rem),
                linear-gradient(135deg, #f7fafc 0%, #e8f0f6 48%, #dce8f0 100%);
        }

        html[data-theme="light"] body::before {
            opacity: .28;
            mix-blend-mode: normal;
        }

        html[data-theme="light"] .site-controls {
            border-color: rgba(16,24,40,.12);
            background: rgba(255,255,255,.78);
            box-shadow: 0 14px 32px rgba(16,24,40,.12), inset 0 1px 0 rgba(255,255,255,.7);
        }

        html[data-theme="light"] .control-pill,
        html[data-theme="light"] .theme-toggle {
            color: rgba(16,24,40,.78);
        }

        html[data-theme="light"] .control-pill.is-active {
            color: #fff;
            background: var(--accent);
        }

        html[data-theme="light"] .theme-toggle {
            background: rgba(16,24,40,.055);
            border-color: rgba(16,24,40,.10);
        }

        html[data-theme="light"] .hero-card {
            background:
                linear-gradient(180deg, rgba(255,255,255,.62), transparent 24%),
                linear-gradient(145deg, rgba(255,255,255,.92), rgba(241,247,251,.78));
            border-color: rgba(16,24,40,.12);
            box-shadow: 0 18px 44px rgba(16,24,40,.13), inset 0 1px 0 rgba(255,255,255,.72);
        }

        html[data-theme="light"] .hero-card::after {
            background: radial-gradient(circle at 82% 28%, rgba(0,127,163,.08), transparent 20rem);
        }

        html[data-theme="light"] .hero-kicker,
        html[data-theme="light"] .hero-subtitle,
        html[data-theme="light"] .section-kicker,
        html[data-theme="light"] .card-eyebrow,
        html[data-theme="light"] .skill-group-label {
            color: var(--accent);
        }

        html[data-theme="light"] .hero-description,
        html[data-theme="light"] .section-heading p,
        html[data-theme="light"] .info-card p,
        html[data-theme="light"] .project-card p,
        html[data-theme="light"] .contact-panel p,
        html[data-theme="light"] .card-points {
            color: rgba(52,64,84,.88);
        }

        html[data-theme="light"] .info-card,
        html[data-theme="light"] .project-card,
        html[data-theme="light"] .contact-panel {
            background:
                linear-gradient(180deg, rgba(255,255,255,.58), transparent 34%),
                linear-gradient(145deg, rgba(255,255,255,.86), rgba(241,247,251,.72));
            border-color: rgba(16,24,40,.10);
            box-shadow: 0 10px 28px rgba(16,24,40,.10), inset 0 1px 0 rgba(255,255,255,.65);
        }

        html[data-theme="light"] .info-card h3,
        html[data-theme="light"] .project-card h3,
        html[data-theme="light"] .contact-panel h2,
        html[data-theme="light"] .hero-title {
            color: #101828;
        }

        html[data-theme="light"] .info-card i,
        html[data-theme="light"] .project-card i {
            color: #005f7a;
            background: rgba(0,127,163,.10);
            border-color: rgba(0,127,163,.16);
        }

        html[data-theme="light"] .skill-groups,
        html[data-theme="light"] .skill-group + .skill-group,
        html[data-theme="light"] .card-points {
            border-color: rgba(16,24,40,.10);
        }

        html[data-theme="light"] .skill-list .skill-badge,
        html[data-theme="light"] .project-tag,
        html[data-theme="light"] .btn-secondary-custom {
            color: rgba(16,24,40,.88);
            background: rgba(255,255,255,.62);
            border-color: rgba(16,24,40,.11);
        }

        html[data-theme="light"] .skill-list .skill-badge i {
            color: rgba(16,24,40,.68);
        }

        html[data-theme="light"] .btn-primary-custom {
            color: #fff !important;
            background: linear-gradient(180deg, #008fb8, #356fd1) !important;
            box-shadow: 0 10px 24px rgba(0,127,163,.18);
        }

        html[data-theme="light"] .profile-panel .profile-image {
            border-color: rgba(16,24,40,.12);
            box-shadow: 0 18px 42px rgba(16,24,40,.16);
        }

        html[data-theme="light"] .typing-text {
            border-right-color: var(--accent);
        }

        html[data-theme="light"] footer {
            color: rgba(16,24,40,.78);
        }

        /* Language/layout and light-mode contrast refinements */
        .hero-title {
            max-width: none;
            text-wrap: balance;
        }

        .hero-title > [data-i18n="hero.title"] {
            display: inline-block;
            max-width: 100%;
        }

        html[lang="nl"] .hero-title {
            font-size: clamp(2.35rem, 4.35vw, 3.35rem);
        }

        html[lang="nl"] .hero-description {
            max-width: 610px;
        }

        html[data-theme="light"] body::after {
            display: none;
        }

        html[data-theme="light"] body::before {
            background:
                linear-gradient(180deg, rgba(255,255,255,.45), transparent 32%, rgba(210,225,235,.34)),
                repeating-linear-gradient(90deg, rgba(16,24,40,.035) 0 1px, transparent 1px 118px),
                repeating-linear-gradient(0deg, rgba(16,24,40,.025) 0 1px, transparent 1px 118px);
            opacity: .42;
            mask-image: none;
        }

        html[data-theme="light"] .hero-card,
        html[data-theme="light"] .info-card,
        html[data-theme="light"] .project-card,
        html[data-theme="light"] .contact-panel {
            background:
                linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,255,255,.62)),
                linear-gradient(145deg, rgba(255,255,255,.96), rgba(232,241,248,.86));
            border-color: rgba(16,24,40,.13);
        }

        html[data-theme="light"] .contact-panel {
            box-shadow: 0 18px 42px rgba(16,24,40,.13), inset 0 1px 0 rgba(255,255,255,.82);
        }

        html[data-theme="light"] .section-heading p,
        html[data-theme="light"] .contact-panel p {
            color: rgba(36,48,68,.88);
        }

        html[data-theme="light"] .btn-secondary-custom {
            color: #12324a !important;
            background: rgba(255,255,255,.72) !important;
            border-color: rgba(16,24,40,.18) !important;
            box-shadow: 0 8px 18px rgba(16,24,40,.08);
        }

        html[data-theme="light"] .btn-secondary-custom i,
        html[data-theme="light"] .btn-secondary-custom span {
            color: #12324a !important;
        }

        html[data-theme="light"] .btn-secondary-custom:hover,
        html[data-theme="light"] .btn-secondary-custom:focus-visible {
            color: #fff !important;
            background: #007fa3 !important;
            border-color: #007fa3 !important;
        }

        html[data-theme="light"] .btn-secondary-custom:hover i,
        html[data-theme="light"] .btn-secondary-custom:hover span,
        html[data-theme="light"] .btn-secondary-custom:focus-visible i,
        html[data-theme="light"] .btn-secondary-custom:focus-visible span {
            color: #fff !important;
        }

        html[data-theme="light"] .project-tag {
            color: rgba(16,24,40,.82);
            background: rgba(255,255,255,.76);
            border-color: rgba(16,24,40,.12);
        }

        @media (max-width: 575.98px) {
            html[lang="nl"] .hero-title {
                font-size: clamp(1.92rem, 10.5vw, 2.45rem);
            }
        }

        /* Accessibility pass */
        .skip-link {
            position: fixed;
            left: max(1rem, env(safe-area-inset-left));
            top: max(1rem, env(safe-area-inset-top));
            z-index: 100;
            padding: .75rem 1rem;
            border-radius: 10px;
            color: #07101b;
            background: var(--accent);
            font-weight: 800;
            text-decoration: none;
            transform: translateY(calc(-100% - 1.5rem));
            transition: transform .16s ease;
        }

        .skip-link:focus,
        .skip-link:focus-visible {
            transform: translateY(0);
            outline: 3px solid #fff;
            outline-offset: 3px;
        }

        #mainContent:focus {
            outline: none;
        }

        :where(a, button, [tabindex]):focus-visible {
            outline: 3px solid var(--accent);
            outline-offset: 4px;
        }

        .btn-custom:focus-visible,
        .control-pill:focus-visible,
        .theme-toggle:focus-visible,
        .scroll-indicator:focus-visible,
        .egg-close:focus-visible {
            box-shadow: 0 0 0 4px rgba(126,224,255,.24), 0 0 0 1px rgba(255,255,255,.28) inset;
        }

        .control-pill,
        .theme-toggle,
        .scroll-indicator,
        .egg-close {
            touch-action: manipulation;
        }

        .control-pill,
        .theme-toggle {
            min-height: 44px;
        }

        .control-pill {
            min-width: 44px;
        }

        .theme-toggle {
            min-width: 44px;
        }

        .btn-custom {
            min-height: 44px;
        }

        .scroll-indicator {
            min-width: 44px;
            min-height: 44px;
        }

        html[data-theme="light"] {
            --accent: #006f8f;
            --accent-2: #8f3f38;
            --text: #0b1220;
            --muted: #344054;
        }

        html[data-theme="light"] .hero-description,
        html[data-theme="light"] .section-heading p,
        html[data-theme="light"] .info-card p,
        html[data-theme="light"] .project-card p,
        html[data-theme="light"] .contact-panel p,
        html[data-theme="light"] .card-points {
            color: #26364d;
        }

        html[data-theme="light"] .skill-list .skill-badge,
        html[data-theme="light"] .project-tag {
            color: #162236;
            background: rgba(255,255,255,.82);
            border-color: rgba(16,24,40,.18);
        }

        html[data-theme="light"] .skill-list .skill-badge i {
            color: #344054;
        }

        html[data-theme="light"] .control-pill:hover,
        html[data-theme="light"] .theme-toggle:hover,
        html[data-theme="light"] .control-pill:focus-visible,
        html[data-theme="light"] .theme-toggle:focus-visible {
            color: #0b1220;
            background: rgba(0,111,143,.12);
            border-color: rgba(0,111,143,.34);
        }

        html[data-theme="light"] :where(a, button, [tabindex]):focus-visible {
            outline-color: #005f7a;
        }

        html[data-theme="light"] .skip-link {
            color: #fff;
            background: #005f7a;
        }

        html[data-theme="light"] .skip-link:focus-visible {
            outline-color: #0b1220;
        }

        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation: none !important;
                scroll-behavior: auto !important;
                transition: none !important;
            }

            .typing-text {
                animation: none !important;
                border-right-width: 0;
                padding-right: 0;
            }

            .scroll-indicator {
                animation: none !important;
            }
        }

        @media (prefers-contrast: more) {
            :root {
                --accent: #8ee8ff;
                --muted: #f0f4ff;
            }

            html[data-theme="light"] {
                --accent: #005f7a;
                --muted: #1d2939;
            }

            .hero-card,
            .info-card,
            .project-card,
            .contact-panel,
            .skill-list .skill-badge,
            .project-tag,
            .site-controls {
                border-width: 2px;
            }

            .hero-description,
            .section-heading p,
            .info-card p,
            .project-card p,
            .contact-panel p,
            .card-points {
                color: var(--text);
            }
        }

        @media (forced-colors: active) {
            body,
            .hero-card,
            .info-card,
            .project-card,
            .contact-panel,
            .site-controls,
            .skill-list .skill-badge,
            .project-tag,
            .easter-egg {
                background: Canvas;
                color: CanvasText;
                border-color: CanvasText;
                box-shadow: none;
            }

            .btn-primary-custom,
            .btn-secondary-custom,
            .control-pill.is-active,
            .skip-link {
                color: ButtonText !important;
                background: ButtonFace !important;
                border: 2px solid ButtonText !important;
            }

            :where(a, button, [tabindex]):focus-visible {
                outline: 3px solid Highlight;
                outline-offset: 4px;
            }
        }

        /* Light mode refinement and rendering performance */
        html[data-theme="light"] body {
            background:
                radial-gradient(circle at 10% 12%, rgba(0,111,143,.12), transparent 28rem),
                radial-gradient(circle at 90% 8%, rgba(143,63,56,.10), transparent 24rem),
                linear-gradient(135deg, #f8fbfd 0%, #edf4f8 48%, #e2edf4 100%);
        }

        html[data-theme="light"] .hero-card,
        html[data-theme="light"] .info-card,
        html[data-theme="light"] .project-card,
        html[data-theme="light"] .contact-panel {
            background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(238,246,250,.90));
            border-color: rgba(16,24,40,.16);
            box-shadow: 0 14px 34px rgba(16,24,40,.11), inset 0 1px 0 rgba(255,255,255,.86);
        }

        html[data-theme="light"] .site-controls {
            background: rgba(255,255,255,.90);
            border-color: rgba(16,24,40,.16);
        }

        html[data-theme="light"] .control-pill.is-active {
            color: #fff;
            background: #006f8f;
            border-color: #006f8f;
        }

        html[data-theme="light"] .theme-toggle,
        html[data-theme="light"] .control-pill:not(.is-active) {
            background: rgba(255,255,255,.66);
            border-color: rgba(16,24,40,.12);
        }

        html[data-theme="light"] .section-kicker,
        html[data-theme="light"] .hero-kicker,
        html[data-theme="light"] .skill-group-label,
        html[data-theme="light"] .card-eyebrow {
            color: #005f7a;
        }

        html[data-theme="light"] .skill-list .skill-badge::before,
        html[data-theme="light"] .card-points li::before {
            background: #006f8f;
            box-shadow: 0 0 0 3px rgba(0,111,143,.10);
        }

        html[data-theme="light"] .profile-panel .profile-image {
            box-shadow: 0 14px 34px rgba(16,24,40,.16);
        }

        html[data-theme="light"] .scroll-indicator {
            color: rgba(16,24,40,.64);
        }

        .section-block,
        footer {
            content-visibility: auto;
            contain-intrinsic-size: auto 620px;
        }

        .info-card,
        .project-card,
        .contact-panel,
        .skill-list .skill-badge,
        .project-tag {
            contain: layout paint;
        }

        body::before,
        body::after,
        .hero-card::after {
            will-change: auto;
        }

        @media (max-width: 575.98px) {
            .site-controls {
                backdrop-filter: none;
                -webkit-backdrop-filter: none;
            }
        }

        /* Terminology pass support: clearer light theme and cheaper rendering */
        html[data-theme="light"] body {
            background:
                radial-gradient(circle at 14% 10%, rgba(0,111,143,.10), transparent 26rem),
                radial-gradient(circle at 88% 14%, rgba(143,63,56,.075), transparent 22rem),
                linear-gradient(135deg, #fbfdff 0%, #eef5f9 48%, #e3eef5 100%);
        }

        html[data-theme="light"] .hero-card,
        html[data-theme="light"] .info-card,
        html[data-theme="light"] .project-card,
        html[data-theme="light"] .contact-panel {
            background: #f8fbfd;
            border-color: rgba(15,23,42,.18);
        }

        html[data-theme="light"] .hero-card {
            box-shadow: 0 18px 42px rgba(15,23,42,.12), inset 0 1px 0 rgba(255,255,255,.92);
        }

        html[data-theme="light"] .info-card,
        html[data-theme="light"] .project-card,
        html[data-theme="light"] .contact-panel {
            box-shadow: 0 10px 26px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.92);
        }

        html[data-theme="light"] .hero-description,
        html[data-theme="light"] .section-heading p,
        html[data-theme="light"] .info-card p,
        html[data-theme="light"] .project-card p,
        html[data-theme="light"] .contact-panel p,
        html[data-theme="light"] .card-points {
            color: #233044;
        }

        html[data-theme="light"] .skill-list .skill-badge,
        html[data-theme="light"] .project-tag {
            background: #ffffff;
            border-color: rgba(15,23,42,.20);
        }

        html[data-theme="light"] .btn-secondary-custom {
            background: #ffffff !important;
            border-color: rgba(15,23,42,.22) !important;
        }

        html[data-theme="light"] .hero-card::after,
        html[data-theme="light"] body::before {
            opacity: .26;
        }

        html[data-theme="light"] .site-controls {
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
        }

        @media (prefers-reduced-transparency: reduce) {
            .site-controls,
            .hero-card,
            .info-card,
            .project-card,
            .contact-panel,
            .easter-egg {
                backdrop-filter: none !important;
                -webkit-backdrop-filter: none !important;
            }
        }

        /* Office PC performance guard */
        .site-controls {
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            background: rgba(6, 14, 27, .92);
        }

        html[data-theme="light"] .site-controls {
            background: rgba(255,255,255,.94);
        }

        body::before {
            mix-blend-mode: normal;
        }

        /* Mobile controls spacing and WebKit safe-area refinement */
        @media (max-width: 575.98px) {
            .site-controls {
                left: 50%;
                right: auto;
                top: max(.65rem, env(safe-area-inset-top));
                transform: translateX(-50%);
                max-width: calc(100vw - 1rem - env(safe-area-inset-left) - env(safe-area-inset-right));
                gap: .32rem;
                padding: .3rem;
            }

            .hero-section {
                padding-top: max(5.25rem, calc(env(safe-area-inset-top) + 4.75rem));
            }

            .hero-kicker {
                max-width: 100%;
                text-align: center;
                overflow-wrap: normal;
            }
        }

        @media (max-width: 380px) {
            .theme-toggle span {
                position: absolute;
                width: 1px;
                height: 1px;
                padding: 0;
                margin: -1px;
                overflow: hidden;
                clip: rect(0, 0, 0, 0);
                white-space: nowrap;
                border: 0;
            }

            .theme-toggle {
                padding-inline: .72rem;
            }
        }

        @supports (-webkit-touch-callout: none) {
            @media (max-width: 575.98px) {
                .site-controls {
                    top: max(.75rem, env(safe-area-inset-top));
                    transform: translateX(-50%) translateZ(0);
                }

                .hero-section {
                    padding-top: max(5.5rem, calc(env(safe-area-inset-top) + 5rem));
                }
            }
        }

        /* Robust skip-link hiding for macOS/WebKit focus restoration */
        .skip-link {
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            clip-path: inset(50%);
            white-space: nowrap;
            border: 0;
            transform: none;
        }

        .skip-link:focus:not(:focus-visible) {
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            clip-path: inset(50%);
            white-space: nowrap;
            border: 0;
            outline: 0;
        }

        .skip-link:focus-visible {
            width: auto;
            height: auto;
            padding: .75rem 1rem;
            margin: 0;
            overflow: visible;
            clip: auto;
            clip-path: none;
            white-space: normal;
            border: 0;
            transform: none;
        }

        /* Richer light mode color pass */
        html[data-theme="light"] {
            --accent: #007fa3;
            --accent-2: #b55349;
            --accent-3: #376fa7;
            --accent-4: #27795f;
        }

        html[data-theme="light"] body {
            background:
                radial-gradient(circle at 10% 12%, rgba(0,127,163,.18), transparent 24rem),
                radial-gradient(circle at 88% 10%, rgba(181,83,73,.15), transparent 22rem),
                radial-gradient(circle at 78% 78%, rgba(55,111,167,.15), transparent 26rem),
                radial-gradient(circle at 18% 86%, rgba(39,121,95,.11), transparent 22rem),
                linear-gradient(135deg, #fbfdff 0%, #edf6fa 38%, #e6f0f6 68%, #f4f8fb 100%);
        }

        html[data-theme="light"] body::before {
            background:
                linear-gradient(180deg, rgba(255,255,255,.42), transparent 34%, rgba(217,231,238,.30)),
                repeating-linear-gradient(90deg, rgba(0,127,163,.045) 0 1px, transparent 1px 118px),
                repeating-linear-gradient(0deg, rgba(181,83,73,.026) 0 1px, transparent 1px 118px);
            opacity: .38;
        }

        html[data-theme="light"] .hero-card {
            background:
                linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78)),
                linear-gradient(135deg, rgba(0,127,163,.075), transparent 34%),
                linear-gradient(315deg, rgba(181,83,73,.055), transparent 40%),
                #f8fbfd;
            border-color: rgba(0,127,163,.20);
            box-shadow: 0 20px 48px rgba(15,23,42,.13), 0 0 0 1px rgba(255,255,255,.70) inset;
        }

        html[data-theme="light"] .info-card,
        html[data-theme="light"] .project-card,
        html[data-theme="light"] .contact-panel {
            background:
                linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.76)),
                linear-gradient(135deg, rgba(0,127,163,.045), rgba(181,83,73,.035)),
                #f9fcfe;
            border-color: rgba(15,23,42,.16);
        }

        html[data-theme="light"] .info-card:nth-child(2n) {
            background:
                linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.76)),
                linear-gradient(135deg, rgba(55,111,167,.055), rgba(39,121,95,.035)),
                #f9fcfe;
        }

        html[data-theme="light"] .section-kicker,
        html[data-theme="light"] .card-eyebrow,
        html[data-theme="light"] .skill-group-label {
            color: #006d8d;
        }

        html[data-theme="light"] .hero-subtitle,
        html[data-theme="light"] .hero-kicker {
            color: #007fa3;
        }

        html[data-theme="light"] .skill-list .skill-badge,
        html[data-theme="light"] .project-tag {
            background:
                linear-gradient(180deg, rgba(255,255,255,.96), rgba(245,250,253,.94));
            border-color: rgba(0,127,163,.18);
            box-shadow: inset 3px 0 0 rgba(0,127,163,.38);
        }

        html[data-theme="light"] .skill-list .skill-badge:nth-child(2n),
        html[data-theme="light"] .project-tag:nth-child(2n) {
            border-color: rgba(181,83,73,.18);
            box-shadow: inset 3px 0 0 rgba(181,83,73,.34);
        }

        html[data-theme="light"] .skill-list .skill-badge i,
        html[data-theme="light"] .project-tag i {
            color: #006d8d;
        }

        html[data-theme="light"] .btn-primary-custom {
            background: linear-gradient(180deg, #008fba, #2f72c9) !important;
            box-shadow: 0 12px 26px rgba(0,127,163,.22), 0 0 0 1px rgba(255,255,255,.45) inset;
        }

        html[data-theme="light"] .btn-secondary-custom {
            background: linear-gradient(180deg, #ffffff, #f3f8fb) !important;
            border-color: rgba(0,127,163,.24) !important;
        }

        html[data-theme="light"] .site-controls {
            background: rgba(255,255,255,.96);
            border-color: rgba(0,127,163,.20);
        }

        /* Light mode treatment for the IRM easter egg */
        html[data-theme="light"] .easter-egg {
            color: #102033;
            border-color: rgba(0,127,163,.28);
            background:
                linear-gradient(180deg, rgba(0,127,163,.09), transparent 42%),
                linear-gradient(135deg, rgba(255,255,255,.98), rgba(239,248,252,.94));
            box-shadow: 0 22px 58px rgba(15,23,42,.18), 0 0 0 1px rgba(255,255,255,.80) inset;
        }

        html[data-theme="light"] .easter-egg::before {
            background: repeating-linear-gradient(180deg, rgba(0,127,163,.055) 0 1px, transparent 1px 7px);
            opacity: .34;
        }

        html[data-theme="light"] .egg-header {
            color: #123047;
            border-bottom-color: rgba(0,127,163,.18);
        }

        html[data-theme="light"] .egg-close {
            color: rgba(16,32,51,.62);
        }

        html[data-theme="light"] .egg-close:hover,
        html[data-theme="light"] .egg-close:focus-visible {
            color: #007fa3;
        }

        html[data-theme="light"] .egg-line {
            color: #102033;
        }

        html[data-theme="light"] .egg-line-command {
            color: #102033;
            border-bottom-color: rgba(0,127,163,.20);
        }

        html[data-theme="light"] .egg-line-pass { color: #176b4a; }
        html[data-theme="light"] .egg-line-info { color: #006b8a; }
        html[data-theme="light"] .egg-line-fun { color: #8a5b08; }

        html[data-theme="light"] .egg-line-result {
            border-color: rgba(39,121,95,.28);
            background: rgba(39,121,95,.09);
            color: #155c40;
        }

        html[data-theme="light"] .egg-muted {
            color: #475467;
        }

        html[data-theme="light"] .egg-pill {
            background: rgba(255,255,255,.72);
            border-color: rgba(0,127,163,.20);
            box-shadow: inset 3px 0 0 rgba(0,127,163,.34);
        }

        html[data-theme="light"] .egg-pill:nth-child(2) {
            border-color: rgba(181,83,73,.20);
            box-shadow: inset 3px 0 0 rgba(181,83,73,.30);
        }

        html[data-theme="light"] .egg-pill:nth-child(3) {
            border-color: rgba(39,121,95,.20);
            box-shadow: inset 3px 0 0 rgba(39,121,95,.30);
        }

        html[data-theme="light"] .egg-pill strong {
            color: #101828;
        }

        html[data-theme="light"] .egg-pill span {
            color: #475467;
        }

        html[data-theme="light"] .egg-progress {
            background: rgba(0,127,163,.12);
        }

        html[data-theme="light"] .egg-progress span {
            background: linear-gradient(90deg, #007fa3, #b55349, #27795f);
        }

        html[data-theme="light"] body.egg-active .hero-card,
        html[data-theme="light"] body.egg-active .skill-badge {
            border-color: rgba(0,127,163,.34);
        }

        /* Final visual polish pass */
        .hero-card {
            isolation: isolate;
        }

        .hero-card::after {
            opacity: .34;
            background:
                radial-gradient(circle at 82% 32%, rgba(126,224,255,.13), transparent 20rem),
                radial-gradient(circle at 18% 84%, rgba(240,139,123,.07), transparent 18rem);
        }

        .hero-kicker,
        .section-kicker,
        .card-eyebrow,
        .skill-group-label {
            letter-spacing: .12em;
        }

        .hero-description {
            text-wrap: pretty;
        }

        .profile-panel {
            position: relative;
            width: fit-content;
            margin-inline: auto;
        }

        .profile-panel::before {
            content: '';
            position: absolute;
            inset: -.55rem;
            border: 1px solid rgba(126,224,255,.10);
            border-radius: 24px;
            background:
                linear-gradient(135deg, rgba(126,224,255,.08), transparent 34%),
                linear-gradient(315deg, rgba(240,139,123,.06), transparent 42%);
            pointer-events: none;
        }

        .profile-panel .profile-image {
            position: relative;
            display: block;
        }

        .skill-list .skill-badge {
            position: relative;
            overflow: hidden;
            background:
                linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.045));
            border-color: rgba(255,255,255,.12);
        }

        .skill-list .skill-badge::after {
            content: '';
            position: absolute;
            inset: 0;
            border-left: 2px solid rgba(126,224,255,.42);
            pointer-events: none;
        }

        .skill-list .skill-badge i {
            color: rgba(126,224,255,.86);
        }

        .info-card,
        .contact-panel {
            border-radius: 18px;
        }

        .info-card::after,
        .contact-panel::after {
            content: '';
            position: absolute;
            left: 1.25rem;
            right: 1.25rem;
            top: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(126,224,255,.22), transparent);
            pointer-events: none;
        }

        .info-card i {
            box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
        }

        .card-points li::before {
            width: .32rem;
            height: .32rem;
            top: .66em;
        }

        .btn-primary-custom {
            border-color: rgba(255,255,255,.22) !important;
        }

        html[data-theme="light"] .hero-card::after {
            opacity: .48;
            background:
                radial-gradient(circle at 80% 28%, rgba(0,127,163,.16), transparent 19rem),
                radial-gradient(circle at 22% 86%, rgba(181,83,73,.10), transparent 18rem);
        }

        html[data-theme="light"] .profile-panel::before {
            border-color: rgba(0,127,163,.18);
            background:
                linear-gradient(135deg, rgba(0,127,163,.10), transparent 34%),
                linear-gradient(315deg, rgba(181,83,73,.08), transparent 42%);
        }

        html[data-theme="light"] .profile-panel .profile-image {
            border-color: rgba(0,127,163,.18);
            box-shadow: 0 20px 42px rgba(15,23,42,.15);
        }

        html[data-theme="light"] .skill-list .skill-badge {
            background:
                linear-gradient(180deg, rgba(255,255,255,.98), rgba(243,249,252,.96));
            border-color: rgba(0,127,163,.18);
        }

        html[data-theme="light"] .skill-list .skill-badge::after {
            border-left-color: rgba(0,127,163,.42);
        }

        html[data-theme="light"] .skill-list .skill-badge:nth-child(2n)::after {
            border-left-color: rgba(181,83,73,.38);
        }

        html[data-theme="light"] .skill-list .skill-badge i {
            color: #006d8d;
        }

        html[data-theme="light"] .info-card,
        html[data-theme="light"] .contact-panel {
            border-color: rgba(0,127,163,.15);
            box-shadow: 0 12px 30px rgba(15,23,42,.10), 0 0 0 1px rgba(255,255,255,.72) inset;
        }

        html[data-theme="light"] .info-card::after,
        html[data-theme="light"] .contact-panel::after {
            background: linear-gradient(90deg, transparent, rgba(0,127,163,.28), transparent);
        }

        html[data-theme="light"] .card-points li::before {
            background: #007fa3;
            box-shadow: 0 0 0 3px rgba(0,127,163,.11);
        }

        @media (max-width: 991.98px) {
            .profile-panel::before {
                inset: -.42rem;
            }
        }

        @media (max-width: 575.98px) {
            .hero-card::after,
            .profile-panel::before,
            .info-card::after,
            .contact-panel::after {
                display: none;
            }

            .hero-kicker,
            .section-kicker,
            .card-eyebrow,
            .skill-group-label {
                letter-spacing: .095em;
            }
        }

        /* Skill badge polish: remove left rail accents */
        .skill-list .skill-badge::after,
        html[data-theme="light"] .skill-list .skill-badge::after,
        html[data-theme="light"] .skill-list .skill-badge:nth-child(2n)::after {
            content: none;
            display: none;
            border-left: 0;
        }

        .skill-list .skill-badge {
            border-color: rgba(126,224,255,.16);
            box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
        }

        .skill-list .skill-badge i {
            color: rgba(126,224,255,.82);
            filter: drop-shadow(0 0 8px rgba(126,224,255,.10));
        }

        @media (hover:hover) and (pointer:fine) {
            .skill-list .skill-badge:hover {
                border-color: rgba(126,224,255,.32);
                background:
                    linear-gradient(180deg, rgba(126,224,255,.09), rgba(255,255,255,.045));
            }
        }

        html[data-theme="light"] .skill-list .skill-badge {
            border-color: rgba(0,127,163,.18);
            box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
        }

        html[data-theme="light"] .skill-list .skill-badge:nth-child(2n) {
            border-color: rgba(181,83,73,.16);
        }

        html[data-theme="light"] .skill-list .skill-badge i {
            filter: none;
        }

        @media (hover:hover) and (pointer:fine) {
            html[data-theme="light"] .skill-list .skill-badge:hover {
                border-color: rgba(0,127,163,.30);
                background:
                    linear-gradient(180deg, rgba(255,255,255,.98), rgba(236,248,252,.95));
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .egg-live {
                animation: none;
            }

            .btn-custom,
            .skill-badge,
            .project-tag,
            .profile-image,
            .hero-card,
            .info-card,
            .project-card,
            .contact-panel,
            .easter-egg,
            .egg-progress span {
                transition: none !important;
            }

            .btn-custom:hover,
            .skill-badge:hover,
            .project-tag:hover,
            .profile-image:hover,
            .hero-card:hover,
            .info-card:hover,
            .project-card:hover,
            .contact-panel:hover,
            .easter-egg {
                transform: none !important;
            }
        }
