/* ========================================
   RESET & GLOBAL STYLES
======================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.2;
    color: #000;
    background: #fff;
    animation: pageFade 0.8s ease-out both;
}

a {
    color: inherit;
    text-decoration: none;
}

main {
    padding: 0 30px;
}


/* ========================================
   PROJECT HEADERS
======================================== */

.project-header {
    display: flex;
    justify-content: center;
    padding: 20px 60px 0;
    font-size: 30px;
    font-weight: 200;
    line-height: 1.05;
}

.project-header a:hover {
    opacity: 0.5;
}

.project-header-empty a {
    visibility: hidden;
}


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

.project {
    position: relative;
    z-index: 10;
    display: block;
    margin-bottom: 30px;
    color: inherit;
    animation: projectRise 1.1s ease-out both;
}

.project_01 {
    padding-top: 20px;
}

.project-image {
    position: relative;
    width: 55%;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    overflow: hidden;
    background: transparent;
}

.project-link {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: block;
}

.project-image iframe {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.project-poster {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.8s ease;
}

.project-image:hover {
    opacity: 0.8;
}


/* Homepage image alignment */

.project_02 .project-image,
.project_05 .project-image,
.project_08 .project-image {
    margin-left: 0;
}

.project_03 .project-image,
.project_06 .project-image,
.project_09 .project-image {
    margin-right: 0;
    margin-left: auto;
}

.project_04 .project-image,
.project_10 .project-image,
.project_07 .project-image {
    margin-right: auto;
    margin-left: auto;
}

.project_07 .project-image {
    width: 50%;
}

.project_07 .project-image iframe,
.project_07 .project-poster {
    transform: scale(1.12);
}


/* Homepage project animation delays */

.project:nth-child(1)  { animation-delay: 0.05s; }
.project:nth-child(2)  { animation-delay: 0.10s; }
.project:nth-child(3)  { animation-delay: 0.15s; }
.project:nth-child(4)  { animation-delay: 0.20s; }
.project:nth-child(5)  { animation-delay: 0.25s; }
.project:nth-child(6)  { animation-delay: 0.30s; }
.project:nth-child(7)  { animation-delay: 0.35s; }
.project:nth-child(8)  { animation-delay: 0.40s; }
.project:nth-child(9)  { animation-delay: 0.45s; }
.project:nth-child(10) { animation-delay: 0.50s; }


/* ========================================
   WORK PAGE
======================================== */

.work-project {
    margin-bottom: 200px;
}

#project-01 {
    margin-bottom: 0;
}

.work-project .project-header {
    position: sticky;
    top: 0;
    z-index: 20;
    justify-content: flex-start;
    padding: 20px 0 10px;
    background: #fff;
}


/* ========================================
   INDIVIDUAL PROJECT PAGES
======================================== */

.project-intro {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding-top: 20px;
    animation: projectPageRise 1.1s ease-out both;
}

.project-film {
    width: 65%;
}

.video {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.project-description {
    width: 35%;
    padding-right: 20px;
}

.project-description p {
    font-size: 30px;
    font-weight: 200;
    line-height: 1.05;
}

.project-stills {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 20px;
    animation: projectPageRise 1.1s ease-out both;
}

.project-stills img {
    display: block;
    width: 100%;
    height: auto;
}

.project-intro {
    animation-delay: 0.1s;
}

.project-stills {
    animation-delay: 0.2s;
}


/* ========================================
   FOOTER
======================================== */

footer {
    padding: 20px 0 60px;
    animation: projectPageRise 1.1s ease-out both;
    animation-delay: 0.3s;
}

.footer-left {
    width: 50%;
}

.about-text {
    max-width: 700px;
    margin-bottom: 40px;
}

.about-text p,
.contact {
    font-size: 30px;
    font-weight: 200;
    line-height: 1.05;
}

.contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


/* ========================================
   ANIMATIONS
======================================== */

@keyframes pageFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes projectRise {
    from {
        opacity: 0;
        transform: translateY(11%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes projectPageRise {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

    /* GLOBAL */

    main {
        padding: 0;
    }


    /* PROJECT HEADERS */

    .project-header {
        padding: 15px 0 0;
        font-size: 30px;
    }


    /* HOMEPAGE PROJECTS */

    .project {
        margin: 0px;
        padding: 0;
    }

    .project_01 {
        padding-top: 0px;
    }

    .project-image {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .project-poster,
    .project-image iframe {
        display: block;
        width: 100%;
    }


    /* WORK PAGE */

    .work-project {
        margin-bottom: 100px;
    }

    #project-01 {
        margin-bottom: 100px;
    }

    .work-project .project-header {
        padding: 15px 0 10px;
    }


    /* INDIVIDUAL PROJECT PAGES */

    .project-intro {
        flex-direction: column;
        gap: 20px;
        padding-top: 15px;
    }

    .project-film {
        width: 100%;
    }

    .project-description {
        width: 100%;
        padding-right: 0;
    }

    .project-description p {
        font-size: 30px;
        line-height: 1.05;
    }

    .project-stills {
        gap: 15px;
        padding-top: 20px;
    }


    /* FOOTER */

    footer {
        padding: 20px 0 40px;
    }

    .footer-left {
        width: 100%;
    }

    .about-text {
        margin-bottom: 30px;
    }

    .about-text p,
    .contact {
        font-size: 30px;
        line-height: 1.05;
    }

    .project_07 .project-image iframe,
    .project_07 .project-poster {
    transform: scale(1.1);
    }

    .project_07 .project-image {
        width: 100%;
    }
}