@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap');

/* =========================
   VARIABLES
========================= */

:root {
    --bg: #171717;
    --text: #f3f3f3;
    --muted: #b7b7b7;
    --red: #cc0000;
    --line: #4b4b4b;
    --nav-h: 88px;
}

/* =========================
   RESET
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    background: var(--bg);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    font-size: clamp(12px, .78vw, 16px);
    font-weight: 400;
    overflow-x: hidden;
}

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

button {
    font: inherit;
}

/* =========================
   HEADER / NAVIGATION
========================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    padding: 0 5.2vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    background: linear-gradient(
        to bottom,
        rgba(23, 23, 23, .92),
        rgba(23, 23, 23, 0)
    );
    pointer-events: none;
}

.site-header > * {
    pointer-events: auto;
}

.brand {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(13px, .85vw, 18px);
    letter-spacing: .3px;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    gap: 1.3vw;
    align-items: flex-start;
    height: 100%;
    padding-top: 34px;
}

.main-nav > a,
.dropdown-toggle {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(12px, .78vw, 16px);
    letter-spacing: .2px;
}

.main-nav > a,
.dropdown-toggle,
.dropdown a {
    transition: color .25s ease;
}

.main-nav > a:hover,
.dropdown-toggle:hover,
.dropdown a:hover,
.dropdown a.active {
    color: var(--red);
}

/* =========================
   WORKS DROPDOWN
========================= */

.nav-item {
    position: relative;
    height: 100%;
}

.dropdown {
    position: absolute;
    top: 23px;
    left: -9px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
    min-width: 80px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-5px);

    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s ease;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown a {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(12px, .78vw, 16px);
    white-space: nowrap;
}

.dropdown a::before {
    content: '•';
    margin-right: 8px;
}

/* =========================
   GENERAL
========================= */

.page {
    position: relative;
    width: 100%;
    min-height: 100svh;
    height: 100svh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
}

.page-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.bebas {
    font-family: 'Bebas Neue', sans-serif;
}

.red {
    color: var(--red);
}

.page-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 4vw, 84px);
    line-height: .88;
    letter-spacing: .5px;
}

.page-title .red {
    color: var(--red);
}

.small-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(18px, 1.55vw, 32px);
}

.logo {
    position: absolute;
    right: 5.1vw;
    bottom: 5.2vh;
    width: clamp(46px, 3.1vw, 64px);
    height: auto;
    z-index: 2;
}

/* =========================
   HOME
========================= */

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #000;
    z-index: 0;
}

.hero-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, .88),
        rgba(0, 0, 0, .15) 60%,
        rgba(0, 0, 0, .35)
    );
    z-index: 1;
    pointer-events: none;
}

.hero-copy {
    position: absolute;
    left: 5.2vw;
    bottom: 6.5vh;
    z-index: 2;
}

.hero-copy p {
    margin: 10px 0 0;
    max-width: 300px;
    line-height: 1.2;
    font-size: clamp(10px, .68vw, 14px);
}

/* =========================
   ABOUT
========================= */

.about-wrap {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--nav-h) 10vw 12vh;
}

.about-copy {
    text-align: center;
    font-size: clamp(13px, .92vw, 19px);
    line-height: 1.55;
    font-weight: 300;
}

.about-copy h1 {
    font-family: Inter, sans-serif;
    font-size: clamp(14px, 1vw, 20px);
    font-weight: 700;
    margin: 0 0 24px;
}

.about-copy p {
    margin: 0 0 24px;
}

/* =========================
   WORKS
========================= */

.works-grid {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.works-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-right: 1px solid #3c3c3c;
}

.works-panel:last-child {
    border-right: 0;
}

.works-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(.48);
    transition:
        transform .6s cubic-bezier(.2, .7, .2, 1),
        filter .5s ease;
}

.works-panel.video::before {
    background-image:
        linear-gradient(
            rgba(0, 0, 0, .25),
            rgba(0, 0, 0, .45)
        ),
        url('../images/works-video.jpg');
}

