:root {
  --bg: #2d2d2d;
  --panel: #3b3b3b;
  --panel-soft: #474747;
  --text: #f5f5f1;
  --muted: #b8b8b2;
  --line: rgba(245, 245, 241, 0.18);
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.2);
  --header-size: 58px;
  --intro-size: 88px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Pretendard, "Noto Sans KR", Arial, sans-serif;
  letter-spacing: 0;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 18vw 100%,
    var(--bg);
}

body[data-page="home"] {
  height: 100svh;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
  background: rgba(45, 45, 45, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: grid;
  gap: 3px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.brand small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--white);
}

.home-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: calc(100svh - var(--header-size));
  padding: clamp(18px, 3vw, 36px);
  overflow: hidden;
}

.home-intro {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: end;
  margin-bottom: clamp(12px, 2vh, 22px);
}

.kicker {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--white);
  font-size: clamp(28px, 5vw, 72px);
  line-height: 0.98;
  font-weight: 800;
}

.wall-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(0, 1fr));
  height: 100%;
  gap: clamp(8px, 1vw, 14px);
  opacity: 1;
  transition: opacity 140ms ease;
}

.wall-grid.is-changing {
  opacity: 0;
}

.wall-item {
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 180ms ease, transform 180ms ease;
}

.wall-item:hover {
  border-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-2px);
}

.workshop-tile {
  display: grid;
  align-content: space-between;
  gap: clamp(10px, 1.4vw, 18px);
  padding: clamp(14px, 2vw, 28px);
  background: var(--white);
  color: #222;
  border-color: var(--white);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.18);
}

.workshop-tile:hover {
  border-color: var(--white);
}

.workshop-tile .workshop-eyebrow,
.workshop-tile em {
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 800;
  line-height: 1.25;
}

.workshop-tile .workshop-eyebrow {
  text-transform: uppercase;
}

.workshop-tile strong {
  max-width: 9em;
  font-size: clamp(25px, 3.2vw, 52px);
  line-height: 0.98;
  letter-spacing: 0;
}

.workshop-tile span:not(.workshop-eyebrow) {
  max-width: 18em;
  color: #3b3b3b;
  font-size: clamp(14px, 1.35vw, 19px);
  font-weight: 700;
  line-height: 1.35;
}

.workshop-tile em {
  color: #111;
  font-style: normal;
}

.wall-grid .slot-1 { grid-column: 1 / span 4; grid-row: 1 / span 3; }
.wall-grid .slot-2 { grid-column: 5 / span 3; grid-row: 1 / span 2; }
.wall-grid .slot-3 { grid-column: 8 / span 5; grid-row: 1 / span 3; }
.wall-grid .slot-4 { grid-column: 5 / span 3; grid-row: 3 / span 4; }
.wall-grid .slot-5 { grid-column: 1 / span 4; grid-row: 4 / span 3; }
.wall-grid .slot-6 { grid-column: 8 / span 5; grid-row: 4 / span 3; }

.wall-grid.layout-4 .slot-1 { grid-column: 1 / span 6; grid-row: 1 / span 3; }
.wall-grid.layout-4 .slot-2 { grid-column: 7 / span 6; grid-row: 1 / span 3; }
.wall-grid.layout-4 .slot-3 { grid-column: 1 / span 6; grid-row: 4 / span 3; }
.wall-grid.layout-4 .slot-4 { grid-column: 7 / span 6; grid-row: 4 / span 3; }

.wall-grid.layout-5 .slot-1 { grid-column: 1 / span 4; grid-row: 1 / span 3; }
.wall-grid.layout-5 .slot-2 { grid-column: 5 / span 4; grid-row: 1 / span 3; }
.wall-grid.layout-5 .slot-3 { grid-column: 9 / span 4; grid-row: 1 / span 3; }
.wall-grid.layout-5 .slot-4 { grid-column: 1 / span 6; grid-row: 4 / span 3; }
.wall-grid.layout-5 .slot-5 { grid-column: 7 / span 6; grid-row: 4 / span 3; }

.wall-grid.layout-7 .slot-4 { grid-column: 5 / span 3; grid-row: 3 / span 2; }
.wall-grid.layout-7 .slot-7 { grid-column: 5 / span 3; grid-row: 5 / span 2; }

.wall-grid.layout-8 .slot-1 { grid-column: 1 / span 3; grid-row: 1 / span 3; }
.wall-grid.layout-8 .slot-2 { grid-column: 4 / span 3; grid-row: 1 / span 2; }
.wall-grid.layout-8 .slot-3 { grid-column: 7 / span 3; grid-row: 1 / span 3; }
.wall-grid.layout-8 .slot-4 { grid-column: 10 / span 3; grid-row: 1 / span 2; }
.wall-grid.layout-8 .slot-5 { grid-column: 1 / span 3; grid-row: 4 / span 3; }
.wall-grid.layout-8 .slot-6 { grid-column: 4 / span 3; grid-row: 3 / span 4; }
.wall-grid.layout-8 .slot-7 { grid-column: 7 / span 3; grid-row: 4 / span 3; }
.wall-grid.layout-8 .slot-8 { grid-column: 10 / span 3; grid-row: 3 / span 4; }

