/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: #0b0b0b;
  color: #c8c4bc;
  font-family: 'Inter', Helvetica, sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── VARIABLES ── */
:root {
  --bg:     #0b0b0b;
  --bg2:    #111111;
  --text:   #c8c4bc;
  --muted:  #52524e;
  --border: #1c1c1c;
  --accent: #7a7670;
  --pad:    52px;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px var(--pad);
  transition: background 0.4s;
}
nav.solid { background: rgba(11,11,11,0.97); border-bottom: 1px solid var(--border); }
/* Pages with a page-hero: nav always dark (image fills viewport behind nav) */
body:has(.page-hero) nav { background: rgba(11,11,11,0.92); border-bottom: 1px solid var(--border); }

.nav-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a.active {
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

/* ── IMAGES — global desaturation ── */
img {
  filter: saturate(0.72);
  transition: filter 0.4s;
}
img:hover { filter: saturate(0.88); }

/* ── IMG WRAPPER ── */
.img-wrap {
  overflow: hidden;
  background: var(--bg2);
  display: block;
}
.img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: opacity 0.35s, transform 0.65s, filter 0.4s;
}
.img-wrap:hover img {
  opacity: 0.9;
  transform: scale(1.02);
  filter: saturate(0.9);
}

/* aspect ratios */
.tall   { aspect-ratio: 3/4; }
.wide   { aspect-ratio: 16/9; }
.square { aspect-ratio: 1/1; }
.nat    { aspect-ratio: auto; }

/* ── GRID ── */
.grid    { display: grid; gap: 4px; }
.g-1     { grid-template-columns: 1fr; }
.g-2     { grid-template-columns: 1fr 1fr; }
.g-3     { grid-template-columns: 1fr 1fr 1fr; }
.g-4     { grid-template-columns: 1fr 1fr 1fr 1fr; }
.g-21    { grid-template-columns: 2fr 1fr; }
.g-12    { grid-template-columns: 1fr 2fr; }
.g-mb   { margin-bottom: 4px; }

/* ── SECTION ── */
section { padding: 130px var(--pad); }

.section-header {
  display: flex;
  align-items: baseline;
  gap: 28px;
  margin-bottom: 80px;
}
.section-header h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-bottom: 6px;
}

/* ── WORK BLOCK ── */
.work { margin-bottom: 110px; }
.work:last-child { margin-bottom: 0; }

.work-meta {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  margin-bottom: 32px;
  align-items: start;
}
.work-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(22px, 2.5vw, 36px);
  font-style: italic;
  line-height: 1.15;
}
.work-year {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.work-material { font-size: 13px; color: var(--muted); margin-bottom: 3px; }
.work-dim      { font-size: 12px; color: var(--muted); }
.work-desc {
  font-size: 14px;
  line-height: 1.95;
  max-width: 520px;
  margin-top: 20px;
}

/* ── QUOTE ── */
.quote {
  margin: 52px 0 52px 260px;
  padding: 0 0 0 32px;
  border-left: 1px solid var(--border);
  max-width: 540px;
}
.quote p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.75;
}
.quote cite {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-style: normal;
}

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); margin: 0 var(--pad); }

/* ── FOOTER ── */
footer {
  padding: 36px var(--pad);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer p { font-size: 11px; color: var(--muted); letter-spacing: 0.07em; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ── PAGE HERO (sub-pages) ── */
.page-hero {
  height: 55vh;
  position: relative;
  overflow: hidden;
}
.page-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,11,11,0.65) 0%, rgba(11,11,11,0.1) 60%, transparent 100%);
}
.page-hero-text {
  position: absolute;
  bottom: 56px; left: var(--pad);
}
.page-hero-text h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(32px, 5vw, 60px);
  letter-spacing: 0.06em;
}
.page-hero-text p {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 10px;
}

/* ── LIGHTBOX ── */
#lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(4,4,4,0.97);
  z-index: 999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  pointer-events: none;
  filter: saturate(0.85);
}
#lb-close {
  position: absolute; top: 28px; right: var(--pad);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); cursor: pointer; user-select: none;
}
#lb-close:hover { color: var(--text); }
#lb-prev, #lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); cursor: pointer; padding: 20px; user-select: none;
}
#lb-prev { left: 20px; }
#lb-next { right: 20px; }
#lb-prev:hover, #lb-next:hover { color: var(--text); }

/* ── HAMBURGER ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-burger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  :root { --pad: 24px; }
  nav { padding: 20px var(--pad); }
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11,11,11,0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: 199;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { font-size: 22px; letter-spacing: 0.2em; }
  section { padding: 80px var(--pad); }
  .work-meta { grid-template-columns: 1fr; gap: 20px; }
  .g-2, .g-3, .g-4, .g-21, .g-12 { grid-template-columns: 1fr; }
  .quote { margin-left: 0; }
  footer { flex-direction: column; gap: 8px; text-align: center; }
  .page-hero { height: 42vh; }
}
