/* ============================================
   Yu Lei Artist Portfolio
   Pierrick Calvez Style Replica
   Enhanced: Fullscreen Hero + Selected Works Cards
   ============================================ */

:root {
  --bg: #FAFAFA;
  --bg-white: #FFFFFF;
  --text-main: #1a1a1a;
  --text-secondary: #666666;
  --text-light: #999999;
  --border: #e5e5e5;
  --accent: #000000;
  --header-height: 64px;
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', 'Noto Sans SC', sans-serif;
  --font-serif: 'Georgia', 'Noto Serif SC', serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-primary);
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: opacity 0.3s; }
a:hover { opacity: 0.6; }

/* ============================================
   HEADER / NAVIGATION (Pierrick Calvez Style)
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250,250,250,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 40px;
  transition: transform 0.3s ease;
}

.site-header.transparent {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}

.site-header.scrolled {
  background: rgba(250,250,250,0.98);
  border-bottom-color: rgba(0,0,0,0.06);
}

/* When hero is active — completely transparent so image shows through */
.site-header.on-hero {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}

.header-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-main);
}

.site-logo span {
  font-weight: 300;
  color: var(--text-light);
  margin-left: 8px;
  font-size: 13px;
}

/* When hero is active, make logo white */
.site-header.on-hero .site-logo,
.site-header.on-hero .main-nav a {
  color: #fff;
}

.site-header.on-hero .site-logo span {
  color: rgba(255,255,255,0.7);
}

.site-header.on-hero .nav-divider {
  background: rgba(255,255,255,0.3);
}

.site-header.on-hero .mobile-menu-btn span {
  background: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 400;
  position: relative;
  padding: 4px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-main);
  opacity: 1;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.nav-divider {
  width: 1px;
  height: 14px;
  background: var(--border);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.mobile-menu-btn span {
  width: 18px;
  height: 1.5px;
  background: var(--text-main);
  transition: all 0.3s ease;
  border-radius: 1px;
}

.mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-overlay a {
  font-size: 16px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

.page-wrapper {
  min-height: 100vh;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================
   FULLSCREEN HERO SECTION
   Benjamin Hardman inspired immersive hero
   with Ken Burns effect & text overlay
   ============================================ */

.hero-fullscreen {
  position: relative;
  width: 100%;
  /* Extend up behind the fixed header */
  margin-top: calc(-1 * var(--header-height));
  height: calc(100vh + var(--header-height));
  min-height: calc(600px + var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background image wrapper */
.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ken Burns: slow zoom in + subtle pan */
  animation: kenBurns 20s ease-in-out infinite alternate;
  transform-origin: center 40%;
  will-change: transform;
}

@keyframes kenBurns {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.08) translate(-0.5%, -0.3%); }
  100% { transform: scale(1.08) translate(-0.5%, -0.3%); }
}

/* Dark gradient overlay for text readability */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.35) 40%,
      rgba(0,0,0,0.25) 60%,
      rgba(0,0,0,0.45) 100%
    );
  z-index: 2;
}

/* Content overlay - centered text */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  max-width: 700px;
  padding: 0 32px;
}

.hero-name {
  margin-bottom: 16px;
}

.name-line {
  display: block;
  line-height: 1.2;
}

.name-en {
  font-family: var(--font-serif);
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #fff;
}

.name-cn {
  font-family: var(--font-primary);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 300;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.8);
  margin-top: 8px;
}

.hero-tagline {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 24px;
  font-weight: 400;
}

.hero-desc {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin: 0 auto 36px;
  font-weight: 300;
}

/* Scroll hint / CTA */
.hero-scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s;
  opacity: 0;
}

.hero-scroll-hint:hover {
  color: #fff;
  opacity: 1;
}

