:root {
    --paper: #fafafa;
    --ink: #171717;
    --muted: #707070;
    --line: #ddd;
    --gutter: clamp(20px, 4vw, 64px)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.5 Arial, Helvetica, sans-serif
}

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

button {
    font: inherit;
    color: inherit;
    cursor: pointer
}

button:disabled {
    opacity: .35;
    cursor: default
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px
}

h1,
h2,
p,
figure {
    margin: 0
}

h1,
h2 {
    font-weight: 400
}

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

.muted {
    color: var(--muted)
}

.small {
    font-size: 13px
}

.eyebrow {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted)
}

.skip {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 100;
    background: white;
    color: black;
    padding: 12px
}

.skip:focus {
    top: 10px
}

header {
    height: 100px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--gutter);
    gap: 30px;
    z-index: 30
}

.logo {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.04em
}

header nav {
    display: flex;
    gap: clamp(18px, 2.5vw, 40px);
    align-items: center;
    font-size: 14px
}

.menu-button {
    display: none
}

details {
    position: relative
}

summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 0
}

summary::-webkit-details-marker {
    display: none
}

.active summary {
    text-decoration: underline;
    text-underline-offset: 7px
}

.dropdown {
    position: absolute;
    top: 100%;
    right: -20px;
    min-width: 255px;
    max-width: 340px;
    background: var(--paper);
    color: var(--ink);
    padding: 24px;
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px #0000000a;
    display: flex;
    flex-direction: column;
    gap: 4px
}

.dropdown .eyebrow {
    margin-bottom: 12px
}

.dropdown a {
    padding: 7px 0
}

.dropdown a:hover {
    text-decoration: underline
}

.home header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    color: white;
    background: none
}

.home .logo {
    font-size: 30px
}

.landing {
    height: 100svh;
    min-height: 500px;
    position: relative;
    background: #171717;
    overflow: hidden
}

#hero-link {
    position: absolute;
    inset: 0
}

#hero-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none
}

#hero-link:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(#0007, transparent 25%, transparent 70%, #0009);
    pointer-events: none
}

.hero-caption {
    position: absolute;
    bottom: 30px;
    left: var(--gutter);
    right: var(--gutter);
    color: white;
    display: flex;
    justify-content: space-between;
    gap: 25px;
    align-items: flex-end;
    pointer-events: none
}

.hero-caption a,
.hero-caption button {
    pointer-events: auto
}

.hero-caption>a {
    font-size: 20px;
    line-height: 1.3
}

.hero-caption>a span {
    display: block;
    font-size: 14px;
    margin-top: 7px;
    opacity: .85
}

.hero-caption>div {
    display: flex;
    gap: 28px;
    align-items: center;
    font-size: 14px
}

.hero-caption button {
    background: none;
    border: 0;
    padding: 8px 0;
    color: inherit
}

.hero-caption>div a {
    padding: 8px 0;
    border-bottom: 1px solid #ffffff88
}

.selected {
    padding: 100px var(--gutter) 70px
}

.section-heading {
    border-top: 1px solid var(--line);
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 55px
}

.section-heading h2 {
    font-size: 20px
}

.selected-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 70px 40px;
    align-items: start
}

.selected-grid .work-card:nth-child(1) {
    grid-column: 2 / span 4
}

.selected-grid .work-card:nth-child(2) {
    grid-column: 8 / span 5;
    margin-top: 110px
}

.selected-grid .work-card:nth-child(3) {
    grid-column: 1 / span 6
}

.selected-grid .work-card:nth-child(4) {
    grid-column: 9 / span 4;
    margin-top: 60px
}

.selected-grid .work-card:nth-child(5) {
    grid-column: 1 / span 7
}

.selected-grid .work-card:nth-child(6) {
    grid-column: 9 / span 4;
    margin-top: 100px
}

.section-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 120px;
    border-top: 1px solid var(--line);
    padding-top: 30px
}

.section-links a {
    font-size: clamp(18px, 2vw, 30px)
}

.section-links span {
    display: block;
    font-size: 14px;
    color: var(--muted);
    margin-top: 8px
}

.statement {
    padding: 90px var(--gutter);
    border-top: 1px solid var(--line)
}

.statement p {
    font-size: clamp(30px, 5vw, 70px);
    letter-spacing: -.04em;
    line-height: 1.15
}

.statement a {
    display: inline-block;
    margin-top: 35px;
    border-bottom: 1px solid var(--line)
}

.collection,
.project,
.editorial {
    padding: 50px var(--gutter) 100px
}

.page-heading {
    padding: 30px 0 55px
}

h1 {
    font-size: clamp(44px, 7vw, 96px);
    letter-spacing: -.055em;
    line-height: 1.08;
    margin-top: 18px
}

.intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 35px;
    margin-top: 28px
}

.intro p {
    max-width: 650px;
    color: var(--muted)
}

.intro>span {
    white-space: nowrap
}

.filters {
    display: flex;
    gap: 12px 25px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding: 20px 0 50px;
    font-size: 14px
}

