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

:root {
  --bg: #f5f1eb;
  --bg-alt: #eee8df;
  --text: #1a1a1a;
  --text-light: #6b6156;
  --text-muted: #9a8f82;
  --accent: #8b2020;
  --accent-light: #a63030;
  --border: #d4cdc3;
  --white: #ffffff;
  --shadow: rgba(26,26,26,0.08);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --nav-height: 80px;
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── LOADER ─── */
.loader-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s var(--transition), visibility 0.8s;
}
.loader-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-text {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 300; letter-spacing: 0.3em;
  color: var(--text-light);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ opacity:0.3 } 50%{ opacity:1 } }

/* ─── NAVIGATION ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(245,241,235,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 1px 20px var(--shadow); }

.nav-inner {
  width: 100%; max-width: 1400px; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 400; letter-spacing: 0.15em;
  color: var(--text); text-decoration: none; text-transform: uppercase;
}
.nav-brand span { font-weight: 300; color: var(--text-light); }

.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  font-size: 0.75rem; font-weight: 400; letter-spacing: 0.2em;
  text-transform: uppercase; text-decoration: none;
  color: var(--text-light); position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.4s var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 30px; height: 20px; position: relative;
}
.nav-toggle span {
  display: block; width: 100%; height: 1.5px; background: var(--text);
  position: absolute; left: 0; transition: all 0.3s;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }
.nav-toggle.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ─── MOBILE MENU ─── */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all 0.5s var(--transition);
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu-links { list-style: none; text-align: center; }
.mobile-menu-links li { margin: 20px 0; }
.mobile-menu-links a {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 300; letter-spacing: 0.1em;
  text-decoration: none; color: var(--text);
  transition: color 0.3s;
}
.mobile-menu-links a:hover { color: var(--accent); }

/* ─── PAGE SECTIONS ─── */
.page { display: none; min-height: 100vh; padding-top: var(--nav-height); }
.page.active { display: block; }

/* ─── HERO ─── */
.hero {
  height: calc(100vh - var(--nav-height));
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-slideshow {
  position: absolute; inset: 0;
  display: flex;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.5s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.35) saturate(0.8);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 40px;
  animation: fadeUp 1.2s ease 0.5s both;
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(30px); }
  to { opacity:1; transform:translateY(0); }
}
.hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.7rem; font-weight: 400; letter-spacing: 0.4em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300; line-height: 1.05;
  color: var(--white); letter-spacing: 0.05em;
  margin-bottom: 24px;
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 300; font-style: italic;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
}
.hero-cta {
  display: inline-block; padding: 14px 50px;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white); text-decoration: none;
  font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase;
  transition: all 0.4s var(--transition);
}
.hero-cta:hover {
  background: var(--white); color: var(--text);
  border-color: var(--white);
}
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%); z-index: 2;
  color: rgba(255,255,255,0.5);
  animation: bobble 2s ease-in-out infinite;
}
@keyframes bobble { 0%,100%{ transform:translateX(-50%) translateY(0) } 50%{ transform:translateX(-50%) translateY(8px) } }
.hero-scroll svg { width: 20px; height: 20px; }

/* ─── SELECTED WORKS SLIDER ─── */
.slider-section {
  padding: 100px 0 80px;
  overflow: hidden;
}
.section-label {
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 50px; text-align: center;
}
.slider-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  height: 520px;
  perspective: 1200px;
}
.slider-track {
  position: relative;
  width: 100%; height: 100%;
}
.slider-slide {
  position: absolute;
  top: 50%; left: 50%;
  width: 520px; height: 480px;
  transform: translate(-50%, -50%) scale(0.7);
  transition: all 0.7s var(--transition);
  opacity: 0;
  z-index: 1;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}
.slider-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Active center slide */
.slider-slide.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  z-index: 5;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

/* Previous slide (left) */
.slider-slide.prev {
  transform: translate(calc(-50% - 420px), -50%) scale(0.75);
  opacity: 0.6;
  z-index: 3;
  filter: brightness(0.7);
}

/* Next slide (right) */
.slider-slide.next {
  transform: translate(calc(-50% + 420px), -50%) scale(0.75);
  opacity: 0.6;
  z-index: 3;
  filter: brightness(0.7);
}

/* Far left */
.slider-slide.far-prev {
  transform: translate(calc(-50% - 700px), -50%) scale(0.55);
  opacity: 0.25;
  z-index: 1;
  filter: brightness(0.5);
}

