/* Brand palette shared by page styles and future CMS colour options. */
:root {
    /* Shared page edges, aligned with the desktop header top spacing. */
    --page-gutter: 1.5rem;

    /* Typography */
    --font-body: "Rubik", system-ui, sans-serif;
    --font-editorial: "EB Garamond", Georgia, serif;
    --statement-size: clamp(1.5rem, 3vw, 3.5rem);

    --color-charcoal: #292623;
    --color-chalk: #FEFFFA;
    --color-fog: #EDEEEE;
    --color-sage: #C3CEB7;
    --color-moss: #7A8962;
    --color-olive: #737950;
    --color-forest: #43703A;
    --color-mist: #C4D9E8;
    --color-powder: #CCDCFF;
    --color-slate: #55678E;
    --color-teal: #547C80;
    --color-rose: #AB7477;
    --color-mauve: #B89BA8;
    --color-wine: #650322;
    --color-plum: #796277;
    --color-peach: #E6B6A0;
    --color-straw: #F1DFA3;
    --color-gold: #C99A3D;
    --color-clay: #B87961;
    --color-eucalyptus: #94AAA0;
    --color-lavender: #C8C4D8;
    --color-sand: #D8CBB7;
    --color-cream: #F5F1E8;

    /* Supporting colours */
    --color-white: #FFFFFF;
    --color-text-secondary: #67645F;
    --color-border-light: #E4E4E4;
}

@media (max-width: 800px) {
    :root { --page-gutter: 1rem; }
}

/* Minimal foundation. Page styles will be added alongside the designs. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color-scheme: light;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--color-white);
    color: var(--color-charcoal);
    font-family: var(--font-body);
    line-height: 1.5;
}


/* Body copy, tags and small text inherit Rubik. */
.font-body {
    font-family: var(--font-body);
}

/* Use .text-editorial for larger editorial copy outside headings. */
h1,
h2,
h3,
h4,
h5,
h6,
.text-editorial {
    font-family: var(--font-editorial);
    font-weight: 400;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

.error-page {
    padding: 2rem var(--page-gutter);
}

/* Shared editorial header */
.site-header {
    background: transparent;
    color: var(--project-hover-foreground, var(--project-foreground, var(--header-foreground, var(--color-charcoal))));
}

.site-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "left brand right";
    align-items: flex-start;
    gap: clamp(3rem, 7vw, 8rem);
    padding: 1.75rem var(--page-gutter);
}

.site-header__brand {
    grid-area: brand;
    justify-self: center;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    text-decoration: none;
}

.site-header__monogram {
    display: block;
    width: 80px;
    aspect-ratio: 180 / 105;
    background-color: currentColor;
    -webkit-mask: var(--monogram-url) center / contain no-repeat;
    mask: var(--monogram-url) center / contain no-repeat;
}

.site-header__name {
    font-family: var(--font-editorial);
    font-size: 1.5rem;
}

.site-header__links {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: .25rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header__links--left {
    grid-area: left;
}

.site-header__links--right {
    grid-area: right;
    justify-content: space-between;
}

.site-header__link {
    position: relative;
    display: inline-grid;
    align-items: start;
    font-style: normal;
    padding-inline: .85em;
    min-height: 44px;
    max-width: 100%;
    font-family: var(--font-editorial);
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .025em;
    text-decoration: none;
    text-transform: none;
    overflow-wrap: anywhere;
}

.site-header__links li {
    display: flex;
    min-width: 0;
    max-width: 100%;
}

/* Keep every header element solid; italics identify the current page. */
.site-header__link[aria-current="page"] .site-header__label {
    font-style: italic;
}

/* Solid parentheses slide through a clipping mask, without shifting the text. */
.site-header__link::before,
.site-header__link::after {
    position: absolute;
    top: 0;
    font-style: normal;
    pointer-events: none;
    transition:
        clip-path 320ms cubic-bezier(.16, 1, .3, 1),
        transform 420ms cubic-bezier(.16, 1, .3, 1);
}

.site-header__link::before {
    content: "(";
    left: .15em;
    clip-path: inset(0 0 0 100%);
    transform: translateX(-.28em);
    transform-origin: center;
}

.site-header__link::after {
    content: ")";
    right: .15em;
    clip-path: inset(0 100% 0 0);
    transform: translateX(.28em);
    transform-origin: center;
}

.site-header__link:is(:hover, :focus-visible, [aria-current="page"])::before,
.site-header__link:is(:hover, :focus-visible, [aria-current="page"])::after {
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
    .site-header__link::before,
    .site-header__link::after {
        transition: none;
    }
}

.site-header a:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 4px;
}

/* One evenly distributed navigation row, aligned to the mobile page gutters. */
@media (max-width: 1050px) {
    .site-header__inner {
        grid-template-columns: repeat(var(--navigation-count, 4), max-content);
        grid-template-areas: none;
        justify-content: space-between;
        gap: 1rem .625rem;
        padding: 1.25rem 1rem .5rem;
    }

    .site-header__brand {
        grid-area: auto;
        grid-column: 1 / -1;
    }

    .site-header__monogram { width: 64px; }

    .site-header__links { display: contents; }

    .site-header__link {
        font-size: 1rem;
        letter-spacing: 0;
        padding-inline: 0;
        white-space: nowrap;
        overflow-wrap: normal;
    }

    /* Brackets sit in the gutters so the labels keep their alignment. */
    .site-header__link::before { left: -.65em; }
    .site-header__link::after { right: -.65em; }
}

/* Compact mobile navigation, with the monogram and menu at opposite edges. */
.site-header__mobile-menu { display: none; }
@media (max-width: 700px) {
    .site-header__inner { grid-template-columns: auto auto; align-items: start; }
    .site-header__brand { grid-area: auto; grid-column: 1; grid-row: 1; justify-self: start; }
    .site-header__links { display: none; }
    .site-header__mobile-menu { display: block; position: relative; grid-column: 2; grid-row: 1; justify-self: end; }
    /* Soften the page with blur and a wash of its own background colour. */
    .site-header { position: relative; isolation: isolate; z-index: 30; }
    .site-header::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        background: color-mix(in srgb, var(--menu-backdrop-colour, var(--project-background, var(--information-background, var(--color-white)))) 55%, transparent);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 350ms ease;
    }
    .site-header:has(.site-header__mobile-menu[open])::before {
        opacity: 1;
        pointer-events: auto;
        touch-action: none;
    }

    .site-header__mobile-menu summary {
        display: block;
        min-height: 44px;
        min-width: 44px;
        text-align: right;
        list-style: none;
        cursor: pointer;
        font-family: var(--font-editorial);
        font-size: 1.125rem;
        line-height: 1.4;
    }
    .site-header__mobile-menu summary::-webkit-details-marker { display: none; }
    .site-header__menu-close { display: none; }
    .site-header__mobile-menu[open] .site-header__menu-open { display: none; }
    .site-header__mobile-menu[open] .site-header__menu-close { display: inline; }
    .site-header__mobile-menu summary:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
    .site-header__mobile-links {
        position: absolute;
        z-index: 2;
        top: 100%;
        right: -.5rem;
        min-width: 11rem;
        margin: 0;
        padding: .75rem 1rem .5rem;
        list-style: none;
        text-align: right;
        background: transparent;
    }
    .site-header__mobile-links .site-header__link { font-size: 1.125rem; min-height: 44px; }
    .site-header__mobile-menu[open] .site-header__mobile-links { animation: mobile-menu-reveal 350ms cubic-bezier(.22,1,.36,1) both; }
}
@keyframes mobile-menu-reveal {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .site-header__mobile-menu[open] .site-header__mobile-links { animation: none; }
    .site-header::before { transition: none; }
}

@media (max-width: 560px) {
    .site-header__inner { row-gap: .875rem; }
    .site-header__link { font-size: clamp(.8125rem, 3.45vw, 1rem); }
}

/* Homepage-only arrival sequence. Hidden unless the first-visit script opts in. */
/* A fullscreen cover that scrolls naturally off the homepage. */
.home-intro { display: none; --gallery-logo-width: 80px; }
.home-cover-enabled .home-intro {
    display: block;
    position: relative;
    height: 100svh;
    z-index: 40;
    isolation: isolate;
    background: var(--color-charcoal);
    color: var(--color-white);
}
.home-intro__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--cover-position, center);
}
.home-intro__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgb(0 0 0 / 12%) 65%, rgb(0 0 0 / 55%));
    pointer-events: none;
}
.home-intro__caption {
    position: absolute;
    z-index: 1;
    inset-inline: var(--page-gutter);
    bottom: max(2.5rem, 6svh);
    text-align: center;
    pointer-events: none;
}
.home-intro__title {
    margin: 0 auto;
    max-width: 22ch;
    font: 400 clamp(2rem, 4vw, 4rem)/1 var(--font-editorial);
    letter-spacing: -.045em;
    text-transform: none;
    text-wrap: balance;
    overflow-wrap: anywhere;
}
.home-intro__skip {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    padding: .75rem 1rem;
    background: var(--color-chalk);
    color: var(--color-charcoal);
    font: 400 .75rem/1.4 var(--font-body);
    transform: translateY(-200%);
}
.home-intro__skip:focus-visible { transform: none; }

@media (max-width: 700px) {
    .home-intro__title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
}

/* A quiet opening statement, with projects scattered over it as you scroll. */
.page-home > .site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
}

.home-stage {
    position: relative;
    isolation: isolate;
    min-height: 100svh;
    color: var(--project-hover-foreground, var(--home-foreground, var(--color-charcoal)));
}

.home-stage::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--project-hover-background, var(--home-background, var(--color-white)));
    pointer-events: none;
}

