:root {
  --bg: #121212;
  --bg-alt: #1a1a1a;
  --ink: #f2f0ec;
  --mute: #9a968c;
  --accent: #d8b26a;
  --line: rgba(255, 255, 255, .1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: .02em;
  margin: 0 0 .5rem;
}

a { color: inherit; }

/* ---------- nav ---------- */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
}
.nav.solid { position: static; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.nav .brand {
  display: inline-flex;
  text-decoration: none;
}
.nav .brand-logo {
  height: 40px;
  width: auto;
  display: block;
}
.nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.nav a { text-decoration: none; }
.nav ul a {
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
  border-bottom: 1px solid transparent;
  padding-bottom: .2rem;
  transition: color .2s, border-color .2s;
}
.nav ul a:hover, .nav ul a.active { color: var(--ink); border-color: var(--accent); }

/* ---------- hero (home) ---------- */
.hero {
  position: relative;
  height: 92vh;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  background: #0a0a0a;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom right;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 2rem 4rem;
  max-width: 720px;
}
.hero-content h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero-content p { color: #dedad0; font-size: 1.05rem; margin: 0 0 1.5rem; max-width: 46ch; }
.btn {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--ink);
  text-decoration: none;
  padding: .7rem 1.6rem;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--accent); color: #14130f; }

/* ---------- generic page ---------- */
.page-head {
  padding: 3rem 2rem 1.5rem;
  text-align: center;
}
.page-head h1 { font-size: 2.2rem; }
.page-head p { color: var(--mute); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* ---------- gallery tabs ---------- */
.gallery-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem;
  list-style: none; margin: 0 0 2.5rem; padding: 0 0 1.5rem;
  border-bottom: 1px solid var(--line);
}
.gallery-tabs a {
  text-decoration: none; color: var(--mute); font-size: .85rem;
  letter-spacing: .1em; text-transform: uppercase; padding-bottom: .3rem;
  border-bottom: 2px solid transparent;
}
.gallery-tabs a:hover, .gallery-tabs a.active { color: var(--ink); border-color: var(--accent); }

/* ---------- masonry ---------- */
.masonry {
  column-count: 3;
  column-gap: 1.25rem;
  padding-bottom: 4rem;
}
@media (max-width: 900px) { .masonry { column-count: 2; } }
@media (max-width: 560px) { .masonry { column-count: 1; } }

.masonry figure {
  margin: 0 0 1.25rem;
  break-inside: avoid;
  position: relative;
  cursor: zoom-in;
}
.masonry img {
  width: 100%;
  display: block;
  border-radius: 2px;
  transition: opacity .3s ease, transform .4s ease;
}
.masonry figure:hover img { opacity: .88; }
.masonry figcaption {
  position: absolute; left: .6rem; bottom: .5rem;
  font-size: .72rem; letter-spacing: .08em;
  background: rgba(0,0,0,.55);
  padding: .2rem .55rem;
  color: #fff;
  opacity: 0;
  transition: opacity .2s;
}
.masonry figure:hover figcaption { opacity: 1; }

.empty { text-align: center; color: var(--mute); font-style: italic; padding: 4rem 0; }

/* ---------- lightbox ---------- */
#lightbox {
  position: fixed; inset: 0; background: rgba(8,8,8,.94);
  display: none; align-items: center; justify-content: center;
  z-index: 100; flex-direction: column;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 90vw; max-height: 82vh; object-fit: contain; }
#lightbox .lb-caption { margin-top: 1rem; color: var(--mute); font-size: .85rem; letter-spacing: .05em; }
#lightbox .lb-close, #lightbox .lb-prev, #lightbox .lb-next {
  position: absolute; background: none; border: 0; color: var(--ink);
  font-size: 2rem; cursor: pointer; line-height: 1; padding: .5rem 1rem;
}
#lightbox .lb-close { top: 1rem; right: 1.5rem; font-size: 1.6rem; }
#lightbox .lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
#lightbox .lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { #lightbox .lb-prev, #lightbox .lb-next { font-size: 1.4rem; } }

/* ---------- contact ---------- */
.contact-box {
  max-width: 560px; margin: 0 auto; padding: 2rem 0 6rem; text-align: center;
}
.contact-box a.mail {
  display: inline-block; margin-top: 1rem; font-size: 1.2rem;
  color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent);
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 2rem;
  text-align: center;
  color: var(--mute);
  font-size: .78rem;
}
footer a { color: var(--mute); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 6rem 2rem; }
.notfound h1 { font-size: 4rem; }
