        :root {
            /* Light Theme: Pure White, Slate, and Charcoal */
            --bg-body-start: #ffffff;
            --bg-body-end: #f8fafc;
            --text-primary: #0f172a;
            --text-secondary: #475569;
            --text-link: #0f172a;
            --text-accent: #334155;
            --border-color: #e2e8f0;
            --card-bg: rgba(255, 255, 255, 0.85);
            --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
            --card-hover-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
            --header-bg: rgba(255, 255, 255, 0.7);
            --aura-color: rgba(15, 23, 42, 0.05);
            --swiper-nav-color: #0f172a;
        }

        .dark {
            /* Dark Theme: Charcoal, Warm White, Pale Gold, Sage Green */
            --bg-body-start: #1c1c1c; /* Charcoal */
            --bg-body-end: #121212; /* Near Black */
            --text-primary: #e8e6e3; /* Warm Off-white */
            --text-secondary: #a39b93; /* Warm Gray */
            --text-link: #c9a97e; /* Pale Gold */
            --text-accent: #a3b18a; /* Sage Green */
            --border-color: #3c3836; /* Dark Warm Gray */
            --card-bg: rgba(38, 38, 38, 0.7); /* slate-800 with transparency */
            --header-bg: rgba(38, 38, 38, 0.5); /* slate-800 with transparency */
            --aura-color: rgba(201, 169, 126, 0.1); /* Gold-based */
            --swiper-nav-color: #e8e6e3;
        }

        /* +++ START: KONAMI CODE CSS +++ */
        .matrix-mode {
            --bg-body-start: #000;
            --bg-body-end: #020;
            --text-primary: #0f0;
            --text-secondary: #0a0;
            --text-link: #0f0;
            --text-accent: #0f0;
            --border-color: #030;
            --card-bg: rgba(0, 20, 0, 0.7);
            --header-bg: rgba(0, 10, 0, 0.5);
            --aura-color: rgba(0, 255, 0, 0.1);
            --swiper-nav-color: #0f0;
            font-family: 'Courier New', Courier, monospace !important;
        }
        .matrix-mode h1, .matrix-mode h2, .matrix-mode h3, .matrix-mode h4,
        .matrix-mode .text-primary, .matrix-mode .hero-name, .matrix-mode .nav-link,
        .matrix-mode body, .matrix-mode .terminal-output-text {
            font-family: 'Courier New', Courier, monospace !important;
            text-shadow: 0 0 5px #0f0, 0 0 2px #0f0;
        }
        .matrix-mode .hero-name {
            /* Override gradient in matrix mode */
            background: linear-gradient(90deg, #0f0, #0a0);
            -webkit-background-clip: text;
            background-clip: text;
        }
        /* +++ END: KONAMI CODE CSS +++ */


        html {
            scroll-padding-top: 6rem;
        }

        html, body {
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        html::-webkit-scrollbar, body::-webkit-scrollbar {
            display: none;
        }

        body {
            font-family: 'EB Garamond', serif; /* Changed from Inter */
            background-color: var(--bg-body-start);
            background-image: radial-gradient(circle at top left, var(--bg-body-start), var(--bg-body-end));
            color: var(--text-secondary);
            transition: background-color 0.5s ease, color 0.5s ease;
            width: 100%;
            overflow-x: hidden;
        }

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

        /* Applied Playfair Display to headings and key elements */
        h1, h2, h3, h4, .text-primary, .hero-name, .nav-link {
            font-family: 'Playfair Display', serif;
            color: var(--text-primary);
            transition: color 0.3s ease;
        }

        a {
        color: var(--text-link);
        }

        .no-scrollbar {
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        .no-scrollbar::-webkit-scrollbar {
            display: none;
        }

        @media (hover: hover) and (pointer: fine) {
            #cursor-aura {
                position: fixed;
                top: 0;
                left: 0;
                width: 500px;
                height: 500px;
                border-radius: 50%;
                background: radial-gradient(circle, var(--aura-color) 0%, transparent 60%);
                transform: translate(-50%, -50%);
                pointer-events: none;
                z-index: 100;
                transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
                mix-blend-mode: multiply;
            }
            .dark #cursor-aura {
                mix-blend-mode: screen;
            }
        }
        @media (hover: none) or (pointer: coarse) {
            #cursor-aura {
                display: none !important;
            }
        }

        .sticky-header {
            position: sticky;
            top: 1rem;
            z-index: 50;
            background-color: var(--header-bg);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid var(--border-color);
            transition: background-color 0.3s ease, border-color 0.3s ease;
            width: 100%;
        }

        .nav-link {
            position: relative;
            z-index: 1;
            color: var(--text-secondary);
            transition: color 0.3s ease;
        }
        .nav-link:hover {
            color: var(--text-primary);
        }
        .nav-link::after {
            content: '';
            position: absolute;
            width: 100%;
            transform: scaleX(0);
            height: 2px;
            bottom: -4px;
            left: 0;
            background-color: var(--text-link);
            transform-origin: bottom right;
            transition: transform 0.25s ease-out;
        }
        .nav-link.active-link {
            color: var(--text-primary);
            font-weight: 700;
        }
        .nav-link.active-link::after {
            transform: scaleX(0);
            transform-origin: bottom left;
        }

        #nav-glider {
            position: absolute;
            left: 0;
            bottom: 0;
            width: 0;
            height: 2px;
            border-radius: 999px;
            background: linear-gradient(90deg, var(--text-link), var(--text-accent));
            box-shadow: 0 0 14px color-mix(in srgb, var(--text-link) 50%, transparent);
            opacity: 0;
            pointer-events: none;
            transform: translateX(0);
            transition: transform 0.38s cubic-bezier(0.2, 0.85, 0.2, 1), width 0.38s cubic-bezier(0.2, 0.85, 0.2, 1), opacity 0.2s ease;
        }

        .terminal-shortcut {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            color: var(--text-link);
            border: 1px solid color-mix(in srgb, var(--text-link) 38%, transparent);
            background: color-mix(in srgb, var(--card-bg) 72%, transparent);
            box-shadow: inset 0 0 12px color-mix(in srgb, var(--text-link) 10%, transparent);
        }

        .terminal-shortcut::before {
            content: '';
            width: 0.42rem;
            height: 0.42rem;
            border-radius: 999px;
            background: var(--text-accent);
            box-shadow: 0 0 10px var(--text-accent);
        }

        .terminal-shortcut:hover,
        .terminal-shortcut.active {
            color: var(--bg-body-start);
            background: linear-gradient(135deg, var(--text-link), var(--text-accent));
            border-color: transparent;
            box-shadow: 0 0 18px color-mix(in srgb, var(--text-link) 35%, transparent);
        }

        .site-credit {
            color: var(--text-secondary);
            font-size: 0.95rem;
            letter-spacing: 0.01em;
        }

        .site-credit span {
            color: var(--text-primary);
            font-weight: 700;
            background: linear-gradient(90deg, var(--text-link), var(--text-accent));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .about-summary {
            color: var(--text-secondary) !important;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
            border: 1px solid var(--border-color);
            border-radius: 1rem;
            padding: 1.25rem 1.5rem;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--card-shadow);
            text-wrap: pretty;
        }

        .about-summary * {
            color: inherit !important;
            background: transparent !important;
        }

        .section-container {
            display: none;
            animation: fadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
            min-width: 0;
        }
        .section-container.active {
            display: block;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(30px) scale(0.95); filter: blur(10px); }
            to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
        }

        .hero-name {
            /* Changed gradient to match new theme */
            background: linear-gradient(90deg, var(--text-link), var(--text-accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-fill-color: transparent;
        }

        .themed-card {
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            box-shadow: var(--card-shadow);
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }
        .themed-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--card-hover-shadow);
        }
        .themed-card:hover img {
            transform: scale(1.03);
        }
        .themed-card img {
            transition: transform 0.3s ease;
        }

        .social-icon {
            color: var(--text-secondary);
            transition: all 0.2s ease-in-out;
        }
        .social-icon:hover {
            color: var(--text-primary);
            transform: scale(1.1) translateY(-2px);
        }
        .dark .social-icon:hover {
            color: var(--text-link);
        }

        .message-box {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: var(--text-accent); /* Changed from green */
            color: var(--bg-body-start); /* Changed from white */
            padding: 12px 24px;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            animation: slideInAndOut 3.5s forwards;
            z-index: 1000;
            width: min(calc(100vw - 2rem), 28rem);
            text-align: center;
        }
        @keyframes slideInAndOut {
            0% { transform: translate(-50%, 100px); opacity: 0; }
            15% { transform: translate(-50%, 0); opacity: 1; }
            85% { transform: translate(-50%, 0); opacity: 1; }
            100% { transform: translate(-50%, 100px); opacity: 0; display: none; }
        }

        #theme-toggle svg {
            transition: transform 0.3s ease, opacity 0.3s ease;
        }
        .dark #moon-icon,
        .light #sun-icon {
            transform: rotate(-90deg) scale(0);
            opacity: 0;
        }
        .dark #sun-icon,
        .light #moon-icon {
            transform: rotate(0deg) scale(1);
            opacity: 1;
        }

        #terminal-body {
            scrollbar-width: thin;
            scrollbar-color: var(--text-secondary) transparent;
            overscroll-behavior: contain;
        }
        #terminal-body::-webkit-scrollbar { width: 8px; }
        #terminal-body::-webkit-scrollbar-track { background: transparent; }
        #terminal-body::-webkit-scrollbar-thumb {
            background-color: var(--text-secondary);
            border-radius: 4px;
            border: 2px solid transparent;
        }
        #terminal-input { caret-color: var(--text-primary); }
        .terminal-line {
            margin-bottom: 0.45rem;
            max-width: 100%;
        }
        .terminal-command-line {
            display: flex;
            align-items: baseline;
            gap: 0.35rem;
            padding: 0.42rem 0.55rem;
            border: 1px solid color-mix(in srgb, var(--text-link) 18%, transparent);
            border-radius: 0.75rem;
            background: color-mix(in srgb, var(--text-link) 7%, transparent);
        }
        .terminal-command-input {
            color: var(--text-primary);
            overflow-wrap: anywhere;
        }
        .terminal-output-command { color: var(--text-link); }
        .terminal-output-text {
            color: var(--text-primary);
            white-space: pre-wrap;
            padding-left: 0.2rem;
        }
        .terminal-output-muted {
            color: var(--text-secondary);
            padding: 0.5rem 0.65rem;
            border-left: 2px solid color-mix(in srgb, var(--text-link) 45%, transparent);
            background: color-mix(in srgb, var(--card-bg) 55%, transparent);
            border-radius: 0.65rem;
        }
        .terminal-output-error {
            color: #c94c4c;
            padding: 0.5rem 0.65rem;
            border-left: 2px solid #c94c4c;
            background: rgba(201, 76, 76, 0.08);
            border-radius: 0.65rem;
        }
        .terminal-output-label {
            display: inline-flex;
            margin-bottom: 0.45rem;
            color: var(--text-link);
            font-size: 0.72rem;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }
        .terminal-inline-code {
            color: var(--text-link);
            font-weight: 700;
        }
        .terminal-suggestion-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr));
            gap: 0.35rem 0.7rem;
            margin-top: 0.2rem;
        }
        .terminal-suggestion-grid span {
            color: var(--text-primary);
            font-weight: 700;
        }
        .terminal-help-command { color: var(--text-link); font-weight: 600; } /* Changed from purple */
        .terminal-help-description { color: var(--text-secondary); }

        .terminal-window {
            background-image:
                radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--text-link) 13%, transparent), transparent 28%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%);
        }

        .terminal-titlebar {
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        #works-grid .themed-card, #certificates-grid .themed-card {
            cursor: grab;
        }
        #works-grid .themed-card:active, #certificates-grid .themed-card:active {
            cursor: grabbing;
        }
        .sortable-ghost {
            opacity: 0;
        }
        .sortable-chosen {
            opacity: 0.9 !important;
            z-index: 10;
            box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25) !important;
            transform: scale(1.05) rotate(2deg) !important;
        }
        .sortable-swap-active {
            transform: scale(0.95);
            opacity: 0.8;
        }

        .blog-post-card {
            margin-bottom: 2rem;
            text-decoration: none; /* Ensure link doesn't underline content */
        }

        .project-description {
            overflow-wrap: anywhere;
        }
        /* Remove swiper styles as they are no longer used by the blog */
        .swiper {
            width: 100%;
            height: auto;
            border-radius: 0.5rem;
            margin-top: 1rem;
            margin-bottom: 1rem;
        }
        .swiper-slide {
            display: flex;
            justify-content: center;
            align-items: center;
            background: #eee;
        }
        .dark .swiper-slide {
            background: #1e293b;
        }
        .swiper-slide img, .swiper-slide video {
            display: block;
            width: 100%;
            height: auto;
            max-height: 70vh;
            object-fit: contain;
        }
        .swiper-slide iframe {
            width: 100%;
            aspect-ratio: 16 / 9;
        }
        .swiper-button-next, .swiper-button-prev {
            color: var(--swiper-nav-color);
            transition: color 0.3s ease;
        }
        .swiper-pagination-bullet-active {
            background: var(--swiper-nav-color);
        }

        /* +++ START: UX ENHANCEMENTS +++ */
        #scroll-progress {
            position: fixed;
            top: 0;
            left: 0;
            height: 5px;
            width: 0%;
            background: linear-gradient(90deg, var(--text-link), var(--text-accent));
            z-index: 9999;
            transition: width 0.1s ease-out;
        }
        
        *:focus-visible {
            outline: 2px dashed var(--text-link);
            outline-offset: 4px;
            border-radius: 4px;
        }
        
        /* +++ START: SCROLL REVEAL +++ */
        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        .reveal-active {
            opacity: 1;
            transform: translateY(0);
        }
        /* +++ END: SCROLL REVEAL +++ */
        
        /* +++ START: COOL FEATURES +++ */
        .magnetic-btn {
            display: inline-block;
            transition: transform 0.1s linear, box-shadow 0.3s ease;
            transform-style: preserve-3d;
        }

        @keyframes glitch-skew {
            0% { transform: skew(0deg); }
            20% { transform: skew(-10deg); }
            40% { transform: skew(10deg); }
            60% { transform: skew(-5deg); }
            80% { transform: skew(5deg); }
            100% { transform: skew(0deg); }
        }
        
        #header-logo {
            transition: filter 0.2s;
        }
        #header-logo:hover {
            filter: drop-shadow(2px 0 0 rgba(255,0,0,0.5)) drop-shadow(-2px 0 0 rgba(0,0,255,0.5));
            animation: glitch-skew 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
        }

        /* +++ START: D3 GRAPH CSS +++ */
        .skill-galaxy {
            background:
                radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--text-link) 16%, transparent), transparent 30%),
                radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--text-accent) 14%, transparent), transparent 24%),
                linear-gradient(135deg, color-mix(in srgb, var(--card-bg) 80%, transparent), color-mix(in srgb, var(--bg-body-end) 82%, transparent));
            isolation: isolate;
        }

        #network-canvas {
            touch-action: pan-y;
        }

        .skill-galaxy::before {
            content: '';
            position: absolute;
            inset: 0;
            pointer-events: none;
            background-image:
                linear-gradient(color-mix(in srgb, var(--text-primary) 5%, transparent) 1px, transparent 1px),
                linear-gradient(90deg, color-mix(in srgb, var(--text-primary) 5%, transparent) 1px, transparent 1px);
            background-size: 42px 42px;
            mask-image: radial-gradient(circle at center, black, transparent 76%);
            opacity: 0.5;
        }

        .galaxy-hud {
            color: var(--text-primary);
            background: color-mix(in srgb, var(--card-bg) 82%, transparent);
            border: 1px solid var(--border-color);
            box-shadow: var(--card-shadow);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
        }

        .galaxy-star {
            fill: var(--text-primary);
        }

        .orbit-ring {
            fill: none;
            stroke: var(--text-link);
            stroke-width: 1;
            stroke-dasharray: 5 12;
            opacity: 0.24;
            animation: orbit-drift 18s linear infinite;
            transform-origin: center;
        }

        .orbit-ring:nth-child(even) {
            animation-direction: reverse;
        }

        @keyframes orbit-drift {
            to { transform: rotate(360deg); }
        }

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

        .node-circle {
            stroke: var(--border-color);
            stroke-width: 1.25px;
            transition: stroke-width 0.2s, stroke 0.2s, filter 0.2s, transform 0.2s;
        }

        .node-circle.depth-0 {
            stroke: color-mix(in srgb, var(--text-primary) 60%, transparent);
            stroke-width: 2px;
        }

        .node-circle.depth-1 {
            stroke: color-mix(in srgb, var(--text-primary) 35%, transparent);
            stroke-width: 1.5px;
        }

        .node-aura {
            filter: blur(1px);
        }

        .node-text {
            font-family: inherit;
            pointer-events: none;
            fill: var(--text-primary);
            font-weight: 700;
            letter-spacing: 0.01em;
            paint-order: stroke;
            stroke: color-mix(in srgb, var(--bg-body-start) 88%, transparent);
            stroke-width: 4px;
            stroke-linejoin: round;
            text-shadow: 0 2px 8px color-mix(in srgb, var(--bg-body-start) 80%, transparent);
        }

        .node-text.depth-0 {
            font-size: 0.9rem;
            font-weight: 800;
        }

        .node-text.depth-1 {
            font-size: 0.78rem;
        }

        .node-text.depth-2 {
            font-size: 0.66rem;
            opacity: 0.9;
        }

        .node-initials {
            fill: var(--bg-body-start);
            font-family: 'Playfair Display', serif;
            font-size: 0.56rem;
            font-weight: 800;
            letter-spacing: 0.04em;
        }

        .link {
            stroke: var(--text-link);
            stroke-opacity: 0.18;
            stroke-linecap: round;
            transition: stroke 0.2s ease, stroke-opacity 0.2s ease;
        }

        .link.depth-0 {
            stroke-opacity: 0.32;
        }
        /* +++ END: D3 GRAPH CSS +++ */

        /* +++ END: COOL FEATURES +++ */
        /* +++ END: UX ENHANCEMENTS +++ */