.image-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 180px;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #575757, #343434);
}

.wall-grid .image-frame {
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  min-height: 0;
  overflow: hidden;
  background: var(--panel);
  border: 0;
  box-shadow: none;
}

.wall-grid img {
  object-fit: cover;
  object-position: center;
}

.wall-grid .image-frame img {
  background: transparent;
  box-shadow: none;
}

.wall-grid figcaption {
  opacity: 0;
  transition: opacity 180ms ease;
}

.wall-item:hover figcaption {
  opacity: 1;
}

.image-frame figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.image-frame.is-missing {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
}

.image-frame.is-missing span {
  max-width: 70%;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.page-title,
.work-page,
.archive-page,
.traces-page,
.about-page {
  padding: clamp(22px, 4vw, 48px);
}

.works-page {
  padding: clamp(22px, 4vw, 48px) clamp(28px, 10vw, 180px);
}

.page-title {
  padding-bottom: 22px;
}

.work-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: end;
  min-height: calc(100vh - 150px);
  touch-action: pan-y;
}

.work-stack-shell {
  position: relative;
  transform: scale(var(--stack-scale, 1));
  transform-origin: top center;
  transition: transform 180ms ease;
}

.stack-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(45, 45, 45, 0.58);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.2);
  transform:
    translate(
      calc((var(--stack-depth, 1) - var(--stack-index) - 1) * -10px),
      calc((var(--stack-depth, 1) - var(--stack-index) - 1) * -10px)
    )
    scale(calc(1 + (var(--stack-depth, 1) - var(--stack-index) - 1) * 0.012));
  pointer-events: none;
}

.work-stack-shell > .work-hero,
.work-stack-shell > .content-section {
  position: relative;
  z-index: 1;
}

.stack-indicator {
  position: relative;
  width: 56px;
  height: 38px;
  pointer-events: none;
}

.stack-indicator span {
  position: absolute;
  width: 34px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(45, 45, 45, 0.9);
  transform: translate(calc(var(--stack-index) * 5px), calc(var(--stack-index) * 3px));
}

/*
.stacked-work::before,
.stacked-work::after {
  content: "";
  position: absolute;
  top: clamp(20px, 5vw, 70px);
  bottom: clamp(96px, 12vw, 160px);
  width: clamp(28px, 4vw, 54px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    rgba(45, 45, 45, 0.7);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  z-index: 0;
}

.stacked-work::before {
  left: clamp(-18px, -2vw, -8px);
  transform: translateX(-38%) scale(0.96);
}

.stacked-work::after {
  right: clamp(-18px, -2vw, -8px);
  transform: translateX(38%) scale(0.96);
}
*/

.work-actions {
  position: sticky;
  top: calc(var(--header-size) + 14px);
  z-index: 15;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  pointer-events: none;
}

