:root {
  --ink: #1a1612;
  --paper: #f5f0e8;
  --warm: #c8a96e;
  --muted: #8a7e72;
  --light: #e8e0d0;
}
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Image protection ── */
img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}
.gallery-item, .hero-image-container, .lightbox-canvas-wrap {
  -webkit-user-select: none;
  user-select: none;
  position: relative;
}
/* Transparent overlay blocks drag/touch-save on the gallery cards */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}
/* Lightbox canvas */
#lightbox-img {
  max-width: 96vw;
  max-height: 82vh;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
  object-fit: contain;
}
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 60px;
  background: linear-gradient(to bottom, rgba(245,240,232,0.95) 0%, transparent 100%);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.nav-links a:hover { opacity: 1; }

/* ── Hamburger (hidden on desktop) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 102;
  position: relative;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
nav.menu-open .nav-hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
nav.menu-open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
nav.menu-open .nav-hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* HERO */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 60px 80px;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 7vw, 8rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp 1s 0.5s forwards;
}
.hero-title em { font-style: normal; color: var(--warm); }
.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  margin-top: 20px;
  margin-bottom: 48px;
  max-width: 340px;
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp 1s 0.7s forwards;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  opacity: 0;
  animation: fadeUp 1s 0.9s forwards;
  transition: gap 0.3s;
}
.hero-cta:hover { gap: 24px; }
.hero-cta::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--warm);
  transition: width 0.3s;
}
.hero-cta:hover::after { width: 60px; }
.hero-right {
  position: relative;
  overflow: hidden;
}
.hero-image-container {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: fadeIn 1.5s 0.2s forwards;
}
.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(10%) contrast(1.05);
}
.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--paper) 0%, transparent 30%),
              linear-gradient(to top, var(--paper) 0%, transparent 20%);
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 1s 1.2s forwards;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--warm);
  animation: lineGrow 2s 1.5s ease-out forwards;
  transform-origin: top;
  transform: scaleY(0);
}

/* ABOUT */
.about {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
  background: var(--ink);
  color: var(--paper);
  padding: 120px 60px;
}
.about-left { position: sticky; top: 100px; }
.about-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 16px;
}
.about-name span {
  display: block;
  font-style: italic;
  color: var(--warm);
  font-size: 1.2rem;
  margin-top: 8px;
}
.about-meta {
  margin-top: 32px;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm);
  opacity: 0.8;
  line-height: 2.5;
}
.about-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(245, 240, 232, 0.85);
  margin-bottom: 40px;
}
.about-text-small {
  font-size: 0.8rem;
  line-height: 2;
  color: rgba(245, 240, 232, 0.5);
  font-weight: 200;
}
.awards-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.award-item {
  padding: 24px;
  border: 1px solid rgba(200, 169, 110, 0.15);
  transition: border-color 0.3s, background 0.3s;
}
.award-item:hover {
  border-color: rgba(200, 169, 110, 0.4);
  background: rgba(200, 169, 110, 0.05);
}
.award-year { font-size: 0.6rem; letter-spacing: 0.2em; color: var(--warm); margin-bottom: 8px; }
.award-text { font-size: 0.75rem; line-height: 1.6; color: rgba(245, 240, 232, 0.6); font-weight: 200; }

/* WORKS */
.works { background: var(--paper); padding: 120px 0; }
.works-header {
  padding: 0 60px;
  margin-bottom: 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.works-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1;
}
.works-filter { display: flex; gap: 24px; align-items: center; }
.filter-btn {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
}
.filter-btn.active, .filter-btn:hover { color: var(--ink); border-bottom-color: var(--warm); }

