/* =========================================================================
   Nyssa Gallery — "One painting at a time"
   아이보리 리넨 벽 · 금박 액자 · 작품마다 켜지는 조명 · 미술관 캡션
   ========================================================================= */

:root {
  --wall: #F1EADC;
  --linen: #E6DAC4;
  --paper: #FAF6EE;
  --mat: #F6F0E4;
  --ink: #2A2019;
  --ink-2: #5E4E3F;
  --gilt: #A6834A;
  --gilt-ink: #7D6131;
  --gilt-light: #C9A866;
  --oxblood: #7B2D24;
  --night: #1D1713;
  --night-ink: #EDE4D3;
  --night-ink-2: #B9A98F;
  --line: rgba(42, 32, 25, .14);

  --ease: cubic-bezier(.22, .61, .24, 1);
  --ease-settle: cubic-bezier(.34, 1.32, .64, 1);
  --ease-veil: cubic-bezier(.76, 0, .24, 1);

  --f-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-serif: 'Noto Serif KR', 'Nanum Myeongjo', 'AppleMyungjo', serif;
  --f-sans: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;

  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 92px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--f-serif);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--oxblood); color: var(--paper); }
:focus-visible { outline: 1px solid var(--oxblood); outline-offset: 4px; }
.viewer :focus-visible { outline-color: var(--gilt-light); }
[id] { scroll-margin-top: 100px; }
noscript p { padding: 40px var(--gutter); text-align: center; font-family: var(--f-sans); font-size: 14px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 9999;
  padding: 12px 18px; background: var(--ink); color: var(--paper);
  font-family: var(--f-sans); font-size: 13px; transition: top .3s var(--ease);
}
.skip-link:focus { top: 16px; }

/* 캔버스 결 — 화면 전체에 아주 옅게 깔리는 그레인 */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 700;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .17  0 0 0 0 .13  0 0 0 0 .09  0 0 0 .2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .5;
}

/* ---------- type ---------- */
.lbl {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gilt-ink);
  line-height: 1.6;
}
.display {
  font-family: var(--f-display);
  font-weight: 300;
  font-style: italic;
  line-height: .95;
  letter-spacing: -.015em;
}
.h2 { font-size: clamp(44px, 5.4vw, 76px); line-height: 1; }
.muted { color: var(--ink-2); }
.en { font-family: var(--f-display); }
.ko-sub { font-family: var(--f-serif); font-style: normal; font-size: .36em; color: var(--ink-2); letter-spacing: -.01em; margin-left: .4em; }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 1180px; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 0 30px;
  border-radius: 999px;
  background: var(--ink); color: var(--wall);
  font-family: var(--f-sans); font-size: 13px; font-weight: 400; letter-spacing: .14em;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--oxblood);
  transform: translateY(101%); border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  transition: transform .7s var(--ease), border-radius .7s var(--ease);
}
.btn:hover::before { transform: none; border-radius: 0; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--wall); }
.btn .arrow { transition: transform .6s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 44px;
  font-family: var(--f-sans); font-size: 13px; letter-spacing: .14em;
  position: relative;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px;
  background: var(--gilt); transform-origin: right; transition: transform .7s var(--ease);
}
.link-arrow:hover { color: var(--oxblood); }
.link-arrow:hover::after { transform: scaleX(0); transform-origin: left; }
.link-arrow .arrow { transition: transform .6s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(6px); }
.link-arrow--plain::after { display: none; }

/* ---------- info bar ---------- */
.infobar { background: var(--ink); color: #E9DFCC; position: relative; z-index: 810; }
.infobar .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  padding-top: 9px; padding-bottom: 9px;
  font-family: var(--f-sans); font-size: 11px; letter-spacing: .14em; line-height: 1.5;
}
.infobar__dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gilt-light); margin-right: 10px; vertical-align: 1px; animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 800;
  transition: transform .7s var(--ease), background-color .6s var(--ease), box-shadow .6s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(241, 234, 220, .88);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: 0 1px 0 rgba(42, 32, 25, .08);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 40px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark {
  width: 42px; height: 52px; flex: none;
  border: 1px solid var(--gilt); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-style: italic; font-size: 19px; line-height: 1;
  transition: background .6s var(--ease), color .6s var(--ease);
}
.brand:hover .brand__mark { background: var(--ink); color: var(--wall); border-color: var(--ink); }
.brand__name { display: flex; flex-direction: column; line-height: 1.2; }
.brand__en { font-family: var(--f-display); font-size: 21px; letter-spacing: .18em; text-transform: uppercase; }
.brand__ko { font-size: 12px; color: var(--ink-2); letter-spacing: .32em; }

.nav { display: flex; align-items: center; gap: 44px; }
.nav__link {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 2px; line-height: 1.15;
}
.nav__en { font-family: var(--f-display); font-size: 20px; transition: color .4s; }
.nav__ko { font-family: var(--f-sans); font-size: 10px; letter-spacing: .2em; color: var(--ink-2); margin-top: 3px; transition: opacity .4s, transform .5s var(--ease); }
.nav__dot {
  position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--oxblood);
  opacity: 0; transform: scale(0); transition: opacity .4s, transform .6s var(--ease-settle);
}
.nav__link:hover .nav__en { color: var(--oxblood); }
.nav__link[aria-current="page"] .nav__en { font-style: italic; }
.nav__link[aria-current="page"] .nav__ko { opacity: 0; transform: translateY(4px); }
.nav__link[aria-current="page"] .nav__dot { opacity: 1; transform: scale(1); }

.menu-btn {
  display: none;
  width: 48px; height: 48px; margin-right: -10px;
  position: relative;
}
.menu-btn span {
  position: absolute; right: 10px; height: 1px; background: var(--ink);
  transition: transform .6s var(--ease), width .6s var(--ease), top .6s var(--ease);
}
.menu-btn span:nth-child(1) { top: 19px; width: 26px; }
.menu-btn span:nth-child(2) { top: 27px; width: 16px; }
.menu-open .menu-btn span:nth-child(1) { top: 23px; width: 24px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 23px; width: 24px; transform: rotate(-45deg); }

/* mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 790;
  background: var(--wall);
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  transform: translateY(-100%); visibility: hidden;
  transition: transform .9s var(--ease-veil), visibility 0s linear .9s;
}
.menu-open .menu { transform: none; visibility: visible; transition: transform .9s var(--ease-veil), visibility 0s; }
.menu__list { display: flex; flex-direction: column; }
.menu__item { border-bottom: 1px solid var(--line); overflow: hidden; }
.menu__link { display: flex; align-items: baseline; gap: 16px; min-height: 76px; padding: 10px 0; transform: translateY(110%); transition: transform .9s var(--ease); }
.menu-open .menu__link { transform: none; transition-delay: calc(.35s + var(--i) * 80ms); }
.menu__num { font-family: var(--f-display); font-size: 15px; color: var(--gilt-ink); min-width: 28px; }
.menu__en { font-family: var(--f-display); font-weight: 300; font-style: italic; font-size: 46px; line-height: 1; }
.menu__ko { font-size: 14px; color: var(--ink-2); }
.menu__link[aria-current="page"] .menu__en { color: var(--oxblood); }
.menu__foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .8s var(--ease); }
.menu-open .menu__foot { opacity: 1; transform: none; transition-delay: .75s; }
.menu__rule { width: 40px; height: 1px; background: var(--gilt); }
.menu__socials { display: flex; flex-wrap: wrap; gap: 4px 22px; font-family: var(--f-display); font-style: italic; font-size: 20px; }
.menu__socials a { min-height: 44px; display: inline-flex; align-items: center; }
.menu__mail { font-family: var(--f-sans); font-size: 12px; color: var(--ink-2); }

/* =========================================================================
   FRAMES — 액자
   ========================================================================= */
.frame { position: relative; display: block; isolation: isolate; }
.frame__inner { position: relative; z-index: 1; }
.frame__canvas {
  position: relative; overflow: hidden;
  background: #17110d;
}
.frame__canvas img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-user-drag: none; user-select: none;
}
/* 바니시 아래 베벨 그림자 */
.frame__canvas::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35), inset 3px 3px 12px rgba(0, 0, 0, .42), inset -1px -1px 0 rgba(255, 240, 210, .06);
}
/* 조명: 꺼진 상태의 어둠 */
.frame__canvas::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: #0d0907; opacity: 0;
  transition: opacity 1.5s var(--ease);
}
.js .frame[data-light] .frame__canvas::before { opacity: .78; }
.js .frame[data-light].is-lit .frame__canvas::before { opacity: 0; }
.js .frame[data-light].is-dim .frame__canvas::before { opacity: .5; }

/* 바니시 광택 */
.frame__sheen {
  position: absolute; top: -20%; left: 0; z-index: 4; width: 42%; height: 140%;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 248, 230, 0), rgba(255, 248, 230, .26), rgba(255, 248, 230, 0));
  transform: translateX(-170%) skewX(-18deg);
}
.has-hover .piece:hover .frame__sheen,
.has-hover .frame--hoverable:hover .frame__sheen { animation: sheen 1.3s var(--ease) forwards; }
@keyframes sheen { to { transform: translateX(330%) skewX(-18deg); } }

