/* ─── PALETTE ───────────────────────────────────────── */
:root {
  /* Exhibition palette */
  --gallery-wall:  #ECE9E1;   /* hero + about background */
  --gallery-light: #F5F2EC;   /* works background */
  --ink:           #191918;   /* primary text */
  --muted:         #77736C;   /* metadata, labels */
  --oxblood:       #8C2F32;   /* accent — used sparingly */
  --dark-room:     #211E1A;   /* publications + contact background */
  --line:          rgba(25, 25, 24, 0.18);

  /* Kept for modal / Three.js gallery (unchanged) */
  --ivory:    #F4EDD8;
  --cream:    #F2EFE8;        /* light text on dark backgrounds */

  --display: 'Playfair Display', Georgia, serif;
  --serif: 'Cormorant Garant', 'Playfair Display', Georgia, serif;
  --sans:  'Syne', system-ui, sans-serif;
  --mono:  'JetBrains Mono', 'Courier New', monospace;

  /* Spacing system */
  --page-x:   clamp(24px, 5vw, 80px);
  --section-y: clamp(72px, 10vw, 160px);
}

/* ─── BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--gallery-wall);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ───────────────────────────────────────────── */
#mainNav {
  background: #ECE9E1;          /* same as hero — wall continues into nav */
  border-bottom: 1px solid rgba(25, 25, 24, 0.08);
  padding: 20px 48px 20px 0;
  transition: border-color 0.3s;
}
#mainNav.scrolled {
  border-bottom-color: rgba(25, 25, 24, 0.16);
}

/* Monogram mark — italic serif, feels like an artist's stamp */
.navbar-brand {
  font-family: 'Cormorant Garant', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: #191918 !important;
  line-height: 1;
  padding-left: 48px;
}

.navbar-toggler {
  border: none;
  box-shadow: none !important;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(25,25,24,0.65)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='1.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Gallery-signage links: uppercase, wide tracking, restrained */
.nav-link {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(25, 25, 24, 0.40) !important;
  padding: 4px 0 !important;
  margin: 0 16px;
  position: relative;
  transition: color 0.22s;
}
/* Thin underline grows on hover — gallery label aesthetic */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #8C2F32;
  transition: width 0.26s ease;
}
.nav-link:hover,
.nav-link.active { color: #191918 !important; }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ─── HERO ──────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 112px 8% 52px;
  overflow: hidden;
  background: #ECE9E1;
}

/* Section index — top-right, floats in negative space */
.hero-index {
  position: absolute;
  top: 118px;
  right: 8%;
  font-family: var(--mono);
  font-size: 0.60rem;
  letter-spacing: 0.14em;
  color: #77736C;
  pointer-events: none;
}

/* Exhibition title: discipline preface + JINLAN staggered above ZHAO */
.hero-name-block { flex-shrink: 0; }

/* Discipline label — catalogue preface line above the name */
.hero-discipline {
  font-family: var(--mono);
  font-size: 0.60rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #77736C;
  margin: 0 0 24px;
}

.hero-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(4.5rem, 10vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: #191918;
  margin: 0;
}
.hn-1 { display: block; }
.hn-2 { display: block; margin-left: 1.1em; }

/* Roles — stacked vertically below the name */
.hero-roles {
  list-style: none;
  padding: 0;
  margin: 52px 0 0;
  flex-shrink: 0;
}
.hero-roles li {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 400;
  color: #191918;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

/* Entry invitation — left-aligned below roles, not sidebar */
.hero-enter-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 200px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  transition: color 0.22s;
}
.hero-enter-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--muted);
  transition: background 0.22s;
}
.hero-enter-link:hover { color: var(--oxblood); }
.hero-enter-link:hover::after { background: var(--oxblood); }
.hero-enter-arrow {
  display: inline-block;
  transition: transform 0.22s ease;
}
.hero-enter-link:hover .hero-enter-arrow { transform: translateY(3px); }

