:root {
  --paper: #f4f1ea;
  --paper-soft: #ebe6db;
  --ink: #171716;
  --muted: #6d6a63;
  --line: #d7d0c4;
  --charcoal: #2a2a28;
  --focus: #8b8172;
  --font-sans: Inter, "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 28px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  font-weight: 500;
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.84rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(300px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  min-height: calc(100vh - 72px);
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 72px) 44px;
}

.hero-text {
  max-width: 620px;
  padding-bottom: 8vh;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(3rem, 8vw, 7.4rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 4.1rem);
  line-height: 1.04;
}

.hero p:not(.eyebrow),
.intro p,
.process p,
.contact h2 {
  color: var(--charcoal);
}

.hero p:not(.eyebrow) {
  max-width: 460px;
  margin: 28px 0 0;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  align-self: stretch;
  min-height: 520px;
  overflow: hidden;
  background: var(--paper);
}

.hero-image img {
  width: auto;
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
}

.intro {
  padding: clamp(52px, 9vw, 112px) clamp(20px, 14vw, 220px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro p {
  max-width: 860px;
  margin: 0 auto;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(1.55rem, 3vw, 3rem);
  line-height: 1.18;
}

.gallery-section,
.process,
.contact {
  padding: clamp(56px, 9vw, 120px) clamp(20px, 5vw, 72px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 6vw, 80px);
}

.section-heading .eyebrow {
  margin: 0;
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 9vw, 128px);
}

.work {
  margin: 0;
}

.image-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(360px, 72vh, 820px);
  padding: 0;
  cursor: zoom-in;
  background: var(--paper);
  border: 0;
}

.image-button:focus-visible,
.close:focus-visible,
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.work img {
  width: auto;
  max-width: min(100%, 1120px);
  max-height: min(78vh, 820px);
  object-fit: contain;
  filter: saturate(0.82) contrast(0.96);
  transition: filter 180ms ease, transform 180ms ease;
}

.work:hover img {
  filter: saturate(0.95) contrast(1);
}

.work figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, 1120px);
  min-height: 40px;
  margin: 0 auto;
  padding-top: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.work figcaption span {
  color: var(--ink);
}

.work figcaption small {
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
}

.process {
  border-top: 1px solid var(--line);
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(260px, 0.7fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: center;
}

.process-grid figure {
  margin: 0;
}

.process-grid img {
  max-height: 76vh;
  object-fit: contain;
  filter: saturate(0.78);
  background: var(--paper);
}

.process-grid div {
  max-width: 560px;
}

.process-grid p {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.process-grid p + p {
  margin-top: 22px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(280px, 1fr);
  gap: clamp(24px, 6vw, 90px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.contact .eyebrow {
  margin: 0;
}

.contact h2 {
  max-width: 780px;
  font-size: clamp(2rem, 5vw, 5.8rem);
}

.contact-links {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  color: var(--muted);
}

.contact-links a {
  border-bottom: 1px solid currentColor;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.footer p {
  margin: 0;
}

.lightbox {
  width: min(92vw, 1180px);
  max-height: 90vh;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
}

.lightbox::backdrop {
  background: rgb(18 17 15 / 78%);
}

.lightbox img {
  max-height: 74vh;
  object-fit: contain;
  background: var(--paper-soft);
}

.lightbox p {
  margin: 12px 0 0;
  color: var(--muted);
}

.close {
  display: block;
  margin: 0 0 12px auto;
  padding: 0;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
  border: 0;
  font: inherit;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    min-height: 88px;
    padding: 18px 20px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 52px;
  }

  .hero-text {
    padding-bottom: 0;
  }

  .hero-image,
  .hero-image img {
    min-height: 0;
  }

  .hero-image img {
    width: 100%;
    max-height: none;
  }

  .section-heading,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery {
    gap: 56px;
  }

  .image-button {
    min-height: auto;
    padding: 0;
    background: transparent;
  }

  .work img {
    width: 100%;
    max-height: none;
  }

  .work figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .work figcaption small {
    text-align: left;
  }

  .process-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .contact-links {
    grid-column: auto;
  }
}
