:root {
  --bg: #0e0f11;         /* deep charcoal */
  --panel: #14161a;      /* card bg */
  --ink: #f5f6f7;        /* primary text */
  --muted: #b7bcc4;      /* secondary text */
  --accent: #a1c4fd;     /* subtle blue */
  --accent2: #fdbb2d;    /* warm contrast */
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --maxw: 1100px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 10% -10%, rgba(161,196,253,.08), transparent),
              radial-gradient(900px 600px at 110% 10%, rgba(253,187,45,.06), transparent),
              var(--bg);
  color: var(--ink);
  line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px 24px 24px; }

/* Header / Nav */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1.25rem;
}

.header-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-sizing: border-box;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  white-space: nowrap;
}

/* Unified Mobile Navigation with Visible Fade Cue */
nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  white-space: nowrap;
  max-width: 100%;
  padding-bottom: 6px;
  padding-right: 2.5rem; /* Extra room so Contact isn't hidden */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; 
  
  /* Stronger gradient mask so it's clearly scrollable */
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 75%, rgba(0,0,0,0.1) 98%);
  mask-image: linear-gradient(to right, rgba(0,0,0,1) 75%, rgba(0,0,0,0.1) 98%);
}

nav::-webkit-scrollbar {
  display: none;
}

nav a {
  color: #e5e5e5;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
}

nav a:hover,
nav a:active {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

@media (max-width: 640px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Brand Title */
.brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  white-space: nowrap;
}

/* Mobile Navigation (Clean Horizontal Scroll) */
nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}

nav::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

nav a {
  color: #e5e5e5;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
}

nav a:hover,
nav a:active {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Responsive adjustments for mobile viewports */
@media (max-width: 640px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 0.25rem;
  }
}

/* Hero */
.hero { 
  display: grid; 
  grid-template-columns: 1.1fr .9fr; 
  gap: 24px; 
  align-items: center; 
  padding: 6px 0 10px;
  margin-top: 0;
}
.card { background: var(--panel); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero .intro { padding: 28px; }
h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin: 0 0 10px; }
.subtitle { color: var(--muted); font-size: 16px; }
.hero .preview { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.06); }
.hero .preview img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.05) contrast(1.02); }

/* Stack hero vertically on smaller screens */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 8px;
  }
}

/* Sections */
section { padding: 28px 0; }
section h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 14px; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.art { grid-column: span 4; display: flex; flex-direction: column; gap: 10px; }
.art .thumb { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); background: #0b0c0f; }
.art .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; display: block; }
.art:hover .thumb img { transform: scale(1.03); }
.art .meta { display: flex; align-items: baseline; gap: 10px; }
.art .title { font-weight: 600; }
.art .year, .art .medium { color: var(--muted); font-size: 14px; }

/* Exhibitions */
.exhibitions { display: grid; gap: 10px; }
.exhibit { display: grid; grid-template-columns: 1.2fr 3fr; gap: 16px; padding: 16px; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; background: rgba(255,255,255,.03); }
.exhibit .when { color: var(--muted); font-size: 14px; }
.exhibit .where { font-weight: 600; }
.exhibit .desc { color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cv { padding: 16px; border: 1px dashed rgba(255,255,255,.12); border-radius: 12px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.contact form { display: grid; gap: 10px; }
.field { display: grid; gap: 6px; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: var(--ink); }
.btn { display: inline-block; padding: 12px 16px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #111; font-weight: 700; border: none; cursor: pointer; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: none; align-items: center; justify-content: center; padding: 28px; z-index: 100; }
.lightbox.open { display: flex; }
.lightbox figure { max-width: min(1200px, 92vw); max-height: 88vh; display: grid; gap: 10px; }
.lightbox img { width: 100%; max-height: 72vh; object-fit: contain; border-radius: 12px; }
.lightbox figcaption { color: #e3e6ea; text-align: center; font-size: 14px; }

footer { margin-top: 26px; padding: 30px 0; color: var(--muted); border-top: 1px solid rgba(255,255,255,.06); }

/* Responsive tweaks */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .gallery-grid .art { grid-column: span 6; }
  .exhibit { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .gallery-grid .art { grid-column: span 12; }
}

#artistChinese {
    font-size: clamp(36px, 6vw, 72px);  /* scales with screen size */
    font-weight: 700;
    color: gold;                         /* or try #d4af37 for a deeper gold */
    margin-bottom: 12px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4); /* subtle glow so it pops */
    letter-spacing: 4px;                 /* adds some spacing */
  }

/* Gold brushstroke divider under Chinese name */
.brushstroke {
  height: 10px;
  margin: 8px 0 6px;
  background: linear-gradient(90deg, rgba(212,175,55,0.0), rgba(212,175,55,0.9) 15%, rgba(212,175,55,0.7) 60%, rgba(212,175,55,0.0) 95%);
  border-radius: 999px;
  filter: blur(0.4px);
}

/* Subtle canvas texture on the hero intro card */
.intro.card {
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(1200px 600px at -10% -10%, rgba(253,187,45,0.06), transparent 60%),
    radial-gradient(900px 500px at 110% 0%, rgba(161,196,253,0.07), transparent 60%);
}
.intro.card::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .10;
  mix-blend-mode: overlay;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.05) 0 1px, transparent 1px 4px);
}

