@font-face {
    font-family: "Playfair Display";
    src: url('./assets/fonts/PlayfairDisplay-VariableFont.ttf') format('truetype');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Playfair Display";
    src: url('./assets/fonts/PlayfairDisplay-Italic-VariableFont.ttf') format('truetype');
    font-weight: 400 900;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "PlayfairDisplay Variable";
    src: url('./assets/fonts/PlayfairDisplay-VariableFont.ttf') format('truetype');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "PlayfairDisplay Variable Italic";
    src: url('./assets/fonts/PlayfairDisplay-Italic-VariableFont.ttf') format('truetype');
    font-weight: 400 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --bg: #100E0F;
    --fg: #e5dcd9;
    --alt: #948b89;
    --font-title: "PlayfairDisplay Variable";
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg);
    color: var(--fg);
    font-family: var(--font-title);
}

header {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: clamp(1rem, 1.25vw, 2rem);
    top: clamp(0.5rem, 0.625vw, 1rem);
    right: clamp(2rem, 2.5vw, 4rem);
    right: clamp(1.5rem, 2.1875rem, 3.5rem);
    flex-direction: row;
    gap: 3.5rem;
    z-index: 1000;
}

header > div > a {
    color: inherit;
    text-decoration: none;
    font-family: var(--font-title);
    font-size: clamp(0.5rem, 1.15vw, 1.8rem);
}

main {
    width: 100vw;
    height: 100vh;
    display: flex;
}

.hero-toast {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: end;
    padding-left: 8vw;
    padding-bottom: 15vh;
}

.reveal-wrapper {
    position: relative;
}

.title {
    font-size: clamp(2.5rem, 7.5vw, 12rem);
    font-style: italic;
    font-family: "PlayfairDisplay Variable Italic";
    font-weight: 400;
}

#home .title {
    font-size: clamp(4rem, 8.75vw, 14rem);
}

.subtitle {
    font-size: 2rem;
    color: var(--alt);
    font-family: "PlayfairDisplay Variable";
    font-weight: 200;
}

.hero-about-wrapper {
    position: relative;
    width: 100vw;
}

.sticky-ascii-layer {
    position: absolute;
    top: 0;
    right: 0;
    width: 50vw;
    height: calc(200vh - 38vh);
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
    z-index: 1;
    transform: translateZ(0);
    will-change: transform;
}

.sticky-ascii-layer .ascii-container {
    position: sticky;
    top: 15vh;
    margin-right: 5vw;
    width: 80%;
    height: 65vh;
    pointer-events: auto;
}

#home {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: row;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

#home .hero-toast {
    pointer-events: auto;
}

.hero-toast > .subtitle {
    font-size: clamp(1.5rem, 1.875vw, 3rem);
    transform: translate(0, clamp(-2.5rem, -2.875vw, -3rem));
}

.highlight {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: end;
    align-items: center;
}

.highlight .ascii-container {
    margin-right: 10vw;
    width: 60%;
    height: 70%;
}

.aside {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 1rem;
    width: 100%;
}

.aside > * {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#about {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

#about .aside {
    pointer-events: none;
}

#about .text,
#about .title {
    pointer-events: auto;
}

#about .text {
    color: var(--alt);
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: column;
    width: 50%;
    text-align: justify;
    /* font-size: 1.8rem; */
    font-size: clamp(0.5rem, 1.15vw, 1.8rem);
    padding-top: 25vh;
    margin-left: 8vw;
    gap: 3rem;
}

#about > .aside > :last-child {
    display: flex;
    height: 100%;
    width: 100%;
    align-items: end;
    justify-content: end;
    padding-bottom: 10vh;
    padding-right: 5vw;
}

#showcase {
    padding-top: 10vh;
    padding-left: 5vw;
}

#showcase > .aside > *:first-child{
    width: 75%;
}

#showcase > .aside > .text {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 5vh;
}

#showcase .subtitle {
    transform: translate(2rem, -2rem)
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
}

