:root {
    --bg: #f8f8f5;
    --ink: #080808;
    --muted: #77736b;
    --line: #d8d5cf;
    --panel: #ffffff;
    --accent: #9d1c17;
    --font: "Geist Mono", "IBM Plex Mono", "Courier New", monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 10px;
    letter-spacing: 0;
    text-transform: uppercase;
    overflow-x: hidden;
}

body::selection {
    background: var(--ink);
    color: var(--bg);
}

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

button,
input,
textarea {
    font: inherit;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 1.6fr 1.15fr 1.05fr 1.55fr 1fr 1fr auto;
    gap: 24px;
    align-items: start;
    padding: 12px 24px;
    background: linear-gradient(180deg, rgba(248, 248, 245, .96), rgba(248, 248, 245, 0));
}

.brand,
.contact-block,
.social-links {
    display: grid;
    gap: 2px;
}

.site-header a,
.site-header span,
.site-header button,
.role-label {
    line-height: 1.05;
}

.site-header > *,
.site-footer > * {
    min-width: 0;
}

.active-link {
    width: fit-content;
    border-bottom: 1px solid currentColor;
}

main {
    min-height: 100vh;
}

.home-rail {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 18vh 0 16vh;
    overflow: hidden;
}

.rail-track {
    display: flex;
    align-items: center;
    gap: clamp(28px, 3.2vw, 44px);
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding: 0 5.2vw;
}

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

.rail-card {
    flex: 0 0 clamp(196px, 15.53vw, 246px);
    border: 0;
    padding: 0;
    display: grid;
    grid-template-rows: auto 24px;
    gap: 8px;
    overflow: visible;
    background: transparent;
    cursor: pointer;
}

.rail-card-image {
    display: block;
    aspect-ratio: 264 / 354;
    overflow: hidden;
    background: #ddd8d0;
}

.rail-card-image img,
.rail-card-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease, filter .45s ease;
}

.rail-card-title {
    display: -webkit-box;
    min-height: 24px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.15;
    color: var(--ink);
}

.rail-card:hover img,
.rail-card:hover video {
    transform: scale(1.04);
    filter: saturate(1.08) contrast(1.04);
}

.rail-next {
    position: absolute;
    right: 14px;
    top: 50%;
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.seo-intro {
    display: grid;
    grid-template-columns: minmax(190px, 18vw) minmax(0, 560px);
    gap: 4vw;
    padding: 0 24px 18vh;
    text-transform: none;
}

.seo-intro-copy {
    grid-column: 2;
    display: grid;
    gap: 10px;
}

.seo-intro .eyebrow,
.work-seo-copy h1 {
    margin: 0;
    font-size: 10px;
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
}

.seo-intro .eyebrow {
    align-self: start;
}

.seo-intro h1 {
    margin: 0;
    font-size: 12px;
    line-height: 1.12;
    font-weight: 600;
    text-transform: uppercase;
}

.seo-locations {
    margin: 0;
    color: var(--ink);
    font-size: 10px;
    line-height: 1.24;
    text-transform: uppercase;
}

.seo-intro-copy p:last-child,
.work-seo-copy p {
    margin: 0;
    max-width: 520px;
    color: var(--muted);
    line-height: 1.32;
}

.work-section {
    display: grid;
    gap: 18vh;
    padding: 4vh 24px 16vh;
}

.look {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(210px, 18vw) minmax(0, 1fr);
    gap: 4vw;
    align-items: center;
    scroll-margin-top: 90px;
}

.look-meta {
    align-self: center;
    display: grid;
    gap: 11px;
    max-width: 280px;
}

.look-meta h1 {
    margin: 0;
    font-size: clamp(14px, 1.4vw, 22px);
    line-height: 1;
    font-weight: 600;
    text-transform: uppercase;
}

.look-meta p {
    margin: 0;
    color: var(--muted);
    line-height: 1.35;
    text-transform: none;
}

.back-link {
    width: fit-content;
}

.photo-grid {
    display: grid;
    width: 100%;
    gap: clamp(10px, 1.2vw, 18px);
}

.photo-tile {
    position: relative;
    border: 0;
    padding: 0;
    background: #dedad1;
    overflow: hidden;
    cursor: zoom-in;
    min-height: 120px;
}

.photo-tile img,
.photo-tile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease, filter .5s ease;
}

