* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --for-work-section-index: 0;
    --for-work-track-y: 0dvh;
    --for-work-transition: 860ms cubic-bezier(0.16, 1, 0.3, 1);
    --for-work-link-red: #D32F2F;
    --for-work-link-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-for-work-section] .site-copyright,
body[data-for-work-section] .site-copyright-text,
body[data-for-work-section] .scroll-down-btn {
    color: #ffffff !important;
}

body[data-for-work-section="1"] .site-copyright,
body[data-for-work-section="1"] .site-copyright-text,
body[data-for-work-section="1"] .site-legal-links,
body[data-for-work-section="1"] .site-legal-link,
body[data-for-work-section="1"] .site-legal-separator,
body[data-for-work-section="1"] .scroll-down-btn {
    color: #000000 !important;
}

header {
    font-family: var(--font-acumin);
    font-weight: 200;
    font-style: italic;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

header nav ul li a {
    font-style: normal;
    font-weight: 400;
    color: #000000 !important;
}

header nav ul li:last-child a {
    color: #b20f18 !important;
    font-style: italic;
    font-weight: 200;
}

body.site-chrome-dark header nav ul li,
body.site-chrome-dark header nav ul li a {
    color: #ffffff !important;
}

body.site-chrome-light header nav ul li,
body.site-chrome-light header nav ul li a {
    color: #000000 !important;
}

body.site-chrome-dark header nav ul li:last-child a,
body.site-chrome-light header nav ul li:last-child a {
    color: #b20f18 !important;
}

.for-work-card-nav-link {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    white-space: nowrap;
    transition: color 220ms var(--for-work-link-ease), opacity 220ms ease;
}

.for-work-card-nav-link[aria-current="page"],
.for-work-card-nav-link:focus-visible {
    color: var(--for-work-link-red) !important;
}

.for-work-card-nav-link:focus-visible {
    outline: 1px solid var(--for-work-link-red);
    outline-offset: 8px;
}

.for-work-card-nav-full {
    display: inline-block;
}

.for-work-card-nav-word {
    display: none;
}

.nav-link-bottom-active,
header nav ul li:last-child a.nav-link-bottom-active {
    animation: navLinkBottomBlink 1s ease-in-out infinite !important;
}

@keyframes navLinkBottomBlink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.18;
    }
}

@keyframes forWorkNavWordReveal {
    0% {
        clip-path: inset(0 100% 0 0);
        opacity: 0;
    }

    100% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

@media (hover: hover) and (pointer: fine) {
    .for-work-card-nav-link:hover {
        color: var(--for-work-link-red) !important;
    }
}

.for-work-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: visible;
    font-family: var(--font-acumin);
}

.for-work-screen-track {
    width: 100%;
    height: auto;
    transform: none;
    transition: none;
    will-change: auto;
}

.for-work-screen {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + env(safe-area-inset-top) + 18px) clamp(22px, 6vw, 72px) calc(var(--footer-height) + 92px + env(safe-area-inset-bottom));
    text-align: center;
    isolation: isolate;
    overflow: hidden;
}

.for-work-gallery {
    --for-work-gallery-reveal: 1;
    --for-work-gallery-stage-scale: 1;
    padding: 0;
    background: #000000;
}

.for-work-gallery-stage {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #000000;
    pointer-events: none;
    opacity: var(--for-work-gallery-reveal);
    transform: scale(var(--for-work-gallery-stage-scale));
    transform-origin: center center;
    transition: opacity 420ms ease, transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.for-work-gallery-layer {
    position: absolute;
    inset: -3px;
    opacity: 0;
    transform: scale(1.035);
    filter: blur(10px);
    transition: opacity 760ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 920ms cubic-bezier(0.16, 1, 0.3, 1),
        filter 760ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

.for-work-gallery-layer.is-active {
    z-index: 2;
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.for-work-gallery-layer.is-exiting {
    z-index: 1;
    opacity: 0;
    transform: scale(0.985);
    filter: blur(8px);
}

.for-work-gallery-tile {
    position: absolute;
    display: block;
    max-width: none;
    object-fit: fill;
    backface-visibility: hidden;
    user-select: none;
    pointer-events: none;
}

.for-work-gallery-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 3;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 18px 44px rgba(0, 0, 0, 0.24));
    user-select: none;
    pointer-events: none;
}

.for-work-gallery-layer.is-video-layer {
    inset: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.16), transparent 42%),
        linear-gradient(180deg, rgba(9, 10, 13, 0.9) 0%, rgba(18, 18, 22, 0.72) 45%, rgba(6, 6, 8, 0.92) 100%);
}