/* Far right */
.slider-slide.far-next {
  transform: translate(calc(-50% + 700px), -50%) scale(0.55);
  opacity: 0.25;
  z-index: 1;
  filter: brightness(0.5);
}

/* Navigation buttons */
.slider-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: rgba(245,241,235,0.85);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light);
  transition: all 0.3s var(--transition);
}
.slider-btn:hover {
  background: var(--white);
  border-color: var(--text-muted);
  color: var(--text);
  box-shadow: 0 4px 20px var(--shadow);
}
.slider-prev { left: 40px; }
.slider-next { right: 40px; }

/* Caption */
.slider-caption {
  text-align: center;
  margin-top: 30px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-light);
  min-height: 1.5em;
  transition: opacity 0.4s;
}

/* ─── QUOTE SECTION ─── */
.quote-section {
  padding: 120px 40px;
  text-align: center;
  background: var(--bg-alt);
}
.quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300; font-style: italic;
  line-height: 1.6; color: var(--text);
  max-width: 800px; margin: 0 auto 30px;
}
.quote-author {
  font-size: 0.75rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-muted);
}

/* ─── GALLERY ─── */
.gallery-header {
  text-align: center;
  padding: 80px 40px 50px;
}
.gallery-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300; letter-spacing: 0.08em;
  margin-bottom: 15px;
}
.gallery-desc {
  font-size: 0.85rem; color: var(--text-light);
  max-width: 600px; margin: 0 auto;
  line-height: 1.8;
}

.gallery-masonry {
  columns: 3; column-gap: 16px;
  padding: 0 40px 100px;
  max-width: 1400px; margin: 0 auto;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.gallery-item img {
  width: 100%; display: block;
  transition: transform 0.7s var(--transition), filter 0.4s;
}
.gallery-item:hover img {
  transform: scale(1.02);
  filter: brightness(0.9);
}
.gallery-item-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 40px 20px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  transform: translateY(100%);
  transition: transform 0.4s var(--transition);
}
.gallery-item:hover .gallery-item-info { transform: translateY(0); }
.gallery-item-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 400; color: var(--white);
  font-style: italic;
}
.gallery-item-info p {
  font-size: 0.7rem; color: rgba(255,255,255,0.7);
  letter-spacing: 0.1em; margin-top: 4px;
}

/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all 0.4s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 90vw; max-height: 85vh;
  object-fit: contain;
  animation: lbIn 0.4s ease;
}
@keyframes lbIn { from { transform: scale(0.9); opacity: 0; } }
.lightbox-close {
  position: absolute; top: 30px; right: 30px;
  background: none; border: none; color: rgba(255,255,255,0.7);
  font-size: 1.5rem; cursor: pointer;
  transition: color 0.3s;
}
.lightbox-close:hover { color: #fff; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: rgba(255,255,255,0.5); font-size: 2rem;
  cursor: pointer; padding: 20px;
  transition: color 0.3s;
}
.lightbox-nav:hover { color: #fff; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-caption {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  text-align: center; color: rgba(255,255,255,0.7);
}
.lightbox-caption h3 {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 400; font-style: italic;
}
.lightbox-caption p { font-size: 0.7rem; letter-spacing: 0.1em; margin-top: 5px; }

/* ─── ABOUT ─── */
.about-hero {
  padding: 80px 40px 0;
  text-align: center;
}
.about-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300; letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.about-hero p {
  font-size: 0.75rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-muted);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  padding: 80px 40px 100px;
  max-width: 1200px; margin: 0 auto;
  align-items: start;
}
.about-image {
  position: sticky; top: 120px;
}
.about-image img {
  width: 100%; display: block;
  filter: grayscale(0.2);
  transition: filter 0.5s;
}
.about-image img:hover { filter: grayscale(0); }
.about-image figcaption {
  margin-top: 15px;
  font-family: var(--font-display);
  font-size: 0.9rem; font-style: italic;
  color: var(--text-light);
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 400;
  margin-bottom: 25px; color: var(--text);
}
.about-text p {
  font-size: 0.9rem; color: var(--text-light);
  margin-bottom: 20px; line-height: 1.9;
}
.about-text .highlight {
  font-family: var(--font-display);
  font-size: 1.3rem; font-style: italic;
  color: var(--accent); line-height: 1.7;
  border-left: 2px solid var(--accent);
  padding-left: 25px; margin: 35px 0;
}

