:root { --sidebar: 255px; --ink: #151515; --muted: #777; font-family: Arial, Helvetica, sans-serif; color: var(--ink); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.site-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); padding: 52px 36px; overflow-y: auto; background: #fff; z-index: 10; }
.logo { display: block; margin-bottom: 68px; font-size: 20px; font-weight: 700; letter-spacing: .08em; }
.sidebar nav a { transition: opacity .2s ease; }
.sidebar nav a:hover, .sidebar nav a.active { opacity: .45; }
.nav-heading { display: block; margin: 30px 0 13px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sidebar ul { margin: 0; padding: 0; list-style: none; }
.sidebar li { margin: 0 0 8px; font-size: 12px; line-height: 1.3; }
.site-main { grid-column: 2; min-width: 0; }
.site-main footer { padding: 70px 5vw 36px; color: var(--muted); font-size: 11px; text-align: center; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-card { position: relative; aspect-ratio: 1.275; overflow: hidden; background: #f1f1f1; }
.project-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease, transform .5s ease; }
.project-card__hover { opacity: 0; }
.project-card:hover .project-card__normal { opacity: 0; transform: scale(1.02); }
.project-card:hover .project-card__hover { opacity: 1; transform: scale(1.02); }
.project-card span { position: absolute; inset: auto 18px 15px; z-index: 2; color: #fff; font-size: 13px; opacity: 0; transition: opacity .2s; text-shadow: 0 1px 5px #0008; }
.project-card:hover span { opacity: 1; }
.project { max-width: 1600px; margin: 0 auto; padding: 60px 4vw 0; }
.project-header { max-width: 760px; margin: 0 auto 55px; text-align: center; }
.project-header h1 { margin: 0 0 14px; font-size: clamp(25px, 3vw, 43px); font-weight: 400; }
.project-header p, .prose { color: #555; font-size: 15px; line-height: 1.7; }
.content-block { margin: 0 0 40px; }
.content-block--text { max-width: 760px; margin-right: auto; margin-left: auto; padding: 20px 0; }
.content-block--link { padding: 24px 0; text-align: center; }
.project-link a { display: inline-block; min-width: 130px; padding: 13px 24px; border: 1px solid var(--ink); font-size: 12px; letter-spacing: .04em; transition: background .2s, color .2s; }
.project-link a:hover, .project-link a:focus-visible { background: var(--ink); color: #fff; }
.single-image figure, .media-grid figure { margin: 0; }
.single-image img { width: 100%; height: auto; }
.media-grid { display: grid; gap: 8px; }
.media-grid__row { display: flex; flex-wrap: wrap; gap: 8px; }
.media-grid figure { position: relative; flex: var(--source-image-ratio, 1.5) 1 calc(var(--source-image-ratio, 1.5) * 260px); min-width: 0; overflow: hidden; }
.media-grid__row--fixed figure { flex-basis: 0; }
.media-grid figure::after { content: ""; display: block; padding-bottom: calc(100% / var(--source-image-ratio, 1.5)); }
.media-grid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-grid--natural figure { position: static; }
.media-grid--natural figure::after { display: none; }
.media-grid--natural img { position: static; height: auto; object-fit: contain; }
.project [data-preview-image] { cursor: zoom-in; }
body.preview-open { overflow: hidden; }
.image-viewer { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 42px 72px; border: 0; background: rgb(255 255 255 / 96%); color: var(--ink); }
.image-viewer::backdrop { background: rgb(255 255 255 / 94%); }
.image-viewer figure { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; margin: 0; }
.image-viewer img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 110px); object-fit: contain; }
.image-viewer figcaption { min-height: 22px; padding-top: 10px; color: var(--muted); font-size: 11px; text-align: center; }
.image-viewer button { position: fixed; z-index: 2; border: 0; background: transparent; color: inherit; cursor: pointer; }
.image-viewer__close { top: 18px; right: 24px; padding: 8px; font-size: 32px; font-weight: 200; line-height: 1; }
.image-viewer__previous, .image-viewer__next { top: 50%; padding: 18px; font-size: 25px; transform: translateY(-50%); }
.image-viewer__previous { left: 10px; }
.image-viewer__next { right: 10px; }
.image-viewer__count { position: fixed; right: 25px; bottom: 20px; color: var(--muted); font-size: 11px; }
.image-viewer--single .image-viewer__previous, .image-viewer--single .image-viewer__next, .image-viewer--single .image-viewer__count { display: none; }
.media-grid__row:not(.media-grid__row--fixed)::after { content: ""; flex: 1000 1 260px; }
figcaption { padding-top: 8px; color: var(--muted); font-size: 11px; }
.video-frame { position: relative; aspect-ratio: 16/9; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.back-to-top { display: block; margin: 70px auto 0; font-size: 11px; text-align: center; }
.contact, .empty-state { max-width: 680px; min-height: 70vh; margin: 0 auto; padding: 80px 35px; }
.contact h1 { font-size: 30px; font-weight: 400; }
.contact label { display: block; margin: 0 0 24px; font-size: 12px; }
.contact input, .contact textarea { display: block; width: 100%; margin-top: 8px; padding: 12px; border: 1px solid #ccc; border-radius: 0; font: inherit; }
.contact button { padding: 12px 28px; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; }
.notice { padding: 20px; background: #f3f3f3; }
.menu-toggle { display: none; }
@media (max-width: 900px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) {
    .site-shell { display: block; }
    .site-main { width: 100%; }
    .sidebar { width: min(85vw, 320px); padding: 70px 32px 35px; transform: translateX(-102%); transition: transform .25s ease; box-shadow: 3px 0 20px #0002; }
    body.menu-open .sidebar { transform: translateX(0); }
    .menu-toggle { position: fixed; top: 18px; right: 18px; z-index: 20; display: grid; gap: 4px; width: 40px; height: 40px; padding: 12px 9px; border: 0; background: #fffc; }
    .menu-toggle span:not(.sr-only) { display: block; height: 1px; background: var(--ink); }
    .project-grid { grid-template-columns: 1fr; }
    .media-grid__row { display: grid; grid-template-columns: 1fr; gap: 8px; }
    .media-grid figure { width: 100%; }
    .image-viewer { padding: 50px 15px 35px; }
    .image-viewer img { max-height: calc(100vh - 100px); }
    .image-viewer__previous, .image-viewer__next { top: auto; bottom: 5px; transform: none; }
    .project { padding: 70px 18px 0; }
    .project-card span { opacity: 1; }
}
