/*
 * Mario Skraban, photography theme
 * Hand-written CSS, no build step.
 *
 * Idea: front of stage. A dark room, photographs at full size,
 * type set as large as the venue allows.
 */

/* ---------- Tokens ---------- */
:root {
    --bg: #09090a;
    --raise: #151517;
    --fg: #f4f3ef;
    --dim: #a09fa6;
    --line: rgba(255, 255, 255, 0.14);
    --accent: #ff5a1f;

    --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

    --gutter: clamp(18px, 4vw, 64px);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);

    color-scheme: dark;
}

/* Cross-fade between pages in browsers that support it */
@view-transition {
    navigation: auto;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scrollbar-color: #3a3a3f var(--bg);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

h1,
h2,
h3,
p,
ul,
figure {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

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

button {
    font: inherit;
    color: inherit;
}

em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-stretch: 100%;
    letter-spacing: -0.01em;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

main:focus {
    outline: none;
}

::selection {
    background: var(--accent);
    color: #09090a;
}

.wrap {
    width: 100%;
    padding-inline: var(--gutter);
}

.skip-link {
    position: fixed;
    left: var(--gutter);
    top: -100px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--fg);
    color: var(--bg);
    font-weight: 600;
}

.skip-link:focus {
    top: 12px;
}

/* ---------- Shared pieces ---------- */
h2 {
    font-size: clamp(2.5rem, 1.4rem + 5.4vw, 6.5rem);
    font-weight: 800;
    font-stretch: 112%;
    letter-spacing: -0.035em;
    line-height: 0.95;
    text-transform: uppercase;
}

h2 em {
    text-transform: none;
    font-size: 1.08em;
}

.wordmark {
    font-size: 11.4vw;
    font-weight: 900;
    font-stretch: 125%;
    letter-spacing: -0.035em;
    line-height: 0.8;
    text-transform: uppercase;
    white-space: nowrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn:hover,
.btn-solid {
    border-color: var(--fg);
    background: var(--fg);
    color: var(--bg);
}

.btn-solid:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #09090a;
}

.round {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.round:hover {
    background: var(--fg);
    color: var(--bg);
}

.round svg,
.lb svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Scroll reveal: only when scripting is on, so nothing hides without it */
.js .reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .reveal.is-in {
    opacity: 1;
    transform: none;
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px var(--gutter);
    transition: transform 0.5s var(--ease), background-color 0.4s var(--ease);
}

.nav.is-scrolled {
    background: rgba(9, 9, 10, 0.72);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.nav.is-away {
    transform: translateY(-100%);
}

.nav-brand {
    padding-block: 10px;
    font-size: 1rem;
    font-weight: 800;
    font-stretch: 125%;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.2vw, 34px);
}

.nav-links a {
    position: relative;
    padding-block: 12px;
    font-size: 0.9375rem;
    font-weight: 500;
}

.nav-links a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links .nav-cta {
    padding: 9px 18px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.nav-links .nav-cta:hover {
    background: var(--fg);
    color: var(--bg);
}

.nav-toggle {
    display: none;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    background: transparent;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
}

.menu {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 96px var(--gutter) 32px;
    background: var(--bg);
    overflow-y: auto;
}

.menu[hidden] {
    display: none;
}

.menu-links a {
    display: block;
    padding-block: 6px;
    font-size: clamp(2.25rem, 11vw, 4rem);
    font-weight: 800;
    font-stretch: 112%;
    letter-spacing: -0.035em;
    line-height: 1.05;
    text-transform: uppercase;
}

.menu-foot {
    display: flex;
    gap: 24px;
    padding-top: 32px;
    color: var(--dim);
}

.menu-foot a {
    padding-block: 10px;
}

/* ---------- Home: hero ---------- */
.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: #000;
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.is-on {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slow push-in on the photograph that is showing */
.hero-slide.is-on img {
    animation: push 6s linear forwards;
}

@keyframes push {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.09);
    }
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 22%),
        linear-gradient(to top, rgba(9, 9, 10, 0.94) 4%, rgba(9, 9, 10, 0.35) 42%, transparent 68%);
    pointer-events: none;
}

.hero-body {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0 var(--gutter) clamp(20px, 3vw, 40px);
}

.hero-meta {
    display: grid;
    grid-template-columns: minmax(0, 30rem) auto;
    gap: 20px 40px;
    align-items: end;
    justify-content: space-between;
    margin-bottom: clamp(20px, 3vw, 40px);
}

.hero-lede {
    font-size: clamp(1.0625rem, 0.95rem + 0.6vw, 1.375rem);
    line-height: 1.35;
    font-weight: 500;
    text-wrap: balance;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    grid-column: 1;
}

.hero-count {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.hero-count[hidden] {
    display: none;
}

.hero-bar {
    position: relative;
    width: clamp(64px, 9vw, 140px);
    height: 2px;
    background: rgba(255, 255, 255, 0.28);
    overflow: hidden;
}

.hero-bar i {
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
}

.hero-bar i.is-running {
    animation: fill var(--slide-time, 6s) linear forwards;
}

@keyframes fill {
    to {
        transform: scaleX(1);
    }
}

/* ---------- Home: intro ---------- */
.intro {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: clamp(32px, 5vw, 96px);
    align-items: end;
    padding-block: clamp(72px, 11vw, 180px);
}

.intro-text {
    font-size: clamp(1.625rem, 1rem + 2.6vw, 3.5rem);
    font-weight: 500;
    font-stretch: 100%;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.intro-text em {
    font-size: 1.1em;
    color: var(--accent);
}

.facts li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-block: 14px;
    border-top: 1px solid var(--line);
}

.facts li:last-child {
    border-bottom: 1px solid var(--line);
}

.facts b {
    font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem);
    font-weight: 800;
    font-stretch: 112%;
    letter-spacing: -0.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.facts span {
    color: var(--dim);
}

/* ---------- Home: outlet wall ---------- */
.outlets {
    padding-bottom: clamp(72px, 10vw, 160px);
}

.outlets-label {
    margin-bottom: 18px;
    font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
    font-weight: 500;
    color: var(--dim);
}

.wall {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.wall li {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.wall a {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    min-height: clamp(130px, 15vw, 230px);
    padding: clamp(16px, 2vw, 28px);
    transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

.wall a:hover {
    background: var(--fg);
    color: var(--bg);
}

.wall-name {
    /* Sized so the longest single word still fits a cell at every width */
    font-size: clamp(1rem, 0.35rem + 2.4vw, 3rem);
    font-weight: 800;
    font-stretch: 112%;
    letter-spacing: -0.035em;
    line-height: 0.98;
    text-transform: uppercase;
}

.wall-count {
    font-size: 0.9375rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    opacity: 0.65;
}

/* ---------- Home: marquee ---------- */
.marquee {
    overflow: hidden;
    padding-block: clamp(16px, 2vw, 28px);
    border-block: 1px solid var(--line);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: slide 70s linear infinite;
}

.marquee span {
    display: flex;
    align-items: center;
    font-size: clamp(2rem, 1.2rem + 4vw, 5rem);
    font-weight: 800;
    font-stretch: 112%;
    letter-spacing: -0.03em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px rgba(244, 243, 239, 0.7);
}

.marquee span:nth-child(3n + 1) {
    color: var(--fg);
    -webkit-text-stroke: 0;
}

.marquee span::after {
    content: "";
    width: 0.22em;
    height: 0.22em;
    margin-inline: 0.5em;
    border-radius: 50%;
    background: var(--accent);
}

@keyframes slide {
    to {
        transform: translateX(-50%);
    }
}

/* ---------- Home: latest work rail ---------- */
.latest {
    padding-block: clamp(72px, 10vw, 160px);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(24px, 3.5vw, 56px);
}

.rail-controls {
    display: flex;
    gap: 8px;
}

.rail {
    display: flex;
    gap: clamp(12px, 1.6vw, 24px);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

.rail::-webkit-scrollbar {
    display: none;
}

.card {
    flex: 0 0 min(82vw, 760px);
    scroll-snap-align: start;
}

.card-media {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 6px;
    background: var(--raise);
}

.card-media img,
.set-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s var(--ease);
}

.card:hover .card-media img,
.set:hover .set-media img {
    transform: scale(1.05);
}

.card-row,
.set-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
}

.card-title {
    font-size: clamp(1.25rem, 1rem + 1vw, 2rem);
    font-weight: 700;
    font-stretch: 110%;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.card-date,
.set-date {
    flex: none;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    color: var(--dim);
}

.card-all {
    display: grid;
    place-items: center;
    flex-basis: min(60vw, 420px);
    aspect-ratio: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
    transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

.card-all:hover {
    background: var(--accent);
    color: #09090a;
}

.card-all-text {
    padding: 24px;
    font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
    font-weight: 800;
    font-stretch: 112%;
    letter-spacing: -0.03em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

/* ---------- Home: categories ---------- */
/* Four photographs side by side, shown whole; the words sit on the picture */
.cats {
    padding-bottom: clamp(72px, 10vw, 160px);
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(8px, 1vw, 16px);
    align-items: start;
    margin-top: clamp(24px, 3.5vw, 56px);
}

.cat {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: var(--raise);
}

.cat img {
    width: 100%;
    height: auto;
    transition: transform 1.1s var(--ease);
}

.cat:hover img {
    transform: scale(1.05);
}

.cat::after {
    content: "";
    position: absolute;
    inset: 40% 0 0 0;
    background: linear-gradient(to top, rgba(9, 9, 10, 0.88), transparent);
    pointer-events: none;
}

.cat-text {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    padding: clamp(12px, 1.5vw, 22px);
}

.cat-name {
    display: block;
    font-size: clamp(1.25rem, 0.7rem + 2vw, 2.75rem);
    font-weight: 800;
    font-stretch: 112%;
    letter-spacing: -0.035em;
    line-height: 1;
    text-transform: uppercase;
}

.cat-desc {
    display: block;
    max-width: 30ch;
    margin-top: 6px;
    font-size: 0.9375rem;
    line-height: 1.35;
    color: rgba(244, 243, 239, 0.82);
}

.cat:nth-child(2) {
    transition-delay: 0.08s;
}

.cat:nth-child(3) {
    transition-delay: 0.16s;
}

.cat:nth-child(4) {
    transition-delay: 0.24s;
}

/* With a pointer, the description stays out of the way until the photograph is hovered */
@media (hover: hover) and (min-width: 900px) {
    .cat-desc {
        max-height: 0;
        margin-top: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.6s var(--ease), opacity 0.4s var(--ease), margin-top 0.6s var(--ease);
    }

    .cat:hover .cat-desc {
        max-height: 5em;
        margin-top: 6px;
        opacity: 1;
    }
}

/* ---------- Home: archive mosaic ---------- */
.archive {
    padding-bottom: clamp(72px, 10vw, 160px);
}

.archive-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 32px;
    margin-bottom: clamp(24px, 3.5vw, 56px);
}

.mosaic {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(28px, 5vw, 96px) clamp(14px, 1.8vw, 28px);
    align-items: start;
}

.tile:nth-child(1) {
    grid-column: 1 / span 7;
}

.tile:nth-child(2) {
    grid-column: 9 / span 4;
    margin-top: clamp(40px, 9vw, 160px);
}

.tile:nth-child(3) {
    grid-column: 2 / span 4;
}

.tile:nth-child(4) {
    grid-column: 7 / span 6;
    margin-top: clamp(32px, 6vw, 120px);
}

.tile:nth-child(5) {
    grid-column: 3 / span 8;
}

.tile-media {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 6px;
    background: var(--raise);
}

.tile:nth-child(2) .tile-media,
.tile:nth-child(3) .tile-media {
    aspect-ratio: 4 / 5;
}

.tile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Room for the photograph to drift inside its frame */
[data-parallax] img {
    scale: 1.14;
    will-change: transform;
}

.tile-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
}

.tile-title {
    font-size: clamp(1.125rem, 1rem + 0.6vw, 1.625rem);
    font-weight: 700;
    font-stretch: 110%;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.tile time {
    flex: none;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    color: var(--dim);
}

/* ---------- Home: published in ---------- */
/* A raised panel: one step lighter than the page, so the section is set apart without leaving the dark */
.press {
    --panel: #17171a;
    --ink: var(--fg);
    --ink-dim: var(--dim);
    --ink-line: var(--line);
    padding-block: clamp(64px, 9vw, 144px);
    margin-bottom: clamp(72px, 10vw, 160px);
    background: var(--panel);
    border-block: 1px solid var(--line);
    color: var(--ink);
}

.press-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 40px;
}

.press-note {
    max-width: 36ch;
    color: var(--ink-dim);
    line-height: 1.4;
}

.press-list {
    margin-top: clamp(24px, 3.5vw, 56px);
    border-top: 1px solid var(--ink-line);
}

.press-row {
    border-bottom: 1px solid var(--ink-line);
    scroll-margin-top: 90px;
}

.press-row summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px clamp(16px, 3vw, 48px);
    align-items: center;
    padding-block: clamp(14px, 1.8vw, 26px);
    cursor: pointer;
    list-style: none;
}

.press-row summary::-webkit-details-marker {
    display: none;
}

.press-row summary:focus-visible {
    outline-color: var(--ink);
}

.press-name {
    font-size: clamp(1.75rem, 1rem + 3.4vw, 4.5rem);
    font-weight: 800;
    font-stretch: 112%;
    letter-spacing: -0.035em;
    line-height: 1;
    text-transform: uppercase;
    transition: transform 0.6s var(--ease);
}

.press-row summary:hover .press-name {
    transform: translateX(clamp(8px, 1.4vw, 24px));
}

.press-count {
    font-size: 0.9375rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--ink-dim);
}

/* Plus that turns into a minus when the outlet is open */
.press-toggle {
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    transition: background-color 0.3s var(--ease);
}

.press-toggle::before,
.press-toggle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 2px;
    margin: -1px 0 0 -8px;
    background: var(--ink);
    transition: transform 0.4s var(--ease), background-color 0.3s var(--ease);
}

.press-toggle::after {
    transform: rotate(90deg);
}

.press-row[open] .press-toggle {
    background: var(--ink);
}

.press-row[open] .press-toggle::before,
.press-row[open] .press-toggle::after {
    background: var(--panel);
}

.press-row[open] .press-toggle::after {
    transform: rotate(0deg);
}

.press-links {
    max-width: 62rem;
    padding-bottom: clamp(16px, 2vw, 28px);
}

.press-links a,
.press-plain {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    padding-block: 10px;
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
    line-height: 1.3;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.press-links a {
    transition: color 0.3s var(--ease);
}

.press-links a:hover {
    color: var(--accent);
}

.press-links a:hover .press-title {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.press-date {
    flex: none;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    color: var(--ink-dim);
}

/* ---------- Home: contact ---------- */
.contact {
    padding-block: clamp(72px, 10vw, 160px);
    border-top: 1px solid var(--line);
}

.contact-kicker {
    margin-bottom: 20px;
    color: var(--dim);
    font-weight: 500;
}

.contact-title {
    max-width: 14ch;
}

.contact-ways {
    display: flex;
    flex-wrap: wrap;
    gap: 20px clamp(28px, 4vw, 64px);
    margin-top: clamp(28px, 4vw, 56px);
}

.contact-mail {
    display: inline-block;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--accent);
    font-size: clamp(1.25rem, 0.9rem + 1.8vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    overflow-wrap: anywhere;
    transition: color 0.3s var(--ease);
}

.contact-mail:hover {
    color: var(--accent);
}

.license {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 2.4vw, 40px);
    margin-top: clamp(48px, 7vw, 112px);
}

.license li {
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.license a {
    font-size: 1.375rem;
    font-weight: 700;
    font-stretch: 110%;
    letter-spacing: -0.02em;
    transition: color 0.3s var(--ease);
}

.license a:hover {
    color: var(--accent);
}

.license span {
    display: block;
    margin-top: 6px;
    color: var(--dim);
    line-height: 1.4;
}

/* ---------- Footer ---------- */
.foot {
    padding-top: 28px;
    border-top: 1px solid var(--line);
    overflow: hidden;
}

.foot-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 32px;
    padding-bottom: clamp(28px, 4vw, 56px);
}

.foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 26px;
    flex-basis: 100%;
}

.foot-links a {
    display: inline-block;
    padding-block: 10px;
    font-weight: 500;
}

.foot-links a:hover {
    color: var(--accent);
}

.foot-copy {
    font-size: 0.875rem;
    color: var(--dim);
}

.foot-mark {
    padding-inline: var(--gutter);
    margin-bottom: -0.08em;
    color: rgba(244, 243, 239, 0.1);
}

/* ---------- Inner pages ---------- */
.page-title {
    font-size: clamp(2.75rem, 1.4rem + 7vw, 8.5rem);
    font-weight: 800;
    font-stretch: 112%;
    letter-spacing: -0.04em;
    line-height: 0.92;
    text-transform: uppercase;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.page-lede {
    max-width: 52ch;
    margin-top: 20px;
    font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
    line-height: 1.45;
    color: var(--dim);
}

.page-lede p + p {
    margin-top: 0.8em;
}

.page-head {
    padding-top: clamp(120px, 15vw, 220px);
    padding-bottom: clamp(28px, 4vw, 56px);
}

.years {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: clamp(24px, 3vw, 40px);
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.chip:hover {
    border-color: var(--fg);
    background: var(--fg);
    color: var(--bg);
}

.all-sets {
    padding-bottom: clamp(72px, 10vw, 160px);
}

/* Year divider: a large outlined year with a rule running to the edge */
.year-mark {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.5vw, 40px);
    margin-block: clamp(56px, 8vw, 128px) clamp(24px, 3vw, 48px);
    scroll-margin-top: 90px;
    font-size: clamp(3rem, 1.6rem + 8vw, 9rem);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
    line-height: 0.85;
    color: transparent;
    -webkit-text-stroke: 1px rgba(244, 243, 239, 0.75);
}

.year-mark::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.year-mark:first-child {
    margin-top: clamp(8px, 2vw, 32px);
}

.sets {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(32px, 4vw, 64px) clamp(14px, 1.8vw, 28px);
}

.set-media {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 6px;
    background: var(--raise);
}

.set-title {
    font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
    font-weight: 700;
    font-stretch: 110%;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-wrap: balance;
}

/* Cover: full-width photograph behind a gallery or category title */
.cover {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(88vh, 900px);
    overflow: hidden;
    background: #000;
}

.cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: push 14s var(--ease) forwards;
}

.cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 24%),
        linear-gradient(to top, var(--bg) 2%, rgba(9, 9, 10, 0.6) 40%, transparent 78%);
}

