
    /* =============================================
       TOKENS
    ============================================= */
    :root {
        --bg: #f4f4f4;
        --card-bg: #ffffff;
        --text: #1A1A1A;
        --blue: #2B4EFF;
        --blue-light: #4B6FFF;
        --muted: #888;
        --border: rgba(0, 0, 0, 0.08);
        --shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
        --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.15);
        --radius: 16px;
        --font-sans: 'Manrope', sans-serif;
        --font-hand: 'Caveat', cursive;
    }

    /* =============================================
       RESET & BASE
    ============================================= */
    *,
    *::before,
    *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    html,
    body {
        width: 100vw;
        height: 100vh;
        font-family: var(--font-sans);
        background: var(--bg);
        color: var(--text);
        overflow-x: auto;
        overflow-y: hidden;
        user-select: none;
        -webkit-font-smoothing: antialiased;
    }
#desktop {
    position: relative;
    min-width: 1440px;
    width: 2000px;
    height: 900px;
    margin: 0 auto;
    background: none;
    overflow-x: auto;
    display: block;
}

    /* =============================================
       TOP BAR (fixed header)
    ============================================= */
    #topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        padding: 20px 28px 0;
        pointer-events: none;
    }

    .topbar-left {
        pointer-events: all;
    }

    .site-name {
        font-family: var(--font-sans);
        font-size: 18px;
        font-weight: 400;
        line-height: 1;
        cursor: pointer;
    }

    .site-name .hand {
        font-family: var(--font-hand);
        font-size: 22px;
        color: var(--blue);
        font-weight: 600;
    }

    .tagline {
        font-size: 13px;
        color: var(--text);
        margin-top: 6px;
        max-width: 320px;
        line-height: 1.45;
    }

    .tagline u {
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .topbar-right {
        pointer-events: all;
    }

    .contact-btn {
        font-family: var(--font-sans);
        font-size: 16px;
        font-weight: 400;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--text);
        padding: 4px;
        transition: opacity 0.2s;
    }

    .contact-btn:hover {
        opacity: 0.5;
    }

    /* =============================================
       BOTTOM BAR
    ============================================= */
    #bottombar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 10;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        padding: 0 28px 20px;
        pointer-events: none;
    }

    .bio-line {
        font-size: 12.5px;
        color: var(--text);
        line-height: 1.5;
        pointer-events: all;
    }

    .bio-line a {
        color: var(--muted);
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .linkedin-link {
        font-size: 12.5px;
        color: var(--text);
        text-decoration: underline;
        text-underline-offset: 3px;
        pointer-events: all;
    }

    /* =============================================
       ICON CARDS (desktop icons)
    ============================================= */
    .icon-card {
        position: absolute;
        background: var(--card-bg);
        border-radius: var(--radius);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        cursor: pointer;
        transition: transform 0.15s, box-shadow 0.15s;
        box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.03);
        padding: 20px 16px 18px;
    }

    .icon-card:hover {
        transform: scale(1.03);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    }

    .icon-card svg {
        width: 44px;
        height: 44px;
        stroke: var(--blue);
        fill: none;
        stroke-width: 1.5;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .icon-card .label {
        font-size: 13px;
        font-weight: 400;
        color: var(--text);
        text-align: center;
    }

    /* sketch annotations around icons */
    .sketch-label {
        position: absolute;
        font-family: var(--font-hand);
        font-size: 15px;
        color: var(--blue);
        pointer-events: none;
        white-space: nowrap;
    }

    /* =============================================
       WINDOWS (shared styles)
    ============================================= */
    .window {
        position: absolute;
        background: var(--card-bg);
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
        display: none;
        /* hidden until opened */
        flex-direction: column;
        overflow: hidden;
        z-index: 100;
        min-width: 300px;
    }

    .window.open {
        display: flex;
    }

    .window-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        cursor: grab;
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;
    }

    .window-bar:active {
        cursor: grabbing;
    }

    .window-title {
        font-size: 13px;
        font-weight: 500;
        color: var(--muted);
    }

    .window-close {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: #FF5F57;
        border: none;
        cursor: pointer;
        flex-shrink: 0;
        transition: opacity 0.2s;
    }

    .window-close:hover {
        opacity: 0.7;
    }

    /* =============================================
       WINDOW: PROJECTS (horizontal scroll)
    ============================================= */
    #win-projects {
        width: min(1200px, 90vw);
        height: 420px;
        top: 120px;
        left: 50%;
        transform: translateX(-50%);
    }

    .projects-scroll {
        display: flex;
        gap: 28px;
        padding: 28px 32px;
        overflow-x: auto;
        overflow-y: hidden;
        flex: 1;
        scroll-snap-type: x mandatory;
        -ms-overflow-style: none;
        scrollbar-width: thin;
        scrollbar-color: var(--border) transparent;
    }

    .project-item {
        flex-shrink: 0;
        width: 340px;
        scroll-snap-align: start;
        cursor: pointer;
    }

    .project-thumb {
        width: 100%;
        height: 220px;
        border-radius: 10px;
        overflow: hidden;
        background: #DDD;
        position: relative;
    }

    .project-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* placeholder gradient for missing images */
    .project-thumb.placeholder {
        background: linear-gradient(135deg, #e0e0e0 0%, #c8c8c8 100%);
    }

    .project-thumb.blue-bg {
        background: #2240E0;
    }

    .project-thumb.dark-bg {
        background: #111;
    }

    .project-meta {
        margin-top: 10px;
    }

    .project-name {
        font-size: 17px;
        font-weight: 400;
        color: var(--text);
    }

    .project-cat {
        font-size: 12px;
        color: var(--blue-light);
        margin-top: 2px;
    }

    /* =============================================
       WINDOW: ABOUT
    ============================================= */
    #win-about {
        width: min(860px, 90vw);
        height: min(520px, 80vh);
        top: 130px;
        left: 160px;
    }

    .mememe {
        position: absolute;
        width: 112px;
        height: 100px;
        transform: scale(1.6);
    }

    .circle {
        position: absolute;
        width: 112px;
        height: 100px;
        transform: scale(2);
    }

    .about-inner {
        display: grid;
        grid-template-columns: 1fr 1.1fr;
        flex: 1;
        overflow: hidden;
    }

    .about-photo {
        height: 100%;
        overflow: hidden;
    }

    .about-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .about-photo-placeholder {
        width: 100%;
        height: 100%;
        background: linear-gradient(160deg, #d4d0ca 0%, #bfbbb3 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--muted);
        font-size: 13px;
    }

    .about-text {
        padding: 28px 28px 24px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .about-what-label {
        font-family: var(--font-hand);
        font-size: 16px;
        color: var(--blue);
    }

    .about-text p {
        font-size: 13.5px;
        line-height: 1.65;
        color: var(--text);
    }

    /* =============================================
       WINDOW: CV
    ============================================= */
    #win-cv {
        width: min(720px, 90vw);
        height: min(600px, 85vh);
        top: 100px;
        left: 50%;
        transform: translateX(-50%);
    }

    /* What I do and Know image top right */
    .what-i-do-img-cv {
        position: absolute;
        left: 90px;
        top: -30px;
        width: 50px;
        height: 50px;
        z-index: 10;
        pointer-events: none;
    }

    .cv-inner {
        flex: 1;
        overflow-y: auto;
        padding: 28px 32px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .cv-header {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 20px;
        align-items: start;
    }

    .cv-photo {
        width: 72px;
        height: 72px;
        border-radius: 8px;
        background: #ccc;
        overflow: hidden;
        flex-shrink: 0;
    }

    .cv-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .cv-header-info h2 {
        font-size: 17px;
        font-weight: 500;
    }

    .cv-header-info h2 .hand {
        font-family: var(--font-hand);
        color: var(--blue);
        font-size: 20px;
        font-weight: 600;
    }

    .cv-header-info p {
        font-size: 12px;
        color: var(--muted);
        margin-top: 2px;
        line-height: 1.5;
    }

    .cv-section h3 {
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--muted);
        margin-bottom: 10px;
        padding-bottom: 6px;
        border-bottom: 1px solid var(--border);
    }

    .cv-entry {
        margin-bottom: 12px;
    }

    .cv-entry-title {
        font-size: 13px;
        font-weight: 500;
    }

    .cv-entry-sub {
        font-size: 12px;
        color: var(--muted);
        margin-top: 1px;
    }

    .cv-skills {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .cv-skill {
        font-size: 12px;
        background: rgba(43, 78, 255, 0.08);
        color: var(--blue);
        padding: 3px 10px;
        border-radius: 20px;
    }

    .cv-download {
        display: inline-block;
        margin-top: 8px;
        padding: 10px 28px;
        border: 1px solid var(--text);
        border-radius: 40px;
        font-size: 13px;
        cursor: pointer;
        background: none;
        font-family: var(--font-sans);
        color: var(--text);
        text-decoration: none;
        transition: background 0.2s, color 0.2s;
        align-self: flex-start;
    }

    .cv-download:hover {
        background: var(--text);
        color: var(--card-bg);
    }

    /* =============================================
       WINDOW: NOTES
    ============================================= */
    #win-notes {
        width: min(740px, 90vw);
        height: min(480px, 80vh);
        top: 80px;
        left: 55%;
    }

    .notes-inner {
        display: grid;
        grid-template-columns: 260px 1fr;
        flex: 1;
        overflow: hidden;
    }

    .notes-list {
        border-right: 1px solid var(--border);
        overflow-y: auto;
        padding: 12px 0;
    }

    .note-item {
        padding: 12px 16px;
        cursor: pointer;
        border-radius: 8px;
        margin: 0 8px;
        transition: background 0.15s;
    }

    .note-item:hover {
        background: rgba(0, 0, 0, 0.04);
    }

    .note-item.active {
        background: rgba(43, 78, 255, 0.08);
    }

    .note-item-title {
        font-size: 13px;
        font-weight: 500;
        color: var(--text);
    }

    .note-item.active .note-item-title {
        color: var(--blue);
    }

    .note-item-preview {
        font-size: 11.5px;
        color: var(--muted);
        margin-top: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .note-item-sub {
        font-size: 11px;
        color: var(--muted);
        margin-top: 2px;
    }

    .note-content {
        padding: 24px 24px;
        overflow-y: auto;
        flex: 1;
    }

    .note-content h2 {
        font-size: 15px;
        font-weight: 500;
        margin-bottom: 14px;
    }

    .note-content p {
        font-size: 13px;
        line-height: 1.75;
        color: var(--text);
    }

    /* =============================================
       WINDOW: ARCHIVES
    ============================================= */
    #win-archives {
        width: min(1100px, 92vw);
        height: min(640px, 85vh);
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
    }

    .archives-inner {
        flex: 1;
        overflow: auto;
        padding: 28px 32px;
        position: relative;
    }

    .archives-description {
        font-size: 28px;
        font-weight: 400;
        line-height: 1.25;
        text-align: center;
        max-width: 220px;
        color: var(--text);
        position: absolute;
        top: 40px;
        left: 50%;
        transform: translateX(-50%);
        pointer-events: none;
        z-index: 2;
    }

    .archives-grid {
        position: relative;
        min-height: 600px;
        width: 100%;
    }

    .archive-item {
        position: absolute;
        cursor: grab;
        border-radius: 6px;
        overflow: hidden;
        transition: box-shadow 0.2s;
    }

    .archive-item:active {
        cursor: grabbing;
    }

    .archive-item:hover {
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
        z-index: 10 !important;
    }

    .archive-item img,
    .archive-item video {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        pointer-events: none;
    }

    /* placeholder colors for archive items */
    .arc-red {
        background: #CC1F1F;
    }

    .arc-olive {
        background: #6B7A1A;
    }

    .arc-black {
        background: #111;
    }

    .arc-orange {
        background: #E8581A;
    }

    .arc-purple {
        background: #4B2CA0;
    }

    .arc-dark {
        background: #1A1A1A;
    }

    .arc-green {
        background: #1A4A2A;
    }

    .arc-yellow {
        background: #E8C81A;
    }

    .arc-navy {
        background: #0E1B6E;
    }

    /* =============================================
       PROJECTS PAGE (full overlay, no window chrome)
    ============================================= */
    #page-projects {
        position: fixed;
        inset: 0;
        z-index: 200;
        background: var(--bg);
        display: none;
        flex-direction: column;
    }

    #page-projects.open {
        display: flex;
    }

    .page-projects-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        padding: 20px 28px 0;
        flex-shrink: 0;
    }

    .page-projects-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        overflow: hidden;
    }

    .projects-horizontal {
        display: flex;
        gap: 32px;
        padding: 0 60px;
        overflow-x: auto;
        width: 100%;
        scroll-snap-type: x mandatory;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .projects-horizontal::-webkit-scrollbar {
        display: none;
    }

    .proj-card {
        flex-shrink: 0;
        width: 380px;
        scroll-snap-align: start;
        cursor: pointer;
    }

    .proj-card-thumb {
        width: 100%;
        height: 260px;
        border-radius: 12px;
        overflow: hidden;
        position: relative;
    }

    .proj-card-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s;
    }

    .proj-card:hover .proj-card-thumb img {
        transform: scale(1.04);
    }

    .proj-card-info {
        margin-top: 12px;
    }

    .proj-card-name {
        font-size: 18px;
        font-weight: 400;
    }

    .proj-card-cat {
        font-size: 12px;
        color: var(--blue-light);
        margin-top: 3px;
    }

    /* left column in project detail */
    #page-project-detail {
        position: fixed;
        inset: 0;
        z-index: 300;
        background: var(--bg);
        display: none;
        flex-direction: column;
    }

    #page-project-detail.open {
        display: flex;
    }

    .detail-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        padding: 20px 28px 0;
        flex-shrink: 0;
    }

    .detail-body {
        display: grid;
        grid-template-columns: 220px 1fr 1fr;
        flex: 1;
        overflow: hidden;
        padding: 40px 28px 28px;
        gap: 40px;
    }

    .detail-sidebar {
        overflow-y: auto;
    }

    .detail-sidebar ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .detail-sidebar li {
        cursor: pointer;
    }

    .detail-sidebar .s-name {
        font-size: 14px;
        font-weight: 400;
        color: var(--text);
        transition: color 0.15s;
    }

    .detail-sidebar li:hover .s-name,
    .detail-sidebar li.active .s-name {
        color: var(--blue);
    }

    .detail-sidebar .s-cat {
        font-size: 11.5px;
        color: var(--muted);
    }

    .detail-sidebar li.inactive .s-name {
        color: var(--muted);
        font-style: italic;
    }

    .detail-info {
        display: flex;
        flex-direction: column;
        gap: 20px;
        overflow-y: auto;
        padding-right: 20px;
    }

    .detail-role-label {
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--muted);
    }

    .detail-role-value {
        font-size: 16px;
        font-weight: 400;
        margin-top: 4px;
    }

    .detail-desc {
        font-size: 13.5px;
        line-height: 1.7;
        color: var(--text);
    }

    .detail-cta {
        display: inline-block;
        padding: 10px 28px;
        border: 1px solid var(--text);
        border-radius: 40px;
        font-size: 13px;
        cursor: pointer;
        background: none;
        font-family: var(--font-sans);
        color: var(--text);
        text-decoration: none;
        transition: background 0.2s, color 0.2s;
        margin-top: auto;
        align-self: flex-start;
    }

    .detail-cta:hover {
        background: var(--text);
        color: var(--card-bg);
    }

    .detail-image {
        overflow: hidden;
        border-radius: 10px;
    }

    .detail-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* =============================================
       SKETCH DECORATIONS (handwritten circle, labels)
    ============================================= */
    #sketch-layer {
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: 5;
    }

    /* =============================================
       SCROLLBAR GLOBAL
    ============================================= */
    ::-webkit-scrollbar {
        width: 5px;
        height: 5px;
    }

    ::-webkit-scrollbar-track {
        background: transparent;
    }

    ::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.15);
        border-radius: 10px;
    }

    /* =============================================
       CONTACT MODAL
    ============================================= */
    #win-contact {
        width: 320px;
        top: 60px;
        right: 40px;
    }

    .contact-inner {
        padding: 20px 24px 24px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .contact-inner a {
        font-size: 14px;
        color: var(--text);
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .contact-inner p {
        font-size: 13px;
        color: var(--muted);
    }