:root {
    --font-sans: "Archivo", system-ui, sans-serif;
    --font-mono: "Martian Mono", ui-monospace, monospace;
    --bg: oklch(0.2 0.014 60);
    --surface-0: oklch(0.145 0.01 55);
    --surface: oklch(0.185 0.012 58);
    --surface-2: oklch(0.245 0.014 60);
    --surface-3: oklch(0.31 0.016 62);
    --line: oklch(0.95 0.02 85 / 0.14);
    --ink: oklch(0.95 0.018 88);
    --ink-soft: oklch(0.77 0.02 80);
    --accent: oklch(0.8 0.15 72);
    --accent-deep: oklch(0.48 0.1 55);
    --accent-ink: oklch(0.17 0.02 58);
    --verdigris: oklch(0.77 0.09 185);
    --ok: oklch(0.78 0.12 155);
    --warn: oklch(0.74 0.14 42);
    --danger: oklch(0.66 0.19 25);
    --shade: oklch(0 0 0);
    --radius: 6px;
    --shadow: 0 18px 40px oklch(0 0 0 / 0.45), 0 2px 6px oklch(0 0 0 / 0.3);
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-spring: cubic-bezier(0.34, 1.3, 0.64, 1);
}

@supports (animation-timing-function: linear(0, 1)) {
    :root {
        --ease-spring: linear(0, 0.34 7%, 0.72 15%, 0.96 25%, 1.05 35%, 1.06 42%, 1.02 55%, 0.995 70%, 1);
    }
}

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

button,
input,
textarea,
select {
    font-family: inherit;
}

body {
    font-family: var(--font-sans);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    background: var(--surface);
}