/* Bottom metadata — stacked, flush left */
.hero-bottom {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 40px;
}
.hero-bottom-meta {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  opacity: 0.70;
}


.scroll-hint {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-hint span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(25, 25, 24, 0.30));
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); opacity: 0; transform-origin: top; }
  40%  { transform: scaleY(1); opacity: 1; transform-origin: top; }
  60%  { transform: scaleY(1); opacity: 1; transform-origin: bottom; }
  100% { transform: scaleY(0); opacity: 0; transform-origin: bottom; }
}

/* ─── SHARED REVEAL ANIMATION ───────────────────────── */
/* One motion language across the site: fade-up 16px     */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal            { transform: none; transition: opacity 0.4s ease; }
  .pub-item          { transform: none !important; transition: opacity 0.4s ease !important; }
  .scroll-hint span  { animation: none; }
}

/* ─── SECTION SHELL ─────────────────────────────────── */
.section-block { padding: var(--section-y) 0; }

.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.6rem;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 52px;
  line-height: 1.05;
}

.section-num {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--oxblood);
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}
.section-num::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--oxblood);
  flex-shrink: 0;
}

/* ─── WORKS — museum gallery ────────────────────────── */
#works {
  background: var(--gallery-light);
  padding-bottom: 0;
}
#works .section-title {
  color: var(--ink);
  margin-bottom: 8px; /* tighter — subtitle follows immediately */
}
#works .section-num   { color: var(--oxblood); }
#works .section-num::before { background: var(--oxblood); }

/* Exhibition subtitle — catalogue dateline */
.works-header { margin-bottom: 36px; }
.works-sub {
  font-family: var(--mono);
  font-size: 0.60rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* Filter bar — gallery archive labels, no button styling */
.filter-bar {
  display: flex;
  gap: 28px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 4px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: rgba(25, 25, 24, 0.32);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
/* Underline grows in on active — gallery label active state */
.filter-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--oxblood);
  transition: width 0.24s ease;
}
.filter-btn:hover { color: var(--ink); }
.filter-btn.active {
  color: var(--oxblood);
  font-weight: 600;
}
.filter-btn.active::after { width: 100%; }

/* ─── Three.js gallery canvas wrapper ───────────────── */
#gallery-wrap {
  width: 100%;
  height: clamp(380px, 52vh, 560px);
  position: relative;
  cursor: grab;
  user-select: none;
  overflow: hidden;
}
#gallery-wrap:active { cursor: grabbing; }

/* CSS2D label layer (appended by gallery.js) sits on top */
#gallery-wrap > div { pointer-events: none; }

.gallery-hint {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.60rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  padding: 13px 0 52px;
  opacity: 0.55;
}

/* Museum placard labels — positioned by JS, centered via transform */
.gallery-label {
  position: absolute;
  width: 270px;
  text-align: center;
  padding-top: 12px;
  transform: translateX(-50%);
  transition: opacity 0.3s;
  pointer-events: none;
}
.gl-title {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1A1009;
  margin-bottom: 3px;
}
.gl-meta {
  display: block;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: rgba(26,18,9,0.42);
  margin-bottom: 5px;
}


/* ─── Work modal ─────────────────────────────────────── */
.work-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(26,18,9,0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}
.work-modal.active { display: flex; }

.wm-inner {
  position: relative;
  background: var(--ivory);
  border-top: 3px solid var(--oxblood);
  padding: 48px 52px;
  max-width: 460px;
  width: 90%;
}
.wm-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none; border: none;
  font-size: 1.5rem;
  color: rgba(26,18,9,0.38);
  cursor: pointer; line-height: 1; padding: 4px;
  transition: color 0.2s;
}
.wm-close:hover { color: var(--ink); }
.wm-category {
  display: block;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 10px;
}
.wm-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.15;
}
.wm-year {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: rgba(26,18,9,0.38);
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}
.wm-desc {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: rgba(26,18,9,0.72);
  line-height: 1.78;
  margin-bottom: 30px;
}
.wm-link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ivory);
  background: var(--ink);
  padding: 10px 24px;
  text-decoration: none;
  transition: background 0.22s;
}
.wm-link:hover { background: var(--oxblood); color: var(--ivory); }

