@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,slnt,wdth,wght@8..144,-10..0,25..151,100..1000&display=swap');

body {
    overflow-x: hidden;
    background-color: #000;
    font-family: 'Roboto Flex', sans-serif;
    font-variation-settings:
        'wdth' 120,
        'wght' 400;

    ::selection {
        background: #fff;
        color: #000;
    }
}

.icon {
    width: 2rem !important;
    height: 2rem !important;
}

.slant {
    font-variation-settings:
        'wdth' 120,
        'wght' 400,
        'slnt' -10;
    color: #babac4;
}

a {
    font-variation-settings:
        'wdth' 150,
        'wght' 600;

    img {
        filter: invert(1);
        transform: translate(0, 0.6rem);
    }
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    opacity: 0;
    z-index: -1;
    transition: all 0.3s ease-in-out;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    display: flex;
    align-items: flex-start;
    user-select: none;
    z-index: 3;

    a {
        text-decoration: none;
        font-size: 5rem;
        width: 25vw;
        height: calc(25vw - 2rem);
        min-height: 13rem;
        overflow: hidden;
        background-color: #fff;
        color: #000;
        text-align: center;
        vertical-align: middle;
        padding-top: 2rem;
        transition: all 0.3s ease-in-out;

        .text {
            opacity: 0;
            transition: all 0.3s ease-in-out;
            writing-mode: vertical-rl;
            text-orientation: mixed;
            font-variation-settings:
                'wdth' 120,
                'wght' 400;
            color: #fff;
            display: flex;
            flex-direction: column;
            justify-content: center;
            width: 100%;
            max-width: 25vw;

            h3 {
                font-size: 3rem;
                margin: 0;
                height: fit-content;
                padding: 1rem 2rem 1rem 1rem;
            }

            p {
                font-size: 1rem;
                text-align: left;
                height: 80vh;
                margin: 0;
                padding: 1rem 0 0 1rem;
            }
        }
    }

    a:hover {
        height: 100vh;
        background-color: #000;
        color: #fff;
        font-variation-settings:
            'wdth' 150,
            'wght' 1000;

        .text {
            opacity: 1;
        }
    }

    .more {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        width: 25vw;
        height: 25vw;

        a {
            padding: 0;
            width: 12.5vw;
            height: 12.5vw;
            min-height: 7.5rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            gap: 0.5rem;

            .icon {
                filter: invert(0);
                transform-origin: bottom;
                transform: scale(1);
                transition: all 0.3s ease-in-out;
                padding-top: 35%;
            }

            p {
                font-size: 1rem;
                padding: 0 0.5rem;
                margin: 0;
                color: #fff;
                font-variation-settings:
                    'wdth' 120,
                    'wght' 400;
            }
        }

        a:hover {
            height: 12.5vw;

            .icon {
                filter: invert(1);
                transform: scale(1.5);
            }
        }
    }
}

#title {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    color: #fff;
    text-align: right;
    z-index: -2;

    h1 {
        font-size: 5rem;
        margin: 0;
        padding: 0;
        color: #fff;
    }

    h2 {
        font-size: 3rem;
        margin: 0;
        padding: 0;
    }
}

#title.dp {
    top: 3rem;
    bottom: unset;
}

#scroll {
    padding: 25vw 3rem 3rem 25vw;
    color: #fff;
    text-align: right;

    p {
        margin: 0 0 0.5rem 0;
    }

    .gallery {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        padding-top: 3rem;

        img,
        video {
            width: 30vw;
            height: 30vw;
            object-fit: cover;
            cursor: pointer;
        }

        .gallery-item {
            position: relative;
            display: inline-block;
            background-color: #000;
            width: 30vw;
            height: 30vw;

            .download {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                text-align: center;
                width: 30vw;
                height: 30vw;
                color: #babac4;
            }
        }

        .gallery-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 30vw;
            background-color: #0008;
            backdrop-filter: blur(10px);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: all 0.3s ease-in-out;

            a:link {
                color: #fff !important;
            }

            a:hover {
                color: #babac4;
            }

            a:visited {
                color: #babac4 !important;
            }

        }

        .gallery-item:hover .gallery-overlay {
            opacity: 1;
        }
    }
}

@media (max-width: 1000px) {
    #title {
        h1 {
            font-size: 3rem;
        }

        h2 {
            font-size: 2rem;
        }
    }

    #title.dp {
        top: 6rem;
        max-width: calc(100vw - 3rem);
        right: 2rem;
    }

    #scroll {
        padding: 20rem 1rem 3rem 3rem;

        .gallery {

            img,
            video {
                width: calc(100vw - 6rem);
                height: calc(100vw - 6rem);
            }

            .gallery-item {
                width: calc(100vw - 6rem);
                height: calc(100vw - 6rem);

                .download {
                    width: calc(100vw - 6rem);
                    height: calc(100vw - 6rem);
                }
            }

            .gallery-overlay {
                width: calc(100vw - 6rem);
                height: calc(100vw - 6rem);
            }


        }
    }

    header {
        flex-direction: column;
        align-items: stretch;

        a {
            width: 100vw;
            min-height: 4rem;
            font-size: 2.5rem;
            height: auto;
            padding-top: 1rem;
            font-variation-settings:
                'wdth' 150,
                'wght' 1000;



            .text {
                display: none;
            }
        }

        a:hover {
            height: auto;

            .text {
                opacity: 1;
                writing-mode: tb;

                h3 {
                    color: #fff;
                }

            }
        }

        .more {
            width: 100vw;
            height: auto;
            flex-wrap: wrap;

            a {
                width: 50vw;
                height: auto;
                min-height: 4rem;
                padding: 0.5rem 0;
                justify-content: center;
                gap: 0.25rem;

                .icon {
                    padding-top: 0;
                }

                p {
                    font-size: 1rem;
                    color: #000;
                }
            }

            a:hover {
                height: 4rem;

                .icon {
                    transform: scale(1.2);
                }

                p {
                    color: #fff;
                }
            }
        }

        .more.dp a {
            width: 100vw;
        }
    }
}