.desktop {
    width: 100%;
    height: 100%;
    background-color: var(--bg);
    background-image:
        radial-gradient(68% 58% at 84% 104%, oklch(0.4 0.085 62 / 0.55), transparent 72%),
        radial-gradient(46% 42% at 8% -4%, oklch(0.3 0.04 62 / 0.6), transparent 70%);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.desktop.has-wallpaper {
    background-image: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.recruiter-shortcut {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 288px;
    padding: 12px 15px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: background 180ms ease, border-color 180ms ease;
}

.recruiter-shortcut:hover,
.recruiter-shortcut:focus-visible {
    background: var(--surface-2);
    border-color: var(--line);
}

.recruiter-shortcut-copy {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.recruiter-shortcut strong {
    color: var(--ink);
    font-size: 0.92rem;
    letter-spacing: -0.01em;
}

.recruiter-shortcut small {
    color: var(--ink-soft);
    font-size: 0.71rem;
    letter-spacing: 0.02em;
}

.recruiter-shortcut-icon {
    position: relative;
    flex: 0 0 auto;
    width: 30px;
    height: 38px;
    background: var(--ink);
    border-radius: 2px;
    clip-path: polygon(0 0, 66% 0, 100% 21%, 100% 100%, 0 100%);
}

.recruiter-shortcut-icon::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 34%;
    height: 21%;
    background: var(--accent);
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.recruiter-shortcut-icon::after {
    content: "↗";
    position: absolute;
    left: -6px;
    bottom: -4px;
    display: grid;
    width: 16px;
    height: 16px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    place-items: center;
}

.recruiter-shortcut-go {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 1rem;
    transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.recruiter-shortcut:hover .recruiter-shortcut-go,
.recruiter-shortcut:focus-visible .recruiter-shortcut-go {
    transform: translateX(4px);
}

@media (max-width: 620px) {
    .recruiter-shortcut {
        top: 10px;
        right: 10px;
        min-width: 0;
        padding: 10px 12px;
    }

    .recruiter-shortcut-copy,
    .recruiter-shortcut-go {
        display: none;
    }

    .recruiter-shortcut-icon {
        width: 26px;
        height: 33px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .recruiter-shortcut,
    .recruiter-shortcut-go {
        transition-duration: 0.01ms;
    }
}

.desktop-icons {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    grid-gap: 20px;
    width: 100%;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    cursor: pointer;
    padding: 5px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
    position: absolute;
    user-select: none;
    touch-action: none;
    z-index: 1;
    pointer-events: auto;
}

.icon:hover {
    background: color-mix(in srgb, var(--ink) 8%, transparent);
    border-color: var(--line);
}

.icon.selected {
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    border-color: var(--accent);
}

.icon.selected .icon-text {
    background-color: color-mix(in srgb, var(--shade) 30%, transparent);
    padding: 2px 4px;
    border-radius: 3px;
}

.icon-img {
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--accent);
}

.icon-text {
    color: var(--ink);
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    font-stretch: 88%;
    text-shadow: 0 1px 2px color-mix(in srgb, var(--shade) 70%, transparent);
    word-wrap: break-word;
    max-width: 100%;
}

.windows-container {
    flex: 1;
    position: relative;
}
.window {
    position: absolute;
    top: 50px;
    left: 100px;
    width: 700px;
    height: 500px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    overflow: hidden;
    display: none;
    z-index: 10;
}

.window.fullscreen {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100% - 40px) !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    z-index: 100 !important;
}

.window.active {
    z-index: 100;
}

.window-header {
    background: var(--surface-0);
    border-bottom: 1px solid var(--line);
    height: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    cursor: move;
    user-select: none;
}

.window-title {
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.window-icon {
    margin-right: 8px;
    flex-shrink: 0;
}

.window-controls {
    display: flex;
    flex-shrink: 0;
}

.window-controls button {
    background: transparent;
    border: none;
    color: var(--ink);
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.window-controls button:hover {
    background-color: color-mix(in srgb, var(--ink) 20%, transparent);
}

.icon:focus-visible,
.window-controls button:focus-visible,
.taskbar-item:focus-visible,
.wallpaper-close:focus-visible,
.btn:focus-visible,
.social-link:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 2px;
}

.close-btn:hover {
    background-color: var(--danger) !important;
}

.window-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--surface-0);
    color: var(--ink);
    border-top: 1px solid var(--line);
}

.taskbar {
    height: 40px;
    background: var(--surface-0);
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    padding: 0 10px;
    z-index: 10;
}

.start-button {
    background: var(--accent);
    color: var(--accent-ink);
    height: 100%;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background-color 0.18s ease;
    border: 0;
    font: inherit;
    font-weight: 600;
}

.start-button:hover {
    background: color-mix(in srgb, var(--accent) 82%, var(--ink));
}

.start-button:active {
    background: color-mix(in srgb, var(--accent) 70%, var(--ink));
}

.start-button[aria-expanded="true"] {
    background: color-mix(in srgb, var(--accent) 70%, var(--ink));
}

.start-button:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: -4px;
}

.start-menu {
    position: absolute;
    left: 10px;
    bottom: 48px;
    z-index: 9000;
    width: min(620px, calc(100vw - 20px));
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 20px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transform-origin: left bottom;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}

.start-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.start-menu-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.start-menu-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.start-menu-identity {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
}

.start-menu-identity strong {
    font-size: 15px;
    letter-spacing: 0.01em;
}

.start-menu-identity span {
    overflow: hidden;
    color: var(--ink-soft);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.start-menu-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    color: var(--ok);
    background: color-mix(in srgb, var(--ok) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.start-menu-status > span {
    width: 7px;
    height: 7px;
    background: var(--ok);
    border-radius: 50%;
}

.start-menu-search {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 0 14px;
    color: var(--ink-soft);
    background: color-mix(in srgb, var(--ink) 7%, transparent);
    border: 1px solid var(--line);
    border-bottom-color: var(--line);
    border-radius: 9px;
    transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.start-menu-search:focus-within {
    background: color-mix(in srgb, var(--ink) 10%, transparent);
    border-color: var(--accent);
}

.start-menu-search input {
    width: 100%;
    color: var(--ink);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 14px;
}

.start-menu-search input::placeholder {
    color: var(--ink-soft);
}

.start-menu-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 0 4px 10px;
}

.start-menu-section-heading h2 {
    color: var(--ink);
    font-size: 14px;
    letter-spacing: 0.02em;
}

.start-menu-section-heading span {
    color: var(--ink-soft);
    font-size: 12px;
}

.start-menu-apps {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
}

.start-menu-app {
    min-width: 0;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 9px;
    padding: 9px 5px;
    color: var(--ink);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.start-menu-app:hover,
.start-menu-app:focus-visible {
    background: color-mix(in srgb, var(--ink) 8%, transparent);
    border-color: color-mix(in srgb, var(--ink) 8%, transparent);
    outline: 0;
}

.start-menu-app[hidden] {
    display: none;
}

.start-menu-app-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--accent-ink);
    background: var(--accent);
    border-radius: 11px;
    font-size: 17px;
}

.app-icon-about { background: var(--accent); color: var(--accent-ink); }
.app-icon-projects { background: var(--ink); color: var(--accent-ink); }
.app-icon-resume { background: var(--surface-3); color: var(--accent); }
.app-icon-current { background: var(--warn); color: var(--accent-ink); }
.app-icon-certs { background: var(--ok); color: var(--accent-ink); }
.app-icon-contact { background: var(--accent-deep); color: var(--ink); }

.start-menu-empty {
    margin: 8px 4px 2px;
    padding: 16px;
    color: var(--ink-soft);
    text-align: center;
    background: color-mix(in srgb, var(--ink) 4%, transparent);
    border-radius: 9px;
    font-size: 13px;
}

.start-menu-recommended-heading {
    margin-top: 17px;
}

.start-menu-recommended {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.start-menu-recommendation {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px;
    color: var(--ink);
    text-align: left;
    background: color-mix(in srgb, var(--ink) 5%, transparent);
    border: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
    border-radius: 10px;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease;
}

.start-menu-recommendation:hover,
.start-menu-recommendation:focus-visible {
    background: color-mix(in srgb, var(--ink) 6%, transparent);
    border-color: var(--line);
    outline: 0;
}

.start-menu-recommendation > span:nth-child(2) {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.start-menu-recommendation strong,
.start-menu-recommendation small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.start-menu-recommendation strong {
    font-size: 12px;
}

.start-menu-recommendation small {
    color: var(--ink-soft);
    font-size: 12px;
}

.start-menu-recommendation > i {
    color: var(--ink-soft);
    font-size: 12px;
}

.start-menu-recommendation-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--accent);
    background: color-mix(in srgb, var(--ink) 6%, transparent);
    border-radius: 9px;
}

.start-menu-footer {
    display: flex;
    gap: 8px;
    margin: 18px -20px -20px;
    padding: 12px 20px;
    background: color-mix(in srgb, var(--shade) 45%, transparent);
    border-top: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
    border-radius: 0 0 10px 10px;
}

.start-menu-footer a {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 1;
    padding: 8px;
    color: var(--ink);
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    transition: color 150ms ease, background 150ms ease;
}

.start-menu-footer a:hover,
.start-menu-footer a:focus-visible {
    color: var(--ink);
    background: color-mix(in srgb, var(--ink) 8%, transparent);
    outline: 0;
}

.taskbar-items {
    flex: 1;
    display: flex;
    margin-left: 10px;
    height: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.taskbar-items::-webkit-scrollbar {
    display: none;
}

.taskbar-item {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: var(--ink);
    background: transparent;
    border: 0;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    font: inherit;
    transition: background-color 0.2s;
    white-space: nowrap;
    min-width: 40px;
}

.taskbar-item:hover {
    background-color: color-mix(in srgb, var(--ink) 10%, transparent);
}

.taskbar-item.active {
    border-bottom-color: var(--line);
    background-color: color-mix(in srgb, var(--ink) 10%, transparent);
}

.taskbar-right {
    display: flex;
    align-items: center;
    height: 100%;
}

.clock {
    color: var(--ink);
    padding: 0 10px;
    font-size: 12px;
}

.projects-showcase-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding: 4px 2px 20px;
    border-bottom: 1px solid var(--line);
}

.projects-showcase-header > div {
    max-width: 720px;
}

.projects-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
}

.projects-showcase-header h2 {
    margin-bottom: 7px;
    color: var(--ink);
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    line-height: 1.12;
}

.projects-showcase-header p {
    color: var(--ink-soft);
    line-height: 1.55;
}

.projects-github-btn {
    flex: 0 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.project-item {
    min-width: 0;
    height: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.project-item:hover {
    border-color: var(--line);
}

.project-item h3 {
    margin-bottom: 10px;
    color: var(--ink);
    font-size: 19px;
    font-weight: bold;
    line-height: 1.25;
}

.project-card {
    display: flex;
    flex-direction: column;
}

.project-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.project-card-body > p {
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.58;
}

.project-card-kicker {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
}

.project-visual {
    position: relative;
    height: 190px;
    flex: 0 0 auto;
    overflow: hidden;
    background: var(--surface-0);
    border-bottom: 1px solid var(--line);
}

.project-visual-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
    filter: saturate(0.88) contrast(1.03);
    transition: transform 180ms ease, filter 180ms ease;
}

.project-card:hover .project-visual-image img {
    filter: saturate(1.02) contrast(1.06);
}

.project-visual-label {
    position: absolute;
    right: 12px;
    bottom: 11px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    color: var(--ink);
    background: color-mix(in srgb, var(--surface-0) 78%, transparent);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.project-visual-concept {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px;
}

.project-visual-concept::before {
    content: '';
    position: absolute;
    width: 210px;
    height: 210px;
    right: -58px;
    top: -82px;
    border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
    border-radius: 50%;
}

.project-visual-concept > i {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--accent-ink);
    background: var(--accent);
    border-radius: 17px;
    font-size: 24px;
}

.project-visual-concept > div {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.project-visual-concept strong {
    color: var(--ink);
    font-size: 20px;
}

.project-visual-concept div span {
    color: var(--ink-soft);
    font-size: 12px;
}

.project-visual-client {
    background: var(--surface-0);
}

.project-visual-meridian {
    background: var(--surface);
}

.project-visual-nfl {
    background: var(--surface);
}

.project-proof {
    display: grid;
    gap: 6px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.project-proof li {
    position: relative;
    padding-left: 16px;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.4;
}

.project-proof li::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    left: 0;
    top: 0.48em;
    background: var(--accent);
    border-radius: 50%;
}

.project-links {
    margin-top: auto;
    padding-top: 17px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-card .btn {
    padding: 8px 13px;
    font-size: 12px;
}

.project-card .btn-secondary {
    color: var(--ink);
    background: color-mix(in srgb, var(--ink) 6%, transparent);
    border-color: var(--line);
    box-shadow: none;
}

.project-card .btn-secondary:hover {
    background: color-mix(in srgb, var(--ink) 14%, transparent);
}

.project-card .technologies {
    gap: 6px;
    margin-top: 14px;
}

.project-card .tech-tag {
    padding: 4px 8px;
    font-size: 12px;
}

.btn {
    padding: 10px 20px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: bold;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.btn:hover {
    background: color-mix(in srgb, var(--accent) 82%, var(--ink));
    border-color: var(--line);
}

@media (max-width: 768px) {
    .projects-showcase-header {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .projects-github-btn {
        width: auto;
    }

    .window-content {
        padding: 15px;
    }

    .project-links {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .start-menu {
        right: 8px;
        bottom: 48px;
        left: 8px;
        width: auto;
        max-height: calc(100vh - 60px);
        padding: 15px;
        border-radius: 14px;
    }

    .start-menu-status {
        padding: 6px 8px;
    }

    .start-menu-apps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .start-menu-app {
        min-height: 76px;
    }

    .start-menu-recommended {
        grid-template-columns: 1fr;
    }

    .start-menu-footer {
        margin: 15px -15px -15px;
        padding: 10px 12px;
        border-radius: 0 0 10px 10px;
    }

    .start-menu-footer a span {
        display: none;
    }

    .desktop-icons {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        grid-gap: 5px;
    }

    .icon {
        width: 60px;
    }

    .icon-img {
        font-size: 24px;
    }

    .icon-text {
        font-size: 12px;
    }

    .window-title {
        font-size: 12px;
    }

    .window-content {
        padding: 10px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .icon:hover {
        background-color: transparent;
    }

    .icon.active {
        background-color: color-mix(in srgb, var(--ink) 20%, transparent);
    }
}

.contact-intro {
    max-width: 720px;
    margin-bottom: 24px;
}

.contact-intro h2 {
    margin: 13px 0 7px;
    color: var(--ink);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.contact-intro p {
    color: var(--ink-soft);
    line-height: 1.55;
}

.contact-availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    color: var(--ok);
    background: color-mix(in srgb, var(--ok) 9%, transparent);
    border: 1px solid color-mix(in srgb, var(--ok) 24%, transparent);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.contact-availability > span {
    width: 7px;
    height: 7px;
    background: var(--ok);
    border-radius: 50%;
}

.contact-form {
    max-width: 720px;
    margin-bottom: 30px;
    padding: 20px;
    background: color-mix(in srgb, var(--ink) 4%, transparent);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 11px 12px;
    color: var(--ink);
    background: color-mix(in srgb, var(--shade) 72%, transparent);
    border: 1px solid var(--line);
    border-radius: 7px;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--line);
}

.form-group textarea {
    resize: vertical;
}

.contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.contact-form-status {
    min-height: 1.35em;
    margin: 12px 0 0;
    color: var(--ok);
    font-size: 12px;
    line-height: 1.45;
}

.contact-form-status.is-pending {
    color: var(--ink-soft);
}

.contact-form-status.is-success {
    color: var(--ok);
}

.contact-form-status.is-error {
    color: var(--danger);
}

.contact-form button[type="submit"][disabled] {
    opacity: 0.65;
    cursor: not-allowed;
}

.social-links {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.social-link {
    text-decoration: none;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.social-link:hover {
    color: var(--ink);
}

.resume-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.resume-actions .btn {
    padding: 8px 16px;
    border-radius: 4px;
    background-color: var(--accent-deep);
    color: var(--ink);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.18s;
}

.resume-actions .btn:hover {
    background-color: color-mix(in srgb, var(--accent-deep) 82%, black);
}

.resume-actions .btn i {
    margin-right: 8px;
}

.rv { max-width: 920px; margin: 0 auto; padding: 28px clamp(18px, 4vw, 40px) 48px; line-height: 1.6; }
.rv-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.rv-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.rv-tagline { margin-top: 6px; color: var(--ink-soft); font-size: 0.95rem; }
.rv-head .download-btn { padding: 10px 16px; border-radius: 6px; color: var(--accent-ink); background: var(--accent); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.rv-head .download-btn:hover { background: color-mix(in srgb, var(--accent) 85%, white); }
.rv-section { padding-top: 26px; }
.rv-section > h3 { margin-bottom: 14px; color: var(--accent); font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.rv-entry { padding: 16px 0; border-top: 1px solid var(--line); }
.rv-section > h3 + .rv-entry { border-top: 0; padding-top: 0; }
.rv-entry-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.rv-entry-head h4 { font-size: 1.05rem; font-weight: 700; }
.rv-entry-head h4 a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.rv-date { color: var(--ink-soft); font-family: var(--font-mono); font-size: 0.75rem; white-space: nowrap; }
.rv-org { margin-top: 2px; color: var(--ink-soft); font-size: 0.92rem; }
.rv-note { margin-top: 8px; color: var(--ink-soft); font-size: 0.92rem; }
.rv-note strong { color: var(--ink); }
.rv-bullets { margin-top: 10px; padding-left: 18px; color: color-mix(in srgb, var(--ink) 88%, var(--ink-soft)); font-size: 0.94rem; }
.rv-bullets li + li { margin-top: 6px; }
.rv-bullets li::marker { color: var(--accent); }
.rv-bullets strong { color: var(--ink); }
.rv-bullets a { color: var(--accent); }
.rv-skills { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; font-size: 0.94rem; }
.rv-skills dt { color: var(--ink); font-weight: 700; }
.rv-skills dd { color: var(--ink-soft); }
.rv-certs { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.rv-certs li { padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; }
.rv-certs strong { display: block; font-size: 0.92rem; }
.rv-certs span { color: var(--ink-soft); font-family: var(--font-mono); font-size: 0.72rem; }
@media (max-width: 560px) { .rv-skills { grid-template-columns: 1fr; gap: 2px; } .rv-skills dd { margin-bottom: 10px; } }

.resume-section {
    margin-bottom: 20px;
}

.resume-section h3 {
    margin-bottom: 10px;
    color: var(--accent);
    border-bottom: 1px solid var(--line);
    padding-bottom: 5px;
}

.resume-item {
    margin-bottom: 15px;
}

.resume-item h4 {
    margin-bottom: 5px;
}

.skills-list {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills-list li {
    background-color: var(--surface-2);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
}

.about-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--line);
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-details {
    flex: 1;
}

.about-details h2 {
    margin-bottom: 5px;
    color: var(--accent);
}

.about-details h3 {
    margin-bottom: 15px;
    color: var(--ink-soft);
    font-weight: 400;
}

.about-details p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.seeking-card {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.seeking-card h4 {
    margin-bottom: 10px;
    color: var(--accent);
}

.seeking-card p {
    margin-bottom: 8px;
    color: var(--ink);
}

.seeking-card p:last-child {
    margin-bottom: 0;
}

.why-hire-card {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.why-hire-card h4 {
    margin-bottom: 10px;
    color: var(--ink);
}

.why-hire-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--ink);
}

.why-hire-card li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.why-hire-card li:last-child {
    margin-bottom: 0;
}

.github-activity-section {
    margin-top: 28px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.github-activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.github-activity-header h3 {
    margin-bottom: 8px;
    color: var(--accent);
}

.github-activity-header p {
    margin-bottom: 0;
    max-width: 680px;
    color: var(--ink);
}

.github-activity-card {
    padding: 14px;
    max-width: 820px;
    margin: 0 auto;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
}

.github-activity-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.recommendations-section {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.recommendations-section h3 {
    margin-bottom: 16px;
    color: var(--accent);
}

.recommendation-card {
    margin-bottom: 18px;
    padding: 18px 20px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.recommendation-header h4 {
    margin-bottom: 4px;
    color: var(--ink);
    font-size: 1.1rem;
}

.recommendation-verified {
    margin-left: 4px;
    color: var(--accent);
    font-size: 0.82em;
}

.recommendation-role,
.recommendation-date {
    color: var(--accent);
    font-size: 0.92rem;
}

.recommendation-date {
    white-space: nowrap;
}

.recommendation-context {
    margin-top: 3px;
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.recommendation-body p {
    margin-bottom: 12px;
    line-height: 1.7;
    color: var(--ink);
}

.recommendation-body p:last-child,
.recommendation-card:last-child {
    margin-bottom: 0;
}

.current-section-header {
    margin-bottom: 24px;
}

.current-section-header h2 {
    margin-bottom: 8px;
    color: var(--accent);
}

.current-section-header p {
    max-width: 760px;
    line-height: 1.6;
    color: var(--ink);
}

.current-project-card {
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.current-project-card:last-child {
    margin-bottom: 0;
}

.current-project-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.current-project-card h3 {
    margin-bottom: 6px;
    color: var(--ink);
}

.current-project-subtitle {
    color: var(--accent);
    font-size: 0.95rem;
}

.current-project-card p {
    line-height: 1.7;
    color: var(--ink);
}

.current-tech {
    margin-top: 14px;
}

.current-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-live {
    background: color-mix(in srgb, var(--ink) 6%, transparent);
    color: var(--accent);
    border: 1px solid var(--line);
}

.status-research {
    background: color-mix(in srgb, var(--ink) 6%, transparent);
    color: var(--accent);
    border: 1px solid var(--line);
}

.status-ship {
    background: color-mix(in srgb, var(--ok) 12%, transparent);
    color: var(--ok);
    border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent);
}

.terminal-window-content {
    padding: 0;
    background: var(--shade);
}

.terminal-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 18px;
    color: var(--ink);
    background: var(--shade);
    font-family: var(--font-mono);
}

.terminal-output {
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
}

.terminal-line {
    font-family: var(--font-mono);
    margin-bottom: 8px;
    line-height: 1.5;
    word-break: break-word;
}

.terminal-line-spacer {
    height: 8px;
    margin-bottom: 0;
}

.terminal-accent {
    color: var(--accent);
}

.terminal-success {
    color: var(--ok);
}

.terminal-error {
    color: var(--danger);
}

.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.terminal-prompt {
    color: var(--accent);
    white-space: nowrap;
}

.terminal-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--ink);
    font: inherit;
}

.terminal-input::placeholder {
    color: var(--ink-soft);
}

.playlist-window-content {
    background: var(--surface-0);
}

.playlist-hero {
    margin-bottom: 22px;
}

.playlist-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ok) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--ok) 28%, transparent);
    color: var(--ok);
    font-size: 0.85rem;
}

.playlist-hero h2 {
    margin-bottom: 10px;
    color: var(--ink);
}

.playlist-hero p {
    max-width: 760px;
    color: var(--ink);
    line-height: 1.6;
}

.playlist-card {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
    padding: 20px;
    border-radius: 16px;
    background: var(--surface-0);
    border: 1px solid color-mix(in srgb, var(--ok) 26%, transparent);
}

.playlist-cover {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--ok);
    color: var(--accent-ink);
    font-size: 3rem;
}

.playlist-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.playlist-meta h3 {
    margin-bottom: 6px;
    color: var(--ink);
}

.playlist-subtitle {
    margin-bottom: 10px;
    color: var(--ok);
}

.playlist-description {
    margin-bottom: 14px;
    color: var(--ink);
    line-height: 1.6;
}

.spotify-embed-wrapper {
    margin-bottom: 18px;
}

.spotify-playlist-embed {
    min-height: 520px;
    border-radius: 12px;
    overflow: hidden;
}

.playlist-mini-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ink) 10%, transparent);
    color: color-mix(in srgb, var(--ink) 60%, transparent);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.playlist-mini-close:hover {
    background: color-mix(in srgb, var(--danger) 30%, transparent);
    color: var(--ink);
}

.playlist-mini-player {
    position: fixed;
    right: 18px;
    bottom: 52px;
    display: none;
    align-items: center;
    gap: 16px;
    width: min(420px, calc(100vw - 28px));
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--surface-0);
    border: 1px solid color-mix(in srgb, var(--ok) 26%, transparent);
    z-index: 1000;
}

.playlist-mini-player.visible {
    display: flex;
}

.playlist-mini-player-meta {
    flex: 1;
    min-width: 0;
}

.playlist-mini-player-label {
    margin-bottom: 4px;
    color: var(--ok);
    font-size: 0.75rem;
}

.playlist-mini-player-title {
    color: var(--ink);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-mini-player-subtitle {
    margin-top: 4px;
    color: var(--ink);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-mini-player-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.playlist-mini-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--ink) 5%, transparent);
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.playlist-mini-btn:hover {
    border-color: color-mix(in srgb, var(--ok) 35%, transparent);
    background: color-mix(in srgb, var(--ok) 12%, transparent);
}

.playlist-mini-btn-primary {
    background: var(--ok);
    color: var(--accent-ink);
    border-color: transparent;
}

.trash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
}

.trash-icon i {
    color: var(--ink);
    font-size: 32px;
}

.trash-icon-large {
    font-size: 64px;
    color: var(--ink-soft);
    margin-bottom: 20px;
    text-align: center;
}

.easter-egg {
    text-align: center;
    font-style: italic;
    color: var(--ink-soft);
}

.blockchain-container {
    width: 100%;
    padding: 20px;
}

.blockchain {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
    align-items: stretch;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 20px;
    position: relative;
}

.block {
    width: 280px;
    height: 280px;
    background: var(--surface-3);
    border-radius: 8px;
    color: var(--ink);
    padding: 15px;
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: flex;
    flex-direction: column;
    animation: block-appear 0.5s ease-out;
    z-index: 2;
    overflow: hidden;
    box-sizing: border-box;
    flex: 0 0 280px;
}

.block:hover {
    box-shadow: var(--shadow);
}

.block .block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.block .block-number {
    font-size: 14px;
    font-weight: bold;
    background: color-mix(in srgb, var(--ink) 10%, transparent);
    padding: 3px 8px;
    border-radius: 12px;
}

.block .timestamp {
    font-size: 12px;
    opacity: 0.7;
}

.block .block-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.block .block-content::-webkit-scrollbar {
    width: 6px;
}

.block .block-content::-webkit-scrollbar-track {
    background: color-mix(in srgb, var(--shade) 10%, transparent);
    border-radius: 3px;
}

.block .block-content::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--accent-deep) 50%, transparent);
    border-radius: 3px;
}

.block .block-hash {
    font-size: 12px;
    font-family: var(--font-mono);
    word-break: break-all;
    background: color-mix(in srgb, var(--shade) 20%, transparent);
    padding: 5px;
    border-radius: 4px;
    margin-top: 10px;
    color: var(--accent);
}

.block .project-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--accent);
}

