:root {
  --ivory: #f5f2ea;
  --stone: #ded8cc;
  --charcoal: #292925;
  --green: #34483f;
  --gold: #ac9064;
  --ink-gold: #715734;
  --muted: #5b5549;
  --rule: #bdb2a1;
  --serif: "Noto Serif KR", "Noto Serif CJK KR", "Batang", Georgia, serif;
  --sans: Pretendard, "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body { margin: 0; color: var(--charcoal); background: var(--ivory); font: 1rem/1.8 var(--sans); }
a { color: inherit; text-underline-offset: .28em; }
a:focus-visible, button:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
button { font: inherit; }
img { display: block; width: 100%; height: auto; }
figure, dd { margin: 0; }
h1, h2, h3, p { margin: 0; }
p + p { margin-top: 1rem; }
h2, h3, .lead { font-family: var(--serif); }
h2 { font-size: clamp(2.5rem, 5.2vw, 5rem); font-weight: 500; line-height: 1.22; letter-spacing: -.08em; }
h3 { font-size: clamp(1.3rem, 2.7vw, 2.4rem); font-weight: 600; line-height: 1.4; letter-spacing: -.065em; }
.wrap { width: min(100% - var(--gutter) * 2, 1320px); margin-inline: auto; }

.skip { position: fixed; top: 10px; left: 10px; z-index: 5; padding: .45rem 1rem; background: var(--ivory); transform: translateY(-150%); }
.skip:focus { transform: none; }
.masthead { position: sticky; top: 0; z-index: 2; background: var(--ivory); border-bottom: 1px solid var(--rule); }
.masthead-inner {
  min-height: 68px;
  width: min(100% - var(--gutter) * 2, 1320px);
  margin: auto;
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.2rem;
}
.masthead a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; gap: .55rem; }
.masthead a:hover { text-decoration: underline; }
.wordmark { justify-self: start; font: 700 .8rem Georgia, serif; letter-spacing: .15em; }
.mark { width: 13px; height: 13px; border: 1px solid var(--ink-gold); transform: rotate(45deg); flex: 0 0 auto; }
.masthead nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 46px); font-size: .86rem; }
.masthead-source { justify-self: end; font-size: .86rem; }

.hero { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(24px, 4vw, 72px); align-items: center; padding-block: clamp(40px, 6vw, 92px); }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-bottom: 1.25rem; font-size: .75rem; letter-spacing: .15em; font-weight: 650; }
.eyebrow span:first-child { color: var(--ink-gold); padding-right: .7rem; border-right: 1px solid var(--rule); }
h1 { font: 400 clamp(3rem, 7.05vw, 7.3rem)/.85 Georgia, "Times New Roman", serif; letter-spacing: -.071em; }
.period { color: var(--ink-gold); }
.korean-title { display: block; font: 500 clamp(2.15rem, 3.9vw, 3.65rem)/1.2 var(--serif); letter-spacing: -.08em; margin-top: 1.4rem; }
.subtitle { font: italic clamp(1.08rem, 2vw, 1.48rem)/1.3 Georgia, serif; color: var(--ink-gold); margin-top: .75rem; }
.identity { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .8rem; margin-top: 1.65rem; padding-top: .9rem; border-top: 1px solid var(--rule); width: fit-content; font-size: .88rem; }
.identity span, .hero-message { color: var(--muted); }
.hero-message { margin-top: .65rem; }
.tour { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 48px; margin-top: 1.45rem; padding: .5rem .9rem; color: var(--ivory); background: var(--green); font-size: .88rem; text-decoration: none; }
.tour:hover { background: var(--charcoal); text-decoration: underline; }
.frame { padding: clamp(6px, 1vw, 16px); background: #e9e2d3; border: 1px solid #aa9d84; }
figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .8rem; padding-block: .65rem 0; font-size: .76rem; color: var(--muted); }

.chapter { padding-block: clamp(65px, 9vw, 140px); }
.artist { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 8vw, 124px); border-top: 1px solid var(--rule); }
.artist-copy { max-width: 37rem; }
.lead { font-size: clamp(1.4rem, 2.65vw, 2.25rem); letter-spacing: -.055em; line-height: 1.55; }
.signature { font: 500 1.3rem/1.4 var(--serif); color: var(--ink-gold); }

