@font-face {
  font-display: swap;
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  src: url("assets/fonts/dm-sans-400.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500 600;
  src: url("assets/fonts/dm-sans-600.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Noto Serif SC";
  font-style: normal;
  font-weight: 400;
  src: url("assets/fonts/noto-serif-sc-400.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Noto Serif SC";
  font-style: normal;
  font-weight: 500;
  src: url("assets/fonts/noto-serif-sc-500.woff2") format("woff2");
}

:root {
  --paper: #f2f0eb;
  --ink: #171816;
  --muted: #6c6c66;
  --line: #cfcdc6;
  --accent: #9b3e2b;
  --white: #fff;
  --gutter: clamp(20px, 4vw, 64px);
  --serif: "Noto Serif SC", serif;
  --sans: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
body.lightbox-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.site-header {
  align-items: center;
  color: var(--white);
  display: flex;
  height: 90px;
  justify-content: space-between;
  left: 0;
  padding: 0 var(--gutter);
  position: absolute;
  right: 0;
  top: 0;
  z-index: 5;
}
.wordmark { display: inline-flex; flex-direction: column; line-height: 1; }
.wordmark span { font-size: 23px; font-weight: 600; }
.wordmark small { font-size: 8px; margin-top: 5px; }
.header-actions { align-items: center; display: flex; gap: clamp(20px, 3vw, 42px); }
.site-nav { display: flex; gap: clamp(20px, 3vw, 48px); font-size: 13px; }
.site-nav a { position: relative; }
.site-nav a::after { background: currentColor; bottom: -7px; content: ""; height: 1px; left: 0; position: absolute; transform: scaleX(0); transform-origin: right; transition: transform .3s; width: 100%; }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.language-switch { border: 1px solid rgba(255, 255, 255, .55); display: flex; height: 29px; }
.language-switch button { background: transparent; border: 0; color: inherit; cursor: pointer; font-size: 9px; min-width: 30px; padding: 0 7px; }
.language-switch button[aria-pressed="true"] { background: var(--white); color: var(--ink); }
.language-switch button:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

.hero { color: var(--white); height: min(88vh, 900px); min-height: 620px; overflow: hidden; position: relative; }
.hero-media, .hero-shade { inset: 0; position: absolute; }
.hero-media { background: #2e302d; }
.hero-media img { height: 100%; object-fit: cover; opacity: 0; transform: scale(1.025); transition: opacity 1s ease, transform 7s ease; width: 100%; }
.hero-media img.loaded { opacity: 1; transform: scale(1); }
.hero-shade { background: linear-gradient(90deg, rgba(5, 8, 6, .54) 0%, rgba(5, 8, 6, .12) 58%, rgba(5, 8, 6, .18) 100%), linear-gradient(0deg, rgba(5, 8, 6, .46), transparent 42%); }
.hero-content { bottom: clamp(95px, 14vh, 150px); left: var(--gutter); max-width: 800px; position: absolute; z-index: 1; }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 2px; margin: 0 0 20px; }
.eyebrow.dark { color: var(--accent); }
.hero h1 { font-family: var(--serif); font-size: clamp(38px, 5.4vw, 76px); font-weight: 500; line-height: 1.32; margin: 0; }
.hero-intro { font-family: var(--serif); font-size: 14px; margin: 26px 0 0; }
.hero-scroll { align-items: center; bottom: 34px; display: flex; font-size: 11px; gap: 13px; left: var(--gutter); position: absolute; z-index: 1; }
.hero-scroll svg { height: 18px; width: 18px; }
.hero-caption { bottom: 36px; font-size: 11px; position: absolute; right: var(--gutter); z-index: 1; }

.works-section { padding: 110px var(--gutter) 130px; }
.section-heading { align-items: end; display: flex; justify-content: space-between; }
h2 { font-family: var(--serif); font-size: clamp(34px, 4vw, 56px); font-weight: 500; line-height: 1.2; margin: 0; }
.works-count { color: var(--muted); font-size: 12px; margin: 0 0 8px; }
.gallery-tools { align-items: center; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: flex; justify-content: space-between; margin: 46px 0 38px; min-height: 72px; }
.filter-group { display: flex; gap: 7px; }
.filter-button { background: transparent; border: 0; cursor: pointer; font-size: 13px; padding: 9px 14px; position: relative; }
.filter-button::after { background: var(--ink); bottom: 2px; content: ""; height: 1px; left: 14px; position: absolute; transform: scaleX(0); transition: transform .25s; width: calc(100% - 28px); }
.filter-button.active::after { transform: scaleX(1); }
.search-field { align-items: center; display: flex; min-width: min(280px, 38vw); position: relative; }
.search-field > svg { height: 17px; left: 0; position: absolute; width: 17px; }
.search-field input { background: transparent; border: 0; color: var(--ink); outline: 0; padding: 13px 34px 13px 27px; width: 100%; }
.search-field input::placeholder { color: #8a8983; }
.search-field button { background: transparent; border: 0; cursor: pointer; padding: 6px; position: absolute; right: 0; }
.search-field button svg { height: 15px; width: 15px; }
.gallery-grid { column-count: 3; column-gap: clamp(12px, 1.6vw, 26px); }
.photo-item { break-inside: avoid; cursor: zoom-in; margin: 0 0 clamp(26px, 3vw, 48px); opacity: 0; transform: translateY(16px); }
.photo-item.visible { animation: reveal .7s ease forwards; }
.photo-image-wrap { background: #ddd9d1; overflow: hidden; position: relative; }
.photo-image-wrap img { height: auto; transition: transform .7s cubic-bezier(.2,.7,.2,1); width: 100%; }
.photo-item:hover img { transform: scale(1.018); }
.photo-index { background: rgba(20, 20, 18, .68); color: var(--white); font-size: 9px; left: 10px; padding: 5px 7px; position: absolute; top: 10px; }
.photo-info { align-items: start; display: flex; gap: 12px; justify-content: space-between; padding-top: 13px; }
.photo-info h3 { font-family: var(--serif); font-size: 15px; font-weight: 500; margin: 0 0 5px; }
.photo-info p { color: var(--muted); font-size: 10px; margin: 0; }
.photo-info svg { height: 17px; margin-top: 2px; width: 17px; }
.gallery-status { align-items: center; color: var(--muted); display: flex; flex-direction: column; gap: 14px; justify-content: center; min-height: 240px; }
.gallery-status p { font-family: var(--serif); margin: 0; }
.gallery-status.error button { background: transparent; border: 0; border-bottom: 1px solid; cursor: pointer; padding: 4px 0; }
.loader { animation: spin 1s linear infinite; border: 1px solid var(--line); border-top-color: var(--ink); border-radius: 50%; height: 24px; width: 24px; }
.load-more { background: transparent; border: 1px solid var(--ink); cursor: pointer; display: block; margin: 28px auto 0; min-width: 150px; padding: 13px 24px; transition: background .25s, color .25s; }
.load-more:hover { background: var(--ink); color: var(--white); }

.about-section { align-items: center; background: #dadbd4; display: grid; grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.1fr); gap: clamp(50px, 9vw, 150px); padding: 120px max(var(--gutter), calc((100vw - 1360px) / 2)); }
.portrait-wrap { aspect-ratio: 4 / 5; background: #c5c6bf; max-width: 520px; position: relative; }
.portrait { height: 100%; object-fit: cover; width: 100%; }
.portrait-placeholder { align-items: center; color: #5c5d57; display: none; flex-direction: column; inset: 0; justify-content: center; position: absolute; }
.portrait-placeholder.show { display: flex; }
.portrait-placeholder span { border: 1px solid #898a83; border-radius: 50%; font-family: var(--serif); font-size: 56px; padding: 24px 35px 29px; }
.portrait-placeholder small { font-size: 8px; letter-spacing: 2px; margin-top: 20px; }
.about-copy { max-width: 610px; }
.about-copy h2 { margin-bottom: 30px; }
.about-copy p { color: #4f504b; font-family: var(--serif); font-size: 15px; line-height: 2; margin: 0 0 17px; }
.about-copy .about-lead { color: var(--ink); font-size: clamp(18px, 2vw, 24px); line-height: 1.8; }
.contact-link { align-items: center; border-bottom: 1px solid #8f908a; display: flex; font-size: 13px; justify-content: space-between; margin-top: 42px; padding: 0 0 14px; }
.contact-link svg { height: 18px; transition: transform .25s; width: 18px; }
.contact-link:hover svg { transform: translate(3px, -3px); }
.site-footer { align-items: center; background: var(--ink); color: #deddd7; display: flex; justify-content: space-between; min-height: 180px; padding: 45px var(--gutter); }
.site-footer p, .back-top { font-size: 10px; }
.footer-meta { display: flex; flex-direction: column; gap: 7px; }
.footer-meta p { margin: 0; }
.view-count { color: #989991; }
.view-count strong { color: #deddd7; font-weight: 500; }
.footer-legal { display: flex; font-size: 10px; gap: 22px; }
.footer-legal a, .back-top { border-bottom: 1px solid transparent; padding-bottom: 3px; }
.footer-legal a:hover, .back-top:hover { border-bottom-color: currentColor; }

.lightbox { background: rgba(13, 14, 12, .97); border: 0; color: var(--white); height: 100%; max-height: none; max-width: none; padding: 0; width: 100%; }
.lightbox::backdrop { background: rgba(13, 14, 12, .97); }
.lightbox-toolbar { position: fixed; right: 22px; top: 20px; z-index: 2; }
.icon-button { background: rgba(255,255,255,.08); border: 0; border-radius: 50%; color: white; cursor: pointer; height: 44px; padding: 12px; width: 44px; }
.icon-button svg { height: 100%; width: 100%; }
.lightbox-figure { display: flex; flex-direction: column; height: 100%; justify-content: center; margin: 0 auto; max-width: calc(100% - 170px); padding: 25px 0; width: max-content; }
.lightbox-figure > img { max-height: calc(100vh - 120px); max-width: 100%; object-fit: contain; }
.lightbox figcaption { align-items: center; display: flex; justify-content: space-between; padding-top: 14px; }
.lightbox h3 { font-family: var(--serif); font-size: 15px; font-weight: 500; margin: 0 0 4px; }
.lightbox figcaption p { color: #a9aaa3; font-size: 9px; margin: 0; }
.download-link { align-items: center; display: flex; font-size: 11px; gap: 8px; }
.download-link svg { height: 17px; width: 17px; }
.lightbox-nav { background: transparent; border: 0; color: white; cursor: pointer; padding: 16px; position: fixed; top: 50%; transform: translateY(-50%); }
.lightbox-nav svg { height: 30px; width: 30px; }
.lightbox-nav.previous { left: 18px; }
.lightbox-nav.next { right: 18px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

@media (max-width: 900px) {
  .gallery-grid { column-count: 2; }
  .about-section { gap: 50px; grid-template-columns: 1fr 1fr; }
  .lightbox-figure { max-width: calc(100% - 110px); }
}
@media (max-width: 640px) {
  .site-header { height: 72px; }
  .header-actions { gap: 16px; }
  .site-nav { gap: 18px; }
  .site-nav a:nth-child(2) { display: none; }
  .language-switch button { min-width: 27px; padding: 0 5px; }
  .hero { height: 82vh; min-height: 560px; }
  .hero h1 { font-size: 38px; }
  .hero-caption { display: none; }
  .works-section { padding-bottom: 90px; padding-top: 80px; }
  .section-heading { align-items: start; flex-direction: column; gap: 16px; }
  .gallery-tools { align-items: stretch; flex-direction: column; gap: 8px; padding: 14px 0; }
  .filter-group { justify-content: space-between; }
  .search-field { min-width: 100%; }
  .gallery-grid { column-count: 1; }
  .photo-item { margin-bottom: 34px; }
  .about-section { grid-template-columns: 1fr; padding-bottom: 85px; padding-top: 85px; }
  .portrait-wrap { max-width: none; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 25px; }
  .lightbox-figure { max-width: calc(100% - 28px); padding-bottom: 70px; }
  .lightbox-figure > img { max-height: calc(100vh - 180px); }
  .lightbox-nav { bottom: 14px; top: auto; transform: none; }
  .lightbox-nav.previous { left: 20px; }
  .lightbox-nav.next { right: 20px; }
  .lightbox figcaption { align-items: flex-start; gap: 15px; }
  .download-link span { display: none; }
}