.filters a {
    color: var(--muted);
    padding: 5px 0
}

.filters a[aria-current],
.filters a:hover {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 6px
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 65px 35px;
    align-items: start
}

.studio .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 65px 45px
}

.work-card {
    display: block;
    min-width: 0
}

.card-image img {
    width: 100%
}

.studio .card-image {
    height: 380px
}

.studio .card-image img {
    height: 100%;
    object-fit: contain
}

.card-title {
    margin-top: 14px;
    font-size: 15px
}

.work-card .small {
    margin-top: 5px
}

.work-card img {
    transition: opacity .25s
}

.work-card:hover img {
    opacity: .9
}

.breadcrumbs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--muted);
    padding: 20px 0 30px
}

.project-heading {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: end;
    margin-bottom: 55px
}

.project-heading h1 {
    font-size: clamp(34px, 5vw, 70px);
    margin: 0
}

.project-heading .small p+p {
    margin-top: 6px
}

.project figure {
    max-width: 1200px;
    margin: 0 auto 60px
}

.photo-button {
    width: 100%;
    display: block;
    background: none;
    border: 0;
    padding: 0;
    cursor: zoom-in
}

.photo-button img {
    max-height: 80svh;
    width: 100%;
    object-fit: contain
}

figcaption {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--muted)
}

.description {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin: 70px auto 90px;
    border-top: 1px solid var(--line);
    padding-top: 30px;
    max-width: 1200px
}

.description>p:last-child {
    font-size: 20px;
    line-height: 1.6;
    max-width: 700px
}

.project-nav {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-top: 80px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
    font-size: 15px
}

.project-nav a span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 7px
}

.project-nav>a:nth-child(2) {
    text-align: center;
    font-size: 14px
}

.project-nav>*:last-child {
    text-align: right
}

.editorial {
    max-width: 1440px;
    margin: auto;
    min-height: 75svh
}

.origin-tabs {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding: 20px 0;
    margin-top: 55px;
    font-size: 14px
}

.prose {
    max-width: 760px;
    margin: 65px auto 50px
}

.prose p {
    font-size: 19px;
    line-height: 1.65;
    margin-bottom: 25px
}

.prose .lead {
    font-size: clamp(26px, 3.5vw, 42px);
    line-height: 1.3;
    letter-spacing: -.02em;
    margin-bottom: 40px
}

.cv {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 25px;
    padding: 25px 0;
    border-top: 1px solid var(--line)
}

.cv h2 {
    font-size: 20px
}

.cv ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 16px
}

.cv li+li {
    margin-top: 12px
}

.cv p {
    font-size: 16px
}

.email {
    display: block;
    font-size: clamp(24px, 4vw, 50px);
    overflow-wrap: anywhere;
    border-bottom: 1px solid var(--line);
    margin-bottom: 35px
}

footer {
    border-top: 1px solid var(--line);
    padding: 35px var(--gutter);
    display: flex;
    gap: 25px;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 13px
}

footer .logo {
    font-size: 20px;
    color: var(--ink)
}

#lightbox {
    width: 100vw;
    max-width: 100vw;
    height: 100svh;
    max-height: 100svh;
    border: 0;
    padding: 22px 30px;
    margin: 0;
    background: #111;
    color: white;
    overflow: hidden
}

#lightbox::backdrop {
    background: #111
}

#lightbox[open] {
    display: flex;
    flex-direction: column
}

.viewer-top,
.viewer-bottom {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    flex-shrink: 0
}

.viewer-top {
    padding-bottom: 20px
}

.viewer-bottom {
    padding-top: 20px
}

.viewer-top button,
.viewer-bottom button {
    background: none;
    color: inherit;
    border: 0;
    padding: 8px 0
}

#viewer-image {
    flex: 1;
    min-height: 0;
    width: 100%;
    object-fit: contain
}

#viewer-caption {
    color: #aaa;
    text-align: center
}

body.viewer-open {
    overflow: hidden
}

@media(max-width:1050px) {
    header nav {
        gap: 18px;
        font-size: 13px
    }

    .studio .card-image {
        height: 290px
    }
}