.works-panel.photo::before {
    background-image:
        linear-gradient(
            rgba(0, 0, 0, .25),
            rgba(0, 0, 0, .45)
        ),
        url('../images/works-photo.jpg');
}

.works-panel:hover::before {
    transform: scale(1.035);
    filter: brightness(.62);
}

.works-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.works-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(45px, 5vw, 100px);
    line-height: .9;
    margin: 0;
}

.works-content h2 .red {
    color: var(--red);
}

.works-arrow {
    position: absolute;
    top: 50%;
    font-size: clamp(24px, 2.1vw, 44px);
    font-weight: 300;
    transform: translateY(-50%);
    z-index: 2;
    transition:
        color .25s ease,
        transform .3s ease;
}

.works-arrow.left {
    left: 5vw;
}

.works-arrow.right {
    right: 5vw;
}

.works-panel:hover .works-arrow.left {
    transform: translateY(-50%) translateX(-4px);
}

.works-panel:hover .works-arrow.right {
    transform: translateY(-50%) translateX(4px);
}

/* =========================
   SECTION LABEL
========================= */

.section-label {
    position: absolute;
    left: 5.2vw;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: left top;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(24px, 2.1vw, 42px);
    letter-spacing: .2px;
    white-space: nowrap;
}

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

.gallery-page {
    padding-top: var(--nav-h);
}

.gallery-shell {
    width: 80%;
    height: calc(100% - var(--nav-h));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(210px, 1fr);
    gap: 3vw;
    align-items: center;
    padding: 2vh 0 5vh;

    animation: galleryFadeIn .8s ease both;
}

.gallery-left,
.gallery-right {
    min-width: 0;
}

.preview-frame {
    width: 100%;
    height: 76vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #242424;
    overflow: hidden;
}

.preview-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;

    opacity: 1;
    transform: scale(1);

    transition:
        opacity .4s ease,
        transform .55s cubic-bezier(.2, .7, .2, 1);
}

.preview-frame img.photo-changing {
    opacity: 0;
    transform: scale(.985);
}

.gallery-projects {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.5vh;
    font-size: clamp(9px, .58vw, 13px);

    animation: projectFadeIn .7s ease .15s both;
}

.project-link {
    white-space: nowrap;
    cursor: pointer;
    transition:
        color .25s ease,
        opacity .25s ease;
}

.project-link:not(:last-child)::after {
    content: '|';
    margin-left: 8px;
    color: #777;
}

.project-link:hover,
.project-link.active {
    color: var(--red);
}

/* =========================
   PHOTO THUMBNAILS
========================= */

.thumb-area {
    position: relative;
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.thumb {
    aspect-ratio: 1;
    overflow: hidden;
    background: #292929;
    cursor: pointer;
    border: 2px solid transparent;
    padding: 0;

    transition:
        border-color .3s ease,
        transform .3s ease,
        opacity .3s ease;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(.82);

    transition:
        filter .35s ease,
        transform .5s cubic-bezier(.2, .7, .2, 1);
}

.thumb:hover {
    transform: translateY(-3px);
    border-color: rgba(204, 0, 0, .65);
}

.thumb:hover img {
    filter: brightness(1);
    transform: scale(1.04);
}

.thumb.active {
    border-color: var(--red);
}

.thumb.active img {
    filter: brightness(1);
}

/* =========================
   PHOTO ARROWS
========================= */

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 1px solid #aaa;
    border-radius: 50%;
    background: transparent;
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    z-index: 2;

    transition:
        border-color .25s ease,
        color .25s ease,
        background .25s ease,
        transform .25s ease;
}

.gallery-arrow.prev {
    left: -42px;
}

.gallery-arrow.next {
    right: -42px;
}

.gallery-arrow.show {
    display: flex;
}