.home-statement {
    position: fixed;
    inset-inline: var(--page-gutter);
    bottom: clamp(2rem, 6vh, 4rem);
    z-index: 0;
    pointer-events: none;
    opacity: var(--hover-statement-opacity, var(--statement-opacity, 1));
}

.home-statement__text {
    margin: 0;
    max-width: 52ch;
    font-family: var(--font-editorial);
    font-size: clamp(1.5rem, 2.3vw, 2.75rem);
    font-weight: 400;
    line-height: 1.16;
    letter-spacing: -.035em;
    text-wrap: balance;
}


.project-field {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    column-gap: clamp(1rem, 2.5vw, 3rem);
    row-gap: clamp(4rem, 12vh, 9rem);
    padding: max(11rem, 35vh) var(--page-gutter) 30vh;
}

.project-card {
    grid-column: var(--column) / span var(--span);
    grid-row: var(--row);
    margin-top: var(--offset);
    min-width: 0;
}

.project-card__inner {
    transform-origin: center;
}

.has-project-motion .project-card__inner {
    opacity: var(--project-opacity, 0);
    transform: translateY(var(--project-lift, 28px)) scale(var(--project-scale, .78));
}

.project-thumbnail {
    margin: 0;
}

.project-thumbnail .project-media {
    display: block;
    width: 100%;
    height: auto;
}

/* Image-only hover growth leaves the caption and scroll reveal independent. */
@media (prefers-reduced-motion: no-preference) {
    .project-card .project-thumbnail .project-media {
        transform-origin: center bottom;
        transition: transform 550ms cubic-bezier(.22, 1, .36, 1);
    }

    .project-card .project-thumbnail__link:focus-visible .project-media {
        transform: scale(1.035);
    }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .project-card .project-thumbnail .project-media:hover {
        transform: scale(1.035);
    }
}

.project-thumbnail__title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .15rem .75rem;
    margin-top: .65rem;
    padding: .1rem .25rem .1rem 0;
    background: transparent;
    font-family: var(--font-body);
    font-size: .75rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: .015em;
}

.home-extra {
    position: relative;
    z-index: 2;
    padding: 3rem var(--page-gutter);
    background: var(--project-hover-background, var(--home-background, var(--color-white)));
}

.project-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 4rem;
    max-width: 1200px;
    padding: 3rem var(--page-gutter);
    margin: 0 auto;
}

@media (max-width: 700px) {
    :root { --statement-size: clamp(1.25rem, 4.6vw, 1.75rem); }
    .home-statement {
        inset-inline: 1rem;
        bottom: max(1.5rem, env(safe-area-inset-bottom));
    }

    .home-statement__text {
        font-size: clamp(1.25rem, 5.5vw, 1.625rem);
        line-height: 1.1;
        letter-spacing: -.025em;
    }


    .project-field {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 1rem;
        row-gap: 4rem;
        padding: max(14rem, 34vh) 1rem 25vh;
    }

    .project-card {
        grid-row: auto;
        grid-column: 1 / span 3;
        margin-top: 0;
    }

    .project-card:nth-child(even) {
        grid-column: 2 / span 3;
        margin-top: 5vh;
    }

    .project-card:nth-child(4n + 4) {
        grid-column: 1 / -1;
    }

    .project-thumbnail__title {
        font-size: .6875rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .has-project-motion .project-card__inner {
        opacity: 1;
        transform: none;
    }
}

/* A project's single colour setting also themes its own page. */
.page-project {
    background: var(--project-background, var(--color-white));
    color: var(--project-foreground, var(--color-charcoal));
}

.project-thumbnail .project-media:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px;
}

@media (prefers-reduced-motion: no-preference) {
    .home-stage::before, .home-extra {
        transition: background-color 240ms ease;
    }
    .home-stage {
        transition: color 240ms ease;
    }
}

/* Information: an inset emblem within the opening editorial statement. */
.page-information {
    background: var(--information-background, var(--color-white));
    color: var(--information-foreground, var(--color-charcoal));
}
.page-information > .site-header {
    color: var(--information-foreground, var(--color-charcoal));
    position: fixed;
    z-index: 30;
    inset: 0 0 auto;
}
.information-page {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100svh;
    padding: 10rem var(--page-gutter) clamp(2rem, 4vh, 3rem);
    font-weight: 500;
}
.information-statement {
    display: flow-root;
    margin: 0;
    font-size: var(--statement-size);
    line-height: 1.08;
    letter-spacing: -.035em;
}
.information-statement__logo {
    float: left;
    width: 1.95em;
    height: 1.95em;
    margin: .12em .45em 0 0;
    background: currentColor;
    -webkit-mask: var(--information-logo) center / contain no-repeat;
    mask: var(--information-logo) center / contain no-repeat;
}
.information-extra {
    margin-top: 2rem;
    max-width: 42rem;
}
.information-groups {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: clamp(3rem, 7vw, 8rem);
    margin-top: clamp(2.5rem, 6vh, 4.5rem);
}
.information-group {
    min-width: 0;
    font-family: var(--font-body);
    font-size: .75rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.information-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.information-group li + li { margin-top: .2rem; }
.information-group a {
    text-decoration: none;
    transition: opacity 220ms ease;
}
.information-group a:is(:hover, :focus-visible) { opacity: .55; }
@media (prefers-reduced-motion: reduce) {
    .information-group a { transition: none; }
}
.information-group a:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
@media (max-width: 700px) {
    .information-page { padding: 8rem 1rem max(2rem, env(safe-area-inset-bottom)); }
    .information-statement { line-height: 1.1; letter-spacing: -.025em; }
    .information-groups { flex-direction: column; gap: 2rem; }
    .information-group { font-size: .6875rem; }
}

/* Layout 01: centred photography with fixed, quiet editorial annotations. */
.project-thumbnail__link { display: block; }
.project-thumbnail__link:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }
.page-project > .site-header { position: fixed; inset: 0 0 auto; z-index: 30; }
.project-gallery-page { --gallery-gutter: var(--page-gutter); }
.project-gallery-titles {
    position: fixed;
    inset: 50% var(--gallery-gutter) auto;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    z-index: 10;
    pointer-events: none;
}
.project-gallery-titles h1, .project-gallery-titles p {
    margin: 0;
    width: 20%;
    font-family: var(--font-editorial);
    font-size: clamp(1rem, 1.5vw, 1.375rem);
    font-weight: 400;
    line-height: 1.2;
    text-wrap: balance;
    overflow-wrap: anywhere;
}
.project-gallery-titles p { text-align: right; }
.project-gallery__slide {
    margin: 0;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 26vw;
}
.project-gallery__slide .project-media {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100svh - 16rem);
    object-fit: contain;
}
.project-gallery-meta {
    position: fixed;
    inset: auto var(--gallery-gutter) max(1.75rem, env(safe-area-inset-bottom));
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    z-index: 10;
    pointer-events: none;
    font-family: var(--font-body);
    font-size: .6875rem;
    font-weight: 500;
    line-height: 1.5;
}
.project-gallery-meta p { margin: 0; max-width: 40%; }
.project-gallery-meta ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem 1.5rem; margin: 0 0 0 auto; padding: 0; list-style: none; max-width: 60%; }
.project-gallery-meta li { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: no-preference) {
    .has-gallery-motion .project-gallery__slide .project-media { opacity: 0; transform: translateY(12px); transition: opacity 700ms ease, transform 900ms cubic-bezier(.22, 1, .36, 1); }
    .has-gallery-motion .project-gallery__slide.is-visible .project-media { opacity: 1; transform: translateY(0); }
}
@media (max-width: 800px) {
    .project-gallery-page { --gallery-gutter: 1rem; }
    .project-gallery-titles { inset: 10.5rem var(--gallery-gutter) auto; transform: none; align-items: flex-start; gap: 1.5rem; }
    .project-gallery-titles h1, .project-gallery-titles p { width: 48%; font-size: 1rem; }
    .project-gallery__slide { padding: 15rem 1rem 7rem; }
    .project-gallery__slide .project-media { max-height: calc(100svh - 22rem); }
    .project-gallery-meta { bottom: max(1.5rem, env(safe-area-inset-bottom)); font-size: .625rem; gap: 1rem; }
    .project-gallery-meta ul { gap: .25rem 1rem; }
}
@media (max-height: 600px) and (max-width: 800px) {
    .project-gallery__slide { min-height: 38rem; }
    .project-gallery__slide .project-media { max-height: 16rem; }
}