.block .project-description {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.4;
    max-height: 100px;
    overflow-y: auto;
}

.block .technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.block .technology {
    background: color-mix(in srgb, var(--accent-deep) 30%, transparent);
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
}

.add-block-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 280px;
    height: 280px;
    background: color-mix(in srgb, var(--accent-deep) 10%, transparent);
    border: 2px dashed var(--line);
    border-radius: 8px;
    color: var(--accent);
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
    z-index: 2;
    flex: 0 0 280px;
}

.add-block-btn:hover {
    background: color-mix(in srgb, var(--accent-deep) 20%, transparent);
}

.add-block-btn i {
    margin-right: 10px;
    font-size: 20px;
}

.chain-link {
    margin: 0 -15px;
    width: 30px;
    height: 2px;
    background-color: var(--accent-deep);
    position: relative;
    align-self: center;
    z-index: 1;
}

.chain-link::after {
    content: '\f0c1';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
    background-color: var(--ink);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

@keyframes block-appear {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .blockchain {
        justify-content: center;
    }

    .block, .add-block-btn {
        width: 250px;
    }
}

.taskbar-icon {
    width: 40px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--ink);
    cursor: pointer;
    transition: background-color 0.2s;
}

.taskbar-icon:hover {
    background-color: color-mix(in srgb, var(--ink) 10%, transparent);
}

