html,
body{
    min-height: 100%;
    overflow: hidden;
    background-color: #D7D7D7;
}

body{
    margin: 0;
}

.container{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 1080px;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 20px);
    box-sizing: border-box;
}

.name{
    font-family: 'Gontserrat', sans-serif;
    text-align: center;
    color: #434343;
    font-weight: 400;
    opacity: 0;
    font-size: clamp(16px, 2.4vw, 30px);
    transform: translateY(-80px);
    transition: opacity 900ms ease, transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0ms;
    cursor: default;
    user-select: none;
}

.name h2{
    margin: 0;
    font-size: inherit;
    font-weight: 400;
}

.hero{
    position: absolute;
    top: 49%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: left;
    gap: clamp(20px, 3.4vw, 43.75px);
    width: calc(100% - clamp(32px, 8vw, 40px));
    max-width: 1125px;
    cursor: default;
    user-select: none;
}

.lottie{
    width: 100%;
    aspect-ratio: 2.7 / 1;
    overflow: hidden;
}

.lottie lottie-player{
    display: block;
    width: 118%;
    height: 212%;
    transform: translate(-7.5%, -26.5%);
}

.header{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;

    font-family: 'Gontserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(54px, 11vw, 140.625px);
    color: #434343;
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 900ms ease, transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 260ms;
}

.header h1{
    margin: 0;
    font-size: inherit;
    line-height: 0.95;
}

.subhead{
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: clamp(-12.5px, -1vw, -5px);

    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: clamp(20px, 4vw, 50px);
    color: #434343;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 900ms ease, transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 420ms;
}

.subhead p{
    margin: 0;
    line-height: 1.25;
}

.mobile-copy{
    display: none;
}

.sm{
    margin-top: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: clamp(32px, 5vw, 60px);
    
    color: #434343;
    font-family: 'Gontserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(24px, 4vw, 40px);
    text-decoration: none;
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 900ms ease, transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 700ms;
}

.intro-ready .name{
    opacity: 50%;
    transform: translateY(0);
}

.intro-ready .header,
.intro-ready .subhead,
.intro-ready .sm{
    opacity: 1;
    transform: translateY(0);
}

.sm button{
    color: #434343;
    text-decoration: none;
}

.sm button{
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    font: inherit;
    position: relative;
    display: inline-block;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) and (min-width: 901px){
    .sm button::before,
    .sm button::after{
        position: absolute;
        left: 50%;
        pointer-events: none;
        opacity: 0;
        transition: opacity 260ms ease, transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
    }

    .sm button::before{
        content: "";
        bottom: calc(100% + 14px);
        width: 12px;
        height: 12px;
        background-color: #434343;
        transform: translate(-50%, 16px) rotate(45deg) scale(0.8);
    }

    .sm button::after{
        bottom: calc(100% + 20px);
        padding: 10px 16px;
        border-radius: 999px;
        background-color: #434343;
        color: #E6E6E6;
        font-family: 'Manrope', sans-serif;
        font-size: 16px;
        font-weight: 400;
        line-height: 1;
        white-space: nowrap;
        transform: translate(-50%, 20px) scale(0.9);
    }

    .sm button.linkedin::after{
        content: "LinkedIn";
    }

    .sm button.instagram::after{
        content: "Instagram";
    }

    .sm button:hover::before,
    .sm button:hover::after,
    .sm button:focus-visible::before,
    .sm button:focus-visible::after{
        opacity: 1;
    }

    .sm button:hover::before,
    .sm button:focus-visible::before{
        transform: translate(-50%, 0) rotate(45deg) scale(1);
    }

    .sm button:hover::after,
    .sm button:focus-visible::after{
        transform: translate(-50%, 0) scale(1);
    }
}

@media (max-width: 900px){
    html,
    body{
        overflow: hidden;
    }

    .container{
        min-height: 100svh;
    }

    .hero{
        top: 50%;
        max-width: 760px;
    }
}

@media (max-width: 600px){
    .container{
        padding-top: 24px;
        padding-bottom: 28px;
    }

    .hero{
        top: 48%;
        gap: 16px;
        width: calc(100% - 40px);
    }

    .lottie{
        aspect-ratio: 2.45 / 1;
    }

    .header{
        align-items: center;
        text-align: center;
        font-size: clamp(38px, 11vw, 54px);
    }

    .subhead{
        align-items: center;
        text-align: center;
        font-size: clamp(17px, 4.8vw, 24px);
    }

    .header,
    .subhead{
        width: 90%;
    }

    .desktop-copy{
        display: none;
    }

    .mobile-copy{
        display: inline;
    }

    .sm{
        gap: 32px;
    }
}