/* Layout 02: centred, continuous horizontal gallery with a quiet bottom caption. */
.project-horizontal-page {
    --film-height: clamp(12rem, 48svh, 36rem);
    --film-width-limit: 72vw;
    position: relative;
    min-height: max(100svh, 36rem);
}
.project-horizontal-heading { position: absolute; inset: auto 0 0; margin: clamp(1.5rem, 4vh, 2.5rem) var(--gallery-gutter) max(1.75rem, env(safe-area-inset-bottom)); }
.project-horizontal-heading .project-gallery-titles {
    position: static;
    transform: none;
    align-items: flex-start;
}
.project-horizontal-heading .project-gallery-titles h1,
.project-horizontal-heading .project-gallery-titles p { width: 48%; }
.project-horizontal-heading .project-gallery-meta {
    position: static;
    margin-top: 1.25rem;
    align-items: flex-start;
}
.project-horizontal-gallery {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: clamp(1.5rem, 3vw, 3rem);
    width: 100%;
    margin-top: 0;
    padding: 0 calc((100% - min(var(--film-width-limit), var(--film-height) * var(--last-aspect))) / 2) 0 calc((100% - min(var(--film-width-limit), var(--film-height) * var(--first-aspect))) / 2);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.project-horizontal-gallery::-webkit-scrollbar { display: none; }
/* A scroller-wide inset outline can leave horizontal rules behind the media
   in Safari. Show keyboard focus on the selected thumbnail instead. */
.project-horizontal-gallery:focus { outline: none; }
.project-horizontal-page:has(.project-horizontal-gallery:focus-visible) [data-horizontal-index][aria-current="true"] {
    outline: 1px solid currentColor;
    outline-offset: 3px;
}
.project-horizontal-gallery.is-wheel-scrolling,
.project-horizontal-gallery.is-looping { scroll-snap-type: none; }
.project-horizontal-gallery.is-looping { padding-inline: 50%; }
.project-horizontal-gallery__item {
    position: relative;
    flex: 0 0 min(var(--film-width-limit), calc(var(--film-height) * var(--image-aspect)));
    height: var(--film-height);
    margin: 0;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Animate the media box, not a scaled compositing layer: Safari can leave
   one-pixel trails when transformed translucent media moves in a scroller.
   Fixed figure dimensions keep the loop geometry unchanged while images grow. */
.project-horizontal-gallery__item .project-media {
    position: absolute;
    width: calc(100% * var(--image-scale, .55));
    height: calc(100% * var(--image-scale, .55));
    left: calc(50% - 50% * var(--image-scale, .55));
    top: calc(50% - 50% * var(--image-scale, .55) + var(--image-offset, 0px));
    object-fit: contain;
    object-position: center top;
    opacity: var(--image-opacity, .5);
}
.project-horizontal-gallery__item:nth-child(4n + 1) { --image-scale: .48; }
.project-horizontal-gallery__item:nth-child(4n + 2) { --image-scale: .6; }
.project-horizontal-gallery__item:nth-child(4n + 3) { --image-scale: .52; }
.project-horizontal-gallery__item:nth-child(4n + 4) { --image-scale: .64; }
.project-horizontal-gallery__item:first-child { --image-opacity: 1; --image-scale: 1; }
@media (max-width: 800px) {
    .project-horizontal-page { --film-height: clamp(12rem, 43svh, 28rem); --film-width-limit: 70vw; }
    .project-horizontal-heading { margin-top: 1.75rem; margin-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
    .project-horizontal-gallery { gap: 1rem; }
    .project-horizontal-heading .project-gallery-meta { margin-top: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .project-horizontal-gallery__item .project-media { width: 100%; height: 100%; left: 0; top: 0; }
}

/* Layout 03: a quiet text column beside a single-item gallery. */
.project-editorial-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    column-gap: clamp(3rem, 9vw, 10rem);
    min-height: 100svh;
    padding: 9rem var(--page-gutter) 2rem;
}
.project-editorial-heading {
    position: sticky;
    top: 9rem;
    align-self: start;
    min-width: 0;
    min-height: calc(100svh - 11rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(5rem, 12svh, 10rem);
    padding-top: 1.25rem;
}
.project-editorial-heading h1 {
    margin: 0;
    font-family: var(--font-editorial);
    font-size: clamp(3.25rem, 7.2vw, 8rem);
    font-weight: 400;
    line-height: .84;
    letter-spacing: -.045em;
    text-transform: uppercase;
    text-align: center;
    text-wrap: balance;
    overflow-wrap: anywhere;
}
.project-editorial-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem 1.5rem;
}
.project-editorial-detail-group {
    flex: 1 1 7rem;
    max-width: 20ch;
    list-style: none;
    margin: 0;
    padding: 0;
    font: 500 clamp(.5625rem, .7vw, .6875rem)/1.3 var(--font-body);
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.project-editorial-detail-group li:nth-child(even) { text-align: right; }
.project-editorial-detail-group:last-child { text-align: right; }
.project-editorial-right { min-width: 0; display: flex; flex-direction: column; }
.project-click-gallery__slide { margin: 0; }
.project-click-gallery.is-ready .project-click-gallery__stage { height: clamp(15rem, 48svh, 36rem); }
.project-click-gallery.is-ready .project-click-gallery__slide { height: 100%; }
.project-click-gallery__slide[hidden], .project-click-gallery__controls[hidden] { display: none; }
.project-click-gallery__advance {
    display: block;
    padding: 0;
    border: 0;
    width: 100%;
    height: 100%;
    background: none;
    color: inherit;
    cursor: pointer;
}
.project-click-gallery .project-media { width: 100%; height: 100%; object-fit: contain; object-position: right center; }
.project-click-gallery__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: .875rem;
    font: 500 .6875rem/1.5 var(--font-body);
}
.project-click-gallery__controls button { font: inherit; color: inherit; padding: .5rem 0; border: 0; background: none; cursor: pointer; }
.project-click-gallery button:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.project-click-gallery__controls button:hover { opacity: .55; }
.project-editorial-description {
    margin-top: auto;
    padding-top: clamp(2.5rem, 6vh, 5rem);
    font-family: var(--font-editorial);
    font-size: clamp(1.125rem, 1.6vw, 1.5rem);
    line-height: 1.3;
}
.project-editorial-description > :first-child { margin-top: 0; }
.project-editorial-description > :last-child { margin-bottom: 0; }
.project-video-fallback { font: 500 .75rem/1.5 var(--font-body); }
.project-video-fallback[hidden] { display: none; }
@media (max-width: 800px) {
    .project-editorial-page { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding: 10.5rem 1rem 2rem; }
    .project-editorial-heading { position: static; min-height: clamp(22rem, 56svh, 34rem); padding-top: 0; gap: 4rem; }
    .project-editorial-heading h1 { font-size: clamp(3.25rem, 13.5vw, 6.75rem); }
    .project-editorial-detail-group { font-size: .625rem; }
    .project-click-gallery.is-ready .project-click-gallery__stage { height: clamp(14rem, 42svh, 28rem); }
    .project-editorial-description { font-size: 1.25rem; padding-top: 2.5rem; }
}

/* Shared page arrival/exit. The head script opts in before the first paint. */
html.page-reveal-pending body > .site-header,
html.page-reveal-pending body > main { opacity: 0; }
html.page-is-leaving body > .site-header,
html.page-is-leaving body > main { pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
    html.page-reveal-pending body > .site-header,
    html.page-reveal-pending body > main { opacity: 1; }
}

/* Carry the departing page's colour through the document swap. */
html.page-colour-bridge body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--page-arrival-colour, transparent);
    pointer-events: none;
    opacity: 1;
}
html.page-colour-releasing body::after { animation: page-colour-release 450ms cubic-bezier(.22, 1, .36, 1) both; }
@keyframes page-colour-release { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    html.page-colour-bridge body::after { display: none; }
}

/* Projects index: natural thumbnails, small colophon details and right-aligned titles. */
.project-archive {
    padding: clamp(10rem, 17vh, 13rem) var(--page-gutter) 5rem;
}
.project-archive__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.project-archive__list, .project-archive__tags {
    margin: 0;
    padding: 0;
    list-style: none;
}
.project-archive__row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(calc(100px * var(--archive-thumb-growth, 1)), calc(12% * var(--archive-thumb-growth, 1))) minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.6fr);
    transition: grid-template-columns 650ms cubic-bezier(.22, 1, .36, 1);
    align-items: start;
    column-gap: clamp(2rem, 5vw, 6rem);
    min-height: 180px;
    padding-block: 1.5rem;
    border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent);
}
.project-archive__thumbnail {
    display: flex;
    align-items: start;
    height: calc(132px * var(--archive-thumb-growth, 1));
    transition: height 650ms cubic-bezier(.22, 1, .36, 1);
}
.project-archive__thumbnail .project-media {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: left top;

}
.project-archive__details, .project-archive__tags, .project-archive__empty {
    font-family: var(--font-body);
    font-size: .5625rem;
    font-weight: 400;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.project-archive__details { display: flex; flex-direction: column; gap: .3rem; }
.project-archive__title {
    margin: 0;
    text-align: right;
    font-size: clamp(1.375rem, 2.1vw, 2.25rem);
    font-weight: 400;
    line-height: 1.12;
    text-wrap: balance;
}
.project-archive__title a { text-decoration: none; }
/* One accessible link covers each row without nesting links around video media. */
.project-archive__title a::after { content: ""; position: absolute; inset: 0; }
.project-archive__title a:focus-visible { outline: none; }
.project-archive__title a:focus-visible::after { outline: 1px solid currentColor; outline-offset: 4px; }
@media (hover: hover) {
    .project-archive__row:hover { --archive-thumb-growth: 1.25; }
}
@media (max-width: 800px) {
    .project-archive { padding: 10rem 1rem 3rem; }
    .project-archive__row {
        grid-template-columns: calc(88px * var(--archive-thumb-growth, 1)) minmax(0, 1fr) minmax(0, 1.35fr);
        gap: 1rem 1.5rem;
        min-height: 156px;
    }
    .project-archive__thumbnail { height: calc(108px * var(--archive-thumb-growth, 1)); grid-column: 1; grid-row: 1 / 3; }
    .project-archive__title { grid-column: 3; grid-row: 1 / 3; font-size: clamp(1.375rem, 3.3vw, 1.75rem); }
    .project-archive__details { grid-column: 2; align-self: start; }
    .project-archive__tags { grid-column: 2; align-self: start; }
}
@media (max-width: 540px) {
    .project-archive__row { grid-template-columns: calc(76px * var(--archive-thumb-growth, 1)) minmax(0, 1fr); gap: 1rem 1.5rem; padding-block: 1.5rem; }
    .project-archive__thumbnail { grid-row: 1; height: calc(90px * var(--archive-thumb-growth, 1)); }
    .project-archive__title { grid-column: 2; grid-row: 1; font-size: clamp(1.375rem, 5.2vw, 1.75rem); }
    .project-archive__details { grid-column: 1 / -1; grid-row: 2; flex-direction: row; flex-wrap: wrap; gap: .25rem 1.25rem; }
    .project-archive__tags { grid-column: 1 / -1; grid-row: 3; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-top: -.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .project-archive__row, .project-archive__thumbnail { transition: none; }
}

.page-project-archive {
    background: var(--project-hover-background, var(--project-background));
    color: var(--project-hover-foreground, var(--project-foreground));
    transition: background-color 500ms ease, color 350ms ease;
}
.project-archive__pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(.75rem, 2vw, 1.5rem);
    padding-top: 2rem;
    font-family: var(--font-body);
    font-size: .875rem;
    line-height: 1.4;
    font-weight: 400;
}
.project-archive__page-numbers { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem; }
.project-archive__pagination a { display: inline-flex; align-items: center; justify-content: center; gap: .2em; min-height: 48px; min-width: 44px; text-decoration: none; }
.project-archive__page-numbers a { text-align: center; }
.project-archive__pagination a[aria-current="page"]::before { content: "( "; }
.project-archive__pagination a[aria-current="page"]::after { content: " )"; }
.project-archive__pagination a:hover { opacity: .55; }
.project-archive__pagination a:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.project-archive__previous { justify-self: start; }
.project-archive__next { justify-self: end; }
@media (prefers-reduced-motion: reduce) {
    .page-project-archive { transition: none; }
}

@media (hover: hover) and (max-width: 540px) {
    .project-archive__row:hover { --archive-thumb-growth: 1.15; }
}

/* Services: text-only editorial cards, each covering the previous section. */
.page-services {
    --services-top: 9rem;
    background: var(--services-background, var(--color-chalk));
    color: var(--services-foreground, var(--color-charcoal));
    transition: background-color 420ms ease, color 420ms ease;
}
.page-services > .site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 30;
    color: var(--services-foreground);
    transition: color 420ms ease;
}
.services-page { padding-top: var(--services-top); }
/* Keep the fixed navigation clear when a tall card scrolls beneath it. */
.services-page::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    /* Cover fractional-pixel rounding at the final sticky-card boundary. */
    height: calc(var(--services-top) + 2px);
    z-index: 20;
    background: var(--services-background);
    transition: background-color 420ms ease;
    pointer-events: none;
}
.service-card {
    position: relative;
    z-index: var(--card-order);
    min-height: calc(100svh - var(--services-top));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(1.5rem, 3.5svh, 2rem);
    padding: clamp(2rem, 5svh, 4rem) var(--page-gutter);
    text-align: left;
    background: var(--card-background);
    color: var(--card-foreground);
    scroll-margin-top: var(--services-top);
}
.service-card__heading { width: 100%; margin-bottom: auto; padding-bottom: clamp(3rem, 8svh, 6rem); }
.service-card__title {
    min-width: 0; margin: 0;
    font: 400 var(--statement-size)/1.08 var(--font-editorial);
    letter-spacing: -.035em;
    text-transform: uppercase;
    text-align: left;
    overflow-wrap: anywhere;
}
.service-card__group h3 { margin: 0 0 .75rem; font: inherit; }
.service-card__note { margin: 1rem 0 0; }
.services-page.is-sheet-ready .services-track { height: calc(var(--services-distance) + var(--services-viewport)); }
.services-page.is-sheet-ready .services-stack {
    position: sticky; top: var(--services-top);
    height: var(--services-viewport); overflow: clip;
    isolation: isolate;
}
.services-page.is-sheet-ready .service-card {
    position: absolute; inset: 0 0 auto;
    width: 100%; min-height: var(--services-viewport);
    transform: translateY(calc(var(--sheet-enter-y, 0px) + var(--sheet-y, 0px)));
}
.service-card__content { width: 100%; text-align: left; }
.service-card__statement {
    display: flow-root;
    font: 400 var(--statement-size)/1.08 var(--font-editorial);
    letter-spacing: -.035em;
    text-align: left;
}
.service-card__indent {
    float: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: .125rem;
    width: 1.95em;
    min-height: 1.95em;
    margin: .08em .45em 0 0;
    letter-spacing: 0;
}
.service-card__indent span {
    font: 500 clamp(.625rem, .8vw, .75rem)/1.15 var(--font-body);
    overflow-wrap: anywhere;
}
.service-card__copy { text-wrap: pretty; }
.service-card__groups { font-weight: 500; }
.service-card__group { max-width: 28ch; }
.service-card__copy p { margin: 0; }
.service-card__copy a { text-decoration: none; transition: opacity 200ms ease; }
.service-card__copy a:hover { opacity: .55; }
.service-card__copy a:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
@media (max-width: 800px) {
    .page-services { --services-top: 9rem; }
    .service-card { padding: 2rem var(--page-gutter); }
}
@media (max-width: 700px) {
    .page-services { --services-top: 6rem; }
    .service-card__title,
    .service-card__statement {
        font-size: var(--statement-size);
        line-height: 1.1;
        letter-spacing: -.025em;
    }
}
@media (prefers-reduced-motion: reduce) {
    .page-services, .page-services > .site-header, .services-page::before { transition: none; }
}