/* GALLERY */
.gallery-masonry { columns: 3; column-gap: 3px; padding: 0 3px; }
.gallery-item {
  break-inside: avoid;
  margin-bottom: 3px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s;
}
.gallery-item:hover img { transform: scale(1.04); filter: grayscale(10%); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,22,18,0.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-info { color: var(--paper); }
.gallery-item-title { font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-weight: 300; font-style: italic; }
.gallery-item-year { font-size: 0.6rem; letter-spacing: 0.2em; color: var(--warm); margin-top: 4px; }

/* ── SERIES PANELS ─────────────────────────────────────────────── */
.sp {
  border-top: 1px solid rgba(26,22,18,0.1);
}
.sp:last-child { border-bottom: 1px solid rgba(26,22,18,0.1); }

/* Header row — featured image + text side by side */
.sp-header {
  display: grid;
  grid-template-columns: 38% 1fr;
  cursor: pointer;
  min-height: 300px;
  transition: background 0.3s;
}
.sp-header:hover { background: rgba(200,169,110,0.04); }

/* Featured image */
.sp-feat-wrap {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.sp-feat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.7s;
  filter: grayscale(15%);
}
.sp-header:hover .sp-feat-img { transform: scale(1.05); filter: grayscale(0%); }
.sp-feat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 75%, var(--paper) 100%);
  pointer-events: none;
}

/* Info panel */
.sp-info {
  padding: 48px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.sp-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  font-weight: 300;
  color: rgba(26,22,18,0.06);
  position: absolute;
  top: 24px; right: 48px;
  line-height: 1;
  pointer-events: none;
}
.sp-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 4px;
}
.sp-zh {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--warm);
  margin-bottom: 16px;
  font-weight: 300;
}
.sp-desc {
  font-size: 0.75rem;
  line-height: 2;
  color: var(--muted);
  font-weight: 200;
  max-width: 540px;
  margin-bottom: 24px;
}
.sp-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.sp-arrow {
  font-size: 1rem;
  color: var(--warm);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  display: inline-block;
}
.sp--open .sp-arrow { transform: rotate(180deg); }

/* Expandable gallery below header — max-height set by JS to actual scrollHeight */
.sp-gallery-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.sp-gallery {
  padding: 3px 0 40px;
  border-top: 1px solid rgba(26,22,18,0.08);
  background: var(--paper);
}
.sp-masonry { columns: 3; column-gap: 3px; padding: 0 3px; }

/* CONTACT */
.contact {
  background: var(--ink);
  color: var(--paper);
  padding: 120px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.contact-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 32px;
}
.contact-title em { font-style: italic; color: var(--warm); }
.contact-text { font-size: 0.8rem; line-height: 2; color: rgba(245,240,232,0.5); font-weight: 200; margin-bottom: 48px; }
.contact-links { display: flex; flex-direction: column; gap: 16px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
  transition: gap 0.3s;
}
.contact-link:hover { gap: 30px; }
.contact-link-line { width: 30px; height: 1px; background: var(--warm); transition: width 0.3s; }
.contact-link:hover .contact-link-line { width: 50px; }
.contact-right { display: flex; flex-direction: column; gap: 16px; }
.contact-info-item {
  padding: 28px;
  border: 1px solid rgba(200, 169, 110, 0.15);
  transition: border-color 0.3s;
}
.contact-info-item:hover { border-color: rgba(200, 169, 110, 0.4); }
.contact-info-label { font-size: 0.55rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--warm); margin-bottom: 8px; }
.contact-info-value { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: rgba(245,240,232,0.8); }