.taskbar-icon i {
    font-size: 16px;
}

.wallpaper-popup {
    position: absolute;
    bottom: 50px;
    right: 10px;
    width: 350px;
    background-color: var(--surface-2);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    z-index: 100;
    display: none;
    overflow: hidden;
    animation: popup-appear 0.2s ease-out;
}

.desktop-dialog-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: color-mix(in srgb, var(--surface-0) 62%, transparent);
    z-index: 20000;
}

.desktop-dialog-overlay.visible {
    display: flex;
    animation: popup-appear 0.2s ease-out;
}

.desktop-dialog {
    width: min(100%, 460px);
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
}

.desktop-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: var(--surface-0);
    border-bottom: 1px solid var(--line);
}

.desktop-dialog-header h3 {
    margin: 0;
    color: var(--accent);
    font-size: 16px;
}

.desktop-dialog-close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--ink);
    background: transparent;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.desktop-dialog-close:hover {
    background: color-mix(in srgb, var(--ink) 12%, transparent);
}

.desktop-dialog-body {
    padding: 20px 18px 18px;
    color: var(--ink);
}

.desktop-dialog-description {
    margin-bottom: 14px;
    line-height: 1.6;
    color: var(--ink);
}

.desktop-dialog-label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
}

.desktop-dialog-input {
    width: 100%;
    padding: 13px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface-0);
    color: var(--ink);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.desktop-dialog-input:focus {
    border-color: var(--accent);
}