.project-thumbnail__credit { opacity: .75; }
@media (max-width: 700px) {
    .project-thumbnail__credit { flex-basis: 100%; }
}

/* The fullscreen gallery remains in the page after the opening sequence. */
.home-intro__image { opacity: 0; transition: opacity 350ms ease; }
.home-intro__image.is-active { opacity: 1; }
.home-intro.is-opening .home-intro__image { transition: none; }
.home-intro.is-opening .home-intro__caption { opacity: 0; }
.home-intro__caption { transition: opacity 400ms ease; }
.home-intro__step {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    width: 50%;
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    cursor: pointer;
}
.home-intro__step--previous { left: 0; }
.home-intro__step--next { right: 0; }
.home-intro__step:focus { outline: none; box-shadow: none; }
.home-intro__step[hidden] { display: none; }
.home-intro__image.is-active:is(video) { z-index: 2; }
.home-intro__caption { z-index: 3; }
.home-intro__skip { z-index: 4; }
@media (prefers-reduced-motion: reduce) {
    .home-intro__image, .home-intro__caption { transition: none; }
}

/* Silent video slides share the full gallery navigation hit area. */
.home-intro.has-video .home-intro__step { z-index: 3; }

/* Share the editable header mark, using the gallery title colour over photography. */
.home-intro__brand {
    position: absolute;
    top: max(2.5rem, 6svh);
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    color: inherit;
    pointer-events: none;
}


/* Photography-led review: restrained credits, generous uncropped images. */
.home-intro.is-opening .home-intro__caption { opacity: 1; }
.home-intro.is-opening .home-intro__image { transition: opacity 1100ms ease; }
.home-statement__text { font-size: clamp(1.75rem, 2.6vw, 3rem); max-width: 48ch; }
.project-archive__row {
    grid-template-columns: minmax(0, calc(30% * var(--archive-thumb-growth, 1))) minmax(0, 1fr) minmax(0, 1.3fr);
    column-gap: clamp(1.5rem, 4vw, 5rem);
    min-height: 0;
    padding-block: 2rem;
}
.project-archive__thumbnail { height: calc(clamp(180px, 22vw, 300px) * var(--archive-thumb-growth, 1)); }
.project-archive__thumbnail .project-media { width: 100%; height: 100%; object-fit: contain; object-position: left top; }
.project-archive__details { font-size: .6875rem; }
.project-archive__title { font-size: clamp(1.25rem, 1.8vw, 1.875rem); }
.project-archive__row:focus-within { --archive-thumb-growth: 1.12; }
@media (hover:hover) { .project-archive__row:hover { --archive-thumb-growth: 1.12; } }