.for-work-gallery-video-ambient {
    position: absolute;
    inset: -4%;
    width: 108%;
    height: 108%;
    display: block;
    z-index: 0;
    object-fit: cover;
    transform: scale(1.12);
    filter: blur(22px) saturate(1.08) brightness(0.58) contrast(1.08);
    opacity: 0.82;
    user-select: none;
    pointer-events: none;
}

.for-work-gallery-video-ambient-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.13), transparent 34%),
        radial-gradient(circle at 50% 50%, transparent 42%, rgba(0, 0, 0, 0.38) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0.08) 42%, rgba(0, 0, 0, 0.36) 100%);
}

.for-work-gallery-video-ambient-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        repeating-radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.26) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 5px);
    mix-blend-mode: soft-light;
}

.for-work-gallery-text {
    position: relative;
    z-index: 2;
    max-width: min(760px, 78vw);
    padding: 0 22px;
    font-family: var(--font-acumin);
    font-size: clamp(22px, 4.6vw, 56px);
    font-weight: 200;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    color: #ffffff;
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.58);
    transition: opacity 360ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.for-work-gallery.is-gallery-label-visible .for-work-gallery-text {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.for-work-gallery-controls {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(18px, 3.2vw, 48px);
    pointer-events: none;
}

.for-work-gallery-arrow {
    --for-work-gallery-stretch: 0;
    --for-work-gallery-stretch-x: 0px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(42px, 5vw, 68px);
    height: clamp(78px, 8vw, 108px);
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    font-family: var(--font-acumin);
    font-size: 0;
    font-weight: 200;
    line-height: 1;
    cursor: pointer;
    opacity: 0.88;
    transition: opacity 280ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1), visibility 280ms ease;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

.for-work-gallery-scroll-bar {
    display: block;
    width: 2px;
    height: clamp(58px, 6.2vw, 86px);
    border-radius: 999px;
    background: currentColor;
    box-shadow:
        0 0 18px rgba(255, 255, 255, 0.64),
        0 8px 28px rgba(0, 0, 0, 0.26);
    transform: translate3d(var(--for-work-gallery-stretch-x), 0, 0) scaleY(calc(1 + var(--for-work-gallery-stretch)));
    transform-origin: center center;
    transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms ease;
    will-change: transform;
}

.for-work-gallery-arrow:hover,
.for-work-gallery-arrow:focus-visible {
    opacity: 1;
}

.for-work-gallery-arrow:active {
    transform: scale(0.92);
}

.for-work-gallery-arrow.is-swipe-stretch .for-work-gallery-scroll-bar {
    opacity: 1;
}

.for-work-gallery-arrow:disabled {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.72);
}

.for-work-gallery-arrow:focus-visible {
    outline: 1px solid #ffffff;
    outline-offset: 8px;
}

.site-copyright {
    z-index: 40;
}

.site-copyright::before,
.site-copyright::after {
    z-index: 38;
}

.site-copyright-text {
    z-index: 41;
}

