/* ========================================
   RESET
======================================== */

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #aeb1b2;
    color: #ffffff;
    overflow-x: hidden;
}


/* ========================================
   TOP BAR
======================================== */

.topbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 26px;

    display: flex;
    align-items: center;

    padding: 0 18px;

    z-index: 1000;

    background: #181818;
}

.brand {
    color: #9b9b9b;
    text-decoration: none;

    font-size: 13px;
    font-weight: 400;

    transition: 0.3s ease;
}

.brand:hover {
    color: #ffffff;
}


/* ========================================
   HERO
======================================== */

.hero {
    position: relative;

    width: 100%;
    height: calc(100vh - 26px);

    min-height: 650px;

    margin: 26px 0 0;

    overflow: hidden;

    background: #aeb1b2;
}


/* ========================================
   BACKGROUND
======================================== */

.hero-bg {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(255,255,255,0.10),
            transparent 35%
        ),
        #aeb1b2;
}


/* ========================================
   CREDIT
======================================== */

.hero-credit {
    position: absolute;

    top: 24px;
    left: 40px;

    z-index: 20;

    font-size: 13px;
    font-weight: 400;

    color: rgba(255,255,255,0.92);

    letter-spacing: -0.2px;
}

.hero-credit span {
    opacity: 0.7;
}


/* ========================================
   DESCRIPTION
======================================== */

.hero-description {
    position: absolute;

    top: 24px;
    right: 40px;

    z-index: 20;

    max-width: 430px;

    text-align: right;

    color: rgba(255,255,255,0.9);

    font-size: 13px;
    line-height: 1.25;

    font-weight: 400;
}


/* ========================================
   PROFILE
======================================== */

.profile-wrapper {
    position: absolute;

    z-index: 5;

    left: 50%;
    bottom: -5px;

    transform: translateX(-50%);

    width: min(48vw, 590px);
    height: 86%;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    pointer-events: none;
}


/* Glow */

.profile-glow {
    position: absolute;

    width: 65%;
    height: 65%;

    top: 15%;

    border-radius: 50%;

    background: rgba(255,255,255,0.12);

    filter: blur(55px);
}


/* Image */

.profile-image {
    position: relative;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center bottom;

    filter:
        grayscale(100%)
        contrast(1.08)
        brightness(1.08);

    mix-blend-mode: multiply;

    user-select: none;

    opacity: 1;
}


/* ========================================
   GIANT TEXT
======================================== */

.giant-text {
    position: absolute;

    z-index: 10;

    left: 50%;
    top: 51%;

    transform: translate(-50%, -50%);

    width: max-content;

    pointer-events: none;

    white-space: nowrap;

    overflow: visible;
}

.giant-text span {
    display: block;

    font-size: clamp(100px, 15vw, 225px);

    line-height: 0.8;

    font-weight: 400;

    letter-spacing: -0.085em;

    color: #ffffff;

    opacity: 0.98;
}


/* ========================================
   FLOATING ARROW
======================================== */

.floating-arrow {
    position: absolute;

    z-index: 30;

    left: 67%;
    top: 38%;

    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,0.65);

    border-radius: 50%;

    color: #ffffff;

    text-decoration: none;

    font-size: 27px;

    transition:
        transform 0.35s ease,
        background 0.35s ease,
        color 0.35s ease;
}

.floating-arrow:hover {
    transform: rotate(45deg) scale(1.08);

    background: #ffffff;

    color: #777b7c;
}


/* ========================================
   DOCK
======================================== */

.dock {
    position: absolute;

    z-index: 100;

    left: 50%;
    bottom: 34px;

    transform: translateX(-50%);

    display: flex;
    align-items: center;

    padding: 7px;

    background: rgba(15,15,15,0.95);

    border-radius: 16px;

    box-shadow:
        0 12px 35px rgba(0,0,0,0.22);

    backdrop-filter: blur(15px);
}


/* Dock item */