.project-focus-page, .artist-page {
    padding: 8rem var(--page-gutter) 3rem;
}
.project-focus-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem 3rem;
    margin-top: 1.5rem;
}
.project-focus-heading h1 { margin: 0; font-size: clamp(1.375rem,2.2vw,2.25rem); line-height:1.1; }
.artist-credit { margin: 0; font:400 .75rem/1.5 var(--font-body); }
.artist-credit a { text-decoration:none; transition:opacity 200ms; }
.artist-credit a:hover { opacity:.55; }
.focus-gallery { min-width:0; }
.focus-gallery__slide { margin:0 0 2rem; }
.focus-gallery__slide[hidden], .focus-gallery [hidden] { display:none; }
.focus-gallery.is-ready .focus-gallery__stage { height: max(18rem,calc(100svh - 18rem)); scroll-margin-top:7rem; }
.focus-gallery.is-ready .focus-gallery__slide { height:100%; margin:0; }
.focus-gallery__stage:focus { outline:none; }
.focus-gallery__image-next { display:block; width:100%; height:100%; padding:0; border:0; background:none; color:inherit; cursor:pointer; }
.focus-gallery .project-media { width:100%; height:100%; object-fit:contain; object-position:center; }
.focus-gallery__navigation, .horizontal-tools {
    display:flex; align-items:center; justify-content:space-between; gap:1rem;
    margin-top:.5rem; font:400 .6875rem/1.5 var(--font-body);
}
.focus-gallery button, .horizontal-tools button { color:inherit; }
.focus-gallery__navigation button, .horizontal-tools button { min-height:44px; padding:.5rem 0; border:0; background:none; cursor:pointer; font:inherit; }
.focus-gallery__navigation button:disabled { visibility:hidden; }
.focus-gallery__navigation button:hover, .horizontal-tools button:hover { opacity:.55; }
.focus-gallery button:focus-visible, .focus-gallery summary:focus-visible, .horizontal-tools button:focus-visible { outline:1px solid currentColor; outline-offset:4px; }
.focus-gallery__index, .horizontal-index { font:400 .6875rem/1.5 var(--font-body); }
.focus-gallery__index summary, .horizontal-index summary { width:max-content; margin-inline:auto; cursor:pointer; padding:.7rem .5rem; list-style:none; }
.focus-gallery__index summary::-webkit-details-marker, .horizontal-index summary::-webkit-details-marker { display:none; }
.focus-gallery__index summary::before, .horizontal-index summary::before { content:'+ '; }
.focus-gallery__index[open] summary::before, .horizontal-index[open] summary::before { content:'− '; }
.focus-gallery__thumbnails { display:grid; grid-template-columns:repeat(auto-fill,minmax(75px,1fr)); gap:1rem; padding:1.25rem 0; }
.focus-gallery__thumbnails button { position:relative; display:flex; align-items:center; justify-content:center; height:85px; padding:4px; background:none; border:1px solid transparent; cursor:pointer; color:inherit; font:inherit; }
.focus-gallery__thumbnails button[aria-current] { border-color:currentColor; }
.focus-gallery__thumbnails img { width:100%; height:100%; object-fit:contain; }
.focus-gallery__video-label { font:400 .625rem var(--font-body); }
.focus-gallery__video-badge { position:absolute; bottom:6px; right:6px; background:#292623; color:#fff; padding:2px 4px; font-size:9px; }
.project-editorial-page { grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr); column-gap:clamp(2rem,5vw,6rem); }
.project-editorial-heading { gap:3rem; }
.project-editorial-heading > .artist-credit { text-align:center; margin-top:1rem; margin-bottom:auto; }
.project-editorial-right .focus-gallery.is-ready .focus-gallery__stage { height:clamp(22rem,65svh,54rem); }
.project-editorial-description { margin-top:0; }
.project-horizontal-heading .artist-credit { font:400 .75rem/1.5 var(--font-body); text-align:right; }
.project-horizontal-gallery { --film-height:clamp(16rem,58svh,48rem); }
.horizontal-tools { margin-top:.5rem; }
.horizontal-index { position:relative; }
.horizontal-index[open] .focus-gallery__thumbnails { position:absolute; z-index:50; bottom:100%; left:0; right:0; max-height:45svh; overflow:auto; padding:1rem; background:var(--project-background); }

.artist-heading { display:flex; justify-content:space-between; align-items:baseline; gap:2rem; margin-bottom:2rem; }
.artist-heading h1 { font-size:clamp(2rem,3.3vw,4rem); line-height:.95; margin:0; font-weight:400; }
.artist-heading nav { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:.75rem 2rem; font:400 .6875rem/1.5 var(--font-body); }
.artist-heading a, .artist-roster a { text-decoration:none; transition:opacity 200ms; }
.artist-heading a:hover, .artist-roster a:hover { opacity:.55; }
.artist-overview { scroll-margin-top:8rem; }
.artist-projects { margin-top:7rem; scroll-margin-top:8rem; }
.artist-projects h2 { font:400 .75rem/1.5 var(--font-body); margin:0 0 2rem; }
.artist-projects__grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:3rem; align-items:start; }
.artist-projects .project-thumbnail { margin:0; }
.artist-projects .project-media { width:100%; max-height:28rem; object-fit:contain; object-position:left top; }
.artist-roster { display:flex; align-items:center; min-height:100svh; padding:10rem var(--page-gutter) 5rem; }
.artist-roster ul { list-style:none; margin:0; padding:0; width:100%; text-align:center; }
.artist-roster li { padding:.4rem 0; }
.artist-roster__name { display:inline-flex; align-items:center; justify-content:center; min-height:44px; max-width:100%; font:400 clamp(1.5rem,2.2vw,2rem)/1.2 var(--font-editorial); letter-spacing:-.025em; overflow-wrap:anywhere; }

/* Five optional links retain ample room around the central mark. */
@media (min-width:1051px) and (max-width:1250px) {
    .site-header__inner { gap:2.5rem; }
    .site-header__link { font-size:1rem; white-space:nowrap; letter-spacing:0; }
}
@media (max-width:1050px) and (min-width:701px) {
    .project-focus-page, .artist-page { padding-top:11rem; }
    .focus-gallery.is-ready .focus-gallery__stage { height:max(18rem,calc(100svh - 21rem)); }
}
@media (max-width:800px) {
    .project-archive__row { grid-template-columns:minmax(0,38%) minmax(0,1fr); column-gap:1.5rem; row-gap:.6rem; }
    .project-archive__thumbnail { grid-column:1; grid-row:1 / 3; height:calc(clamp(160px,32vw,240px) * var(--archive-thumb-growth,1)); }
    .project-archive__title { grid-column:2; grid-row:1; font-size:clamp(1.25rem,3vw,1.6rem); text-align:left; }
    .project-archive__details { grid-column:2; grid-row:2; align-self:start; font-size:.625rem; }
    .project-archive__row { grid-template-rows:auto 1fr; }
    .project-editorial-page { grid-template-columns:minmax(0,1fr); }
    .project-editorial-heading { min-height:22rem; gap:2.5rem; }
    .project-editorial-right .focus-gallery.is-ready .focus-gallery__stage { height:62svh; min-height:20rem; }
    .artist-heading { display:block; }
    .artist-heading nav { justify-content:flex-start; margin-top:1.5rem; gap:.75rem 1.5rem; }
    .artist-projects__grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:2rem; }
}
@media (max-width:700px) {
    .home-statement__text { font-size:clamp(1.625rem,6.8vw,2.4rem); line-height:1.12; }
    .project-focus-page, .artist-page { padding:6.5rem 1rem 2rem; }
    .project-focus-heading { margin-top:1rem; flex-direction:column; gap:.5rem; }
    .focus-gallery.is-ready .focus-gallery__stage { height:max(15rem,calc(100svh - 20rem)); scroll-margin-top:6rem; }
    .focus-gallery__thumbnails { grid-template-columns:repeat(4,minmax(0,1fr)); gap:.5rem; }
    .focus-gallery__thumbnails button { height:70px; }
    .artist-projects { margin-top:4rem; }
    .artist-projects__grid { grid-template-columns:minmax(0,1fr); gap:3rem; }
    .artist-roster { padding-top:7rem; }
    .artist-roster__name { font-size:clamp(1.375rem,5.5vw,1.75rem); }
}
@media (prefers-reduced-motion:reduce) {
    .home-intro.is-opening .home-intro__image, .artist-credit a, .artist-heading a, .artist-roster a { transition:none; }
}

/* Keep the larger horizontal alternative clear of its caption on short screens. */
.project-horizontal-gallery { --film-height: clamp(16rem, 56svh, calc(100svh - 22rem)); }
@media (max-width:700px) { .project-horizontal-page { --film-width-limit: 85vw; } }


/* Fade the entire cover, including its background, to reveal the navigation beneath. */
.home-cover-enabled .home-intro {
    background: var(--intro-background, var(--color-chalk));
    opacity: var(--intro-exit-opacity, 1);
    overflow: clip;
}
.home-intro__visual { position: absolute; inset: 0; }
.home-intro__image { filter: blur(var(--intro-exit-blur, 0px)); }
.home-intro__heading {
    position: absolute;
    z-index: 4;
    top: 50%;
    inset-inline: var(--page-gutter);
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    pointer-events: none;
}
.home-intro .home-intro__brand {
    position: static;
    flex: 0 0 auto;
    transform: none;
}
.home-intro .home-intro__caption {
    position: static;
    min-width: 0;
    max-width: 70%;
    text-align: right;
    transition: none;
    opacity: 1;
}
.home-intro .home-intro__title {
    margin: 0;
    max-width: 30ch;
    font-size: clamp(1.125rem, 1.7vw, 1.625rem);
    line-height: 1.15;
    letter-spacing: -.02em;
}
.home-intro__project { text-decoration: none; }
.home-intro__project[href] { pointer-events: auto; }
.home-intro__project:focus-visible { outline: 1px solid currentColor; outline-offset: .15em; }
@media (max-width: 700px) {
    .home-intro__heading { inset-inline: 1rem; gap: 1.5rem; }
    .home-intro .home-intro__caption { max-width: calc(100% - 88px); }
}
@media (prefers-reduced-motion: reduce) {
    .home-cover-enabled .home-intro { opacity: 1; }
    .home-intro__image { filter: none; }
}

/* Photographer, logo and project share one vertically centred line. */
.home-intro__heading { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; }
.home-intro .home-intro__brand { grid-column: 2; grid-row: 1; justify-self: center; }
.home-intro__credit {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    margin: 0;
    min-width: 0;
    text-align: left;
    font: 400 .75rem/1.4 var(--font-body);
    overflow-wrap: anywhere;
}
.home-intro__credit[hidden] { display: none; }
.home-intro .home-intro__caption { grid-column: 3; grid-row: 1; justify-self: end; max-width: 100%; }
@media (max-width: 700px) {
    .home-intro__heading { gap: .75rem; }
    .home-intro__credit { font-size: .6875rem; }
}

/* The monogram carries more visual weight below its geometric centre. */
.home-intro__brand .site-header__monogram { width: var(--gallery-logo-width); transform: translateY(-8%); }