/* ─── PUBLICATIONS — dark archive room ──────────────── */
#publications { background: var(--dark-room); }

#publications .section-title { color: var(--cream); }
#publications .section-num   { color: var(--oxblood); }
#publications .section-num::before { background: var(--oxblood); }

.pub-list {
  display: flex;
  flex-direction: column;
  max-width: 820px;
}

/* Archive row — thin top rule separates entries */
.pub-item {
  border-top: 1px solid rgba(242, 239, 232, 0.10);
  padding: 32px 0 36px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.pub-item:last-child { border-bottom: 1px solid rgba(242, 239, 232, 0.10); }
.pub-item.in-view { opacity: 1; transform: translateY(0); }
.pub-item:hover .pub-title { color: var(--cream); }
.pub-item:hover .pub-year,
.pub-item:hover .pub-venue { opacity: 1; }

/* Metadata row: year / venue / status on one line */
.pub-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.pub-year {
  font-family: var(--mono);
  font-size: 0.60rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.pub-venue {
  font-family: var(--mono);
  font-size: 0.60rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.pub-venue.accepted { color: #C89496; }
.pub-venue.review   { color: rgba(242,239,232,0.38); }

.pub-status {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: rgba(242,239,232,0.28);
  margin-left: auto; /* push to right on wide viewports */
}

/* Title — dominant text in each row */
.pub-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--cream);
  line-height: 1.55;
  margin: 0 0 10px;
  max-width: 680px;
}

.pub-authors {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: rgba(242,239,232,0.32);
  margin: 0;
  text-transform: uppercase;
}

/* ─── ABOUT — warm gallery wall / editorial biography ── */
#about { background: var(--gallery-wall); }

#about .section-title { color: var(--ink); margin-bottom: 52px; }
#about .section-num   { color: var(--oxblood); }
#about .section-num::before { background: var(--oxblood); }

/* Two-column editorial grid: bio left, metadata right */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}

/* Biography column */
.about-bio { display: flex; flex-direction: column; }

.about-photo-wrap {
  position: relative;
  display: block;
  align-self: start;
  margin-top: -16px;
}
.about-photo-wrap::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  background: var(--dark-room);
  z-index: 0;
}
.about-photo-wrap::after {
  content: '';
  position: absolute;
  bottom: -26px;
  left: -14px;
  width: 44px;
  height: 44px;
  background: var(--oxblood);
  z-index: 2;
}
.about-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.about-text {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: rgba(25, 25, 24, 0.72);
  line-height: 1.88;
  margin-bottom: 18px;
  max-width: 520px;
}
.about-text strong { color: var(--ink); font-weight: 600; }

.about-cv-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.22s, border-color 0.22s;
}
.about-cv-link:hover { color: var(--oxblood); border-color: var(--oxblood); }
.about-cv-arrow { font-style: normal; transition: transform 0.22s; }
.about-cv-link:hover .about-cv-arrow { transform: translate(2px, -2px); }


/* ─── CONTACT — final exhibition wall / colophon ─────── */
#contact { background: var(--dark-room); }

#contact .section-title { color: var(--cream); font-style: italic; margin-bottom: 36px; }
#contact .section-num   { color: var(--oxblood); }
#contact .section-num::before { background: var(--oxblood); }

/* Two-column colophon layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Left column — identity */
.contact-name {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: 0 0 20px;
  line-height: 1.1;
}

.contact-desc {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: rgba(242,239,232,0.45);
  line-height: 1.80;
  margin-bottom: 36px;
}

