/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #faf8f4;
  --bg-warm:    #f3ede3;
  --surface:    #ffffff;
  --ink:        #1e1a16;
  --ink-mid:    #5a5046;
  --ink-light:  #9a8f82;
  --accent:     #b85c2a;
  --accent-soft:#e8c9b0;
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'Jost', system-ui, sans-serif;
  --gutter:     clamp(1.5rem, 4vw, 3rem);
  --max-w:      1200px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
}

/* ─── Texture overlay ───────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ─── Nav ───────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--accent-soft);
}

nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.nav-logo {
  height: 68px;
  width: auto;
  flex-shrink: 0;
}

.nav-brand-text {
  display: flex;
  align-items: center;
}

.nav-brand .studio {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}


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

.nav-links a {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-mid);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

/* ─── Page sections ─────────────────────────────────────────── */
.page { display: none; }
.page.active { display: block; }

/* ─── Hero strip ────────────────────────────────────────────── */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem var(--gutter) 1.5rem;
  border-bottom: 1px solid var(--accent-soft);
  margin-bottom: 2.5rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  line-height: 1.1;
}

.hero p {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
}

/* ─── Gallery grid ──────────────────────────────────────────── */
.gallery-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem var(--gutter) 4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.gallery-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: var(--bg-warm);
  aspect-ratio: 1 / 1;
  border-radius: 6px;
}

.gallery-item .gallery-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px) brightness(0.72) saturate(1.15);
  transform: scale(1.15); /* prevent blur-edge bleed */
  pointer-events: none;
  transition: filter 0.4s ease, transform 0.4s ease;
}

.gallery-item .gallery-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  z-index: 1;
  transform: scale(0.91);
  transition: transform 0.4s ease;
}

/* Placeholder tiles */
.gallery-item .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink-light);
  background: var(--bg-warm);
}

.gallery-item:hover .gallery-img {
  transform: scale(0.95);
}

.gallery-item:hover .gallery-bg {
  filter: blur(22px) brightness(0.58) saturate(1.15);
  transform: scale(1.18);
}

.gallery-item:hover .placeholder {
  transform: scale(1.03);
  filter: brightness(0.88);
}

.gallery-item .hover-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 2rem 1rem 1rem;
  background: linear-gradient(to top, rgba(30,26,22,0.75) 0%, transparent 100%);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover .hover-label { opacity: 1; }

.hover-label .piece-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
}

.hover-label .piece-meta {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 0.2rem;
}

/* ─── Lightbox – click 1: detail panel ─────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(30, 26, 22, 0.85);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.25s ease;
}

.lightbox.open { display: flex; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lb-card {
  background: var(--bg);
  display: flex;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
}

.lb-image-wrap {
  flex: 1 1 55%;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}

.lb-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.lb-image-wrap .lb-placeholder {
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-light);
  background: var(--bg-warm);
}

.lb-zoom-hint {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  background: rgba(255,255,255,0.85);
  padding: 0.3rem 0.6rem;
}

.lb-info {
  flex: 0 0 280px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--accent-soft);
  overflow-y: auto;
}

.lb-info .lb-title {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  color: var(--ink);
}

.lb-info .lb-year {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.4rem;
}

.lb-divider {
  width: 2rem;
  height: 1px;
  background: var(--accent);
  margin: 1.25rem 0;
}

.lb-detail-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 1rem;
}

.lb-detail-row .label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.lb-detail-row .value {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
}

.lb-note {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-mid);
  line-height: 1.65;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--accent-soft);
}

.lb-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 210;
}

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

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.75rem 1rem;
  transition: background 0.2s;
  z-index: 210;
}

.lb-nav:hover { background: rgba(255,255,255,0.3); }
.lb-nav.prev { left: 1rem; }
.lb-nav.next { right: 1rem; }

/* ─── Fullscreen – click 2 ──────────────────────────────────── */
.fullscreen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg);
  align-items: center;
  justify-content: center;
  padding: 4rem;
  cursor: zoom-out;
  animation: fadeIn 0.2s ease;
}

.fullscreen.open { display: flex; }

.fullscreen img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.fullscreen .fs-placeholder {
  color: var(--ink-light);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
}

.fullscreen .fs-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.fullscreen .fs-close:hover { color: #fff; }

/* ─── Text pages (Bio, Statement, Contact) ──────────────────── */
.text-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 6rem;
}

.text-page .page-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.text-page h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 2rem;
}

.text-page p {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink-mid);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.coming-soon {
  font-family: var(--serif) !important;
  font-style: italic !important;
  color: var(--ink-light) !important;
}

/* ─── Contact ───────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-item .c-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.4rem;
}

.contact-item a {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  transition: border-color 0.2s, color 0.2s;
}

.contact-item a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.contact-form {
  grid-column: 1 / -1;
  margin-top: 1rem;
  border-top: 1px solid var(--accent-soft);
  padding-top: 2rem;
}

.contact-form h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--accent-soft);
  padding: 0.75rem 1rem;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group.full { grid-column: 1 / -1; }

.btn-send {
  margin-top: 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.85rem 2.5rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-send:hover { background: #9a4a20; }

/* ─── Footer ────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--accent-soft);
  padding: 2rem var(--gutter);
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  font-family: var(--sans);
}

/* ─── Dots ──────────────────────────────────────────────────── */
.lb-dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 0.65rem 1rem;
  background: var(--surface);
  border-top: 1px solid var(--accent-soft);
  flex-shrink: 0;
}

.lb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.lb-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ─── Hamburger button (hidden on desktop) ──────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* Animate to ✕ when open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── Mobile ────────────────────────────────────────────────── */
@media (max-width: 680px) {
  nav { position: relative; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--accent-soft);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0;
  }

  .nav-links.open {
    max-height: 300px;
    padding: 1rem 0 1.25rem;
  }

  .nav-links li { width: 100%; text-align: center; }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    font-size: 0.72rem;
  }

  .lightbox { padding: 0; align-items: stretch; }
  .lb-card { flex-direction: column; max-height: 100vh; border-radius: 0; }
  .lb-image-wrap { flex: 0 0 48%; min-height: 220px; }
  .lb-info { flex: none; border-left: none; border-top: 1px solid var(--accent-soft); overflow-y: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .lb-nav { display: flex; font-size: 1.25rem; padding: 0.6rem 0.9rem; top: 24%; }
  .lb-nav.prev { left: 0.4rem; }
  .lb-nav.next { right: 0.4rem; }
  .lb-dots { display: flex; }
}