.cover-body {
    position: relative;
    z-index: 1;
    padding-top: 140px;
    padding-bottom: clamp(28px, 4vw, 56px);
}

.cover-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0 32px;
    margin-bottom: 8px;
}

.back {
    display: inline-block;
    padding-block: 10px;
    font-weight: 500;
    color: rgba(244, 243, 239, 0.8);
    border-bottom: 1px solid transparent;
}

.back:hover {
    color: var(--fg);
    border-bottom-color: currentColor;
}

.cover-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    margin-top: 20px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.cover .page-lede {
    color: rgba(244, 243, 239, 0.82);
}

.body-copy {
    max-width: calc(64ch + 2 * var(--gutter));
    padding-block: 32px;
    font-size: 1.125rem;
    line-height: 1.6;
}

.photos {
    columns: 2;
    column-gap: 6px;
    padding: 6px 6px 0;
}

.photo {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    margin-bottom: 6px;
    break-inside: avoid;
    overflow: hidden;
    background: var(--raise);
    cursor: zoom-in;
}

.photo img {
    width: 100%;
    transition: filter 0.6s var(--ease), transform 0.9s var(--ease);
}

/* Once the script has dealt the photographs into columns */
.photos.is-dealt {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    columns: auto;
}

.photos-col {
    flex: 1 1 0;
    min-width: 0;
}

