html {
    scroll-snap-type: none;
}

body.work-page {
    background: #deddd8;
    color: #050505;
    overflow-x: hidden;
}

.work-page .hud-element {
    z-index: 20;
}

.work-page .logo,
.work-page .nav-item {
    color: #050505;
}

.work-page .logo {
    text-decoration: none;
}

.work-page .logo-sup {
    color: #7a6339;
}

.work-page .nav-item::after {
    background: #050505;
}

.work-page .nav-item.is-current {
    opacity: 1;
}

body.work-dark-nav .logo,
body.work-dark-nav .nav-item {
    color: #fff;
}

body.work-dark-nav .logo-sup {
    color: var(--accent-warm);
}

body.work-dark-nav .nav-item::after {
    background: #fff;
}


.work-main {
    position: relative;
}

.work-index {
    padding: 8rem 0 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.work-index-inner,
.work-collection {
    margin: 0 auto;
}

.work-index-inner {
    width: var(--content-shell-width);
}

.work-index-copy,
.work-entry-copy {
    min-width: 0;
}

.work-kicker,
.work-entry-meta,
.work-tags {
    font-family: var(--font-stack);
}

.work-kicker {
    color: #7a6339;
    font-size: 0.76rem;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.work-index h1 {
    font-family: var(--font-display);
    font-size: clamp(72px, 12vw, 176px);
    line-height: 0.88;
    font-weight: 730;
    letter-spacing: 0;
    margin-bottom: 2rem;
}

.work-intro {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.55vw, 1.42rem);
    line-height: 1.5;
    max-width: 780px;
    color: rgba(0, 0, 0, 0.72);
}

.work-collection {
    width: var(--content-shell-width);
    padding: 0 0 7rem;
    scroll-margin-top: 6.25rem;
}

.work-scroll-cue {
    position: fixed;
    left: 50%;
    bottom: 2rem;
    z-index: 30;
    display: grid;
    width: 3.4rem;
    height: 2rem;
    place-items: center;
    color: #f4f0e7;
    mix-blend-mode: difference;
    transform: translateX(-50%);
    transition: opacity 0.35s ease, transform 0.35s ease, background-color 0.2s ease;
}

.work-scroll-cue:hover {
    color: #fff;
}

.work-scroll-cue:focus-visible {
    outline: 2px solid #7a6339;
    outline-offset: 0.3rem;
}

.work-scroll-cue svg {
    width: 2.7rem;
    height: 1.8rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.35;
    animation: work-scroll-cue 1.7s ease-in-out infinite;
}

.work-scroll-cue.is-hidden {
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 0.75rem);
}

@keyframes work-scroll-cue {
    0%, 100% { transform: translateY(-0.12rem); }
    50% { transform: translateY(0.18rem); }
}

.work-collection.is-dark {
    background: #050505;
    color: #fff;
    box-shadow: 0 0 0 100vmax #050505;
    clip-path: inset(0 -100vmax);
}

.work-list {
    display: grid;
}

.work-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    margin-top: 6rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.18);
    color: rgba(0, 0, 0, 0.52);
    font-family: var(--font-stack);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.work-footer span:last-child {
    text-align: right;
}

.work-collection.is-dark .work-footer {
    border-top-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.58);
}

.work-entry {
    padding: 0 0 6rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.work-entry-link {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
    gap: clamp(2rem, 2.1vw, 2.5rem);
    color: inherit;
    text-decoration: none;
}

.work-entry-link:focus-visible {
    outline: 2px solid #7a6339;
    outline-offset: 0.6rem;
}

.work-entry + .work-entry {
    padding-top: 5.5rem;
}

.work-collection.is-dark .work-entry {
    border-bottom-color: rgba(255, 255, 255, 0.16);
}

.work-media {
    position: relative;
    margin: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111;
}

.work-media img,
.work-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.94) contrast(1.02);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
}

@media (hover: hover) and (pointer: fine) {
    .work-entry-link:hover .work-media img,
    .work-entry-link:hover .work-media video {
        transform: scale(1.018);
        filter: saturate(1) contrast(1.04);
    }
}

.work-entry-copy {
    align-self: start;
}

.work-entry-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: rgba(0, 0, 0, 0.48);
    font-size: 0.72rem;
    text-transform: uppercase;
    border-top: 1px solid rgba(0, 0, 0, 0.28);
    padding-top: 0.9rem;
    margin-bottom: 1.5rem;
}

