:root {
  --bg: #020202;
  --text: #f4f4f1;
  --muted: rgba(244, 244, 241, 0.66);
  --dim: rgba(244, 244, 241, 0.42);
  --line: rgba(244, 244, 241, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 52% 0%, rgba(255, 255, 255, 0.12), transparent 20rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.018)),
    #020202;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 33vw 100%, 100% 22rem;
  opacity: 0.28;
}

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

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
  background: transparent;
}

.site-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
  height: 78px;
  padding: 0 42px;
  pointer-events: none;
}

.gallery-nav {
  position: fixed;
  top: 25vh;
  left: 34px;
  z-index: 21;
  display: grid;
  width: 220px;
  transform: translateY(-50%);
}

.nav-list {
  display: grid;
  gap: 32px;
}

.nav-link {
  position: relative;
  width: fit-content;
  color: rgba(244, 244, 241, 0.68);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -22px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: translateY(-50%);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link.active::before {
  opacity: 1;
}

.gallery-shell {
  position: relative;
  width: min(100%, 1560px);
  margin: 0 auto;
  padding: 0 66px 54px 240px;
}

.gallery-shell::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 100vh;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 2, 2, 0.78) 0%, rgba(2, 2, 2, 0.52) 28%, rgba(2, 2, 2, 0.12) 54%, rgba(2, 2, 2, 0.58) 100%),
    linear-gradient(180deg, rgba(2, 2, 2, 0.04) 0%, rgba(2, 2, 2, 0.06) 62%, rgba(2, 2, 2, 0.36) 82%, rgba(2, 2, 2, 0.96) 100%),
    url("/assets/archive-home.webp") center bottom / auto 100vh no-repeat;
}

.hero-gallery {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  padding: 170px 0 118px;
  align-items: center;
}

.hero-gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.16), transparent 24rem),
    radial-gradient(circle at 50% 78%, rgba(255, 255, 255, 0.1), transparent 28rem);
  mix-blend-mode: screen;
  opacity: 0.42;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(430px, 44vw);
  margin-left: 0;
}

.section-label,
.text-link,
.lab-item time,
.gallery-footer {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.section-label {
  margin: 0;
  color: rgba(244, 244, 241, 0.82);
}

.hero-copy h1 {
  margin: 30px 0 0;
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.38em;
}

.hero-copy h1 span {
  display: block;
  margin-top: 10px;
}

.thin-line {
  width: 68px;
  height: 1px;
  margin: 48px 0 34px;
  background: rgba(244, 244, 241, 0.74);
}

.hero-text {
  width: min(310px, 100%);
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}

.hero-text-en {
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  width: fit-content;
  margin-top: 60px;
  padding-bottom: 12px;
  color: rgba(244, 244, 241, 0.82);
  border-bottom: 1px solid rgba(244, 244, 241, 0.62);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.text-link:hover {
  color: var(--text);
  border-color: var(--text);
  transform: translateX(3px);
}

.gallery-section {
  position: relative;
  z-index: 1;
  padding: 78px 0 86px;
  scroll-margin-top: 90px;
}

#exhibitions {
  padding-top: 0;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 38px;
}

.exhibition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.exhibition-statement {
  display: grid;
  justify-items: end;
  gap: 22px;
  width: 100%;
  margin-top: 34px;
}

.exhibition-statement-words {
  display: grid;
  gap: 2px;
  justify-items: end;
  width: fit-content;
  color: rgba(244, 244, 241, 0.68);
  font-size: clamp(31px, 4.15vw, 56px);
  font-weight: 100;
  line-height: 1.12;
  letter-spacing: 0.06em;
}

.exhibition-statement p {
  margin: 0;
  color: rgba(244, 244, 241, 0.72);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0;
  text-align: right;
}

.exhibit-card {
  min-width: 0;
}

.exhibit-cover-link img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.12);
  filter: saturate(0.82) contrast(1.08) brightness(0.82);
}

.exhibit-cover-link {
  display: block;
  cursor: pointer;
}

.exhibit-cover-link img {
  transition: filter 0.2s ease, transform 0.2s ease;
}

.exhibit-cover-link:hover img {
  filter: saturate(0.96) contrast(1.12) brightness(0.92);
  transform: translateY(-2px);
}

.exhibit-caption {
  display: grid;
  justify-items: start;
  gap: 11px;
  min-height: 86px;
  padding-top: 18px;
}

.exhibit-caption-link {
  display: grid;
  justify-items: start;
  gap: 11px;
  width: fit-content;
  color: inherit;
  transition: color 0.2s ease, transform 0.2s ease;
}

.exhibit-caption-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  margin: 0;
  color: rgba(244, 244, 241, 0.86);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.exhibit-caption-title span {
  letter-spacing: 0;
  transition: transform 0.2s ease;
}