@media(max-width:800px) {
    header {
        height: 78px
    }

    .home .logo {
        font-size: 25px
    }

    .menu-button {
        display: block;
        background: none;
        border: 0;
        padding: 12px 0;
        font-size: 14px
    }

    header nav {
        display: none;
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        max-height: calc(100svh - 78px);
        overflow: auto;
        background: var(--paper);
        color: var(--ink);
        padding: 20px var(--gutter) 30px;
        font-size: 18px;
        align-items: stretch
    }

    header nav.mobile-open {
        display: flex;
        flex-direction: column;
        gap: 3px
    }

    .dropdown {
        position: static;
        min-width: 0;
        max-width: none;
        border: 0;
        box-shadow: none;
        padding: 8px 0 20px 18px;
        font-size: 15px
    }

    .hero-caption {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px
    }

    .hero-caption>a {
        font-size: 18px
    }

    .selected {
        padding-top: 60px
    }

    .selected-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 45px 20px
    }

    .selected-grid .work-card:nth-child(n) {
        grid-column: auto;
        margin-top: 0
    }

    .section-links {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 60px
    }

    .collection,
    .project,
    .editorial {
        padding-top: 25px;
        padding-bottom: 60px
    }

    .page-heading {
        padding-top: 20px;
        padding-bottom: 35px
    }

    .studio .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 20px
    }

    .studio .card-image {
        height: 280px
    }

    .grid {
        gap: 40px 20px
    }

    .project-heading,
    .description {
        grid-template-columns: 1fr;
        gap: 20px
    }

    .project-heading {
        margin-bottom: 35px
    }

    .description {
        margin: 40px 0 60px
    }

    .description>p:last-child {
        font-size: 18px
    }

    .project-nav {
        font-size: 13px;
        gap: 15px
    }

    .prose p {
        font-size: 17px
    }

    .cv {
        grid-template-columns: 1fr;
        gap: 15px
    }

    footer {
        flex-wrap: wrap;
        font-size: 12px
    }

    #lightbox {
        padding: 15px
    }

    .viewer-bottom {
        font-size: 12px;
        gap: 12px
    }
}

@media(max-width:500px) {
    .grid {
        grid-template-columns: 1fr
    }

    .studio .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 15px
    }

    .studio .card-image {
        height: 220px
    }

    .selected-grid {
        display: block
    }

    .selected-grid .work-card {
        margin-bottom: 40px
    }

    .selected-grid img {
        max-height: 65svh;
        object-fit: contain
    }

    .intro {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px
    }

    h1 {
        font-size: 46px
    }

    .project-nav {
        grid-template-columns: 1fr 1fr
    }

    .project-nav>a:nth-child(2) {
        grid-column: 1/-1;
        grid-row: 2;
        text-align: left
    }

    .project-nav>*:last-child {
        grid-column: 2;
        grid-row: 1
    }

    .viewer-bottom {
        flex-wrap: wrap
    }

    #viewer-caption {
        order: 3;
        width: 100%
    }

    .statement p {
        font-size: 34px
    }

    .origin-tabs {
        gap: 20px
    }
}

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

    * {
        transition: none !important;
        animation: none !important
    }
}

/* Colour is confined to the submenu title strip. */
:root {
    --submenu-start: #acd7e4;
    --submenu-end: #ddc5ef
}

.dropdown {
    padding: 0;
    display: block;
    overflow: hidden
}

.menu-title {
    padding: 17px 24px;
    background: linear-gradient(to right, var(--submenu-start), var(--submenu-end));
    color: #171717;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    line-height: 1.4
}

.menu-links {
    padding: 12px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--paper)
}

.menu-links a {
    display: block;
    padding: 7px 0
}

@media(max-width:800px) {
    .dropdown {
        padding: 0;
        margin: 4px 0 14px
    }

    .menu-title {
        padding: 14px 18px
    }

    .menu-links {
        padding: 10px 18px 15px
    }
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: clamp(35px, 7vw, 110px);
    margin-top: 45px
}

.contact-page form {
    max-width: 720px
}

.contact-page label {
    display: block;
    font-size: var(--ui-size);
    margin-bottom: 24px
}

.contact-page label span,
.contact-note {
    color: var(--muted);
    font-size: var(--small-size)
}

.contact-page input,
.contact-page textarea,
.contact-page select {
    display: block;
    width: 100%;
    font: inherit;
    color: var(--ink);
    background: var(--contact-field-background);
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 14px 10px;
    margin-top: 9px;
    box-sizing: border-box
}

.contact-page textarea {
    resize: vertical;
    min-height: 150px
}

.contact-page input:focus-visible,
.contact-page textarea:focus-visible,
.contact-page select:focus-visible,
.contact-submit:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 4px
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px
}

.contact-submit {
    display: flex;
    justify-content: space-between;
    gap: 55px;
    padding: 16px 22px;
    border: 1px solid var(--ink);
    background: var(--contact-button-background);
    color: var(--contact-button-text);
    font: inherit;
    cursor: pointer
}

.contact-submit:disabled {
    opacity: .6;
    cursor: wait
}

.contact-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden
}

#contact-status {
    max-width: 55ch;
    font-size: var(--ui-size);
    line-height: 1.6
}

#contact-status:empty {
    display: none
}

@media(max-width:800px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 28px
    }

    .contact-row {
        grid-template-columns: 1fr;
        gap: 0
    }
}

header .logo .header-logo {
    display: block;
    height: 60px;
    width: auto;
}

footer .logo .footer-logo {
    display: block;
    height: 60px;
    width: auto;
}

@media (max-width: 800px) {
    header .logo .header-logo {
        height: 60px;
    }

    footer .logo .footer-logo {
        height: 60px;
    }
}

/* Other pages: black logo */
header .logo .logo-white {
    display: none;
}

/* Homepage: white logo */
body.home header .logo .logo-black {
    display: none;
}

body.home header .logo .logo-white {
    display: block;
}