.scroll-arrow {
  width: 18px;
  height: 18px;
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* Side info (bottom-right or similar) */
.hero-side-info {
  position: absolute;
  bottom: 36px;
  right: 40px;
  z-index: 3;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.side-info-item {
  display: block;
}

/* ---- Hero Entrance Animations ---- */
.hero-animate {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeIn 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   SELECTED WORKS SECTION
   Horizontal large card layout
   Reference: Screenshot style (VIEW ALL + cards)
   ============================================ */

.selected-works-section {
  padding: 80px 0 60px;
}

.sw-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.sw-title {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 500;
}

.sw-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
}

.sw-view-all svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.sw-view-all:hover {
  color: var(--text-main);
  opacity: 1;
}

.sw-view-all:hover svg {
  transform: translateX(3px);
}

/* Card grid - horizontal scrollable on mobile */
.sw-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.sw-card {
  display: block;
  position: relative;
  transition: transform 0.35s ease;
}

.sw-card:hover {
  transform: translateY(-4px);
  opacity: 1;
}

.sw-card-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-white);
  margin-bottom: 14px;
}

.sw-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sw-card:hover .sw-card-image img {
  transform: scale(1.03);
}

/* Hover overlay on card image */
.sw-card-hover {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.sw-card:hover .sw-card-hover {
  opacity: 1;
}

.sw-card-hover span {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 500;
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,0.5);
}

/* Card info below image */
.sw-card-info {
  text-align: center;
}

.sw-card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.sw-card-year {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

/* ============================================
   ABOUT TEASER (below selected works)
   ============================================ */

.home-about-teaser {
  padding: 40px 0 100px;
}

.teaser-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.teaser-text {
  font-size: 14px;
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.teaser-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-main);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  transition: border-color 0.3s;
}

.teaser-link svg {
  width: 14px;
  height: 14px;
}

.teaser-link:hover {
  border-color: var(--accent);
  opacity: 1;
}

/* ============================================
   WORKS PAGE STYLES (kept for works.html)
   ============================================ */

.works-page {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
}

/* Page title & subtitle (works / exhibitions pages) */
.page-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  color: var(--text-main);
}

.page-subtitle {
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.03em;
  margin-bottom: 48px;
}

/* Hero title & subtitle (exhibitions / works pages — matches exhibitions.html style) */
.hero-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 8px;
}

/* Works Page — Top-right "WORKS" label with underline (screenshot reference) */
.works-page .page-header {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  margin-bottom: 40px;
  padding-top: 8px;
}

.works-page .page-header h1 {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-main);
  position: relative;
  padding-bottom: 10px;
}

.works-page .page-header h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--text-main);
}

.hero-subtitle {
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.03em;
}

/* Works page title area should match exhibitions layout */
.works-page > h1,
.works-page > p {
  max-width: 860px;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 28px;
  padding-left: 4px;
}

/* Works Grid (for full gallery page) */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-white);
  border-radius: 0; /* Force rectangular - never circular */
}

/* Make the link fill the entire card */
.work-item-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

.work-item:hover img {
  transform: scale(1.03);
}

.work-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 18px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.35s ease;
}

.work-item:hover .work-item-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Overlay text — force white for visibility on dark gradient */
.work-item-overlay h3,
.work-item-overlay p {
  color: #fff;
}

.work-item-title {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 3px;
  letter-spacing: 0.02em;
}

.work-item-year {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
}

/* Filter Bar (for works.html only) */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-chip {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  color: var(--text-light);
  background: transparent;
  transition: all 0.25s ease;
  font-family: var(--font-primary);
}

.filter-chip:hover {
  border-color: var(--text-secondary);
  color: var(--text-secondary);
}

.filter-chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ============================================
   ARTWORK DETAIL PAGE (Full Page — not overlay)
   Matches screenshot 2: back link + counter + arrows
   ============================================ */

.detail-page {
  padding-top: var(--header-height);
  min-height: 100vh;
  background: var(--bg-white);
}

/* Sticky top bar: BACK TO WORKS | counter | arrows */
.detail-top-bar {
  position: sticky;
  top: var(--header-height);
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.25s;
}

.detail-back:hover {
  color: var(--text-main);
  opacity: 1;
}

.detail-back svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.detail-nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.detail-counter {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.06em;
}

.detail-arrows {
  display: flex;
  gap: 4px;
}

.detail-arrow-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
  color: var(--text-secondary);
  font-size: 15px;
  text-decoration: none;
}

.detail-arrow-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Detail body: image + info */
.detail-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 40px 100px;
}

.detail-image-wrap {
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.detail-image-wrap img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}

/* Two-column details: title left, description right */
.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.detail-title-block h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 20px;
}

.detail-desc {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-light);
  font-style: italic;
}