/* 금박 */
.frame--gilt {
  padding: var(--fp, clamp(14px, 1.9vw, 26px));
  background:
    repeating-linear-gradient(45deg, rgba(255, 245, 215, .07) 0 1px, transparent 1px 4px),
    linear-gradient(135deg, #7a5a2a 0%, #d8bd82 16%, #9b783e 32%, #ead39d 50%, #8d6a32 68%, #caa866 84%, #6f5226 100%);
  box-shadow:
    inset 0 0 0 2px #4f3a1a, inset 0 0 0 4px #c9a866, inset 0 0 0 6px #6f5226,
    inset 0 0 22px rgba(60, 40, 10, .55),
    0 40px 70px -28px rgba(42, 32, 25, .55), 0 14px 26px -14px rgba(42, 32, 25, .38);
}
.frame--gilt .frame__canvas { box-shadow: 0 0 0 2px #5a4220, 0 0 0 4px #dcc28a, 0 0 0 5px #6f5226; }

/* 월넛 + 매트 */
.frame--walnut {
  padding: var(--fp, clamp(8px, .9vw, 12px));
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(255, 220, 170, .05) 0 2px, transparent 2px 13px),
    linear-gradient(135deg, #3a2a1f, #5a4130 40%, #2f2219 70%, #4a3526);
  box-shadow:
    inset 0 0 0 1px #1b130e, inset 0 0 0 3px rgba(255, 230, 190, .08),
    0 32px 56px -26px rgba(42, 32, 25, .55), 0 10px 18px -10px rgba(42, 32, 25, .35);
}
.frame--walnut .frame__inner {
  padding: clamp(14px, 2.2vw, 30px);
  background: var(--mat);
  box-shadow: inset 0 0 0 1px rgba(42, 32, 25, .12), inset 3px 3px 9px rgba(42, 32, 25, .2);
}
.frame--walnut .frame__canvas { box-shadow: 0 0 0 1px rgba(255, 255, 255, .9), 0 0 0 2px rgba(42, 32, 25, .18); }

/* 플로팅 */
.frame--float {
  padding: var(--fp, 6px);
  background: linear-gradient(135deg, #2f241c, #1d1612);
  box-shadow: 0 30px 50px -24px rgba(42, 32, 25, .55), 0 8px 14px -8px rgba(42, 32, 25, .32);
}
.frame--float .frame__inner { padding: clamp(6px, .8vw, 10px); background: #110c09; }

/* 타원 (초상) */
.frame--oval, .frame--oval .frame__inner, .frame--oval .frame__canvas { border-radius: 50%; }
.frame--oval .frame__canvas { height: 100%; }
.frame--oval .frame__inner { height: 100%; }

/* 작품등 (picture light) */
/* z-index 없음: 불빛(__glow)이 액자 쌓임 맥락 안에서 그림(__inner) 뒤, 벽 위에 깔리도록 */
.lamp {
  position: absolute; left: 50%; bottom: 100%;
  display: flex; flex-direction: column; align-items: center;
  transform: translateX(-50%);
  width: 46%; max-width: 200px; min-width: 90px;
  pointer-events: none;
}
.lamp__bar {
  width: 100%; height: 11px; border-radius: 6px;
  background: linear-gradient(180deg, #ecd6a2, #a6834a 55%, #6f5226);
  box-shadow: 0 6px 12px rgba(42, 32, 25, .3);
}
.lamp__arm { width: 5px; height: var(--arm, 28px); background: linear-gradient(90deg, #6f5226, #d8bd82, #6f5226); }
.lamp__glow {
  position: absolute; left: 50%; top: 6px; z-index: -1;
  width: 380%; aspect-ratio: 1 / 1.25; max-width: 980px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 42% 58% at 50% 0%, rgba(255, 228, 176, .9), rgba(255, 228, 176, .32) 44%, rgba(255, 228, 176, 0) 72%);
  opacity: 0; transition: opacity 1.6s var(--ease);
}
.no-js .lamp__glow, .is-lit .lamp__glow { opacity: 1; }
.is-dim .lamp__glow { opacity: .25; }

/* =========================================================================
   PIECES — 벽에 걸린 작품
   ========================================================================= */
.piece { position: relative; display: flex; flex-direction: column; gap: 18px; }
.piece__link { display: block; position: relative; }
.piece__lift { transition: transform .9s var(--ease); }
.has-hover .piece:hover .piece__lift { transform: translateY(-6px); }
.has-hover .piece:hover .frame { --hover-shadow: 1; }
.piece__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.piece__titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.piece__title { font-family: var(--f-display); font-style: italic; font-size: 21px; line-height: 1.2; }
.piece__sub { font-size: 12.5px; color: var(--ink-2); }
.piece__no { font-family: var(--f-display); font-size: 16px; color: var(--gilt-ink); white-space: nowrap; }

/* 걸기 애니메이션 */
.js [data-reveal="hang"] { opacity: 0; transform-origin: 50% -40px; }
.js [data-reveal="hang"].is-in { animation: hang 1.25s var(--ease-settle) var(--d, 0s) both; }
@keyframes hang {
  0% { opacity: 0; transform: translateY(-20px) rotate(-2deg); }
  42% { opacity: 1; transform: translateY(0) rotate(.7deg); }
  68% { transform: rotate(-.3deg); }
  100% { opacity: 1; transform: none; }
}

/* =========================================================================
   REVEAL
   ========================================================================= */
.js [data-reveal="fade"] { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.js [data-reveal="fade"].is-in { opacity: 1; transform: none; }
.js [data-reveal="rise"] .line > span { transform: translateY(108%); transition: transform 1.15s var(--ease); transition-delay: calc(var(--d, 0s) + var(--i, 0) * 95ms); }
.js [data-reveal="rise"].is-in .line > span { transform: none; }
.js [data-reveal="draw"] { transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) var(--d, 0s); }
.js [data-reveal="draw"].is-in { transform: none; }

/* =========================================================================
   CURSOR · CANDLE GLOW · PAINT BLOOM
   ========================================================================= */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor [role="button"], .has-cursor label { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: text; }
.has-cursor select { cursor: pointer; }
.cursor { position: fixed; inset: 0; z-index: 9200; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor__ring, .cursor__dot { position: absolute; left: 0; top: 0; will-change: transform; }
/* 촛불 — 블렌드가 페이지와 섞이도록 커서 레이어 밖, body 바로 아래에 둔다 */
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 9150; pointer-events: none; display: none;
  width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 198, .9), rgba(255, 236, 198, .28) 34%, rgba(255, 236, 198, 0) 64%);
  mix-blend-mode: soft-light;
  opacity: 0; transition: opacity .9s var(--ease);
  will-change: transform;
}
.has-cursor .cursor-glow { display: block; }
.cursor-glow.is-active { opacity: 1; }
.cursor__dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: var(--ink); transition: opacity .3s, background .4s;
}
.cursor__ring { width: 0; height: 0; }
.cursor__ring-shape {
  position: absolute; left: 50%; top: 50%;
  width: 34px; height: 34px; transform: translate(-50%, -50%);
  border: 1px solid var(--gilt); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: width .6s var(--ease), height .6s var(--ease), background-color .5s var(--ease), border-color .5s, opacity .4s;
}
.cursor__label { display: flex; flex-direction: column; align-items: center; line-height: 1.1; opacity: 0; transform: scale(.7); transition: opacity .3s, transform .5s var(--ease); white-space: nowrap; }
.cursor__label em { font-family: var(--f-display); font-size: 19px; font-style: italic; color: var(--ink); }
.cursor__label small { font-family: var(--f-serif); font-size: 11px; color: var(--ink); }
.cursor:not(.is-active) .cursor__dot, .cursor:not(.is-active) .cursor__ring-shape { opacity: 0; }

.cursor[data-state="link"] .cursor__ring-shape { width: 56px; height: 56px; background-color: rgba(166, 131, 74, .12); }
.cursor[data-state="view"] .cursor__ring-shape,
.cursor[data-state="zoom"] .cursor__ring-shape { width: 98px; height: 98px; background-color: rgba(250, 246, 238, .8); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.cursor[data-state="view"] .cursor__label,
.cursor[data-state="zoom"] .cursor__label { opacity: 1; transform: none; }
.cursor[data-state="view"] .cursor__dot,
.cursor[data-state="zoom"] .cursor__dot { opacity: 0; }
.cursor[data-state="native"] .cursor__dot, .cursor[data-state="native"] .cursor__ring-shape,
.cursor[data-state="loupe"] .cursor__dot, .cursor[data-state="loupe"] .cursor__ring-shape { opacity: 0; }
.cursor.is-dark .cursor__dot { background: var(--night-ink); }
.cursor.is-dark .cursor__ring-shape { border-color: var(--gilt-light); }
.cursor.is-dark[data-state="link"] .cursor__ring-shape { background-color: rgba(201, 168, 102, .14); }
.cursor.is-down .cursor__ring-shape { width: 24px; height: 24px; }

.bloom { position: fixed; left: 0; top: 0; z-index: 9100; pointer-events: none; mix-blend-mode: multiply; }
.bloom.is-dark { mix-blend-mode: screen; }
.bloom i {
  position: absolute; left: 0; top: 0;
  width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  background: var(--c);
  border-radius: var(--r);
  opacity: 0;
  animation: bloom .95s var(--ease) var(--delay, 0s) forwards;
}
@keyframes bloom {
  0% { opacity: 0; transform: translate(var(--x, 0), var(--y, 0)) scale(.08) rotate(0deg); }
  12% { opacity: var(--o, .5); }
  100% { opacity: 0; transform: translate(var(--x, 0), var(--y, 0)) scale(1) rotate(var(--rot, 25deg)); }
}

/* =========================================================================
   VEIL — 장막 전환
   ========================================================================= */
.veil {
  position: fixed; inset: 0; z-index: 9500;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: var(--wall);
  will-change: transform;
}
.js .veil { display: flex; }
.veil::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 40% at 50% 0%, rgba(255, 228, 176, .55), rgba(255, 228, 176, 0) 70%);
}
.veil__sign {
  font-family: var(--f-display); font-weight: 300; font-style: italic;
  font-size: clamp(48px, 9vw, 104px); line-height: 1.05; padding: 0 .15em;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.15s var(--ease);
}
.veil__rule { width: 0; height: 1px; background: var(--gilt); transition: width 1s var(--ease) .5s; }
.veil__sub { font-family: var(--f-sans); font-size: 11px; letter-spacing: .3em; color: var(--ink-2); opacity: 0; transition: opacity .8s var(--ease) .7s; }
.veil.is-signed .veil__sign { clip-path: inset(0 0 0 0); }
.veil.is-signed .veil__rule { width: 56px; }
.veil.is-signed .veil__sub { opacity: 1; }
.veil.is-quick .veil__sign, .veil.is-quick .veil__rule, .veil.is-quick .veil__sub { transition: none; }
.veil.is-gone { transform: translateY(-100%); transition: transform 1s var(--ease-veil); }
.veil.is-hidden { visibility: hidden; }
.veil.is-below { transform: translateY(100%); transition: none; }
.veil.is-covering { transform: none; transition: transform .75s var(--ease-veil); }

/* =========================================================================
   HOME
   ========================================================================= */
.hero { position: relative; padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .58fr);
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
}
.hero__text { display: flex; flex-direction: column; gap: 28px; }
.hero__title { font-size: clamp(54px, 6.3vw, 98px); }
.hero__lead { font-size: 18px; line-height: 1.85; color: var(--ink-2); max-width: 400px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero__art { position: relative; display: flex; justify-content: center; padding-top: 80px; }
/* 대표작 위로 쏟아지는 전시 조명 */
.hero__art::before {
  content: ""; position: absolute; left: 50%; top: -40px; z-index: -1;
  width: 170%; aspect-ratio: 1 / 1.1; transform: translateX(-50%);
  background: radial-gradient(ellipse 40% 56% at 50% 8%, rgba(255, 228, 176, .85), rgba(255, 228, 176, .3) 44%, rgba(255, 228, 176, 0) 72%);
  pointer-events: none; opacity: 0; transition: opacity 2.2s var(--ease) .3s;
}
.hero__art:has(.is-lit)::before, .no-js .hero__art::before { opacity: 1; }
.hero { isolation: isolate; }
.hero__art .piece { width: 100%; max-width: 440px; }
.hero__art .frame { --fp: clamp(18px, 2.3vw, 30px); }
.hero__label { align-self: end; margin-bottom: 48px; }

.wall-label {
  display: flex; flex-direction: column; gap: 12px;
  padding: 26px 26px 28px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 1px 0 rgba(42, 32, 25, .06), 0 20px 34px -24px rgba(42, 32, 25, .5);
}
.wall-label__top { display: flex; justify-content: space-between; gap: 12px; }
.wall-label__title { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 27px; line-height: 1.1; }
.wall-label__ko { font-size: 15px; font-weight: 500; letter-spacing: -.02em; }
.wall-label__meta { font-family: var(--f-sans); font-size: 12px; color: var(--ink-2); line-height: 1.7; }
.wall-label__rule { height: 1px; background: rgba(166, 131, 74, .6); }
.wall-label__quote { font-size: 14.5px; line-height: 1.75; font-style: italic; font-weight: 400; }

.hero__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 24px; }
.counter { display: flex; align-items: baseline; gap: 6px; font-family: var(--f-display); }
.counter__now { font-size: 44px; font-weight: 500; line-height: 1; }
.counter__all { font-size: 20px; color: var(--ink-2); }
.scroll-cue { display: flex; align-items: center; gap: 16px; }
.scroll-cue__line { position: relative; width: 1px; height: 56px; background: rgba(42, 32, 25, .15); overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: cue 2.4s var(--ease-veil) infinite; }
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.section { position: relative; padding: clamp(80px, 11vw, 136px) 0; }
.section--line { border-top: 1px solid var(--line); }
.section--linen { background: var(--linen); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(48px, 7vw, 88px); }
.section-head__titles { display: flex; flex-direction: column; gap: 10px; }
.section-head__ko { font-size: 17px; color: var(--ink-2); }

.hang-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: clamp(40px, 5vw, 72px); }
.hang-row::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; transform: translateY(-36px);
  background: repeating-linear-gradient(90deg, rgba(166, 131, 74, .45) 0 6px, transparent 6px 14px);
}
.hang-row .piece:nth-child(1) { flex: 0 1 27%; }
.hang-row .piece:nth-child(2) { flex: 0 1 37%; }
.hang-row .piece:nth-child(3) { flex: 0 1 23%; }
.hang-row .piece:only-child { flex-basis: 40%; margin: 0 auto; }

