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

:root {
  --bg:        #F7F3EC;
  --bg-dark:   #EDE8DF;
  --ink:       #1C1914;
  --ink-muted: #6B5F50;
  --accent:    #9C8B72;
  --border:    #D6CCBE;
  --serif:     'DM Serif Display', Georgia, serif;
  --mono:      'IBM Plex Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── GRAIN OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }

/* ── HERO ── */
.hero {
  padding: 5rem 2rem 3.5rem;
  max-width: 860px;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.08;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--ink-muted);
}

.hero-sub {
  font-size: 12px;
  color: var(--ink-muted);
  max-width: 400px;
  line-height: 1.9;
}

/* ── SECTION LABEL ── */
.section-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-bottom: 2rem;
}

/* ── GALLERY ── */
#work {
  padding: 4rem 2rem;
}

.gallery-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-muted);
  padding: 5px 14px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Masonry grid */
.gallery-grid {
  columns: 3;
  column-gap: 12px;
}

@media (max-width: 900px) { .gallery-grid { columns: 2; } }
@media (max-width: 540px) { .gallery-grid { columns: 1; } }

.gallery-item {
  break-inside: avoid;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item .placeholder {
  width: 100%;
  height: 100%;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(8%) contrast(1.05) saturate(0.92);
  transition: filter 0.35s, transform 0.35s;
}

.gallery-item:hover img {
  filter: sepia(4%) contrast(1.02) saturate(0.97);
  transform: scale(1.015);
}

.photo-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 0.9rem 0.75rem;
  background: linear-gradient(to top, rgba(28,25,20,0.72) 0%, transparent 100%);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(247,243,236,0.85);
  opacity: 0;
  transition: opacity 0.25s;
}

.gallery-item:hover .photo-meta { opacity: 1; }

.photo-meta .film-data {
  opacity: 0.6;
  margin-top: 2px;
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28,25,20,0.94);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  filter: sepia(6%) contrast(1.04) saturate(0.9);
}

.lightbox-caption {
  margin-top: 1rem;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(247,243,236,0.6);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -2rem;
  right: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247,243,236,0.5);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--mono);
}

.lightbox-close:hover { color: rgba(247,243,236,0.9); }

/* ── ABOUT ── */
#about {
  padding: 5rem 2rem;
  max-width: 680px;
}

.about-body {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.75;
  color: var(--ink);
  font-weight: 400;
}

.about-body p + p { margin-top: 1.4rem; }

.about-details {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
}

.detail-label { color: var(--ink-muted); letter-spacing: 0.08em; }
.detail-value { color: var(--ink); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

footer a {
  color: var(--ink-muted);
  text-decoration: none;
}

footer a:hover { color: var(--ink); }