.gallery-arrow:hover:not(:disabled) {
    border-color: var(--red);
    color: var(--red);
    background: rgba(204, 0, 0, .08);
}

.gallery-arrow.prev:hover:not(:disabled) {
    transform: translateY(-50%) translateX(-3px);
}

.gallery-arrow.next:hover:not(:disabled) {
    transform: translateY(-50%) translateX(3px);
}

.gallery-arrow:disabled {
    opacity: .25;
    cursor: default;
}

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

.video-page {
    padding-top: var(--nav-h);
}

.video-shell {
    width: 80%;
    max-width: 1920px;
    height: calc(100% - var(--nav-h));
    margin: auto;
    display: grid;
    align-items: center;
    gap: 4vw;
    padding: 3vh 0 5vh;
}

.video-shell.portrait {
    grid-template-columns:
        minmax(210px, .92fr)
        minmax(320px, 1.08fr);
}

.video-shell.landscape {
    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(280px, .8fr);
}

.video-preview-col {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.video-preview {
    background: #0c0c0c;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portrait .video-preview {
    height: 58vh;
    aspect-ratio: 9 / 16;
    max-width: 100%;
}

.landscape .video-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.video-preview iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-projects {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.8vh;
    text-align: center;
    font-size: clamp(9px, .62vw, 13px);
    line-height: 1.2;
}

.video-projects .project-link {
    white-space: normal;
}

.video-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-thumb-wrap {
    position: relative;
}

.video-thumb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.video-thumb {
    aspect-ratio: 1;
    cursor: pointer;
    overflow: hidden;
    background: #252525;
    border: 2px solid transparent;
    padding: 0;

    transition:
        border-color .3s ease,
        transform .3s ease;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(.82);

    transition:
        filter .35s ease,
        transform .5s cubic-bezier(.2, .7, .2, 1);
}

.video-thumb:hover {
    transform: translateY(-3px);
    border-color: rgba(204, 0, 0, .65);
}

.video-thumb:hover img {
    filter: brightness(1);
    transform: scale(1.04);
}

.video-thumb.active {
    border-color: var(--red);
}

.video-thumb.active img {
    filter: brightness(1);
}

/* =========================
   VIDEO ARROWS
========================= */

.video-arrows {
    position: absolute;
    left: -42px;
    right: -42px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.video-arrows button {
    pointer-events: auto;
    width: 28px;
    height: 28px;
    border: 1px solid #aaa;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    transition:
        border-color .25s ease,
        color .25s ease,
        background .25s ease,
        transform .25s ease;
}

.video-arrows button:hover {
    border-color: var(--red);
    color: var(--red);
    background: rgba(204, 0, 0, .08);
}

.video-arrows button:first-child:hover {
    transform: translateX(-3px);
}

.video-arrows button:last-child:hover {
    transform: translateX(3px);
}

/* =========================
   VIDEO ORIENTATION
========================= */

.orientation-switch {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 9px;
    margin-top: 9px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(16px, 1.2vw, 24px);
}

.orientation-switch a {
    cursor: pointer;
    transition: color .25s ease;
}

.orientation-switch a:hover {
    color: var(--red);
}

.orientation-switch .active {
    color: var(--red);
}

.orientation-switch .chev {
    color: #ddd;
}

/* =========================
   VIDEO DESCRIPTION
========================= */

.video-description {
    margin-top: 12px;
    max-width: 620px;
}

.video-description h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(25px, 2vw, 42px);
    margin: 0 0 8px;
}

.video-description p {
    font-size: clamp(10px, .7vw, 14px);
    line-height: 1.35;
    color: #ddd;
    margin: 0 0 10px;
}

/* =========================
   CONTACT
========================= */

.contact-wrap {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--nav-h) 10vw;
}

.contact-box {
    text-align: center;
}

.contact-box h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(60px, 7vw, 130px);
    margin: 0 0 15px;
}

.contact-box p {
    font-size: clamp(13px, 1vw, 20px);
    color: #ddd;
}