.back-button,
.close-button {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(45, 45, 45, 0.8);
  color: var(--white);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.close-button {
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.back-button:hover,
.close-button:hover {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.12);
}

.hero-image {
  position: relative;
  z-index: 1;
  min-height: min(72vh, 760px);
  box-shadow: 0 24px 70px var(--shadow);
}

.work-meta {
  position: relative;
  z-index: 1;
}

.work-page .image-frame img,
.archive-page .image-frame img,
.traces-page .image-frame img {
  object-fit: contain;
  background: transparent;
}

.work-page .image-frame,
.archive-page .image-frame,
.traces-page .image-frame {
  background: transparent;
  background-image: none;
}

.work-meta {
  padding-bottom: 8px;
}

.work-meta p:last-child,
.exhibition-text p:last-child,
.trace-note p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.translated-title {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.1;
}

.content-section {
  margin-top: clamp(40px, 7vw, 92px);
  min-width: 0;
}

.content-section.compact {
  margin-top: 28px;
}

.content-section h2,
.content-section h3,
.exhibition-block h2 {
  margin-bottom: 16px;
  color: var(--white);
  font-size: clamp(22px, 3vw, 38px);
}

.media-grid,
.trace-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.media-grid .image-frame,
.trace-grid .image-frame {
  grid-column: span 4;
  aspect-ratio: 4 / 3;
}

.related-work {
  display: block;
  grid-column: span 6;
}

.related-work .image-frame {
  aspect-ratio: 4 / 3;
}

.detail-grid .image-frame:nth-child(3n + 1),
.installation-grid .image-frame:nth-child(3n + 2) {
  grid-column: span 6;
  aspect-ratio: 16 / 10;
}

.relation-grid .image-frame,
.route-grid .image-frame {
  grid-column: span 6;
}

.link-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.link-list a,
.review-link {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.link-list span,
.review-link span,
.empty-note {
  color: var(--muted);
}

.archive-list {
  display: grid;
  gap: clamp(48px, 8vw, 110px);
}

.exhibition-block {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.exhibition-text {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) minmax(280px, 0.75fr);
  gap: 20px;
  margin-bottom: 22px;
}

.exhibition-text p:last-child {
  grid-column: 2;
}

.exhibition-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(320px, 1fr);
  gap: clamp(22px, 4vw, 58px);
  align-items: start;
}

.exhibition-layout .exhibition-text {
  display: block;
  margin-bottom: 0;
}

.poster-frame {
  min-height: 0;
  aspect-ratio: 1203 / 1696;
  box-shadow: 0 24px 70px var(--shadow);
}

.exhibition-info-block {
  display: grid;
  gap: 28px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.exhibition-info-block p {
  margin-bottom: 4px;
  color: var(--text);
  font-size: clamp(15px, 1.6vw, 20px);
  line-height: 1.45;
}

.exhibition-info-block .venue-name-line {
  margin-top: 12px;
  color: var(--white);
  font-weight: 700;
  font-size: clamp(15px, 1.6vw, 20px);
  line-height: 1.45;
}

.exhibition-text .exhibition-info-block p.venue-name-line {
  color: var(--white);
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 700;
  line-height: 1.45;
}

.exhibition-info-block .address-note-line {
  color: var(--muted);
  font-size: clamp(14px, 1.35vw, 17px);
  font-weight: 400;
}

.artist-note {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.venue-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(260px, 1fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: stretch;
}

.map-frame {
  min-height: 220px;
  aspect-ratio: 4 / 3;
}

.venue-copy {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.venue-copy strong {
  color: var(--white);
  font-size: clamp(18px, 2.2vw, 30px);
  line-height: 1.1;
}

.venue-copy span {
  color: var(--muted);
  line-height: 1.7;
}

.external-text-link {
  justify-self: start;
  width: fit-content;
  margin-top: 10px;
  color: var(--text);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.external-text-link:hover {
  color: var(--white);
}

.external-text-link.inline {
  margin-top: 0;
  text-transform: none;
  font-size: inherit;
}

.info-table {
  display: grid;
  border-top: 1px solid var(--line);
}

.info-table p {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) minmax(0, 1fr);
  gap: 18px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.info-table strong {
  color: var(--white);
  font-size: 12px;
  text-transform: uppercase;
}

.info-table span {
  color: var(--muted);
  line-height: 1.6;
}

.included-work-list {
  display: flex;
  gap: clamp(14px, 2vw, 24px);
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 2px 0 20px;
  cursor: default;
  scrollbar-width: thin;
}

.included-work-list.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.included-work-list.is-dragging .included-work-card {
  pointer-events: none;
}

.included-work-card {
  flex: 0 0 clamp(132px, 16vw, 190px);
  min-width: 0;
  scroll-snap-align: start;
  user-select: none;
  cursor: pointer;
}

.included-work-card .thumb-frame {
  aspect-ratio: 1 / 1;
  border-color: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.archive-page .included-work-card .thumb-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.included-work-card:hover .thumb-frame {
  border-color: rgba(255, 255, 255, 0.75);
  transform: translateY(-2px);
}

.included-work-card .thumb-frame figcaption {
  display: none;
}

.included-work-card img {
  -webkit-user-drag: none;
}

.review-list {
  margin-top: 24px;
}

.trace-note {
  max-width: 760px;
  margin: 0 0 28px;
}

.trace-note h2 {
  max-width: 620px;
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1.05;
}

.home-credit {
  align-self: end;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(300px, 0.8fr);
  gap: clamp(18px, 4vw, 52px);
  align-items: end;
  padding-bottom: clamp(36px, 7vw, 90px);
  border-bottom: 1px solid var(--line);
}

.about-hero h1 {
  grid-column: 2;
}

.about-hero p:not(.kicker),
.about-hero .text-link {
  grid-column: 2;
  max-width: 760px;
}

.about-hero p:not(.kicker),
.cv-block p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.text-link {
  display: inline-block;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.cv-section {
  padding-top: clamp(36px, 6vw, 78px);
}

.cv-section h2 {
  margin-bottom: 22px;
  color: var(--white);
  font-size: clamp(26px, 4vw, 54px);
}

.cv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.cv-column {
  border-top: 1px solid var(--line);
}

.cv-block {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.cv-block h3 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 16px;
  text-transform: uppercase;
}

.cv-block p {
  margin-bottom: 8px;
}

.works-title {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(300px, 0.9fr);
  gap: 20px;
  padding-left: 0;
  padding-right: 0;
}

.works-title h1,
.works-title p:not(.kicker) {
  grid-column: 2;
}

.works-title p:not(.kicker) {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.7;
}

.works-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: clamp(34px, 6vw, 88px) clamp(22px, 4vw, 54px);
  max-width: 980px;
  margin: 0 auto;
  padding-top: clamp(28px, 5vw, 70px);
}

.work-index-item {
  display: grid;
  gap: 10px;
  min-width: 0;
  transition: transform 180ms ease;
}

.work-index-item:nth-child(6n + 2),
.work-index-item:nth-child(6n + 5) {
  transform: translateY(clamp(18px, 4vw, 54px));
}

.work-index-item:nth-child(6n + 3) {
  transform: translateY(clamp(6px, 2vw, 28px));
}

.thumb-frame {
  aspect-ratio: 1 / 1;
  min-height: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 180ms ease, transform 180ms ease;
}

.thumb-frame img {
  object-fit: cover;
}

.work-index-item:hover .thumb-frame {
  border-color: rgba(255, 255, 255, 0.65);
}

.work-index-item:hover {
  transform: translateY(-2px);
}

.work-index-item:nth-child(6n + 2):hover,
.work-index-item:nth-child(6n + 5):hover {
  transform: translateY(calc(clamp(18px, 4vw, 54px) - 2px));
}

.work-index-item:nth-child(6n + 3):hover {
  transform: translateY(calc(clamp(6px, 2vw, 28px) - 2px));
}

.work-index-meta {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.work-index-meta strong {
  color: var(--white);
  font-size: 13px;
}

.work-index-meta span {
  color: var(--muted);
}

.work-index-meta em {
  color: rgba(245, 245, 241, 0.56);
  font-style: normal;
}

@media (max-width: 880px) {
  body {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 33.333vw 100%,
      var(--bg);
  }

  .home-intro,
  .work-hero,
  .exhibition-layout,
  .exhibition-text,
  .about-hero,
  .venue-grid {
    grid-template-columns: 1fr;
  }

  .about-hero h1,
  .about-hero p:not(.kicker),
  .about-hero .text-link,
  .works-title h1,
  .works-title p:not(.kicker) {
    grid-column: auto;
  }

  .work-hero {
    min-height: auto !important;
    align-items: start;
  }

  .work-stack-shell {
    transform-origin: top center;
  }

  .stack-frame {
    transform:
      translate(
        calc((var(--stack-depth, 1) - var(--stack-index) - 1) * -7px),
        calc((var(--stack-depth, 1) - var(--stack-index) - 1) * -7px)
      )
      scale(calc(1 + (var(--stack-depth, 1) - var(--stack-index) - 1) * 0.01));
  }

  h1 {
    font-size: clamp(32px, 11vw, 58px);
  }

  .wall-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(8, minmax(0, 1fr));
  }

  .wall-grid .slot-1 { grid-column: 1 / span 3; grid-row: 1 / span 3; }
  .wall-grid .slot-2 { grid-column: 4 / span 3; grid-row: 1 / span 3; }
  .wall-grid .slot-3 { grid-column: 1 / span 2; grid-row: 4 / span 2; }
  .wall-grid .slot-4 { grid-column: 3 / span 4; grid-row: 4 / span 2; }
  .wall-grid .slot-5 { grid-column: 1 / span 3; grid-row: 6 / span 3; }
  .wall-grid .slot-6 { grid-column: 4 / span 3; grid-row: 6 / span 3; }

  .wall-grid.layout-4 .slot-1 { grid-column: 1 / span 3; grid-row: 1 / span 4; }
  .wall-grid.layout-4 .slot-2 { grid-column: 4 / span 3; grid-row: 1 / span 4; }
  .wall-grid.layout-4 .slot-3 { grid-column: 1 / span 3; grid-row: 5 / span 4; }
  .wall-grid.layout-4 .slot-4 { grid-column: 4 / span 3; grid-row: 5 / span 4; }

  .wall-grid.layout-5 .slot-1 { grid-column: 1 / span 3; grid-row: 1 / span 3; }
  .wall-grid.layout-5 .slot-2 { grid-column: 4 / span 3; grid-row: 1 / span 3; }
  .wall-grid.layout-5 .slot-3 { grid-column: 1 / span 2; grid-row: 4 / span 5; }
  .wall-grid.layout-5 .slot-4 { grid-column: 3 / span 2; grid-row: 4 / span 5; }
  .wall-grid.layout-5 .slot-5 { grid-column: 5 / span 2; grid-row: 4 / span 5; }

  .media-grid .image-frame,
  .trace-grid .image-frame,
  .detail-grid .image-frame:nth-child(3n + 1),
  .installation-grid .image-frame:nth-child(3n + 2),
  .relation-grid .image-frame,
    .route-grid .image-frame {
    grid-column: span 6;
  }

  .related-work {
    grid-column: span 6;
  }

  .cv-grid {
    grid-template-columns: 1fr;
  }

  .works-page {
    padding-left: clamp(24px, 8vw, 72px);
    padding-right: clamp(24px, 8vw, 72px);
  }

  .works-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 46px 18px;
  }

  .exhibition-text p:last-child {
    grid-column: auto;
  }

}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .home-shell,
  .page-title,
  .work-page,
  .archive-page,
  .traces-page,
  .about-page {
    padding: 14px;
  }

  .works-page {
    padding: 14px clamp(34px, 11vw, 58px);
  }

  .workshop-tile {
    padding: 12px;
  }

  .workshop-tile strong {
    font-size: clamp(20px, 8vw, 34px);
  }

  .workshop-tile span:not(.workshop-eyebrow) {
    font-size: 13px;
  }

  .works-index-grid {
    grid-template-columns: 1fr;
    gap: 42px;
    max-width: 280px;
  }

  .work-index-item:nth-child(n),
  .work-index-item:nth-child(n):hover {
    transform: none;
  }

  .work-page {
    padding-top: 10px;
  }

  .work-actions {
    top: 10px;
    margin-bottom: 10px;
  }

  .work-hero {
    min-height: auto !important;
    align-items: start;
    gap: 18px;
  }

  .stack-frame {
    transform:
      translate(
        calc((var(--stack-depth, 1) - var(--stack-index) - 1) * -5px),
        calc((var(--stack-depth, 1) - var(--stack-index) - 1) * -5px)
      )
      scale(calc(1 + (var(--stack-depth, 1) - var(--stack-index) - 1) * 0.008));
  }

  .work-meta {
    padding-bottom: 0;
  }

  .home-intro {
    gap: 8px;
  }

  .home-intro h1 {
    font-size: clamp(30px, 13vw, 48px);
  }

  .wall-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(8, minmax(0, 1fr));
  }

  .wall-grid .slot-1 { grid-column: 1 / span 2; grid-row: 1 / span 2; }
  .wall-grid .slot-2 { grid-column: 3 / span 2; grid-row: 1 / span 2; }
  .wall-grid .slot-3 { grid-column: 1 / span 4; grid-row: 3 / span 2; }
  .wall-grid .slot-4 { grid-column: 1 / span 2; grid-row: 5 / span 2; }
  .wall-grid .slot-5 { grid-column: 3 / span 2; grid-row: 5 / span 2; }
  .wall-grid .slot-6 { grid-column: 1 / span 4; grid-row: 7 / span 2; }

  .wall-grid.layout-4 .slot-1 { grid-column: 1 / span 2; grid-row: 1 / span 4; }
  .wall-grid.layout-4 .slot-2 { grid-column: 3 / span 2; grid-row: 1 / span 4; }
  .wall-grid.layout-4 .slot-3 { grid-column: 1 / span 2; grid-row: 5 / span 4; }
  .wall-grid.layout-4 .slot-4 { grid-column: 3 / span 2; grid-row: 5 / span 4; }

  .wall-grid.layout-5 .slot-1 { grid-column: 1 / span 2; grid-row: 1 / span 3; }
  .wall-grid.layout-5 .slot-2 { grid-column: 3 / span 2; grid-row: 1 / span 3; }
  .wall-grid.layout-5 .slot-3 { grid-column: 1 / span 2; grid-row: 4 / span 3; }
  .wall-grid.layout-5 .slot-4 { grid-column: 3 / span 2; grid-row: 4 / span 3; }
  .wall-grid.layout-5 .slot-5 { grid-column: 1 / span 4; grid-row: 7 / span 2; }

  .media-grid,
  .trace-grid {
    gap: 9px;
  }

  .media-grid .image-frame,
  .trace-grid .image-frame,
  .detail-grid .image-frame:nth-child(3n + 1),
  .installation-grid .image-frame:nth-child(3n + 2),
  .relation-grid .image-frame,
    .route-grid .image-frame {
    grid-column: span 12;
  }

  .related-work {
    grid-column: span 12;
  }

  .hero-image {
    min-height: 0;
    height: auto;
    aspect-ratio: auto;
  }

  .work-page .hero-image img {
    height: auto;
    max-height: 72vh;
    object-fit: contain;
  }
}

/* Exhibition documentation, October 2026 */
.exhibition-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.gallery-link { display:block; min-width:0; }
.gallery-lead { grid-column:1 / -1; }
.exhibition-gallery .image-frame { aspect-ratio:3 / 2; margin:0; }
.exhibition-gallery img { width:100%; height:100%; object-fit:contain; }
.archive-caption { color:var(--muted); line-height:1.7; margin:12px 0 24px; }
.layout-comparison { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; align-items:start; }
.plan-image { margin:0; aspect-ratio:700 / 1020; background:#fff !important; }
.plan-key { margin-top:16px; border-top:1px solid var(--line); padding-top:16px; }
.plan-key summary { cursor:pointer; padding:8px 0; }
.plan-key ol { padding-left:2em; line-height:1.8; }
.plan-key li { padding:6px 0; }
.plan-key a { text-decoration:underline; text-underline-offset:3px; }
.exhibition-note { max-width:780px; }
.exhibition-note > p:not(.archive-caption) { line-height:1.95; word-break:keep-all; margin:0 0 24px; }
@media (min-width: 981px) {
  .work-hero:has(.portrait-image) { min-height:0; align-items:center; }
  .work-page .portrait-image { min-height:0; height:calc(100dvh - 220px); }
  .work-page .portrait-image img { width:100%; height:100%; object-fit:contain; }
}
@media (max-width: 680px) {
  .exhibition-gallery { grid-template-columns:1fr; gap:18px; }
  .layout-comparison { grid-template-columns:1fr; }
}

.exhibition-gallery figcaption, .plan-image figcaption { display:none; }
@media (min-width:981px) {
  .work-hero { min-height:0; align-items:center; }
  .work-page .hero-image { min-height:0; height:calc(100dvh - 220px); }
  .work-page .hero-image img { width:100%; height:100%; object-fit:contain; }
}
@media (max-width:560px) {
  .works-title { grid-template-columns:minmax(0,1fr); }
  .works-title h1 { font-size:clamp(38px,12vw,64px); overflow-wrap:anywhere; }
}

/* Exhibition directory: one exhibition and one document at a time. */
.archive-page > .page-title { padding:0 0 24px; }
.archive-page > .page-title h1 { font-size:clamp(28px,3vw,46px); margin:0; }
.archive-directory { display:grid; grid-template-columns:230px minmax(0,1fr); gap:clamp(28px,4vw,64px); align-items:start; }
.directory-sidebar { position:sticky; top:100px; align-self:start; border-top:1px solid var(--line); padding-top:18px; max-height:calc(100dvh - 125px); overflow-y:auto; }
.directory-year { color:var(--muted); font-size:12px; margin:0 0 16px; }
.directory-entry { margin-bottom:28px; }
.directory-exhibition { display:grid; gap:6px; padding:8px 0; }
.directory-exhibition strong { font-size:16px; }
.directory-exhibition span,.directory-exhibition small { color:var(--muted); font-size:12px; }
.directory-exhibition:not([aria-current]) { opacity:.65; }
.directory-sections { list-style:none; margin:18px 0 0 8px; padding:0 0 0 16px; border-left:1px solid var(--line); }
.directory-sections a { display:block; padding:10px 0; color:var(--muted); font-size:13px; }
.directory-sections a[aria-current] { color:var(--white); font-weight:700; }
.directory-content { min-width:0; border-top:1px solid var(--line); padding-top:18px; }
.directory-content-heading { margin-bottom:24px; }
.directory-content-heading h2 { font-size:clamp(24px,3vw,38px); margin:10px 0; }
.directory-section-label { margin:12px 0 0; font-size:13px; color:var(--muted); }
.overview-view { aspect-ratio:3/2; margin:0; }
.overview-view img { object-fit:contain; }
.overview-view figcaption,.installation-slide figcaption,.directory-work figcaption { display:none; }
.overview-details { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin:24px 0; font-size:14px; line-height:1.7; }
.overview-details p { margin:0 0 4px; }
.archive-disclosure { border-top:1px solid var(--line); padding:16px 0; }
.archive-disclosure summary { cursor:pointer; font-size:14px; }
.archive-disclosure p { line-height:1.7; }
.overview-poster { width:min(100%,420px); aspect-ratio:1203/1696; margin:20px 0; }
.overview-poster figcaption { display:none; }
.viewer-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:12px; }
.viewer-toolbar p { margin:0; color:var(--muted); font-size:13px; }
.viewer-toolbar > div { display:flex; align-items:center; gap:14px; }
.viewer-toolbar button { border:1px solid var(--line); background:transparent; color:var(--white); width:40px; height:36px; cursor:pointer; font-size:20px; }
.viewer-toolbar button:disabled { opacity:.3; cursor:default; }
.viewer-count { font-size:12px; min-width:46px; text-align:center; }
.installation-strip { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; scrollbar-width:thin; scrollbar-color:var(--muted) transparent; }
.installation-slide { display:block; flex:0 0 100%; min-width:0; scroll-snap-align:start; }
.installation-slide .image-frame { height:clamp(280px,calc(100dvh - 370px),760px); margin:0; min-height:0; }
.installation-slide img { object-fit:contain; width:100%; height:100%; }
.installation-thumbs { display:flex; gap:8px; overflow-x:auto; padding:12px 0; scrollbar-width:thin; }
.installation-thumbs button { flex:0 0 82px; height:58px; border:2px solid transparent; padding:2px; background:none; cursor:pointer; opacity:.65; }
.installation-thumbs button[aria-current] { border-color:var(--white); opacity:1; }
.installation-thumbs img { object-fit:cover; width:100%; height:100%; }
.directory-works { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:30px 20px; }
.directory-work { min-width:0; display:grid; align-content:start; gap:8px; }
.directory-work strong { font-size:13px; }
.directory-work span { font-size:12px; color:var(--muted); }
.directory-work .thumb-frame { margin:0; }
.directory-content .exhibition-note { margin-top:0; }
.directory-content .plan-image { max-height:calc(100dvh - 290px); }
.directory-content a:focus-visible,.directory-content button:focus-visible,.directory-sidebar a:focus-visible { outline:2px solid white; outline-offset:4px; }
@media(max-width:880px) {
 .archive-directory { grid-template-columns:180px minmax(0,1fr); gap:24px; }
 .directory-works { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:680px) {
 .archive-directory { display:block; }
 .directory-sidebar { position:static; max-height:none; margin-bottom:24px; }
 .directory-entry { margin-bottom:12px; }
 .directory-sections { display:flex; flex-wrap:wrap; gap:0 18px; margin:10px 0 0; padding:0; border:0; }
 .directory-sections a { padding:8px 0; font-size:12px; }
 .directory-year { margin-bottom:4px; }
 .directory-exhibition { gap:3px; }
 .overview-details { grid-template-columns:1fr; }
 .installation-slide .image-frame { height:auto; aspect-ratio:3/2; }
 .directory-content .plan-image { max-height:none; }
 .directory-content .info-table p { grid-template-columns:1fr; gap:8px; }
}
.archive-list { grid-template-columns:minmax(0,1fr); min-width:0; }
.archive-directory,.directory-viewer { min-width:0; max-width:100%; }
.installation-strip,.installation-thumbs { width:100%; max-width:100%; min-width:0; }
@media(min-width:681px) {
 .archive-page { padding-top:24px; padding-bottom:24px; }
 .directory-content-heading { margin-bottom:16px; }
 .directory-content-heading h2 { font-size:28px; }
 .installation-slide .image-frame { height:clamp(240px,calc(100dvh - 470px),680px); }
 .directory-viewer > .archive-caption { margin:8px 0 0; font-size:12px; }
}

/* Feedback: poster overview, dated layout records and larger photographs. */
.overview-poster-layout { display:grid; grid-template-columns:minmax(240px,.85fr) minmax(280px,1fr); gap:36px; align-items:start; }
.overview-poster-layout .overview-poster { width:100%; max-height:calc(100dvh - 320px); margin:0; }
.overview-information .overview-details { display:grid; grid-template-columns:1fr; gap:22px; margin:0; }
.overview-venue { margin-top:24px; padding-top:20px; border-top:1px solid var(--line); font-size:14px; line-height:1.7; }
.overview-venue h3 { font-size:14px; margin:0 0 10px; }
.layout-period + .layout-period { margin-top:48px; padding-top:30px; border-top:1px solid var(--line); }
.layout-period h3 { font-size:18px; margin:0 0 24px; }
.layout-period-body { display:grid; grid-template-columns:minmax(220px,.8fr) minmax(240px,1fr); gap:32px; align-items:start; }
.layout-drawing { display:block; }
.directory-content .layout-drawing .plan-image { max-height:none; aspect-ratio:auto; margin:0; }
.layout-drawing img { width:100%; height:auto; }
.layout-work-list { margin:0; padding-left:26px; font-size:13px; line-height:1.65; }
.layout-work-list li { padding:0 0 9px 3px; }
.layout-work-list a:hover { text-decoration:underline; }
@media(min-width:681px) { .installation-slide .image-frame { height:clamp(300px,calc(100dvh - 370px),800px); } }
@media(max-width:880px) { .overview-poster-layout,.layout-period-body { grid-template-columns:minmax(0,1fr); } .overview-poster-layout .overview-poster { max-height:none; max-width:420px; } .layout-drawing { max-width:440px; } }

/* Compact, side-by-side dated layout records. */
.layout-periods { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px; align-items:start; }
.layout-period { min-width:0; }
.layout-period + .layout-period { margin-top:0; padding-top:0; border-top:0; }
.layout-period h3 { font-size:16px; }
.layout-period-body { grid-template-columns:minmax(0,.8fr) minmax(0,1fr); gap:18px; }
.layout-work-list { font-size:12px; padding-left:22px; overflow-wrap:anywhere; }
@media(max-width:1100px) {
 .layout-periods { grid-template-columns:minmax(0,1fr); gap:36px; }
 .layout-period-body { grid-template-columns:minmax(0,220px) minmax(0,1fr); }
}
@media(max-width:560px) {
 .layout-period-body { grid-template-columns:minmax(0,1fr); }
 .layout-drawing { width:220px; max-width:100%; }
 .layout-work-list { font-size:13px; }
}

.workshop-archive { max-width:1440px; margin:auto; }
.workshop-heading h1 { font-size:clamp(30px,4vw,56px); }
.workshop-archive p { line-height:1.85; max-width:850px; }
.workshop-nav { display:flex; flex-wrap:wrap; gap:14px 28px; border-block:1px solid var(--line); padding:18px 0; margin-top:28px; }
.workshop-archive section[id] { scroll-margin-top:150px; }
.workshop-archive details { margin:20px 0; }
.workshop-archive summary { cursor:pointer; padding:12px 0; }
.workshop-archive dd { margin:6px 0 16px; color:var(--muted); }
.workshop-card-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:18px; }
.workshop-card-grid figure { margin:0; }
.workshop-card-grid img { width:100%; height:auto; border-radius:2.3%; }
.workshop-card-grid figcaption { padding-top:6px; font-size:12px; color:var(--muted); }
.workshop-case { border-top:1px solid var(--line); padding-top:24px; margin-top:40px; }
.workshop-case h3 { font-size:19px; }
.card-board { position:relative; width:100%; max-width:1000px; background:#40403e; border:1px solid var(--line); }
.card-board img { position:absolute; height:auto; border-radius:2.3%; box-shadow:0 2px 5px #0004; }
.record-photo { width:auto; max-width:100%; height:auto; max-height:750px; }
.reconstruction-note { font-size:12px; color:var(--muted); }
.conversation-list { max-width:850px; padding-left:24px; line-height:1.85; }
.conversation-list li { padding:16px 0; border-bottom:1px solid var(--line); }
@media(max-width:700px) { .workshop-card-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; } }

/* Equal card scale across reconstructed layouts; upright catalog faces. */
.catalog-card-face { aspect-ratio:1; display:flex; align-items:center; justify-content:center; }
.workshop-card-grid .catalog-card-face img { width:100%; height:auto; }
.catalog-card-face .upright-turn { transform:rotate(-90deg); }
.card-board { max-width:1000px; }

.card-board-scroll { width:100%; max-width:1000px; overflow-x:auto; }

/* The ten-card record uses the available page width without its own scrollbar. */
#case-09 .card-board-scroll { max-width:1415.385px; overflow:visible; }
#case-09 .card-board { width:100% !important; }

.overview-context { border-top:1px solid var(--line); margin-top:36px; padding-top:20px; }
.overview-context p { line-height:1.9; max-width:900px; }
.exhibition-artists { word-break:keep-all; }
.installation-elevation svg { display:block; width:100%; height:auto; background:#fafaf7; }
.installation-elevation svg a:hover rect, .installation-elevation svg a:focus rect { fill:#ece9df; stroke-width:4; }
.elevation-work-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 40px; padding-left:24px; }
@media(max-width:600px) { .elevation-work-list { grid-template-columns:1fr; } }

.installation-elevation { display:grid; grid-template-columns:minmax(0,2fr) minmax(240px,1fr); gap:28px; align-items:start; }
.elevation-drawing { position:sticky; top:110px; }
.installation-elevation .elevation-work-list { display:block; margin:0; padding-left:28px; }
.elevation-work-list li { margin:0 0 18px; padding-left:4px; }
.elevation-work-list a { font-weight:600; }
.elevation-translation,.elevation-caption { display:block; font-size:13px; line-height:1.6; color:var(--muted); }
.elevation-caption { margin-top:4px; }
@media(max-width:900px) { .installation-elevation { grid-template-columns:1fr; } .elevation-drawing { position:static; } }

.installation-periods { display:flex; flex-wrap:wrap; gap:12px 24px; margin-bottom:20px; }
.installation-periods a { padding:8px 0; border-bottom:2px solid transparent; }
.installation-periods a[aria-current] { border-color:currentColor; font-weight:700; }

.directory-periods { list-style:none; margin:4px 0 12px 12px; padding:0 0 0 10px; border-left:1px solid var(--line); }
.directory-periods li { margin:0; }
.directory-periods a { display:block; padding:9px 6px; font-size:12px; line-height:1.5; }
.directory-periods a[aria-current="page"] { background:rgba(128,128,128,.16); font-weight:700; box-shadow:inset 2px 0 currentColor; }
