@import url('https://fonts.googleapis.com/css2?family=DM+Sans&family=EB+Garamond&display=swap');

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
}

html {
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: DM Sans, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: white;
    background: black;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100vw;

    padding: 15px 20px 0 20px;

    z-index: 999;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    width: 100%;
}

.site-name {
    font-weight: 400;
}

.menu-item {
    position: relative;
}

.menu-button {
    border: none;
    padding: 0;
    margin: 0;
    background: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    cursor: pointer;
}

/* --------------------
   DROPDOWN MENUS
-------------------- */

.dropdown {
    display: none;

    position: absolute;
    top: 100%;
    left: 0;

    padding-top: 20px;

    white-space: nowrap;
}

.dropdown a {
    display: block;
    margin-bottom: 6px;
}

.menu-item:hover .dropdown {
    display: block;
}

/* --------------------
   HOMEPAGE
-------------------- */

.home {
    width: 100%;
    min-height: 100vh;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* =========================================================
   FILM PROJECT PAGES
========================================================= */

.film-project-page {
    background: white;
    color: black;
    min-height: 100vh;
    padding-top: 80px;
}


/* =========================
   PROJECT HEADING
========================= */

.film-project-heading {
    padding: 14px 20px 3px 40px;
}

.film-project-heading h1 {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

.film-project-english {
    margin: 3px 0 0 0;
    font-size: 11px;
    line-height: 1.2;
}


/* =========================
   MAIN VIDEO
========================= */

.film-project-video {
    width: 100%;
    margin: 10px 0 20px 0;
    padding: 0 40px;
}

.film-video-wrapper {
    position: relative;
    width: 70%;
    margin: 0;
    overflow: hidden;
}

.film-video-wrapper video {
    display: block;
    width: 100%;
    height: auto;
    clip-path: inset(17px 0 17px 0);
    margin: 0;
    padding: 0;
}

.outofmemory-video-wrapper video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2.39 / 1;
}

.film-video-wrapper iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.limbo-video-wrapper {
    width: 60%;
    margin: 0;
    overflow: hidden;
}

.limbo-video-wrapper video {
    display: block;
    width: 100%;
    height: auto;
}


/* =========================
   SOUND AND PAUSE BUTTON
========================= */

.film-sound-button {
    position: absolute;

    right: 20px;
    bottom: 30px;
    border: 1px solid rgba(255,255,255,0.8);
    background: rgba(0,0,0,0.35);
    color: white;
    padding: 6px 9px;
    font-family: inherit;
    font-size: 10px;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.film-pause-button {
    position: absolute;
    right: 100px;
    bottom: 30px;
    border: 1px solid rgba(255,255,255,0.8);
    background: rgba(0,0,0,0.35);
    color: white;
    padding: 6px 9px;
    font-family: inherit;
    font-size: 10px;
    cursor: pointer;
    backdrop-filter: blur(4px);
}


/* =========================
   PROJECT INFORMATION
========================= */

.film-project-info {
    display: grid;

    grid-template-columns:
        minmax(0, 0.4fr)
        minmax(0, 0.4fr)
        auto;

    column-gap: 20px;

    padding: 10px 40px 0 40px;

    font-size: 11px;
    line-height: 1.35;
}


.film-project-description {
    max-width: 300px;
}

.film-project-description p {
    margin: 0 0 10px 0;
}


.film-project-credits {
    display: flex;
    flex-direction: column;
    gap: 2px;
}


.film-credit {
    display: flex;
    gap: 8px;
}


.film-credit-role {
    font-style: italic;
}


.film-project-year {
    white-space: nowrap;
    margin-left: -180px;
}

.limbo-project-info {
    grid-template-columns:
        minmax(0, 0.3fr)
        minmax(0, 0.3fr)
        auto;

    column-gap: 20px;
}

.limbo-project-info .film-project-year {
    margin-left: -45px;
}

/* =========================
   NÄKILLÄ VIDEO + POSTER
========================= */

.film-project-video {
    width: 100%;
    margin: 10px 0 20px 0;
    padding: 0 40px;
    box-sizing: border-box;
}

.nakilla-video {
    margin-bottom: 0;
}

.nakilla-media {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.nakilla-media .film-video-wrapper {
    position: relative;
    width: 70%;
    flex: 0 0 70%;
    margin: 0;
    overflow: hidden;
}

.nakilla-media .film-video-wrapper video {
    display: block;
    width: 100%;
    height: auto;
    clip-path: inset(17px 0 17px 0);
    margin: 0;
    padding: 0;
}

.nakilla-poster {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.nakilla-poster img {
    display: block;
    width: 80%;
    height: auto;
    margin: 0 auto;
}

.nakilla-poster-credit {
    width: 80%;
    margin: 8px auto 0 auto;
    font-size: 10px;
    line-height: 1.2;
}


@media (max-width: 700px) {

    .nakilla-media {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
        gap: 30px;
    }

    .nakilla-media .film-video-wrapper {
        width: 100%;
        flex: none;
    }

    .nakilla-poster {
        width: 150px;
        flex: none;
    }

    .nakilla-poster img {
        width: 150px;
    }

}

/* =========================
   MUN MAKUUN VIDEO + POSTER
========================= */

.munmakuun-video {
    margin-bottom: 0;
}

.munmakuun-media {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.munmakuun-media .film-video-wrapper {
    position: relative;
    width: 70%;
    flex: 0 0 70%;
    margin: 0;
    overflow: hidden;
}

.munmakuun-media .film-video-wrapper iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.munmakuun-poster {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.munmakuun-poster img {
    display: block;
    width: 80%;
    height: auto;
    margin: 0 auto;
}

.munmakuun-poster-credit {
    width: 80%;
    margin: 8px auto 0 auto;
    font-size: 10px;
    line-height: 1.2;
}

/* =========================
   LIMBO VIDEO + POSTER
========================= */

.limbo-video {
    margin-bottom: 0;
}

.limbo-media {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.limbo-media .limbo-video-wrapper {
    position: relative;
    width: 60%;
    flex: 0 0 60%;
    margin: 0;
    overflow: hidden;
}

.limbo-media .limbo-video-wrapper video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin: 0;
    padding: 0;
}

.limbo-poster {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.limbo-poster img {
    display: block;
    width: 60%;
    height: auto;
    margin: 0 auto;
}

.limbo-poster-credit {
    width: 60%;
    margin: 8px auto 0 auto;
    font-size: 10px;
    line-height: 1.2;
}

/* =========================
   OUT OF MEMORY VIDEO + POSTER
========================= */

.outofmemory-video {
    margin-bottom: 0;
}

.outofmemory-media {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.outofmemory-media .outofmemory-video-wrapper {
    position: relative;
    width: 70%;
    flex: 0 0 70%;
    margin: 0;
    overflow: hidden;
}

.outofmemory-media .outofmemory-video-wrapper video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2.39 / 1;
    object-fit: cover;
    margin: 0;
    padding: 0;
}

.outofmemory-poster {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.outofmemory-poster img {
    display: block;
    width: 80%;
    height: auto;
    margin: 0 auto;
}

.outofmemory-poster-credit {
    width: 80%;
    margin: 8px auto 0 auto;
    font-size: 10px;
    line-height: 1.2;
}

/* =========================
   OUTTAKES
========================= */

.film-outtakes {
    margin-top: 90px;
    padding-bottom: 30px;
}


.film-outtakes-heading {
    padding: 0 40px 12px 40px;

    font-size: 11px;
}


.film-outtakes-scroll {
    display: flex;

    gap: 6px;

    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 0 40px;

    scrollbar-width: none;
}


.film-outtakes-scroll::-webkit-scrollbar {
    display: none;
}


.film-outtakes-scroll img {
    flex: 0 0 auto;
    width: 270px;
    height: auto;
    display: block;
}

.film-outtake-landscape {
    width: 500px !important;
    height: auto !important;
    object-fit: contain;
}

.film-outtake-credit {
    padding: 8px 40px 0 40px;
    font-size: 10px;
    line-height: 1.2;
    opacity: 0.5;
}

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

@media (max-width: 700px) {

    /* Project heading */

    .film-project-heading {
        padding: 12px 12px 15px 12px;
    }


    /* Project information */

    .film-project-info {
        grid-template-columns: 1fr;
        row-gap: 20px;
        padding: 18px 12px 0 12px;
    }

    .film-project-description {
        max-width: none;
    }

    .film-project-year {
        order: -1;
    }


    /* Video */

    .film-project-video {
        padding-left: 12px;
        padding-right: 12px;
    }


    /* Video controls */

    .film-sound-button {
        right: 12px;
        bottom: 12px;
    }

    .film-pause-button {
        right: 92px;
        bottom: 12px;
    }


    /* Outtakes */

    .film-outtakes {
        margin-top: 55px;
    }

    .film-outtakes-heading {
        padding-left: 12px;
        padding-right: 12px;
    }

    .film-outtakes-scroll {
        padding-left: 12px;
        padding-right: 12px;
    }

    .film-outtakes-scroll img {
        width: 210px;
        height: auto;
    }


    /* Landscape outtake */

    .film-outtake-landscape {
        width: 280px !important;
        height: 210px !important;
    }


    /* Outtake credit */

    .film-outtake-credit {
        padding-left: 12px;
        padding-right: 12px;
    }

}

/* --------------------
   MOBILE (REEL PAGE)
-------------------- */

@media (max-width: 700px) {

    header {
        padding: 15px 12px 0 12px;
    }
}

/* REEL PAGE */

.reel-page {
    background: white;
    color: black;
}

.reel {
    position: fixed;
    top: 75px;
    left: 0;

    width: 100vw;
    height: calc(100vh - 75px);

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

    padding-bottom: 40px;

    box-sizing: border-box;
}

.reel-video {
    width: 85vw;
    max-width: 1100px;
    aspect-ratio: 16 / 9;
}

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

/* =========================
   COMMERCIAL PAGE
========================= */

.commercial-page {
    background: white;
    color: black;
    overflow-x: hidden;
}

/* =========================
   COMMERCIAL SMOOTH SCROLL
========================= */

#smooth-wrapper {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;
}


#smooth-content {
    width: 100%;
    overflow: visible;
}

/* =========================
   COMMERCIAL CONTAINER
========================= */

.commercial {
    width: 100%;
}


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

.commercial-project {
    width: 100%;
    min-height: 100vh;

    padding: 50px 6vw;

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

    gap: 8vw;
}


/* =========================
   PROJECT TEXT
========================= */

.commercial-text {
    flex: 0 0 22vw;
    max-width: 300px;
    align-self: center;
}


.commercial-number {
    margin-bottom: 35px;

    font-size: 13px;
    line-height: 1;

    opacity: 0.55;
}


.commercial-text h1 {
    margin: 0 0 8px 0;

    font-size: 24px;
    line-height: 1.1;
    font-weight: 400;
}


.commercial-year {
    margin: 0 0 35px 0;

    font-size: 15px;
    line-height: 1.3;
}


.commercial-role {
    margin: 0 0 10px 0;

    font-size: 13px;
    line-height: 1.5;
    font-style: italic;
}


.commercial-description {
    margin: 0 0 30px 0;

    max-width: 320px;

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


/* =========================
   GALLERY
========================= */

.commercial-gallery {
    flex: 1;

    min-width: 0;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;
}

.commercial-still .commercial-gallery-image {
    width: min(55vw, 850px);
}

.commercial-still .commercial-gallery-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.commercial-still .commercial-photo-credit {
    width: min(55vw, 850px);
    text-align: left;
}

/* =========================
   IMAGE AREA
========================= */

.commercial-gallery-image {
    width: 100%;

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

    overflow: hidden;
}

.commercial-still .commercial-gallery-image img {
    display: block;
    width: min(55vw, 850px);
    height: auto;
    object-fit: contain;
}


/* =========================
   HORIZONTAL IMAGES
========================= */

.commercial-horizontal
.commercial-gallery-image video {

    width: min(55vw, 850px);
    height: auto;
}

/* =========================
   VERTICAL IMAGES
========================= */

.commercial-vertical
.commercial-gallery-image video {
    width: auto;
    height: 65vh;
    max-width: 360px;
    object-fit: contain;
}

/* =========================
   GALLERY CONTROLS
========================= */

.commercial-gallery-controls {

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

    gap: 22px;

    margin-top: 25px;

    font-size: 13px;
}


/* Buttons */

.gallery-prev,
.gallery-next {

    border: none;

    padding: 0;

    background: none;

    color: black;

    font-family: inherit;
    font-size: 15px;

    cursor: pointer;

    line-height: 1;

    transition:
        opacity 0.2s ease;
}


.gallery-prev:hover,
.gallery-next:hover {

    opacity: 0.45;
}


/* Counter */

.gallery-counter {

    min-width: 40px;

    text-align: center;

    font-size: 13px;
}


/* =========================
   AMI
========================= */

.ami-project
.commercial-gallery-image video {
    width: auto;
    height: 65vh;
    max-width: 360px;
    object-fit: contain;
}

/* =========================
   OUTTAKES
========================= */

.commercial-outtakes {
    width: 100%;
    padding: 20px 6vw 20px 6vw;

    background: white;
    color: black;
}

.outtakes-header {
    margin-bottom: 30px;

    font-size: 13px;
    line-height: 1;
}


/* HORIZONTAL SCROLL */

.outtakes-grid {
    height: 450px;
    width: auto;
    object-fit: contain;

    display: flex;
    flex-direction: row;
    align-items: center;

    gap: 20px;

    overflow-x: auto;
    overflow-y: hidden;

    padding-bottom: 5px;

    scrollbar-width: none;

    cursor: grab;
}

.outtakes-grid::-webkit-scrollbar {
    display: none;
}

.outtakes-grid:active {
    cursor: grabbing;
}


/* IMAGE FRAME */

.outtakes-grid img {
    display: block;

    flex: 0 0 auto;

    width: auto;
    height: 450px;

    object-fit: contain;

    background: white;
}

.commercial-photo-credit {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.2;
    opacity: 0.5;
}

.commercial-still .commercial-photo-credit {
    width: min(55vw, 850px);
    text-align: left;
}

.outtakes-credit {
    margin-top: 8px;
}

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

@media (max-width: 700px) {

    .commercial-project {

        min-height: auto;

        padding:
            80px
            25px
            120px;

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 55px;
    }


    .commercial-text {

        flex: none;

        width: 100%;

        max-width: 100%;
    }


    .commercial-number {

        margin-bottom: 25px;
    }


    .commercial-text h1 {

        font-size: 21px;
    }


    .commercial-year {

        margin-bottom: 25px;
    }


    .commercial-role {

        margin-bottom: 25px;
    }


    .commercial-description {

        max-width: 100%;
    }


    .commercial-gallery {

        width: 100%;
    }


    .commercial-gallery-image {

        width: 100%;
    }


    .commercial-horizontal
    .commercial-gallery-image video {

        width: 100%;

        max-width: none;

        max-height: 60vh;
    }


    .commercial-vertical
    .commercial-gallery-image video {

        width: 65vw;

        max-width: 330px;

        max-height: 65vh;
    }


    .ami-project
    .commercial-gallery-image video {

        width: 70vw;

        max-width: 350px;
    }


    .commercial-gallery-controls {

        margin-top: 20px;

        gap: 20px;
    }

}

@media (max-width: 700px) {

    .commercial-outtakes {
        padding:
            50px
            25px
            80px;
    }

    .outtakes-header {
        margin-bottom: 20px;
    }

    .outtakes-grid {
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;

        scrollbar-width: none;
    }

    .outtakes-grid::-webkit-scrollbar {
        display: none;
    }

    .outtakes-grid img {
        height: 220px;
    }

}

/* --------------------
   GRAPHIC DESIGN PAGE
-------------------- */

.graphicdesign-page {
    background: white;
    color: black;
    overflow: hidden;
}

.graphicdesign {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    width: 70vw;
    height: 70vh;

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

    margin: auto;

    overflow: hidden;
}

.graphic-slide {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    opacity: 0;
    transition: opacity 0.9s ease;
}

.graphic-slide.active {
    opacity: 1;
}

.graphic-slide img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    display: block;
}

.graphic-counter {
    position: fixed;
    right: 40px;
    bottom: 30px;

    z-index: 1000;

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

    color: black;

    pointer-events: none;
}

/* --------------------
   PHOTOGRAPHY PAGE
-------------------- */

.photography-page {
    background: white;
    color: black;
    overflow: hidden;
}

.photography {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.photo-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.photo-stage img {
    position: absolute;

    left: 0;
    top: 0;

    width: 700px;
    height: auto;

    transform: translate(-50%, -50%) scale(0.7);

    pointer-events: none;
    user-select: none;

    opacity: 1;
}

.photo-counter {
    position: fixed;
    right: 40px;
    bottom: 30px;
    z-index: 1000;

    font-size: 15px;
    font-weight: 400;
    color: black;

    pointer-events: none;
}

/* =========================
   INFO PANEL
========================= */

.info-open .info-hide {
    display: none;
}

.info-open header,
.info-open header a,
.info-open header button {
    color: black;
}

.info-panel {
    position: fixed;

    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    background: #8BA14A;
    color: black;

    z-index: 998;

    transform: translateY(-100%);
    transition: transform 0.8s ease;

    overflow: hidden;
}


.info-panel.is-open {
    transform: translateY(0);
}


.info-content {
    width: 100%;
    height: 100%;

    box-sizing: border-box;

    padding: 130px 40px 15px 40px;

    display: flex;
    flex-direction: column;
}


.info-page-content {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
}

.info-description {
    font-size: 18px;
    line-height: 1.35;
    max-width: 700px;
}

.info-image {
    display: flex;
    margin-top: 5px;
    margin-bottom: 30px;
    gap: 0;
}

.info-photo {
    display: block;

    width: 180px;
    height: auto;

    margin: 0;
    padding: 0;
}


.info-photo-1 {
    filter: brightness(50%);
}


.info-photo-2 {
    filter: brightness(75%);
}


.info-photo-3 {
    filter: brightness(100%);
}

.info-footer {
    margin-top: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 20px;
    font-size: 12px;
}

.info-footer a {
    color: black;
    text-decoration: none;
}

.info-footer a:hover {
    text-decoration: underline;
}