/* On mobile, keep the logo above and group the credit with the bottom title. */
@media (max-width: 700px) {
    .home-intro__heading {
        top: max(2.5rem, 6svh);
        bottom: max(2.5rem, 6svh);
        transform: none;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) auto auto;
        gap: .75rem;
        justify-items: center;
    }
    .home-intro .home-intro__brand { grid-column: 1; grid-row: 1; justify-self: center; align-self: start; }
    .home-intro { --gallery-logo-width: 52px; }
    .home-intro__brand .site-header__monogram { transform: none; }
    .home-intro__credit { grid-column: 1; grid-row: 2; justify-self: center; align-self: end; text-align: center; }
    .home-intro .home-intro__caption { grid-column: 1; grid-row: 3; justify-self: center; align-self: end; text-align: center; }
    .home-intro .home-intro__title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
}

/* Balanced outer navigation groups frame the centred signature. */
.site-header .site-header__monogram { width: 64px; }
@media (min-width: 701px) {
    .site-header__inner {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        grid-template-areas: "left brand right";
        align-items: start;
        gap: clamp(2.5rem, 5vw, 5rem);
        padding: 1.5rem var(--page-gutter) 1.25rem;
    }
    .site-header__brand { grid-area: brand; grid-column: 2; grid-row: 1; justify-self: center; }
    .site-header__links {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-start;
        gap: .15rem;
    }
    .site-header__links--left { grid-area: left; align-items: flex-start; --link-rest-shift: -.7em; }
    .site-header__links--left .site-header__link { text-align: left; }
    .site-header__links--right { grid-area: right; }
    .site-header__link {
        min-height: 28px;
        padding-inline: .85em;
        text-align: right;
        font-size: 1.0625rem;
        line-height: 1.35;
        letter-spacing: 0;
        white-space: nowrap;
        overflow-wrap: normal;
    }
    .site-header__link::before { left: .15em; }
    .site-header__link::after { right: .15em; }
}
@media (max-width: 700px) {
    .site-header .site-header__monogram { width: 56px; }
}

/* Keep brackets and label together, with identical gaps throughout the reveal. */
.site-header .site-header__link {
    padding-inline: 0;
    overflow: hidden;
}
.site-header .site-header__link::before,
.site-header .site-header__link::after { content: none; }
.site-header__link-content {
    display: inline-grid;
    grid-template-columns: .35em max-content .35em;
    column-gap: .35em;
    align-items: baseline;
    transform: translateX(var(--link-rest-shift, .7em));
    transition: transform 180ms ease-out;
}
.site-header__bracket {
    text-align: center;
    font-style: normal;
    clip-path: inset(0 50%);
    transition: clip-path 100ms ease-out;
}
.site-header__link:is(:hover, :focus-visible, [aria-current="page"]) .site-header__link-content {
    transform: translateX(0);
    transition: transform 420ms cubic-bezier(.16, 1, .3, 1);
}
.site-header__link:is(:hover, :focus-visible, [aria-current="page"]) .site-header__bracket {
    clip-path: inset(0);
    transition: clip-path 420ms cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-reduced-motion: reduce) {
    .site-header .site-header__link .site-header__link-content,
    .site-header .site-header__link .site-header__bracket { transition: none; }
}

/* The entire navigation retreats together and returns when scrolling upward. */
body > .site-header {
    translate: none;
    transition: translate 550ms cubic-bezier(.22, 1, .36, 1), color 240ms ease;
}
body > .site-header.is-scroll-hidden {
    translate: 0 calc(-100% - 2px);
    pointer-events: none;
}
.home-intro__project[href] { transition: opacity 220ms ease; }
@media (hover: hover) {
    .home-intro__project[href]:hover { opacity: .6; }
}
.home-intro__project[href]:focus-visible { opacity: .6; }
@media (prefers-reduced-motion: reduce) {
    body > .site-header, .home-intro__project[href] { transition: none; }
}

/* Small portfolio strips expand in the document flow beneath each artist. */
.artist-roster__heading { position: relative; display: inline-flex; align-items: center; }
.artist-roster__toggle {
    position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border: 0; padding: 0; background: none;
    color: inherit; font: 400 1rem/1 var(--font-body); cursor: pointer;
}
.artist-roster__toggle[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) {
    .artist-roster__toggle { opacity: 0; }
    .artist-roster__toggle:focus-visible { opacity: 1; }
}
.artist-roster__preview { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 520ms cubic-bezier(.22,1,.36,1); }
.artist-roster__entry.is-preview-open .artist-roster__preview { grid-template-rows: 1fr; }
.artist-roster__preview-inner { min-height: 0; overflow: hidden; }
.artist-roster__strip {
    --preview-height: clamp(64px, 7vw, 96px);
    display: flex; align-items: center; gap: 12px;
    width: max-content; max-width: 100%; margin: 0 auto;
    padding: 14px 0 20px; overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: thin;
}
.artist-roster__thumbnail {
    display: block; flex: 0 0 auto; height: var(--preview-height);
    aspect-ratio: var(--preview-ratio); opacity: 0; transform: translateY(10px);
    transition: opacity 350ms ease, transform 500ms cubic-bezier(.22,1,.36,1);
}
.artist-roster__thumbnail img { display: block; width: 100%; height: 100%; object-fit: contain; }
.artist-roster__entry.is-preview-open .artist-roster__thumbnail {
    opacity: 1; transform: translateY(0); transition-delay: calc(var(--preview-order) * 35ms);
}
.artist-roster .artist-roster__thumbnail:hover { opacity: .75; }
.artist-roster__video { display: grid; place-items: center; height: 100%; border: 1px solid currentColor; font: 400 .6875rem/1 var(--font-body); }
.artist-roster__name:focus-visible, .artist-roster__toggle:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
@media (max-width: 700px) { .artist-roster__heading { max-width: calc(100% - 64px); } }
@media (prefers-reduced-motion: reduce) {
    .artist-roster__preview, .artist-roster__thumbnail { transition: none; }
}