.work-collection.is-dark .work-entry-meta {
    color: rgba(255, 255, 255, 0.62);
    border-top-color: rgba(255, 255, 255, 0.22);
}

.work-entry h3 {
    font-family: var(--font-display);
    font-size: clamp(32px, 3.2vw, 56px);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 1.4rem;
}

.work-entry p {
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.58;
    color: rgba(0, 0, 0, 0.66);
    margin-bottom: 2rem;
}

.work-collection.is-dark .work-entry p {
    color: rgba(255, 255, 255, 0.68);
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.work-tags span {
    color: rgba(0, 0, 0, 0.64);
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 0.52rem 0.62rem;
    font-size: 0.68rem;
    text-transform: uppercase;
}

.work-collection.is-dark .work-tags span {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.22);
}

.work-empty {
    font-family: var(--font-display);
    font-size: 1.1rem;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.58);
}

.work-collection.is-dark .work-empty {
    color: rgba(255, 255, 255, 0.58);
}

@media (min-width: 961px) {
    .work-index {
        min-height: clamp(31rem, 57svh, 40rem);
        display: flex;
        align-items: flex-end;
        box-sizing: border-box;
        padding: 7rem 0 2.75rem;
    }

    .work-index h1 {
        font-size: clamp(78px, 9vw, 150px);
        margin-bottom: 1.5rem;
    }

    .work-intro {
        max-width: 44rem;
        font-size: clamp(1rem, 1.2vw, 1.2rem);
        line-height: 1.45;
    }

    .work-collection {
        padding-top: 5.5rem;
    }
}

@media (min-width: 2000px) {
    .work-index h1 { font-size: clamp(9rem, 6vw, 11rem); }
    .work-intro { max-width: 49rem; font-size: clamp(1.1rem, 1.05vw, 1.3rem); }
}

@media (max-width: 960px) {
    .work-index {
        padding: 7.25rem 1.6rem 2rem;
    }

    .work-index-inner,
    .work-collection {
        width: 100%;
    }

    .work-entry-link {
        grid-template-columns: 1fr;
        gap: 2.4rem;
    }

    .work-collection {
        width: 100%;
        padding: 3rem 1.6rem 5rem;
    }

    .work-footer {
        grid-template-columns: 1fr;
        gap: 0.9rem;
        margin-top: 3.5rem;
    }

    .work-footer span:last-child {
        text-align: left;
    }

    .work-entry {
        padding-bottom: 3rem;
    }

    .work-entry + .work-entry {
        padding-top: 3rem;
    }
}

@media (max-width: 768px) {
    .work-page .hud-tl {
        padding-top: 3.2rem;
    }

    .work-page .hud-tr {
        display: block;
    }

    .work-page .nav-list {
        justify-content: flex-start;
    }

    .work-index h1 {
        font-size: clamp(43px, 13vw, 64px);
        line-height: 0.92;
        letter-spacing: -0.035em;
        margin-bottom: 1.35rem;
        overflow-wrap: normal;
    }

    .work-intro {
        font-size: 1rem;
    }

    .work-media {
        aspect-ratio: 4 / 3;
    }

    .work-entry-meta {
        display: grid;
        gap: 0.35rem;
        order: 2;
        border-top: 0;
        padding-top: 0;
        margin-bottom: 1.05rem;
    }

    .work-entry h3 {
        font-size: 34px;
        order: 1;
        margin-bottom: 0.95rem;
    }

    .work-entry-copy {
        display: flex;
        flex-direction: column;
    }

    .work-entry-link {
        gap: 1.9rem;
    }

    .work-entry {
        padding-bottom: 2.4rem;
    }

    .work-entry + .work-entry {
        padding-top: 2.4rem;
    }

    .work-entry p {
        order: 3;
        margin-bottom: 1.25rem;
    }

    .work-tags {
        order: 4;
    }

    .work-tags span {
        font-size: 0.64rem;
    }

    .work-scroll-cue {
        bottom: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .work-scroll-cue,
    .work-scroll-cue svg,
    .home-scroll-cue,
    .home-scroll-cue svg {
        animation: none;
        transition: none;
    }
}

@media (max-width: 768px) {
    .work-page .hud-tr {
        top: var(--hud-block);
        left: auto;
        right: 0;
        padding-top: 0;
    }
}