.dock-item {
    position: relative;

    width: 37px;
    height: 37px;

    margin: 0 1px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #8f8f8f;

    text-decoration: none;

    border-radius: 50%;

    font-size: 13px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


/* Hover */

.dock-item:hover {
    color: #ffffff;

    transform: translateY(-3px);
}


/* Active */

.dock-item.active {
    background: #eeeeee;

    color: #242424;

    box-shadow:
        0 3px 12px rgba(255,255,255,0.12);
}


/* Special profile icon */

.dock-item.profile-icon {
    background: #7ed3e3;

    color: #17242a;
}


/* ========================================
   TOOLTIP
======================================== */

.dock-item::after {
    content: attr(data-tooltip);

    position: absolute;

    left: 50%;
    bottom: calc(100% + 10px);

    transform:
        translateX(-50%)
        translateY(5px);

    padding: 5px 8px;

    background: #171717;
    color: #ffffff;

    border-radius: 5px;

    font-size: 9px;

    white-space: nowrap;

    opacity: 0;

    pointer-events: none;

    transition: 0.25s ease;
}

.dock-item:hover::after {
    opacity: 1;

    transform:
        translateX(-50%)
        translateY(0);
}


/* ========================================
   DUMMY SECTIONS
======================================== */

.dummy-section {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #111111;

    color: #ffffff;
}

.dummy-section span {
    font-size: clamp(60px, 10vw, 160px);

    font-weight: 600;

    opacity: 0.08;
}


/* ========================================
   MOUSE PARALLAX
======================================== */

.profile-wrapper,
.giant-text,
.floating-arrow {
    transition:
        transform 0.15s cubic-bezier(.2,.7,.2,1);
}


/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 900px) {

    .hero {
        width: calc(100% - 20px);
        margin-left: 10px;
        margin-right: 10px;
    }

    .hero-credit {
        left: 20px;
        top: 20px;
    }

    .hero-description {
        right: 20px;
        max-width: 300px;

        font-size: 10px;
    }

    .profile-wrapper {
        width: 70vw;
        height: 80%;
    }

    .giant-text span {
        font-size: 17vw;
    }

    .floating-arrow {
        left: 70%;
        top: 39%;

        width: 55px;
        height: 55px;

        font-size: 20px;
    }
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

    .hero {
        min-height: 700px;
    }

    .hero-credit {
        top: 20px;
        left: 18px;

        font-size: 11px;
    }

    .hero-description {
        top: 20px;
        right: 18px;

        max-width: 170px;

        font-size: 9px;
        line-height: 1.3;
    }

    .profile-wrapper {
        width: 105vw;
        height: 75%;

        bottom: 20px;
    }

    .giant-text {
        top: 55%;
    }

    .giant-text span {
        font-size: 25vw;

        letter-spacing: -0.09em;
    }

    .floating-arrow {
        left: auto;
        right: 13%;

        top: 39%;

        width: 50px;
        height: 50px;

        font-size: 18px;
    }

    .dock {
        bottom: 22px;

        padding: 6px;

        border-radius: 14px;
    }

    .dock-item {
        width: 34px;
        height: 34px;

        font-size: 11px;
    }
}

/* ========================================
   LOADING SCREEN
======================================== */

.loader {
    position: fixed;

    inset: 0;

    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #111111;

    color: #ffffff;

    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
}


.loader.hide {
    opacity: 0;

    visibility: hidden;

    pointer-events: none;
}


/* ========================================
   LOADER CONTENT
======================================== */

.loader-content {
    width: 100%;

    height: 100%;

    padding: 30px 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
}


/* ========================================
   GREETING
======================================== */

.loader-greeting {
    font-size: clamp(55px, 9vw, 140px);

    font-weight: 400;

    letter-spacing: -0.07em;

    text-align: center;

    opacity: 0;

    transform: translateY(20px);

    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}


.loader-greeting.show {
    opacity: 1;

    transform: translateY(0);
}


/* ========================================
   LOADER BOTTOM
======================================== */

.loader-bottom {
    position: absolute;

    left: 40px;
    right: 40px;
    bottom: 30px;

    display: flex;

    justify-content: space-between;

    font-size: 9px;

    letter-spacing: 0.15em;

    color: #666666;
}


#loaderProgress {
    color: #ffffff;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

    .loader-content {
        padding: 20px;
    }

    .loader-greeting {
        font-size: 17vw;
    }

    .loader-bottom {
        left: 20px;
        right: 20px;
        bottom: 20px;

        font-size: 7px;
    }

}