/* Centred project layout: maximum remaining height, with a persistent image strip. */
.project-focus-page {
    display: block;
    min-height: 100svh;
    padding: 8.5rem var(--page-gutter) 0;
}
.project-focus-page .project-focus-heading {
    flex: 0 0 auto; justify-content: space-between; align-items: center; min-height: 44px;
    gap: .75rem 2rem; flex-wrap: wrap; margin: .5rem 0 0; text-align: left;
}
.project-focus-page .project-focus-heading h1 { font-size: clamp(1.125rem,1.6vw,1.5rem); line-height: 1.15; }
.project-focus-page .artist-credit { margin-left: auto; font-size: .8125rem; text-align: right; }
.project-focus-page .focus-gallery--persistent { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.project-focus-page .focus-gallery--persistent.is-ready .focus-gallery__stage { flex: 1; min-height: 240px; height: auto; }
.focus-gallery--persistent .focus-gallery__strip { flex: 0 0 auto; min-width: 0; margin-top: .75rem; }
.focus-gallery--persistent .focus-gallery__thumbnails {
    display: flex; align-items: center; gap: .5rem;
    width: max-content; max-width: 100%; margin: 0 auto; padding: 4px 0 8px;
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin;
}
.focus-gallery--persistent .focus-gallery__thumbnails button {
    flex: 0 0 auto; height: 48px; width: auto;
    aspect-ratio: var(--thumbnail-ratio); padding: 0; border: 0;
    opacity: .45; transform: scale(.9);
    transition: opacity 350ms ease, transform 450ms cubic-bezier(.22,1,.36,1);
}
.focus-gallery--persistent .focus-gallery__navigation { display: grid; grid-template-columns: 1fr auto 1fr; flex: 0 0 auto; margin-top: 0; font-size: .75rem; }
.focus-gallery--persistent .focus-gallery__navigation button:first-child { justify-self: start; }
.focus-gallery--persistent .focus-gallery__navigation button:last-child { justify-self: end; }
@media (max-width:700px) {
    .project-focus-page { padding: 5.5rem 1rem 0; }
    .project-focus-page .project-focus-heading { flex-direction: row; align-items: baseline; gap: .5rem 1.25rem; margin-bottom: 0; }
    .focus-gallery--persistent .focus-gallery__thumbnails button { height: 44px; }
}

.project-focus-view { display: flex; flex-direction: column; height: calc(100svh - 8.5rem); min-height: 488px; padding-bottom: var(--page-gutter); }
.project-focus-details { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 2rem 5vw; padding: clamp(3rem,7vh,5rem) 0 3rem; }
.project-focus-details__credits { font: 400 .75rem/1.7 var(--font-body); }
.project-focus-details__credits p { margin: 0 0 .5rem; }
.project-focus-details__credits ul { display: flex; flex-wrap: wrap; gap: .25rem 1rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.project-focus-details__description { max-width: 48ch; font: 400 clamp(1.125rem,1.7vw,1.5rem)/1.4 var(--font-editorial); }
.project-focus-details__description p { margin: 0 0 1em; }
@media (max-width:700px) {
    .project-focus-view { height: calc(100svh - 5.5rem); min-height: 460px; padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
    .project-focus-details { grid-template-columns: minmax(0,1fr); gap: 1.5rem; padding-bottom: 2rem; }
}

@media (hover: hover) {
    .focus-gallery--persistent .focus-gallery__thumbnails button:hover { opacity: .8; transform: scale(.96); }
}
.focus-gallery--persistent .focus-gallery__thumbnails button:focus-visible { opacity: 1; transform: scale(1); }
.focus-gallery--persistent .focus-gallery__thumbnails button[aria-current] { border: 0; opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
    .focus-gallery--persistent .focus-gallery__thumbnails button { transition: none; }
}

/* Artist portfolios share the centred project gallery and bottom caption row. */
.artist-portfolio-links {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end;
    gap: .5rem 1.5rem; margin-left: auto;
    font: 400 .8125rem/1.5 var(--font-body); text-align: right;
}
.artist-portfolio-links a { text-decoration: none; transition: opacity 220ms ease; }
.artist-portfolio-links a:is(:hover, :focus-visible) { opacity: .55; }
.artist-page.project-focus-page .artist-projects { margin-top: 3rem; padding-bottom: 3rem; }
@media (prefers-reduced-motion: reduce) { .artist-portfolio-links a { transition: none; } }

/* Selected artist projects fill the page gutters, with uncropped images. */
.artist-page .artist-projects__grid {
    margin-inline: 0;
    column-gap: clamp(1.25rem,2.5vw,3rem);
}
.artist-page .artist-projects .project-thumbnail__link { display: block; width: 100%; }
.artist-page .artist-projects .project-media { width: 100%; height: auto; max-height: none; }
.artist-page .artist-projects .project-thumbnail__title { padding-inline: 0; }


/* Editorial projects give text and photography equal space. */
.project-editorial-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1.5rem, 3vw, 3rem);
}
.project-editorial-heading { gap: 1.5rem; padding-top: 0; }
.project-editorial-heading h1 { font-size: clamp(2.5rem, 4vw, 4.75rem); line-height: .9; }
.project-editorial-heading > .artist-credit { margin-top: 0; }
.project-editorial-right .focus-gallery--persistent.is-ready .focus-gallery__stage {
    height: max(22rem, calc(100svh - 15rem));
}
@media (max-width: 1000px) {
    .project-editorial-page { grid-template-columns: minmax(0, 1fr); padding-top: 8.5rem; gap: 2rem; }
    .project-editorial-heading { min-height: 0; gap: 1.5rem; }
    .project-editorial-heading h1 { font-size: clamp(2.5rem, 8vw, 3.75rem); }
    .project-editorial-heading > .artist-credit { margin-bottom: 0; }
    .project-editorial-right .focus-gallery--persistent.is-ready .focus-gallery__stage { height: max(18rem, calc(100svh - 16rem)); min-height: 18rem; }
}
@media (max-width: 700px) { .project-editorial-page { padding-top: 6.5rem; } }

/* Horizontal projects: viewport-filling photography and a permanent thumbnail strip. */
.project-horizontal-page {
    --gallery-gutter: var(--page-gutter);
    --film-width-limit: calc(100vw - 2 * var(--gallery-gutter));
    padding-top: 8.5rem;
    padding-bottom: var(--gallery-gutter);
    min-height: 100svh;
}
.project-horizontal-gallery {
    --film-height: max(15rem, calc(100svh - 8.5rem - 7.75rem - var(--gallery-gutter)));
    position: relative; top: auto; transform: none;
}
.project-horizontal-heading { position: static; margin: 0 var(--gallery-gutter); }
.project-horizontal-heading .project-focus-heading {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: .5rem 2rem; min-height: 44px; margin: .5rem 0 0;
}
.project-horizontal-heading .project-focus-heading h1 {
    margin: 0; font-size: clamp(1.125rem, 1.6vw, 1.5rem); line-height: 1.15;
}
.project-horizontal-heading .artist-credit { margin-left: auto; font-size: .8125rem; text-align: right; }
.project-horizontal-heading .focus-gallery__thumbnails button:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
@media (max-width: 700px) {
    .project-horizontal-page { --gallery-gutter: 1rem; --film-width-limit: calc(100vw - 2rem); padding-top: 5.5rem; padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
    .project-horizontal-gallery { --film-height: max(15rem, calc(100svh - 5.5rem - 7.5rem - max(1rem, env(safe-area-inset-bottom)))); }
    .project-horizontal-heading .project-focus-heading { flex-direction: row; align-items: baseline; gap: .5rem 1.25rem; }
}

/* Editorial reading column scrolls beside a pinned gallery and thumbnail strip. */
.project-editorial-left { min-width: 0; }
.project-editorial-left .project-editorial-heading { position: static; }
.project-editorial-right { position: sticky; top: 9rem; align-self: start; }
.project-editorial-left .project-editorial-description { width: 100%; max-width: 48ch; padding-top: clamp(3rem, 8svh, 6rem); padding-bottom: 2rem; font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.4; }
@media (min-width: 1001px) and (max-height: 600px) {
    .project-editorial-right { top: 7rem; }
    .project-editorial-right .focus-gallery--persistent.is-ready .focus-gallery__stage { height: max(12rem, calc(100svh - 13rem)); }
}
@media (max-width: 1000px) {
    .project-editorial-left { display: contents; }
    .project-editorial-left .project-editorial-heading { grid-row: 1; }
    .project-editorial-right { position: static; grid-row: 2; }
    .project-editorial-left .project-editorial-description { grid-row: 3; padding-top: 0; padding-bottom: 0; }
}

/* Illustrated arrival montage lands on the same image used by the entry gallery. */
.home-intro { overflow: clip; }
.home-opening__frames { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.home-opening__frames[hidden] { display: none; }
.home-opening__frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.home-opening__frame.is-active { opacity: 1; }
.home-opening__logo {
    position: absolute; z-index: 6; top: 50%; left: 50%; width: var(--gallery-logo-width); aspect-ratio: 255 / 233;
    transform: translate(-50%, -50%); background: white;
    mask: var(--opening-logo) center / contain no-repeat; -webkit-mask: var(--opening-logo) center / contain no-repeat;
    pointer-events: none; opacity: 0;
}
.home-opening-pending .home-intro__heading { opacity: 0; }
.home-intro.is-opening .home-opening__logo { opacity: 1; }
.home-intro.is-opening .home-intro__heading { opacity: 0; pointer-events: none; }
.home-intro.is-opening .home-intro__image { transform: scale(1.08); }
.home-intro.is-opening .home-intro__step { visibility: hidden; }
.home-intro.is-landing .home-intro__image { transform: scale(1); transition: transform 1600ms cubic-bezier(.22, 1, .36, 1), opacity 350ms ease; }
.home-intro.is-landing .home-opening__logo { opacity: 0; transition: opacity 400ms ease; }
.home-intro.is-landing .home-intro__heading { opacity: 1; pointer-events: none; transition: opacity 900ms ease 300ms; }
@media (prefers-reduced-motion: reduce) {
    .home-opening__frames, .home-opening__logo { display: none; }
    .home-intro.is-opening .home-intro__image { transform: none; }
    .home-intro.is-landing .home-intro__image, .home-intro.is-landing .home-intro__heading { transition: none; }
}

/* Single-image projects extend behind the transparent navigation with equal outer edges. */
.project-centered-page { padding-top: var(--page-gutter); }
.project-centered-page .project-focus-view { height: calc(100svh - var(--page-gutter)); }
.project-centered-page .focus-gallery .project-media { object-position: left top; }
.project-centered-page .focus-gallery__thumbnails { margin-inline: auto 0; }

/* Size this layout to the active image instead of reserving a fixed-width column. */
.project-centered-page .focus-gallery--persistent.is-ready {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--gallery-image-height) auto auto;
    align-content: start;
}
.project-centered-page .focus-gallery--persistent.is-ready .focus-gallery__stage {
    grid-column: 1; grid-row: 1; min-width: 0; min-height: 0;
    height: var(--gallery-image-height);
}
.project-centered-page .focus-gallery__strip { grid-column: 1; grid-row: 2; }
.project-centered-page .project-focus-heading { grid-column: 1 / -1; grid-row: 3; }
.project-centered-page .focus-gallery--persistent.is-split {
    grid-template-columns: var(--gallery-image-width) minmax(0, 1fr);
    grid-template-rows: var(--gallery-image-height) auto;
    column-gap: var(--page-gutter);
}
.project-centered-page .is-split .focus-gallery__strip { grid-column: 2; grid-row: 1; align-self: end; margin-top: 0; }
.project-centered-page .is-split .focus-gallery__thumbnails { padding-bottom: 0; }
.project-centered-page .is-split .project-focus-heading { grid-row: 2; }

/* Project posts use the compact menu at every viewport size. */
.site-header--compact { isolation: isolate; }
.site-header--compact .site-header__inner {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "menu";
    justify-content: space-between; align-items: start; gap: 1rem;
    padding: var(--page-gutter) var(--page-gutter) .5rem;
}
.site-header--compact .site-header__brand { display: none; }
.site-header--compact .site-header__monogram { width: 56px; }
.site-header--compact .site-header__links { display: none; }
.site-header--compact .site-header__mobile-menu { display: block; position: relative; grid-area: menu; justify-self: end; }
.site-header--compact::before {
    content: ""; position: fixed; inset: 0; z-index: -1;
    background: color-mix(in srgb, var(--menu-backdrop-colour, var(--project-background, var(--color-white))) 55%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    opacity: 0; pointer-events: none; transition: opacity 350ms ease;
}
.site-header--compact:has(.site-header__mobile-menu[open])::before { opacity: 1; pointer-events: auto; touch-action: none; }
.site-header--compact .site-header__mobile-menu summary {
    display: block; min-height: 44px; min-width: 44px; text-align: right;
    list-style: none; cursor: pointer; font: 400 1.125rem/1.4 var(--font-editorial);
}
.site-header--compact .site-header__mobile-menu summary::-webkit-details-marker { display: none; }
.site-header--compact .site-header__menu-close { display: none; }
.site-header--compact .site-header__mobile-menu[open] .site-header__menu-open { display: none; }
.site-header--compact .site-header__mobile-menu[open] .site-header__menu-close { display: inline; }
.site-header--compact .site-header__mobile-menu summary:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.site-header--compact .site-header__mobile-links {
    position: absolute; z-index: 2; top: 100%; right: -.5rem; min-width: 11rem;
    margin: 0; padding: .25rem 1rem .25rem; list-style: none; text-align: right; background: transparent;
}
.site-header--compact .site-header__mobile-links .site-header__link { font-size: 1.125rem; min-height: 30px; }
.site-header--compact .site-header__mobile-menu[open] .site-header__mobile-links { animation: mobile-menu-reveal 350ms cubic-bezier(.22,1,.36,1) both; }
@media (prefers-reduced-motion: reduce) {
    .site-header--compact::before { transition: none; }
    .site-header--compact .site-header__mobile-menu[open] .site-header__mobile-links { animation: none; }
}

/* Editorial projects: equal halves, photography pinned left and reading column right. */
.project-editorial-right .focus-gallery--persistent.is-ready .focus-gallery__stage {
    height: var(--editorial-image-height, calc(100svh - 8rem)); min-height: 0;
}
.project-editorial-right .focus-gallery .project-media { object-position: left top; }
.project-editorial-right .focus-gallery__thumbnails { margin-inline: 0 auto; }
@media (min-width: 1001px) {
    .project-editorial-page { padding-top: var(--page-gutter); padding-bottom: var(--page-gutter); }
    .project-editorial-right { grid-column: 1; grid-row: 1; top: var(--page-gutter); }
    .project-editorial-left { grid-column: 2; grid-row: 1; }
    .project-editorial-left .project-editorial-heading {
        min-height: calc(100svh - 2 * var(--page-gutter));
        padding-top: clamp(2.5rem, 6svh, 5rem);
    }
}

/* Limit repaints to each fixed gallery cell without forcing 3D media layers. */
.project-horizontal-gallery__item { contain: layout paint; background: var(--project-background); }

/* The horizontal gallery begins at the shared page margin, with a quieter index below. */
.project-horizontal-page {
    --horizontal-index-gap: clamp(2rem, 4svh, 3.5rem);
    padding-top: var(--page-gutter);
    padding-bottom: max(var(--page-gutter), env(safe-area-inset-bottom));
}
.project-horizontal-gallery {
    --film-height: max(15rem, calc(100svh - var(--page-gutter) - max(var(--page-gutter), env(safe-area-inset-bottom)) - 7rem - var(--horizontal-index-gap)));
}
.project-horizontal-heading .focus-gallery__strip { margin-top: var(--horizontal-index-gap); }
.project-horizontal-heading .focus-gallery__thumbnails { margin-inline: auto; }


/* Mobile artist previews reveal one at a time; leave room to reach the final artist. */
@media (max-width: 700px) {
    .artist-roster { padding-bottom: 72svh; overflow-anchor: none; }
    .artist-roster__heading { max-width: 100%; }
    .artist-roster__toggle { display: none; }
}

/* Compact post view: menu above the media, a stable stage, then index and title.
   Intrinsic image proportions never move the bottom controls or the following copy. */
@media (max-width: 1100px) {
    .site-header--compact .site-header__inner {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas: "brand menu";
    }
    .site-header--compact .site-header__brand {
        display: flex;
        grid-area: brand;
        justify-self: start;
    }
    .page-project { --compact-post-top: calc(2 * var(--page-gutter) + 44px + .5rem); }
    .project-centered-page { padding-top: var(--compact-post-top); }
    .project-centered-page .project-focus-view {
        height: calc(100dvh - var(--compact-post-top));
        min-height: 420px;
    }
    .project-centered-page .focus-gallery--persistent.is-ready {
        display: flex; flex-direction: column; gap: 0;
    }
    .project-centered-page .focus-gallery--persistent.is-ready .focus-gallery__stage {
        flex: 1; height: auto; min-height: 0;
    }
    .project-centered-page .is-split .focus-gallery__strip { margin-top: .75rem; }
    .project-centered-page .is-split .focus-gallery__thumbnails { padding-bottom: 8px; }
    .project-centered-page .project-focus-heading { flex: 0 0 auto; }
    .project-horizontal-page { padding-top: var(--compact-post-top); }
    .project-horizontal-gallery {
        --film-height: max(15rem, calc(100svh - var(--compact-post-top) - max(var(--page-gutter), env(safe-area-inset-bottom)) - 7rem - var(--horizontal-index-gap)));
    }
    .project-editorial-page {
        display: grid; grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto minmax(15rem, calc(100svh - var(--compact-post-top) - 18rem)) auto auto;
        gap: 0;
        padding: var(--compact-post-top) var(--page-gutter) var(--page-gutter);
    }
    .project-editorial-page .project-editorial-left,
    .project-editorial-page .project-editorial-right,
    .project-editorial-right .focus-gallery--persistent.is-ready { display: contents; }
    .project-editorial-right .focus-gallery--persistent.is-ready .focus-gallery__stage {
        grid-column: 1; grid-row: 2; height: 100%; min-height: 0;
    }
    .project-editorial-right .focus-gallery__strip { grid-column: 1; grid-row: 3; margin-top: .75rem; }
    .project-editorial-left .project-editorial-heading {
        grid-column: 1; grid-row: 1; min-height: 0; padding-top: 0; padding-bottom: clamp(2.5rem, 7svh, 4rem);
        gap: .75rem; position: static;
    }
    .project-editorial-heading h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
    .project-editorial-heading > .artist-credit { margin: 0; }
    .project-editorial-details { margin-top: .75rem; }
    .project-editorial-left .project-editorial-description {
        grid-column: 1; grid-row: 4; max-width: 48ch; justify-self: center;
        padding-top: clamp(2.5rem, 7svh, 4rem);
    }
}

/* Full-width mobile editorial media, with equal space around the title/tag block. */
@media (max-width: 700px) {
    .project-editorial-page {
        --editorial-copy-gap: clamp(2.5rem, 7svh, 4rem);
        grid-template-rows: auto var(--editorial-compact-height, 70svh) auto auto;
    }
    .project-editorial-left .project-editorial-heading { padding-top: 0; padding-bottom: var(--editorial-copy-gap); }
    .project-editorial-left .project-editorial-description { padding-top: var(--editorial-copy-gap); }
}

/* Archive filters share the pagination's quiet typography and round brackets. */
.project-archive__filters {
    position: relative; z-index: 10;
    display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
    gap: .75rem 2rem; margin-bottom: clamp(1.5rem, 4vw, 3rem);
    font: 400 .875rem/1.4 var(--font-body);
}
.project-archive [hidden] { display: none !important; }
.project-filter { position: relative; flex: 1 1 10rem; min-width: 0; max-width: 24rem; }
.project-filter summary {
    display: flex; align-items: center; gap: .75rem; width: fit-content; max-width: 100%;
    min-height: 48px; cursor: pointer; list-style: none;
}
.project-filter summary::-webkit-details-marker { display: none; }
.project-filter__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-filter__mark { flex: 0 0 auto; }
.project-filter[open] .project-filter__mark { font-size: 0; }
.project-filter[open] .project-filter__mark::after { content: '−'; font-size: .875rem; }
.project-filter.is-active .project-filter__label::before { content: '( '; }
.project-filter.is-active .project-filter__label::after { content: ' )'; }
.project-filter__options {
    position: absolute; top: 100%; left: 0; z-index: 2;
    width: max-content; min-width: 100%; max-width: min(22rem, calc(100vw - 2 * var(--page-gutter)));
    max-height: min(22rem, 55svh); overflow-y: auto; overscroll-behavior: contain;
    padding: .5rem .75rem; background: var(--project-background); color: var(--project-foreground);
    box-shadow: 0 .5rem 1.5rem rgb(0 0 0 / .06);
}
.project-filter:last-of-type .project-filter__options { left: auto; right: 0; }
.project-filter__options button, .project-archive__reset {
    border: 0; background: none; color: inherit; font: inherit; cursor: pointer;
    min-height: 44px; padding: .5rem 0; text-align: left;
}
.project-filter__options button { display: block; width: 100%; }
.project-filter__options button[aria-pressed="true"]::before { content: '( '; }
.project-filter__options button[aria-pressed="true"]::after { content: ' )'; }
.project-filter__options button:hover, .project-archive__reset:hover { opacity: .55; }
.project-filter summary:focus-visible, .project-filter__options button:focus-visible,
.project-archive__reset:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
@media (max-width: 700px) {
    .project-archive__filters { gap: .25rem 1rem; font-size: .8125rem; }
    .project-filter { flex-basis: calc(50% - 1rem); }
    .project-filter:last-of-type .project-filter__options { left: 0; right: auto; }
    .project-archive__reset { margin-left: auto; }
}

/* Silent motion is presented as photography, including thumbnail previews. */
video::-webkit-media-controls, video::-webkit-media-controls-start-playback-button { display: none !important; }
.focus-gallery__thumbnails video, .artist-roster__thumbnail video {
    display: block; width: 100%; height: 100%; object-fit: contain;
}

.focus-gallery__stage video { cursor: pointer; }

/* Keep visible cover controls interactive while the revealed nav sits above them. */
.page-home.home-nav-above-cover > .site-header { z-index: 50; pointer-events: none; }
.page-home.home-nav-above-cover > .site-header :is(a, summary, .site-header__mobile-links) { pointer-events: auto; }

@media (max-width: 1100px) {
    /* Horizontal touch motion has one owner; native Safari momentum must not
       continue moving the strip after the scripted image snap. */
    .project-horizontal-gallery { touch-action: pan-y pinch-zoom; }
}
@media (max-width: 700px) {
    .artist-roster__preview { transition-duration: 560ms; transition-timing-function: cubic-bezier(.25,.1,.25,1); }
    .artist-roster__entry.is-preview-open .artist-roster__thumbnail { transition-delay: calc(min(var(--preview-order), 4) * 20ms); }
}
@media (prefers-reduced-motion: reduce) {
    .artist-roster__preview, .artist-roster__thumbnail { transition: none; }
}