/* A tiny placeholder is shown blurred until the real file arrives */
.photo img[data-src] {
    filter: blur(14px);
    transform: scale(1.06);
}

.photo:hover img:not([data-src]) {
    transform: scale(1.03);
}

.after {
    display: flex;
    justify-content: center;
    padding-block: clamp(48px, 7vw, 96px);
}

.empty {
    padding-block: clamp(160px, 22vw, 280px) clamp(96px, 12vw, 180px);
}

.empty .btn {
    margin-top: 28px;
}

/* ---------- Motion: reveals, load-in, pointer label ---------- */
/* Headings rise out of a mask instead of fading */
.js h2.reveal {
    opacity: 1;
    transform: none;
}

.rise {
    display: block;
    overflow: hidden;
    padding-bottom: 0.14em;
    margin-bottom: -0.14em;
}

.js .rise > span {
    display: block;
    transform: translateY(110%);
    transition: transform 1.1s var(--ease);
}

.js .is-in .rise > span {
    transform: none;
}

/* Photographs are uncovered from the top edge down */
.js .reveal-img {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.2s var(--ease);
}

.js .reveal-img.is-in {
    clip-path: inset(0);
}

/* First paint of the home page: photograph fades up, then the name rises */
.hero-mark {
    overflow: hidden;
    padding-top: 0.04em;
}