.photo-tile span {
    position: absolute;
    left: 8px;
    bottom: 7px;
    color: var(--bg);
    mix-blend-mode: difference;
    pointer-events: none;
}

.photo-tile:hover img,
.photo-tile:hover video {
    transform: scale(1.035);
    filter: contrast(1.04);
}

.layout-3 .photo-grid {
    grid-template-columns: 1.25fr .85fr .85fr;
    grid-template-rows: repeat(2, minmax(210px, 31vw));
}

.layout-3 .photo-tile:first-child {
    grid-row: 1 / span 2;
}

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

.layout-5 .photo-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(3, minmax(150px, 14vw));
}

.layout-5 .photo-tile:first-child {
    grid-column: 1 / span 2;
    grid-row: 1 / span 3;
}

.layout-5 .photo-tile:nth-child(2) {
    grid-column: 3 / span 2;
    grid-row: 1 / span 2;
}

.layout-5 .photo-tile:nth-child(3) {
    grid-column: 5 / span 2;
    grid-row: 1 / span 1;
}

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

.layout-5 .photo-tile:nth-child(5) {
    grid-column: 5 / span 2;
    grid-row: 2 / span 2;
}

.layout-7 .photo-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(112px, 1fr);
    align-items: center;
    min-height: 52vh;
}

.layout-7 .photo-tile {
    aspect-ratio: 264 / 354;
}

.layout-7 .photo-tile:nth-child(2n) {
    transform: translateY(7vh);
}

.layout-7 .photo-tile:nth-child(3n) {
    transform: translateY(-5vh);
}

.project-look.layout-7,
.project-look.layout-9,
.project-look.layout-12 {
    grid-template-columns: minmax(150px, 12vw) minmax(0, 1fr);
    gap: 2.4vw;
    align-items: start;
}

.project-look.layout-7 .look-meta,
.project-look.layout-9 .look-meta,
.project-look.layout-12 .look-meta {
    position: sticky;
    top: 84px;
    align-self: start;
    max-width: 150px;
}

.project-look .look-meta h1 {
    font-size: 10px;
    line-height: 1.08;
    font-weight: 700;
}

.project-look.layout-1 {
    grid-template-columns: minmax(170px, 16vw) minmax(0, 1fr);
    gap: clamp(34px, 6vw, 92px);
    align-items: center;
    min-height: 76vh;
}

.project-look.layout-1 .look-meta {
    align-self: center;
    max-width: 220px;
}

.project-look.layout-1 .photo-grid {
    display: grid;
    justify-items: center;
}

.project-look.layout-7 .photo-grid,
.project-look.layout-9 .photo-grid,
.project-look.layout-12 .photo-grid {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: auto;
    align-items: start;
    column-gap: clamp(28px, 5.2vw, 88px);
    row-gap: clamp(86px, 13vw, 170px);
    min-height: 0;
}

.project-look.layout-7 .photo-tile,
.project-look.layout-9 .photo-tile,
.project-look.layout-12 .photo-tile {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 720 / 893;
    transform: none;
    overflow: visible;
    background: transparent;
}

.project-look.layout-7 .photo-tile img,
.project-look.layout-7 .photo-tile video,
.project-look.layout-9 .photo-tile img,
.project-look.layout-9 .photo-tile video,
.project-look.layout-12 .photo-tile img,
.project-look.layout-12 .photo-tile video {
    height: 100%;
    object-fit: contain;
}

.project-look.layout-7 .photo-tile:nth-child(12n + 1),
.project-look.layout-9 .photo-tile:nth-child(12n + 1),
.project-look.layout-12 .photo-tile:nth-child(12n + 1) {
    grid-column: 1 / span 5;
}

.project-look.layout-9 .photo-tile:first-child.is-video,
.project-look.layout-12 .photo-tile:first-child.is-video {
    grid-column: 1 / span 4;
    aspect-ratio: 9 / 16;
}