.strength-section { background: var(--stone); }
.studies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 48px); margin-top: 2.65rem; align-items: start; }
.study:nth-child(2) { margin-top: 2.2rem; }
.study figcaption { justify-content: start; padding-bottom: .7rem; border-bottom: 1px solid #a69a85; }
.study h3 { margin: 1rem 0 .5rem; font-size: clamp(1.2rem, 2vw, 1.75rem); }
.study p { font-size: .94rem; }
.toggle { cursor: pointer; background: transparent; color: var(--charcoal); margin-top: .9rem; min-height: 46px; border: 1px solid #91836d; padding: .4rem .65rem; font-size: .84rem; }
.toggle:hover { background: var(--ivory); }
.details { border-top: 1px solid #a69a85; padding-top: .75rem; margin-top: .8rem; }
.details p + p { margin-top: .65rem; }

.materials { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 7vw, 100px); }
.education { margin-top: 1.7rem; font-size: .92rem; }
.education span { margin-left: .3rem; color: var(--ink-gold); font-size: .82rem; }
.materials-list { margin: 0; border-top: 1px solid var(--rule); }
.materials-list div { display: grid; grid-template-columns: minmax(90px, .45fr) 1fr; align-items: baseline; gap: 12px; padding: .85rem 0; border-bottom: 1px solid var(--rule); }
.materials-list dt { font: 400 clamp(1.2rem, 2.5vw, 2rem)/1.25 Georgia, serif; }
.materials-list dd { font-size: .9rem; color: var(--muted); }

.exhibition { background: #24342d; color: var(--ivory); }
.exhibition .eyebrow span:first-child, .exhibition figcaption, .credit { color: #e2c79b; }
.exhibit { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(24px, 6vw, 90px); align-items: center; margin-top: clamp(35px, 6vw, 85px); }
.exhibit img { border: 1px solid var(--gold); }
.exhibit-reversed { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); }
.exhibit-reversed figure { grid-column: 2; grid-row: 1; }
.exhibit-reversed .exhibit-copy { grid-column: 1; grid-row: 1; }
.exhibit-copy h3 { margin-bottom: .8rem; }
.credit { font-size: .88rem; }

.epilogue > .lead { margin-top: 1.3rem; }
.epilogue > p:not(.eyebrow) { max-width: 38rem; }
.principles { display: grid; grid-template-columns: .7fr 1fr 1fr; gap: 1.2rem; border-top: 1px solid var(--rule); padding-top: 1.6rem; margin-top: clamp(45px, 8vw, 100px); }
.principles h3 { font-size: 1.4rem; }
.principles h4, .principles ul { margin: 0; }
.principles ul { padding-left: 1.2rem; color: var(--muted); font-size: .91rem; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; padding-block: 1rem; border-top: 1px solid var(--rule); font-size: .84rem; }

@media (max-width: 740px) {
  .masthead-inner { grid-template-columns: 1fr auto; gap: 0 .6rem; padding-top: 3px; }
  .masthead nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: .65rem; border-top: 1px solid var(--stone); }
  .masthead-source { grid-column: 2; grid-row: 1; }
  .hero, .artist, .materials, .exhibit, .exhibit-reversed, .principles { grid-template-columns: 1fr; }
  .hero { gap: 1.4rem; padding-top: 28px; }
  .hero .eyebrow { margin-bottom: .95rem; }
  .identity { margin-top: 1.2rem; }
  h1 { font-size: clamp(3.35rem, 11vw, 5.5rem); }
  .exhibit-reversed figure, .exhibit-reversed .exhibit-copy { grid-column: auto; grid-row: auto; }
  .principles { gap: .85rem; }
}
@media (max-width: 590px) {
  .studies { grid-template-columns: 1fr; gap: 2.3rem; }
  .study:nth-child(2) { margin-top: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .in-view { animation: appear .62s ease-out both; }
  @keyframes appear { from { opacity: .65; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.work-label { margin-top: 1rem; border-left: 2px solid var(--gold); padding-left: .85rem; }
.work-label p { display: flex; gap: .75rem; margin: 0; font-size: .91rem; line-height: 1.65; }
.work-label strong { flex: none; color: var(--ink-gold); }
.tour:focus-visible { outline-color: var(--ink-gold); }
p, h2, h3, dd { word-break: keep-all; overflow-wrap: break-word; }
@media (min-width: 1000px) and (max-height: 800px) {
  .hero { padding-block: 28px; }
  .hero-piece { width: min(100%, 680px); justify-self: end; }
}

#hero-title { font-family: var(--serif); font-weight: 500; line-height: 1.08; }
.subtitle, .wordmark { font-family: var(--serif); font-style: normal; }
.artist-copy h3 { margin-bottom: 1rem; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.artist-copy p + h3 { margin-top: 2.2rem; }

.wrap, .masthead-inner { max-width: 1120px; }
.masthead-inner { grid-template-columns: auto 1fr auto; }
.masthead nav { justify-self: end; gap: clamp(12px, 2.4vw, 32px); }
.masthead nav a { font-family: var(--serif); }
.masthead-source { color: var(--muted); }
.artist { grid-template-columns: minmax(0, .65fr) minmax(0, 1fr); }
.artist-copy { max-width: 34em; }
@media (max-width: 740px) {
  .masthead-inner { grid-template-columns: 1fr auto; }
  .masthead nav { width: 100%; gap: .5rem; font-size: .8rem; }
  .artist { grid-template-columns: 1fr; }
}

.artist-intro { max-width: 24em; margin-top: 1.4rem; color: var(--muted); }
.graduation-photos { display: grid; grid-template-columns: 2fr 3fr; align-items: end; gap: 1rem; margin: 2rem 0; }
.graduation-photos img { border: 1px solid var(--rule); }
#aws-exhibit { scroll-margin-top: 1rem; }
@media (max-width: 480px) {
  .graduation-photos { grid-template-columns: 1fr; }
  .graduation-photos figure:first-child { width: 74%; }
}

.photo-zoom { display: block; position: relative; cursor: zoom-in; }
.photo-zoom span { position: absolute; right: .45rem; bottom: .45rem; background: var(--ivory); color: var(--charcoal); padding: .2rem .5rem; font-size: .8rem; }
.photo-viewer { max-width: calc(100% - 1.5rem); max-height: calc(100% - 1.5rem); padding: .75rem; border: 0; background: var(--ivory); color: var(--charcoal); }
.photo-viewer::backdrop { background: rgb(20 25 22 / 87%); }
.photo-viewer form { display: flex; justify-content: end; margin-bottom: .5rem; }
.photo-viewer button { min-height: 44px; padding: .35rem .8rem; cursor: pointer; background: var(--ivory); color: var(--charcoal); border: 1px solid var(--rule); }
.photo-viewer img { width: auto; max-width: 100%; max-height: calc(100dvh - 6rem); object-fit: contain; }

/* Exhibition guide */
.hero-actions { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin-top: 1.45rem; }
.hero-actions .tour { margin-top: 0; }
.guide-open, .guide-bar button, .guide-go {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  border: 1px solid var(--ink-gold); padding: .45rem .85rem;
  background: var(--ivory); color: var(--charcoal); font: inherit; cursor: pointer;
}
.guide-open { min-height: 48px; font-size: .88rem; }
.guide-open[hidden] { display: none; }
.guide-bar button:disabled { opacity: .5; cursor: default; }
.exhibit-guide {
  width: min(740px, calc(100% - 1.5rem)); max-height: calc(100% - 1.5rem);
  padding: 0; border: 0; background: transparent; color: var(--charcoal);
}
.exhibit-guide::backdrop { background: rgb(20 30 24 / 87%); }
.guide-panel {
  background: var(--ivory); border: 1px solid var(--gold); border-bottom: 6px solid var(--gold);
  padding: clamp(.9rem, 3vw, 1.8rem); transform-origin: center bottom;
}
.guide-bar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.guide-bar h2 { font-size: 1.4rem; margin: 0; }
.guide-card { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1rem; margin: 1rem 0; }
.guide-card img { aspect-ratio: 4 / 3; object-fit: contain; background: var(--stone); }
.guide-card h3 { margin: 0 0 .45rem; }
.guide-go { background: var(--green); color: var(--ivory); text-decoration: none; }
.guide-controls { border-top: 1px solid var(--rule); padding-top: .65rem; }
.guide-position { font-variant-numeric: tabular-nums; }
@media (max-width: 540px) {
  .guide-card { grid-template-columns: 1fr; }
  .guide-card img { max-height: 27vh; }
}
@media (prefers-reduced-motion: no-preference) {
  .exhibit-guide[open] .guide-panel { animation: guide-arrive .55s cubic-bezier(.2,.75,.25,1) both; }
  @keyframes guide-arrive {
    from { opacity: 0; transform: perspective(950px) translateY(32px) translateZ(-110px) rotateX(18deg); }
    to { opacity: 1; transform: none; }
  }
}

.artist-summary { border-top: 2px solid var(--green); padding-top: 1rem; }
.artist-evidence { margin: 1.35rem 0 0; border-top: 1px solid var(--rule); }
.artist-evidence div { display: grid; grid-template-columns: 5.25em 1fr; gap: .5rem; border-bottom: 1px solid var(--rule); padding: .5rem 0; }
.artist-evidence dt { color: var(--muted); font-size: .88rem; }
.artist > .graduation-photos, .artist-story { grid-column: 1 / -1; min-width: 0; }
.artist > .graduation-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.artist > .graduation-photos figure:first-child { width: auto; }
.artist > .graduation-photos img { aspect-ratio: 2 / 1; object-fit: cover; object-position: center 43%; }
.artist-story { border-block: 1px solid var(--rule); }
.artist-story summary { cursor: pointer; padding: .85rem 0; font-weight: 650; color: var(--green); }
.artist-story summary:focus-visible { outline: 2px solid var(--ink-gold); outline-offset: 4px; }
.artist-story .artist-copy { padding: .8rem 0 1.5rem; }
@media (max-width: 540px) {
  .artist > .graduation-photos img { aspect-ratio: 4 / 3; }
}
