/* ---------------------------------------------------------------------------
   Geoff Valcourt Photography — dark, minimal, photo-first
--------------------------------------------------------------------------- */

:root {
  --bg:        #0b0b0c;
  --bg-soft:   #141416;
  --text:      #f3f1ec;
  --muted:     #8a8a8f;
  --line:      #26262a;
  --accent:    #f3f1ec;
  --max:       1500px;
  --gap:       14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 56px);
  background: rgba(11, 11, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 2px;
}

.site-nav { display: flex; gap: 30px; }
.site-nav a {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
}
.site-nav a:hover { color: var(--text); }

/* ---------- Intro ---------- */
.intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 13vw, 150px) clamp(20px, 5vw, 56px) clamp(40px, 7vw, 80px);
  text-align: center;
}
.intro h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 1.02;
  margin: 0 0 0.35em;
  letter-spacing: 0.01em;
}
.intro-tagline {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.85rem, 2.2vw, 1.05rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Gallery (masonry via CSS columns) ---------- */
.gallery {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(12px, 5vw, 56px) clamp(60px, 9vw, 110px);
  column-gap: var(--gap);
  columns: 3;
}
@media (max-width: 1000px) { .gallery { columns: 2; } }
@media (max-width: 560px)  { .gallery { columns: 1; } }

.tile {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 var(--gap);
  break-inside: avoid;
  cursor: zoom-in;
  overflow: hidden;
  background: var(--bg-soft);
}
.tile img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
  opacity: 0;
}
.tile img.loaded { opacity: 1; }
.tile:hover img { transform: scale(1.035); }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 12, 0.12);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.tile:hover::after { opacity: 1; }

/* ---------- Contact ---------- */
.contact {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(60px, 10vw, 120px) clamp(20px, 5vw, 56px);
  text-align: center;
  border-top: 1px solid var(--line);
}
.contact h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.4em;
}
.contact-lead { color: var(--muted); margin: 0 0 2em; letter-spacing: 0.04em; }
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.contact-list a {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  position: relative;
  padding-bottom: 3px;
}
.contact-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.35s ease;
}
.contact-list a:hover::after { right: 0; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 36px 20px 48px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  border-top: 1px solid var(--line);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7, 7, 8, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}
.lb-figure {
  margin: 0;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lb-figure img {
  max-width: 92vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lb-counter {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
}
.lb-close, .lb-nav {
  position: absolute;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
.lb-close:hover, .lb-nav:hover { opacity: 1; }
.lb-close {
  top: 22px; right: 26px;
  font-size: 2.4rem;
  line-height: 1;
}
.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.4rem;
  line-height: 1;
  padding: 0 18px;
}
.lb-nav:hover { opacity: 1; }
.lb-prev { left: clamp(6px, 2vw, 28px); }
.lb-next { right: clamp(6px, 2vw, 28px); }

@media (max-width: 560px) {
  .lb-nav { font-size: 2.4rem; padding: 0 8px; }
  .lb-figure img { max-height: 78vh; }
}

body.lb-locked { overflow: hidden; }
