:root {
  --ink: #242424;
  --paper: #fff;
  --surface: #f3f4f1;
  --muted: #6d706b;
  --line: #d9dcd6;
  --moss: #58764e;
  --moss-dark: #3f5a38;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --header-height: 5.25rem;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 1rem; line-height: 1.6; }
body.modal-open { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
button, input, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--paper); padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 30; height: var(--header-height); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); color: var(--paper); border-bottom: 1px solid rgba(255,255,255,.24); background: rgba(36,36,36,.94); backdrop-filter: blur(14px); transition: transform .35s var(--ease), background .35s ease; }
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 1.2rem; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; }
.brand-mark { font: 500 1.95rem/1 var(--serif); letter-spacing: -.08em; }
.brand-name i { color: var(--moss); font-style: normal; padding: 0 .25rem; }
.navigation { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3.5rem); }
.navigation a { position: relative; text-decoration: none; font-size: .88rem; }
.navigation a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.45rem; height: 1px; background: var(--paper); transition: right .3s var(--ease); }
.navigation a:hover::after, .navigation a:focus-visible::after { right: 0; }
.menu-toggle { display: none; background: none; border: 0; padding: .5rem; }
.menu-toggle > span:not(.sr-only) { display: block; width: 1.5rem; height: 1px; margin: .35rem 0; background: currentColor; }

