:root {
  color-scheme: light;
  --page: #f7f7f4;
  --ink: #0a0a0a;
  --muted: #777772;
  --line: #c9c9c3;
  font-family: Inter, Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-synthesis: none;
}

html[lang="zh-CN"] {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

html[lang="ko"] {
  font-family: Inter, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0;
}

button,
a {
  color: inherit;
}

a {
  text-decoration: none;
}

button {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr);
  align-items: center;
  min-height: 76px;
  padding: 0 24px;
  background: var(--page);
  border-bottom: 1px solid var(--line);
}

.brand {
  width: max-content;
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
}

.primary-nav,
.language-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.language-nav {
  justify-self: end;
  gap: 12px;
  font-size: 12px;
}

.language-nav [aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-header a,
.site-footer a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-header a:hover,
.site-header a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.exhibition-carousel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 66px;
  height: clamp(500px, 78svh, 820px);
  min-height: 0;
  background: #080808;
}

.carousel-viewport {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  outline: none;
  touch-action: pan-y;
}

.carousel-viewport:focus-visible {
  box-shadow: inset 0 0 0 2px #ffffff;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 700ms cubic-bezier(0.7, 0, 0.3, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background: #080808;
}

.carousel-slide a,
.carousel-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.carousel-arrow,
.carousel-toggle {
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background-color 160ms ease, color 160ms ease;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  color: #000000;
  background: #ffffff;
  outline: none;
}

.carousel-arrow-prev {
  left: 10px;
}

.carousel-arrow-next {
  right: 10px;
}

.carousel-caption {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  background: var(--page);
  border-bottom: 1px solid var(--line);
}

.caption-copy {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 16px;
}

.caption-title {
  flex: 0 1 auto;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.caption-title:hover,
.caption-title:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.caption-place {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.carousel-status {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.carousel-counter strong {
  font-weight: 600;
}

.carousel-toggle {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-left: 1px solid var(--line);
  font-size: 10px;
  font-weight: 700;
}

.carousel-toggle:hover,
.carousel-toggle:focus-visible {
  background: #e8e8e3;
  outline: none;
}

.play-icon {
  display: none;
}

.carousel-toggle.is-paused .pause-icon {
  display: none;
}

.carousel-toggle.is-paused .play-icon {
  display: inline;
}

.carousel-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #ddddda;
}

.carousel-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ink);
}

.carousel-progress.is-running span {
  animation: slide-progress 6.5s linear forwards;
}

@keyframes slide-progress {
  from { width: 0; }
  to { width: 100%; }
}

.page-section {
  padding: 76px 24px 92px;
  border-bottom: 1px solid var(--line);
}

.section-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.practice-intro {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(0, 3fr);
  gap: 24px;
  padding-top: 54px;
  padding-bottom: 62px;
}

.intro-copy {
  max-width: 940px;
}

.intro-copy p {
  margin: 0;
  font-size: clamp(24px, 2.25vw, 32px);
  line-height: 1.36;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(0, 3fr);
  align-items: end;
  gap: 24px;
  margin-bottom: 44px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 500;
  line-height: 1;
}

.works-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(460px, 0.95fr);
  gap: 44px;
  align-items: start;
}

.work-preview {
  position: sticky;
  top: 24px;
  display: grid;
  width: 100%;
  height: min(68vh, 680px);
  min-height: 420px;
  place-items: center;
  overflow: hidden;
  background: #0a0a0a;
}

.work-preview img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 240ms ease;
}

.work-preview.has-image img {
  opacity: 1;
}

.work-list {
  --timeline-width: 96px;
  position: relative;
  border-top: 1px solid var(--ink);
}

.work-list::before {
  position: absolute;
  z-index: 0;
  top: 0;
  right: calc(var(--timeline-width) - 4px);
  bottom: 0;
  width: 1px;
  background: #b8b8b2;
  content: "";
  pointer-events: none;
}

.work-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 34px minmax(0, 1.45fr) minmax(130px, 0.8fr) var(--timeline-width);
  align-items: baseline;
  gap: 14px;
  min-height: 60px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 140ms ease;
}

.work-list:has(.work-row:hover) .work-row:not(:hover),
.work-list:has(.work-row:focus-visible) .work-row:not(:focus-visible) {
  opacity: 0.34;
}

