@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cormorant+Garamond:ital,wght@0,300;0,400&family=DM+Mono:wght@300;400&display=swap');

:root {
  --black: #0a0a0a;
  --white: #f5f4f0;
  --gray: #888;
  --accent: #c8b89a;
  --line: rgba(10,10,10,0.1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: 'Cormorant Garamond', serif;
  cursor: none;
  overflow-x: hidden;
}

/* ── CURSOR ── */
.cursor {
  
  background: var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transition: transform .15s ease, width .2s, height .2s;
  box-shadow: 0 0 0 2px rgba(200,184,154,.3);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid var(--black);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transition: all .13s ease;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 64px;
  background: rgba(245,244,240,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px; letter-spacing: .12em;
  color: var(--black); text-decoration: none;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: var(--gray);
  transition: color .25s;
}
.nav-links a:hover { color: var(--black); }
.nav-back {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: var(--gray);
  display: flex; align-items: center; gap: 8px;
  transition: color .25s;
}
.nav-back:hover { color: var(--black); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }

/* ── FOOTER ── */
footer {
  padding: 24px 48px;
  background: var(--black);
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px; letter-spacing: .1em; color: rgba(255,255,255,.25);
}
.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: .1em; color: rgba(255,255,255,.18);
}

/* ── UTILITIES ── */
.label {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gray); display: flex; align-items: center; gap: 10px;
}
.label::before { content: ''; display: block; width: 28px; height: 1px; background: currentColor; }

@media (max-width: 700px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  footer { padding: 20px; flex-direction: column; gap: 8px; text-align: center; }
}

/* ── LOGO ── */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 32px;
  width: auto;
  display: block;
  /* Logo is dark — works on light nav background */
}
/* Invert logo on dark backgrounds if needed */
.logo-img.invert {
  filter: invert(1);
}

/* ── LIGHTBOX ── */
.photo-cell {
  cursor: none;
  position: relative;
  overflow: hidden;
}
.photo-cell img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .5s ease, filter .4s;
}
.photo-cell:hover img {
  transform: scale(1.04);
}

/* Zoom hint on hover */
.photo-cell::after {
  content: 'View';
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--white);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,10,10,0);
  transition: background .35s;
  pointer-events: none;
}
.photo-cell:hover::after {
  background: rgba(10,10,10,.35);
}

/* Lightbox overlay */
.lb-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(5,5,5,.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
  backdrop-filter: blur(6px);
}
.lb-overlay.open {
  opacity: 1; pointer-events: all;
}

.lb-img-wrap {
  position: relative;
  max-width: 90vw; max-height: 88vh;
  display: flex; align-items: center; justify-content: center;
}
.lb-img {
  max-width: 90vw; max-height: 88vh;
  object-fit: contain; display: block;
  transform: scale(.94);
  transition: transform .4s cubic-bezier(.25,.46,.45,.94);
  border-radius: 2px;
}
.lb-overlay.open .lb-img {
  transform: scale(1);
}

/* Close button */
.lb-close {
  position: fixed; top: 28px; right: 32px;
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.4);
  background: none; border: 1px solid rgba(255,255,255,.15);
  padding: 10px 18px; cursor: none;
  transition: color .25s, border-color .25s;
  z-index: 9001;
}
.lb-close:hover { color: var(--white); border-color: rgba(255,255,255,.4); }

/* Prev / Next arrows */
.lb-prev, .lb-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  border: 1px solid rgba(255,255,255,.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); font-size: 18px;
  background: none; cursor: none;
  transition: color .25s, border-color .25s, background .25s;
  z-index: 9001;
}
.lb-prev { left: 28px; }
.lb-next { right: 28px; }
.lb-prev:hover, .lb-next:hover {
  color: var(--white);
  border-color: var(--accent);
  background: rgba(200,184,154,.08);
}
.lb-prev.hidden, .lb-next.hidden { opacity: 0; pointer-events: none; }

/* Counter */
.lb-counter {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: .2em;
  color: rgba(255,255,255,.3);
  z-index: 9001;
}

/* Caption */
.lb-caption {
  position: fixed; bottom: 52px; left: 50%;
  transform: translateX(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px; font-weight: 300; font-style: italic;
  color: rgba(255,255,255,.4);
  text-align: center; white-space: nowrap;
  z-index: 9001;
}

/* ── MOBILE NAV ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none;
  cursor: none; padding: 4px;
  position: relative; z-index: 201;
}
.hamburger span {
  display: block;
  width: 100%; height: 1.5px;
  background: var(--black);
  transition: transform .35s cubic-bezier(.77,0,.18,1), opacity .25s, width .35s;
  transform-origin: center;
}

/* Animated to X */
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 199;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 80px 40px 60px;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.77,0,.18,1);
  pointer-events: none;
}
.mobile-drawer.open {
  transform: translateX(0);
  pointer-events: all;
}

/* Diagonal line decoration */
.mobile-drawer::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='320' y1='-20' x2='80' y2='820' stroke='%230a0a0a' stroke-width='1.5' opacity='0.06'/%3E%3Cline x1='380' y1='-20' x2='140' y2='820' stroke='%230a0a0a' stroke-width='0.8' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.mobile-nav-links {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 0;
}
.mobile-nav-links li {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.mobile-nav-links li:first-child {
  border-top: 1px solid var(--line);
}
.mobile-nav-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px; letter-spacing: .04em;
  color: var(--black); text-decoration: none;
  transform: translateX(40px); opacity: 0;
  transition: color .25s, transform .45s cubic-bezier(.25,.46,.45,.94), opacity .45s;
}
.mobile-nav-links a span {
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: .15em;
  color: var(--gray); font-weight: 300;
}
.mobile-drawer.open .mobile-nav-links a {
  transform: translateX(0); opacity: 1;
}
.mobile-nav-links li:nth-child(1) a { transition-delay: .08s; }
.mobile-nav-links li:nth-child(2) a { transition-delay: .13s; }
.mobile-nav-links li:nth-child(3) a { transition-delay: .18s; }
.mobile-nav-links li:nth-child(4) a { transition-delay: .23s; }
.mobile-nav-links li:nth-child(5) a { transition-delay: .28s; }
.mobile-nav-links a:hover { color: var(--accent); }

.mobile-drawer-footer {
  margin-top: 48px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .4s .35s, transform .4s .35s;
}
.mobile-drawer.open .mobile-drawer-footer {
  opacity: 1; transform: none;
}
.mobile-drawer-footer a {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gray); text-decoration: none; margin-right: 24px;
  transition: color .25s;
}
.mobile-drawer-footer a:hover { color: var(--black); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* Desktop-only nav links (used in project pages) */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-desktop .nav-back {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: var(--gray);
  transition: color .25s;
}
.nav-desktop .nav-back:hover { color: var(--black); }

@media (max-width: 768px) {
  .nav-desktop { display: none; }
}