.desktop-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
}

.desktop-dialog-btn {
    min-width: 104px;
    padding: 10px 18px;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.desktop-dialog-btn:hover {
    background: color-mix(in srgb, var(--ink) 16%, transparent);
}

.desktop-dialog-btn.secondary {
    color: var(--ink);
    background: color-mix(in srgb, var(--ink) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

.desktop-dialog-btn.primary {
    color: var(--accent-ink);
    background: var(--accent);
}

.desktop-dialog-btn.primary:hover {
    background: color-mix(in srgb, var(--accent) 82%, var(--ink));
}

.desktop-dialog-btn.primary.danger:hover {
    background: color-mix(in srgb, var(--danger) 82%, var(--ink));
}

.desktop-dialog-btn.primary.danger {
    color: var(--accent-ink);
    background: var(--danger);
}

@keyframes popup-appear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wallpaper-popup-header {
    background: var(--accent-deep);
    padding: 10px 15px;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wallpaper-popup-header h3 {
    margin: 0;
    font-size: 16px;
}

.wallpaper-close {
    background: transparent;
    border: none;
    color: var(--ink);
    cursor: pointer;
    font-size: 16px;
}

.wallpaper-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 15px;
}

.wallpaper-option {
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    position: relative;
    transition: border-color 0.18s ease;
    border: 2px solid transparent;
}

.wallpaper-option:hover {
    border-color: color-mix(in srgb, var(--ink) 55%, transparent);
}

.wallpaper-option-default {
    background-color: var(--bg);
}

.wallpaper-option.active {
    border-color: var(--accent);
}

.wallpaper-option span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: color-mix(in srgb, var(--shade) 60%, transparent);
    color: var(--ink);
    font-size: 12px;
    padding: 3px 0;
    text-align: center;
}

.wallpaper-custom {
    padding: 15px;
    border-top: 1px solid var(--line);
}

.wallpaper-custom p {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.file-upload-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.wallpaper-file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    background-color: color-mix(in srgb, var(--ink) 8%, transparent);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.file-upload-btn:hover {
    background-color: color-mix(in srgb, var(--ink) 14%, transparent);
}

.file-upload-btn i {
    font-size: 16px;
}

#selected-file-name {
    font-size: 12px;
    color: var(--ink-soft);
    margin-top: 4px;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.wallpaper-custom .btn {
    padding: 8px 15px;
    font-size: 14px;
    width: 100%;
}

.wallpaper-custom .btn:disabled {
    background-color: var(--surface-3);
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .wallpaper-popup {
        width: 90%;
        right: 5%;
    }

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

.technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tech-tag {
    background: color-mix(in srgb, var(--ink) 6%, transparent);
    color: var(--accent);
    font-size: 12px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.tech-tag:hover {
    background: color-mix(in srgb, var(--ink) 10%, transparent);
    border-color: var(--line);
}

.contact-info {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
}

.contact-info p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.contact-info i {
    width: 20px;
    color: var(--accent);
}

.social-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.certification-item {
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.certification-item:hover {
    border-color: var(--line);
}

.certification-item h3 {
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 18px;
    font-weight: bold;
}

.cert-issuer {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 6px;
}

.cert-date {
    color: var(--accent);
    font-size: 14px;
    margin-bottom: 12px;
}

.cert-description {
    line-height: 1.6;
    color: var(--ink);
    margin-bottom: 15px;
}

.cert-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.skill-tag {
    background: color-mix(in srgb, var(--ink) 6%, transparent);
    color: var(--accent);
    font-size: 12px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.skill-tag:hover {
    background: color-mix(in srgb, var(--ink) 10%, transparent);
    border-color: var(--line);
}

.wallpaper-personalization {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 40px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
    pointer-events: none;
}

.personal-info-centered {
    text-align: center;
    color: var(--ink);
    background-color: color-mix(in srgb, var(--shade) 20%, transparent);
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
}

.wallpaper-profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid var(--ink);
}

.wallpaper-profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-message {
    margin-top: 20px;
    font-size: 16px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .about-details {
        width: 100%;
    }

    .github-activity-header {
        flex-direction: column;
    }

    .current-project-top {
        flex-direction: column;
    }

    .current-status {
        white-space: normal;
    }

    .recommendation-header {
        flex-direction: column;
    }

    .recommendation-date {
        white-space: normal;
    }

    .wallpaper-personalization {
        bottom: 80px;
    }

    .wallpaper-personalization h1 {
        font-size: 1.5rem;
    }

    .wallpaper-personalization h2 {
        font-size: 1.2rem;
    }
}

.wallpaper-personalization.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    z-index: 0;
}

.personal-info-centered {
    color: var(--ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: color-mix(in srgb, var(--shade) 10%, transparent);
    padding: 25px 40px;
    border-radius: 15px;
}

.wallpaper-profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--ink);
    margin-bottom: 15px;
}

.wallpaper-profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.personal-info-centered h1 {
    font-size: 2.2rem;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.personal-info-centered h2 {
    font-size: 1.7rem;
    margin: 0;
    font-weight: 400;
    opacity: 0.9;
}

.welcome-message {
    font-size: 1.1rem;
    margin-top: 15px;
    font-weight: 300;
    opacity: 0.9;
    max-width: 400px;
    line-height: 1.4;
    background-color: color-mix(in srgb, var(--shade) 20%, transparent);
    padding: 10px 15px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .personal-info-centered {
        padding: 20px 30px;
    }

    .wallpaper-profile-picture {
        width: 90px;
        height: 90px;
    }

    .personal-info-centered h1 {
        font-size: 1.7rem;
    }

    .personal-info-centered h2 {
        font-size: 1.4rem;
    }

    .welcome-message {
        font-size: 0.9rem;
        margin-top: 12px;
        padding: 8px 12px;
        max-width: 300px;
    }
}

.window:not(.fullscreen) .resize-handle {
    position: absolute;
    z-index: 3;
}

.window:not(.fullscreen) .resize-handle.top {
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    cursor: n-resize;
}

.window:not(.fullscreen) .resize-handle.right {
    top: 0;
    right: 0;
    bottom: 0;
    width: 5px;
    cursor: e-resize;
}

.window:not(.fullscreen) .resize-handle.bottom {
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    cursor: s-resize;
}

.window:not(.fullscreen) .resize-handle.left {
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
    cursor: w-resize;
}

.window:not(.fullscreen) .resize-handle.top-left {
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    cursor: nw-resize;
}

.window:not(.fullscreen) .resize-handle.top-right {
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    cursor: ne-resize;
}

.window:not(.fullscreen) .resize-handle.bottom-right {
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    cursor: se-resize;
}

.window:not(.fullscreen) .resize-handle.bottom-left {
    bottom: 0;
    left: 0;
    width: 10px;
    height: 10px;
    cursor: sw-resize;
}

.icon.active {
    z-index: 3;
}

.icon.dragging {
    opacity: 0.8;
    z-index: 3;
    transition: transform 0.1s, opacity 0.2s;
}

.context-menu {
    position: fixed;
    z-index: 10000;
    background-color: var(--surface-2);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 4px 0;
    min-width: 150px;
    display: none;
    user-select: none;
}

.context-menu-item {
    padding: 8px 12px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    font-size: 14px;
}

.context-menu-item:hover {
    background-color: var(--accent-deep);
    color: var(--ink);
}

.context-menu-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.notepad-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.notepad-textarea {
    flex: 1;
    resize: none;
    border: none;
    padding: 8px;
    background: var(--surface-2);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 14px;
    outline: none;
}

.folder-content {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    gap: 15px;
}

.folder-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    cursor: pointer;
}

.folder-item i {
    font-size: 32px;
    margin-bottom: 5px;
    color: var(--accent);
}

.folder-item-name {
    text-align: center;
    font-size: 12px;
    word-break: break-word;
}

.selection-box {
    position: fixed;
    border: 1px solid var(--accent);
    background-color: color-mix(in srgb, var(--accent) 12%, transparent);
    pointer-events: none;
    z-index: 1000;
    display: none;
    transform: translate(0, 0);
    will-change: transform;
}

@media (max-width: 768px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .desktop {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        padding-bottom: 58px;
    }

    .wallpaper-personalization,
    .wallpaper-personalization.centered {
        position: static;
        width: auto;
        height: auto;
        transform: none;
        padding: 24px 18px 4px;
    }

    .desktop-icons {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
        grid-gap: 16px 4px;
        padding: 16px 12px 24px;
    }

    .icon {
        position: static;
        width: auto;
        padding: 8px 2px;
        touch-action: manipulation;
    }

    .icon-text {
        font-size: 12px;
        line-height: 1.25;
        word-wrap: normal;
        overflow-wrap: break-word;
        hyphens: none;
    }

    .window,
.window.active,
.window.fullscreen {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 40px !important;
        width: auto !important;
        height: auto !important;
        border-width: 0 0 1px 0;
        border-radius: 0;
        z-index: 9000;
    }

    .window-content {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .taskbar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 9500;
    }

    .recruiter-shortcut {
        position: fixed;
        z-index: 8000;
    }

    body:has(.window.active) .recruiter-shortcut {
        display: none;
    }
}

/* Wallpaper scene */
.desktop::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .85 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.desktop.has-wallpaper::before,
.desktop.has-wallpaper .wallpaper-scene {
    display: none;
}

.wallpaper-scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.wallpaper-scene svg {
    position: absolute;
    inset: -90px;
    width: calc(100% + 180px);
    height: calc(100% + 180px);
    transition: transform 700ms var(--ease-out);
    transform: translate(var(--px, 0), var(--py, 0));
}

.wallpaper-scene path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1;
    stroke-opacity: 0.17;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: contour-draw 2.2s var(--ease-out) forwards;
    animation-delay: calc(var(--k, 0) * 70ms + 120ms);
}

.wallpaper-scene path.major {
    stroke-opacity: 0.36;
    stroke-width: 1.4;
    transform: translate(calc(var(--px, 0px) * 0.5), calc(var(--py, 0px) * 0.5));
    transition: transform 900ms var(--ease-out);
}

.wallpaper-scene path.cool {
    stroke: var(--verdigris);
    stroke-opacity: 0.16;
}

@keyframes contour-draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Welcome card */
.personal-info-centered {
    background: none;
    padding: 0;
    gap: 0;
    max-width: min(640px, 90vw);
}

.personal-info-centered > * {
    animation: rise-in 640ms var(--ease-out) backwards;
}

.personal-info-centered > :nth-child(1) { animation-delay: 380ms; }
.personal-info-centered > :nth-child(2) { animation-delay: 500ms; }
.personal-info-centered > :nth-child(3) { animation-delay: 600ms; }
.personal-info-centered > :nth-child(4) { animation-delay: 720ms; }
.personal-info-centered > :nth-child(5) { animation-delay: 820ms; }

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
}

.personal-info-centered .wallpaper-profile-picture {
    width: 108px;
    height: 108px;
    margin-bottom: 22px;
    border: 2px solid var(--accent);
    outline: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    outline-offset: 6px;
}

.personal-info-centered h1 {
    font-size: clamp(2rem, 3.6vw, 3.5rem);
    font-weight: 700;
    font-stretch: 84%;
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin: 0;
}

.personal-info-centered h2 {
    margin-top: 14px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 1;
}

.personal-info-centered h2::after {
    content: "";
    display: block;
    width: 44px;
    height: 2px;
    margin: 18px auto 0;
    background: var(--accent);
}

.personal-info-centered .welcome-message {
    margin-top: 16px;
    padding: 0;
    background: none;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 400;
    opacity: 1;
}

.personal-info-centered .welcome-message + .welcome-message {
    color: var(--ink-soft);
    margin-top: 8px;
}

.wallpaper-personalization.centered {
    z-index: 1;
}

/* Desktop icons */
.icon {
    animation: icon-in 560ms var(--ease-out) backwards;
    animation-delay: var(--icon-delay, 0ms);
}

@keyframes icon-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
}

.icon .icon-img {
    width: 44px;
    height: 44px;
    margin-bottom: 6px;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 6px 14px oklch(0 0 0 / 0.3);
    transition: transform 240ms var(--ease-out), border-color 180ms ease, background-color 180ms ease;
}

.icon .icon-img i {
    font-size: 20px;
}

.icon-img.folder-icon i,
.icon-img.certifications-icon i { color: var(--accent); }
.icon-img.contact-icon i,
.icon-img.blockchain-icon i,
.icon-img.blueprint-icon i { color: var(--verdigris); }
.icon-img.about-icon i,
.icon-img.current-icon i,
.icon-img.playlist-icon i { color: var(--warn); }
.icon-img.resume-icon i { color: var(--ink); }
.icon-img.terminal-icon i { color: var(--ok); }
.icon-img.trash-icon i { color: var(--ink-soft); }

@media (hover: hover) and (pointer: fine) {
    .icon:hover .icon-img {
        transform: translateY(-3px);
        border-color: color-mix(in srgb, var(--accent) 60%, transparent);
        background: var(--surface-3);
    }
}

.icon:active .icon-img {
    transform: scale(0.96);
}

.icon.selected .icon-img {
    border-color: var(--accent);
}

/* Recruiter shortcut */
.recruiter-shortcut {
    color: var(--accent-ink);
    background: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 70%, var(--ink));
    transition: background-color 180ms ease, transform 180ms var(--ease-out);
    animation: shortcut-in 600ms var(--ease-out) 900ms backwards;
}