.mobile-scroll-control {
    display: none;
    position: fixed;
    left: 50%;
    bottom: calc(70px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 45;
    padding: 0;
    margin: 0;
}

.scroll-down-btn {
    min-width: 48px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #000000;
    font-family: var(--font-acumin);
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 200;
    font-style: normal;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.scroll-down-btn:hover {
    opacity: 0.7;
}

.scroll-down-btn:active {
    opacity: 0.9;
}

.scroll-arrows {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(2px, 0.8vw, 7px);
    letter-spacing: 0;
    opacity: 1;
    animation: arrows-move-down 1.2s ease-in-out infinite;
    transition: opacity 180ms ease;
}

.scroll-down-btn.is-changing-direction .scroll-arrows {
    opacity: 0;
}

.scroll-down-btn[data-scroll-direction="up"] .scroll-arrows {
    animation-name: arrows-move-up;
}

.scroll-arrows span {
    display: block;
    transform: rotate(0deg);
    transform-origin: center center;
}

.scroll-down-btn[data-scroll-direction="up"] .scroll-arrows span {
    transform: rotate(180deg);
}

@keyframes arrows-move-down {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

@keyframes arrows-move-up {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@media (min-width: 1025px) {
    .for-work-page {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .for-work-screen-track {
        height: auto;
        transform: none !important;
        transition: none;
        will-change: auto;
    }

    .for-work-screen {
        height: 100vh;
        height: 100svh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;
    }

    .mobile-scroll-control {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    html.for-work-controlled-scroll,
    html.for-work-controlled-scroll body {
        height: 100%;
        overflow: hidden;
        overscroll-behavior: none;
    }

    body.for-work-controlled-scroll {
        position: fixed;
        inset: 0;
        width: 100%;
        touch-action: none;
    }

    html.for-work-controlled-scroll .for-work-page {
        height: 100svh;
        height: 100dvh;
        min-height: 100svh;
        min-height: 100dvh;
        overflow: hidden;
    }

    html.for-work-controlled-scroll .for-work-screen-track {
        height: 100svh;
        height: 100dvh;
        transform: translate3d(0, var(--for-work-track-y), 0);
        transition: transform var(--for-work-transition);
        will-change: transform;
    }

    html.for-work-controlled-scroll .for-work-screen {
        height: 100svh;
        height: 100dvh;
        min-height: 100svh;
        min-height: 100dvh;
    }

    .for-work-gallery-controls {
        display: flex;
        top: calc(var(--header-height) + env(safe-area-inset-top) + 18px);
        right: 0;
        bottom: calc(var(--footer-height) + 92px + env(safe-area-inset-bottom));
        left: 0;
        padding-right: clamp(20px, 4.4vw, 42px);
    }

    .for-work-gallery-arrow {
        width: clamp(42px, 8vw, 64px);
        height: clamp(72px, 13vw, 96px);
    }

    .for-work-gallery-scroll-bar {
        height: clamp(50px, 11vw, 76px);
    }

    .mobile-scroll-control {
        display: flex;
    }
}

@media (max-width: 768px) {
    header nav ul {
        flex-wrap: nowrap;
        align-items: center;
        gap: clamp(5px, 1.7vw, 9px);
    }

    header nav ul li {
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
    }

    .for-work-card-nav-link {
        display: inline-flex;
        align-items: center;
        width: 9.2ch;
        line-height: 1;
        overflow: hidden;
        white-space: nowrap;
        vertical-align: middle;
    }

    .for-work-card-nav-full {
        display: none;
    }

    .for-work-card-nav-word {
        display: inline-block;
        line-height: 1;
        color: currentColor;
        white-space: nowrap;
        clip-path: inset(0 0 0 0);
        will-change: clip-path, opacity;
    }

    .for-work-card-nav-word.is-revealing {
        animation: forWorkNavWordReveal 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .for-work-screen {
        padding: calc(var(--header-height) + env(safe-area-inset-top) + 14px) clamp(18px, 6vw, 30px) calc(var(--footer-height) + 82px + env(safe-area-inset-bottom));
    }

    .for-work-gallery-controls {
        top: calc(var(--header-height) + env(safe-area-inset-top) + 14px);
        bottom: calc(var(--footer-height) + 82px + env(safe-area-inset-bottom));
    }

    .for-work-gallery-text {
        font-size: clamp(20px, 6vw, 42px);
    }

    .for-work-gallery-controls {
        display: flex;
        padding-right: clamp(18px, 5vw, 34px);
    }

    .for-work-gallery-arrow {
        width: clamp(40px, 12vw, 56px);
        height: clamp(66px, 19vw, 84px);
    }

    .for-work-gallery-scroll-bar {
        width: 2px;
        height: clamp(46px, 15vw, 66px);
    }

}

@media (max-width: 480px) {
    .for-work-gallery-text {
        font-size: clamp(19px, 7vw, 36px);
    }
}

@media (max-width: 360px) {
    .for-work-screen {
        padding-top: calc(var(--header-height) + env(safe-area-inset-top) + 10px);
        padding-bottom: calc(var(--footer-height) + 78px + env(safe-area-inset-bottom));
    }

    .for-work-gallery-controls {
        top: calc(var(--header-height) + env(safe-area-inset-top) + 10px);
        bottom: calc(var(--footer-height) + 78px + env(safe-area-inset-bottom));
    }

}

@media (hover: hover) and (pointer: fine) {
    .for-work-gallery-controls {
        display: flex;
    }
}

@media (prefers-reduced-motion: reduce) {
    .for-work-screen-track,
    .scroll-down-btn,
    .scroll-arrows,
    .scroll-arrows span,
    .for-work-gallery-layer,
    .for-work-gallery-stage,
    .for-work-gallery-text,
    .for-work-gallery-scroll-bar,
    .for-work-card-nav-word {
        animation: none !important;
        filter: none !important;
        transition-duration: 1ms !important;
    }
}
