:root {
    /*
     * These six variables are overwritten by WordPress
     * using the colors selected under Appearance > Style.
     *
     * The values below act as fallbacks.
     */
    --color-primary: #10100f;
    --color-primary-text: #f3f0e9;

    --color-secondary: #f3f0e9;
    --color-secondary-text: #10100f;

    --color-tertiary: #c9ff3b;
    --color-tertiary-text: #10100f;

    --soft: #d9d3c7;
    --line: rgba(16, 16, 15, .18);
    --pad: clamp(22px, 4vw, 64px)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--color-secondary);
    color: var(--color-secondary-text);
    font-family: "DM Sans", sans-serif
}

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


/* Header */

.site-header {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px var(--pad);
    mix-blend-mode: difference;
    color: white
}

.wordmark {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .12em
}

.site-nav {
    display: flex;
    gap: 26px;
    font-size: 13px
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    color: inherit;
    font: inherit
}


/* Hero */

.hero {
    position: relative;
    height: 100svh;
    min-height: 680px;
    overflow: hidden;
    background: var(--color-primary);
    color: var(--color-primary-text)
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.025);
    transition: opacity 1.2s ease, transform 7s ease;
    background-size: cover;
    background-position: center
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1)
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, .43),
            transparent 62%
        ),
        linear-gradient(
            0deg,
            rgba(0, 0, 0, .22),
            transparent 40%
        )
}

.hero-copy {
    position: absolute;
    left: var(--pad);
    bottom: 12vh;
    z-index: 2
}

.eyebrow,
.section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 600
}

.hero h1,
.intro h2,
.motion h2,
.about h2 {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    line-height: .88;
    margin: 20px 0;
    font-size: clamp(68px, 10vw, 154px)
}

.hero-location {
    font-size: 13px;
    margin-top: 28px
}

.scroll-cue {
    position: absolute;
    z-index: 2;
    right: var(--pad);
    bottom: 42px;
    font-size: 12px
}

.scroll-cue span {
    margin-left: 12px
}

.hero-counter {
    position: absolute;
    right: var(--pad);
    top: 50%;
    z-index: 2;
    display: flex;
    gap: 5px;
    font-size: 11px
}


/* Intro */

.intro {
    padding: 150px var(--pad) 110px;
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
    background: var(--color-secondary);
    color: var(--color-secondary-text)
}

.intro h2 {
    font-size: clamp(58px, 8vw, 126px);
    grid-column: 2;
    margin-top: 0
}

.intro-copy {
    grid-column: 2;
    max-width: 560px;
    font-size: 20px;
    line-height: 1.5
}


/* Projects */

.projects {
    padding: 0 var(--pad) 150px;
    background: var(--color-secondary);
    color: var(--color-secondary-text)
}

.project-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(40px, 7vw, 120px);
    align-items: start;
    margin-bottom: clamp(100px, 12vw, 190px)
}

.project-row:last-child {
    margin-bottom: 0
}

.project {
    display: block;
    width: 100%;
    min-width: 0
}

.project-row > .project:first-child {
    justify-self: start
}

.project-row > .project:nth-child(2) {
    justify-self: end;
    margin-top: clamp(50px, 7vw, 110px)
}

.project-row:nth-child(even) > .project:first-child {
    justify-self: end
}

.project-row:nth-child(even) > .project:nth-child(2) {
    justify-self: start
}

.project-landscape {
    width: 100%
}

.project-portrait {
    width: 72%
}

.project-square {
    width: 82%
}

.project-image {
    width: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform .5s ease
}

.project:hover .project-image {
    transform: scale(.985)
}

.project-landscape .project-image {
    aspect-ratio: 1.5
}

.project-portrait .project-image {
    aspect-ratio: .72
}

.project-square .project-image {
    aspect-ratio: 1
}

.project-meta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 13px;
    font-size: 12px
}

.project-meta span:last-child {
    opacity: .55;
    text-align: right
}


/* Statement */

.statement {
    background: var(--color-primary);
    color: var(--color-primary-text);
    padding: 16vw var(--pad)
}