.recruiter-shortcut:hover,
.recruiter-shortcut:focus-visible {
    background: color-mix(in srgb, var(--accent) 84%, white);
    border-color: color-mix(in srgb, var(--accent) 70%, var(--ink));
}

.recruiter-shortcut:active {
    transform: translateY(1px);
}

.recruiter-shortcut strong,
.recruiter-shortcut-go {
    color: var(--accent-ink);
}

.recruiter-shortcut small {
    color: color-mix(in srgb, var(--accent-ink) 82%, transparent);
}

.recruiter-shortcut-icon {
    background: var(--accent-ink);
}

.recruiter-shortcut-icon::before {
    background: var(--accent);
}

.recruiter-shortcut-icon::after {
    color: var(--accent-ink);
    background: var(--accent);
    border-color: var(--accent-ink);
}

@keyframes shortcut-in {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
}

/* Window motion */
.window {
    transform-origin: 50% 100%;
}

.window.win-in {
    animation: win-in 380ms var(--ease-spring) backwards;
}

.window.win-out {
    animation: win-out 170ms var(--ease-out) forwards;
    pointer-events: none;
}

.window.win-min {
    animation: win-min 220ms var(--ease-out) forwards;
    pointer-events: none;
}

@keyframes win-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
}

@keyframes win-out {
    to {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
}

@keyframes win-min {
    to {
        opacity: 0;
        transform: translateY(70px) scale(0.9);
    }
}

.window-header {
    transition: box-shadow 200ms ease;
}

.window-title {
    color: var(--ink-soft);
    transition: color 200ms ease;
}

.window.active .window-title {
    color: var(--ink);
}

.window.active .window-header {
    box-shadow: inset 0 2px 0 var(--accent);
}

.window-controls button:active {
    background-color: color-mix(in srgb, var(--ink) 28%, transparent);
}

/* Start menu */
.start-menu {
    transform: translateY(14px) scale(0.97);
    transition: opacity 160ms ease, transform 300ms var(--ease-spring), visibility 160ms;
}

.start-menu.open {
    transform: none;
}

.start-menu.open .start-menu-app,
.start-menu.open .start-menu-recommendation {
    animation: tile-in 340ms var(--ease-out) backwards;
}

.start-menu.open .start-menu-app:nth-child(1) { animation-delay: 60ms; }
.start-menu.open .start-menu-app:nth-child(2) { animation-delay: 95ms; }
.start-menu.open .start-menu-app:nth-child(3) { animation-delay: 130ms; }
.start-menu.open .start-menu-app:nth-child(4) { animation-delay: 165ms; }
.start-menu.open .start-menu-app:nth-child(5) { animation-delay: 200ms; }
.start-menu.open .start-menu-app:nth-child(6) { animation-delay: 235ms; }
.start-menu.open .start-menu-recommendation:nth-child(1) { animation-delay: 280ms; }
.start-menu.open .start-menu-recommendation:nth-child(2) { animation-delay: 320ms; }

@keyframes tile-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

.start-menu-app-icon {
    transition: transform 220ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .start-menu-app:hover .start-menu-app-icon {
        transform: translateY(-3px);
    }
}

.start-menu-app:active .start-menu-app-icon {
    transform: scale(0.95);
}

.start-button:active {
    transform: translateY(1px);
}

/* Taskbar */
.taskbar {
    background: var(--surface-0);
    border-top-color: color-mix(in srgb, var(--accent) 22%, var(--line));
}

.taskbar-item {
    position: relative;
    gap: 7px;
    animation: tb-in 280ms var(--ease-out) backwards;
}

.taskbar-item.active {
    border-bottom-color: transparent;
}

.taskbar-item::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: var(--ink-soft);
    transform: translateX(-50%) scaleX(0.27);
    transition: transform 260ms var(--ease-spring), background-color 180ms ease;
}