ul > li {
    font-size: clamp(1.2rem, 1.4vw, 1.55rem);
    position: relative;
    padding: 0.35rem 1.2rem 0.35rem 0.5rem;
    cursor: pointer;
    border-radius: 6px;
    color: #9e9494;
    transition: color 0.25s ease, background-color 0.25s ease;
}

ul > li a {
    display: flex;
    justify-content: start;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1); 
}

ul > li:hover,
ul > li.active {
    background-color: rgba(148, 139, 137, 0.15);
    color: var(--fg);
}

ul > li:hover a,
ul > li.active a {
    transform: translateX(8px);
}

ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    background-color: var(--fg);
    border-radius: 4px;
    opacity: 0;
    transform: scaleY(0.5);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1);
}

ul > li:hover::before,
ul > li.active::before {
    opacity: 1;
    transform: scaleY(1);
}

@media (max-width: 1200px) {
    header {
        gap: 2.5rem;
        right: 2.5rem;
    }

    #about .text {
        width: 55%;
        padding-top: 20vh;
    }
}

@media (max-width: 1200px) {
    header {
        gap: 2.5rem;
        right: 2.5rem;
    }

    #about .text {
        width: 55%;
        padding-top: 20vh;
    }
}

@media (max-width: 992px) {
    header {
        gap: 2rem;
        right: 2rem;
        top: 1rem;
        margin: 1rem;
    }

    header > div > a {
        font-size: 1.15rem;
        font-weight: 500;
    }

    main {
        width: 100vw;
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
    }

    .hero-about-wrapper {
        display: flex;
        flex-direction: column;
        width: 100vw;
        position: relative;
    }

    #home {
        order: 1;
        width: 100vw;
        height: auto;
        min-height: calc(100svh - clamp(160px, 26vh, 240px));
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: clamp(5.5rem, 14vh, 8rem) 6vw 1rem 6vw;
        box-sizing: border-box;
        position: relative;
        z-index: 2;
        pointer-events: auto;
    }

    .hero-toast {
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    #home .title {
        font-size: clamp(3.8rem, 15vw, 8rem);
        line-height: 1;
    }

    .hero-toast > .subtitle {
        font-size: clamp(1.3rem, 4.5vw, 2.4rem);
        transform: none;
        margin-top: 0.5rem;
    }

    .sticky-ascii-layer {
        order: 2;
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100vw;
        height: clamp(160px, 26vh, 240px);
        display: flex;
        justify-content: flex-start;
        align-items: stretch;
        padding: 0 6vw;
        box-sizing: border-box;
        margin: 0 0 clamp(1.5rem, 3vh, 2.5rem) 0;
        pointer-events: auto;
        z-index: 2;
        transform: none;
        will-change: auto;
    }

    .sticky-ascii-layer .ascii-container {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        margin: 0;
        width: 100%;
        height: 100%;
        pointer-events: auto;
    }

    #about {
        order: 3;
        width: 100vw;
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
        position: relative;
        z-index: 2;
        pointer-events: auto;
        display: flex;
        align-items: center;
    }

    #about .aside {
        flex-direction: column-reverse;
        justify-content: center;
        align-items: flex-start;
        padding: 8vh 6vw;
        gap: 2.5rem;
        width: 100%;
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
        box-sizing: border-box;
        pointer-events: auto;
    }

    #about > .aside > :last-child {
        width: 100%;
        height: auto;
        padding: 0;
        justify-content: flex-start;
        align-items: flex-start;
    }

    #about .title {
        font-size: clamp(3.2rem, 12vw, 6.5rem);
        text-align: left;
    }

    #about .text {
        width: 100%;
        margin-left: 0;
        padding-top: 0;
        text-align: left;
        font-size: clamp(1.05rem, 2.8vw, 1.4rem);
        line-height: 1.65;
        gap: 1.8rem;
    }

    #showcase {
        width: 100vw;
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
        padding: 10vh 6vw 8vh 6vw;
        box-sizing: border-box;
        display: flex;
        align-items: center;
    }

    #showcase > .aside {
        flex-direction: column;
        align-items: flex-start;
        gap: 2.5rem;
        width: 100%;
        height: auto;
    }

    #showcase > .aside > *:first-child {
        width: 100%;
    }

    #showcase > .aside > .text {
        width: 100%;
        gap: 2rem;
    }

    #showcase .title {
        font-size: clamp(3.2rem, 12vw, 6rem);
    }

    #showcase .subtitle {
        transform: none;
        margin-top: 0.5rem;
        font-size: clamp(1.15rem, 3.5vw, 1.8rem);
    }

    ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    ul > li {
        font-size: clamp(1rem, 2.5vw, 1.25rem);
        padding: 0.45rem 0.95rem;
    }

    ul > li a {
        transform: none;
    }

    ul > li:hover a,
    ul > li.active a {
        transform: none;
    }

    ul > li::before {
        display: none;
    }
}