.project-look.layout-7 .photo-tile:nth-child(12n + 2),
.project-look.layout-9 .photo-tile:nth-child(12n + 2),
.project-look.layout-12 .photo-tile:nth-child(12n + 2) {
    grid-column: 8 / span 4;
    margin-top: 16vh;
}

.project-look.layout-7 .photo-tile:nth-child(12n + 3),
.project-look.layout-9 .photo-tile:nth-child(12n + 3),
.project-look.layout-12 .photo-tile:nth-child(12n + 3) {
    grid-column: 3 / span 4;
    margin-top: 4vh;
}

.project-look.layout-7 .photo-tile:nth-child(12n + 4),
.project-look.layout-9 .photo-tile:nth-child(12n + 4),
.project-look.layout-12 .photo-tile:nth-child(12n + 4) {
    grid-column: 8 / span 4;
    margin-top: -10vh;
}

.project-look.layout-7 .photo-tile:nth-child(12n + 5),
.project-look.layout-9 .photo-tile:nth-child(12n + 5),
.project-look.layout-12 .photo-tile:nth-child(12n + 5) {
    grid-column: 1 / span 3;
    margin-top: 8vh;
}

.project-look.layout-7 .photo-tile:nth-child(12n + 6),
.project-look.layout-9 .photo-tile:nth-child(12n + 6),
.project-look.layout-12 .photo-tile:nth-child(12n + 6) {
    grid-column: 6 / span 5;
    margin-top: -2vh;
}

.project-look.layout-9 .photo-tile:nth-child(12n + 7),
.project-look.layout-12 .photo-tile:nth-child(12n + 7) {
    grid-column: 2 / span 4;
    margin-top: 6vh;
}

.project-look.layout-9 .photo-tile:nth-child(12n + 8),
.project-look.layout-12 .photo-tile:nth-child(12n + 8) {
    grid-column: 8 / span 4;
    margin-top: 12vh;
}

.project-look.layout-9 .photo-tile:nth-child(12n + 9),
.project-look.layout-12 .photo-tile:nth-child(12n + 9) {
    grid-column: 4 / span 5;
    margin-top: -4vh;
}

.project-look.layout-12 .photo-tile:nth-child(12n + 10) {
    grid-column: 9 / span 3;
    margin-top: 10vh;
}

.project-look.layout-12 .photo-tile:nth-child(12n + 11) {
    grid-column: 2 / span 4;
    margin-top: -2vh;
}

.project-look.layout-12 .photo-tile:nth-child(12n) {
    grid-column: 7 / span 5;
    margin-top: 6vh;
}

.project-main {
    min-height: 100vh;
    padding: 14vh 24px 12vh;
}

.project-look {
    min-height: 74vh;
}

.project-copy {
    display: grid;
    grid-template-columns: minmax(210px, 18vw) minmax(0, 640px);
    gap: 4vw;
    margin-top: 10vh;
    padding-bottom: 12vh;
    text-transform: none;
}

.project-description,
.project-credits {
    grid-column: 2;
    display: grid;
    gap: 14px;
}

.project-description p,
.project-credits h2,
.project-credits dl,
.project-credits dd {
    margin: 0;
}

.project-description p {
    max-width: 460px;
    font-size: 10px;
    line-height: 1.24;
}

.project-credits {
    margin-top: 32px;
    text-transform: uppercase;
}

.project-credits h2 {
    font-size: 10px;
    font-weight: 700;
}

.project-credits dl {
    display: grid;
    gap: 7px;
}

.project-credits div {
    display: grid;
    grid-template-columns: minmax(150px, .42fr) minmax(0, 1fr);
    gap: 18px;
}

.project-credits dt {
    color: var(--muted);
}

.single-photo {
    display: block;
    width: min(52vw, 620px);
    justify-self: center;
}

.single-photo .photo-tile {
    width: 100%;
    min-height: 0;
    aspect-ratio: 264 / 354;
}

.single-video {
    width: min(34vw, calc((100vh - 190px) * 9 / 16), 430px);
}