/* Mini gallery strip (thumbnails) */
.mini-strip {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.mini-item {
  grid-column: span 3;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: #0b0c0f;
  cursor: pointer;
}
.mini-item img {
  width: 100%; height: 100%;
  aspect-ratio: 4/3; object-fit: cover;
  transition: transform .35s ease, opacity .35s ease;
  display: block;
}
.mini-item:hover img { transform: scale(1.04); }

.mini-cap {
  position: absolute; left: 8px; bottom: 8px; right: 8px;
  font-size: 12px; line-height: 1.2;
  background: rgba(0,0,0,.45);
  padding: 6px 8px; border-radius: 10px;
  color: #e9edf2;
}

/* Responsive */
@media (max-width: 980px) {
  .mini-item { grid-column: span 6; }
}
@media (max-width: 640px) {
  .mini-item { grid-column: span 12; }

/* Gold brushstroke divider under Chinese name */
.brushstroke {
    height: 10px;
    margin: 8px 0 6px;
    background: linear-gradient(90deg, rgba(212,175,55,0.0), rgba(212,175,55,0.9) 15%, rgba(212,175,55,0.7) 60%, rgba(212,175,55,0.0) 95%);
    border-radius: 999px;
    filter: blur(0.4px);
  }

/* Subtle canvas texture on the hero intro card */
.intro.card {
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(1200px 600px at -10% -10%, rgba(253,187,45,0.06), transparent 60%),
    radial-gradient(900px 500px at 110% 0%, rgba(161,196,253,0.07), transparent 60%);
}
.intro.card::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .10;
  mix-blend-mode: overlay;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.05) 0 1px, transparent 1px 4px);
}

/* Mini gallery strip (thumbnails) */
.mini-strip {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.mini-item {
  grid-column: span 3;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: #0b0c0f;
  cursor: pointer;
}
.mini-item img {
  width: 100%; height: 100%;
  aspect-ratio: 4/3; object-fit: cover;
  transition: transform .35s ease, opacity .35s ease;
  display: block;
}
.mini-item:hover img { transform: scale(1.04); }

.mini-cap {
  position: absolute; left: 8px; bottom: 8px; right: 8px;
  font-size: 12px; line-height: 1.2;
  background: rgba(0,0,0,.45);
  padding: 6px 8px; border-radius: 10px;
  color: #e9edf2;
}

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .gallery-grid .art { grid-column: span 6; }
  .exhibit { grid-template-columns: 1fr; }
  .mini-item { grid-column: span 6; }
}
@media (max-width: 640px) {
  .gallery-grid .art { grid-column: span 12; }
  .mini-item { grid-column: span 12; }
}

/* About Section Typography */
#bioText {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 24px;
}

.artist-statement {
  border-left: 2px solid var(--accent2); /* Subtle gold accent border */
  padding-left: 20px;
  margin-top: 20px;
}

.artist-statement h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent2);
  margin: 0 0 12px 0;
}

.artist-statement p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #d1d5db;
  margin-bottom: 12px;
}

/* Emphasize the core thesis statement */
.artist-statement p.lead-quote {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  font-style: italic;
  line-height: 1.6;
}}