.statement { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 30px; max-width: 980px; margin: 0 auto; }
.statement__quote { font-family: var(--f-display); font-weight: 300; font-style: italic; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.2; text-wrap: balance; }
.statement__quote::before { content: "“"; }
.statement__quote::after { content: "”"; }
.statement__ko { font-size: 17px; line-height: 1.9; color: var(--ink-2); max-width: 620px; }
.ornament { color: var(--gilt); }

.artist-teaser { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: center; gap: clamp(48px, 8vw, 96px); max-width: 1120px; margin: 0 auto; }
.portrait { position: relative; display: flex; justify-content: center; padding-top: 30px; }
.portrait .frame { width: min(300px, 70vw); aspect-ratio: 3 / 4; --fp: 22px; }
.portrait__plate {
  position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); z-index: 6;
  padding: 8px 16px; white-space: nowrap;
  background: linear-gradient(180deg, #e6cf98, #a6834a); color: var(--ink);
  font-family: var(--f-display); font-size: 14px; letter-spacing: .22em; text-transform: uppercase;
  box-shadow: 0 8px 16px -8px rgba(42, 32, 25, .5);
}
.artist-teaser__text { display: flex; flex-direction: column; gap: 22px; }
.artist-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.artist-name__ko { font-size: clamp(36px, 4vw, 48px); font-weight: 400; letter-spacing: -.04em; line-height: 1.1; }
.artist-name__en { font-family: var(--f-display); font-weight: 300; font-style: italic; font-size: clamp(36px, 4vw, 48px); line-height: 1.1; }
.roles { font-family: var(--f-sans); font-size: 13px; letter-spacing: .16em; color: var(--ink-2); text-transform: uppercase; }
.body-text { font-size: 16px; line-height: 1.95; color: var(--ink-2); max-width: 580px; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-row__title { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; }

/* =========================================================================
   WORKS
   ========================================================================= */
.works-head { padding: clamp(32px, 5vw, 56px) 0 clamp(24px, 3vw, 40px); }
.works-head__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; padding-bottom: 32px; border-bottom: 1px solid rgba(42, 32, 25, .16); }
.works-head__titles { display: flex; flex-direction: column; gap: 12px; }
.works-head__title { font-size: clamp(56px, 7.4vw, 108px); }
.modes { display: flex; gap: 28px; }
.mode {
  position: relative; min-height: 48px; padding: 0 2px;
  font-family: var(--f-display); font-style: italic; font-size: 23px; color: var(--ink-2);
  transition: color .4s;
}
.mode small { font-family: var(--f-serif); font-style: normal; font-size: 13px; margin-left: 4px; }
.mode::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--oxblood); transform: scaleX(0); transition: transform .7s var(--ease); }
.mode:hover { color: var(--ink); }
.mode[aria-pressed="true"] { color: var(--ink); }
.mode[aria-pressed="true"]::after { transform: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 28px; }
.chip {
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid rgba(42, 32, 25, .22);
  font-family: var(--f-sans); font-size: 13px; letter-spacing: .05em;
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--wall); border-color: var(--ink); }
.chip__count { font-family: var(--f-display); font-size: 15px; margin-left: 6px; opacity: .6; }

