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

:root {
  --paper:   #F4EFE6;
  --cream:   #FAF7F2;
  --ink:     #1A1410;
  --rust:    #7D3520;
  --tan:     #A8917A;
  --border:  #D6CAБА;
  --nav-h:   64px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  font-style: italic;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── NAV ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  transition: background 0.45s ease, border-color 0.45s ease, backdrop-filter 0.45s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
}
.nav.solid {
  background: var(--cream);
  border-bottom-color: var(--border);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: white;
  transition: color 0.4s ease;
}
.nav.scrolled .nav-logo,
.nav.solid   .nav-logo { color: var(--ink); }

.nav-links {
  display: flex;
  gap: 44px;
  align-items: center;
}
.nav-links a {
  font-family: 'EB Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.35s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav.scrolled .nav-links a,
.nav.solid   .nav-links a { color: var(--ink); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: white;
  transition: background 0.4s, transform 0.3s, opacity 0.3s;
}
.nav.scrolled .nav-burger span,
.nav.solid   .nav-burger span { background: var(--ink); }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ─────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  background: url('images/gallery-hero-final.png') no-repeat center center / cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 26vh;
  text-align: center;
  color: white;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(12,7,3,0.52) 0%,
    rgba(12,7,3,0.38) 45%,
    rgba(12,7,3,0.62) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero-eyebrow {
  font-family: 'EB Garamond', serif;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  animation: fadeUp 1s 0.2s both;
}
.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 10vw, 8.5rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 0.92;
  animation: fadeUp 1.1s 0.4s both;
}
.hero-rule {
  width: 56px;
  height: 1px;
  background: rgba(255,255,255,0.42);
  animation: fadeUp 0.9s 0.65s both;
}
.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.82);
  animation: fadeUp 1s 0.85s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-cta {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: 'EB Garamond', serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  animation: fadeUp 1s 1.3s both;
  transition: color 0.3s;
}
.hero-cta:hover { color: rgba(255,255,255,0.85); }
.hero-cta svg {
  width: 18px; height: 18px;
  animation: arrowBob 2.2s 1.8s infinite ease-in-out;
}
@keyframes arrowBob {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(7px); }
}

/* ── TEASER ─────────────────────────────────────── */
.teaser-section {
  background: var(--ink);
  padding: 80px 48px;
}
.teaser-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.teaser-rule {
  width: 48px;
  height: 1px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.teaser-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.92);
  text-align: center;
}

.teaser-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.85;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.01em;
}

/* ── GALLERY ─────────────────────────────────────── */
.gallery-section {
  padding: 88px 48px 80px;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 44px;
}
.section-eyebrow {
  font-family: 'EB Garamond', serif;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rust);
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.section-count {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--tan);
  letter-spacing: 0.04em;
}

.gallery-grid {
  columns: 3;
  column-gap: 22px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #2a211a;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.65s cubic-bezier(0.25,0.46,0.45,0.94),
              opacity   0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,8,3,0.82) 0%, rgba(15,8,3,0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.42s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.overlay-series {
  font-family: 'EB Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
}
.overlay-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 300;
  color: white;
  margin-bottom: 10px;
}
.overlay-cta {
  font-family: 'EB Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.28);
  padding-bottom: 1px;
}

/* ── ABOUT ──────────────────────────────────────── */
.about-section {
  padding: 96px 48px;
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 80px;
  align-items: start;
}
.about-sticky {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: sepia(18%) contrast(1.06) brightness(0.98);
  display: block;
}
.about-photo-caption {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--tan);
  line-height: 1.5;
}
.about-body {
  padding-top: 8px;
}
.about-body .section-eyebrow { margin-bottom: 10px; }
.about-body .section-title   { margin-bottom: 32px; }
.about-body p {
  font-size: 1.12rem;
  line-height: 1.88;
  color: var(--ink);
  margin-bottom: 22px;
  font-family: 'EB Garamond', serif;
}
.about-body p:last-child { margin-bottom: 0; }

