*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f5f4f0;
  --fg: #1a1a18;
  --muted: #8a8880;
  --nav-h: 52px;
  --gap: 3px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
nav.scrolled { border-color: rgba(26,26,24,0.1); }

.nav-name {
  font-family: 'EB Garamond', serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--fg);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--fg); }

.nav-social {
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav-social a {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-social a:hover { color: var(--fg); }

/* ── MAIN ── */
main { padding-top: var(--nav-h); }

/* ── SECTION HEADER ── */
.section-label {
  padding: 48px 28px 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.section-label-left {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.section-label h2 {
  font-family: 'EB Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}
.section-label span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.view-all {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.2s;
}
.view-all:hover { color: var(--fg); }

/* ── MASONRY GRID ── */
.grid {
  columns: 3;
  column-gap: var(--gap);
  padding: 0 var(--gap) var(--gap);
}
@media (max-width: 900px) { .grid { columns: 2; } }
@media (max-width: 560px) { .grid { columns: 1; } }

.grid-item {
  break-inside: avoid;
  margin-bottom: var(--gap);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: #dddbd5;
}
.grid-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.4s ease;
  filter: saturate(0.92);
}
.grid-item:hover img {
  transform: scale(1.03);
  filter: saturate(1);
}
.grid-item .caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 14px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.38));
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s;
}
.grid-item:hover .caption { opacity: 1; }

/* ── PLACEHOLDER TILES ── */
.placeholder {
  background: var(--ph, #d8d6d0);
  width: 100%;
  display: block;
}

/* ── SECTION DIVIDER ── */
.section-divider {
  height: 1px;
  background: rgba(26,26,24,0.1);
  margin: 0 28px;
}

/* ── PAGE HERO (section pages) ── */
.page-hero {
  padding: 64px 28px 32px;
  border-bottom: 1px solid rgba(26,26,24,0.1);
  margin-bottom: 0;
}
.page-hero h1 {
  font-family: 'EB Garamond', serif;
  font-size: 42px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.page-hero p {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── LIGHTBOX ── */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
#lightbox-close {
  position: absolute;
  top: 20px; right: 28px;
  color: rgba(255,255,255,0.6);
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color 0.2s;
}
#lightbox-close:hover { color: #fff; }

/* ── FOOTER ── */
footer {
  padding: 48px 28px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
