
/* font */

@font-face {
    font-family: "VCR";
    src: url("./fonts/VCR_OSD_MONO_1.001.ttf") format("truetype");
    font-display: swap;
}


/* stuff */

:root {
    --background: #050505;
    --surface: #0b0b0b;
    --surface-hover: #111111;

    --text: #f2f2f2;
    --muted: #777;
    --dim: #444;

    --border: #222;
    --border-light: #333;

    --accent: #fff;
}

.theme-yellow {
    --background: #050505;
    --surface: #0b0b0b;
    --surface-hover: #111111;

    --text: #f2f2f2;
    --muted: #777;
    --dim: #444;

    --border: #222;
    --border-light: #333;

    --accent: #fff;
}

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

html {
    scroll-behavior: smooth;
    background: var(--background);
}

body {
    min-height: 100vh;

    background: var(--background);
    color: var(--text);

    font-family: "VCR", monospace;

    overflow-x: hidden;
}

a {
    color: inherit;
}


/* nav */

.navbar {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 15px;

    background: rgba(5, 5, 5, 0.96);

    border-bottom: 1px solid var(--border);

    z-index: 1000;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.logo {
    color: var(--text);

    font-size: 13px;

    line-height: 1;

    white-space: nowrap;

    overflow: hidden;
    text-overflow: ellipsis;

    max-width: 80vw;

    user-select: none;
}


/* buttons */

.window-buttons {
    display: flex;
    align-items: center;

    gap: 18px;

    flex-shrink: 0;
}

.window-button {
    width: 18px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    background: none;
    border: none;

    color: var(--muted);

    font-family: "VCR", monospace;
    font-size: 14px;

    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.window-button:hover {
    color: var(--accent);
}

.menu-toggle.open {
    transform: rotate(180deg);
}


/* mneu */

.menu {
    position: fixed;

    top: 42px;
    right: 0;

    width: 260px;
    max-width: 85vw;

    background: rgba(5, 5, 5, 0.98);

    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    transform: translateY(-110%);

    opacity: 0;

    pointer-events: none;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;

    z-index: 900;
}

.menu.active {
    transform: translateY(0);

    opacity: 1;

    pointer-events: auto;
}

.menu-panel {
    display: flex;
    flex-direction: column;
}

.menu a {
    display: block;

    padding: 18px 20px;

    color: var(--text);

    text-decoration: none;

    font-size: 14px;

    border-bottom: 1px solid var(--border);

    transition:
        background 0.2s ease,
        color 0.2s ease,
        padding-left 0.2s ease;
}

.menu a:last-child {
    border-bottom: none;
}

.menu a:hover {
    background: var(--accent);

    color: #000;

    padding-left: 26px;
}


/* page */

.projects {
    width: 100%;

    padding-top: 42px;
}


/* faetured */

.featured {
    width: 100%;
    height: 320px;

    display: grid;

    grid-template-columns: 55% 45%;

    border-bottom: 1px solid var(--border);

    overflow: hidden;
}

.featured-image {
    width: 100%;
    height: 100%;

    overflow: hidden;

    background: #090909;
}

.featured-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center top;

    filter: grayscale(0%);

    transition:
        transform 0.6s ease,
        filter 0.4s ease;
}

.featured:hover .featured-image img {
    transform: scale(1.025);

    filter: grayscale(40%);
}

.featured-info {
    padding: 40px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: var(--background);

    border-left: 1px solid var(--border);
}

.featured-info span {
    color: var(--muted);

    font-size: 12px;

    letter-spacing: 0.08em;
}

.featured-info h1 {
    margin-top: 14px;

    color: var(--accent);

    font-size: clamp(38px, 5vw, 70px);

    font-weight: normal;

    line-height: 0.95;

    letter-spacing: -2px;
}

.featured-info p {
    max-width: 500px;

    margin-top: 20px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.6;
}

.featured-info a {
    width: fit-content;

    margin-top: 25px;

    padding-bottom: 4px;

    color: var(--accent);

    text-decoration: none;

    font-size: 13px;

    border-bottom: 1px solid var(--accent);

    transition:
        opacity 0.2s ease,
        padding-left 0.2s ease;
}

.featured-info a:hover {
    opacity: 0.6;

    padding-left: 5px;
}


/* nav bar */

.category-nav {
    position: sticky;

    top: 42px;

    width: 100%;

    display: flex;

    background: rgba(5, 5, 5, 0.96);

    border-bottom: 1px solid var(--border);

    z-index: 50;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.category-nav a {
    flex: 1;

    padding: 14px 10px;

    color: var(--muted);

    text-align: center;

    text-decoration: none;

    font-size: 12px;

    border-right: 1px solid var(--border);

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.category-nav a:last-child {
    border-right: none;
}

.category-nav a:hover {
    background: var(--accent);

    color: #000;
}


/* content :) */

.content-section {
    width: 100%;

    scroll-margin-top: 84px;
}

.section-title {
    min-height: 110px;

    padding: 25px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);
}

.section-title h1 {
    color: var(--accent);

    font-size: clamp(45px, 7vw, 80px);

    font-weight: normal;

    line-height: 0.85;

    letter-spacing: -3px;
}

.section-title p {
    color: var(--muted);

    font-size: 12px;
}


/* grids */

.project-grid {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(3, 1fr);
}

.project-card {
    min-width: 0;

    display: block;

    color: var(--text);

    text-decoration: none;

    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    transition: background 0.2s ease;
}

.project-card:nth-child(3n) {
    border-right: none;
}

.project-card:hover {
    background: var(--surface-hover);
}


/* imaegs */

.project-image {
    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: #090909;
}

.project-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    filter: grayscale(100%);

    transition:
        transform 0.5s ease,
        filter 0.4s ease;
}

.project-card:hover .project-image img {
    filter: grayscale(0%);

    transform: scale(1.05);
}


/* info */

.project-info {
    padding: 18px 20px 22px;
}

.project-info small {
    color: var(--muted);

    font-size: 10px;
}

.project-info h2 {
    margin-top: 8px;

    color: var(--accent);

    font-size: 25px;

    font-weight: normal;
}

.project-info p {
    margin-top: 7px;

    color: var(--muted);

    font-size: 11px;
}

.project-info span {
    display: block;

    margin-top: 14px;

    color: #555;

    font-size: 11px;
}


/* media */

.media-grid {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(4, 1fr);
}

.media-card {
    min-width: 0;

    display: block;

    color: var(--text);

    text-decoration: none;

    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    transition: background 0.2s ease;
}

.media-card:nth-child(4n) {
    border-right: none;
}

.media-card:hover {
    background: var(--surface-hover);
}

.media-preview {
    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    position: relative;

    background: #090909;
}

.media-preview img,
.media-preview video {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* thumbnail */

.video-card .media-preview {
    aspect-ratio: 16 / 9;
}

.video-card .media-preview img {
    filter: grayscale(80%);

    transition:
        transform 0.5s ease,
        filter 0.4s ease;
}

.video-card:hover .media-preview img {
    filter: grayscale(0%);

    transform: scale(1.04);
}


/* animated/static */

.music-card .media-preview {
    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    position: relative;

    background: #090909;
}

.music-card .media-preview .animated-cover,
.music-card .media-preview .static-cover {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
    object-position: center;

    filter: grayscale(80%);

    transition:
        transform 0.5s ease,
        filter 0.4s ease;
}

.music-card .media-preview .static-cover {
    z-index: 1;
}

.music-card .media-preview .animated-cover {
    z-index: 2;

    background: #090909;
}

.music-card:hover .animated-cover,
.music-card:hover .static-cover {
    filter: grayscale(0%);

    transform: scale(1.04);
}

/* media info */

.media-info {
    padding: 16px 18px 20px;
}

.media-info h2 {
    color: var(--accent);

    font-size: 20px;

    font-weight: normal;
}

.media-info p {
    margin-top: 7px;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.5;
}


/* place */

.video-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #0d0d0d;

    color: var(--accent);

    font-size: 34px;

    transition:
        background 0.3s ease,
        font-size 0.3s ease;
}

.video-card:hover .video-placeholder {
    background: #151515;

    font-size: 40px;
}


/* i am a fucking archetype */

.art-grid {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(5, 1fr);
}

.art-card {
    position: relative;

    height: 220px;

    overflow: hidden;

    cursor: pointer;

    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.art-card img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    filter: grayscale(80%);

    transition:
        transform 0.5s ease,
        filter 0.4s ease;
}

.art-card:hover img {
    filter: grayscale(0%);

    transform: scale(1.05);
}

.art-card h2 {
    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;

    padding: 12px;

    background: rgba(0, 0, 0, 0.8);

    color: var(--accent);

    font-size: 16px;

    font-weight: normal;
}


/* popup */

.video-popup {
    position: fixed;

    inset: 0;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 25px;

    background: rgba(0, 0, 0, 0.92);

    z-index: 9999;

    overflow-y: auto;
}

.video-popup.active {
    display: flex;
}


/* window video */

.video-window {
    width: min(950px, 95vw);

    max-height: 95vh;

    overflow-y: auto;

    background: #080808;

    border: 1px solid var(--border);

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.7);
}


