/* 반구대관: 로비·직지관과 같은 먹빛 공간. 홈은 불을 낮춘 전시장 벽에 전시 포스터가 액자 없이 한 장씩 걸리고, 포스터마다 핀조명이 비춘다.
   위 막대·관 머리·아래 독은 직지관과 같은 모양 */
:root {
  --night: #12110F; --ink-on: #EFEBE4; --dim: #A29C91; --hair: rgba(239, 235, 228, .14); --seal: #D2271D; --wall: #171512;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --serif: "EB Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --kserif: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", "Batang", serif;
  --gut: clamp(20px, 3.4vw, 52px);
  --A: 1.41421;   /* 포스터 세로 ÷ 가로: A판(A2 420×594mm 등, ISO 216) */
  /* 벽 미장 결: 고운 모래알만 아주 옅게(얼룩은 연기처럼 보여 뺌) */
  --plaster: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .62 0 0 0 0 .58 0 0 0 0 .52 0 0 0 .9 -.38'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)' opacity='.22'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; background: var(--night); }
body { margin: 0; background: var(--night); color: var(--ink-on); font-family: var(--sans); font-weight: 300; line-height: 1.7;
  word-break: keep-all; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
/* 포스터 조명 빛은 화면 밖으로 번지지 않게 자른다(옆으로 밀리지 않게). clip이라 전시 정보 쪽 포스터의 따라붙기(sticky)는 그대로 */
.gal, .ex { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { display: block; }
:focus-visible { outline: 1px solid var(--ink-on); outline-offset: 3px; }

/* 위 막대 */
.bar { position: fixed; z-index: 40; inset: 0 0 auto 0; display: flex; align-items: center; gap: 28px; padding: 22px var(--gut); font-size: 13px; letter-spacing: .08em;
  background: linear-gradient(180deg, rgba(18, 17, 15, .92), rgba(18, 17, 15, 0)); }
.bar__brand { display: flex; align-items: center; gap: 12px; letter-spacing: .3em; font-weight: 400; }
.bar__brand img { width: 22px; height: 22px; }
.bar__nav { display: flex; gap: 26px; margin-left: auto; }
.bar__nav a { position: relative; color: var(--dim); transition: color .25s; }
.bar__nav a[aria-current="page"], .bar__nav a:hover { color: var(--ink-on); }
.bar__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.bar__nav a:hover::after, .bar__nav a[aria-current="page"]::after { transform: none; }
.bar__lang { display: flex; gap: 4px; }
.bar__lang button { font: inherit; letter-spacing: .1em; background: none; border: 0; color: var(--dim); cursor: pointer; padding: 6px 6px; }
.bar__lang button[aria-pressed="true"] { color: var(--ink-on); }

/* 관 머리 */
.lib { padding: clamp(104px, 10vw, 128px) 0 150px; }
.lib__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; padding: 0 var(--gut); }
.lib__id { display: grid; gap: 4px; }
.lib__no { margin: 0; font-size: 12px; letter-spacing: .3em; color: var(--seal); }
.lib__name { margin: 0; font-weight: 200; font-size: clamp(44px, 6vw, 84px); line-height: 1.1; letter-spacing: .12em; }
html[lang="en"] .lib__name { font-family: var(--serif); font-weight: 400; letter-spacing: .02em; }
.lib__count { margin: 6px 0 0; font-size: 13px; letter-spacing: .08em; color: var(--dim); }

/* 반구대관 홈 = 불을 낮춘 전시실 한 칸. 첫 화면 한 장에 천장(조명 트랙) · 벽(관 이름, 핀조명 아래 포스터, 설명판) · 바닥이 다 보이고,
   포스터는 화면 높이에 맞춰 첫 화면 안에 통째로 들어온다 */
.gal { --ceil: clamp(50px, 7.5svh, 84px); --gapTop: clamp(28px, 5svh, 60px); --gapBot: clamp(28px, 4svh, 48px); --floor: clamp(96px, 15svh, 160px);
  --ph: clamp(300px, calc(100svh - 520px), 560px); --pw: calc(var(--ph) / var(--A));
  position: relative; display: block; min-height: 100svh; overflow-x: clip;
  background:
    radial-gradient(ellipse 72% 70% at 50% 40%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .58) 100%),
    var(--plaster), #1A1815; }
/* 천장: 가장 어둡게, 벽과 만나는 곳에 얕은 그늘 */
.gal::before { content: ""; position: absolute; z-index: 0; inset: 0 0 auto 0; height: var(--ceil); pointer-events: none;
  background: linear-gradient(180deg, #060505, #0D0C0B 75%, #14120F);
  box-shadow: 0 1px 0 rgba(255, 246, 230, .05), 0 14px 26px rgba(0, 0, 0, .5); }
/* 바닥: 벽 아래 걸레받이와 은은하게 윤이 나는 바닥 */
.gal::after { content: ""; position: absolute; z-index: 0; inset: auto 0 0 0; height: var(--floor); pointer-events: none;
  background:
    linear-gradient(180deg, #0B0A09 0, #0B0A09 7px, rgba(255, 246, 230, .06) 7px, rgba(255, 246, 230, 0) 9px),
    radial-gradient(ellipse 60% 90% at 50% 0%, rgba(255, 240, 220, .045), rgba(255, 240, 220, 0) 70%),
    linear-gradient(180deg, #1C1915, #100E0C 85%); }
/* 관 이름: 전시실 벽에 붙인 세로 글씨 */
.gal__sign { position: absolute; z-index: 2; left: var(--gut); top: calc(var(--ceil) + var(--gapTop)); display: flex; gap: 10px; margin: 0; }
.gal__name { order: 1; margin: 0; writing-mode: vertical-rl; font-weight: 200; font-size: clamp(30px, 4vw, 56px); line-height: 1.2; letter-spacing: .16em; color: rgba(239, 235, 228, .92); }
html[lang="en"] .gal__name { font-family: var(--serif); font-weight: 400; letter-spacing: .08em; }
.gal__no { order: 2; margin: 0; writing-mode: vertical-rl; font-size: 12px; letter-spacing: .32em; color: #E2584C; }
/* 벽: 위 여백 = 천장 + 조명까지, 아래 여백 = 바닥. 넓은 화면은 양옆에 관 이름 자리를 비운다 */
.gal__wall { position: relative; z-index: 1; padding: calc(var(--ceil) + var(--gapTop)) 0 calc(var(--floor) + var(--gapBot)); }
/* 포스터 줄: 직지관 서가처럼 여러 줄로 걸고 위아래로 스크롤한다(줄마다 가운데 맞춤, 몇 장씩인지는 스크립트가 벽 폭으로 정함) */
.gal__rows { --rowgap: clamp(80px, 11svh, 130px); --colgap: clamp(70px, 7vw, 120px); --label: 0px; display: grid; row-gap: var(--rowgap); padding: 0 max(var(--gut), 150px); }
/* 입구 벽(지금 열린 특별전): 포스터는 첫 화면 높이에 맞춰(스크립트가 다시 잼), 설명판은 포스터보다 좁아지지 않게 300px 이상 */
.gal__rows--now { --ph: clamp(240px, calc(100svh - 330px), 600px); --pw: calc(var(--ph) / var(--A)); }
/* 아카이브 벽(지난 특별전): 작은 포스터로 여러 장씩 */
.gal__rows--past { --ph: clamp(220px, 19vw, 320px); --pw: calc(var(--ph) / var(--A)); --rowgap: clamp(70px, 9svh, 110px); --colgap: clamp(48px, 5vw, 90px); }
.gal__past { margin-top: clamp(90px, 13svh, 150px); }
.gal__h { margin: 0 0 clamp(70px, 9svh, 110px); padding: 0 max(var(--gut), 150px); font-weight: 300; font-size: 13px; letter-spacing: .26em; color: #CFC8BC; }
.gal__h::after { content: ""; display: block; width: 48px; height: 1px; margin-top: 14px; background: rgba(239, 235, 228, .35); }
.gal__row { list-style: none; display: flex; justify-content: center; align-items: flex-start; column-gap: var(--colgap); margin: 0; padding: 0; }
.hang { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; width: var(--pw); }
.hang__text { align-self: stretch; }
.hang__beam--far { top: calc(-1 * var(--rowgap)); height: calc(var(--rowgap) + var(--ph) * .8); opacity: .55; }
.hang--past .hang__spot { opacity: .78; }
.hang--error { width: auto; max-width: 30em; color: var(--dim); font-size: 14px; }
/* 빛줄기: 화면 밖 천장의 핀조명에서 포스터로 퍼져 내려오는 옅은 빛(조명 기구는 그리지 않음) */
.hang__beam { position: absolute; z-index: 0; left: 50%; top: calc(-1 * var(--gapTop)); width: calc(var(--pw) * 1.5); height: calc(var(--gapTop) + var(--ph) * .8); transform: translateX(-50%); pointer-events: none; opacity: .9; transition: opacity .7s ease;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23FFE8C8' stop-opacity='.22'/%3E%3Cstop offset='.25' stop-color='%23FFE8C8' stop-opacity='.1'/%3E%3Cstop offset='1' stop-color='%23FFE8C8' stop-opacity='.05'/%3E%3C/linearGradient%3E%3Cfilter id='b' x='-20%25' y='-10%25' width='140%25' height='120%25'%3E%3CfeGaussianBlur stdDeviation='1.6'/%3E%3C/filter%3E%3C/defs%3E%3Cpolygon points='47,0 53,0 96,100 4,100' fill='url(%23g)' filter='url(%23b)'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
/* 핀조명: 포스터를 감싸는 둥근 빛. 가장자리는 또렷하게 끊기고 그 밖의 벽은 어둡다. 마우스를 올리면 조금 더 밝아진다 */
.hang__spot { position: absolute; z-index: 0; left: 50%; top: calc(var(--ph) * .47); width: calc(var(--pw) * 1.62); height: calc(var(--ph) * 1.24); transform: translate(-50%, -50%); pointer-events: none; opacity: .9; transition: opacity .7s ease;
  background: radial-gradient(closest-side, rgba(255, 234, 202, .34) 0, rgba(255, 234, 202, .28) 48%, rgba(255, 234, 202, .17) 72%, rgba(255, 234, 202, .05) 88%, rgba(255, 234, 202, 0) 97%); }
.hang:hover .hang__spot, .hang:hover .hang__beam, .hang:focus-within .hang__spot { opacity: 1; }
.hang__poster { position: relative; z-index: 1; display: block; }
.hang__poster:hover, .hang__poster:focus-visible { z-index: 3; }
/* 포스터 아래 벽: 제목과 시작 날짜만(전시 설명은 전시 정보 쪽에서) */
.hang__text { position: relative; z-index: 1; margin-top: clamp(18px, 2.6svh, 28px); text-align: center; }
.hang__title { margin: 0; font-weight: 300; font-size: clamp(22px, min(2.2vw, 3.6svh), 32px); line-height: 1.25; letter-spacing: .08em; }
html[lang="en"] .hang__title { font-family: var(--serif); font-weight: 400; letter-spacing: .01em; }
.hang--past .hang__title { font-size: clamp(17px, 1.4vw, 21px); }
.hang__title a { display: inline-block; padding: 4px 0; background: linear-gradient(currentColor, currentColor) 50% 100% / 0 1px no-repeat; transition: background-size .5s ease; }
.hang__title a:hover { background-size: 100% 1px; }
.hang__date { margin: 6px 0 0; font-size: 13px; letter-spacing: .14em; color: var(--dim); }

/* 포스터: 액자 없이 벽에서 살짝 띄워 붙인(띄움 고정) 인쇄 포스터 한 장. 종이 결과 반광 인쇄의 은은한 윤기,
   핀조명이 가운데를 밝히고 가장자리·아래는 어둡다. 마우스를 올리면 살며시 커지고 마우스를 따라 종이처럼 기운다(스크립트) */
.pt { --w: var(--pw, 240px); position: relative; display: block; width: var(--w); height: calc(var(--w) * var(--A)); perspective: 1400px; perspective-origin: 50% 40%; }
.pt__body { position: absolute; inset: 0; transform-origin: 50% 50%; }
.pt.is-up .pt__body { will-change: transform; }
.pt__frame, .pt__mat { position: absolute; inset: 0; display: block; }
.pt__paper { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: #2A2723; container-type: inline-size; box-shadow: 0 0 0 1px rgba(0, 0, 0, .45); }
.pt__paper::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.pt__img { width: 100%; height: 100%; object-fit: cover; }
.pt__light { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 244, 222, .3), rgba(255, 244, 222, 0) 2px),
    linear-gradient(118deg, rgba(255, 255, 255, 0) 32%, rgba(255, 250, 240, .04) 46%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(ellipse 80% 66% at 50% 40%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .26) 100%),
    linear-gradient(180deg, rgba(255, 238, 210, .11), rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .14) 100%); }
.pt__glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: var(--lit, 0); overflow: hidden; }
.pt__glare::before { content: ""; position: absolute; inset: -20%; mix-blend-mode: soft-light; opacity: .45;
  background: radial-gradient(farthest-corner circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, .2) 30%, rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, .28) 100%); }
.pt__glare::after { content: ""; position: absolute; inset: -40%; mix-blend-mode: screen; filter: blur(14px);
  background: linear-gradient(112deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, .03) 48%, rgba(255, 255, 255, .055) 50%, rgba(255, 255, 255, .03) 52%, rgba(255, 255, 255, 0) 58%);
  transform: translate(calc(var(--gx, 50%) - 50%), calc((var(--gy, 50%) - 50%) * .4)); }
/* 띄움 고정의 그림자: 위에서 오는 빛이라 아래쪽으로 짙고 짧게, 커지면 벽에서 떨어진 만큼 퍼진다 */
.pt__shadow { position: absolute; left: 2%; right: 2%; top: 4%; bottom: 0; background: rgba(0, 0, 0, .85); filter: blur(calc(9px + var(--lit, 0) * 16px));
  transform: translate(var(--sx, 0px), var(--sy, 12px)); opacity: calc(.85 - var(--lit, 0) * .1); }
.pt::after { content: ""; position: absolute; left: 1%; right: 1%; bottom: -3px; height: 7px; border-radius: 50%; background: rgba(0, 0, 0, .75); filter: blur(3px); opacity: calc(1 - var(--lit, 0) * .8); pointer-events: none; }

/* 포스터 자리(포스터 파일이 아직 없을 때): 같은 비율의 종이에 전시명만 */
.ph { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 13cqw 11cqw 11cqw; color: #D9D3C8;
  background: linear-gradient(160deg, #3A3631, #2A2723); }
.ph__kind { font-size: max(10px, 4cqw); letter-spacing: .2em; color: #E0574B; }
.ph__title { margin-top: 6cqw; font-size: 13cqw; font-weight: 300; line-height: 1.15; letter-spacing: .04em; }
html[lang="en"] .ph__title { font-family: var(--serif); font-weight: 400; font-size: 12cqw; letter-spacing: 0; }
.ph__note { margin-top: auto; padding-top: 4cqw; border-top: 1px dashed rgba(217, 211, 200, .3); font-size: max(10px, 3.8cqw); letter-spacing: .14em; color: #A39B8F; }

/* 전시 정보 쪽 */
.ex { max-width: 1120px; margin: 0 auto; padding: clamp(96px, 10vw, 132px) var(--gut) 150px; }
.ex__back { display: inline-block; font-size: 13px; letter-spacing: .08em; color: var(--dim); transition: color .25s; }
.ex__back:hover { color: var(--ink-on); }
.ex__grid { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: clamp(36px, 5vw, 76px); margin-top: 28px; align-items: start; }
.ex__poster { position: sticky; top: 104px; margin: 0; --pw: clamp(240px, 27vw, 360px); }
.ex__poster::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -16%; width: 210%; height: 136%; transform: translateX(-50%); pointer-events: none;
  background:
    radial-gradient(ellipse 34% 30% at 50% 22%, rgba(255, 236, 206, .08), rgba(255, 236, 206, 0) 100%),
    radial-gradient(ellipse 50% 56% at 50% 30%, rgba(255, 230, 194, .14), rgba(255, 230, 194, .05) 44%, rgba(255, 230, 194, 0) 76%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 34%); mask-image: linear-gradient(180deg, transparent, #000 34%); }
.ex__state { margin: 0; font-size: 12.5px; letter-spacing: .2em; color: #E2584C; }
.ex__state span { margin-left: 12px; color: #D8D1C5; letter-spacing: .1em; }
.ex__title { margin: 8px 0 0; font-weight: 200; font-size: clamp(40px, 5vw, 68px); line-height: 1.12; letter-spacing: .04em; }
html[lang="en"] .ex__title { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
.ex__other { margin: 6px 0 0; font-size: 18px; color: var(--dim); }
html[lang="ko"] .ex__other { font-family: var(--serif); font-size: 21px; }
.ex__sub { margin: 14px 0 0; font-size: 15px; letter-spacing: .14em; color: rgba(239, 235, 228, .8); }
html[lang="en"] .ex__sub { font-family: var(--serif); font-style: italic; font-size: 19px; letter-spacing: .01em; }
.ex__lede { margin: 30px 0 0; padding-left: 18px; border-left: 2px solid var(--seal); max-width: 30em; font-size: 20px; font-weight: 300; line-height: 1.8; }
html[lang="en"] .ex__lede { font-family: var(--serif); font-size: 23px; line-height: 1.5; }
.ex__intro { margin: 22px 0 0; max-width: 34em; font-size: 16px; line-height: 1.95; color: rgba(239, 235, 228, .82); }
html[lang="en"] .ex__intro { font-family: var(--serif); font-size: 18.5px; line-height: 1.7; }
.ex__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 44px; margin: 30px 0 0; padding: 18px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.ex__facts dt { font-size: 11.5px; letter-spacing: .18em; color: var(--dim); }
.ex__facts dd { margin: 4px 0 0; font-size: 15px; }
.ex__facts dd small { display: block; margin-top: 2px; font-size: 12px; color: var(--dim); }
.ex__plan { margin: clamp(64px, 8vw, 110px) 0 0; }
.ex__plan h2 { margin: 0 0 14px; font-weight: 300; font-size: 12.5px; letter-spacing: .22em; color: #CFC8BC; }
/* 전시 구성: 방마다 한 줄. 왼쪽에 방 이름과 맡은 마음, 오른쪽에 그 방 작품 작은 그림(누르면 전시장의 그 자리로) */
.ex__route { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.rt { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: 18px 36px; padding: 22px 0; border-bottom: 1px solid var(--hair); }
.rt__head { display: grid; align-content: start; gap: 4px; }
.rt__head b { font-weight: 400; font-size: 12px; letter-spacing: .14em; color: var(--dim); }
.rt.is-pro .rt__head b, .rt.is-epi .rt__head b { color: #E2584C; }
.rt__head span { font-size: 24px; font-weight: 300; letter-spacing: .1em; transition: color .25s; }
html[lang="en"] .rt__head span { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
.rt__head i { font-style: normal; font-size: 13px; line-height: 1.6; color: var(--dim); }
.rt__works { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px 16px; }
.rt__works .rt__w { display: grid; gap: 8px; width: max-content; max-width: 180px; }
.rt__works img { display: block; height: 96px; width: auto; max-width: 180px; object-fit: cover; box-shadow: 0 6px 16px rgba(0, 0, 0, .5); transition: transform .35s ease, box-shadow .35s ease; }
.rt__works span { font-size: 13px; line-height: 1.45; color: #D8D1C5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rt__works b { margin-right: 6px; font-weight: 400; color: #E2584C; }
.ex__credit { margin: 14px 0 0; font-size: 12.5px; color: var(--dim); }
.ex__rooms { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
/* 전시 구성: 이름표 · 방 이름 · 그 방이 맡은 마음 */
.ex__rooms li { display: grid; grid-template-columns: 76px minmax(90px, 9em) 1fr; align-items: baseline; gap: 4px 16px; padding: 13px 0; border-bottom: 1px solid var(--hair); }
.ex__rooms b { font-weight: 400; font-size: 12px; letter-spacing: .12em; color: var(--dim); }
.ex__rooms li.is-pro b, .ex__rooms li.is-epi b { color: var(--seal); }
.ex__room { font-size: 17px; font-weight: 400; letter-spacing: .06em; }
html[lang="en"] .ex__room { font-family: var(--serif); font-size: 19px; letter-spacing: .01em; }
.ex__feel { font-size: 13.5px; color: var(--dim); }
.ex__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 1px solid rgba(239, 235, 228, .35); background: none; color: var(--ink-on);
  font: inherit; font-size: 15px; letter-spacing: .08em; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn:hover { border-color: var(--ink-on); }
.btn--main { min-width: 200px; background: var(--ink-on); color: var(--night); border-color: var(--ink-on); font-weight: 500; }
.btn--main:hover { background: #fff; }
.btn--main svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s ease; }
.btn--main:hover svg { transform: translateX(3px); }

/* 전시장(준비 중) */
.room { min-height: 100svh; display: grid; place-items: center; padding: 120px var(--gut) 150px; text-align: center; }
.room__box { display: grid; justify-items: center; gap: 10px; }
.room__state { margin: 0; font-size: 12px; letter-spacing: .24em; color: var(--seal); }
.room__title { margin: 0; font-weight: 200; font-size: clamp(36px, 5vw, 60px); line-height: 1.15; letter-spacing: .04em; }
html[lang="en"] .room__title { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
.room__msg { margin: 14px 0 0; font-size: 16px; color: var(--dim); }
.room__back { margin-top: 26px; }

/* 아래 독(로비·직지관과 같은 모양) */
.dock { position: fixed; z-index: 44; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: stretch; height: 44px; padding: 0 6px; background: rgba(18, 17, 15, .62); border: 1px solid rgba(239, 235, 228, .14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: .9; transition: opacity .5s ease, transform .5s ease; }
.dock.is-moving { opacity: .45; }
.dock.is-away { opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }
.dock:hover, .dock:focus-within { opacity: 1; }
.dock__item { position: relative; display: flex; align-items: center; gap: 9px; padding: 0 16px; color: var(--dim); font-size: 12.5px; letter-spacing: .08em; line-height: 1; white-space: nowrap; transition: color .25s ease; }
.dock__item::before { content: ""; position: absolute; left: 16px; right: 16px; bottom: 8px; height: 1px; background: var(--ink-on); transform: scaleX(0); transition: transform .3s ease; }
a.dock__item:hover, a.dock__item:focus-visible { color: var(--ink-on); }
a.dock__item:hover::before, a.dock__item:focus-visible::before { transform: scaleX(1); }
.dock__item.is-here { color: var(--ink-on); }
.dock__item.is-here::before { background: var(--seal); transform: scaleX(1); }
.dock__item[aria-disabled] { color: rgba(162, 156, 145, .55); cursor: default; }
.dock__glyph svg { display: block; width: 15px; height: 15px; }
.dock__kind { opacity: .7; }
.dock__sep { width: 1px; margin: 12px 4px; background: rgba(239, 235, 228, .14); }
.dock__tip { position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%); display: none; padding: 6px 10px; white-space: nowrap;
  font-size: 11.5px; letter-spacing: .06em; line-height: 1.3; color: var(--ink-on); background: rgba(18, 17, 15, .92); border: 1px solid rgba(239, 235, 228, .14); pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .dock__item:hover .dock__tip, .dock__item:focus-visible .dock__tip { display: block; } }

/* 맨 위로 */
.totop { position: fixed; z-index: 44; right: var(--gut); bottom: calc(16px + env(safe-area-inset-bottom)); height: 44px; display: flex; align-items: center; gap: 7px; padding: 0 14px;
  font: inherit; font-size: 11.5px; letter-spacing: .14em; color: var(--dim); background: rgba(18, 17, 15, .62); border: 1px solid rgba(239, 235, 228, .14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .4s ease, visibility .4s, transform .4s ease, color .25s ease; }
.totop svg { display: block; width: 14px; height: 14px; }
.totop.is-on { opacity: .9; visibility: visible; transform: none; }
.totop:hover, .totop:focus-visible { color: var(--ink-on); opacity: 1; }

/* 휴대폰 */
@media (max-width: 760px) {
  .bar { padding: 16px 18px; gap: 14px; }
  .bar__brand span { display: none; }
  .bar__brand { min-width: 44px; min-height: 44px; }
  .lib { padding-top: 92px; padding-bottom: 130px; }
  .lib__head { padding: 0 18px; }
  /* 휴대폰: 관 이름은 왼쪽 가장자리에 작게, 포스터는 화면 폭의 64%까지 */
  .gal__rows--now { --ph: clamp(240px, min(calc(100svh - 470px), calc(64vw * 1.41421)), 560px); }
  .gal__rows--past { --ph: calc((100vw - 64px) / 2 * 1.41421); --colgap: 28px; padding: 0 18px; }
  .gal__sign { left: 12px; gap: 4px; }
  .gal__name { font-size: 26px; letter-spacing: .26em; }
  .gal__no { font-size: 11px; }
  .gal__rows { padding-left: 0; padding-right: 0; }
  .gal__h { padding: 0 18px; }
  .hang__spot { width: calc(var(--pw) * 1.3); }
  .hang__beam { width: calc(var(--pw) * 1.25); }
  .ex { padding-top: 84px; padding-bottom: 130px; }
  .ex__grid { grid-template-columns: 1fr; gap: 30px; margin-top: 20px; }
  .ex__poster { position: relative; top: auto; --pw: min(66vw, 280px); }  /* static이면 조명 빛이 화면 기준으로 걸려 옆으로 삐져나감 */
  .ex__rooms li { grid-template-columns: 64px 1fr; gap: 2px 12px; }
  .ex__feel { grid-column: 2; }
  .ex__actions .btn { flex: 1 1 100%; }
  .ex__facts { grid-template-columns: 1fr 1fr; }
  .rt { grid-template-columns: 1fr; gap: 12px; }
  .rt__works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
  .rt__works .rt__w { width: auto; max-width: none; }
  .rt__works img { width: 100%; height: 72px; max-width: none; }
  .dock { height: 54px; padding: 0 4px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .dock__item { flex-direction: column; justify-content: center; gap: 6px; min-width: 60px; padding: 0 10px; font-size: 11px; letter-spacing: .04em; }
  .dock__item::before { left: 50%; right: auto; width: 14px; margin-left: -7px; bottom: 5px; }
  .dock__glyph svg { width: 17px; height: 17px; }
  .dock__kind { display: none; }
  .dock__sep { margin: 14px 2px; }
  .totop { right: 12px; bottom: calc(78px + env(safe-area-inset-bottom)); width: 40px; height: 40px; padding: 0; justify-content: center; }
  .totop span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .dock, .totop, .btn--main svg { transition: none; } }