/* SECTION LABELS */
.section-label {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.section-label::before { content: ''; width: 30px; height: 1px; background: var(--warm); }

/* FOOTER */
footer {
  background: #0f0d0b;
  color: rgba(245,240,232,0.3);
  padding: 32px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 13, 11, 0.97);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  transform: scale(0.95);
  transition: transform 0.4s;
}
.lightbox.active .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 32px; right: 40px;
  color: rgba(245,240,232,0.6);
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  cursor: pointer; transition: color 0.3s;
  background: none; border: none; font-family: 'Montserrat', sans-serif;
}
.lightbox-close:hover { color: var(--warm); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 1px solid rgba(200,169,110,0.3);
  color: var(--warm); width: 48px; height: 48px;
  cursor: pointer; font-size: 1.4rem; transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover { background: rgba(200,169,110,0.1); border-color: var(--warm); }
.lightbox-prev { left: 32px; }
.lightbox-next { right: 32px; }
.lightbox-caption {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  text-align: center; color: rgba(245,240,232,0.5);
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1rem;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes lineGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s, transform 0.8s;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  .nav-hamburger { display: flex; }
  .nav-logo { z-index: 102; position: relative; }
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--paper);
    z-index: 101;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    list-style: none;
  }
  nav.menu-open .nav-links { display: flex; }
  .nav-links a {
    font-size: 0.9rem !important;
    letter-spacing: 0.25em;
    opacity: 0.7;
  }
  .nav-links a:hover { opacity: 1; }

  /* ── Global: heavier font weight on mobile for readability ── */
  body { font-weight: 400; }
  .about-text { font-weight: 400; color: rgba(245,240,232,0.95); }
  .about-text-small { font-weight: 300; color: rgba(245,240,232,0.75); letter-spacing: 0.01em; }
  .about-meta { font-weight: 400; letter-spacing: 0.08em; }
  .series-desc { font-weight: 400; }
  .contact-text { font-weight: 400; }
  .award-text { font-weight: 400; }
  .hero-subtitle { font-weight: 400; color: var(--muted); }

  /* ── Hero title: darken italic JIANBO so it reads over the image ── */
  .hero-title em {
    color: #1a1a18;
    text-shadow: 0 2px 16px rgba(245,240,232,0.7);
  }

  /* ── Hero: show artwork as background on mobile ── */
  .hero {
    grid-template-columns: 1fr;
    min-height: 100svh;
    position: relative;
  }
  .hero-right {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  .hero-image-overlay {
    background: linear-gradient(to top, var(--paper) 0%, rgba(245,240,232,0.55) 50%, transparent 100%);
  }
  .hero-left {
    position: relative;
    z-index: 2;
    padding: 0 24px 64px;
    justify-content: flex-end;
    min-height: 100svh;
  }
  .hero-title {
    font-size: clamp(3.2rem, 14vw, 5rem);
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 36px;
    max-width: 100%;
  }
  .hero-eyebrow { margin-bottom: 16px; }
  .hero-scroll-indicator { left: 24px; bottom: 24px; }

  /* ── About ── */
  .about { padding: 64px 24px; grid-template-columns: 1fr; gap: 40px; }
  .about-left { position: static; }
  .about-name { font-size: 2.6rem; }
  .about-text { font-size: 1.15rem; line-height: 1.7; margin-bottom: 24px; }
  .about-text-small { font-size: 0.78rem; line-height: 1.85; }
  .awards-grid { grid-template-columns: 1fr; margin-top: 36px; }

  /* ── Works ── */
  .works { padding: 64px 0; }
  .works-header { padding: 0 24px; flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 40px; }
  .gallery-masonry { columns: 1; padding: 0 16px; column-gap: 0; }

  /* ── Series panels ── */
  .sp-header { grid-template-columns: 1fr; min-height: auto; }
  .sp-feat-wrap { height: 220px; }
  .sp-feat-overlay { background: linear-gradient(to bottom, transparent 60%, var(--paper) 100%); }
  .sp-info { padding: 28px 24px 24px; }
  .sp-num { top: 16px; right: 16px; font-size: 3.5rem; }
  .sp-desc { font-weight: 400; }
  .sp-masonry { columns: 1; padding: 0 16px; }

  /* ── Contact ── */
  .contact { padding: 64px 24px; grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 16px; text-align: center; padding: 32px 24px; }

  /* ── Lightbox: move nav to bottom, full-width image ── */
  .lightbox-nav {
    top: auto;
    bottom: 24px;
    transform: none;
  }
  .lightbox-prev { left: 24px; }
  .lightbox-next { right: 24px; }
  .lightbox-caption { bottom: 72px; width: 90vw; }
  .lightbox-close { top: 16px; right: 16px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.8rem, 16vw, 4rem); }
  .hero-subtitle { font-size: 0.95rem; }
  .about-text { font-size: 1.05rem; }
  .about-name { font-size: 2.2rem; }
  .contact-title { font-size: 2rem; }
  .works-title { font-size: 2.4rem; }
}