/* ------------------------------
   GENERAL
------------------------------ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #0b0b0b;
    color: #eeeeeb;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
}


/* ------------------------------
   HEADER
------------------------------ */

.site-header {
    position: sticky;
    top: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 28px 36px;

    background: #0b0b0b;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
    white-space: nowrap;
}

.selection-label {
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #666;

    opacity: 1;
    transition: opacity 0.3s ease;
}

.selection-label.hidden {
    opacity: 0;
    pointer-events: none;
}

.logo {
    color: #eeeeeb;
    text-decoration: none;

    font-family: "DM Sans", sans-serif;
    font-size: 18px;
    font-weight: 400;
}

.contact-button {
    border: none;
    background: none;
    color: #eeeeeb;

    padding: 0;

    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: -0.025em;

    cursor: pointer;
}

.contact-button:hover {
    opacity: 0.5;
}


/* ------------------------------
   CONTACT POPUP
------------------------------ */

.contact-popup {
    position: fixed;

    top: 25px;
    right: 30px;

    width: 270px;

    padding: 28px;

    background: #eeeeeb;
    color: #0b0b0b;

    z-index: 20;

    display: none;
}

.contact-popup.open {
    display: block;
}

.close-contact {
    position: absolute;

    top: 12px;
    right: 16px;

    border: none;
    background: none;

    font-size: 22px;
    cursor: pointer;

    color: #0b0b0b;
}

.contact-label {
    margin: 0 0 25px;

    font-size: 12px;
    letter-spacing: 0.08em;
}

.contact-link {
    display: block;

    margin-bottom: 10px;

    font-family: "DM Sans", sans-serif;
    color: #0b0b0b;
    text-decoration: none;

    font-size: 14px;
}

.contact-link:hover {
    opacity: 0.5;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    font-family: "DM Sans", sans-serif;
    color: inherit;
    text-decoration: none;
    font-size: 14px;

}

.instagram-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.instagram-link:hover {
    opacity: 0.5;
}

.instagram-icon:hover {
    opacity: 0.5;
}

/* ------------------------------
   CATEGORY NAVIGATION
------------------------------ */

.category-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    gap: 28px;

    white-space: nowrap;
}

.category-button {
    border: none;
    background: none;

    color: #666;

    padding: 0;

    font-family: inherit;
    font-size: 20px;
    letter-spacing: 0.08em;

    cursor: pointer;

    transition: color 0.2s ease;
}

.category-button:hover {
    color: #eeeeeb;
}

.category-button.active {
    color: #eeeeeb;
}


/* ------------------------------
   PROJECT LIST
------------------------------ */


.project-list {
    width: min(760px, calc(100% - 48px));

    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 120px;
}

.project {
    margin-bottom: 70px;
}

.project-link {
    color: inherit;
    text-decoration: none;
    display: block;
}


/* ------------------------------
   PROJECT IMAGE
------------------------------ */

.project-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 10;

    border: 1px solid #babab8;
}

.project-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;

    filter: brightness(1);

    transition: filter 0.3s ease;
}

.project-overlay {
    position: absolute;

    left: 24px;
    bottom: 22px;

    z-index: 2;

    color: #eeeeeb;

    opacity: 0;

    transition: opacity 0.3s ease;

    pointer-events: none;
}

.project-overlay h2 {
    margin: 0 0 6px;

    font-family: "Montserrat", sans-serif;
    font-size: 22px;
    font-weight: 600;
}

.project-overlay p {
    margin: 0;

    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 400;

    color: #b5b5b0;
}

.project-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.25) 30%,
        rgba(0, 0, 0, 0) 60%
    );

    opacity: 0;

    transition: opacity 0.3s ease;

    pointer-events: none;
}

.project-link:hover .project-image::after {
    opacity: 1;
}

.project-link:hover .project-overlay {
    opacity: 1;
}

.project-link:active .project-image img {
    filter: brightness(0.65);
}

/*.placeholder {
    background: #181818;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #444;

    font-size: 10px;
    letter-spacing: 0.1em;
}*/

/*.project-link:hover .placeholder {
    background: #202020;
}*/


/* ------------------------------
   PROJECT INFO
------------------------------ */

.project-info h2 {
    margin: 26px 0 6px;

    font-size: 22px;
    font-weight: 400;

    letter-spacing: -0.025em;
}

.project-info p {
    margin: 0;

    color: #777;

    font-size: 18px;
    line-height: 1.5;
}


/* ------------------------------
   HIDDEN PROJECTS
------------------------------ */

.project.hidden {
    display: none;
}

/* ------------------------------
   FOOTER
------------------------------ */

.site-footer {
    width: 100%;
    padding: 80px 36px 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #666;
}

.footer-credit {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    letter-spacing: 0.04em;
}

.back-to-top {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: #e8e7e2;
    color: #111;

    font-family: "DM Sans", sans-serif;
    font-size: 18px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.back-to-top:hover {
    background: #ffffff;
    transform: translateY(-2px);
}

.back-to-top:active  {
    background: #910e0e;
}

.back-to-top {
    cursor: pointer;
}



.project-page {
    width: calc(100% - 72px);
    max-width: 1000px;
    margin: 0 auto;
}

.project-intro {
    padding: 60px 0 50px;
    max-width: 1000px;
}

.project-intro h1 {
    margin: 0 0 8px;

    font-family: "Montserrat", sans-serif;
    font-size: 32px;
    font-weight: 400;
}

.project-type {
    margin: 0 0 30px;

    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    color: #888;
}

.project-description {
    margin: 0;

    max-width: 1000px;

    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #b5b5b0;

    text-align: justify;
}

.festival-day {
    margin-bottom: 60px;
}

.festival-day h2 {
    margin: 0 0 8px;

    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #eeeeeb;;
}

.festival-photo {
    width: 100%;
    margin: 30px 0 16px;
    max-width: 1000px;

}

.festival-photo-flex img {
    width: 100%;
    height: auto;

    border: 1px solid #babab8;

    overflow: auto;
    flex: 1;
    margin: 0;
    max-width: 1000px;

}

.festival-photo-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin: 0 0;
    max-width: 1000px;
}


