:root {
  --pad: 120px;
  --s1: 8px; --s2: 24px; --s3: 40px; --s4: 72px; --s5: 140px; --s6: 180px;
  --gap: 48px;
  --bg: #f7f1e6;
  --wall: #faf5ea;
  --floor-a: #ece2cd;
  --floor-b: #d8c9ac;
  --ink: #3d4145;
  --ink-soft: #575b60;
  --ink-faint: #65686b;
  --rule: rgba(61,65,69,0.12);
}

* { box-sizing: border-box; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Work Sans', sans-serif;
  font-weight: 300;
  color: var(--ink);
}

a { color: var(--ink-soft); text-decoration: none; }
a:hover { color: var(--ink); }
a.inert { pointer-events: none; opacity: 0.45; }

.wrap {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s3) var(--pad);
}

.wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink);
}
a.wordmark:hover { color: var(--ink); }
.nav h1 { margin: 0; display: contents; }

.navlinks { display: flex; gap: var(--s3); }
.navlink { font-family: 'Work Sans', sans-serif; font-weight: 400; font-size: 13px; letter-spacing: 0.3px; color: var(--ink-soft); }
.navlink.active { color: var(--ink); }

.footer {
  padding: var(--s3) var(--pad);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: flex-end;
}
.footer-text {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--ink-faint);
}

/* Homepage: fits the viewport on desktop, no scroll to see the piece */
html, body { height: 100%; }
.wrap--home { min-height: 100vh; }
.wrap--contact { min-height: 100vh; }
.hero-stage {
  position: relative;
  background: linear-gradient(to bottom, var(--wall) 0%, var(--wall) 80%, var(--floor-a) 80%, var(--floor-b) 100%);
  padding: var(--s3) var(--pad);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
}
.hero-trio {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: var(--s3);
}
.hero-img {
  width: auto;
  height: auto;
  object-fit: cover;
  box-shadow: 0 48px 80px -36px rgba(30,28,24,0.35);
  position: relative;
  z-index: 2;
}
.hero-img-main { max-height: 58vh; max-width: min(calc(45vw - 144px), 576px); }
.hero-img-side {
  max-height: 40vh;
  max-width: min(calc(27.5vw - 88px), 352px);
  opacity: 0.92;
  box-shadow: 0 36px 64px -32px rgba(30,28,24,0.3);
}
.hero-caption-row { display: flex; justify-content: center; padding: var(--s2) var(--pad) var(--s3) var(--pad); flex: 0 0 auto; }
.hero-caption { width: min(760px, 62%); display: flex; flex-direction: column; align-items: center; gap: var(--s1); text-align: center; }
.caption-line { font-family: 'Work Sans', sans-serif; font-weight: 400; font-size: 13px; color: var(--ink-soft); }
@media (max-width: 700px) {
  .wrap--home { min-height: auto; }
  .hero-stage { padding: var(--s4) var(--s3); }
  .hero-img-side { display: none; }
  .hero-img-main { max-height: none; max-width: 100%; width: min(90vw, 500px); }
}
@media (min-width: 701px) and (max-width: 1000px) {
  .hero-img-side { display: none; }
}

/* Work / Archive catalog */
.page-heading {
  padding: var(--s2) var(--pad) 0 var(--pad);
  border-top: 1px solid var(--rule);
}
.eyebrow {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}
.page-note {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-soft);
  margin: var(--s1) 0 0 0;
}
.statement-wrap { display: flex; justify-content: flex-start; padding: var(--s3) var(--pad) var(--s1) var(--pad); }
.statement-col { max-width: 640px; display: flex; flex-direction: column; gap: var(--s2); }
.statement-copy { font-family: 'Work Sans', sans-serif; font-weight: 300; font-size: 17px; line-height: 1.7; color: var(--ink); margin: 0; }
.statement-copy:first-child { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; font-size: 22px; line-height: 1.5; color: var(--ink); }
@media (max-width: 700px) {
  .statement-wrap { padding: var(--s3) var(--s3) var(--s1) var(--s3); }
  .statement-copy { font-size: 16px; }
  .statement-copy:first-child { font-size: 19px; }
}
.grid { column-count: 3; column-gap: var(--gap); padding: var(--s4) var(--pad) var(--s4) var(--pad); }
.tile { break-inside: avoid; margin-bottom: var(--gap); display: flex; flex-direction: column; gap: var(--s1); }
.tile img { width: 100%; height: auto; display: block; box-shadow: 0 24px 48px -28px rgba(30,28,24,0.28); cursor: zoom-in; transition: box-shadow 0.2s ease; }
.tile img:hover { box-shadow: 0 28px 56px -24px rgba(30,28,24,0.38); }
.tile .meta { font-family: 'Work Sans', sans-serif; font-weight: 400; font-size: 12px; color: var(--ink-soft); margin-top: var(--s1); }
@media (max-width: 1100px) { .grid { column-count: 2; } }

