/* 시안 5 「결」(다듬은 안)
   색: 리플렛과 같은 검정·흰색·회색 단계만(K100, K75, K55, K35, K20, K6). 파랑은 뺐다.
   짜임: 페이지는 스크롤하지 않는다. 표지 한 장이 늘 바탕에 있고, 메뉴를 누르면 그 화면이 표지 위로 올라온다. */
:root { --fg: #000; --hair: #000; --grey: #6d6e71; --soft: #f1f1f2; }

/* ── 표지 한 장 ─────────────────────────── */
body.paged { overflow: hidden; height: 100svh; }
body.paged .hero { height: 100svh; }
body.paged .foot { display: none; }
.top__mark { cursor: pointer; }
.top__nav a.is-on { font-weight: 600; }
.lines-tag {
  position: absolute; left: 0; display: flex; align-items: center; padding: 0 10px;
  background: #000; color: #fff; font: 600 12px/1 var(--sans); letter-spacing: -.01em; white-space: nowrap;
  pointer-events: none;
}
.hero__box { border-color: #000; }

/* ── 화면(전시·작품·지도·응원·관람) ─────── */
.sec.view {
  position: fixed; left: 0; right: 0; top: var(--top); bottom: 0; z-index: 30;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 28px var(--m) 96px; background: #fff; outline: 0;
  transform: translateY(101%); visibility: hidden;
  transition: transform .55s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .55s;
}
.sec.view.is-open { transform: none; visibility: visible; transition: transform .55s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
@media (prefers-reduced-motion: reduce) { .sec.view, .sec.view.is-open { transition: none; } }
.sec.view .sec__head { margin-bottom: clamp(28px, 4vw, 56px); padding-right: 92px; }
.view__close {
  position: sticky; top: 0; float: right; z-index: 5; margin: -16px calc(var(--m) * -.4) 0 0;
  display: inline-flex; gap: 8px; align-items: center; padding: 6px 10px; background: #fff; border: 1px solid #000;
  text-decoration: none;
}
.view__close:hover { background: #000; color: #fff; }
.view__close span { font-size: 15px; line-height: 1; }
/* 지도는 정적인 리플렛 그림 대신 지도 화면으로 */
.about__map { display: none; }
.go-map { grid-column: 1 / -1; justify-self: start; }

/* ── 지도 화면 ─────────────────────────── */
#map.view { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 12px; }
#map .view__close { position: absolute; top: 18px; right: var(--m); float: none; margin: 0; }
#map .sec__head { margin-bottom: 12px; }
.mv { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.mv__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.mv__layers, .mv__zoom { display: flex; flex-wrap: wrap; gap: 4px; }
.mv__chip, .mv__zoom button {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px;
  border: 1px solid #000; background: #000; color: #fff; font: 500 12.5px/1 var(--sans); cursor: pointer;
}
.mv__chip .mono { font-size: 10px; }
.mv__chip[aria-pressed="false"] { background: #fff; color: #a7a9ac; border-color: #d1d3d4; text-decoration: line-through; }
.mv__zoom button { background: #fff; color: #000; min-width: 30px; justify-content: center; }
.mv__zoom button:hover { background: #000; color: #fff; }
.mv__stage { position: relative; flex: 1; min-height: 280px; border: 1px solid #000; overflow: hidden; touch-action: none; }
.mv__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.mv__info {
  position: absolute; left: 10px; bottom: 10px; z-index: 2; width: min(330px, calc(100% - 20px)); max-height: calc(100% - 20px); overflow-y: auto;
  padding: 12px 14px 14px; background: #fff; border: 1px solid #000; font-size: 12.5px; line-height: 1.55;
}
.mv__info b { display: block; font: 700 18px/1.3 var(--sans); letter-spacing: -.03em; margin-bottom: 6px; }
.mv__info p { margin: 0 0 8px; }
.mv__info p.mono { margin: 0; color: var(--grey); text-transform: none; }
.mv__no { display: flex; align-items: baseline; justify-content: space-between; }
.mv__kw { font: 400 30px/1 var(--serif); color: #a7a9ac; }
.mv__info h3 { margin: 6px 0 2px; font: 600 20px/1.25 var(--sans); letter-spacing: -.03em; }
.mv__info small { display: block; color: var(--grey); }
.mv__coord { display: block; margin: 6px 0 8px; font: italic 700 17px/1.2 var(--sans); }
.mv__btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.mv__btns .btn { height: 34px; padding: 0 12px; font-size: 12.5px; }
/* ── 작품 화면: 면(한 장씩) / 겹(포개어) ── */
#works.view { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 12px; }
#works .view__close { position: absolute; top: 18px; right: var(--m); float: none; margin: 0; }
#works .sec__head { margin-bottom: 12px; }
#works .index { display: none; }
.wv { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.wv__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.wv__modes { display: flex; }
.wv__modes button { height: 32px; padding: 0 12px; border: 1px solid #000; background: #fff; color: #000; font: 500 13px/1 var(--sans); cursor: pointer; }
.wv__modes button + button { border-left: 0; }
.wv__modes button b { font: 900 15px/1 var(--serif); margin-right: 6px; }
.wv__modes button[aria-pressed="true"] { background: #000; color: #fff; }
.wv__hint { margin: 0; color: var(--grey); text-transform: none; }

.wv__faces { flex: 1; min-height: 0; display: grid; grid-template-rows: repeat(5, 1fr); transition: grid-template-rows .55s cubic-bezier(.2, .8, .2, 1); border-bottom: 1px solid #000; }
.face { position: relative; min-height: 0; overflow: hidden; border-top: 1px solid #000; background: #fff; color: #000; cursor: pointer; outline: 0; transition: background .35s, color .35s; display: flex; flex-direction: column; padding: 0 12px; }
.face:focus-visible { box-shadow: inset 0 0 0 2px #000; }
.face.is-open { background: #000; color: #fff; cursor: default; }
.face__line { flex: none; display: grid; grid-template-columns: 6.5em auto minmax(0, 1fr) auto; align-items: center; gap: 0 18px; min-height: 46px; padding: 6px 0; }
.face__no { color: var(--grey); }
.face.is-open .face__no { color: #a7a9ac; }
.face__t { margin: 0; font: 500 clamp(22px, 2.6vw, 36px)/1.1 var(--sans); letter-spacing: -.04em; white-space: nowrap; }
.face__t small { font: 900 .42em/1 var(--serif); margin-left: .4em; vertical-align: .6em; letter-spacing: .04em; }
.face__flow { overflow: hidden; white-space: nowrap; font-size: 13px; color: #6d6e71; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.face__flow span { display: inline-block; animation: wvflow 80s linear infinite; }
.face__flow.is-rev span { animation-direction: reverse; }
.face:hover .face__flow span { animation-play-state: paused; }
.face.is-open .face__flow { color: #8b8d90; }
@keyframes wvflow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .face__flow span { animation: none; } .wv__faces { transition: none; } }
.face__c { white-space: nowrap; }
.face__open { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; padding: 4px 0 14px; opacity: 0; visibility: hidden; transition: opacity .3s; }
.face.is-open .face__open { opacity: 1; visibility: visible; transition: opacity .45s .2s; }
.face__txt { min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 10px; padding-right: 6px; font-size: 14px; line-height: 1.65; }
.face__txt p { margin: 0; }
.face__sub { font: 600 clamp(18px, 1.8vw, 24px)/1.4 var(--sans); letter-spacing: -.02em; }
.face__place { color: #a7a9ac; text-transform: none; }
.face__btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.btn--inv { background: #fff; color: #000; border-color: #fff; }
.btn--inv:hover { background: #000; color: #fff; }
.btn--inv2 { background: #000; color: #fff; border-color: #fff; }
.btn--inv2:hover { background: #fff; color: #000; }
.face__pics { min-height: 0; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; }
.face__pic { padding: 0; border: 0; background: #222; cursor: zoom-in; min-height: 0; overflow: hidden; }
.face__pic:first-child { grid-row: span 2; }
.face__pic img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); transition: filter .4s; }
.face__pic:hover img { filter: none; }

.wv__stack { flex: 1; min-height: 0; position: relative; overflow: hidden; background: #000; color: #fff; border: 1px solid #000; }
.stack__imgs { position: absolute; inset: 0; isolation: isolate; }
.stack__imgs img { position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover; mix-blend-mode: difference; filter: grayscale(1) contrast(1.15); transition: opacity .35s; }
.stack__imgs img.is-off { opacity: .06; }
.stack__imgs img.is-iso { mix-blend-mode: normal; z-index: 2; }
.stack__cap { position: absolute; left: 12px; top: 10px; margin: 0; color: #fff; text-transform: none; mix-blend-mode: difference; }
.stack__list { position: absolute; left: 12px; bottom: 12px; margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.stack__list button { display: flex; gap: 10px; align-items: baseline; padding: 6px 10px; border: 1px solid #fff; background: #000; color: #fff; font: 600 15px/1.2 var(--sans); letter-spacing: -.02em; cursor: pointer; text-align: left; }
.stack__list button .mono { color: #a7a9ac; }
.stack__list button:hover, .stack__list button:focus-visible { background: #fff; color: #000; outline: 0; }
@media (max-width: 700px) {
  .face__line { grid-template-columns: 3.2em minmax(0, 1fr) auto; gap: 0 10px; min-height: 40px; }
  .face__no { font-size: 10px; }
  .face__flow { grid-column: 1 / -1; grid-row: 2; font-size: 12px; }
  .face__t { font-size: 19px; white-space: normal; }
  .face__c { font-size: 9.5px; }
  .face__open { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 10px; }
  .face__txt { font-size: 13px; max-height: 34svh; }
  .face__txt p:nth-child(2) { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
  .face__pics { grid-template-columns: 2fr 1fr; }
  .stack__list button { font-size: 13px; padding: 5px 8px; }
}

/* 낱말을 눌렀을 때 뜨는 캡션 */
.mv__pop {
  position: absolute; z-index: 4; width: min(320px, calc(100% - 16px)); padding: 12px 14px 14px;
  background: #000; color: #fff; font-size: 12.5px; line-height: 1.55; box-shadow: 0 0 0 1px #000;
}
.mv__pop .mono { display: block; color: #a7a9ac; text-transform: none; margin-bottom: 6px; padding-right: 24px; }
.mv__pop b { display: block; font: 900 26px/1.15 var(--serif); }
.mv__pop h4 { margin: 4px 0 6px; font: 600 15px/1.3 var(--sans); }
.mv__pop p { margin: 0 0 10px; color: #d1d3d4; }
.mv__pop .btn { background: #fff; color: #000; border-color: #fff; height: 32px; padding: 0 12px; font-size: 12.5px; }
.mv__pop .btn:hover { background: #000; color: #fff; }
.mv__pop .btn--line { background: #000; color: #fff; }
.mv__pop .btn--line:hover { background: #fff; color: #000; }
.mv__x { position: absolute; right: 6px; top: 4px; width: 28px; height: 28px; border: 0; background: none; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
@media (max-width: 700px) {
  #map .sec__en { display: none; }
  #map.view { padding-top: 22px; }
  .mv__chip { height: 28px; padding: 0 8px; font-size: 12px; }
  .mv__info { left: 6px; right: 6px; bottom: 6px; width: auto; max-height: 46%; padding: 10px 12px; }
  .mv__info:not(.is-work) p:not(.mono) { display: none; }
  .mv__info b { font-size: 16px; }
}

/* ══ UI 다시 잡기 — 단추를 글자로(미술관·디자인 스튜디오 사이트의 말투) ══
   - 주된 행동: 검은 띠(검정 바탕 흰 글자, 왼쪽 정렬, 모서리·그림자 없음) — 붙여 둔 라벨처럼
   - 그 밖의 행동: 밑줄 글자
   - 켜고 끄기: 켜짐 = 검정 / 꺼짐 = 회색 + 가운데 줄
   - 테두리 상자, 둥근 모서리, 알약 모양은 쓰지 않는다 */
.btn, .btn:hover {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  height: auto; min-width: 11em; padding: 5px 8px 4px; border: 0; border-radius: 0;
  background: #000; color: #fff; font: 500 13px/1.35 var(--sans); letter-spacing: -.01em; text-align: left; text-decoration: none;
}
.btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn--inv, .btn--inv:hover { background: #fff; color: #000; }
.btn--line, .btn--line:hover, .btn--inv2, .btn--inv2:hover, .lnk {
  display: inline; min-width: 0; height: auto; padding: 0; border: 0; background: none; color: inherit;
  font: 500 13px/1.4 var(--sans); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; cursor: pointer;
}
.btn--line:hover, .btn--inv2:hover, .lnk:hover { text-decoration-thickness: 2px; }
#sendBtn { min-width: 9em; padding: 7px 10px 6px; font-size: 14px; }
.sent__btns { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: baseline; }

/* 받는 사람: 글자 고르기 */
.to { gap: 6px 18px; }
.to span { padding: 0; border: 0; font-size: 14px; color: #a7a9ac; }
.to input:checked + span { background: none; color: #000; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.to input:focus-visible + span { outline: 0; color: #000; }

/* 표지의 날짜 칸: 테두리 없이 흰 바탕만 */
.hero__box { border: 0; padding: 6px 9px 7px; }

/* 닫기: 글자 */
.view__close, .view__close:hover { border: 0; background: none; color: #000; padding: 2px 0; text-decoration: underline; text-underline-offset: 4px; }
.view__close:hover { text-decoration-thickness: 2px; }

/* 지도: 막대는 글자로, 설명은 옆 칸(상자 없이 한 줄 선) */
.mv__lab { color: var(--grey); text-transform: none; margin-right: 2px; }
.mv__layers, .mv__zoom { gap: 4px 16px; align-items: baseline; }
.mv__chip, .mv__chip:hover, .mv__zoom button, .mv__zoom button:hover {
  height: auto; min-width: 0; padding: 0; border: 0; background: none; color: #000; font: 500 13.5px/1.4 var(--sans); cursor: pointer;
}
.mv__chip .mono { font-size: 10px; color: var(--grey); margin-right: 5px; }
.mv__chip:hover, .mv__zoom button:hover { text-decoration: underline; text-underline-offset: 4px; }
.mv__chip[aria-pressed="false"] { background: none; color: #a7a9ac; border: 0; text-decoration: line-through; }
.mv__zoom button { font-size: 15px; }
.mv__body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; border-top: 1px solid #000; }
.mv__stage, #map .mv__stage { position: relative; min-height: 0; border: 0; }
.mv__cap { min-height: 0; overflow-y: auto; padding: 14px 0 14px 18px; border-left: 1px solid #000; font-size: 13px; line-height: 1.6; }
.mv__cap h3 { margin: 0 0 8px; font: 600 20px/1.3 var(--sans); letter-spacing: -.03em; }
.mv__cap p { margin: 0 0 10px; }
.cap__meta { color: var(--grey); text-transform: none; }
.cap__word { margin: 0 0 6px !important; font: 900 36px/1.1 var(--serif); letter-spacing: -.01em; }
.cap__coord { font: italic 700 16px/1.2 var(--sans); }
.cap__links { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: baseline; margin-top: 16px !important; }
.cap__list { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid #000; }
.cap__list li { border-bottom: 1px solid #d1d3d4; }
.cap__list .lnk { display: block; padding: 7px 0; text-decoration: none; font-size: 13.5px; }
.cap__list .lnk:hover { text-decoration: underline; }
.cap__list .mono { color: var(--grey); margin-right: 6px; }
@media (max-width: 700px) {
  .mv__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .mv__cap { border-left: 0; border-top: 1px solid #000; padding: 10px 0 0; max-height: 40svh; }
  .cap__word { font-size: 26px; }
  .mv__cap h3 { font-size: 17px; }
  .cap__list { display: none; }
}

/* 작품: 보기 바꾸기는 글자 탭, 겹치는 낱말 */
.wv__modes button, .wv__modes button + button, .wv__modes button[aria-pressed="true"] {
  height: auto; padding: 0 0 3px; margin-right: 20px; border: 0; background: none; color: #a7a9ac; font: 500 14px/1.3 var(--sans);
}
.wv__modes button b { font: 900 16px/1 var(--serif); margin-right: 6px; }
.wv__modes button[aria-pressed="true"] { color: #000; box-shadow: inset 0 -2px 0 #000; }
.face__btns { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: baseline; margin: 6px 0 0; }
.wv__words { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.ww { padding-bottom: 24px; }
.ww__head, .ww__row, .ww__own { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 10px; }
.ww__head { position: sticky; top: 0; z-index: 2; background: #fff; padding: 8px 0 10px; border-top: 1px solid #000; border-bottom: 1px solid #000; }
.ww__h { padding: 0; border: 0; background: none; text-align: left; font: 600 15px/1.25 var(--sans); letter-spacing: -.02em; cursor: pointer; }
.ww__h .mono { display: block; color: var(--grey); margin-bottom: 3px; }
.ww__sec { margin: 18px 0 8px; color: var(--grey); text-transform: none; }
.ww__row { align-items: center; margin-bottom: 4px; cursor: default; }
.ww__band { grid-row: 1; height: 30px; background: #000; transition: background .2s; }
.ww__w { grid-row: 1; position: relative; z-index: 1; justify-self: start; max-width: 100%; padding: 0 8px; border: 0; background: none; color: #fff; font: 900 17px/30px var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.ww__w:hover { text-decoration: underline; text-underline-offset: 4px; }
.is-lit .ww__row:not(.on) .ww__band { background: #e6e7e8; }
.is-lit .ww__row:not(.on) .ww__w { color: #a7a9ac; }
.ww__col { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.ww__o { padding: 0; border: 0; background: none; text-align: left; color: #6d6e71; font: 400 14px/1.5 var(--serif); cursor: pointer; }
.ww__o.t0 { color: #000; font-weight: 900; font-size: 21px; line-height: 1.3; }
.ww__o.t1 { color: #000; font-weight: 900; font-size: 16px; }
.ww__o.t2 { color: #414143; }
.ww__o:hover { color: #000; text-decoration: underline; text-underline-offset: 3px; }
.is-lit .ww__col:not(.on) .ww__o { color: #d1d3d4; }
.is-lit .ww__h:not(.on) { color: #a7a9ac; }
.wv__note { margin: 0; padding-top: 7px; border-top: 1px solid #000; color: #000; text-transform: none; min-height: 1.6em; }
@media (max-width: 700px) {
  .ww__head, .ww__row, .ww__own { column-gap: 4px; }
  .ww__h { font-size: 11.5px; }
  .ww__h .mono { font-size: 9px; }
  .ww__band { height: 24px; }
  .ww__w { font-size: 12px; line-height: 24px; padding: 0 3px; }
  .ww__o { font-size: 11.5px; }
  .ww__o.t0 { font-size: 14px; } .ww__o.t1 { font-size: 12.5px; }
}

/* ══ 머리의 메뉴 = 색인 탭 ══
   밑줄 대신 칸. 칸 사이에 가는 선, 지금 열린 화면의 칸은 검게 뒤집힌다 — 겹친 곳은 반전.
   다시 누르면 표지로 돌아간다. */
.top { align-items: stretch; }
.top__mark, .top__title, .top__time { align-self: center; }
.top__nav.tabs { align-self: stretch; gap: 0; height: calc(var(--top) - 1px); border-right: 1px solid #000; }
.top__nav.tabs a { display: flex; align-items: center; gap: 6px; padding: 0 14px; border-left: 1px solid #000; font-size: 13px; font-weight: 500; text-decoration: none; transition: background .15s, color .15s; }
.top__nav.tabs a::after { content: none; }
.top__nav.tabs a .mono { font-size: 9.5px; color: var(--grey); }
.top__nav.tabs a:hover, .top__nav.tabs a.is-on { background: #000; color: #fff; }
.top__nav.tabs a:hover .mono, .top__nav.tabs a.is-on .mono { color: #a7a9ac; }
@media (min-width: 900px) { .top__nav.tabs { grid-column: 6 / span 5; justify-content: flex-start; } .top__title { grid-column: 3 / span 3; } .top__time { grid-column: 11 / -1; } }
@media (max-width: 899px) {
  .top__mark { grid-column: 1 / span 3; }
  .top__nav.tabs { grid-column: 4 / -1; justify-content: flex-end; margin-right: calc(var(--m) * -1); border-right: 0; }
  .top__nav.tabs a { padding: 0 9px; font-size: 12.5px; }
  .top__nav.tabs a .mono { display: none; }
}
/* 화면 머리: 닫기는 탭이 대신하므로 작게 */
.sec.view .sec__head { padding-right: 70px; }

/* ══ 표지의 응원 칸 ══ */
.hero__box--l { display: none; }
.cc {
  position: absolute; z-index: 3; left: var(--m); bottom: var(--m); width: min(680px, calc(100% - 2 * var(--m) - 190px));
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 0 12px;
  padding: 8px 8px 8px 10px; background: #fff;
}
.cc__no { color: var(--grey); white-space: nowrap; }
.cc__to select {
  -webkit-appearance: none; appearance: none; border: 0; border-radius: 0; background: none; padding: 0 14px 0 0; cursor: pointer;
  font: 500 13px/1.3 var(--sans); color: #000; text-decoration: underline; text-underline-offset: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0h8L4 5z'/%3E%3C/svg%3E") no-repeat right center;
}
.cc__in { min-width: 0; border: 0; border-bottom: 1px solid #000; border-radius: 0; background: transparent; padding: 4px 0 5px; font: 500 16px/1.3 var(--sans); letter-spacing: -.02em; outline: 0; }
.cc__in::placeholder { color: #a7a9ac; }
.cc__in:focus { border-bottom-width: 2px; padding-bottom: 4px; }
.cc__say { grid-column: 3 / -1; margin: 4px 0 0; min-height: 0; color: var(--grey); text-transform: none; }
.cc__say:empty { display: none; }
.cc__say a { color: #000; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) {
  .cc { left: 0; right: 0; bottom: 0; width: auto; grid-template-columns: auto minmax(0, 1fr); gap: 6px 10px; padding: 10px var(--m) 30px; border-top: 1px solid #000; }
  .cc__no { grid-column: 1; }
  .cc__to { grid-column: 2; justify-self: start; }
  .cc__in { grid-column: 1 / 2; grid-column: 1 / -1; font-size: 15px; }
  .cc__go { grid-column: 1 / -1; justify-self: stretch; }
  .cc__say { grid-column: 1 / -1; }
  .hero__box--r { bottom: 150px; }
}

/* ══ 전시 화면: 리플렛 B1을 웹으로 ══ */
#about .about { display: none; }
.ab { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 56px; padding-bottom: 40px; }
.ab__intro { grid-column: 1 / span 5; display: grid; gap: 14px; align-content: start; font-size: 14.5px; line-height: 1.75; }
.ab__intro p { margin: 0; }
.ab__title { margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; font: 700 clamp(36px, 4vw, 56px)/1 var(--sans); letter-spacing: -.04em; }
.ab__title span { font: 500 15px/1.3 var(--sans); letter-spacing: -.01em; color: var(--grey); }
.ab__def { font: 600 17px/1.6 var(--sans) !important; letter-spacing: -.02em; }
.ab__def b { font: 900 1.15em/1 var(--serif); }
.ab__facts { margin: 16px 0 0; border-top: 1px solid #000; }
.ab__facts div { display: grid; grid-template-columns: 5em minmax(0, 1fr); padding: 8px 0; border-bottom: 1px solid #d1d3d4; font-size: 13.5px; line-height: 1.5; }
.ab__facts dt { color: var(--grey); }
.ab__facts dd { margin: 0; }
.ab__cards { grid-column: 7 / -1; position: relative; height: calc(4 * 104px + 160px); }
.ab__card {
  position: absolute; left: calc(var(--i) * 4.5%); top: calc(var(--i) * 104px); z-index: calc(var(--i) + 1); width: 76%; height: 160px;
  display: grid; grid-template-columns: minmax(0, 1fr) 46px; grid-template-rows: auto auto 1fr; column-gap: 14px; align-content: start;
  padding: 14px 16px; background: #fff; color: #000; border: 1px solid #000; text-decoration: none; transition: background .2s, color .2s;
}
.ab__card b { font: 700 18px/1.3 var(--sans); letter-spacing: -.03em; }
.ab__card small { margin: 4px 0 6px; color: var(--grey); font-size: 12.5px; }
.ab__card span { font-size: 14px; line-height: 1.55; }
.ab__card .ab__mini { grid-column: 2; grid-row: 1 / span 3; width: 46px; height: 46px; }
.ab__card.on, .ab__card:focus-visible { z-index: 10; background: #000; color: #fff; outline: 0; }
.ab__card.on small { color: #a7a9ac; }
.ab__booth { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); border-top: 1px solid #000; padding-top: 18px; }
.ab__btxt { grid-column: 1 / span 5; display: grid; gap: 12px; align-content: start; font-size: 14.5px; line-height: 1.75; }
.ab__btxt p { margin: 0; }
.ab__btxt .mono { color: var(--grey); text-transform: none; }
.ab__btxt h4 { margin: 0; font: 700 18px/1.3 var(--sans); letter-spacing: -.02em; display: flex; gap: 14px; align-items: baseline; }
.ab__btxt h4 span { font-weight: 500; font-size: 14px; color: var(--grey); }
.ab__planwrap { grid-column: 7 / span 5; }
.ab__planwrap .mono { margin: 8px 0 0; color: var(--grey); text-transform: none; }
/* 평면도: 벽은 회색 띠, 경계는 점선, 작품 칸은 흰 칸 — 그 작품이면 검게 */
.ab__plan, .ab__mini { display: block; overflow: visible; }
.ab__plan { width: 100%; max-width: 440px; aspect-ratio: 1; }
.ab__plan .wall, .ab__mini .wall { fill: #d1d3d4; }
.ab__plan .edge { fill: none; stroke: #000; stroke-width: .35; stroke-dasharray: 1.4 1.2; }
.ab__mini .edge { fill: none; stroke: #6d6e71; stroke-width: 2; stroke-dasharray: 5 4; }
.ab__plan .pc rect { fill: #fff; stroke: #000; stroke-width: .4; cursor: pointer; transition: fill .15s; }
.ab__plan .pc text { font: 600 4px var(--sans); fill: #000; pointer-events: none; }
.ab__plan .pc text.nm { font: 500 3.4px var(--sans); fill: #414143; }
.ab__plan .pc.on rect, .ab__plan .pc:hover rect { fill: #000; }
.ab__plan .pc.on text:not(.nm), .ab__plan .pc:hover text:not(.nm) { fill: #fff; }
.ab__mini .pc rect { fill: #fff; stroke: #000; stroke-width: 2.4; }
.ab__mini .pc.on rect { fill: #000; }
.ab__card.on .ab__mini .wall { fill: #6d6e71; }
.ab__card.on .ab__mini .pc rect { stroke: #fff; fill: #000; }
.ab__card.on .ab__mini .pc.on rect { fill: #fff; }
@media (max-width: 899px) {
  .ab { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .ab__intro, .ab__cards, .ab__booth, .ab__btxt, .ab__planwrap { grid-column: 1 / -1; }
  .ab__booth { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .ab__cards { height: calc(4 * 92px + 150px); }
  .ab__card { width: 84%; height: 150px; left: calc(var(--i) * 4%); top: calc(var(--i) * 92px); padding: 12px 12px; }
  .ab__card b { font-size: 16px; }
  .ab__card span { font-size: 13px; }
  .ab__plan { max-width: 320px; }
}
.no-anim .sec.view { transition: none !important; }

/* ══ 메뉴 = 사전의 엄지 색인(오른쪽 끝) ══
   다섯 화면은 표지 뒤에 포개진 다섯 장, 그 가장자리 색인이 오른쪽 끝에 계단처럼 나와 있다.
   검은 색인에 흰 글자. 올리면 조금 더 빠져나오고, 열린 장의 색인은 그 장과 이어진 흰 칸이 된다. */
:root { --thumb: 30px; }
@media (max-width: 700px) { :root { --thumb: 26px; } }
.top__nav, .top__nav.tabs { display: none !important; }
.thumbs { position: fixed; z-index: 45; right: 0; top: var(--top); bottom: 0; width: var(--thumb); pointer-events: none; }
.thumbs a {
  pointer-events: auto; position: absolute; right: 0; width: var(--thumb);
  top: calc(var(--i) * 20% + 10px); height: calc(20% - 14px);
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 9px 0 0;
  background: #000; color: #fff; text-decoration: none; transition: width .2s cubic-bezier(.2, .8, .2, 1), background .2s, color .2s;
}
.thumbs a .mono { font-size: 9.5px; color: #a7a9ac; letter-spacing: 0; }
.thumbs a b { writing-mode: vertical-rl; font: 600 13px/1 var(--sans); letter-spacing: .25em; }
.thumbs a:hover { width: calc(var(--thumb) + 12px); }
.thumbs a.is-on { background: #fff; color: #000; width: calc(var(--thumb) + 1px); box-shadow: inset 0 1px 0 #000, inset 0 -1px 0 #000, inset -1px 0 0 #000; }
.thumbs a.is-on .mono { color: var(--grey); }
@media (max-width: 700px) { .thumbs a b { font-size: 12px; letter-spacing: .18em; } .thumbs a .mono { font-size: 8.5px; } }
/* 장은 오른쪽에서 밀려 나와 색인 앞에서 멈춘다 */
.sec.view { right: var(--thumb); transform: translateX(calc(100% + var(--thumb) + 2px)); border-right: 1px solid #000; }
.sec.view.is-open { transform: none; }
.view__close { display: none; }
.sec.view .sec__head { padding-right: 0; }
.hero__box--r { right: calc(var(--m) + var(--thumb)); }
.cc { width: min(680px, calc(100% - 2 * var(--m) - 190px - var(--thumb))); }
@media (max-width: 700px) { .cc { left: 0; right: var(--thumb); width: auto; padding-right: 12px; } }

/* ══ 전시: 부스 배치(리플렛 v5) ══ */
.ab__booth { display: block; border-top: 1px solid #000; padding-top: 18px; }
.ab__booth h4 { margin: 0 0 18px; font: 700 18px/1.3 var(--sans); letter-spacing: -.02em; display: flex; gap: 14px; align-items: baseline; }
.ab__booth h4 span { font-weight: 500; font-size: 14px; color: var(--grey); }
.ab__planwrap { max-width: 520px; }
.ab__plan { width: 100%; max-width: 520px; aspect-ratio: 1; }
.ab__plan .edge { fill: none; stroke: #000; stroke-width: .3; stroke-dasharray: none; }
.ab__plan .pc rect { fill: #fff; stroke: #000; stroke-width: .35; }
.ab__plan .pc text.no { font: 600 3.4px var(--sans); fill: #000; }
.ab__plan .pc text.nm { font: 500 3.1px var(--sans); fill: #414143; }
.ab__plan .pc.on rect, .ab__plan .pc:hover rect { fill: #000; }
.ab__plan .pc.on text.no, .ab__plan .pc:hover text.no { fill: #fff; }
.ab__plan .pc.on text.nm, .ab__plan .pc:hover text.nm { fill: #000; font-weight: 700; }
.ab__mini .edge { fill: #fff; stroke: #000; stroke-width: 2.2; stroke-dasharray: none; }
.ab__mini .pc rect { fill: #fff; stroke: #000; stroke-width: 2.2; }
.ab__mini .pc.on rect { fill: #000; }
.ab__card.on .ab__mini .edge { fill: #000; stroke: #fff; }
.ab__card.on .ab__mini .pc rect { fill: #000; stroke: #fff; }
.ab__card.on .ab__mini .pc.on rect { fill: #fff; }

/* ══ 응원: 여섯 번째 겹을 채운다 ══ */
.cvf { position: relative; }
.cvf canvas { display: block; width: 100%; height: min(72vw, 62svh); }
.cvf__stat { margin: 8px 0 0; color: var(--grey); text-transform: none; }
.cvf__tip { position: absolute; left: 0; right: 0; z-index: 2; margin: 0; padding: 6px 8px 7px; background: #000; color: #fff; pointer-events: none; display: grid; gap: 2px; }
.cvf__tip .mono { color: #a7a9ac; text-transform: none; }
.cvf__tip b { font: 600 15px/1.35 var(--sans); letter-spacing: -.02em; }
#cheer .cheer__count { font-size: clamp(56px, 7vw, 120px); }
@media (min-width: 900px) {
  #cheer .cheer { align-items: start; }
  .cvf { grid-column: 1 / span 6; grid-row: 1 / span 4; position: sticky; top: 0; }
  .cvf canvas { height: calc(100svh - var(--top) - 150px); }
  #cheer .cheer__intro { grid-column: 8 / -1; grid-row: auto; position: static; }
  #cheer .send, #cheer .sent, #cheer .log { grid-column: 8 / -1; }
}

/* ══ 색인 다시: 포개진 다섯 장의 가장자리 ══
   색인 다섯 개가 위아래로 조금씩 겹쳐 있고(겹친 높이 ≈ 한 칸의 1/4), 오른쪽 끝에서 계단처럼 너비가 다르다.
   흰 바탕의 띠 안에서 difference로 겹쳐서, 한 장만 덮인 곳은 검정, 두 장이 겹친 곳은 흰색 — 표지의 「겹칠 때마다 반전」.
   열린 장의 색인은 띠 끝까지 빠져나온다. */
:root { --thumb: 46px; }
@media (max-width: 700px) { :root { --thumb: 40px; } }
.thumbs { width: var(--thumb); background: #fff; border-left: 1px solid #000; isolation: isolate; }
.thumbs a, .thumbs a:hover, .thumbs a.is-on {
  top: calc(var(--i) * 100% / 5.25); height: calc(125% / 5.25);
  right: 0; width: calc(var(--thumb) - 18px + var(--i) * 4px);
  justify-content: center; gap: 7px; padding: 0;
  background: #fff; color: #000; box-shadow: none; mix-blend-mode: difference;
  transition: width .25s cubic-bezier(.2, .8, .2, 1);
}
.thumbs a .mono, .thumbs a.is-on .mono { color: #000; font-size: 9.5px; }
.thumbs a b { font: 700 13.5px/1 var(--sans); letter-spacing: .3em; }
.thumbs a:hover { width: calc(var(--thumb) - 1px); }
.thumbs a.is-on { width: var(--thumb); }
.thumbs a.is-on b::after { content: ""; }
@media (max-width: 700px) { .thumbs a b { font-size: 12.5px; letter-spacing: .22em; } .thumbs a .mono { font-size: 9px; } }
/* 처음 열 때 색인이 한 장씩 밀려 나온다 */
@keyframes thumbIn { from { transform: translateX(100%); } }
.thumbs a { animation: thumbIn .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.25s + var(--i) * .07s); }
@media (prefers-reduced-motion: reduce) { .thumbs a { animation: none; } }

/* ══ 휴대폰 다듬기 ══ */
.cc__info { display: none; }
@media (max-width: 700px) {
  /* 머리: 왼쪽 GYEOP, 오른쪽 D-day만 */
  .top__time { display: flex; grid-column: 7 / -1; justify-self: end; align-self: center; gap: 8px; font-size: 10.5px; }
  .top__time #clock { display: none; }
  /* 표지 아래: 날짜·장소 한 줄 + 응원 칸을 한 판으로 */
  .hero__box--r { display: none; }
  .cc { padding: 10px 12px 14px var(--m); gap: 8px 10px; }
  .cc__info { display: block; grid-column: 1 / -1; margin: 0 0 2px; padding-bottom: 8px; border-bottom: 1px solid #d1d3d4; color: #000; text-transform: none; font-size: 10.5px; }
  .cc__go { min-height: 40px; font-size: 14px; }
  .cc__in { font-size: 16px; padding: 6px 0 7px; }
  /* 화면(장) 안쪽 여백 */
  .sec.view { padding: 20px 14px 72px var(--m); }
  .sec.view .sec__head { margin-bottom: 18px; }
  /* 지도: 판형을 지도 비율에 맞춰 위에, 설명은 아래에서 스크롤 */
  #map.view { padding-bottom: 0; }
  .mv { gap: 8px; }
  .mv__layers, .mv__zoom { gap: 4px 12px; }
  .mv__body { grid-template-rows: auto minmax(0, 1fr); }
  .mv__stage, #map .mv__stage { aspect-ratio: 242 / 208; flex: none; min-height: 0; }
  .mv__cap { max-height: none; overflow-y: auto; padding-bottom: 20px; }
  /* 시안 전환 막대는 휴대폰에서 가린다(실제 사이트에는 없음) */
  body.paged .dswitch { display: none; }
  /* 응원: 겹 그림을 조금 더 크게 */
  .cvf canvas { height: min(96vw, 58svh); }
  /* 전시: 카드 간격 */
  .ab__cards { height: calc(4 * 86px + 148px); }
  .ab__card { top: calc(var(--i) * 86px); height: 148px; }
}

/* ══ 7차: 머리의 선 없애기, 휴대폰에서 겹이 잘리지 않게 ══ */
.top { border-bottom: 0; }
@media (max-width: 700px) {
  /* 응원 칸은 화면 아래에 붙고, 표지는 그 위의 높이에 꼭 맞춘다 */
  .cc { position: fixed; z-index: 20; left: 0; right: var(--thumb); bottom: 0; width: auto; padding-bottom: calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #000; }
  body.paged .hero { height: calc(100svh - var(--cc-h, 170px)); min-height: 0; }
  /* iOS가 입력칸을 누를 때 화면을 확대하지 않도록 글자는 16px 이상 */
  .cc__to select, .send__from input, #from, .cc__in { font-size: 16px; }
  .send textarea { font-size: clamp(26px, 8vw, 34px); }
  /* 색인 띠는 표지 높이만큼(아래 응원 칸 옆까지) */
  .thumbs { bottom: 0; }
}
/* 표지는 색인 띠 앞에서 끝난다 — 겹이 색인에 가려지지 않게 가운데를 맞춘다 */
body.paged .hero { margin-right: var(--thumb); }
@media (max-width: 700px) {
  /* 응원: 겹 그림 바로 아래에 쓰는 칸, 설명과 기록은 그 뒤 */
  #cheer .cheer { row-gap: 22px; }
  #cheer .cvf { order: 0; }
  #cheer .send, #cheer .sent { order: 1; }
  #cheer .cheer__intro { order: 2; }
  #cheer .log { order: 3; }
  #cheer .cheer__count { display: none; }
  #cheer .cheer__lead { margin-top: 0; font-size: 14px; }
  #cheer .send { gap: 14px; }
  #sendBtn { width: 100%; min-height: 42px; }
}
/* 장 머리에도 선을 두지 않는다(머리 막대 아래 선이 겹쳐 보이지 않게) */
.sec.view .sec__head { border-top: 0; padding-top: 0; }

/* ══ 8차(D-1): 표지 응원에 From., 휴대폰에서 흐르는 글줄 없애기 ══ */
/* 표지 응원 칸: [06 응원][To.][응원 한 줄][From.][보내기] */
.cc { width: min(820px, calc(100% - 2 * var(--m) - 190px)); grid-template-columns: auto auto minmax(0, 1fr) minmax(96px, 150px) auto; }
.cc__in { order: 1; }
.cc__from { order: 2; display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.cc__go { order: 3; }
.cc__say { order: 4; }
.cc__from .mono { flex: none; color: var(--grey); }
.cc__from input { min-width: 0; width: 100%; border: 0; border-bottom: 1px solid #a7a9ac; border-radius: 0; background: transparent; padding: 4px 0 5px; font: 500 14px/1.3 var(--sans); letter-spacing: -.02em; outline: 0; color: #000; }
.cc__from input::placeholder { color: #a7a9ac; }
.cc__from input:focus { border-bottom-color: #000; }
@media (max-width: 700px) {
  /* 휴대폰: 둘째 줄에 [06 응원][To.][From.] — 칸 높이는 그대로 */
  .cc { width: auto; grid-template-columns: auto auto minmax(0, 1fr); }
  .cc__no { grid-column: auto; }
  .cc__to { grid-column: auto; }
  .cc__from { order: 0; justify-self: stretch; }
  .cc__from input { font-size: 16px; padding: 2px 0 3px; }
  .cc__in, .cc__go, .cc__say, .cc__info { grid-column: 1 / -1; }
  /* 작품 화면: 접힌 줄에서 흐르는 글줄은 휴대폰에서 아예 보이지 않게 */
  .face__flow { display: none; }
  .face__line { min-height: 44px; }
}

/* 9차 (12-01): 누를 때 휴대폰 기본 파란 강조를 끈다 — 흑백만 */
a, button, input, select, textarea, label, summary { -webkit-tap-highlight-color: transparent; }
