:root {
    color-scheme: dark;
    --bg: #101112;
    --text: #e2e4e5;
    --muted: #93989d;
    --line: #323638;
    --ice: #9ebaca;
    --gutter: clamp(20px, 3.1vw, 64px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
/* A fixed background layer stays behind the content and never overlays photographs. */
body { position: relative; isolation: isolate; }
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch' seed='8'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)' opacity='.055'/%3E%3C/svg%3E"),
        radial-gradient(ellipse at 18% 16%, rgba(167, 180, 191, .075), transparent 72%),
        radial-gradient(ellipse at 92% 86%, rgba(0, 0, 0, .28), transparent 74%);
    background-size: 180px 180px, 100% 100%, 100% 100%;
    background-repeat: repeat, no-repeat, no-repeat;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ice); outline-offset: 6px; }
::selection { background: #9ebaca; color: #101112; }
figure, h1, h2, p { margin: 0; }
.page-width { width: calc(100% - var(--gutter) * 2); max-width: 1800px; margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px 18px; background: var(--text); color: var(--bg); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.wordmark { font-size: 12px; letter-spacing: .23em; text-transform: uppercase; font-weight: 500; white-space: nowrap; padding-block: 14px; }
.contact-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 30px; }
.contact-nav > a { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 10px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; }
.contact-nav > a:hover, .site-footer a:hover { color: var(--ice); }
.contact-nav > a > span[aria-hidden] { color: var(--muted); }
.hosting-link { border-left: 1px solid var(--line); padding-left: 28px; }
.hosting-caption { color: var(--muted); font-size: 9px; }
.hosting-tooltip { position: absolute; top: 100%; right: 0; padding: 12px 14px; border: 1px solid var(--line); background: var(--bg); font-size: 10px; white-space: nowrap; opacity: 0; visibility: hidden; z-index: 5; }
.hosting-link:hover .hosting-tooltip, .hosting-link:focus .hosting-tooltip { opacity: 1; visibility: visible; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding-block: 5px 24px; }
.intro h1 { font-size: clamp(56px, 8.45vw, 164px); font-weight: 200; line-height: 1.03; letter-spacing: -.055em; white-space: nowrap; }
.title-slash { color: var(--ice); font-weight: 200; }
.profession { flex: 0 1 165px; max-width: 190px; margin-bottom: 8px; color: var(--muted); font-size: 10px; line-height: 1.9; letter-spacing: .17em; text-transform: uppercase; }
.photo-link { display: block; position: relative; background: #161819; }
.photo-link img { display: block; width: 100%; height: auto; }
.photo-open { position: absolute; right: 18px; bottom: 18px; display: flex; gap: 22px; align-items: center; padding: 11px 14px; background: rgba(10,12,14,.78); color: #f2f4f5; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: 0; transition: opacity .18s ease; }
.photo-open > span { font-size: 19px; line-height: 1; }
.photo-link:hover .photo-open, .photo-link:focus-visible .photo-open { opacity: 1; }
.gallery-section { display: grid; grid-template-columns: 1.55fr 10fr; column-gap: 28px; padding-top: 28px; padding-bottom: clamp(72px, 9vw, 180px); }
.gallery-heading { align-self: start; position: sticky; top: 32px; padding-top: 16px; }
.gallery-heading h2, .gallery-heading p { font-weight: 400; font-size: 10px; letter-spacing: .15em; line-height: 1.9; text-transform: uppercase; }
.gallery-heading p { color: var(--muted); }
.index-line { display: block; width: 1px; height: 100px; background: var(--line); margin-top: 28px; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; row-gap: clamp(50px, 7vw, 135px); align-items: start; }
.work { min-width: 0; }
.work:nth-child(4n + 2) { margin-top: 16%; }
.work:nth-child(4n + 3) { margin-top: 12%; }
.work-portrait { width: 80%; }
.work-portrait:nth-child(even) { justify-self: end; }
.work figcaption { display: flex; justify-content: space-between; align-items: center; padding-top: 13px; font-size: 9px; letter-spacing: .18em; color: var(--muted); }
.work figcaption span { font-size: 15px; }
.site-footer { border-top: 1px solid var(--line); padding-block: 24px 28px; font-size: 11px; color: var(--muted); }
.footer-top, .footer-bottom { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; }
.footer-top { color: #bdc1c4; }
.footer-top > a { padding-block: 10px; }
.footer-top > a span { margin-left: 20px; }
.footer-bottom { margin-top: 24px; font-size: 10px; line-height: 1.7; }
.footer-bottom p { max-width: 690px; }
.footer-bottom a { white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; }
.empty-state { min-height: 45vh; display: grid; align-items: center; color: var(--muted); }
body.viewer-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 18px 24px; border: 0; background: #0b0d0f; color: var(--text); }
.lightbox[open] { display: grid; grid-template-rows: 48px minmax(0, 1fr) 36px; }
.lightbox::backdrop { background: #0b0d0f; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; }
.lightbox-count { color: var(--muted); font-size: 12px; letter-spacing: .13em; }
.lightbox button { border: 1px solid transparent; background: transparent; min-width: 48px; min-height: 48px; }
.lightbox button:hover { border-color: var(--line); }
.lightbox-close { display: flex; align-items: center; gap: 22px; padding-inline: 12px; font-size: 12px; }
.lightbox-close span { font-size: 30px; line-height: 1; font-weight: 300; }
.lightbox-stage { min-height: 0; position: relative; display: grid; place-items: center; padding: 16px 62px; touch-action: pan-y pinch-zoom; }
.lightbox-image { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lightbox-arrow { position: absolute; top: 50%; transform: translateY(-50%); font-size: 25px; }
.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }
.lightbox-hint { align-self: end; text-align: center; font-size: 10px; color: var(--muted); }
.lightbox-hint span { margin-inline: 10px; }
.lightbox-arrow[hidden] { display: none; }
@media (min-width: 1800px) { .intro h1 { font-size: 150px; } }
@media (max-width: 1100px) {
    .contact-nav { gap: 4px 18px; }
    .hosting-link { padding-left: 18px; }
    .hosting-caption { display: none; }
    .intro { align-items: flex-start; flex-direction: column; gap: 16px; }
    .intro h1 { font-size: clamp(56px, 10.5vw, 120px); }
    .profession { flex-basis: auto; max-width: none; margin: 0; }
    .gallery-section { grid-template-columns: 1.5fr 10fr; gap: 20px; }
    .photo-grid { column-gap: 20px; }
    .gallery-heading h2, .gallery-heading p { font-size: 9px; letter-spacing: .08em; }
}
@media (max-width: 700px) {
    .site-header { min-height: auto; padding-block: 22px 12px; align-items: flex-start; flex-direction: column; gap: 8px; }
    .wordmark { padding-block: 0; font-size: 11px; }
    .contact-nav { width: 100%; justify-content: flex-start; gap: 0 20px; }
    .contact-nav > a { font-size: 9px; letter-spacing: .05em; gap: 4px; }
    .hosting-link { border-left: 0; padding-left: 0; }
    .intro { padding-block: 22px 23px; gap: 15px; }
    .intro h1 { font-size: 10.5vw; letter-spacing: -.065em; }
    .profession { font-size: 9px; letter-spacing: .12em; }
    .gallery-section { display: block; padding-top: 24px; }
    .gallery-heading { position: static; display: flex; gap: 18px; align-items: baseline; padding-top: 0; margin-bottom: 26px; }
    .index-line { display: none; }
    .photo-grid { column-gap: 16px; row-gap: 38px; }
    .work-portrait { width: 100%; }
    .work:nth-child(4n + 2) { margin-top: 25%; }
    .work:nth-child(4n + 3) { margin-top: 15%; }
    .photo-open { right: 8px; bottom: 8px; padding: 7px 9px; font-size: 8px; gap: 10px; }
    .footer-bottom { flex-direction: column; gap: 16px; }
    .lightbox { padding: 12px; }
    .lightbox-stage { padding: 12px 0 58px; }
    .lightbox-arrow { top: auto; bottom: 0; transform: none; }
    .lightbox-prev { left: calc(50% - 64px); }
    .lightbox-next { right: calc(50% - 64px); }
    .lightbox-hint { font-size: 9px; }
}
@media (max-width: 380px) {
    .contact-nav { gap: 0 12px; }
    .contact-nav > a { letter-spacing: 0; }
    .photo-grid { grid-template-columns: 1fr; row-gap: 32px; }
    .work:nth-child(n) { margin-top: 0; }
    .work-portrait { width: 82%; }
}
@media (hover: hover) and (pointer: fine) and (min-width: 701px) {
    .work .photo-link img { filter: saturate(.72); transition: filter .3s ease; }
    .work .photo-link:hover img, .work .photo-link:focus-visible img { filter: saturate(1); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}

/* Gallery navigation is separate from the contact navigation. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.gallery-filters { display: flex; gap: clamp(20px, 3vw, 48px); flex-wrap: wrap; margin-block: 4px 24px; border-top: 1px solid var(--line); }
.filter-link { position: relative; min-height: 48px; display: inline-flex; align-items: center; font-size: 12px; letter-spacing: .07em; color: #9ca2a6; }
.filter-link::after { content: ''; position: absolute; height: 1px; left: 0; right: 0; bottom: 0; background: #eeeae0; opacity: 0; box-shadow: 0 0 10px rgba(250, 244, 228, .4); }
.filter-link.is-active { color: #eeeae0; text-shadow: 0 0 18px rgba(250, 244, 228, .32); }
.filter-link.is-active::after { opacity: 1; }
.filter-link:hover { color: #eeeae0; }
[data-results] { transition: opacity .22s ease; }
[data-results].is-updating { opacity: .55; }
.filter-enter { animation: filter-in .45s ease both; }
@keyframes filter-in { from { opacity: .45; } to { opacity: 1; } }
.gallery-section { grid-template-columns: minmax(195px, 1.9fr) minmax(0, 9fr); gap: 38px; }
.print-note { margin-top: 64px; max-width: 220px; transition: opacity .9s ease, transform .9s ease; }
.print-note::before { content: ''; display: block; width: 34px; height: 1px; margin-bottom: 26px; background: #d5d2ca; box-shadow: 0 0 13px rgba(250, 244, 228, .28); }
.print-note h3 { margin: 0 0 24px; color: #eeeae0; font-size: 11px; font-weight: 500; line-height: 1.9; letter-spacing: .14em; text-shadow: 0 0 22px rgba(250, 244, 228, .23); }
.print-note p { margin-bottom: 18px; color: #b8b9b6; font-size: 14px; font-weight: 300; line-height: 1.85; letter-spacing: 0; text-transform: none; }
.print-note a { display: inline-flex; align-items: center; gap: 13px; min-height: 44px; margin-top: 8px; border-bottom: 1px solid #696b66; font-size: 12px; color: #eeeae0; }
.print-note a:hover, .print-note a:focus-visible { color: #fffdf6; text-shadow: 0 0 16px rgba(250, 244, 228, .4); }
.print-note.reveal-pending { opacity: 0; transform: translateY(14px); }
.print-note.reveal-pending:focus-within { opacity: 1; transform: none; }
.section-empty { grid-column: 1 / -1; min-height: 280px; padding-block: 60px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.photo-link { transition: box-shadow .32s ease; }
.photo-link:focus-visible { box-shadow: 0 0 0 1px rgba(245, 240, 224, .32), 0 0 22px rgba(245, 240, 224, .16), 0 0 48px rgba(245, 240, 224, .07); }
@media (hover: hover) and (pointer: fine) {
    .photo-link:hover { box-shadow: 0 0 0 1px rgba(245, 240, 224, .32), 0 0 22px rgba(245, 240, 224, .16), 0 0 48px rgba(245, 240, 224, .07); }
}
@media (max-width: 1100px) and (min-width: 701px) { .gallery-section { grid-template-columns: 180px minmax(0, 1fr); gap: 26px; } .print-note p { font-size: 13px; } }
@media (max-width: 700px) {
    .gallery-filters { gap: 0 22px; margin-block: 0 20px; }
    .filter-link { font-size: 11px; letter-spacing: 0; }
    .gallery-heading { display: block; }
    .gallery-meta { display: flex; align-items: baseline; gap: 18px; }
    .print-note { max-width: 310px; margin: 44px 0 52px; padding-left: 14px; }
    .print-note h3 { margin-bottom: 19px; }
    .print-note p { max-width: 270px; }
    .print-note::before { margin-bottom: 22px; }
}
@media (max-width: 380px) { .gallery-filters { gap: 0 16px; } .filter-link { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) {
    .filter-enter { animation: none; }
    .print-note.reveal-pending { opacity: 1; transform: none; }
    .print-note, [data-results], .photo-link { transition: none; }
}

/* Full-width panoramic cover */
.panorama-cover {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
    overflow: hidden;
    background: var(--bg);
}

.panorama-cover img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 1;
    object-fit: cover;
    object-position: center center;
}

/* Soft transition into graphite background */
.panorama-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(16,17,18,.38) 0%,
            rgba(16,17,18,.10) 12%,
            transparent 23%,
            transparent 75%,
            rgba(16,17,18,.16) 87%,
            rgba(16,17,18,.72) 100%
        ),
        linear-gradient(
            90deg,
            rgba(16,17,18,.50) 0%,
            rgba(16,17,18,.12) 5%,
            transparent 12%,
            transparent 88%,
            rgba(16,17,18,.12) 95%,
            rgba(16,17,18,.50) 100%
        );
}

.photo-link img {
    height: auto;
    object-fit: contain;
}

@media (max-width: 700px) {
    .panorama-cover {
        margin-bottom: 20px;
    }

    .panorama-cover img {
        aspect-ratio: 3 / 1;
        object-fit: cover;
        object-position: center center;
    }
}

.empty-all { display: inline-flex; min-height: 48px; align-items: center; margin-top: 20px; color: #eeeae0; text-decoration: underline; text-underline-offset: 6px; }
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px 32px; padding-bottom: 64px; color: var(--muted); font-size: 12px; }
.pagination a { display: inline-flex; align-items: center; min-height: 48px; color: var(--text); border-bottom: 1px solid var(--line); }