.salon { padding: 32px 0 clamp(96px, 12vw, 140px); transition: opacity .45s var(--ease); }
.salon.is-switching { opacity: 0; }
.salon__group + .salon__group { margin-top: clamp(40px, 6vw, 80px); padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.salon__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: clamp(32px, 4vw, 48px); }
.salon__title { font-size: clamp(36px, 4vw, 52px); }
.salon__ko { font-size: 15px; color: var(--ink-2); }
.salon__ko .en { font-size: 18px; }
.salon__cols { columns: 4 240px; column-gap: clamp(32px, 4vw, 56px); }
.salon .piece { break-inside: avoid; margin-bottom: clamp(48px, 5.5vw, 72px); }
.empty-note { padding: 80px 0 140px; text-align: center; color: var(--ink-2); }

/* 복도 */
.corridor { position: relative; }
.corridor__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.corridor__stage { position: relative; flex: 1; display: flex; align-items: center; }
.corridor__rail {
  position: absolute; left: 0; right: 0; top: calc(50% + var(--header-h) / 2 - 64px); height: 1px;
  background: repeating-linear-gradient(90deg, rgba(166, 131, 74, .4) 0 6px, transparent 6px 14px);
}
.corridor__track { display: flex; align-items: center; gap: clamp(90px, 11vw, 180px); will-change: transform; }
.corridor__item { flex: none; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.corridor__item .frame__canvas { height: clamp(220px, calc(100vh - 470px), 520px); height: clamp(220px, calc(100svh - 470px), 520px); width: auto; }
.corridor__stage { padding-top: var(--header-h); }
.corridor__item .piece__cap { max-width: 34ch; flex-direction: column; align-items: center; text-align: center; gap: 6px; transition: opacity .9s var(--ease), transform .9s var(--ease); }
.corridor__item.is-dim .piece__cap { opacity: .35; transform: translateY(6px); }
.corridor__item .piece__quote { font-size: 14px; color: var(--ink-2); font-style: italic; }
.corridor__hud { padding: 0 var(--gutter) 28px; }
.corridor__hud-inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.progress { flex: 1 1 260px; max-width: 520px; height: 1px; background: rgba(42, 32, 25, .18); position: relative; }
.progress__bar { position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.round-btn {
  width: 54px; height: 54px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(42, 32, 25, .3);
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s;
}
.round-btn:hover { background: var(--ink); color: var(--wall); border-color: var(--ink); }
.round-btn--dark { border-color: rgba(237, 228, 211, .32); }
.round-btn--dark:hover { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); }
.btn-pair { display: flex; gap: 10px; }
.corridor__hint { width: 100%; text-align: center; color: var(--ink-2); }

/* =========================================================================
   VIEWER — 감상실
   ========================================================================= */
.viewer { position: fixed; inset: 0; z-index: 900; display: none; color: var(--night-ink); --label-w: 440px; }
.viewer.is-open { display: block; }
.viewer__bg { position: absolute; inset: 0; background: var(--night); opacity: 0; transition: opacity .9s var(--ease); }
.viewer__cone {
  position: absolute; left: 0; top: 0; bottom: 0; right: var(--label-w); pointer-events: none;
  background: radial-gradient(ellipse 40% 64% at 50% -6%, rgba(255, 226, 170, .32), rgba(255, 226, 170, .08) 50%, rgba(255, 226, 170, 0) 74%);
  opacity: 0; transition: opacity 1.6s var(--ease) .2s;
}
.viewer__vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 80% 80% at 35% 45%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .5) 100%); opacity: 0; transition: opacity 1s var(--ease); }
.viewer.is-active .viewer__bg, .viewer.is-active .viewer__cone, .viewer.is-active .viewer__vignette { opacity: 1; }

.viewer__top {
  position: absolute; left: 0; right: 0; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 32px;
  opacity: 0; transform: translateY(-10px); transition: opacity .8s var(--ease) .25s, transform .8s var(--ease) .25s;
}
.viewer.is-active .viewer__top { opacity: 1; transform: none; }
.viewer__back { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; font-family: var(--f-sans); font-size: 12px; letter-spacing: .18em; transition: color .4s; }
.viewer__back:hover { color: var(--gilt-light); }
.viewer__zoom-btn { display: none; }
.viewer__count { font-family: var(--f-display); display: flex; align-items: baseline; gap: 6px; }
.viewer__count b { font-size: 30px; font-weight: 500; }
.viewer__count span { font-size: 17px; opacity: .65; }