.hero-mark span {
    display: block;
}

.js .hero-slides {
    animation: fade 1.6s ease both;
}

.js .hero-mark span {
    animation: rise 1.3s var(--ease) 0.25s both;
}

.js .hero-lede {
    animation: up 1s var(--ease) 0.7s both;
}

.js .hero-actions {
    animation: up 1s var(--ease) 0.82s both;
}

.js .hero-count {
    animation: up 1s var(--ease) 0.94s both;
}

.js .nav {
    animation: fade 1s ease 0.4s backwards;
}

.js .cover-body > * {
    animation: up 1s var(--ease) 0.2s both;
}

.js .cover-body > .page-title {
    animation-delay: 0.3s;
}

.js .cover-body > .cover-meta {
    animation-delay: 0.42s;
}

.js .cover-body > .page-lede {
    animation-delay: 0.52s;
}

@keyframes fade {
    from {
        opacity: 0;
    }
}

@keyframes rise {
    from {
        transform: translateY(105%);
    }
}

@keyframes up {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
}

.rail {
    cursor: grab;
}

.rail.is-dragging {
    scroll-snap-type: none;
    cursor: grabbing;
}

.rail a,
.rail img {
    -webkit-user-drag: none;
    user-select: none;
}

/* ---------- Next gallery ---------- */
/* The photograph at a normal size on the left, uncropped; the title beside it */
.next {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(24px, 4vw, 72px);
    align-items: center;
    margin-top: clamp(48px, 7vw, 96px);
    padding: clamp(40px, 6vw, 96px) var(--gutter);
    border-top: 1px solid var(--line);
}