.section-dark { background: var(--ink); color: var(--paper); }
.section-light { background: var(--paper); color: var(--ink); }
.hero { min-height: 100svh; padding-top: var(--header-height); display: grid; grid-template-columns: minmax(20rem, .78fr) minmax(0, 1.6fr); background: var(--ink); color: var(--paper); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(3rem, 6vw, 7rem) var(--gutter); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
.hero h1 { font-size: clamp(3.2rem, 5.1vw, 6.2rem); line-height: .98; letter-spacing: -.045em; }
.hero-copy p { max-width: 34rem; margin: 2rem 0 2.4rem; color: #d1d3ce; font-size: clamp(1rem, 1.25vw, 1.18rem); }
.hero-image { min-height: calc(100svh - var(--header-height)); margin: 0; padding: 0; align-self: stretch; background: var(--ink); overflow: hidden; }
.hero-image img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; object-position: 52% center; transform: scale(1.04); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.5rem; min-height: 3.25rem; padding: .85rem 1.4rem; border: 1px solid var(--moss); border-radius: 0; background: transparent; color: var(--moss); text-decoration: none; cursor: pointer; transition: color .25s ease, background .25s ease, border-color .25s ease; }
.button:hover, .button:focus-visible { background: var(--moss); color: var(--paper); }
.button-outline { min-width: 12.5rem; }
.button-solid { background: var(--moss-dark); color: var(--paper); }

.work-section, .gallery-section { padding: clamp(5rem, 9vw, 9rem) var(--gutter); background: var(--surface); }
.section-heading, .gallery-bar { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2.5rem, 5vw, 5rem); }
.section-index { margin: 0 0 .55rem; color: var(--moss); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.section-heading h2, .gallery-bar h2, .about-section h2, .contact-section h2 { font-size: clamp(2.5rem, 5vw, 5.1rem); line-height: 1.05; letter-spacing: -.035em; }
.category-grid { display: grid; grid-template-columns: 1fr 1.65fr 1.35fr; grid-template-rows: auto auto; gap: clamp(1.25rem, 2.5vw, 2.5rem) clamp(1rem, 2vw, 2rem); align-items: end; }
.category { appearance: none; display: grid; gap: .8rem; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.category img { aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.94); transition: transform .65s var(--ease), filter .5s ease; }
.category > span { display: flex; justify-content: space-between; align-items: center; font: 400 clamp(1.05rem, 1.5vw, 1.45rem)/1.2 var(--serif); }
.category i { color: var(--moss); font-family: var(--sans); font-style: normal; transition: transform .3s var(--ease); }
.category:hover img, .category:focus-visible img { transform: scale(1.015); filter: saturate(1.08); }
.category:hover i, .category:focus-visible i { transform: translateX(.4rem); }
.category:focus-visible { outline: 2px solid var(--moss); outline-offset: .4rem; }
.category-tall img { aspect-ratio: 3 / 4; }
.category-wide img { aspect-ratio: 16 / 10; }
.category-feature img { aspect-ratio: 1 / 1; }
.category-landscape { grid-column: 1 / 2; }
.category-landscape img { aspect-ratio: 4 / 3; }
.category-square img { aspect-ratio: 1.2 / 1; }
.category-narrow img { aspect-ratio: 3 / 4; }

.gallery-section { padding-top: 1rem; }
.gallery-bar { align-items: flex-end; border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 6rem); margin-bottom: 1.5rem; scroll-margin-top: calc(var(--header-height) + 1rem); }
.filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem 1.25rem; }
.filter { border: 0; border-bottom: 1px solid transparent; background: none; padding: .25rem 0; color: var(--muted); cursor: pointer; font-size: .85rem; }
.filter:hover, .filter:focus-visible, .filter.is-active { color: var(--ink); border-color: var(--moss); }
.gallery-count { margin: 0 0 2rem; color: var(--muted); font-size: .8rem; }
.gallery { columns: 4 17rem; column-gap: 1rem; }
.gallery-item { position: relative; width: 100%; margin: 0 0 1rem; padding: 0; border: 0; background: #eceee9; cursor: zoom-in; break-inside: avoid; overflow: hidden; }
.gallery-item img { transition: transform .55s var(--ease), filter .4s ease; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.025); filter: brightness(.86); }
.gallery-item:focus-visible { outline: 3px solid var(--moss); outline-offset: -3px; }
.load-more { display: flex; margin: 2.5rem auto 0; color: var(--ink); }
.load-more[hidden] { display: none; }
.gallery-next { margin-top: clamp(3.5rem, 7vw, 6rem); padding-top: clamp(2.5rem, 4vw, 4rem); border-top: 1px solid var(--line); text-align: center; }
.gallery-next-title { margin: 0; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.filters-bottom { justify-content: center; margin-top: 1.4rem; }
.filters-bottom .filter { padding: .55rem .8rem; border: 1px solid var(--line); }
.filters-bottom .filter:hover, .filters-bottom .filter:focus-visible, .filters-bottom .filter.is-active { border-color: var(--moss); }

.about-section { min-height: 42rem; display: grid; grid-template-columns: minmax(19rem, .78fr) minmax(0, 1.5fr); align-items: center; }
.about-copy { padding: clamp(4rem, 8vw, 8rem) var(--gutter); }
.about-copy h2 { margin-bottom: 1.25rem; }
.about-tagline { max-width: 26rem; margin: 0; color: #cfd1cc; font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.55rem); font-style: italic; line-height: 1.45; }
.about-image { margin: 0; padding: 0; align-self: stretch; min-height: 34rem; background: var(--ink); overflow: hidden; }
.about-image img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; transform: scale(1.2); }
.contact-section { display: flex; min-height: 30rem; padding: 5rem var(--gutter); flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.contact-section h2 { max-width: 58rem; font-size: clamp(2.25rem, 4vw, 4.15rem); }
.contact-section .button { margin-top: 2.5rem; }
.button-dark { color: var(--moss-dark); }
.site-footer { min-height: 5.5rem; padding: 1rem var(--gutter); display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 1rem; background: var(--ink); color: #d8dad5; font-size: .76rem; }
.site-footer > :nth-child(2) { justify-self: center; }
.site-footer > :last-child { justify-self: end; }
.footer-link { border: 0; background: none; color: inherit; text-decoration: underline; cursor: pointer; }
.footer-legal { display: flex; align-items: center; gap: 1.25rem; }

dialog { border: 0; padding: 0; }
dialog::backdrop { background: rgba(0,0,0,.86); backdrop-filter: blur(6px); }
.icon-button { position: absolute; z-index: 2; width: 3rem; height: 3rem; border: 1px solid currentColor; border-radius: 50%; background: rgba(17,18,16,.72); color: var(--paper); cursor: pointer; font-size: 1.5rem; line-height: 1; }
.lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; background: transparent; color: var(--paper); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 3rem 6rem; max-width: min(82vw, 80rem); max-height: calc(100vh - 6rem); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 8rem); width: auto; margin: auto; object-fit: contain; }
.lightbox figcaption { padding-top: .75rem; text-align: center; color: #d7d9d4; font-size: .8rem; }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; }
.lightbox-next { right: 1.5rem; top: 50%; }
.contact-dialog, .legal-dialog { width: min(92vw, 60rem); max-height: 90vh; padding: clamp(2rem, 5vw, 5rem); background: var(--paper); color: var(--ink); overflow: auto; }
.dialog-close { position: fixed; top: max(6vh, 1rem); right: max(calc((100vw - min(92vw, 60rem))/2 + 1rem), 1rem); background: var(--ink); }
.dialog-intro h2, .legal-dialog h2 { font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1.05; }
.dialog-intro > p:last-child { color: var(--muted); }
.contact-dialog form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2.5rem; }
.contact-dialog label { display: grid; gap: .45rem; font-size: .82rem; }
.contact-dialog label span { color: var(--muted); }
.contact-dialog label:nth-of-type(4), .contact-dialog label:nth-of-type(5) { grid-column: 1 / -1; }
input, textarea { width: 100%; border: 0; border-bottom: 1px solid #aeb2aa; border-radius: 0; background: transparent; padding: .75rem 0; color: var(--ink); outline: none; }
textarea { border: 1px solid #aeb2aa; padding: .75rem; resize: vertical; }
input:focus, textarea:focus { border-color: var(--moss-dark); box-shadow: 0 1px 0 var(--moss-dark); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-dialog .button { justify-self: start; }
.form-status { align-self: center; margin: 0; color: var(--moss-dark); }
.privacy-hint { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .82rem; }
.privacy-hint a { color: var(--moss-dark); text-decoration: underline; text-underline-offset: .2em; }
.legal-dialog h3 { margin-top: 2rem; font-size: 1.5rem; }
.legal-dialog p { max-width: 50rem; }
.legal-note { margin-top: 2rem; padding: 1rem; border-left: 2px solid var(--moss); color: var(--muted); font-size: .85rem; }

.reveal { opacity: 0; transform: translateY(2rem); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-delay { transition-delay: .12s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  :root { --header-height: 4.5rem; }
  .brand-name { display: none; }
  .menu-toggle { display: block; color: var(--paper); }
  .navigation { position: fixed; inset: var(--header-height) 0 auto; display: grid; gap: 0; padding: 1rem var(--gutter) 1.5rem; background: var(--ink); border-bottom: 1px solid #393a37; transform: translateY(-130%); transition: transform .4s var(--ease); }
  .navigation.is-open { transform: none; }
  .navigation a { padding: .75rem 0; font-size: 1.1rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { min-height: 70svh; order: 2; }
  .hero-image { min-height: 54svh; order: 1; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .category-tall img, .category-feature img, .category-narrow img { aspect-ratio: 4 / 3; }
  .category-landscape { grid-column: auto; }
  .gallery-bar { align-items: flex-start; flex-direction: column; }
  .filters { justify-content: flex-start; }
  .filters-bottom { justify-content: center; }
  .about-section { grid-template-columns: 1fr; }
  .about-image { min-height: 50svh; }
}

@media (min-width: 901px) and (min-aspect-ratio: 16 / 10) {
  .hero-image img { transform: scale(1.16); }
}

@media (max-width: 620px) {
  .hero-copy { min-height: 60svh; }
  .hero-image { min-height: 46svh; }
  .category-grid { grid-template-columns: 1fr; }
  .category img, .category-tall img, .category-feature img, .category-narrow img { aspect-ratio: 4 / 3; }
  .site-footer { grid-template-columns: 1fr; text-align: center; padding-block: 1.5rem; }
  .site-footer > :nth-child(n) { justify-self: center; margin: 0; }
  .lightbox figure { margin: 4rem 1rem; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 1rem; }
  .contact-dialog form { grid-template-columns: 1fr; }
  .contact-dialog label:nth-of-type(n) { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