.viewer__stage {
  position: absolute; left: 0; top: 0; bottom: 0; right: var(--label-w);
  display: flex; align-items: center; justify-content: center;
  padding: 120px 48px 110px;
}
.viewer__piece { position: relative; }
.viewer__piece .frame { will-change: transform; }
.viewer__piece .frame--gilt { box-shadow: inset 0 0 0 2px #4f3a1a, inset 0 0 0 4px #c9a866, inset 0 0 0 6px #6f5226, inset 0 0 22px rgba(60, 40, 10, .55), 0 60px 100px -30px rgba(0, 0, 0, .8), 0 18px 34px -14px rgba(0, 0, 0, .6); }
.viewer__piece .frame--walnut, .viewer__piece .frame--float { box-shadow: 0 60px 100px -30px rgba(0, 0, 0, .8), 0 18px 34px -14px rgba(0, 0, 0, .6); }
.viewer__piece .frame__canvas { transition: none; }
.viewer__piece .lamp { --arm: 22px; }
.viewer__piece .lamp__glow { display: none; }
.viewer__piece.is-changing .frame { opacity: 0; transform: translateX(calc(var(--dir, 1) * -40px)); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.viewer__piece.is-entering .frame { opacity: 0; transform: translateX(calc(var(--dir, 1) * 40px)); transition: none; }
.viewer__piece .frame { transition: opacity .7s var(--ease), transform .7s var(--ease); }

.loupe {
  position: absolute; left: 0; top: 0; z-index: 6;
  width: 230px; height: 230px; margin: -115px 0 0 -115px; border-radius: 50%;
  pointer-events: none; background-repeat: no-repeat; background-color: #17110d;
  box-shadow: 0 0 0 2px var(--gilt), 0 0 0 7px rgba(166, 131, 74, .25), 0 22px 40px rgba(0, 0, 0, .6);
  opacity: 0; transform: scale(.5); transition: opacity .3s var(--ease), transform .45s var(--ease);
}
.loupe.is-on { opacity: 1; transform: none; }

.viewer__label {
  position: absolute; right: 48px; top: 50%; z-index: 4;
  width: calc(var(--label-w) - 80px);
  max-height: calc(100vh - 220px); max-height: calc(100svh - 220px); overflow: hidden auto;
  transform: translateY(-50%);
  background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
  overscroll-behavior: contain;
}
.viewer__label-in { padding: 36px 34px 38px; display: flex; flex-direction: column; gap: 18px; opacity: 0; transform: translateX(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.viewer.is-active .viewer__label-in.is-shown { opacity: 1; transform: none; transition-delay: .2s; }
.viewer__sheet-head { display: flex; flex-direction: column; gap: 14px; text-align: left; width: 100%; }
.viewer__handle { display: none; }
.viewer__title { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 38px; line-height: 1.05; }
.viewer__title-ko { font-size: 18px; font-weight: 500; letter-spacing: -.02em; margin-top: 6px; }
.viewer__meta { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 6px 12px; font-family: var(--f-sans); font-size: 12px; line-height: 1.6; color: var(--ink-2); }
.viewer__meta dt { color: var(--gilt-ink); letter-spacing: .14em; }
.viewer__quote { font-size: 17px; line-height: 1.65; font-style: italic; font-weight: 400; }
.viewer__desc { font-size: 14px; line-height: 1.95; color: var(--ink-2); white-space: pre-line; }
.viewer__desc-en { font-family: var(--f-display); font-style: italic; font-size: 17px; line-height: 1.6; color: var(--ink-2); white-space: pre-line; }
.viewer__sheet-nav { display: none; }

.viewer__bottom {
  position: absolute; left: 32px; right: 32px; bottom: 24px; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  opacity: 0; transform: translateY(10px); transition: opacity .8s var(--ease) .3s, transform .8s var(--ease) .3s;
}
.viewer.is-active .viewer__bottom { opacity: 1; transform: none; }
.viewer__keys { opacity: .65; color: var(--night-ink-2); margin-left: 8px; }
.viewer__tools { display: flex; align-items: center; gap: 18px; }
.pill-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 22px;
  border-radius: 999px; border: 1px solid rgba(237, 228, 211, .32);
  font-family: var(--f-sans); font-size: 12px; letter-spacing: .16em;
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s;
}
.pill-toggle:hover { border-color: var(--gilt-light); }
.pill-toggle[aria-pressed="true"] { background: var(--gilt-light); color: var(--night); border-color: var(--gilt-light); }
.dots { display: flex; gap: 6px; align-items: center; }
.dots i { display: block; width: 12px; height: 2px; background: currentColor; opacity: .3; transition: width .7s var(--ease), opacity .7s; }
.dots i.is-on { width: 36px; opacity: 1; }

.viewer__zoom { position: fixed; inset: 0; z-index: 950; background: var(--night); overflow: auto; display: none; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.viewer__zoom.is-open { display: block; }
.viewer__zoom img { max-width: none; }
.viewer__zoom-close { position: fixed; right: 16px; top: 14px; z-index: 2; background: rgba(29, 23, 19, .7); color: var(--night-ink); }

/* =========================================================================
   ABOUT
   ========================================================================= */
.profile { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); align-items: center; gap: clamp(56px, 8vw, 96px); padding: clamp(40px, 6vw, 72px) 0 clamp(96px, 12vw, 136px); }
.profile .portrait .frame { width: min(330px, 74vw); --fp: 26px; }
.profile__text { display: flex; flex-direction: column; gap: 26px; }
.profile__name { display: flex; flex-direction: column; gap: 2px; }
.profile__name .line:first-child span { font-size: clamp(48px, 5.6vw, 78px); font-weight: 400; letter-spacing: -.045em; line-height: 1.08; }
.profile__name .line:last-child span { font-family: var(--f-display); font-weight: 300; font-style: italic; font-size: clamp(48px, 5.6vw, 78px); line-height: 1.04; }
.plaques { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; padding-top: 6px; }
.plaque {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 66px; padding: 0 22px;
  border: 1px solid rgba(42, 32, 25, .18); background: rgba(250, 246, 238, .55);
  transition: background .6s var(--ease), border-color .6s, transform .7s var(--ease);
}
.plaque:hover { background: var(--paper); border-color: var(--gilt); transform: translateY(-3px); }
.plaque__name { font-family: var(--f-display); font-size: 21px; font-style: italic; line-height: 1.2; }
.plaque__handle { font-family: var(--f-sans); font-size: 12px; color: var(--ink-2); }
.plaque svg { transition: transform .6s var(--ease); }
.plaque:hover svg { transform: translate(3px, -3px); }

.split { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 48px clamp(48px, 8vw, 96px); }
.split__head { display: flex; flex-direction: column; gap: 14px; }
.split__body { display: flex; flex-direction: column; gap: 24px; }
.statement-lead { font-family: var(--f-display); font-weight: 400; font-style: italic; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.35; text-wrap: pretty; }

.cv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 48px clamp(40px, 5vw, 64px); }
.cv__head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--gilt); }
.cv__title { font-family: var(--f-display); font-size: 27px; font-style: italic; }
.cv__ko { font-size: 13px; color: var(--ink-2); }
.cv__row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid rgba(42, 32, 25, .12); }
.cv__year { font-family: var(--f-display); font-size: 20px; line-height: 1.3; }
.cv__name { font-size: 15px; line-height: 1.5; font-weight: 400; }
.cv__detail { font-family: var(--f-sans); font-size: 12px; color: var(--ink-2); }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 64px clamp(56px, 8vw, 96px); align-items: start; }
.contact__text { display: flex; flex-direction: column; gap: 22px; }
.status {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 10px;
  padding: 10px 16px; border: 1px solid rgba(42, 32, 25, .2); background: var(--paper);
  font-family: var(--f-sans); font-size: 12px; letter-spacing: .12em;
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: #5C7A4A; animation: pulse 2.4s ease infinite; }
.status.is-closed .status__dot { background: var(--oxblood); animation: none; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(92, 122, 74, .45); } 50% { box-shadow: 0 0 0 7px rgba(92, 122, 74, 0); } }
.mail-link { align-self: flex-start; font-family: var(--f-display); font-style: italic; font-size: clamp(22px, 2.4vw, 28px); padding: 6px 0; position: relative; word-break: break-all; }
.mail-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--gilt); transform-origin: right; transition: transform .7s var(--ease); }
.mail-link:hover { color: var(--oxblood); }
.mail-link:hover::after { transform: scaleX(0); transform-origin: left; }