.contact-dateline {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Right column — contact archive list */
.contact-right {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(242,239,232,0.10);
}

.contact-item {
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(242,239,232,0.10);
}

.contact-label {
  font-family: var(--mono);
  font-size: 0.50rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 76px;
  flex-shrink: 0;
}

.contact-link {
  font-family: var(--serif);
  font-size: 1.0rem;
  font-weight: 400;
  color: rgba(242,239,232,0.70);
  text-decoration: none;
  transition: color 0.22s;
  position: relative;
}
.contact-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--oxblood);
  transition: width 0.26s ease;
}
.contact-link:hover { color: var(--cream); }
.contact-link:hover::after { width: 100%; }

/* ─── FOOTER ─────────────────────────────────────────── */
.site-footer {
  background: var(--dark-room);
  border-top: 1px solid rgba(242,239,232,0.08);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-inner span {
  font-size: 0.78rem;
  color: rgba(242,239,232,0.28);
}
.footer-tag { font-family: var(--mono); letter-spacing: 0.06em; }

/* ─── HERO FRAME — architectural opening / gallery passage ── */
.hero-frame {
  position: absolute;
  /* Fixed pixel crop on right: ~90px hidden beyond viewport edge.
     The user sees a cropped edge — it feels like it continues.    */
  right: -50px;
  top: clamp(100px, 14vh, 180px);
  transform-origin: right top;
  width: clamp(400px, 42vw, 620px);
  height: clamp(500px, 62vh, 760px);
  border: 1px solid rgba(25, 25, 24, 0.18);
  /* Slightly darker interior — implies another plane / room        */
  background: #E6E2D9;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

/* Image fills the frame — cover crop, left-anchored */
.hero-frame-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 22% center;
  display: block;
}

/* Museum label — inside the opening, bottom-left corner.
   Small, quiet — like a wall label in a gallery.               */
.hero-frame-caption {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
}
.hero-frame-num {
  display: block;
  font-family: var(--mono);
  font-size: 0.46rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 10px;
}
.hero-frame-title {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 5px;
  font-style: normal;
}
.hero-frame-desc {
  display: block;
  font-family: var(--mono);
  font-size: 0.46rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.hero-frame-year {
  display: block;
  font-family: var(--mono);
  font-size: 0.46rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* ─── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 991px) {
  /* Nav: tighter link margins when near collapse breakpoint */
  .nav-link { margin: 0 10px; }
}

@media (max-width: 768px) {
  /* Frame repositioned — JS touch detection disables parallax/float */
  .hero-frame {
    right: -60px;
    top: auto;
    bottom: 60px;
    width: clamp(200px, 55vw, 300px);
    height: clamp(260px, 38vh, 360px);
  }
  .hero-section { padding: 96px 6% 40px; }
  .hn-2 { margin-left: 0.6em; }
  .hero-roles { margin-top: 36px; }
  .hero-roles li { font-size: 0.95rem; }
  .hero-enter-link { margin-top: 32px; }
  .hero-bottom { padding-top: 36px; }
  .section-title { font-size: 2rem; margin-bottom: 36px; }
  /* Publications: wrap metadata row, reset status alignment */
  .pub-row { gap: 10px; }
  .pub-status { margin-left: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo-wrap { max-width: 240px; }
  .about-photo-wrap::before { top: 14px; left: 14px; right: -14px; bottom: -14px; }
  .about-photo-wrap::after { width: 40px; height: 40px; bottom: -22px; left: -12px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  #gallery-wrap { height: 340px; }
  .wm-inner { padding: 36px 28px; }
  .wm-title { font-size: 1.5rem; }
  /* WCI modal mobile */
  .wci-panel { padding: 40px 28px 48px; }
  .wci-main { grid-template-columns: 1fr; gap: 36px; }
  .wci-diagram { max-width: 260px; }
}

/* ─── WCI AUDIO MODAL ───────────────────────────────── */
.wci-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1060;
  background: rgba(20, 16, 13, 0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-y: auto;
  padding: 48px 20px;
}
.wci-modal.active { display: block; }

.wci-panel {
  position: relative;
  background: var(--dark-room);
  border: 1px solid rgba(242, 239, 232, 0.10);
  max-width: 860px;
  margin: 0 auto;
  padding: 52px 60px 64px;
}

.wci-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(242, 239, 232, 0.28);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s;
}
.wci-close:hover { color: var(--cream); }

/* ── Header ── */
.wci-header { margin-bottom: 44px; }

.wci-kicker {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

.wci-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--cream);
  margin: 0 0 10px;
}

.wci-work-type {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
}

.wci-desc {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: rgba(242, 239, 232, 0.50);
  line-height: 1.86;
  max-width: 580px;
  margin: 0;
}
.wci-desc em { font-style: italic; color: rgba(242, 239, 232, 0.68); }

/* ── Main grid: player + diagram ── */
.wci-main {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 52px;
  align-items: start;
  margin-bottom: 52px;
}

/* ── Track meta label ── */
.wci-track-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 20px;
}
.wci-track-tag {
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oxblood);
}
.wci-track-sub {
  font-family: var(--mono);
  font-size: 0.50rem;
  letter-spacing: 0.10em;
  color: rgba(242, 239, 232, 0.28);
}

