*,
html {
    margin: 0;
    padding: 0;
}
:root {
    overscroll-behavior: none;
}
body {
    background-color: #2c2b27;
    display: flex;
    flex-direction: column;
    height: 100vh;
    box-sizing: border-box;
    font-family: "Martian Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    text-transform: uppercase;
    color: #2c2b27;
}
@font-face {
  font-family: "Right Sans";
  src:
    url("/assets/fonts/PPRightSans.otf") format("opentype"),
    url("/assets/fonts/PPRightSans.woff") format("woff");
}
.animation-wrapper {
    background-color: #dcd8c9;
    display: flex;
    height: 100vh;
    box-sizing: border-box;
    font-family: "Martian Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    text-transform: uppercase;
    color: #2c2b27;
    width: 100%;
}
.fullwidth-username {
    width: 100%;
    height: auto;
    position: absolute;
    bottom: 0;
    left: 0;
    opacity: 0.4;
}

.body-wrapper {
    position: relative;
    box-sizing: border-box;
    height: 100%;
    width: 100%;
}

.nav-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-size: 12px;
}

.nav-row {
    display: flex;
    flex-direction: row;
    gap: 48px;
    min-width: 220px;
}

ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

ul li a {
    text-decoration: none;
    color: #2c2b27;
    margin: 0 -0.25rem;
    padding: 0 0.25rem;
    transition:
        color 0.3s ease-out,
        box-shadow 0.3s ease-in-out;
    box-shadow: inset 0 0 0 0 #2c2b27;
}
a:hover {
    box-shadow: inset 200px 0 0 0 #2c2b27;
    color: #dcd8c9;
}

.nav-wrapper p {
    min-width: 220px;
    opacity: 0;
}

h1 {
    /*font-size: 86px;*/
    font-size: 148px;
    /*line-height: 90%;*/
    line-height: 77%;
    /* font-family: impact;*/
    font-family: "Right Sans";
    font-stretch: extra-condensed;
    width: fit-content;
}

.animation {
    position: absolute;
    height: 90vh;
    bottom: -36px;
    left: 50%;
    transform: translate(-50%);
    z-index: 2;
    pointer-events: none;
    will-change: transform;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 200px;
}

.title {
    opacity: 0;
}

.center {
    text-align: center;
}

.btn {
    padding: 8px 16px;
    background-color: #dcd8c9;
    border: 1px solid #2c2b27;
    border-radius: 48px;
    font-size: 14px;
    margin: 0;
    transition: 0.2s ease-in-out;
    cursor: pointer;
    background-clip: padding-box;
    text-decoration: none;
    color: #2c2b27;
    width: fit-content;
}

.btn:hover {
    transform: translate(-6px, -6px);
    box-shadow: 6px 6px 0 #2c2b27;
    color: #2c2b27;
    margin: 0;
    transition: 0.2s ease-in-out;
}

.headings {
    z-index: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: fit-content;
}

.btn-group {
    position: absolute;
    display: flex;
    flex-direction: row;
    gap: 8px;
    z-index: 3;
}

.bg {
    position: fixed;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200vh;
    background: transparent url("/assets/img/noise-transparent.png") repeat 0 0;
    background-repeat: repeat;
    /*animation: bg-animation 0.2s infinite;*/
    animation: noise-animation 0.4s steps(10) infinite;
    opacity: 0.9;
    visibility: visible;
    z-index: 4;
    pointer-events: none;
    will-change: background-position;
    transform: translateZ(0);
}

@keyframes bg-animation {
    0% {
        transform: translate(0, 0);
    }
    10% {
        transform: translate(-5%, -5%);
    }
    20% {
        transform: translate(-10%, 5%);
    }
    30% {
        transform: translate(5%, -10%);
    }
    40% {
        transform: translate(-5%, 15%);
    }
    50% {
        transform: translate(-10%, 5%);
    }
    60% {
        transform: translate(15%, 0);
    }
    70% {
        transform: translate(0, 10%);
    }
    80% {
        transform: translate(-15%, 0);
    }
    90% {
        transform: translate(10%, 5%);
    }
    100% {
        transform: translate(5%, 0);
    }
}
@keyframes noise-animation {
    0% {
        background-position: 0 0;
    }
    10% {
        background-position: -5% -5%;
    }
    20% {
        background-position: -10% 5%;
    }
    30% {
        background-position: 5% -10%;
    }
    40% {
        background-position: -5% 15%;
    }
    50% {
        background-position: -10% 5%;
    }
    60% {
        background-position: 15% 0;
    }
    70% {
        background-position: 0 10%;
    }
    80% {
        background-position: -15% 0;
    }
    90% {
        background-position: 10% 5%;
    }
    100% {
        background-position: 5% 0;
    }
}

@keyframes turn-off {
    0% {
        transform: scale(1, 1);
        filter: brightness(1);
        opacity: 1;
        background-color: #dcd8c9;
        display: flex;
        box-sizing: border-box;
        font-family: "Martian Mono", monospace;
        font-optical-sizing: auto;
        font-weight: 400;
        font-style: normal;
        font-variation-settings: "wdth" 100;
        text-transform: uppercase;
        color: #2c2b27;
        overflow: hidden;
    }
    60% {
        transform: scale(1.3, 0.001);
        filter: brightness(10);
    }
    100% {
        transform: scale(0, 0.0001);
        filter: brightness(50);
        background-color: #000;
    }
}