.work-row strong {
  min-width: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
}

.work-row span,
.work-row time {
  color: var(--muted);
  font-size: 12px;
}

.work-row time {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding-left: 20px;
  font-variant-numeric: tabular-nums;
  text-align: left;
  transition: color 140ms ease;
}

.work-row time::before {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border: 1px solid #8b8b86;
  background: var(--page);
  content: "";
  transform: translateY(-50%);
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.work-row time::after {
  position: absolute;
  top: 50%;
  left: 8px;
  width: 8px;
  height: 1px;
  background: #b8b8b2;
  content: "";
}

.work-row.year-start time {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.work-row.year-start time::before {
  border-color: var(--ink);
  background: var(--ink);
}

.work-row.year-span time::before {
  height: 21px;
  border-color: var(--ink);
  background: var(--page);
}

.work-row.year-span time {
  color: #4e4e4a;
}

.work-row.year-continuation time {
  color: #a3a39e;
}

.work-row:hover time,
.work-row:focus-visible time {
  color: var(--ink);
}

.work-row:hover time::before,
.work-row:focus-visible time::before {
  border-color: var(--ink);
  background: var(--ink);
  transform: translateY(-50%) scale(1.35);
}

.exhibition-list {
  border-top: 1px solid var(--ink);
}

.exhibition-list a {
  display: grid;
  grid-template-columns: minmax(140px, 0.75fr) minmax(280px, 1.7fr) minmax(180px, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.exhibition-list a:hover strong,
.exhibition-list a:focus-visible strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.exhibition-list time,
.exhibition-list span {
  color: var(--muted);
  font-size: 13px;
}

.exhibition-list strong {
  font-size: 18px;
  font-weight: 500;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) repeat(3, auto);
  align-items: center;
  gap: 28px;
  min-height: 116px;
  padding: 24px;
  background: #0a0a0a;
  color: #ffffff;
  font-size: 13px;
}

.site-footer strong {
  font-size: 22px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 56px 42px;
    padding: 0 16px;
  }

  .brand {
    font-size: 23px;
  }

  .language-nav {
    grid-column: 2;
    grid-row: 1;
    gap: 10px;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: stretch;
    gap: 18px;
    overflow-x: auto;
    border-top: 1px solid var(--line);
    font-size: 12px;
    white-space: nowrap;
    scrollbar-width: none;
  }

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

  .exhibition-carousel {
    grid-template-rows: max(260px, 58vw) 78px;
    height: auto;
  }

  .carousel-caption {
    padding: 0 16px;
  }

  .caption-copy {
    display: block;
  }

  .caption-title,
  .caption-place {
    display: block;
    max-width: calc(100vw - 130px);
  }

  .caption-place {
    margin-top: 3px;
  }

  .page-section {
    padding: 56px 16px 68px;
  }

  .practice-intro,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .practice-intro {
    padding-top: 42px;
    padding-bottom: 48px;
  }

  .intro-copy p {
    font-size: clamp(18px, 4.6vw, 21px);
    line-height: 1.45;
  }

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

  .work-preview {
    display: none;
  }

  .work-row {
    grid-template-columns: 28px minmax(0, 1fr) var(--timeline-width);
  }

  .work-row > span:nth-of-type(2) {
    display: none;
  }

  .exhibition-list a {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
  }

  .exhibition-list strong {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

@media (max-width: 520px) {
  .site-header {
    grid-template-rows: 54px 40px;
  }

  .brand {
    font-size: 21px;
  }

  .language-nav {
    font-size: 11px;
  }

  .primary-nav {
    gap: 15px;
  }

  .carousel-arrow {
    width: 44px;
    height: 44px;
    font-size: 25px;
  }

  .carousel-arrow-prev {
    left: 0;
  }

  .carousel-arrow-next {
    right: 0;
  }

  .work-list {
    --timeline-width: 78px;
  }

  .work-row {
    gap: 9px;
  }

  .work-row strong {
    font-size: 15px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (hover: none), (pointer: coarse) {
  .work-list:has(.work-row:hover) .work-row:not(:hover) {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track,
  .work-preview img,
  .work-row {
    transition: none;
  }

  .carousel-progress {
    display: none;
  }
}