/* ── Stereo player ── */
#wci-stereo {
  border-top: 1px solid rgba(242, 239, 232, 0.10);
  padding-top: 18px;
}

.wci-ctrl-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.wci-play {
  background: none;
  border: none;
  padding: 0;
  color: var(--cream);
  font-size: 0.68rem;
  cursor: pointer;
  flex-shrink: 0;
  width: 22px;
  text-align: left;
  line-height: 1;
  transition: color 0.2s;
}
.wci-play:hover { color: var(--oxblood); }

.wci-time {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.wci-bar {
  width: 100%;
  height: 1px;
  background: rgba(242, 239, 232, 0.12);
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}
.wci-bar:hover { background: rgba(242, 239, 232, 0.22); }

.wci-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--cream);
  pointer-events: none;
}

.wci-format-note {
  font-family: var(--mono);
  font-size: 0.48rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 239, 232, 0.20);
  margin: 20px 0 0;
}

/* ── Diagram ── */
.wci-diagram-section { padding-top: 6px; }

.wci-diagram-label {
  font-family: var(--mono);
  font-size: 0.48rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.wci-diagram { width: 100%; height: auto; display: block; }

.wci-ch-num {
  font-family: var(--mono);
  font-size: 8px;
  fill: rgba(242, 239, 232, 0.45);
}

.wci-diagram-note {
  font-family: var(--mono);
  font-size: 0.44rem;
  letter-spacing: 0.10em;
  color: rgba(242, 239, 232, 0.16);
  margin: 8px 0 0;
  text-align: center;
}

/* ── Stems ── */
.wci-stems-section {
  border-top: 1px solid rgba(242, 239, 232, 0.10);
  padding-top: 28px;
}

.wci-stems-tag {
  display: block;
  font-family: var(--mono);
  font-size: 0.48rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}

.wci-stem {
  border-top: 1px solid rgba(242, 239, 232, 0.07);
}
.wci-stem:last-child { border-bottom: 1px solid rgba(242, 239, 232, 0.07); }

/* Stem player: no extra border/padding — stem container handles it */
.wci-stem-player { border: none !important; padding: 0 !important; }

.wci-stem-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
}

.wci-stem-num {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  color: rgba(242, 239, 232, 0.25);
  width: 18px;
  flex-shrink: 0;
}

.wci-stem-name {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(242, 239, 232, 0.50);
  flex: 1;
}

/* Time inside stem row — only shown when active */
.wci-stem-row .wci-time {
  font-size: 0.52rem;
  color: rgba(242, 239, 232, 0.28);
}

/* Play button inside stem row */
.wci-stem-row .wci-play {
  font-size: 0.58rem;
  width: 18px;
  color: rgba(242, 239, 232, 0.35);
}
.wci-stem-row .wci-play:hover { color: var(--oxblood); }

/* Progress bar revealed when stem is active */
.wci-stem-progress {
  padding: 0 0 10px 32px;  /* indent aligns bar with stem name */
}