@keyframes turn-off-alt {
    0% {
        background-color: #dcd8c9;
    }
    100% {
        background-color: #2c2b27;
    }
}

.animation-wrapper {
    animation: turn-off 0.55s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-direction: reverse;
}

.right {
    right: 0;
    bottom: 0;
}

.left {
    left: 0;
    bottom: 0;
}

*.fade-up,
*.fade-up-2,
*.fade-up-3,
*.fade-up-4 {
    opacity: 0;
}

.vhs {
    flex: none;
    height: 100vh;
    left: 0;
    mix-blend-mode: screen;
    pointer-events: none;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 5;
}
.vhs video {
    cursor: auto;
    width: 100%;
    height: 100%;
    border-radius: 0;
    display: block;
    object-fit: cover;
    background-color: rgba(0, 0, 0, 0);
    object-position: 50% 50%;
}
.btn img {
    width: 20px;
    height: 20px;
}

.btn.round {
    width: 44px;
    height: 44px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.xl {
    line-height: 20px;
}

.cloud-wrapper {
    z-index: 1;
    width: 120%;
    position: absolute;
    bottom: -48px;
    left: -64px;
    overflow: hidden;
    pointer-events: none;
}

.cloud-track {
    display: flex;
    align-items: flex-end;
    width: max-content;
    animation: clouds-marquee 60s linear infinite;
    will-change: transform;
}

.clouds {
    width: 100vw;
    flex-shrink: 0;
}

@keyframes clouds-marquee {
    from {
        transform: translateX(-100vw);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes clouds-marquee-reverse {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100vw);
    }
}

.title-list {
    max-width: none;
    gap: 16px;
}

.proj {
    height: 100vh;
    display: flex;
}

.small-pfp {
    width: 32px;
    height: 32px;
    border: 1px solid #2c2b27;
    border-radius: 32px;
}

.pfp-container {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

/* ===== FIXED ANIMATED SHELL ===== */

body {
    margin: 0;
    overflow: hidden;
}

.animation-wrapper {
    position: fixed;
    inset: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* ===== SCROLLABLE CONTENT ===== */

.scene {
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding-top: 32px;
    padding-bottom: 32px;
    padding-left: 64px;
    padding-right: 64px;
    box-sizing: border-box;
    width: 100vw;
    overflow: hidden;
}

/* ===== HERO ===== */

.hero {
    height: 100%;
    position: relative;
}

/* ===== PROJECTS ===== */

.projects {
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
}

.projects-track {
    display: flex;
    height: 100%;
    width: max-content;
}

.project {
    min-width: 100vw;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    border-right: 1px solid #2c2b27;
    scroll-snap-align: start;
}
.transition-warpper {
    position: relative;
}

.reverse {
    align-items: flex-start;
    animation: clouds-marquee-reverse 60s linear infinite;
}

/* Responsive */

@media (max-width: 1111px) {
    .animation {
        position: absolute;
        height: 70vh;
        bottom: -36px;
        left: 50%;
        transform: translate(-50%);
        z-index: 2;
        pointer-events: none;
        will-change: transform;
    }

    .nav-row{
        margin-top: 48px;
        max-width: 40%;
        flex-wrap: wrap;
        row-gap: 16px;
    }
    .nav-row ul:first-child{
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 970px) {
    h1{
        font-size: 128px;
    }
    .scene{
        padding-top: 24px;
        padding-bottom: 24px;
        padding-left: 32px;
        padding-right: 32px;
    }
}

@media (max-width: 760px) {
    h1{
        font-size: 96px;
    }
    .nav-row {
        max-width: 50%;
    }
}

@media (max-width: 600px) {
    h1{
        font-size: 96px;
    }
    .scene{
        padding-top: 24px;
        padding-bottom: 24px;
        padding-left: 24px;
        padding-right: 24px;
        height: 100vh;
    }
    .nav-row {
        max-width: none;
        margin-top: 24px;
    }
    .nav-wrapper{
        flex-direction: column;
    }
    .animation{
         height: 110vw;
    }
    .cloud-wrapper {
        z-index: 1;
        width: 100vw;
        position: absolute;
        bottom: -24px;
        left: -24px;
        overflow: hidden;
        pointer-events: none;
    }
    .clouds {
        width: 200vw;
        flex-shrink: 0;
    }

}

@media (max-height: 700px) {
    .animation{
         height: 40vh;
    }
    body{
        overflow: hidden;
        width:100vw;
    }
    body{
        animation: turn-off-alt 0.75s cubic-bezier(0.23, 1, 0.32, 1) forwards;
        animation-direction: reverse;
    }
    .right{
        right: 8px;
        bottom: 8px;
    }
}

@media (max-width: 320px) {
    h1{
        font-size: 64px;
    }
}