/* Work page only: a deliberate two-row layout (16x20 row, then 24x36 row) instead of the masonry grid above, since the curated 4-piece set reads better as two matched pairs than as a catalog */
.work-grid { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s3) var(--pad) var(--s4) var(--pad); }
.work-row { display: flex; align-items: flex-end; justify-content: center; gap: var(--gap); }
.work-row .tile { margin-bottom: 0; align-items: center; }
.work-row .tile img {
  width: auto;
  height: auto;
  max-height: 42vh;
  max-width: min(calc((100vw - 288px) / 2), 656px);
}
.work-row .tile .meta { text-align: center; }
@media (max-width: 700px) {
  .work-grid { padding: var(--s3) var(--s3) var(--s4) var(--s3); gap: var(--s3); }
  .work-row { flex-direction: column; align-items: center; gap: var(--s2); }
  .work-row .tile img { max-height: none; max-width: 100%; width: min(90vw, 420px); }
}

@media (max-width: 700px) {
  .grid { column-count: 1; }
  .page-heading, .hero-stage, .hero-caption-row, .footer { padding-left: var(--s3); padding-right: var(--s3); }
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s2);
    padding: var(--s2) var(--s3);
  }
  .wordmark { font-size: 17px; letter-spacing: 1.5px; white-space: nowrap; }
  .navlinks { width: 100%; justify-content: space-between; gap: var(--s1); }
  .navlink { font-size: 12px; white-space: nowrap; }
}
@media (max-width: 360px) {
  .wordmark { font-size: 15px; letter-spacing: 1px; }
  .navlink { font-size: 11px; }
}

/* About page bio */
.bio-wrap { display: flex; justify-content: center; padding: var(--s6) var(--pad) var(--s5) var(--pad); }
.bio-col { max-width: 620px; display: flex; flex-direction: column; gap: var(--s3); }
.bio-photo-row { display: flex; justify-content: center; }
.bio-photo { width: 280px; height: 280px; object-fit: cover; box-shadow: 0 24px 48px -28px rgba(30,28,24,0.32); }
.bio-copy { font-family: 'Work Sans', sans-serif; font-weight: 300; font-size: 19px; line-height: 1.7; color: var(--ink); }
.bio-copy em { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; color: var(--ink); }
.fact-line { font-family: 'Work Sans', sans-serif; font-weight: 400; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-faint); margin-top: var(--s2); }
@media (max-width: 700px) { .bio-wrap { padding: var(--s4) var(--s3); } .bio-copy { font-size: 17px; } }

/* About page: exhibition history */
.exhib-wrap { display: flex; justify-content: center; padding: 0 var(--pad) var(--s6) var(--pad); border-top: 1px solid var(--rule); }
.exhib-col { max-width: 620px; width: 100%; display: flex; flex-direction: column; gap: var(--s4); padding-top: var(--s5); }
.exhib-group { display: flex; flex-direction: column; gap: var(--s2); }
.exhib-list { display: flex; flex-direction: column; gap: var(--s1); }
.exhib-item { display: flex; gap: var(--s2); font-family: 'Work Sans', sans-serif; font-weight: 400; font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.exhib-year { flex: 0 0 auto; width: 40px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.exhib-entry { color: var(--ink-soft); }
.exhib-press { font-family: 'Work Sans', sans-serif; font-weight: 400; font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
@media (max-width: 700px) { .exhib-wrap { padding: 0 var(--s3) var(--s4) var(--s3); } .exhib-col { padding-top: var(--s4); gap: var(--s3); } .exhib-item { gap: var(--s1); font-size: 13px; } .exhib-year { width: 34px; } }

/* Lightbox: click-to-expand on Work & Archive grid tiles */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(61,65,69,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s4) var(--s3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1000;
}
.lightbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.lightbox-figure { display: flex; flex-direction: column; align-items: center; gap: var(--s2); max-width: 92vw; max-height: 92vh; margin: 0; }
.lightbox-img { display: block; max-width: 92vw; max-height: 80vh; width: auto; height: auto; object-fit: contain; box-shadow: 0 32px 64px -24px rgba(0,0,0,0.5); }
.lightbox-caption { font-family: 'Work Sans', sans-serif; font-size: 13px; letter-spacing: 0.3px; color: var(--wall); text-align: center; }
.lightbox-close {
  position: fixed;
  top: var(--s3);
  right: var(--s3);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(250,245,234,0.12);
  border: 1px solid rgba(250,245,234,0.4);
  color: var(--wall);
  font-family: 'Work Sans', sans-serif;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-close:hover { background: rgba(250,245,234,0.24); }
body.lightbox-lock { overflow: hidden; }
@media (max-width: 700px) {
  .lightbox { padding: var(--s3) var(--s2); }
  .lightbox-close { top: var(--s2); right: var(--s2); width: 40px; height: 40px; font-size: 20px; }
}

/* Contact page */
.contact-stage { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: var(--s4) var(--pad); }
.contact-col { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s2); }
.contact-name { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; font-size: 34px; color: var(--ink); }
.contact-email { font-family: 'Work Sans', sans-serif; font-weight: 300; font-size: 19px; color: var(--ink-soft); }
.contact-email:hover { color: var(--ink); }
.contact-social { display: flex; gap: var(--s3); margin-top: var(--s2); }
.contact-social a { font-family: 'Work Sans', sans-serif; font-weight: 400; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); }
.contact-social a:hover { color: var(--ink); }
@media (max-width: 700px) { .contact-stage { padding: var(--s4) var(--s3); } .contact-name { font-size: 26px; } }