.exhibit-caption-line {
  width: 100%;
  height: 1px;
  background: rgba(244, 244, 241, 0.58);
  transform-origin: left center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.exhibit-caption-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.exhibit-caption-link:hover {
  transform: translateX(4px);
}

.exhibit-caption-link:hover .exhibit-caption-title {
  color: var(--text);
}

.exhibit-caption-link:hover .exhibit-caption-title span {
  transform: translateX(6px);
}

.exhibit-caption-link:hover .exhibit-caption-line {
  background: rgba(244, 244, 241, 0.9);
  transform: scaleX(1.08);
}

.lab-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.45fr);
  gap: 72px;
}

.lab-statement {
  display: grid;
  align-content: center;
  min-height: 420px;
  padding-left: 26px;
  border-left: 1px solid rgba(244, 244, 241, 0.28);
}

.lab-statement p {
  width: min(280px, 100%);
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
}

.lab-list {
  display: grid;
  gap: 34px;
}

.lab-item {
  display: grid;
  grid-template-columns: minmax(180px, 250px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.lab-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  filter: saturate(0.45) contrast(1.06) brightness(0.72);
}

.lab-item time {
  color: var(--dim);
}

.lab-item h2 {
  margin: 16px 0 10px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.lab-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 54px;
  align-items: start;
  padding: 54px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid h2 {
  margin: 0;
  font-family: "Songti SC", "SimSun", "PingFang SC", "Microsoft YaHei", serif;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700;
}

.about-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 2;
}

.about-grid dl {
  display: grid;
  gap: 22px;
  margin: 0;
}

.about-grid div {
  display: grid;
  gap: 7px;
}

.about-grid dt {
  color: var(--dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.about-grid dd {
  margin: 0;
  color: rgba(244, 244, 241, 0.82);
  font-size: 15px;
}

.gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 52px 0 20px;
  color: var(--dim);
}

.gallery-footer p {
  margin: 0;
}

.gallery-footer div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 24px;
}

.standalone-page {
  min-height: 100vh;
  padding: 42px;
  background: #020202;
}

.standalone-shell {
  width: min(1080px, calc(100vw - 40px));
  margin: 0 auto;
}

.video-page-panel {
  display: grid;
  gap: 34px;
}

.video-back {
  display: inline-flex;
  width: fit-content;
  padding-bottom: 10px;
  color: var(--text);
  border-bottom: 1px solid rgba(244, 244, 241, 0.55);
}

.video-page-head {
  display: grid;
  gap: 34px;
  padding-bottom: 18px;
}

.video-page-title {
  display: grid;
  gap: 12px;
}

.video-page-title p {
  margin: 0;
  color: var(--dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
}

.video-page-title h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.video-work {
  display: grid;
  gap: 16px;
  scroll-margin-top: 28px;
}

.video-work-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.video-work-meta h2 {
  margin: 0;
  color: rgba(244, 244, 241, 0.9);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.video-work-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  text-align: right;
}

.video-frame {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
}

.video-frame video {
  width: 100%;
  max-height: 76vh;
  background: #000;
}

.artwork-page {
  background: #000;
}

.artwork-viewer {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
}

.artwork-back {
  position: absolute;
  top: 42px;
  left: 42px;
  z-index: 2;
}

.artwork-image {
  width: 100%;
  height: calc(100vh - 96px);
  display: block;
  object-fit: contain;
  background: #000;
}

.artwork-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 76px;
  padding: 0;
  color: rgba(244, 244, 241, 0.9);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.artwork-nav:hover,
.artwork-nav:focus-visible {
  color: var(--text);
}

.artwork-nav-prev {
  left: 122px;
}

.artwork-nav-next {
  right: 122px;
}

@media (max-width: 1180px) {
  .gallery-shell {
    padding-left: 190px;
    padding-right: 34px;
  }

  .hero-copy {
    width: min(420px, 62vw);
  }

  .exhibition-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .lab-statement {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .site-topbar {
    grid-template-columns: 1fr;
    height: 70px;
    padding: 0 20px;
    background: linear-gradient(180deg, rgba(2, 2, 2, 0.9), rgba(2, 2, 2, 0));
  }

  .gallery-nav {
    display: none;
  }

  .gallery-shell {
    padding: 0 20px 34px;
  }

  .hero-gallery {
    min-height: 92vh;
    padding: 130px 0 78px;
  }

  .gallery-shell::before {
    height: 92vh;
    background-size: auto 92vh;
    background-position: center bottom;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(30px, 11vw, 48px);
    letter-spacing: 0.2em;
  }

  .section-row,
  .gallery-footer,
  .video-work-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .video-work-meta p {
    text-align: left;
  }

  #exhibitions {
    padding-top: 0;
  }

  .exhibition-grid,
  .lab-item {
    grid-template-columns: 1fr;
  }

  .lab-item {
    gap: 18px;
  }

  .about-grid {
    gap: 28px;
  }

  .artwork-back {
    top: 24px;
    left: 24px;
  }

  .artwork-nav {
    width: 44px;
    height: 64px;
    font-size: 34px;
  }

  .artwork-nav-prev {
    left: 40px;
  }

  .artwork-nav-next {
    right: 40px;
  }

  .artwork-image {
    height: calc(100vh - 56px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav-link,
  .text-link {
    transition: none;
  }
}