.single-video .photo-tile {
    aspect-ratio: 9 / 16;
    background: #050505;
}

.single-video .photo-tile video {
    object-fit: cover;
}

.about-body {
    min-height: 100vh;
}

.about-body .site-header {
    grid-template-columns: 199px 155px 150px 232px 202px 1fr 40px;
    gap: 24px;
}

.about-footer {
    grid-template-columns: 186px 182px 1fr;
}

.about-main {
    position: relative;
    min-height: 100vh;
    padding: 0;
}

.about-index {
    position: absolute;
    left: 22px;
    z-index: 3;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.about-index {
    top: calc(180px + clamp(451px, 35.2vw, 508px));
    font-size: 10px;
    font-weight: 600;
}

.about-heading {
    position: absolute;
    left: calc(50vw - 200px);
    top: calc(154px + clamp(451px, 35.2vw, 508px));
    width: clamp(339px, 28.05vw, 404px);
    margin: 0;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
}

.about-composition {
    position: relative;
    min-height: 100vh;
    width: 100%;
    margin: 0;
}

.about-portrait {
    position: relative;
    position: absolute;
    left: calc(50vw - 199px);
    top: 120px;
    width: clamp(354px, 27.65vw, 398px);
    height: auto;
    aspect-ratio: 398 / 508;
    margin: 0;
    overflow: hidden;
    background: #ddd8d0;
    transform: rotate(0deg) scale(1);
    transform-origin: center;
    transition: transform .38s ease-in-out;
}

.about-portrait:hover,
.about-portrait.is-tilted {
    transform: rotate(7deg) scale(1);
}

.about-portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .18s ease-in-out;
}

.about-portrait img.is-active {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .about-portrait {
        transition: none;
    }

    .about-portrait img {
        transition: none;
    }

    .about-portrait:hover,
    .about-portrait.is-tilted {
        transform: none;
    }
}

.about-composition p {
    position: absolute;
    left: calc(50vw - 200px);
    top: calc(180px + clamp(451px, 35.2vw, 508px));
    width: clamp(248px, 20.8vw, 300px);
    margin: 0;
    line-height: 1;
    text-transform: none;
}

.about-contact {
    position: absolute;
    left: calc(50vw + 130px);
    top: calc(180px + clamp(451px, 35.2vw, 508px));
    display: grid;
    gap: 7px;
    width: 160px;
    line-height: 1;
    text-transform: uppercase;
}

.about-contact span {
    color: var(--muted);
}

.about-contact a {
    width: fit-content;
    border-bottom: 1px solid transparent;
}

.about-contact a:hover {
    border-color: currentColor;
}

.work-page {
    background: #fbfbf8;
    height: 100vh;
    overflow: hidden;
}

.work-main {
    position: fixed;
    inset: 0;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16vh clamp(24px, 4.8vw, 72px) 0;
}

.work-index {
    margin-bottom: 12vh;
    font-weight: 700;
}

.work-seo-copy {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(18px, 2vw, 34px);
    margin: 0 0 clamp(130px, 22vh, 240px);
    text-transform: none;
}

.work-seo-copy h1,
.work-seo-copy p {
    grid-column: 3 / span 4;
    max-width: 540px;
}

.work-gallery {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: auto;
    column-gap: clamp(18px, 2vw, 34px);
    row-gap: clamp(140px, 24vh, 260px);
    align-items: start;
    max-width: 1680px;
    margin: 0 auto;
}

.work-card {
    display: grid;
    gap: 8px;
    align-self: start;
}

.work-card p,
.work-about p {
    margin: 0;
    max-width: 36em;
    line-height: 1.08;
}

.work-badge {
    color: var(--accent);
    line-height: 1;
}

.work-media {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    overflow: visible;
}

.work-media img,
.work-media video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: var(--face-x, 50%) var(--face-y, 50%);
    filter: saturate(.9) contrast(1.02);
    transition: filter .55s ease;
}

.work-media:hover img,
.work-media:hover video,
.work-media:focus-visible img,
.work-media:focus-visible video {
    filter: saturate(1.06) contrast(1.06);
}