/* Meta list below title */
.detail-meta-list {
  list-style: none;
  font-size: 13px;
  line-height: 2.2;
  color: var(--text-secondary);
  margin-top: 24px;
}

.detail-meta-list strong {
  color: var(--text-main);
  font-weight: 500;
}

/* Responsive: detail page */
@media (max-width: 1024px) {
  .detail-top-bar { padding: 14px 24px; }
  .detail-body { padding: 32px 24px 80px; }
  .detail-info-grid { grid-template-columns: 1fr; gap: 28px; }
  .detail-nav-right { gap: 12px; }
}

@media (max-width: 600px) {
  .detail-counter { display: none; }
  .detail-body { padding: 24px 16px 60px; }
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-page {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 100px;
}

.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 72px;
  align-items: start;
}

.about-image {
  position: sticky;
  top: 88px;
}

.about-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about-content h1 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.about-content .subtitle {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.about-content h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 36px;
  margin-bottom: 16px;
  color: var(--text-main);
}

.about-content p {
  font-size: 14px;
  line-height: 1.95;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.cv-timeline {
  margin-top: 24px;
  list-style: none;
}

.cv-timeline li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 20px;
  font-size: 13px;
}

.cv-year {
  min-width: 52px;
  color: var(--text-light);
  flex-shrink: 0;
}

.cv-text {
  color: var(--text-secondary);
}

.cv-text strong {
  color: var(--text-main);
  font-weight: 500;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-page {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 100px;
}

/* Constrain contact layout width for comfortable reading */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 960px;
}

.contact-intro h1 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 20px;
}

.contact-intro p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.contact-details {
  list-style: none;
  font-size: 14px;
  line-height: 2.4;
}

.contact-details strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
  font-weight: 500;
}

.contact-form-group {
  margin-bottom: 20px;
}

.contact-form-group label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
  font-weight: 500;
}

.contact-form-group input,
.contact-form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.25s;
  background: transparent;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
  border-color: var(--text-main);
}

.contact-form-group textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
}

.btn-submit {
  padding: 14px 36px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.25s;
  font-family: var(--font-primary);
  font-weight: 500;
}

.btn-submit:hover {
  opacity: 0.85;
}

/* ============================================
   EXHIBITIONS PAGE
   ============================================ */

.exhibitions-page {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 100px;
}

/* Constrain exhibition list width for comfortable reading */
.exhibitions-page > h1,
.exhibitions-page > p,
.exhibitions-page .ex-section-title,
.exhibitions-page .ex-list {
  max-width: 860px;
}

.ex-section-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-main);
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.ex-section-title:first-of-type {
  margin-top: 0;
}

.ex-list {
  list-style: none;
}

.ex-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.ex-item:last-child {
  border-bottom: none;
}

.ex-year {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.ex-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 4px;
}

.ex-venue {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-light);
}

.footer-links a:hover {
  color: var(--text-main);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
  .sw-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .sw-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    position: static;
    max-width: 360px;
    margin: 0 auto;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .av-details {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .container { padding: 0 24px; }
  .site-header { padding: 0 24px; }
  .av-header { padding: 16px 24px; }
  .av-body { padding: 32px 24px 60px; }

  .hero-name {
    margin-top: var(--header-height);
  }

  .hero-side-info {
    right: 24px;
    bottom: 24px;
  }
}

@media (max-width: 600px) {
  .works-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sw-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .sw-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .name-en { font-size: clamp(32px, 10vw, 52px); }
  .name-cn { font-size: clamp(16px, 4vw, 22px); }
  .hero-desc { font-size: 13px; }
  .hero-content { padding: 0 20px; }

  .filter-bar {
    gap: 6px;
  }

  .filter-chip {
    font-size: 10px;
    padding: 7px 14px;
  }

  .site-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .av-nav-info {
    display: none;
  }

  .hero-fullscreen {
    min-height: 100svh;
  }

  .selected-works-section {
    padding: 48px 0 40px;
  }
}

@media (max-width: 420px) {
  .sw-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .sw-card-title {
    font-size: 11px;
  }

  .sw-card-year {
    font-size: 10px;
  }
}

/* ============================================
   UTILITIES & ANIMATIONS
   ============================================ */

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--card-delay, 0s);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

::selection {
  background: rgba(0,0,0,0.08);
  color: inherit;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #bbb; }