.taskbar-item.active::after {
    background: var(--accent);
    transform: translateX(-50%) scaleX(1);
}

@keyframes tb-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

.clock {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 6px;
    padding: 0 12px;
    border-left: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
    text-align: right;
}

.clock::after {
    content: attr(data-date);
    color: var(--ink-soft);
    font-size: 12px;
}

.desktop-dialog-btn.secondary:hover {
    background: color-mix(in srgb, var(--ink) 16%, transparent);
}

/* Desk note */
.desk-note {
    position: absolute;
    top: 40px;
    right: 40px;
    z-index: 3;
    width: 236px;
    color: var(--accent-ink);
    background: oklch(0.93 0.045 88);
    border-radius: 3px;
    box-shadow: 0 14px 28px oklch(0 0 0 / 0.4), 0 2px 4px oklch(0 0 0 / 0.3);
    transform: rotate(-1.6deg);
    transition: transform 420ms var(--ease-spring), box-shadow 240ms ease;
    animation: note-in 700ms var(--ease-spring) 1300ms backwards;
}

.desk-note.lifted {
    transform: rotate(0.8deg);
    box-shadow: 0 26px 44px oklch(0 0 0 / 0.5), 0 4px 8px oklch(0 0 0 / 0.3);
}

@keyframes note-in {
    from {
        opacity: 0;
        transform: translateY(-26px) rotate(-7deg);
    }
}

