:root {
  color-scheme: dark;
  --bg: #0d0d12;
  --bg-deep: #08080c;
  --surface: #16161f;
  --surface-soft: #1b1b26;
  --ink: #eae6df;
  --muted: #a8a3b0;
  --line: #2a2a35;
  --accent: #c04df0;
  --accent-soft: rgba(192, 77, 240, 0.2);
  --cyan: #4dd0e1;
  --header-height: 4.5rem;
  --content-width: 75rem;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 16%, rgba(192, 77, 240, 0.09), transparent 34rem),
    radial-gradient(circle at 88% 72%, rgba(77, 208, 225, 0.07), transparent 34rem),
    var(--bg);
  color: var(--ink);
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  font-size: 1rem;
  line-height: 1.75;
}

body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.65rem 1rem;
  border-radius: 0.35rem;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-180%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 13, 18, 0.8);
  backdrop-filter: blur(1rem);
}

.nav-shell {
  width: min(100% - 3rem, var(--content-width));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  position: relative;
  z-index: 2;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.36em;
  white-space: nowrap;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  font-size: 0.875rem;
  letter-spacing: 0.16em;
}

.nav-links > a:not(.admin-link) {
  position: relative;
  padding: 0.35rem 0;
  color: var(--muted);
  transition: color 0.25s;
}

.nav-links > a:not(.admin-link)::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: -0.1rem;
  left: 50%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transition: inset 0.25s var(--ease);
}

.nav-links > a:hover,
.nav-links > a.is-active {
  color: var(--ink);
}

.nav-links > a.is-active::after {
  right: 0;
  left: 0;
}

.admin-link,
.outline-button {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(234, 230, 223, 0.72);
  border-radius: 0.35rem;
  background: transparent;
  color: var(--ink);
  letter-spacing: 0.16em;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.admin-link:hover,
.outline-button:hover {
  border-color: var(--accent);
  background: var(--accent);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  width: 1.45rem;
  height: 1px;
  margin: 0.35rem auto;
  background: currentColor;
  transition: transform 0.25s, opacity 0.25s;
}

main {
  min-height: calc(100vh - 6rem);
}

.loading-state,
.error-state,
.empty-state {
  min-height: 70vh;
  display: grid;
  place-content: center;
  gap: 1rem;
  padding: 7rem 1.5rem 3rem;
  text-align: center;
  color: var(--muted);
}

.loading-mark {
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: calc(var(--header-height) + 4rem) 1.5rem 5rem;
  text-align: center;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  width: min(48rem, 86vw);
  aspect-ratio: 1;
  border: 1px solid rgba(192, 77, 240, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(77, 208, 225, 0.015), 0 0 0 8rem rgba(192, 77, 240, 0.012);
}

.hero::after {
  inset: 0;
  opacity: 0.28;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 5rem 5rem;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 44rem);
}

.avatar-frame {
  position: relative;
  width: 9.75rem;
  height: 9.75rem;
  margin: 0 auto;
}

.avatar-frame::before {
  content: "";
  position: absolute;
  inset: -0.65rem;
  border: 1px solid rgba(77, 208, 225, 0.24);
  border-radius: 50%;
  clip-path: polygon(0 0, 62% 0, 46% 100%, 0 100%);
  animation: orbit 12s linear infinite;
}

.avatar {
  width: 100%;
  height: 100%;
  border: 3px solid var(--accent);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 2.5rem rgba(192, 77, 240, 0.32);
}

.hero h1 {
  margin: 1.75rem 0 0.3rem;
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  line-height: 1.25;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
}

.role {
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  background-clip: text;
  color: transparent;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-indent: 0.38em;
}

.bio {
  max-width: 38rem;
  margin: 1.5rem auto 0;
  color: var(--muted);
}

.stats {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 8vw, 4.5rem);
  margin-top: 2rem;
}

.stats strong {
  display: block;
  color: var(--cyan);
  font-family: Georgia, serif;
  font-size: 1.75rem;
  line-height: 1.25;
}

.stats span {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
}

.scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  z-index: 1;
  width: 1px;
  height: 3rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.scroll-cue::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, var(--cyan), transparent);
  animation: scroll-line 2.4s infinite;
}

.section {
  padding: clamp(5rem, 10vw, 8rem) max(1.5rem, 6vw);
}

.section-heading {
  max-width: 42rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin-top: 0.35rem;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: 0.25em;
  text-indent: 0.25em;
}

.section-heading p {
  margin-top: 0.75rem;
  color: var(--muted);
}