.next-media {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 6px;
    background: var(--raise);
}

.next-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.next:hover .next-img {
    transform: scale(1.04);
}

.next-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--dim);
}

.next-title {
    display: block;
    font-size: clamp(2rem, 1.2rem + 3.6vw, 5rem);
    font-weight: 800;
    font-stretch: 112%;
    letter-spacing: -0.04em;
    line-height: 0.95;
    text-transform: uppercase;
    text-wrap: balance;
    overflow-wrap: break-word;
    transition: color 0.3s var(--ease);
}

.next:hover .next-title {
    color: var(--accent);
}

.next-date {
    display: block;
    margin-top: 16px;
    font-variant-numeric: tabular-nums;
    color: var(--dim);
}

@media (max-width: 899px) {
    .next {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Lightbox ---------- */
.lb {
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #050506;
    color: var(--fg);
}

.lb::backdrop {
    background: #050506;
}

.lb[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.lb-bar,
.lb-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 12px 8px 20px;
}

.lb-count {
    font-size: 0.9375rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.lb-stage {
    position: relative;
    min-height: 0;
    touch-action: pan-y;
}

.lb-stage img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter 0.3s var(--ease);
}

.lb-stage img.is-loading {
    filter: blur(6px);
}

.lb-caption {
    min-height: 1.5em;
    color: var(--dim);
}

.lb-foot {
    padding: 8px 12px 12px 20px;
}

.lb-nav {
    display: flex;
    gap: 4px;
}

.lb button {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.lb button:hover {
    background: #222226;
}

/* ---------- Photograph protection ---------- */
/* Photographs cannot be selected, dragged out, or long-pressed to save on phones */
img {
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

.lb {
    -webkit-user-select: none;
    user-select: none;
}

/* Clicks land on the frame, never on the photograph itself */
.lb-stage img,
.photo img,
.cover-img,
.hero-slide img {
    pointer-events: none;
}

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
    .sets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .photos {
        columns: 3;
    }
}

@media (min-width: 640px) and (max-width: 1099px) {
    .set:nth-child(2n) {
        margin-top: clamp(32px, 6vw, 72px);
    }
}

@media (min-width: 1100px) {
    .sets {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .set:nth-child(3n + 2) {
        margin-top: clamp(40px, 6vw, 110px);
    }

    .set:nth-child(3n + 2) .reveal-img {
        transition-delay: 0.1s;
    }

    .set:nth-child(3n) .reveal-img {
        transition-delay: 0.2s;
    }

    .photos {
        columns: 4;
    }
}

@media (min-width: 1800px) {
    .photos {
        columns: 5;
    }
}

@media (max-width: 899px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
    }

    .hero-meta {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-count {
        grid-column: 1;
        grid-row: auto;
    }

    .intro {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cat-desc {
        display: none;
    }

    .wall {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .press-count {
        display: none;
    }

    .mosaic {
        grid-template-columns: minmax(0, 1fr);
    }

    .mosaic .tile:nth-child(n) {
        grid-column: 1 / -1;
        margin-top: 0;
    }

    .mosaic .tile:nth-child(n) .tile-media {
        aspect-ratio: 3 / 2;
    }

    .license {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 520px) {
    .rail-controls {
        display: none;
    }
}

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

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

    .marquee-track {
        animation: none;
    }

    .js .reveal,
    .js .rise > span {
        opacity: 1;
        transform: none;
    }

    .js .reveal-img {
        clip-path: none;
    }

    [data-parallax] img {
        scale: 1;
    }
}