@media (max-width: 768px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        margin: 0;
        padding: 1.1rem 1.2rem;
        justify-content: center;
        gap: clamp(0.85rem, 4vw, 2rem);
        width: 100%;
        background: rgba(16, 14, 15, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 1000;
    }

    header > div > a {
        font-size: clamp(1.1rem, 4.2vw, 1.35rem);
        font-weight: 500;
    }

    #home {
        min-height: calc(100svh - clamp(150px, 26vh, 220px));
        padding: clamp(5rem, 14vh, 7.5rem) 6vw 1rem 6vw;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #home .title {
        font-size: clamp(3.5rem, 16vw, 6.8rem);
    }

    .hero-toast > .subtitle {
        font-size: clamp(1.25rem, 5vw, 2.1rem);
        margin-top: 0.35rem;
    }

    .sticky-ascii-layer {
        padding: 0 6vw;
        height: clamp(150px, 26vh, 220px);
        margin-top: 0;
        margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
    }

    .sticky-ascii-layer .ascii-container {
        width: 100%;
        height: 100%;
    }

    #about .aside {
        padding: 6vh 6vw;
        gap: 2rem;
    }

    #about .title {
        font-size: clamp(3rem, 13vw, 5rem);
    }

    #about .text {
        font-size: clamp(1rem, 4vw, 1.2rem);
        line-height: 1.6;
        gap: 1.4rem;
    }

    #showcase {
        padding: 8vh 6vw;
    }

    #showcase .title {
        font-size: clamp(3rem, 13vw, 5rem);
    }

    #showcase .subtitle {
        font-size: clamp(1.05rem, 4vw, 1.45rem);
    }

    ul {
        gap: 0.45rem;
    }

    ul > li {
        font-size: clamp(0.92rem, 3.4vw, 1.08rem);
        padding: 0.4rem 0.85rem;
    }
}

/* Small Mobile Devices (<= 480px) */
@media (max-width: 480px) {
    header {
        padding: 0.95rem 0.6rem;
        gap: clamp(0.5rem, 2.8vw, 1.1rem);
    }

    header > div > a {
        font-size: clamp(1rem, 4vw, 1.2rem);
        font-weight: 500;
    }

    #home {
        min-height: calc(100svh - clamp(130px, 24vh, 180px));
        padding: 5rem 5vw 0.8rem 5vw;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #home .title {
        font-size: clamp(3rem, 17vw, 4.8rem);
    }

    .hero-toast > .subtitle {
        font-size: clamp(1.1rem, 5.2vw, 1.6rem);
    }

    .sticky-ascii-layer {
        padding: 0 5vw;
        height: clamp(130px, 24vh, 180px);
        margin-top: 0;
        margin-bottom: 1.5rem;
    }

    .sticky-ascii-layer .ascii-container {
        width: 100%;
        height: 100%;
    }

    #about .aside {
        padding: 4vh 5vw;
    }

    #about .title {
        font-size: clamp(2.6rem, 14vw, 4rem);
    }

    #about .text {
        font-size: 0.98rem;
    }

    #showcase {
        padding: 6vh 5vw;
    }

    #showcase .title {
        font-size: clamp(2.6rem, 14vw, 4rem);
    }

    ul > li {
        font-size: 0.88rem;
        padding: 0.35rem 0.75rem;
    }
}



