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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background: #fff;
  color: #1a1a1a;
  min-height: 100vh;
}

/* ─── Navigation ─── */

nav {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  border-bottom: 1px solid #ebebeb;
}

.nav-name a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #1a1a1a;
}

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

.nav-links a {
  text-decoration: none;
  color: #999;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: system-ui, -apple-system, sans-serif;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #1a1a1a;
}

/* ─── Layout ─── */

main {
  padding: 3rem 2.5rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.page { display: block; }
.page.hidden { display: none; }

/* ─── Works / Gallery ─── */

.gallery-section {
  margin-bottom: 4rem;
}

.gallery-section h2 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  font-family: system-ui, -apple-system, sans-serif;
  color: #aaa;
  margin-bottom: 1.25rem;
}

.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

.gallery figure {
  cursor: pointer;
  max-width: 800px;
}

.gallery figure img {
  width: 100%;
  display: block;
  transition: opacity 0.25s;
}

.gallery figure:hover img {
  opacity: 0.8;
}

.gallery figcaption {
  font-size: 0.78rem;
  color: #aaa;
  margin-top: 0.3rem;
  font-family: system-ui, -apple-system, sans-serif;
}

/* ─── About ─── */

.about-content {
  max-width: 580px;
  margin: 0 auto;
}

#bio {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #222;
  margin-bottom: 3rem;
}

.cv h3 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  font-family: system-ui, -apple-system, sans-serif;
  color: #bbb;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.cv h3:first-child {
  margin-top: 0;
}

.cv ul {
  list-style: none;
}

.cv li {
  display: flex;
  gap: 1.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f2f2f2;
  font-size: 1rem;
  line-height: 1.5;
  align-items: baseline;
}

.cv-year {
  min-width: 5rem;
  flex-shrink: 0;
  color: #aaa;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.82rem;
}

/* ─── Contact ─── */

.contact-content {
  padding-top: 1rem;
  text-align: center;
}

#contact-email {
  font-size: 1.1rem;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

#contact-email:hover {
  border-color: #1a1a1a;
}

/* ─── Lightbox ─── */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.hidden {
  display: none;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  cursor: default;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  font-family: system-ui, sans-serif;
  font-weight: 300;
}

.lightbox-close:hover {
  opacity: 1;
}

/* ─── Mobile nav ─── */

@media (max-width: 480px) {
  nav {
    padding: 1.1rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  main {
    padding: 2rem 1.5rem 4rem;
  }

  .nav-links {
    gap: 1.5rem;
  }
}
