/* Soft overhead light and a warm gallery surface keep the photographs clear. */
.portfolio > .site-header { position: absolute; z-index: 10; inset: 0 0 auto; }
.hero {
  --hero-inset: max(var(--gutter), calc((100vw - 1440px) / 2));
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 3vw, 56px);
  min-height: 740px;
  height: min(100svh, 1020px);
  padding: 126px var(--hero-inset) 34px;
  overflow: clip;
  background: var(--surface);
}
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-bottom: 80px; }
.hero-eyebrow { margin-bottom: 29px; font-size: 10px; letter-spacing: .10em; }
.hero h1 { margin: 0 0 0 -3px; font: 400 clamp(48px, 6.9vw, 112px)/1.08 var(--display); letter-spacing: -.025em; white-space: nowrap; }
.hero h1 > span { display: inline; }
.primary-link { display: flex; justify-content: space-between; align-items: center; gap: 42px; min-width: 165px; min-height: 44px; margin-top: 48px; padding-block: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.primary-link > span { font-size: 18px; }
.primary-link:hover { color: var(--ink); border-color: var(--ink); }
.artwork-viewer { --size: clamp(230px, min(24vw, calc((100svh - 340px) * .6)), 370px); display: grid; grid-template-rows: minmax(0, 1fr) 71px; min-width: 0; }
.viewer-canvas { position: relative; min-height: 0; }
.rotation-controls { position: absolute; z-index: 4; top: 0; right: 0; display: flex; align-items: center; gap: 13px; }
.rotation-controls button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; color: var(--muted); font-size: 11px; }
.rotation-controls button:hover, .rotation-controls button[aria-pressed=true] { color: var(--ink); }
.scene { position: absolute; z-index: 2; inset: 35px 0 74px; }
.artwork-stage { --half: calc(var(--size) / 2); position: relative; display: grid; place-items: center; width: 100%; height: 100%; perspective: 1600px; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; outline-offset: -10px !important; }
.artwork-stage.dragging { cursor: grabbing; }
.hero-cube { position: relative; z-index: 2; width: var(--size); height: var(--size); transform-style: preserve-3d; transform: rotateX(-18deg) rotateY(-31deg); will-change: transform; }
.hero-cube.is-loading { visibility: hidden; }
/* A fractional overlap closes rasterization seams without drawing an edge. */
.cube-face { position: absolute; inset: -.25px; backface-visibility: hidden; overflow: hidden; }
.cube-face img { width: 100%; height: 100%; object-fit: cover; filter: brightness(var(--illumination, 1)); pointer-events: none; }
.cube-face.front { transform: translateZ(var(--half)); }
.cube-face.back { transform: rotateY(180deg) translateZ(var(--half)); }
.cube-face.left { transform: rotateY(-90deg) translateZ(var(--half)); }
.cube-face.right { transform: rotateY(90deg) translateZ(var(--half)); }
.cube-face.top { transform: rotateX(90deg) translateZ(var(--half)); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(var(--half)); }
.face-shade, .face-light { position: absolute; inset: 0; pointer-events: none; }
.face-shade { background: linear-gradient(var(--light-angle, 0deg), rgb(4 6 5 / var(--far-shade, .20)), rgb(4 6 5 / var(--shade, .14)) 52%, rgb(4 6 5 / var(--near-shade, .07))); }
.face-light { background: radial-gradient(ellipse at var(--light-x, 32%) var(--light-y, 15%), #fff9e9d9, #fff9e447 30%, transparent 76%); opacity: var(--glint, .12); mix-blend-mode: screen; }
.ground-shadow { position: absolute; z-index: 1; left: 50%; top: calc(50% + var(--contact-y, calc(var(--size) * .77))); width: calc(var(--view-size, var(--size)) * 1.12); height: calc(var(--view-size, var(--size)) * .10); transform: translate(-50%, -35%); pointer-events: none; }
.ground-shadow::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #41453730; filter: blur(12px); transform: scaleX(var(--shadow-width, 1)); }
.ground-shadow::after { content: ''; position: absolute; left: calc(50% + var(--contact-x, 0px)); top: 26%; width: 31%; height: 24%; border-radius: 50%; background: #31352944; filter: blur(3px); transform: translateX(-50%); }
.interaction-hint { position: absolute; z-index: 3; bottom: 19px; left: 50%; display: flex; align-items: center; gap: 10px; width: max-content; margin: 0; transform: translateX(-50%); color: var(--muted); font-size: 10px; letter-spacing: .015em; pointer-events: none; }
.interaction-hint > span[aria-hidden] { font-size: 19px; font-weight: 300; }
.touch-hint { display: none; }
.viewer-status { position: absolute; z-index: 5; left: 50%; top: 54px; width: max-content; max-width: calc(100% - 32px); margin: 0; transform: translateX(-50%); background: var(--background); font-size: 11px; }
.viewer-status:not(:empty) { padding: 10px 14px; border: 1px solid var(--line); }
.viewer-caption { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.selected-number { display: none; }
.selected-work { flex-shrink: 0; }
.selected-work h2 { margin: 0 0 3px; font-size: 13px; font-weight: 400; }
.selected-work p { margin: 0; font-size: 10px; color: var(--muted); }
.face-link { margin-left: auto; color: var(--muted); font-size: 11px; }
.face-link span { margin-left: 10px; }
.face-link:hover { color: var(--ink); }
.work-navigation { display: flex; align-items: center; gap: 7px; }
#work-counter { font-size: 11px; margin-right: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
#work-counter > span { color: var(--muted); margin-left: 4px; }

/* The arrangement follows the installation photograph, without separate cards. */
.works { padding-top: 94px; padding-bottom: 108px; }
.work-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 42px 30px; }
.work-option { display: block; min-width: 0; text-align: left; }
.work-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1.1; width: 100%; perspective: 900px; }
.work-mini-cube { --mini-size: clamp(80px, 8.6vw, 138px); --mini-half: calc(var(--mini-size) / 2); position: relative; width: var(--mini-size); height: var(--mini-size); margin-top: -12px; transform-style: preserve-3d; transform: rotateX(-18deg) rotateY(-31deg); transition: transform .35s ease; }
.mini-face { position: absolute; inset: -.25px; width: calc(100% + .5px); height: calc(100% + .5px); object-fit: cover; backface-visibility: hidden; }
.mini-face.front { transform: translateZ(var(--mini-half)); filter: brightness(.94); }
.mini-face.right { transform: rotateY(90deg) translateZ(var(--mini-half)); filter: brightness(.85); }
.mini-face.top { transform: rotateX(90deg) translateZ(var(--mini-half)); filter: brightness(1); }
.mini-shadow { position: absolute; bottom: 18%; left: 50%; width: 53%; height: 15px; transform: translateX(-44%); border-radius: 50%; background: #0009; filter: blur(10px); }
.work-caption { display: flex; align-items: center; gap: 9px; min-height: 51px; padding-block: 11px; border-bottom: 1px solid var(--line); }
.work-caption-copy { display: contents; }
.work-title { font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
.work-detail { margin-left: auto; color: var(--muted); font-size: 10px; }
.work-arrow { color: var(--muted); font-size: 17px; }
.work-option[aria-pressed=true] .work-caption { border-color: var(--accent); }
.work-option[aria-pressed=true] .work-title::after { content: ' · 감상 중'; margin-left: 5px; color: var(--muted); font-size: 9px; }
.work-option:focus-visible { outline-offset: 6px; }
.collection-bottom { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-top: 35px; }
.collection-bottom p { margin: 0; color: var(--muted); font-size: 11px; }
.collection-bottom button { flex-shrink: 0; }

/* A text-only artist record with a clear name and readable biography. */
.artist { padding-top: 60px; padding-bottom: 88px; border-top: 1px solid var(--line); }
.artist-layout { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(48px, 8vw, 120px); align-items: start; }
.artist-identity > .eyebrow { margin-bottom: 20px; }
.artist-identity h3 { margin: 0; font-size: 36px; line-height: 1.3; font-weight: 400; letter-spacing: -.03em; }
.artist-identity h3 > span { display: block; margin-top: 12px; color: var(--muted); font: 400 28px/1.2 var(--display); letter-spacing: -.01em; }
.artist-copy { width: 100%; max-width: 620px; }
.artist-bio { margin: 0 0 30px; color: var(--ink); font-size: 16px; line-height: 1.95; word-break: keep-all; }
.artist-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: 0 0 23px; padding-top: 22px; border-top: 1px solid var(--line); }
.artist-details dt { margin-bottom: 7px; color: var(--muted); font-size: 14px; }
.artist-details dd { margin: 0; font-size: 15px; }

/* Exhibition entries read like a catalogue record. */
.exhibitions { padding-top: 60px; padding-bottom: 110px; border-top: 1px solid var(--line); }
.exhibition-record { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(180px, 285px); gap: clamp(32px, 4.5vw, 68px); align-items: start; padding-top: 12px; }
.exhibition-year { margin: 4px 0 0; color: var(--ink); font: 400 34px/1 var(--display); }
.exhibition-type { margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.exhibition-copy h3 { margin: 0; font: 400 clamp(45px, 4.8vw, 69px)/1 var(--display); letter-spacing: -.025em; }
.exhibition-korean-title { margin: 14px 0 31px; font-size: 19px; font-weight: 350; letter-spacing: -.03em; }
.exhibition-details { margin: 0 0 25px; font-size: 14px; }
.exhibition-details > div { display: grid; grid-template-columns: 36px 1fr; gap: 23px; margin-block: 13px; }
.exhibition-details dt { color: var(--muted); }
.exhibition-details dd { margin: 0; }
.exhibition-details dd > span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.exhibition-poster { margin: 0; }
.exhibition-poster img { width: 100%; height: auto; }
.exhibition-poster figcaption { margin-top: 14px; color: var(--muted); font-size: 10px; }

@media (hover: hover) {
  .work-option:hover .work-caption { border-color: #9dA58f; }
  .work-option:hover .work-detail, .work-option:hover .work-arrow { color: var(--ink); }
}
@media (max-width: 1100px) {
  .hero { gap: 24px; }
  .hero-eyebrow { font-size: 9px; }
  .face-link { display: none; }
  .work-strip { gap: 32px 22px; }
  .exhibition-record { grid-template-columns: 66px minmax(0, 1fr) 230px; gap: 32px; }
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 22px; min-height: 0; height: auto; padding-top: 134px; padding-bottom: 28px; }
  .hero-copy { display: block; padding: 0; }
  .hero-eyebrow { margin-bottom: 18px; font-size: 9px; }
  .hero h1 { font-size: clamp(48px, 12.5vw, 90px); }
  .hero h1 > span { display: inline; }
  .primary-link { display: none; }
  .artwork-viewer { --size: 240px; height: 560px; }
  .artwork-stage { perspective: 1400px; }
  .face-link { display: inline; }
  .works { padding-block: 64px 76px; }
  .work-strip { gap: 28px 24px; }
  .work-visual { aspect-ratio: .92; }
  .work-mini-cube { --mini-size: clamp(65px, 9vw, 90px); }
  .work-detail { display: none; }
  .work-arrow { margin-left: auto; }
  .artist, .exhibitions { padding-top: 44px; padding-bottom: 76px; }
  .artist-layout { grid-template-columns: 1fr; gap: 32px; }
  .artist-identity h3 { font-size: 35px; }
  .artist-identity h3 > span { font-size: 27px; }
  .artist-bio { font-size: 16px; }
  .exhibition-record { grid-template-columns: minmax(0, 1fr) 220px; gap: 20px 35px; }
  .exhibition-year { grid-column: 1 / -1; font-size: 26px; margin-bottom: 15px; }
}
@media (max-width: 560px) {
  .hero { padding-top: 118px; gap: 14px; }
  .hero h1 { font-size: clamp(46px, 14vw, 72px); margin-left: -1px; letter-spacing: -.025em; }
  .hero-eyebrow { font-size: 8px; }
  .artwork-viewer { --size: clamp(170px, 47vw, 240px); height: clamp(490px, 88vw, 560px); grid-template-rows: minmax(0, 1fr) 70px; }
  .rotation-controls { gap: 6px; }
  .rotation-controls button { font-size: 10px; }
  .ground-shadow::before { filter: blur(9px); }
  .viewer-caption { gap: 14px; padding-top: 12px; }
  .face-link { display: none; }
  #work-counter { margin-right: 7px; font-size: 10px; }
  .work-navigation { gap: 6px; }
  .works { padding-top: 50px; }
  .work-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px 20px; }
  .work-visual { aspect-ratio: 1; }
  .work-mini-cube { --mini-size: clamp(66px, 19vw, 100px); margin-top: -8px; }
  .work-caption { min-height: 45px; }
  .work-title { font-size: 11px; }
  .mini-shadow { height: 11px; bottom: 17%; }
  .collection-bottom { flex-direction: column-reverse; align-items: stretch; margin-top: 28px; gap: 23px; }
  .collection-bottom button { justify-content: space-between; }
  .collection-bottom p { font-size: 10px; line-height: 1.8; }
  .artist-identity > .eyebrow { margin-bottom: 14px; }
  .artist-identity h3 { font-size: 32px; }
  .artist-identity h3 > span { font-size: 26px; }
  .artist-bio { font-size: 16px; margin-bottom: 24px; }
  .artist-details { gap: 20px; }
  .exhibition-record { grid-template-columns: 1fr; gap: 30px; }
  .exhibition-year { grid-column: auto; margin-bottom: 0; }
  .exhibition-copy h3 { font-size: 54px; }
  .exhibition-poster { width: 72%; max-width: 290px; justify-self: end; margin-top: 12px; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 46px; }
  .work-strip { gap: 25px 16px; }
  .work-option[aria-pressed=true] .work-title::after { margin-left: 3px; font-size: 8px; }
  .exhibition-copy h3 { font-size: 48px; }
}
@media (pointer: coarse) { .desktop-hint { display: none; } .touch-hint { display: inline; } }
@media (prefers-reduced-motion: reduce) { .work-option:hover .work-mini-cube { transform: rotateX(-18deg) rotateY(-31deg); } }
