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

:root {
  --bg:      #faf8f5;
  --text:    #1c1917;
  --muted:   #7a7167;
  --accent:  #8b7355;
  --border:  #e2ddd7;
  --card-bg: #eae6df;
  --serif:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; padding: 0; }

/* ══════════════════════════════════════════
   HOMEPAGE
══════════════════════════════════════════ */
.home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.home-left {
  padding: clamp(40px, 6vw, 100px);
  display: flex;
  flex-direction: column;
}

.home-wordmark {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: var(--sans);
  color: var(--muted);
  margin-bottom: clamp(40px, 7vh, 88px);
}

.home-artist {
  font-size: clamp(36px, 4.8vw, 76px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: clamp(36px, 5vh, 64px);
}
.home-artist em {
  font-style: italic;
  display: block;
}

.home-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(11px, 1.6vh, 18px) 0;
  border-top: 1px solid var(--border);
  font-size: clamp(20px, 2.6vw, 40px);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.25s, padding-left 0.25s ease;
  gap: 16px;
}
.home-nav a:last-child { border-bottom: 1px solid var(--border); }
.home-nav a:hover { color: var(--accent); padding-left: 10px; }
.home-nav .nav-arrow {
  font-size: 0.55em;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.25s, transform 0.25s;
  flex-shrink: 0;
}
.home-nav a:hover .nav-arrow { opacity: 1; transform: translateX(0); }

.home-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: clamp(28px, 4.5vh, 52px);
  font-size: 13px;
  font-family: var(--sans);
  color: var(--muted);
}
.home-footer a {
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color 0.2s;
  letter-spacing: 0.05em;
}
.home-footer a:hover { color: var(--text); }
.home-footer svg { width: 15px; height: 15px; flex-shrink: 0; }

.home-right {
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
}
.home-right img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.home-right img.active { opacity: 1; }
.home-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
  padding: 64px 32px 28px;
  color: #fff;
  font-style: italic;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.home-right:hover .home-caption { opacity: 1; }

/* ══════════════════════════════════════════
   STICKY HEADER (subpages)
══════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 64px);
  height: 56px;
}

.header-home {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-home:hover { color: var(--text); }
.header-home svg { width: 14px; height: 14px; }

.header-title {
  font-size: clamp(16px, 2.2vw, 26px);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.01em;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.header-email {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.header-email:hover { color: var(--text); border-color: var(--text); }
.header-email svg { width: 15px; height: 15px; }

/* ══════════════════════════════════════════
   PAGE INTRO
══════════════════════════════════════════ */
.page-intro {
  padding: clamp(28px, 4vw, 52px) clamp(20px, 4vw, 64px) clamp(20px, 3vw, 36px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.page-title {
  font-size: clamp(30px, 4.5vw, 60px);
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.02em;
}
.page-count {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════
   MASONRY GALLERY
══════════════════════════════════════════ */
.gallery-wrap {
  padding: clamp(20px, 3vw, 44px) clamp(20px, 4vw, 64px) clamp(48px, 6vw, 96px);
}

.gallery {
  position: relative;
}

.card {
  position: absolute;
  cursor: pointer;
  overflow: hidden;
  background: var(--card-bg);
  opacity: 0;
  transition: opacity 0.55s ease;
}
.card.visible { opacity: 1; }

.card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card:hover img { transform: scale(1.05); }

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,6,4,0.74) 0%, rgba(8,6,4,0) 55%);
  opacity: 0;
  transition: opacity 0.32s ease;
  display: flex;
  align-items: flex-end;
  padding: 18px 16px;
}
.card:hover .card-overlay { opacity: 1; }

.card-label { color: #fff; }
.card-name {
  font-size: 17px;
  font-style: italic;
  line-height: 1.25;
}
.card-meta {
  font-size: 11px;
  font-family: var(--sans);
  color: rgba(255,255,255,0.6);
  margin-top: 3px;
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }

.lb-bg {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 4, 0.93);
  cursor: pointer;
}

.lb-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 88vw;
  max-height: 92vh;
}

.lb-main {
  max-width: 82vw;
  max-height: 68vh;
  object-fit: contain;
  display: block;
  border-radius: 1px;
  box-shadow: 0 20px 72px rgba(0,0,0,0.65);
  transition: opacity 0.22s ease;
}
.lb-main.fade { opacity: 0; }

.lb-thumbs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
  max-width: 80vw;
}
.lb-thumbs img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.4;
  border: 2px solid transparent;
  border-radius: 2px;
  transition: opacity 0.2s, border-color 0.2s;
}
.lb-thumbs img:hover { opacity: 0.85; }
.lb-thumbs img.active { opacity: 1; border-color: rgba(255,255,255,0.75); }

.lb-info {
  margin-top: 20px;
  text-align: center;
  color: rgba(255,255,255,0.88);
  max-width: 600px;
}
.lb-title {
  font-size: clamp(17px, 2.2vw, 24px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
}
.lb-sub {
  font-size: 12px;
  font-family: var(--sans);
  color: rgba(255,255,255,0.45);
  margin-top: 7px;
  letter-spacing: 0.07em;
}

.lb-counter {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.12em;
  pointer-events: none;
  z-index: 1;
}

.lb-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
  z-index: 1;
  font-size: 18px;
  line-height: 1;
}
.lb-close:hover { color: #fff; }
.lb-close svg { width: 20px; height: 20px; }

.lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s, background 0.2s;
  border-radius: 50%;
  z-index: 1;
}
.lb-arrow:hover { color: #fff; background: rgba(255,255,255,0.08); }
.lb-arrow svg { width: 24px; height: 24px; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

/* ══════════════════════════════════════════
   BIOGRAPHY
══════════════════════════════════════════ */
.bio-wrap {
  padding: clamp(36px, 5vw, 72px) clamp(20px, 4vw, 64px) clamp(48px, 6vw, 96px);
  max-width: 1080px;
}
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.bio-text {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.78;
}
.bio-text p + p { margin-top: 22px; }
.bio-link {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.bio-link:hover { border-color: var(--accent); }
.bio-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(10%);
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.site-footer a { transition: color 0.2s; }
.site-footer a:hover { color: var(--text); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 700px) {
  .home { grid-template-columns: 1fr; }
  .home-right { min-height: 58vw; order: -1; }
  .header-title { display: none; }
  .bio-grid { grid-template-columns: 1fr; }
  .bio-photo { max-width: 260px; }
  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }
  .lb-main { max-width: 94vw; max-height: 60vh; }
}