.work-media:focus-visible {
    outline: 1px solid var(--ink);
    outline-offset: 3px;
}

.work-card-1 {
    grid-column: 2 / span 5;
    grid-row: auto;
}

.work-card-1 .work-media {
    aspect-ratio: 4 / 5.15;
}

.work-card-1 .work-media.is-video,
.work-media.is-video {
    aspect-ratio: 9 / 16;
    background: #050505;
}

.work-card-2 {
    grid-column: 9 / span 3;
    grid-row: auto;
    margin-top: clamp(90px, 17vh, 180px);
}

.work-card-2 .work-media {
    aspect-ratio: 9 / 14;
}

.work-card-3 {
    grid-column: 5 / span 4;
    grid-row: auto;
    margin-top: clamp(20px, 5vh, 70px);
}

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

.work-card-4 {
    grid-column: 1 / span 4;
    grid-row: auto;
    margin-top: clamp(20px, 6vh, 80px);
}

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

.work-card-5 {
    grid-column: 8 / span 4;
    grid-row: auto;
}

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

.work-card-6 {
    grid-column: 3 / span 3;
    grid-row: auto;
    margin-top: clamp(80px, 14vh, 150px);
}

.work-card-6 .work-media {
    aspect-ratio: 5 / 4;
}

.work-card-7 {
    grid-column: 7 / span 5;
    grid-row: auto;
    margin-top: clamp(40px, 8vh, 110px);
}

.work-card-7 .work-media {
    aspect-ratio: 4 / 5.25;
}

.work-card-8 {
    grid-column: 2 / span 3;
    grid-row: auto;
    margin-top: clamp(70px, 12vh, 140px);
}

.work-card-8 .work-media {
    aspect-ratio: 3 / 5.4;
}

.work-about {
    grid-column: 7 / span 4;
    grid-row: auto;
    align-self: start;
    padding-top: 0;
    text-transform: none;
}

.work-card-9 {
    grid-column: 4 / span 5;
    grid-row: auto;
    margin-top: clamp(40px, 8vh, 100px);
}

.work-card-9 .work-media {
    aspect-ratio: 16 / 8.4;
}

.work-card-10 {
    grid-column: 9 / span 3;
    grid-row: auto;
    margin-top: clamp(90px, 16vh, 180px);
}

.work-card-10 .work-media {
    aspect-ratio: 5 / 4.75;
}

.work-card-11 {
    grid-column: 2 / span 6;
    grid-row: auto;
}

.work-card-11 .work-media {
    aspect-ratio: 16 / 7.5;
}

.work-card .work-media {
    aspect-ratio: auto !important;
}

.work-page .site-footer {
    position: static;
    display: grid;
    grid-template-columns: 1.4fr 1.4fr 2fr .6fr .6fr;
    gap: 24px;
    margin-top: 28vh;
    padding: 0 0 14px;
    pointer-events: auto;
}

.work-page .site-footer a {
    justify-self: end;
    pointer-events: auto;
}

.site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1.1fr .7fr 2fr .7fr;
    gap: 24px;
    padding: 10px 24px;
    pointer-events: none;
}

.site-footer a {
    justify-self: end;
    pointer-events: auto;
}

.site-footer .footer-credit {
    justify-self: start;
}

.footer-action {
    justify-self: end;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    pointer-events: auto;
    text-transform: uppercase;
}

.language-selector {
    position: relative;
    z-index: 25;
    display: grid;
    justify-items: end;
    gap: 4px;
    justify-self: end;
    align-self: start;
}

.language-toggle {
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: 10px;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.language-toggle:hover {
    color: var(--muted);
}

.language-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    display: none;
    min-width: 34px;
    border: 1px solid currentColor;
    background: rgba(248, 248, 245, .84);
    backdrop-filter: blur(8px);
}

.language-selector.is-open .language-menu {
    display: grid;
}

.language-menu a {
    display: grid;
    place-items: center;
    height: 24px;
    padding: 0 7px;
}

.language-menu a:hover,
.language-menu a.is-active {
    background: var(--ink);
    color: var(--bg);
}

.empty-state {
    min-height: 50vh;
    display: grid;
    place-items: center;
    color: var(--muted);
}