.statement p {
    font-family: "Instrument Serif", serif;
    font-size: clamp(65px, 10vw, 150px);
    line-height: .88;
    margin: 0
}


/* Motion */

.motion {
    padding: 150px var(--pad);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8vw;
    align-items: center;
    background: var(--color-secondary);
    color: var(--color-secondary-text);
}

.motion-preview {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #151515;
}

/* Fallback when no video is selected */
.motion-preview:not(.has-video) {
    aspect-ratio: 16 / 10;
}

/* Container with uploaded video */
.motion-preview.has-video {
    width: 100%;
    height: auto;
}

/* Video determines the height of the container */
.motion-video {
    position: relative;
    z-index: 1;

    display: block;

    width: 100%;
    height: auto;

    max-width: 100%;
    max-height: 85vh;

    object-fit: contain;

    cursor: pointer;
}


/*
 * Hide native browser video controls.
 */
.motion-video::-webkit-media-controls {
    display: none !important;
}

.motion-video::-webkit-media-controls-enclosure {
    display: none !important;
}

.motion-video::-webkit-media-controls-panel {
    display: none !important;
}

.motion-video::-webkit-media-controls-play-button {
    display: none !important;
}

.motion-video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}


/* Play reel */

.play-button,
.motion-resume-button {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 10;

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

    width: 110px;
    height: 110px;
    padding: 0;

    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 50%;

    background: rgba(0, 0, 0, .18);
    color: #fff;

    font: 500 12px "DM Sans", sans-serif;
    text-transform: uppercase;
    letter-spacing: .1em;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    outline: none;
    box-shadow: none;
}

.play-button[hidden] {
    display: none !important;
}


/* Paused controls */

.motion-paused-controls {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

/* Dark overlay when paused */
.motion-paused-controls::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .38);
    z-index: 0;
    pointer-events: none;
}

.motion-paused-controls[hidden] {
    display: none;
}


/* Resume */

.motion-resume-button {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    border-radius: 50%;
    font: 500 12px "DM Sans", sans-serif;
    text-transform: uppercase;
    letter-spacing: .1em;
    cursor: pointer;
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    box-shadow: none;
}

.motion-resume-button:focus,
.motion-resume-button:focus-visible,
.motion-resume-button:active {
    outline: none;
    box-shadow: none;
    background: transparent;
}


/* Mute / Unmute */

.motion-mute-button {
    position: absolute;
    top: calc(50% + 75px);
    left: 50%;
    z-index: 1;
    transform: translateX(-50%);
    border: 0;
    border-bottom: 1px solid #fff;
    background: transparent;
    color: #fff;
    padding: 0 0 4px;
    font: 500 11px "DM Sans", sans-serif;
    text-transform: uppercase;
    letter-spacing: .1em;
    cursor: pointer;
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    box-shadow: none;
}

.motion-mute-button:focus,
.motion-mute-button:focus-visible,
.motion-mute-button:active {
    outline: none;
    box-shadow: none;
    background: transparent;
}


/* Motion copy */

.motion h2 {
    font-size: clamp(56px, 7vw, 102px);
}

.motion-copy > p:not(.section-label) {
    line-height: 1.65;
    max-width: 390px;
}

.text-link {
    display: inline-block;
    margin-top: 28px;
    border-bottom: 1px solid;
    padding-bottom: 5px;
    font-size: 13px;
}

.text-link span {
    margin-left: 12px;
}


/* About */

.about {
    border-top: 1px solid var(--line);
    padding: 140px var(--pad);
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 10vw;
    background: var(--color-secondary);
    color: var(--color-secondary-text)
}

.about h2 {
    font-size: clamp(58px, 7vw, 108px)
}

.about-copy {
    font-size: 19px;
    line-height: 1.65;
    padding-top: 42px
}


/* Clients */

.clients {
    padding: 30px var(--pad) 140px;
    background: var(--color-secondary);
    color: var(--color-secondary-text)
}

.client-list {
    border-top: 1px solid var(--line);
    margin-top: 24px;
    padding-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px 55px;
    font-family: "Instrument Serif", serif;
    font-size: clamp(34px, 5vw, 72px)
}


/* Contact */

