@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  --paper: #ece9e1;
  --ink: #17261d;
  --muted: #686a61;
  --line: rgb(23 38 29 / 22%);
  --pad: clamp(1.25rem, 3vw, 3rem);
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 5rem; }
body { margin: 0; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 1.5rem var(--pad);
  color: white;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wordmark { font-size: 0.95rem; font-weight: 500; letter-spacing: 0.02em; }
nav { display: flex; gap: clamp(1.25rem, 3vw, 3rem); }
nav a, .scroll-cue, footer a { border-bottom: 1px solid transparent; transition: border-color 180ms ease; }
nav a:hover, .scroll-cue:hover, footer a:hover { border-color: currentColor; }

.hero { position: relative; min-height: 100svh; color: white; background: #384332; overflow: hidden; }
.hero > img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; animation: reveal 1.2s cubic-bezier(.2,.7,.2,1) both; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 18%), transparent 38%, rgb(8 13 9 / 55%)); }
.hero-copy { position: absolute; left: var(--pad); bottom: clamp(5.5rem, 12vh, 9rem); }
.kicker { margin: 0 0 1.25rem; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: "Instrument Serif", Georgia, serif; font-weight: 400; letter-spacing: -0.035em; }
h1 { max-width: 12ch; font-size: clamp(4rem, 10vw, 9.5rem); line-height: 0.78; }
h1 em { font-weight: 400; }
.discipline { margin: 2rem 0 0; font-size: clamp(0.8rem, 1.2vw, 1rem); letter-spacing: 0.02em; }
.scroll-cue { position: absolute; right: var(--pad); bottom: 2rem; display: flex; gap: 2rem; font-size: 0.75rem; text-transform: uppercase; }

.work { padding: clamp(6rem, 11vw, 11rem) var(--pad); }
.section-heading { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 2rem; align-items: end; margin-bottom: clamp(5rem, 10vw, 10rem); }
.section-heading .kicker { align-self: start; }
.section-heading h2 { max-width: 10ch; font-size: clamp(3.5rem, 7vw, 7.5rem); line-height: 0.9; }
.section-heading > p:last-child { max-width: 25rem; margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(3rem, 8vw, 9rem) clamp(1rem, 3vw, 3rem); align-items: start; }
.gallery-item { grid-column: span 4; margin: 0; border: 0; padding: 0; background: none; cursor: zoom-in; opacity: 0; transform: translateY(2rem); transition: opacity 700ms ease, transform 700ms ease; }
.gallery-item.visible { opacity: 1; transform: none; }
.gallery-item:nth-child(6n + 1) { grid-column: 1 / span 5; }
.gallery-item:nth-child(6n + 2) { grid-column: 8 / span 4; margin-top: 10vw; }
.gallery-item:nth-child(6n + 3) { grid-column: 3 / span 3; }
.gallery-item:nth-child(6n + 4) { grid-column: 7 / span 5; margin-top: -2vw; }
.gallery-item:nth-child(6n + 5) { grid-column: 1 / span 4; margin-top: 8vw; }
.gallery-item:nth-child(6n) { grid-column: 6 / span 4; }
.gallery-item img { width: 100%; height: auto; background: #d9d6ce; transition: transform 600ms cubic-bezier(.2,.7,.2,1), filter 300ms ease; }
.gallery-item:hover img { transform: scale(0.985); filter: brightness(0.94); }

.about { display: grid; min-height: 85svh; grid-template-columns: 1fr 2fr; gap: 3rem; padding: clamp(6rem, 11vw, 11rem) var(--pad); color: #ebe9df; background: var(--ink); }
.about-label { display: flex; flex-direction: column; justify-content: space-between; color: rgb(235 233 223 / 62%); font-size: 0.8rem; }
.about-copy { align-self: center; max-width: 63rem; }
.about-copy h2 { margin-bottom: clamp(3rem, 6vw, 6rem); font-size: clamp(3.4rem, 7vw, 7.5rem); line-height: 0.91; }
.about-copy > p { max-width: 40rem; margin-left: auto; font-size: clamp(1rem, 1.5vw, 1.25rem); font-weight: 300; line-height: 1.55; }
.contact { display: grid; max-width: 40rem; grid-template-columns: 1fr 2fr; gap: 0.75rem 2rem; margin: 4rem 0 0 auto; padding-top: 1.5rem; border-top: 1px solid rgb(235 233 223 / 28%); font-size: 0.85rem; }
.contact p { grid-row: span 2; margin: 0; color: rgb(235 233 223 / 62%); }
.contact a { display: flex; justify-content: space-between; border-bottom: 1px solid rgb(235 233 223 / 28%); padding-bottom: 0.6rem; }
.contact a:hover { border-color: currentColor; }

footer { display: flex; justify-content: space-between; padding: 1.5rem var(--pad); border-top: 1px solid var(--line); font-size: 0.72rem; text-transform: uppercase; }
footer p { margin: 0; }

.lightbox { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border: 0; padding: 3rem; color: white; background: rgb(8 12 9 / 94%); }
.lightbox[open] { display: grid; grid-template-columns: 3rem 1fr 3rem; place-items: center; }
.lightbox::backdrop { background: rgb(8 12 9 / 94%); }
.lightbox img { max-width: min(80vw, 75rem); max-height: 84vh; width: auto; height: auto; }
.lightbox button { border: 0; color: inherit; background: none; font: inherit; cursor: pointer; }
.lightbox-close { position: fixed; top: 1.5rem; right: 1.5rem; }
.lightbox-count { position: fixed; bottom: 1rem; left: 50%; font-size: 0.75rem; transform: translateX(-50%); }
.lightbox-nav { font-size: 1.5rem !important; }

@keyframes reveal { from { opacity: 0; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

@media (max-width: 720px) {
  .site-header { padding-top: 1.25rem; }
  .hero-copy { right: var(--pad); }
  h1 { font-size: clamp(3.8rem, 20vw, 6rem); }
  .discipline { max-width: 16rem; line-height: 1.5; }
  .scroll-cue { display: none; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading h2 { font-size: 4.3rem; }
  .section-heading > p:last-child { max-width: 19rem; }
  .gallery { gap: 4.5rem 1rem; }
  .gallery-item, .gallery-item:nth-child(n) { grid-column: span 7; margin-top: 0; }
  .gallery-item:nth-child(even) { grid-column: 6 / span 7; }
  .about { grid-template-columns: 1fr; }
  .about-label { flex-direction: row; }
  .about-copy h2 { font-size: 3.7rem; }
  .contact { grid-template-columns: 1fr; }
  .contact p { grid-row: auto; margin-bottom: 1rem; }
  .lightbox { padding: 2rem 0.75rem; }
  .lightbox[open] { grid-template-columns: 2rem 1fr 2rem; }
}