/* button */

.close-video {
    width: 100%;

    padding: 13px 16px;

    background: #080808;

    border: none;

    border-bottom: 1px solid var(--border);

    color: var(--accent);

    font-family: "VCR", monospace;

    font-size: 12px;

    text-align: left;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.close-video:hover {
    background: var(--accent);

    color: #000;
}

/* plyaer */

.video-player {
    width: 100%;

    aspect-ratio: 16 / 9;

    background: #000;
}

.video-player iframe {
    width: 100%;
    height: 100%;

    display: block;

    border: none;
}


/* deatisl */

.video-details {
    padding: 25px;

    display: flex;

    flex-direction: column;

    gap: 16px;
}

.video-details h1 {
    color: var(--accent);

    font-size: clamp(28px, 5vw, 48px);

    font-weight: normal;

    line-height: 1;
}

.video-details p {
    color: var(--muted);

    font-size: 13px;

    line-height: 1.6;
}


/* sticker */

.parental-advisory {
    display: block;

    width: 120px;
    height: auto;

    margin: 4px 0 8px;

    filter: grayscale(100%);
}


/* metadata */

.video-meta {
    display: grid;

    grid-template-columns: 100px 1fr;

    row-gap: 12px;

    column-gap: 20px;

    padding-top: 18px;

    border-top: 1px solid var(--border);
}

.video-meta > div {
    display: contents;
}

.video-meta span {
    color: var(--muted);

    font-size: 10px;

    letter-spacing: 0.08em;
}

.video-meta p {
    margin: 0;

    color: var(--text);

    font-size: 12px;
}


/* footer */

footer {
    width: 100%;

    padding: 22px 25px;

    border-top: 1px solid var(--border);

    color: #555;

    font-size: 11px;

    text-transform: lowercase;
}


/* jerry fix!!! */

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #222;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}


/* extras */

::selection {
    background: #fff;

    color: #000;
}

@media (max-width: 900px) {

    .featured {
        display: block;

        min-height: auto;
    }

    .featured-image {
        height: 300px;

        min-height: 0;
    }

    .featured-info {
        min-height: 280px;

        padding: 30px 25px;

        border-left: none;
    }


    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card:nth-child(3n) {
        border-right: 1px solid var(--border);
    }

    .project-card:nth-child(2n) {
        border-right: none;
    }


    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .media-card:nth-child(4n) {
        border-right: 1px solid var(--border);
    }

    .media-card:nth-child(2n) {
        border-right: none;
    }


    .art-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .section-title {
        min-height: 90px;

        padding: 20px;
    }

    .section-title h1 {
        font-size: 50px;

        letter-spacing: -2px;
    }


    .category-nav a {
        padding: 13px 5px;

        font-size: 10px;
    }


    .video-popup {
        padding: 10px;
    }

    .video-window {
        width: 100%;

        max-height: 96vh;
    }
}

@media (max-width: 600px) {

    .navbar {
        padding: 0 10px;
    }

    .logo {
        max-width: 65vw;

        font-size: 11px;
    }

    .window-buttons {
        gap: 10px;
    }


    .featured-image {
        height: 230px;
    }

    .featured-info {
        padding: 25px 20px;
    }

    .featured-info h1 {
        font-size: 38px;
    }


    .project-grid,
    .media-grid,
    .art-grid {
        grid-template-columns: 1fr;
    }


    .project-card,
    .media-card,
    .art-card {
        border-right: none !important;
    }


    .section-title {
        display: block;

        padding: 22px 20px;
    }

    .section-title p {
        margin-top: 12px;
    }


    .project-info {
        padding: 16px 18px 20px;
    }


    .media-info {
        padding: 15px 18px 18px;
    }


    .video-details {
        padding: 20px;
    }

    .video-meta {
        grid-template-columns: 85px 1fr;

        column-gap: 15px;
    }


    .account-popup {
        right: 10px;

        width: calc(100vw - 20px);
    }


    .menu {
        width: 100%;

        max-width: none;

        border-left: none;
    }


    footer {
        padding: 20px;
    }
}