.form { display: flex; flex-direction: column; gap: 28px; padding: clamp(28px, 4vw, 46px) clamp(22px, 3.6vw, 42px); background: var(--paper); box-shadow: 0 26px 52px -32px rgba(42, 32, 25, .55); }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 28px; }
.field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.field label { font-family: var(--f-sans); font-size: 11px; font-weight: 500; letter-spacing: .2em; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 0;
  border: 0; border-bottom: 1px solid rgba(42, 32, 25, .3); border-radius: 0;
  background: transparent; font-family: var(--f-serif); font-size: 16px; font-weight: 400;
  outline: none; transition: border-color .4s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 12px) 22px, calc(100% - 7px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 24px; }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.7; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--oxblood); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.field:focus-within::after { transform: none; }
.field input::placeholder, .field textarea::placeholder { color: rgba(94, 78, 63, .55); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__msg { font-family: var(--f-sans); font-size: 13px; color: var(--ink-2); }
.form__msg.is-error { color: var(--oxblood); }

/* =========================================================================
   404 — 그림이 사라진 빈 액자
   ========================================================================= */
.lost { min-height: calc(100svh - var(--header-h) - 120px); display: flex; align-items: center; padding: 64px 0 96px; }
.lost__grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); align-items: center; gap: clamp(48px, 8vw, 104px); }
.lost__art { display: flex; justify-content: center; padding-top: 70px; }
.lost__frame { width: min(320px, 72vw); }
.lost__canvas { aspect-ratio: 4 / 5; background: var(--wall); }
.lost__canvas::after { box-shadow: inset 0 0 0 1px rgba(42, 32, 25, .12), inset 4px 4px 14px rgba(42, 32, 25, .22); }
.js .frame[data-light] .lost__canvas::before { background: #2a2019; }
/* 오래 걸려 있던 그림이 남긴 자국 */
.lost__mark { position: absolute; inset: 14%; border: 1px dashed rgba(94, 78, 63, .35); background: rgba(94, 78, 63, .05); }
.lost__text { display: flex; flex-direction: column; gap: 24px; }
.lost__title { font-size: clamp(48px, 6vw, 88px); }
.site-footer .wrap:has(> .footer__bottom:only-child) { padding-top: 32px; gap: 0; }
@media (max-width: 860px) {
  .lost__grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .lost__text { align-items: center; }
  .lost__text .hero__actions { justify-content: center; }
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--night); color: #E9DFCC; position: relative; }
.site-footer .wrap { padding-top: clamp(64px, 8vw, 88px); padding-bottom: 36px; display: flex; flex-direction: column; gap: 56px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__name { font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: clamp(40px, 4.5vw, 56px); line-height: 1; }
.footer__mail { font-family: var(--f-sans); font-size: 13px; color: var(--night-ink-2); }
.footer__mail:hover { color: var(--gilt-light); }
.footer__cols { display: flex; flex-wrap: wrap; gap: 56px; font-family: var(--f-sans); font-size: 13px; }
.footer__col { display: flex; flex-direction: column; gap: 4px; }
.footer__col .lbl { color: var(--gilt-light); margin-bottom: 8px; }
.footer__col a { min-height: 32px; display: inline-flex; align-items: center; transition: color .4s; }
.footer__col a:hover { color: var(--gilt-light); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(233, 223, 204, .14); font-family: var(--f-sans); font-size: 12px; color: var(--night-ink-2); line-height: 1.7; }
.footer__admin { margin-left: 14px; opacity: .55; transition: opacity .4s, color .4s; }
.footer__admin:hover { opacity: 1; color: var(--gilt-light); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1180px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero__label { grid-column: 2; margin: -8px 0 0; justify-self: center; width: min(100%, 360px); }
}
@media (max-width: 1024px) {
  .viewer { --label-w: 380px; }
  .viewer__label { right: 32px; }
}
@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .nav { display: none; }
  .menu-btn { display: block; }
  .infobar__right { display: none; }
  .brand__mark { width: 34px; height: 42px; font-size: 16px; }
  .brand__en { font-size: 17px; }
  .brand__ko { display: none; }

  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero__art { padding-top: 64px; order: 2; }
  .hero__art .piece { max-width: 340px; }
  .hero__label { grid-column: auto; order: 3; width: 100%; margin: 0; }
  .hero__text { order: 1; }
  .hero__foot { display: none; }

  .hang-row { flex-direction: column; align-items: stretch; gap: 64px; }
  .hang-row::before { display: none; }
  .hang-row .piece { flex: none !important; width: 100%; max-width: 420px; margin: 0 auto; }

  .artist-teaser, .profile, .split, .contact { grid-template-columns: minmax(0, 1fr); }
  .artist-teaser { text-align: center; }
  .artist-teaser__text { align-items: center; }
  .artist-name { justify-content: center; }

  .salon__cols { columns: 2 150px; column-gap: 20px; }
  .salon .piece { margin-bottom: 40px; gap: 12px; }
  .salon .piece__title { font-size: 17px; }
  .salon .piece__no { font-size: 13px; }
  .salon .frame--gilt { --fp: 10px; }
  .salon .frame--walnut { --fp: 6px; }
  .salon .frame--walnut .frame__inner { padding: 12px; }

  /* 복도: 세로로 한 점씩 */
  .corridor { height: auto !important; }
  .corridor__sticky { position: static; height: auto; overflow: visible; }
  .corridor__stage { display: block; }
  .corridor__rail, .corridor__hud { display: none; }
  .corridor__track { flex-direction: column; gap: 0; padding: 0 !important; transform: none !important; }
  .corridor__item { min-height: 88svh; justify-content: center; padding: 72px var(--gutter) 40px; width: 100%; }
  .corridor__item .frame__canvas { height: auto; width: min(76vw, 420px); max-height: 60svh; }
  .corridor__item .frame { max-width: 100%; }

  /* 감상실: 아래에서 올라오는 캡션 시트 */
  .viewer { --label-w: 0px; }
  .viewer__top { padding: 12px 14px; }
  .viewer__back-text { display: none; }
  .viewer__back { width: 48px; height: 48px; justify-content: center; border-radius: 50%; border: 1px solid rgba(237, 228, 211, .3); }
  .viewer__x { display: none; }
  .viewer__zoom-btn { display: inline-flex; width: 48px; height: 48px; }
  .viewer__stage { padding: 84px 20px 156px; }
  .viewer__cone { right: 0; }
  .viewer__bottom { display: none; }
  .viewer__label {
    left: 0; right: 0; top: auto; bottom: 0; width: auto;
    max-height: 82svh; border-radius: 18px 18px 0 0;
    transform: translateY(calc(100% - var(--peek, 128px)));
    transition: transform .75s var(--ease);
    box-shadow: 0 -20px 40px -20px rgba(0, 0, 0, .6);
  }
  .viewer__label.is-expanded { transform: none; }
  .viewer__label-in { padding: 10px 22px 30px; gap: 14px; transform: translateY(16px); }
  .viewer__sheet-head { gap: 8px; min-height: 104px; }
  .viewer__handle { display: block; align-self: center; width: 40px; height: 4px; border-radius: 2px; background: rgba(42, 32, 25, .2); margin-bottom: 4px; }
  .viewer__title { font-size: 28px; }
  .viewer__title-ko { font-size: 15px; margin-top: 2px; }
  .viewer__sheet-nav { display: flex; gap: 10px; padding-top: 6px; }
  .viewer__sheet-nav .btn { flex: 1; min-height: 48px; padding: 0 12px; }
  .viewer__count b { font-size: 24px; }
}
@media (max-width: 560px) {
  .infobar .wrap { justify-content: center; text-align: center; }
  .infobar__left { font-size: 10px; }
  .hero__lead { font-size: 16px; }
  .hero__actions .btn { width: 100%; padding: 0 18px; gap: 10px; font-size: 12px; letter-spacing: .08em; white-space: nowrap; }
  .menu__en { font-size: 40px; }
  .cv__row { grid-template-columns: 76px minmax(0, 1fr); }
  .footer__cols { gap: 40px; }
}

@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-glow { display: none !important; }
}