.festival-photo img {
    display: block;

    width: 100%;
    height: auto;


    border: 1px solid #babab8;

}

.festival-photo figcaption {
    margin-top: 12px;

    font-family: "Montserrat", sans-serif;
    color: #777;

    font-size: 16px;
    line-height: 1.5;
}

.project-credits {
    margin: 16px 0 40px;

    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: #666;
}


/* ------------------------------
   AUDIO PLAYER
------------------------------ */

.project-audio {
    margin: 40px 0 50px;
}

.audio-player {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.play-button {
    width: 88px;
    height: 88px;
    flex-shrink: 0;

    border: 1px solid #babab8;
    border-radius: 50%;

    background: transparent;
    color: #eeeeeb;

    cursor: pointer;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-family: "DM Sans", sans-serif;
    font-size: 26px;
    padding-left: 10px;

    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}

.play-button:hover {
    background: #eeeeeb;
    color: #0b0b0b;
    border-color: #eeeeeb;
}

.play-button.playing {
    font-size: 20px;
    padding-left: 7px;
}

/* Brief red flash on press, before the state switches */

.play-button.pressed {
    background: #910e0e;
    border-color: #910e0e;
    color: #eeeeeb;
}

.audio-duration {
    margin: 18px 0 0;

    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    color: #777;
}

.audio-player audio {
    display: none;
}

.audio-player audio.visible {
    display: block;
}

.audio-credits {
    margin-top: 24px;

    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    line-height: 1.8;
    color: #888;
}

.audio-credits p {
    margin: 0;
}

.audio-credits .author {
    margin-bottom: 10px;
    color: #eeeeeb;
}

.audio-credits a {
    color: inherit;
}


/* Phone-frame variant — vertical layout, resembles a phone screen */

.audio-phone {
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 220px;

    border: 1px solid #babab8;
    border-radius: 32px;

    padding: 44px 22px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.phone-frame .audio-credits {
    text-align: center;
}


/* Bar variant — horizontal, short, button on the left */

.audio-bar {
    display: flex;
    justify-content: center;
}

.bar-frame {
    width: 100%;
    max-width: 480px;

    border: 1px solid #babab8;
    border-radius: 54px;

    padding: 14px 26px 14px 14px;

    display: flex;
    align-items: center;
    gap: 20px;
}

.bar-frame .audio-player {
    flex-direction: row;
}

.bar-frame .play-button {
    width: 56px;
    height: 56px;
    font-size: 16px;
    padding-left: 6px;
}

.bar-frame .play-button.playing {
    font-size: 13px;
    padding-left: 4px;
}

.bar-frame .audio-bar-info {
    text-align: left;
}

.bar-frame .audio-duration {
    margin: 0 0 6px;
}

.bar-frame .audio-credits {
    margin-top: 0;
    text-align: left;
}


/* ------------------------------
   VIDEO EMBED
------------------------------ */

.project-video {
    margin: 40px 0 50px;
}

.video-embed {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    border: 1px solid #babab8;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    border: 0;
}

.video-embed-vertical {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}


/* ------------------------------
   MOBILE
------------------------------ */

@media (max-width: 1000px) {

    .site-header {
        padding: 20px 20px 18px;

        display: grid;

        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;

        row-gap: 24px;
    }


    .brand {
        grid-column: 1;
        grid-row: 1;

        white-space: nowrap;
    }


    .contact-button {
        grid-column: 2;
        grid-row: 1;

        white-space: nowrap;
    }


    .category-nav {
        position: static;

        grid-column: 1 / -1;
        grid-row: 2;

        transform: none;

        justify-content: center;

        gap: 20px;

        white-space: nowrap;
    }

     .project-image::after {
        opacity: 1;
    }

    .project-overlay {
        opacity: 1;
    }

    .project-list {
        width: calc(100% - 40px);
    }

    .project {
        margin-bottom: 40px;
    }

    .project-overlay h2 {
        font-size: 18px;
    }

    .project-overlay p {
        font-size: 12px;
    }
    
    .site-footer {
    padding: 80px 22px 30px;
}




.project-page {
    width: calc(100% - 40px);
}

.project-intro {
    padding: 35px 0 40px;
}

.project-intro h1 {
    font-size: 26px;
}

.festival-day {
    margin-bottom: 45px;
}

.festival-day h2 {
    margin-bottom: 16px;
}

.festival-photo {
    margin-bottom: 24px;
}


.festival-photo figcaption {
    font-size: 12px;
}

.project-video {
    margin: 30px 0 40px;
}

.project-audio {
    margin: 30px 0 40px;
}

.phone-frame {
    width: 190px;
    padding: 34px 18px;
}

.bar-frame {
    padding: 10px 20px 10px 10px;
    gap: 14px;
}

.bar-frame .play-button {
    width: 48px;
    height: 48px;
    font-size: 14px;
}

.project-description {
    font-size: 14px;
}


}


@media (max-width: 600px) {


}