@keyframes boot-blink { 50% { opacity: 0; } }

/* +++ START: DEEP-Z PARALLAX +++ */
        .glass-pane {
    background: rgba(255, 255, 255, 0.03); /* Extremely subtle white wash */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    /* Soft glowing edges via inset shadow */
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
    transition: background 0.3s, border 0.3s;
}

/* Dark mode overrides for glass panes */
.dark .glass-pane {
    background: rgba(0, 0, 0, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 0 20px rgba(0, 255, 0, 0.03); /* Subtle hacker green tint */
}
/* +++ END: DEEP-Z PARALLAX +++ */

@media (hover: none), (pointer: coarse) {
    .themed-card:hover {
        transform: none;
        box-shadow: var(--card-shadow);
    }
    .themed-card:hover img,
    .social-icon:hover,
    #header-logo:hover {
        transform: none;
        filter: none;
        animation: none;
    }
}

@media (max-width: 767px) {
    html {
        scroll-padding-top: 5rem;
    }

    .sticky-header {
        top: 0.5rem;
    }

    .header-actions {
        right: 0.65rem;
        gap: 0.35rem;
        padding: 0.2rem;
        border: 1px solid color-mix(in srgb, var(--border-color) 80%, transparent);
        border-radius: 999px;
        background: color-mix(in srgb, var(--header-bg) 86%, transparent);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .terminal-shortcut {
        min-height: 2rem;
        padding: 0.42rem 0.62rem;
        border-radius: 999px;
        line-height: 1;
    }

    .terminal-shortcut::before {
        width: 0.36rem;
        height: 0.36rem;
    }

    #theme-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 2rem;
        min-height: 2rem;
        padding: 0.4rem;
        border-radius: 999px;
    }

    .nav-link::after {
        bottom: -2px;
    }

    #profile-container {
        height: 7.75rem;
        width: 7.75rem;
        margin-bottom: 1.1rem;
    }

    #profile-svg {
        height: 4.25rem;
        width: 4.25rem;
    }

    #about .hero-name {
        line-height: 1.1;
        word-break: break-word;
    }

    #about .text-lg {
        font-size: 1rem;
        line-height: 1.45;
    }

    .about-summary {
        text-align: left !important;
        padding: 0.85rem 0.95rem;
        font-size: 0.98rem;
        line-height: 1.55;
        border-radius: 0.85rem;
        box-shadow: var(--card-shadow);
    }

    #terminal .terminal-shell {
        padding-left: 0;
        padding-right: 0;
        padding-top: 0.75rem;
    }

    .terminal-window {
        height: min(76svh, 620px);
        min-height: 520px;
        border-radius: 1.35rem;
        border-left: 0;
        border-right: 0;
        box-shadow:
            0 24px 70px rgba(0, 0, 0, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .terminal-titlebar {
        padding: 0.85rem 1rem;
        min-height: 3.25rem;
        background:
            linear-gradient(135deg, color-mix(in srgb, var(--text-link) 12%, transparent), transparent),
            color-mix(in srgb, var(--card-bg) 84%, transparent);
    }

    .terminal-titlebar .space-x-2 > :not([hidden]) ~ :not([hidden]) {
        margin-left: 0.38rem;
    }

    .terminal-titlebar .rounded-full {
        width: 0.68rem;
        height: 0.68rem;
    }

    .terminal-mobile-chip {
        display: block;
        margin-left: auto;
        color: var(--text-link);
        padding: 0.34rem 0.55rem;
        border: 1px solid color-mix(in srgb, var(--text-link) 28%, transparent);
        border-radius: 999px;
        background: color-mix(in srgb, var(--bg-body-start) 28%, transparent);
    }

    #terminal-body {
        padding: 1rem;
        font-size: 0.88rem;
        line-height: 1.72;
        background:
            linear-gradient(color-mix(in srgb, var(--text-primary) 4%, transparent) 1px, transparent 1px),
            transparent;
        background-size: 100% 2rem;
    }

    #terminal-output {
        padding-bottom: 0.75rem;
    }

    #terminal-input-line {
        position: sticky;
        bottom: 0;
        align-items: center;
        gap: 0.35rem;
        margin-top: 0.75rem;
        padding: 0.72rem 0.78rem;
        border: 1px solid color-mix(in srgb, var(--text-link) 24%, transparent);
        border-radius: 1rem;
        background: color-mix(in srgb, var(--bg-body-start) 88%, transparent);
        box-shadow: 0 -12px 32px color-mix(in srgb, var(--bg-body-end) 65%, transparent);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    #terminal-prompt {
        margin-right: 0;
        font-size: 0.82rem;
    }

    #terminal-input-line > div {
        min-width: 0;
    }

    #terminal-input {
        min-height: 1.65rem;
        line-height: 1.4;
    }

    .terminal-help-command,
    .terminal-help-description {
        overflow-wrap: anywhere;
    }

    #works-grid .border-t > div {
        flex-wrap: wrap;
    }

    #works-grid .border-t a {
        min-width: 100%;
    }

    #d3-tooltip {
        max-width: min(220px, calc(100vw - 2rem));
    }

    .skill-galaxy {
        min-height: 460px;
    }

    #network-canvas {
        touch-action: none;
    }

    .skill-galaxy::before {
        opacity: 0.25;
        background-size: 58px 58px;
    }

    .galaxy-hud {
        font-size: 0.72rem;
    }

    .galaxy-star {
        opacity: 0.45;
    }

    .orbit-ring {
        opacity: 0.18;
        animation: none;
        stroke-dasharray: 4 16;
    }

    .node-aura {
        display: none;
    }

    .link {
        stroke-opacity: 0.13;
    }

    .link.depth-0 {
        stroke-opacity: 0.2;
    }

    .node-circle {
        filter: none;
        transition: stroke-width 0.15s ease, stroke 0.15s ease;
    }

    .node-text.depth-0 {
        font-size: 0.78rem;
    }

    .node-text.depth-1 {
        font-size: 0.66rem;
    }

    .node-text.depth-2 {
        font-size: 0.54rem;
        opacity: 0.78;
    }

    .node-initials {
        font-size: 0.48rem;
    }

    #admin-constellation-controls button {
        width: 100%;
    }
}

@media (max-width: 639px) {
    body {
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    }

    #contact-form input,
    #contact-form textarea,
    #contact-form button,
    #terminal-input {
        font-size: 16px;
    }

    #node-editor-modal > div,
    #image-modal > div {
        max-width: calc(100vw - 2rem);
    }
}
