:root {
    --essuman-red: #c73e1d;
    --essuman-ink: #181818;
    --essuman-olive: #2f352b;
    --essuman-paper: #fbfcfb;
    --essuman-muted: #767776;
    --color-text-light: #686a68;
    --color-gray-15: #737473;
}

html {
    scroll-padding-top: 9rem;
}

body {
    overflow-x: hidden;
}

body.is-dialog-open {
    overflow: hidden;
}

.s-intro__content-pretitle {
    color: #b6381b;
}

.skip-link {
    z-index: 10000;
    color: var(--color-white);
    background: var(--color-3);
    font-size: var(--text-sm);
    font-weight: 600;
    padding: 1rem 1.6rem;
    position: fixed;
    top: 1rem;
    left: 1rem;
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
video:focus-visible,
dialog:focus-visible {
    outline: 3px solid var(--color-1);
    outline-offset: 4px;
}

.s-header__logo img {
    width: 15.2rem;
    height: auto;
}

.s-header__menu-toggle {
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.s-header__contact .btn {
    min-width: 12rem;
}

.s-intro__content-text {
    max-width: 78rem;
}

.s-intro__content-title {
    text-wrap: balance;
}

.s-intro__content-media img {
    object-position: 50% 34%;
}

.s-intro__content-media::before {
    z-index: 3;
    background: linear-gradient(90deg, rgba(24, 24, 24, 0.06), transparent 25%, rgba(24, 24, 24, 0.12));
}

.viewfinder {
    z-index: 4;
    pointer-events: none;
    position: absolute;
    inset: clamp(2rem, 4vw, 6.4rem);
}

.viewfinder::before,
.viewfinder::after,
.viewfinder__corners::before,
.viewfinder__corners::after {
    content: "";
    width: 5.2rem;
    height: 5.2rem;
    border-color: rgba(255, 255, 255, 0.82);
    position: absolute;
}

.viewfinder::before {
    border-top: 2px solid;
    border-left: 2px solid;
    top: 0;
    left: 0;
}

.viewfinder::after {
    border-top: 2px solid;
    border-right: 2px solid;
    top: 0;
    right: 0;
}

.viewfinder__corners::before {
    border-bottom: 2px solid;
    border-left: 2px solid;
    bottom: 0;
    left: 0;
}

.viewfinder__corners::after {
    border-right: 2px solid;
    border-bottom: 2px solid;
    right: 0;
    bottom: 0;
}

.viewfinder__label {
    color: white;
    background: #111;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.45rem 0.7rem;
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
}

.viewfinder__label::before {
    content: "";
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: var(--color-1);
    margin-right: 0.8rem;
}

.s-intro__btn-download .btn--stroke {
    white-space: nowrap;
    background: #111;
}

.about-lede {
    max-width: 108rem;
}

.behind-scenes {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(1.6rem, 3vw, 4rem);
    margin-top: var(--vspace-2_5);
}

.behind-scenes__figure {
    min-height: 30rem;
    margin: 0;
    overflow: hidden;
    position: relative;
}

.behind-scenes__figure:first-child {
    aspect-ratio: 3 / 2;
}

.behind-scenes__figure:last-child {
    aspect-ratio: 4 / 5;
}

.behind-scenes__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

.behind-scenes__figure:last-child img {
    object-position: 52% center;
}

.behind-scenes__figure figcaption {
    color: white;
    background: #111;
    font-size: var(--text-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 1.2rem 2rem;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
}

.works-intro {
    max-width: 78rem;
    margin-bottom: var(--vspace-1_5);
}

.folio-entries {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.8rem, 2vw, 3.2rem);
    align-items: start;
}

.folio-entries .entry {
    width: auto;
    min-width: 0;
}

.folio-entries .entry__link {
    width: 100%;
    height: auto;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: var(--color-gray-10);
    cursor: pointer;
    margin: 0;
    padding: 0;
    text-align: left;
}

.folio-entries .entry__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.folio-entries .entry__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.folio-entries .entry:first-child .entry__thumb img {
    object-position: center 12%;
}

.folio-entries .entry:nth-child(2) .entry__thumb img,
.folio-entries .entry:nth-child(3) .entry__thumb img,
.folio-entries .entry:nth-child(4) .entry__thumb img,
.folio-entries .entry:nth-child(5) .entry__thumb img {
    object-position: center 26%;
}

.folio-entries .entry:focus-within .entry__link::before {
    opacity: 1;
    visibility: visible;
}

.folio-entries .entry:focus-within .entry__info {
    transform: translate(-50%, -50%);
    transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
    opacity: 1;
    visibility: visible;
}

.entry__info {
    width: min(88%, 40rem);
    pointer-events: none;
}

.entry__play {
    z-index: 2;
    display: grid;
    place-items: center;
    width: 5.6rem;
    height: 5.6rem;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    color: white;
    background: rgba(24, 24, 24, 0.34);
    backdrop-filter: blur(4px);
    position: absolute;
    top: 2rem;
    right: 2rem;
}

.entry__play svg {
    width: 2rem;
    height: 2rem;
    margin-left: 0.2rem;
    fill: currentColor;
}

.work-type {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.work-type::before {
    content: "";
    width: 2.4rem;
    height: 1px;
    background: currentColor;
}

.video-dialog {
    width: min(100% - 3.2rem, 104rem);
    max-height: calc(100vh - 3.2rem);
    border: 0;
    border-radius: 0;
    color: white;
    background: var(--color-3);
    box-shadow: 0 2.4rem 8rem rgba(0, 0, 0, 0.48);
    padding: 0;
}

.video-dialog::backdrop {
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(5px);
}

.video-dialog__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.4rem 1.6rem 1.4rem 2rem;
}

.video-dialog__bar h3 {
    color: white;
    font-family: var(--font-1);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
}

.video-dialog__close {
    display: grid;
    place-items: center;
    width: 4.4rem;
    height: 4.4rem;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 50%;
    color: white;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.video-dialog__close:hover {
    color: var(--color-3);
    background: white;
}

.video-dialog__close svg {
    width: 1.8rem;
    height: 1.8rem;
    fill: currentColor;
}

.video-dialog video {
    display: block;
    width: 100%;
    max-height: calc(100vh - 12rem);
    background: black;
}

.video-dialog--portrait {
    width: min(100% - 3.2rem, 58rem);
}

.video-dialog--portrait video {
    height: calc(100vh - 12rem);
    object-fit: contain;
}

.s-numbers {
    position: relative;
}

.s-numbers::before {
    content: "Creative practice";
    color: var(--color-text-light);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    position: absolute;
    top: var(--vspace-1_5);
    left: max(var(--gutter), calc((100vw - 1400px) / 2 + var(--gutter)));
}

.counter-items .num--level {
    font-size: clamp(5.8rem, 8vw, 12rem);
}

.s-footer__contact-link {
    display: inline-block;
    font-family: var(--font-2);
    font-size: clamp(2.4rem, 6vw, 7.2rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
    margin-top: var(--vspace-0_5);
}

.s-footer__details {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem 3rem;
    margin-top: var(--vspace-1);
}

.s-footer__details a {
    color: var(--color-gray-12);
}

.s-footer__about > p {
    color: #bdbebd;
}

.s-footer__bottom {
    color: #a5a7a5;
}

.ss-copyright a {
    color: #d4d6d4;
}

.template-credit {
    color: #a5a7a5;
    opacity: 1;
}

.template-credit a {
    color: white;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

@media (hover: none) {
    .folio-entries .entry__link::before {
        opacity: 0.42;
        visibility: visible;
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent 60%);
    }

    .folio-entries .entry__info {
        width: calc(100% - 4rem);
        transform: none;
        opacity: 1;
        visibility: visible;
        text-align: left;
        top: auto;
        left: 2rem;
        bottom: 2rem;
    }
}

@media screen and (max-width: 1080px) {
    .s-intro__content-pretitle {
        color: #ff8a70;
    }

    .s-intro__content-media::before {
        background: rgba(0, 0, 0, 0.4);
        opacity: 1;
    }

    .s-intro__content-media img {
        object-position: 50% 30%;
    }

    .viewfinder {
        inset: 10rem 4rem 4rem;
    }
}

@media screen and (max-width: 800px) {
    .behind-scenes {
        grid-template-columns: 1fr;
    }

    .behind-scenes__figure:last-child {
        aspect-ratio: 3 / 2;
    }
}

@media screen and (max-width: 700px) {
    .folio-entries {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 600px) {
    .s-header__logo img {
        width: 13.2rem;
    }

    .s-intro__content-text {
        max-width: 86vw;
    }

    .viewfinder {
        inset: 9.6rem 2rem 2rem;
    }

    .viewfinder::before,
    .viewfinder::after,
    .viewfinder__corners::before,
    .viewfinder__corners::after {
        width: 3.4rem;
        height: 3.4rem;
    }

    .s-intro__btn-download {
        display: none;
    }

    .behind-scenes__figure,
    .behind-scenes__figure:first-child,
    .behind-scenes__figure:last-child {
        min-height: 24rem;
        aspect-ratio: 4 / 3;
    }

    .s-footer__details {
        display: grid;
        gap: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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