.exhibition-grid {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.exhibition-card {
  position: relative;
  min-height: 25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
  isolation: isolate;
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease);
}

.exhibition-card:hover,
.exhibition-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 1.25rem 3.5rem rgba(0, 0, 0, 0.4), 0 0 2rem rgba(192, 77, 240, 0.16);
  transform: translateY(-0.35rem);
}

.exhibition-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s;
}

.exhibition-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.exhibition-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(6, 6, 10, 0.96), rgba(6, 6, 10, 0.08) 68%);
}

.card-count {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  z-index: 2;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(13, 13, 18, 0.48);
  backdrop-filter: blur(0.5rem);
  font-size: 0.75rem;
}

.card-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 2rem;
}

.card-copy h3 {
  font-size: 1.4rem;
  letter-spacing: 0.18em;
}

.card-copy p {
  margin-top: 0.4rem;
  color: rgba(234, 230, 223, 0.78);
  font-size: 0.9rem;
}

.exhibition-page {
  padding-top: var(--header-height);
}

.exhibition-hero {
  position: relative;
  min-height: 25rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.exhibition-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82);
}

.exhibition-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 2%, rgba(13, 13, 18, 0.18) 75%), linear-gradient(90deg, rgba(13, 13, 18, 0.58), transparent);
}

.exhibition-hero-copy {
  position: relative;
  z-index: 1;
  width: min(100% - 3rem, var(--content-width));
  margin: 0 auto;
  padding: 4rem 0 2.5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
  color: var(--cyan);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
}

.exhibition-hero h1 {
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  letter-spacing: 0.2em;
}

.exhibition-hero p {
  max-width: 42rem;
  color: rgba(234, 230, 223, 0.78);
}

.stage-wrap {
  width: min(100% - 3rem, var(--content-width));
  margin: 0 auto;
  padding: 2rem 0 6rem;
}

