@import url("https://use.typekit.net/fwu2ryy.css");

html{
    font-family: "owners", sans-serif;
    font-weight: 200;
    font-style: normal;
    letter-spacing: .1rem;
}

body{
    font-family: "owners", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: white;
    padding: 0;
    margin: 0;
}

header{
    width: 100%;
    height: 88px;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 20px 24px;
    justify-content: space-between;
    box-sizing: border-box;
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    border-bottom: 1px solid gray;
}

.logo{
    width: auto;
    height: 50px;
    display: block;
}

.logo-link {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.logo-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1.5px;
    background-color: black;
    opacity: 0;
}

.logo-link:hover::after {
    opacity: 1;
}

nav{
    display: flex;
    gap: 32px;
}

nav a{
    font-size: 16px;
    font-weight: 200;
    letter-spacing: 3;
    color: black;
    text-decoration: none;
}

nav a:hover{
    text-decoration: underline;
}

header p{
    font-size: 50px;
}

nav a.active{
    font-weight: 500;
}

.content{
    padding: 88px 20px 0px 20px;
    display: flex;
    flex-direction: row;
    gap: 24px;
}

section{
    min-width: 200px;
}

.intro{
    flex: 1;
    position: fixed;
    width: calc(50% - 40px);
    height: calc(100vh - 108px);
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    color: black;
    top: 88px;
    left: 20px;
    opacity: 0;
    transform: translateX(-30px);
    transition: 1s ease-out;
}

.title-subtitle{
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 40px;
}

.title-subtitle > p.title{
    font-size: 50px;
    font-weight: 500;
    margin: 20px 0px 0px 0px;
}

.title-subtitle > p.subtitle{
    font-size: 24px;
    font-weight: 200;
    margin: 0px;
    color: black;
}

.subtitle > a{
    color: gray;
    text-decoration: none;
}

.subtitle > a:hover{
    text-decoration: underline;
}

.info-description{
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    min-height: 0;
}

.info-row{
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
}

hr{
    margin: 5px 0px;
    color: gray;
}

.intro p{
    font-size: 24px;
    margin: 0;
}

.description-wrapper{
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    padding-right: 5px;
}

.description-wrapper p{
    font-size: 24px;
    margin: 0px 0px 20px 0px;
}

.strong{
    font-weight: 400;
}

.project-images{
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: calc(50%);
    border-left: 1px solid gray;
    border-right: 1px solid gray;
    padding-bottom: 0px;
}

.image{
    padding: 0 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out,
                transform 0.8s ease-out;
}

.image.reveal{
    opacity: 1;
    transform: translateY(0px);
}

.image img{
    width: 100%;
    transition: filter 0.4s ease-out;
}

.image img:hover{
    filter: brightness(70%);
}

.intro.loaded{
    opacity: 1;
    transform: translateX(0);
}

.footer{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 80px 20px 20px 20px;
    border-top: 1px solid gray;
}

.contact-icons{
    display: flex;
    gap: 20px;
}

.contact-icons a{
    color: black;
    text-decoration: none;
    font-size: 20px;
}

.contact-icons a:hover{
    color: gray;
}

.design-tag p{
    margin: 0;
    text-align: right;
    line-height: 1.2;
    font-size: 15px;
    font-weight: 400;
    color: black;
}

footer{
    display: none;
    border-top: 1px solid gray;
    padding: 20px 24px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 88px;
    box-sizing: border-box;
    background-color: white;
}

footer .contact-icons{
    display: flex;
    gap: 20px;
}

footer .contact-icons a{
    color: black;
    text-decoration: none;
    font-size: 20px;
}

footer .design-tag p{
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    color: black;
}

.reflection-container{
    position: fixed;
    bottom: 70px;
    right: 50px;
    z-index: 998;
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-end;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reflection-container.loaded{
    opacity: 1;
    transform: translateY(0);
}

.reflection-trigger{
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: black;
    color: white;
    font-size: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.reflection-trigger:hover{
    transform: scale(1.05);
}

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

.star{
    display: inline-block;
    line-height: 1;
    transform: translateX(1px);
}

.reflection-bubble{
    background: black;
    color: white;
    max-width: 400px;
    padding: 25px;
    border-radius: 12px;
    line-height: 1.2;
    font-size: 24px;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.reflection-bubble p{
    margin: 0px;
}

.reflection-trigger:hover + .reflection-bubble,
.reflection-bubble:hover{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.reflection-trigger:hover .star-wrap{
    animation: star-spin 2.5s linear infinite;
}

@keyframes star-spin{
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.reflection-container.active .reflection-bubble{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 1100px){
    .content{
        flex-direction: column;
        padding: 88px 20px 0px 20px;
        gap: 40px;
    }

    .intro{
        position: static;
        width: 100%;
        opacity: 1;
        transform: none;
        text-align: left;
    }

    .project-images{
        margin-left: 0;
        margin-right: 0;
        border-left: none;
        border-right: none;
        padding-left: 0;
        padding-bottom: 40px;
    }

    .image{
        padding: 0;
    }

    .reflection-container{
        position: sticky;
        bottom: 40px;
        margin-left: auto;
        margin-right: 20px;
        align-self: flex-end;
        z-index: 10;
    }

    .reflection-bubble{
        position: absolute;
        right: 100%;
        bottom: 0;
        margin-right: 12px;
        width: 400px;
    }

    .footer{
        display: none;
    }

    footer{
        display: flex;
    }
}

@media (max-width: 700px){
    header{
        height: 70px;
        padding: 15px 16px;
    }

    .logo{
        height: 40px;
    }

    header p{
        font-size: 32px;
    }

    nav a{
        font-size: 14px;
        gap: 20px;
    }

    .title-subtitle > p.title{
        margin: 0;
    }

    .intro p{
        font-size: 18px;
    }

    .image{
        padding: 0;
    }

    .image img{
        width: 100%;
    }

    .reflection-bubble{
        font-size: 18px;
        padding: 20px;
        width: 250px;
    }

    .reflection-container{
        right: 10px;
    }

    .footer{
        display: none;
    }
}

@media (max-width: 480px){
    nav{
        gap: 16px;
    }

    .intro p{
        font-size: 16px;
    }

    .info-row{
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 50px;
        align-items: start;
    }

    .info-row p:last-child{
        text-align: right;
    }

    .reflection-trigger{
        width: 60px;
        height: 60px;
        font-size: 40px;
    }

    .reflection-bubble{
        font-size: 16px;
        padding: 18px;
        width: 200px;
    }

    .reflection-container{
        margin-right: 10px;
    }

    footer{
        gap: 50px;
    }
    
    footer > .contact-icons a, 
    footer > .design-tag p{
        font-size: 14px;
    }

    footer > .design-tag p{
        text-align: right;
    }
}