.desk-note-grip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: oklch(0.84 0.07 82);
    border-bottom: 1px solid oklch(0.17 0.02 58 / 0.14);
    border-radius: 3px 3px 0 0;
    cursor: grab;
    touch-action: none;
    user-select: none;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.desk-note.lifted .desk-note-grip {
    cursor: grabbing;
}

.desk-note ul {
    margin: 0;
    padding: 6px 12px 2px;
    list-style: none;
}

.desk-note li {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 8px 0;
    border-bottom: 1px dashed oklch(0.17 0.02 58 / 0.22);
}

.desk-note li:last-child {
    border-bottom: 0;
}

.desk-note li strong {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.desk-note li span {
    font-family: var(--font-mono);
    font-size: 12px;
    color: oklch(0.38 0.03 60);
}

.desk-note-open {
    display: block;
    width: calc(100% - 24px);
    margin: 4px 12px 12px;
    padding: 8px 10px;
    color: var(--ink);
    background: var(--accent-ink);
    border: 0;
    border-radius: 3px;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: left;
    transition: background-color 180ms ease, transform 160ms var(--ease-out);
}

.desk-note-open:hover {
    background: oklch(0.28 0.03 58);
}

.desk-note-open:active {
    transform: scale(0.98);
}

.desk-note-open:focus-visible {
    outline: 2px solid var(--accent-ink);
    outline-offset: 2px;
}

@media (max-width: 1100px) {
    .desk-note {
        display: none;
    }
}

@media (min-width: 769px) {
    .desktop-icons {
        position: absolute;
        inset: 0 0 40px 0;
        width: auto;
    }

    .window.fullscreen {
        height: 100% !important;
    }
}

.app-icon-resume {
    background: var(--verdigris);
    color: var(--accent-ink);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }
}