/* ── PROCESS ────────────────────────────────────── */
.process-section {
  padding: 96px 48px;
  background: var(--paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.process-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.process-header {
  position: static;
}
.process-header .section-title {
  margin-top: 10px;
}
.process-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
  filter: sepia(10%) contrast(1.04);
}
.process-body p {
  font-family: 'EB Garamond', serif;
  font-size: 1.12rem;
  line-height: 1.88;
  color: var(--ink);
  margin-bottom: 22px;
}
.process-body p:last-child { margin-bottom: 0; }

/* ── CONTACT ────────────────────────────────────── */
.contact-section {
  padding: 96px 48px;
}
.contact-inner {
  max-width: 860px;
  margin: 0 auto;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 48px;
  border: 1px solid var(--border);
}
.contact-item {
  padding: 30px 36px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: background 0.3s ease;
}
.contact-item:hover { background: var(--cream); }
.contact-label {
  font-family: 'EB Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tan);
}
.contact-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: color 0.3s ease;
}
.contact-item:hover .contact-value { color: var(--rust); }

/* ── FOOTER ─────────────────────────────────────── */
footer {
  padding: 28px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
footer p {
  font-family: 'EB Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--tan);
}
footer a {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--tan);
  transition: color 0.3s;
}
footer a:hover { color: var(--ink); }

/* ── ARTWORK PAGE ───────────────────────────────── */
.artwork-page { padding-top: var(--nav-h); min-height: 100vh; }

.artwork-crumb {
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.crumb-back {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'EB Garamond', serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tan);
  transition: color 0.3s;
}
.crumb-back:hover { color: var(--ink); }
.crumb-back svg { width: 16px; height: 16px; }
.crumb-counter {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--tan);
}

.artwork-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: calc(100vh - var(--nav-h) - 65px);
}
.artwork-canvas {
  background: #17110C;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px;
}
.artwork-canvas img {
  max-height: calc(100vh - 200px);
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 90px rgba(0,0,0,0.55);
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  animation: imgReveal 0.7s ease both;
}
@keyframes imgReveal {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
.artwork-details {
  padding: 56px 48px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.artwork-details .section-eyebrow { margin-bottom: 10px; }
.artwork-series-label {
  font-family: 'EB Garamond', serif;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 10px;
}
.artwork-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 2.6rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 40px;
}
.artwork-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}
.meta-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.meta-label {
  font-family: 'EB Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--tan);
}
.meta-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.artwork-description {
  padding-top: 24px;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--tan);
  flex: 1;
}

.artwork-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 40px;
}
.artwork-nav-btn {
  padding: 14px 10px;
  border: 1px solid var(--border);
  background: none;
  font-family: 'EB Garamond', serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.artwork-nav-btn:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.artwork-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.artwork-nav-btn:disabled:hover {
  background: none;
  color: var(--ink);
  border-color: var(--border);
}


/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 960px) {
  .process-inner { grid-template-columns: 1fr; gap: 32px; }
  .process-header { position: static; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-sticky { position: static; }
  .about-photo  { max-width: 240px; }
  .artwork-layout { grid-template-columns: 1fr; }
  .artwork-canvas { padding: 40px; min-height: 50vh; }
  .artwork-canvas img { max-height: 60vh; }
  .artwork-details { border-left: none; border-top: 1px solid var(--border); }
}

@media (max-width: 720px) {
  .gallery-grid { columns: 2; column-gap: 14px; }
  .gallery-item { margin-bottom: 14px; }
  .teaser-section  { padding: 60px 24px; }
  .gallery-section { padding: 64px 24px 60px; }
  .about-section   { padding: 64px 24px; }
  .process-section { padding: 64px 24px; }
  .contact-section { padding: 64px 24px; }
  .contact-grid   { grid-template-columns: 1fr; }
  .artwork-crumb  { padding: 16px 24px; }
  .artwork-details { padding: 36px 24px; }
}

@media (max-width: 520px) {
  .nav { padding: 0 24px; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 28px 32px;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    z-index: 199;
  }
  .nav-links.open  { display: flex; }
  .nav-links a     { font-size: 1rem; color: var(--ink); }
  .nav-burger      { display: flex; }
  .gallery-grid    { columns: 1; }
  footer           { flex-direction: column; gap: 8px; text-align: center; }
  .section-header  { flex-direction: column; gap: 4px; }
  .artwork-nav     { grid-template-columns: 1fr; }
  .artwork-canvas  { padding: 24px; }
}