.stage {
  position: relative;
  min-height: min(66vh, 47rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 5.5rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background:
    linear-gradient(125deg, rgba(192, 77, 240, 0.035), transparent 36%),
    var(--surface);
  box-shadow: 0 1.25rem 4rem rgba(0, 0, 0, 0.42);
}

.stage-image-button {
  max-width: 100%;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.stage-image {
  max-width: 100%;
  max-height: 62vh;
  border-radius: 0.35rem;
  object-fit: contain;
  box-shadow: 0 0 3rem rgba(192, 77, 240, 0.14);
  animation: reveal 0.45s var(--ease);
}

.stage-counter {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
}

.stage-arrow,
.lightbox-arrow {
  position: absolute;
  z-index: 2;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(22, 22, 31, 0.9);
  font-size: 1.75rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.stage-arrow:hover,
.lightbox-arrow:hover {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 1.4rem rgba(192, 77, 240, 0.4);
}

.stage-arrow--prev {
  left: 1rem;
}

.stage-arrow--next {
  right: 1rem;
}

.work-copy {
  max-width: 54rem;
  margin: 2rem auto 0;
  text-align: center;
}

.work-copy h2 {
  color: var(--cyan);
  font-size: 1.35rem;
  letter-spacing: 0.18em;
}

.work-copy blockquote {
  position: relative;
  margin-top: 0.75rem;
  padding: 0 2.5rem;
  color: var(--muted);
  font-style: italic;
}

.work-copy blockquote::before,
.work-copy blockquote::after {
  position: absolute;
  top: -0.2rem;
  color: var(--accent);
  font-size: 1.75rem;
}

.work-copy blockquote::before {
  content: "“";
  left: 0.75rem;
}

.work-copy blockquote::after {
  content: "”";
  right: 0.75rem;
}

.filmstrip {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.75rem;
  padding: 0.5rem 0.25rem;
  overflow-x: auto;
  scrollbar-color: var(--line) transparent;
}

.filmstrip-button {
  flex: 0 0 auto;
  width: 5rem;
  height: 3.75rem;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 0.35rem;
  background: transparent;
  opacity: 0.42;
  cursor: pointer;
  transition: opacity 0.25s, border-color 0.25s, transform 0.25s;
}

.filmstrip-button:hover,
.filmstrip-button.is-current {
  opacity: 1;
  transform: translateY(-0.1rem);
}

.filmstrip-button.is-current {
  border-color: var(--accent);
  box-shadow: 0 0 0.8rem rgba(192, 77, 240, 0.35);
}

.filmstrip-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comments-section {
  max-width: 54rem;
  margin: 4.5rem auto 0;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}

.comments-section > h2 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  letter-spacing: 0.18em;
}

.comments-pending {
  padding: 1.5rem;
  border: 1px dashed var(--line);
  border-radius: 0.5rem;
  color: var(--muted);
  text-align: center;
}

.about-page {
  min-height: calc(100svh - var(--header-height));
  padding: calc(var(--header-height) + 5rem) 1.5rem 6rem;
}

.about-layout {
  width: min(100%, 62rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(18rem, 1.2fr);
  align-items: center;
  gap: clamp(2.5rem, 8vw, 6rem);
}

.about-portrait {
  position: relative;
}

.about-portrait::before {
  content: "";
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  z-index: -1;
  border: 1px solid var(--accent);
  border-radius: 0.6rem;
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 0.6rem;
  object-fit: cover;
  filter: saturate(0.82);
}

.about-copy h1 {
  margin: 0.35rem 0 1rem;
  font-size: clamp(2rem, 6vw, 3.25rem);
  letter-spacing: 0.22em;
}

.about-role {
  color: var(--cyan);
  letter-spacing: 0.16em;
}

.about-copy .bio {
  margin: 1.5rem 0 0;
  font-size: 1.05rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 5.5rem;
  background: rgba(5, 5, 10, 0.96);
  animation: reveal 0.25s;
}

.lightbox figure {
  max-width: 100%;
  text-align: center;
}

.lightbox figure img {
  max-width: min(86vw, 100rem);
  max-height: 76vh;
  margin: 0 auto;
  object-fit: contain;
}

.lightbox figcaption {
  max-width: 52rem;
  margin: 1rem auto 0;
  color: rgba(234, 230, 223, 0.84);
}

.lightbox-close {
  position: absolute;
  top: 0.65rem;
  right: 1rem;
  border: 0;
  background: transparent;
  font-size: 2.5rem;
  opacity: 0.7;
  cursor: pointer;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-arrow--prev {
  left: 1rem;
}

.lightbox-arrow--next {
  right: 1rem;
}

.lightbox-count {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  transform: translateX(-50%);
}

.site-footer {
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-align: center;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@keyframes scroll-line {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(0.35rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 52rem) {
  .exhibition-grid {
    grid-template-columns: 1fr;
  }

  .exhibition-card {
    min-height: 22rem;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-portrait {
    max-width: 26rem;
  }
}

@media (max-width: 42rem) {
  :root {
    --header-height: 4rem;
  }

  .nav-shell {
    width: min(100% - 2rem, var(--content-width));
  }

  .logo {
    font-size: 1.05rem;
  }

  .nav-toggle {
    position: relative;
    z-index: 2;
    display: block;
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(1) {
    transform: translateY(0.36rem) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(3) {
    transform: translateY(-0.36rem) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    inset: 0 0 auto;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    background: rgba(13, 13, 18, 0.98);
    font-size: 1rem;
    transform: translateY(-105%);
    transition: transform 0.35s var(--ease);
  }

  .nav-links.is-open {
    transform: translateY(0);
  }

  .hero {
    min-height: 47rem;
  }

  .hero h1 {
    letter-spacing: 0.14em;
    text-indent: 0.14em;
  }

  .role {
    letter-spacing: 0.22em;
    text-indent: 0.22em;
  }

  .stats {
    gap: 1.5rem;
  }

  .section {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .exhibition-hero-copy,
  .stage-wrap {
    width: min(100% - 2rem, var(--content-width));
  }

  .stage {
    min-height: 50vh;
    padding: 3rem 0.75rem;
  }

  .stage-image {
    max-height: 52vh;
  }

  .stage-arrow {
    top: auto;
    bottom: 0.6rem;
    width: 2.75rem;
    height: 2.75rem;
  }

  .stage-arrow--prev {
    left: calc(50% - 3.25rem);
  }

  .stage-arrow--next {
    right: calc(50% - 3.25rem);
  }

  .work-copy blockquote {
    padding: 0 1.5rem;
  }

  .lightbox {
    padding: 3.5rem 0.75rem 4rem;
  }

  .lightbox figure img {
    max-width: 96vw;
  }

  .lightbox-arrow {
    top: auto;
    bottom: 0.75rem;
    width: 2.8rem;
    height: 2.8rem;
  }

  .lightbox-arrow--prev {
    left: 0.75rem;
  }

  .lightbox-arrow--next {
    right: 0.75rem;
  }

  .site-footer {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
