:root {
  color-scheme: light;
  --paper: #f7f7f1;
  --gallery: #eeefe7;
  --ink: #1d2b22;
  --muted: #4d5b50;
  --forest: #253a2c;
  --line: #cbd1c5;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
body:has(.lightbox[open]) { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
figure, h1, h2, p { margin: 0; }
a { color: inherit; }
button, summary { font: inherit; }
:focus-visible { outline: 2px solid #517e42; outline-offset: 5px; }
section[id] { scroll-margin-top: 1.5rem; }

.shell {
  width: min(calc(100% - 2 * var(--gutter)), 79rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 2;
  top: .6rem;
  left: .6rem;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--ink);
  padding: .7rem 1rem;
}
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 650;
  font-size: 1.42rem;
  letter-spacing: -.06em;
}
.wordmark-sign { flex: 0 0 auto; }
nav { display: flex; align-items: center; gap: clamp(1rem, 3.6vw, 3.5rem); }
nav a, .site-footer a:last-child {
  font-size: .91rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
nav a:hover, .site-footer a:last-child:hover { text-decoration: underline; text-underline-offset: .3em; }

.hero {
  padding-block: clamp(2.6rem, 6vw, 6rem) clamp(3.4rem, 7vw, 6.6rem);
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.eyebrow {
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
h1, h2 {
  font-weight: 580;
  letter-spacing: -.066em;
  line-height: .99;
}
h1 {
  margin-block: 1.15rem 1.3rem;
  font-size: clamp(2.6rem, 6.15vw, 5.9rem);
}
h2 { font-size: clamp(2.5rem, 5.25vw, 4.7rem); margin-top: .45rem; }
.hero-intro, .section-intro, .studio-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.55;
}
.hero-intro { margin-bottom: 1.7rem; }
.hero-image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 50%;
  background: var(--gallery);
}
figcaption {
  color: var(--muted);
  font-size: .82rem;
  margin-top: .6rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  min-height: 2.9rem;
  padding: .65rem 1.05rem;
  font-weight: 650;
  font-size: .9rem;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1.35;
  cursor: pointer;
}
.button-primary { background: var(--forest); color: white; }
.button-primary:hover { background: #365440; }
.button-outline { border-color: var(--forest); background: transparent; color: var(--forest); }
.button-outline:hover { background: #e3e8dd; }

.section-projects { background: var(--gallery); padding-block: clamp(3.4rem, 6vw, 6rem); }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 3rem;
  margin-bottom: 1.85rem;
}
.section-intro { max-width: 34ch; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.65rem, 1.55vw, 1.45rem); }
.gallery-card {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #dde2d7;
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .22s ease-out;
}
.gallery-card:hover img { transform: scale(1.025); }
.card-open {
  position: absolute;
  bottom: .7rem;
  right: .7rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: var(--paper);
  color: var(--forest);
  font-size: 1.14rem;
  opacity: 0;
  transition: opacity .17s ease-out;
}
.gallery-card:hover .card-open, .gallery-card:focus-visible .card-open { opacity: 1; }
.more-projects { margin-top: 1.65rem; }
.more-projects summary { list-style: none; }
.more-projects summary::-webkit-details-marker { display: none; }
.more-projects .gallery-grid { margin-top: 1.65rem; }
.show-less, .more-projects[open] .show-more { display: none; }
.more-projects[open] .show-less { display: inline; }
.summary-mark::before { content: "+"; font-size: 1.15em; }
.more-projects[open] .summary-mark::before { content: "−"; }

.studio {
  padding-block: clamp(3.5rem, 7vw, 7rem);
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.studio-copy > p:not(.eyebrow) { margin-top: .95rem; max-width: 38ch; }
.studio-photos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.75rem, 1.65vw, 1.6rem); }
.studio-photos img { aspect-ratio: 1.12; object-fit: cover; background: var(--gallery); }

.section-contact { background: var(--forest); color: var(--paper); }
.contact-grid {
  padding-block: clamp(3.2rem, 6vw, 6rem);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: end;
  gap: clamp(1.8rem, 5vw, 5rem);
}
.section-contact .eyebrow, .contact-label { color: #d2ddca; }
.section-contact :focus-visible { outline-color: #d2ddca; }
.contact-email {
  display: inline-block;
  margin-top: 1.35rem;
  font-size: clamp(1.07rem, 2vw, 1.42rem);
  text-decoration-color: #a3b7a0;
  text-underline-offset: .22em;
}
.contact-address {
  display: grid;
  gap: 1.15rem;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.4;
}
.contact-address > div { display: grid; gap: .18rem; }
.contact-label { font-weight: 650; font-size: .84rem; }
.contact-address a { width: fit-content; text-decoration-color: #a3b7a0; text-underline-offset: .21em; }
.footer-inner { min-height: 5.7rem; }
.footer-inner > p { color: var(--muted); font-size: .9rem; }

.lightbox {
  width: min(92vw, 72rem);
  max-width: none;
  max-height: calc(100dvh - 1.5rem);
  padding: 0;
  border: 1px solid #627064;
  background: #18221b;
  color: #fff;
}
.lightbox::backdrop { background: rgb(13 19 15 / .86); }
.lightbox-inner { padding: .65rem clamp(.65rem, 2vw, 1.4rem); }
.lightbox-toolbar, .lightbox-controls { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.lightbox-count, .lightbox-caption { font-size: .89rem; color: #e0e8db; }
.lightbox-caption { text-align: center; }
.lightbox-image { width: 100%; height: min(70dvh, 62vw); margin-block: .5rem; object-fit: contain; }
.icon-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #78877a;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}
.icon-button:hover { background: #405447; }
.lightbox :focus-visible { outline-color: #c9e2bc; outline-offset: 3px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: .9fr 1.1fr; }
  .hero h1 { font-size: clamp(2.6rem, 6.3vw, 4.4rem); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio { grid-template-columns: 1fr; }
  .studio-copy > p:not(.eyebrow) { max-width: 50ch; }
}

@media (max-width: 650px) {
  .header-inner { min-height: 4.4rem; gap: .6rem; }
  .wordmark { font-size: 1.19rem; gap: .4rem; }
  .wordmark-sign { width: 25px; height: 25px; }
  nav { gap: clamp(.6rem, 2.8vw, 1.15rem); }
  nav a { font-size: .82rem; }
  nav a span { display: none; }
  .hero { grid-template-columns: 1fr; gap: 1.65rem; }
  .hero h1 { font-size: clamp(2.8rem, 10.5vw, 4.25rem); }
  .hero-intro { margin-bottom: 1.15rem; }
  .section-heading { flex-direction: column; align-items: start; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; padding-block: 1.1rem; }
  .footer-inner > p { order: 3; width: 100%; }
  .lightbox-image { height: min(60dvh, 77vw); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