/* 동작 줄이기 (OS 설정) — 이동·기울기는 빼고, 페이드와 조명만 남긴다.
   html.reduce-motion 은 head의 인라인 스크립트가 붙인다. (?motion=full 로 전체 모션 보기) */
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.reduce-motion [data-reveal="fade"] { transform: none; }
.reduce-motion [data-reveal="hang"].is-in { animation: fadein 1.1s var(--ease) var(--d, 0s) both; }
.reduce-motion [data-reveal="rise"] .line > span { transform: none; opacity: 0; transition: opacity 1.1s var(--ease); transition-delay: calc(var(--d, 0s) + var(--i, 0) * 95ms); }
.reduce-motion [data-reveal="rise"].is-in .line > span { opacity: 1; }
.reduce-motion [data-reveal="draw"] { transform: none; }
.reduce-motion .frame__sheen { display: none; }
.reduce-motion .has-hover .piece:hover .piece__lift, .reduce-motion .plaque:hover { transform: none; }
.reduce-motion .veil.is-gone { transform: none; opacity: 0; transition: opacity .9s var(--ease); }
.reduce-motion .veil.is-below { transform: none; opacity: 0; transition: none; }
.reduce-motion .veil.is-covering { transform: none; opacity: 1; transition: opacity .55s var(--ease); }
.reduce-motion .menu { transform: none; opacity: 0; transition: opacity .5s var(--ease), visibility 0s linear .5s; }
.reduce-motion.menu-open .menu { opacity: 1; transition: opacity .5s var(--ease), visibility 0s; }
.reduce-motion .menu__link { transform: none; opacity: 0; transition: opacity .6s var(--ease); }
.reduce-motion.menu-open .menu__link { opacity: 1; transition-delay: calc(.15s + var(--i) * 70ms); }
.reduce-motion .viewer__piece.is-changing .frame, .reduce-motion .viewer__piece.is-entering .frame { transform: none; }
.reduce-motion .viewer__top, .reduce-motion .viewer__bottom, .reduce-motion .viewer__label-in { transform: none !important; }
.reduce-motion .scroll-cue__line::after, .reduce-motion .infobar__dot, .reduce-motion .status__dot { animation: none; }
.reduce-motion .scroll-cue__line::after { transform: scaleY(.5); transform-origin: top; }
