/* ===== Theme: elegant gallery ===== */
:root {
  --bg: #f7f5f1;          /* warm gallery off-white */
  --bg-alt: #efece6;
  --ink: #22201d;         /* near-black warm */
  --ink-soft: #6b655d;
  --line: #dcd7cf;
  --accent: #a4785a;      /* muted terracotta */
  --white: #ffffff;
  --max: 1200px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* ===== Reveal animation (safe: content is visible by default) ===== */
.reveal.is-visible { animation: fadeUp 0.7s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal.is-visible { animation: none; }
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 241, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2.2rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--ink);
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  min-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(164,120,90,0.10), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(120,140,130,0.10), transparent 55%),
    var(--bg);
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 1.6rem;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
}
.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: var(--ink-soft);
  margin: 1.8rem auto 2.6rem;
  max-width: 34ch;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 0.95rem 2.2rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}
.btn:hover { background: var(--ink); color: var(--bg); }

/* ===== Sections ===== */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6.5rem 1.5rem;
}
.section-head { margin-bottom: 3.5rem; max-width: 60ch; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-num {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}
.section-lead {
  color: var(--ink-soft);
  margin-top: 1rem;
  font-size: 1.05rem;
}

/* ===== Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.gallery-item {
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.gallery-item .ph {
  aspect-ratio: 4 / 5;
  transition: transform 0.6s ease;
}
.gallery-item:hover .ph { transform: scale(1.04); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.2rem 1.1rem;
  background: linear-gradient(to top, rgba(34,32,29,0.72), transparent);
  color: var(--white);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s ease;
}
.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }
.fc-title { display: block; font-family: var(--serif); font-size: 1.3rem; }
.fc-meta { display: block; font-size: 0.78rem; letter-spacing: 0.08em; opacity: 0.85; }

/* Placeholder art swatches (replace .ph blocks with real <img>) */
.ph { width: 100%; background-size: cover; background-position: center; }
.ph-1 { background: linear-gradient(135deg, #c9a27a, #7d5a44); }
.ph-2 { background: linear-gradient(135deg, #b7c4a6, #6f8466); }
.ph-3 { background: linear-gradient(135deg, #a9c1cc, #5f7f8c); }
.ph-4 { background: linear-gradient(135deg, #d8c39a, #a4785a); }
.ph-5 { background: linear-gradient(135deg, #c2a3ae, #7c5c69); }
.ph-6 { background: linear-gradient(135deg, #cbb89a, #8a7a5c); }
.ph-portrait { aspect-ratio: 3 / 4; background: linear-gradient(135deg, #d5cec2, #a99f8d); }

/* ===== About ===== */
.about { background: var(--bg-alt); max-width: none; }
.about-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: center;
}
.about-text p { margin-bottom: 1.2rem; font-size: 1.08rem; color: #3d3a35; }
.about-text .section-title { margin-bottom: 1.6rem; }
.about-sign { font-style: italic; color: var(--ink-soft); font-size: 0.95rem !important; }

/* ===== Exhibitions ===== */
.exhibitions { list-style: none; border-top: 1px solid var(--line); }
.exhibitions li {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.ex-year { font-family: var(--serif); font-size: 1.3rem; color: var(--accent); }
.ex-name { font-size: 1.05rem; }
.ex-place { color: var(--ink-soft); font-size: 0.9rem; text-align: right; }
.ex-name a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color 0.25s; }
.ex-name a:hover { border-color: var(--accent); }
.ex-work { font-size: 0.85rem; color: var(--ink-soft); }
.muted-note { margin-top: 1.4rem; font-size: 0.85rem; color: var(--ink-soft); font-style: italic; }

/* ===== Contact ===== */
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.contact-email {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}
.contact-email:hover { color: var(--accent); border-color: var(--accent); }
.socials { display: flex; gap: 1.8rem; }
.socials a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.socials a:hover { color: var(--accent); }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.footer-domain { margin-top: 0.4rem; letter-spacing: 0.1em; color: var(--accent); }
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  transition: color 0.25s;
}
.footer-social:hover { color: var(--accent); }
.footer-social svg { width: 18px; height: 18px; }

/* ===== Project cards (home Work section) ===== */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.4rem;
}
.project-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
.project-card .pc-img {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 0.6s ease;
}
.project-card:hover .pc-img { transform: scale(1.03); }
.pc-body { padding: 1.1rem 0.1rem 0; }
.pc-title { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; }
.pc-meta {
  display: block;
  color: var(--ink-soft);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* ===== Project page ===== */
.project-hero { text-align: center; padding: 4.5rem 1.5rem 1rem; }
.project-hero .hero-eyebrow { margin-bottom: 1rem; }
.project-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 1;
  letter-spacing: 0.04em;
}
.project-hero .project-meta {
  color: var(--ink-soft);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-top: 1rem;
}
.project-final {
  max-width: 620px;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
}
.project-final img { width: 100%; }
.project-final-wide { max-width: 900px; }

/* Diptych — two panels facing each other */
.diptych {
  max-width: 900px;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: start;
}
.diptych img { width: 100%; display: block; }
@media (max-width: 620px) {
  .diptych { grid-template-columns: 1fr; gap: 1.6rem; max-width: 420px; }
}
.process-head { text-align: center; margin: 4.5rem 0 0.4rem; }
.process-gallery {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.process-item { cursor: pointer; overflow: hidden; margin: 0; }
.process-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.process-item:hover img { transform: scale(1.05); }

@media (max-width: 620px) {
  .process-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Standalone page (About) ===== */
.page-hero {
  text-align: center;
  padding: 6rem 1.5rem 2rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(164,120,90,0.10), transparent 55%),
    var(--bg);
}
.page-hero .hero-eyebrow { margin-bottom: 1.2rem; }
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  line-height: 1.02;
}
.prose {
  max-width: 68ch;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.prose p {
  margin-bottom: 1.35rem;
  font-size: 1.1rem;
  color: #3d3a35;
}
.prose-bio p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 3.2rem;
  line-height: 0.8;
  float: left;
  margin: 0.15rem 0.6rem 0 0;
  color: var(--accent);
}
.prose-divider { width: 64px; height: 1px; background: var(--accent); margin: 1rem auto 0; opacity: 0.6; }
.prose-heading {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  text-align: center;
  margin: 4rem 0 0.4rem;
}
.prose-sub {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.prose-statement p { font-style: normal; }
.back-home {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.25s;
}
.back-home:hover { color: var(--accent); }
.read-more {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(24, 22, 20, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  background: none; border: none;
  color: #fff; font-size: 2.6rem;
  cursor: pointer; line-height: 1;
}
.lightbox-content { text-align: center; max-width: 720px; width: 100%; }
.lightbox-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 72vh;
  background-size: cover;
  background-position: center;
  margin: 0 auto;
}
.lightbox-caption { margin-top: 1.2rem; color: #fff; }
.lb-title { display: block; font-family: var(--serif); font-size: 1.6rem; }
.lb-meta { display: block; font-size: 0.85rem; letter-spacing: 0.1em; opacity: 0.8; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-portrait { max-width: 360px; margin: 0 auto; }
}
@media (max-width: 620px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0.7rem 0; }
  .gallery { grid-template-columns: 1fr; }
  .exhibitions li { grid-template-columns: 60px 1fr; }
  .ex-place { grid-column: 2; }
}
