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

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #999;
  --subtle: #e5e5e5;
  --font: 'Inter', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--text); color: var(--bg); }

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.6rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-name {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-btn span {
  display: block; width: 22px; height: 1px;
  background: var(--text); transition: all 0.3s ease;
}
.menu-btn.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== MAIN ===== */
main { padding-top: 70px; }

/* ===== PROJECT ===== */
.project { padding: 3rem 2rem 4rem; }
.project-credits { max-width: 1400px; margin: 0 auto 2rem; }
.project-name {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.credit-line { font-size: 0.82rem; font-weight: 300; color: var(--text); line-height: 1.8; }
.credit-label { color: var(--muted); }

/* ===== PHOTO GRID ===== */
.photo-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.photo-grid img {
  height: 280px;
  flex-grow: 1;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: opacity 0.4s ease;
  opacity: 0.93;
  min-width: 120px;
}
.photo-grid img:hover { opacity: 1; }

/* ===== DIVIDER ===== */
.divider { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.divider hr { border: none; height: 1px; background: var(--subtle); }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.97);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 88vw; max-height: 85vh;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(0.95);
}
.lightbox.active img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 2rem;
  background: none; border: none; color: var(--muted);
  font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase;
  cursor: pointer; transition: color 0.3s ease;
  font-family: var(--font);
}
.lightbox-close:hover { color: var(--text); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted);
  font-size: 1.5rem; cursor: pointer; padding: 1rem;
  transition: color 0.3s ease;
}
.lightbox-nav:hover { color: var(--text); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-counter {
  position: absolute; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem; color: var(--muted); letter-spacing: 0.15em;
}

/* ===== CONTACT ===== */
.contact {
  min-height: 70vh;
  padding: 6rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.contact h2 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.contact-email {
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  display: inline-block;
  position: relative;
  padding-bottom: 3px;
}
.contact-email::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--subtle);
  transition: background 0.3s ease;
}
.contact-email:hover::after { background: var(--text); }
.contact-social {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.contact-social a {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
}
.contact-social a:hover { color: var(--text); }
.contact-available {
  margin-top: 3rem;
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  max-width: 400px;
}

/* ===== PRINTS COMING SOON ===== */
.prints-page {
  min-height: 70vh;
  padding: 6rem 2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.prints-page h1 {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.prints-page p {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 400px;
  line-height: 1.8;
  margin-bottom: 2rem;
}
.waitlist-form {
  display: flex;
  gap: 0;
  max-width: 380px;
  width: 100%;
}
.waitlist-form input {
  flex: 1;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 300;
  padding: 0.7rem 1rem;
  border: 1px solid var(--subtle);
  border-right: none;
  outline: none;
  transition: border-color 0.3s ease;
}
.waitlist-form input:focus { border-color: var(--text); }
.waitlist-form button {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 1.4rem;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  cursor: pointer;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}
.waitlist-form button:hover { opacity: 0.8; }
.waitlist-msg {
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--muted);
  min-height: 1.2em;
}

/* ===== LEGAL PAGES ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--text);
}
.legal-content h1 {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}
.legal-content h2 {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 2rem 0 0.8rem;
}
.legal-content p { margin-bottom: 0.8rem; font-weight: 300; }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 20000;
  background: var(--text);
  color: var(--bg);
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  line-height: 1.6;
}
.cookie-banner.hidden { display: none; }
.cookie-banner p { max-width: 600px; }
.cookie-banner a { color: var(--bg); text-decoration: underline; }
.cookie-btn {
  font-family: var(--font);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.cookie-btn:hover { opacity: 0.8; }
.cookie-accept { background: var(--bg); color: var(--text); }
.cookie-decline { background: transparent; color: var(--bg); border: 1px solid rgba(255,255,255,0.3); }

/* ===== FOOTER ===== */
footer {
  padding: 1.5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--subtle);
}
footer p {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}
footer a {
  color: var(--muted);
  text-decoration: underline;
  transition: color 0.3s ease;
}
footer a:hover { color: var(--text); }

/* ===== FADE ===== */
.fade-in {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .photo-grid img { height: 220px; }
}

@media (max-width: 768px) {
  nav { padding: 1.2rem 1.2rem; }
  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: 100%; height: 100vh;
    background: var(--bg);
    flex-direction: column;
    align-items: center; justify-content: center;
    gap: 2rem;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1rem; color: var(--text); }
  .menu-btn { display: flex; }

  .project { padding: 2rem 1rem 3rem; }
  .photo-grid img {
    height: auto;
    max-height: 300px;
    object-fit: contain;
    flex-grow: 0;
    width: 100%;
  }
  .contact { padding: 3rem 1.2rem; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form input { border-right: 1px solid var(--subtle); border-bottom: none; }
}