.lightbox {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border: 0;
    margin: 0;
    padding: clamp(56px, 8vh, 76px) 0 clamp(22px, 3vh, 34px);
    background: var(--bg);
    color: var(--ink);
    overflow: hidden;
}

.lightbox[open] {
    display: grid;
    place-items: center;
}

.lightbox::backdrop {
    background: var(--bg);
}

.lightbox-frame {
    width: 100%;
    height: 100%;
    margin: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 16px;
    overflow: hidden;
}

.lightbox-gallery {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    gap: clamp(28px, 6vw, 88px);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    padding: 0 max(22px, calc((100vw - min(70vw, 760px)) / 2));
    scroll-padding-inline: 50%;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.lightbox-gallery::-webkit-scrollbar {
    display: none;
}

.lightbox-slide {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 min(70vw, 760px);
    height: 100%;
    min-width: 0;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    opacity: .26;
    transform: scale(.84);
    transition: opacity .22s ease, transform .22s ease;
    scroll-snap-align: center;
    border-radius: 0;
}

.lightbox-slide.is-active {
    cursor: default;
    opacity: 1;
    transform: scale(1);
}

.lightbox-slide img,
.lightbox-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lightbox figcaption {
    width: min(760px, calc(100vw - 44px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: var(--ink);
    line-height: 1.15;
    text-transform: uppercase;
}

.lightbox-close {
    appearance: none;
    -webkit-appearance: none;
    position: fixed;
    top: clamp(18px, 2.4vw, 26px);
    right: clamp(18px, 2.4vw, 26px);
    z-index: 2;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: 10px;
    line-height: 1;
    text-transform: uppercase;
    border-radius: 0;
    box-shadow: none;
    outline: 0;
}

.lightbox-nav {
    appearance: none;
    -webkit-appearance: none;
    position: fixed;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    border: 0;
    padding: 16px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 0;
    outline: 0;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lightbox-close:focus-visible,
.lightbox-nav:focus-visible,
.lightbox-slide:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 5px;
}

.lightbox-prev {
    left: clamp(6px, 2vw, 24px);
}

.lightbox-next {
    right: clamp(6px, 2vw, 24px);
}

.admin-body {
    min-height: 100vh;
    background: #efeee9;
    font-size: 12px;
    text-transform: none;
}

.admin-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(239, 238, 233, .94);
    text-transform: uppercase;
}

.admin-header form {
    justify-self: end;
}

.admin-header button,
.danger-form button,
.delete-row button {
    border: 0;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
}

.admin-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 70px;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(220px, 300px) 1fr;
    gap: 18px;
    margin-top: 18px;
}

.admin-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 18px;
}

.login-panel {
    width: min(420px, 100%);
}

.panel-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.panel-heading h1,
.login-panel h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--muted);
    text-transform: uppercase;
}

.admin-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.admin-form label,
.login-panel label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    text-transform: uppercase;
}

.admin-form input,
.admin-form textarea,
.login-panel input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 11px;
    background: #fbfbf8;
    color: var(--ink);
    text-transform: none;
}

.wide {
    grid-column: 1 / -1;
}

.button {
    width: fit-content;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--bg);
    padding: 11px 16px;
    cursor: pointer;
    text-transform: uppercase;
}

.button.secondary {
    display: inline-grid;
    margin-bottom: 12px;
    background: transparent;
    color: var(--ink);
}

.layout-picker {
    display: flex;
    gap: 10px;
    margin: 0;
    border: 1px solid var(--line);
    padding: 12px;
}

.layout-picker legend {
    padding: 0 6px;
    color: var(--muted);
    text-transform: uppercase;
}

.layout-picker label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--ink);
}

.file-zone {
    border: 1px dashed var(--line);
    padding: 14px;
}

.check {
    display: flex !important;
    align-items: center;
    gap: 10px !important;
}

.check input {
    width: auto;
}

.look-list {
    display: grid;
    gap: 8px;
}

.look-list a {
    display: grid;
    gap: 3px;
    padding: 11px;
    border: 1px solid var(--line);
}