.cv-section {
  margin-top: 50px; padding-top: 50px;
  border-top: 1px solid var(--border);
}
.cv-section h3 {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 400;
  margin-bottom: 25px;
}
.cv-item {
  display: flex; gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(212,205,195,0.5);
}
.cv-year {
  flex: 0 0 80px;
  font-size: 0.75rem; font-weight: 500;
  color: var(--accent); letter-spacing: 0.05em;
}
.cv-desc {
  font-size: 0.85rem; color: var(--text-light);
  line-height: 1.6;
}

/* ─── EXHIBITION ─── */
.exhibition-section {
  padding: 100px 40px;
  background: var(--bg-alt);
}
.exhibition-inner {
  max-width: 900px; margin: 0 auto; text-align: center;
}
.exhibition-label {
  font-size: 0.65rem; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 20px;
}
.exhibition-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300; font-style: italic;
  margin-bottom: 15px; color: var(--accent);
}
.exhibition-details {
  font-size: 0.85rem; color: var(--text-light);
  line-height: 2;
}
.exhibition-details strong {
  font-weight: 500; color: var(--text);
}

/* ─── CONTACT ─── */
.contact-content {
  max-width: 700px; margin: 0 auto;
  padding: 80px 40px 100px;
  text-align: center;
}
.contact-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300; letter-spacing: 0.05em;
  margin-bottom: 30px;
}
.contact-content p {
  font-size: 0.9rem; color: var(--text-light);
  line-height: 1.9; margin-bottom: 15px;
}
.contact-content a {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.contact-content a:hover { border-bottom-color: var(--accent); }

.contact-form {
  margin-top: 50px; text-align: left;
}
.form-group { margin-bottom: 25px; }
.form-group label {
  display: block; font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 8px;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 14px 0;
  border: none; border-bottom: 1px solid var(--border);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9rem; color: var(--text);
  transition: border-color 0.3s;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-bottom-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit {
  display: inline-block; padding: 14px 50px;
  background: var(--text); color: var(--white);
  border: none; cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.7rem; letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: all 0.3s;
}
.form-submit:hover { background: var(--accent); }

/* ─── FOOTER ─── */
.footer {
  padding: 60px 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 400;
  letter-spacing: 0.15em; margin-bottom: 15px;
}
.footer p {
  font-size: 0.7rem; color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ─── SCROLL ANIMATIONS ─── */
.fade-in {
  opacity: 0; transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .gallery-masonry { columns: 2; }
  .about-content { grid-template-columns: 1fr; gap: 40px; }
  .about-image { position: static; max-width: 400px; margin: 0 auto; }
  .slider-slide { width: 400px; height: 380px; }
  .slider-slide.prev { transform: translate(calc(-50% - 320px), -50%) scale(0.75); }
  .slider-slide.next { transform: translate(calc(-50% + 320px), -50%) scale(0.75); }
  .slider-slide.far-prev { transform: translate(calc(-50% - 520px), -50%) scale(0.55); }
  .slider-slide.far-next { transform: translate(calc(-50% + 520px), -50%) scale(0.55); }
  .slider-wrapper { height: 420px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }
  .gallery-masonry { columns: 2; padding: 0 20px 60px; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }
  .slider-section, .quote-section, .gallery-header, .exhibition-section { padding-left: 20px; padding-right: 20px; }
  .slider-slide { width: 300px; height: 300px; }
  .slider-slide.prev { transform: translate(calc(-50% - 230px), -50%) scale(0.7); }
  .slider-slide.next { transform: translate(calc(-50% + 230px), -50%) scale(0.7); }
  .slider-slide.far-prev, .slider-slide.far-next { opacity: 0; }
  .slider-wrapper { height: 340px; }
  .slider-prev { left: 15px; }
  .slider-next { right: 15px; }
  .slider-btn { width: 40px; height: 40px; }
}
@media (max-width: 480px) {
  .gallery-masonry { columns: 1; }
  .slider-slide { width: 260px; height: 280px; }
  .slider-slide.prev { transform: translate(calc(-50% - 180px), -50%) scale(0.65); }
  .slider-slide.next { transform: translate(calc(-50% + 180px), -50%) scale(0.65); }
  .slider-wrapper { height: 320px; }
}