.contact {
    background: var(--color-tertiary);
    color: var(--color-tertiary-text);
    padding: 130px var(--pad) 35px
}

.contact-email {
    display: block;
    font-family: "Instrument Serif", serif;
    font-size: clamp(50px, 9vw, 140px);
    line-height: 1;
    border-bottom: 1px solid currentColor;
    padding: 12px 0 40px;
    overflow-wrap: anywhere
}

.contact-bottom {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-top: 30px;
    font-size: 12px
}

.contact-bottom div {
    display: flex;
    gap: 24px
}


/* Footer */

footer {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 24px var(--pad);
    background: var(--color-primary);
    color: var(--color-primary-text);
    font-size: 12px
}


/* Original placeholder visuals */

.visual {
    background-size: cover;
    background-position: center
}

.visual-01 {
    background-image:
        linear-gradient(
            130deg,
            #0f1519 5%,
            #345667 45%,
            #bd7654 100%
        )
}

.visual-02 {
    background-image:
        linear-gradient(
            140deg,
            #442727,
            #b34e37 48%,
            #e0b48b
        )
}

.visual-03 {
    background-image:
        linear-gradient(
            115deg,
            #16261d,
            #4b715d 50%,
            #d8c698
        )
}

.visual-04 {
    background-image:
        linear-gradient(
            135deg,
            #d7a862,
            #815f36 50%,
            #223331
        )
}

.visual-05 {
    background-image:
        linear-gradient(
            155deg,
            #f26a21,
            #d83916 45%,
            #181818
        )
}

.visual-06 {
    background-image:
        linear-gradient(
            125deg,
            #d8d7d2,
            #8d9398 50%,
            #323b45
        )
}

.visual-07 {
    background-image:
        linear-gradient(
            135deg,
            #241e27,
            #68546b 50%,
            #d89e7e
        )
}

.visual-08 {
    background-image:
        linear-gradient(
            135deg,
            #151515,
            #575757 55%,
            #bdbaa9
        )
}


/* Mobile */

@media(max-width: 760px) {

    .site-nav {
        position: absolute;
        top: 66px;
        right: 20px;
        display: none;
        flex-direction: column;
        background: rgba(10, 10, 10, .92);
        padding: 22px;
        min-width: 160px
    }

    .site-nav.open {
        display: flex
    }

    .menu-toggle {
        display: block
    }

    .hero {
        min-height: 620px
    }

    .hero-copy {
        bottom: 15vh
    }

    .hero h1 {
        font-size: clamp(60px, 20vw, 92px)
    }

    .intro {
        display: block;
        padding-top: 110px
    }

    .intro h2 {
        margin-top: 40px
    }

    .intro-copy {
        font-size: 17px
    }


    /* Projects */

    .projects {
        display: block
    }

    .project-row {
        display: block;
        margin: 0;
        padding: 0
    }

    .project,
    .project-row > .project:nth-child(2),
    .project-row:nth-child(even) > .project:nth-child(1),
    .project-row:nth-child(even) > .project:nth-child(2) {
        margin: 0 0 75px
    }

    .project-landscape,
    .project-portrait,
    .project-square {
        width: 100%
    }

    .project-image {
        aspect-ratio: 4/5 !important
    }

    .project-meta {
        font-size: 11px
    }


    /* Motion / About */

    .motion,
    .about {
        grid-template-columns: 1fr;
        padding-top: 100px;
        padding-bottom: 100px
    }

    .motion-copy {
        order: -1
    }

    .about-copy {
        padding-top: 0
    }


    /* Contact / Footer */

    .contact-bottom,
    footer {
        flex-direction: column
    }

    .contact-email {
        font-size: 13vw
    }

    .hero-counter {
        display: none
    }

}
/* Homepage refinements */
.hero-slide {
    background-image: var(--hero-desktop-image);
}

.motion-preview.has-video:not(.is-playing)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0, 0, 0, .38);
    pointer-events: none;
}

.motion-preview.is-playing::after {
    display: none;
}

.motion-play-button {
    z-index: 10;
}

@media (max-width: 767px) {
    .hero-slide {
        background-image: var(--hero-mobile-image, var(--hero-desktop-image));
    }
}