.look-list a.active {
    border-color: var(--ink);
    background: #f7f6f1;
}

.look-list small {
    color: var(--muted);
    text-transform: uppercase;
}

.image-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.image-admin-grid figure {
    margin: 0;
    display: grid;
    gap: 8px;
}

.image-admin-grid img,
.image-admin-grid video {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: #ddd8d0;
}

.delete-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.danger-form {
    margin-top: 18px;
}

.notice {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: #fff;
}

.notice.success {
    border-color: #9aad91;
}

.notice.error {
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 900px) {
    .site-header {
        position: static;
        grid-template-columns: minmax(0, 1fr) max-content;
        gap: 10px 28px;
        padding: 14px;
        background: var(--bg);
    }

    .site-header .brand {
        grid-column: 1;
        grid-row: 1 / span 4;
    }

    .site-header > a:not(.brand):not(.contact-block),
    .site-header > .active-link,
    .site-header > .social-links,
    .site-header > .language-selector {
        grid-column: 2;
        justify-self: start;
    }

    .site-header a,
    .site-header span,
    .site-header button,
    .role-label,
    .contact-block,
    .social-links {
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .contact-block,
    .role-label {
        display: none;
    }

    .role-label {
        max-width: 100%;
    }

    .language-selector {
        justify-items: start;
        gap: 4px;
    }

    .language-toggle {
        width: 34px;
        height: 24px;
        border: 1px solid currentColor;
        background: rgba(248, 248, 245, .72);
        backdrop-filter: blur(8px);
    }

    .language-toggle:hover {
        background: var(--ink);
        color: var(--bg);
    }

    .language-menu {
        right: auto;
        left: 0;
    }

    .home-rail {
        min-height: 64vh;
        padding: 7vh 0 8vh;
    }

    .rail-track {
        gap: 28px;
        padding: 0 26px;
    }

    .rail-card {
        flex-basis: min(64vw, 250px);
    }

    .seo-intro,
    .work-seo-copy {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .seo-intro {
        padding-bottom: 10vh;
    }

    .seo-intro-copy,
    .seo-intro-copy p,
    .work-seo-copy,
    .work-seo-copy h1,
    .work-seo-copy p {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .seo-locations {
        overflow-wrap: anywhere;
        word-break: break-word;
        white-space: normal;
    }

    .seo-intro-copy p:last-child,
    .work-seo-copy p {
        overflow-wrap: break-word;
        word-break: normal;
    }

    .seo-intro-copy,
    .work-seo-copy h1,
    .work-seo-copy p {
        grid-column: auto;
    }

    .look {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .layout-1 .photo-grid,
    .layout-3 .photo-grid,
    .layout-5 .photo-grid,
    .layout-7 .photo-grid,
    .layout-9 .photo-grid,
    .layout-12 .photo-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-flow: row;
        grid-auto-columns: auto;
        min-height: auto;
    }

    .layout-1 .photo-tile,
    .layout-3 .photo-tile,
    .layout-5 .photo-tile,
    .layout-7 .photo-tile,
    .layout-9 .photo-tile,
    .layout-12 .photo-tile {
        grid-column: auto !important;
        grid-row: auto !important;
        transform: none !important;
        aspect-ratio: 4 / 5;
    }

    .project-look.layout-1,
    .project-look.layout-7,
    .project-look.layout-9,
    .project-look.layout-12 {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .project-look.layout-1 .look-meta,
    .project-look.layout-7 .look-meta,
    .project-look.layout-9 .look-meta,
    .project-look.layout-12 .look-meta {
        position: static;
    }

    .project-look.layout-7 .photo-grid,
    .project-look.layout-9 .photo-grid,
    .project-look.layout-12 .photo-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-rows: auto;
        min-height: auto;
    }

    .project-look.layout-7 .photo-tile,
    .project-look.layout-9 .photo-tile,
    .project-look.layout-12 .photo-tile {
        grid-column: auto !important;
        grid-row: auto !important;
        height: auto;
        aspect-ratio: 4 / 5;
    }

    .project-look.layout-9 .photo-tile:first-child.is-video,
    .project-look.layout-12 .photo-tile:first-child.is-video {
        aspect-ratio: 9 / 16;
    }

    .project-main {
        padding: 8vh 14px 10vh;
    }

    .project-copy {
        grid-template-columns: 1fr;
        gap: 28px;
        margin: 42px 0 0;
        padding-bottom: 0;
    }

    .project-description,
    .project-credits {
        grid-column: auto;
    }

    .project-credits div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .single-photo {
        width: min(100%, 520px);
        justify-self: start;
    }

    .single-video {
        width: min(100%, 390px);
    }

    .single-video .photo-tile {
        aspect-ratio: 9 / 16;
    }

    .site-footer {
        position: static;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 24px 14px;
        pointer-events: auto;
    }

    .site-footer a,
    .site-footer .footer-credit {
        justify-self: start;
    }

    .site-footer .footer-credit {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .work-page {
        height: auto;
        overflow: auto;
    }

    .work-main {
        position: relative;
        inset: auto;
        min-height: auto;
        overflow: visible;
        padding: 10vh 14px 12vh;
    }

    .work-index {
        margin-bottom: 56px;
    }

    .work-seo-copy {
        margin-bottom: 96px;
    }

    .work-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 96px;
        width: 100%;
        max-width: none;
        overflow: hidden;
    }

    .work-card,
    .work-about {
        grid-column: auto !important;
        grid-row: auto !important;
        margin-top: 0;
        width: 100%;
    }

    .work-card:nth-of-type(3n + 2) {
        width: 74%;
        justify-self: end;
    }

    .work-card:nth-of-type(3n) {
        width: 84%;
        justify-self: start;
    }

    .work-card .work-media {
        aspect-ratio: auto !important;
    }

    .work-card .work-media.is-video {
        aspect-ratio: auto !important;
    }

    .work-card p,
    .work-about p {
        max-width: none;
        overflow-wrap: anywhere;
    }

    .work-about {
        grid-column: 1 / -1 !important;
        padding-top: 4vh;
    }

    .work-page .site-footer {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 14vh;
        padding: 0;
    }

    .work-page .site-footer a {
        justify-self: start;
    }

    .lightbox {
        padding: 56px 0 18px;
    }

    .lightbox[open] {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr);
    }

    .lightbox-frame {
        grid-column: auto;
        grid-row: auto;
    }

    .lightbox-gallery {
        gap: 16px;
        padding-inline: 11vw;
    }

    .lightbox-slide {
        flex-basis: 72vw;
        transform: scale(.88);
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 12px;
    }

    .lightbox-prev {
        left: 2px;
    }

    .lightbox-next {
        right: 2px;
    }

    .lightbox figcaption {
        display: grid;
        gap: 4px;
    }

    .work-section,
    .about-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .about-body .site-header {
        position: static;
        width: auto;
        grid-template-columns: minmax(0, 1fr) max-content;
        gap: 10px 28px;
        padding: 14px;
        background: var(--bg);
        transform: none;
    }

    .about-body .site-footer {
        position: static;
        width: auto;
        padding: 24px 14px;
        transform: none;
    }

    .about-main {
        display: block;
        width: auto;
        min-height: auto;
        padding: 12vh 14px 8vh;
    }

    .about-composition {
        display: grid;
        width: 100%;
        min-height: auto;
        gap: 24px;
    }

    .about-portrait,
    .about-index,
    .about-heading,
    .about-composition p,
    .about-contact {
        position: static;
        left: auto;
        top: auto;
        width: auto;
        margin: 0;
    }

    .about-portrait {
        width: min(100%, 430px);
        justify-self: center;
    }

    .about-index {
        font-size: 10px;
        font-weight: 600;
        order: -1;
    }

    .about-heading {
        font-size: 10px;
        line-height: 1.08;
    }

    .about-composition p {
        max-width: none;
        line-height: 1.14;
    }

    .about-contact {
        gap: 6px;
        line-height: 1.15;
    }

    .admin-grid,
    .admin-form {
        grid-template-columns: 1fr;
    }

    .admin-header {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .admin-header form {
        justify-self: start;
    }
}