.contact-link {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(22px, 1.8vw, 38px);
    margin: 10px;
}

.mobile-only {
    display: none;
}

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

@keyframes galleryFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

@keyframes projectFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

    :root {
        --nav-h: 70px;
    }

    .site-header {
        padding: 0 5vw;
    }

    .main-nav {
        gap: 2vw;
        padding-top: 26px;
    }

    .dropdown {
        top: 20px;
    }

    .gallery-shell {
        width: 88%;
        grid-template-columns:
            minmax(0, 1fr)
            minmax(150px, .3fr);
        gap: 4vw;
    }

    .thumb-grid {
        gap: 8px;
    }

    .gallery-arrow.prev {
        left: -32px;
    }

    .gallery-arrow.next {
        right: -32px;
    }

    .video-shell {
        width: 88%;
        gap: 5vw;
    }

    .video-thumb-grid {
        gap: 8px;
    }
}

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

@media (max-width: 700px) {

    html {
        scroll-snap-type: y proximity;
    }

    .site-header {
        height: 62px;
        padding: 0 5vw;
    }

    .brand {
        font-size: 12px;
    }

    .main-nav {
        gap: 14px;
        padding-top: 23px;
    }

    .main-nav > a,
    .dropdown-toggle,
    .dropdown a {
        font-size: 11px;
    }

    .dropdown {
        top: 17px;
        left: -7px;
        gap: 8px;
        padding-top: 8px;
    }

    .page {
        min-height: 100svh;
        height: auto;
        overflow: visible;
    }

    .hero-bg {
        min-height: 100svh;
    }

    .about-wrap {
        min-height: 100svh;
        height: auto;
        padding: 110px 9vw 100px;
    }

    .about-copy {
        width: 100%;
        font-size: 13px;
        line-height: 1.55;
    }

    .works-grid {
        min-height: 100svh;
        height: auto;
        grid-template-columns: 1fr;
    }

    .works-panel {
        height: 50svh;
        min-height: 300px;
    }

    .section-label {
        display: none;
    }

    .works-content h2 {
        font-size: 55px;
    }

    /* PHOTO */

    .gallery-page,
    .video-page {
        padding-top: 62px;
    }

    .gallery-shell {
        width: 90%;
        height: auto;
        min-height: calc(100svh - 62px);
        grid-template-columns: 1fr;
        padding: 4vh 0 7vh;
        gap: 3vh;
    }

    .preview-frame {
        height: 50vh;
    }

    .gallery-right {
        width: 100%;
    }

    .thumb-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .thumb:hover {
        transform: none;
    }

    .thumb:hover img {
        transform: scale(1.02);
    }

    .gallery-arrow {
        top: 50%;
        width: 24px;
        height: 24px;
        font-size: 13px;
    }

    .gallery-arrow.prev {
        left: -30px;
    }

    .gallery-arrow.next {
        right: -30px;
    }

    /* VIDEO */

    .video-shell,
    .video-shell.portrait,
    .video-shell.landscape {
        width: 90%;
        height: auto;
        min-height: calc(100svh - 62px);
        grid-template-columns: 1fr;
        padding: 4vh 0 7vh;
        gap: 3vh;
    }

    .video-preview {
        max-height: 58svh;
    }

    .portrait .video-preview {
        height: 55svh;
    }

    .video-thumb-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .video-thumb:hover {
        transform: none;
    }

    .video-thumb:hover img {
        transform: scale(1.02);
    }

    .video-arrows {
        left: -31px;
        right: -31px;
    }

    .orientation-switch {
        font-size: 18px;
    }

    .video-description h2 {
        font-size: 30px;
    }

    /* GENERAL MOBILE */

    .logo {
        width: 45px;
        right: 5vw;
        bottom: 4vh;
    }

    .hero-copy {
        left: 5vw;
        bottom: 6vh;
    }
}

/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
