/* ===== 토큰 ===== */
:root {
  --lb-paper: #F6F1E7;
  --lb-card: #FCFAF5;
  --lb-ink: #1C1A17;
  --lb-ink-2: #575048;
  --lb-wall: #1E3B36;
  --lb-wall-2: #16302B;
  --lb-burgundy: #7A2A30;
  --lb-burgundy-hover: #632026;
  --lb-gilt: #B8893B;
  --lb-gilt-light: #D9B46A;
  --lb-cream: #F6F1E7;
  --lb-cream-2: #CFC8B8;
  --lb-line: rgba(28, 26, 23, 0.14);
  --lb-line-dark: rgba(246, 241, 231, 0.20);
  --lb-kakao: #FEE500;
  --lb-kakao-ink: #191919;

  --lb-serif: "Cormorant Garamond", "Noto Serif KR", "Nanum Myeongjo", AppleMyungjo, Batang, Georgia, serif;
  --lb-sans: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --lb-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --lb-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --lb-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --lb-dur-1: 120ms;
  --lb-dur-2: 240ms;
  --lb-dur-3: 420ms;
  --lb-dur-4: 700ms;

  --gilt-grad: linear-gradient(135deg, #EACF92 0%, #B8893B 28%, #8A6A2A 52%, #D9B46A 76%, #9C7630 100%);
  --wall-stripes: repeating-linear-gradient(90deg, rgba(246, 241, 231, 0.04) 0 1px, transparent 1px 16px);

  --gut: 40px;
  --sec: 140px;
  --hdr: 76px;
  --track-pad: max(var(--gut), calc((100vw - 1200px) / 2));
}
@media (max-width: 900px) { :root { --gut: 24px; --sec: 80px; } }
@media (max-width: 400px) { :root { --gut: 20px; } }

/* ===== 기본 ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--lb-paper);
  color: var(--lb-ink);
  font-family: var(--lb-sans);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3, p, dl, dd, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
p, li, h1, h2, h3, dt, dd, blockquote, label, a, button { word-break: keep-all; overflow-wrap: break-word; }
a { color: inherit; }
svg { display: block; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
main:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mono { font-family: var(--lb-mono); font-size: 12px; letter-spacing: 0.12em; font-weight: 400; }
.ic { width: 20px; height: 20px; flex: none; }

:focus-visible { outline: 2px solid var(--lb-burgundy); outline-offset: 2px; }
.on-dark :focus-visible,
.site-header:not(.is-light) :focus-visible { outline-color: var(--lb-gilt-light); }

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 18px; border-radius: 9999px;
  background: var(--lb-ink); color: var(--lb-cream); text-decoration: none; font-weight: 600; font-size: 15px;
  transform: translateY(-160%);
  transition: transform var(--lb-dur-2) var(--lb-ease-out);
}
.skip:focus { transform: none; }

/* ===== 레이아웃 ===== */
.wrap {
  width: 100%;
  min-width: 0;
  max-width: calc(1200px + var(--gut) * 2);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.g12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
}
.g12 > * { min-width: 0; }
.sec { padding-block: var(--sec); scroll-margin-top: 60px; }
section[id] { scroll-margin-top: 60px; }

/* ===== 글자 ===== */
.eyebrow {
  font: 600 13px/1.5 var(--lb-sans);
  letter-spacing: 0.08em;
  color: var(--lb-burgundy);
}
.eyebrow--muted { color: var(--lb-ink-2); }
.on-dark .eyebrow { color: var(--lb-gilt-light); }
.rule { display: block; width: 48px; height: 1px; background: var(--lb-gilt); margin-bottom: 24px; }
.on-dark .rule { background: var(--lb-gilt-light); }
.sec-head .eyebrow { margin-bottom: 16px; }
.sec-head--center { text-align: center; }
.sec-head--center .rule { margin-inline: auto; }

.h1 {
  font-family: var(--lb-serif);
  font-weight: 400;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 24px 0 32px;
}
.h1 em { font-style: normal; color: var(--lb-gilt-light); }
.h1 .ln { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.h1 .ln > span {
  display: block;
  animation: lineUp 900ms var(--lb-ease-out) both;
  animation-delay: calc(150ms + var(--k) * 120ms);
}
.h2 {
  font-family: var(--lb-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--lb-serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
}
.lead { font-size: 19px; line-height: 1.75; color: var(--lb-ink-2); }
.on-dark .lead { color: var(--lb-cream-2); }
.body { font-size: 17px; line-height: 1.75; color: var(--lb-ink-2); }
.sub { margin-top: 16px; color: var(--lb-ink-2); }

/* ===== 버튼 ===== */
.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--h);
  max-width: 100%;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 9999px;
  font: 600 16px/1.2 var(--lb-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  transition:
    background-color var(--lb-dur-2) var(--lb-ease-out),
    border-color var(--lb-dur-2) var(--lb-ease-out),
    color var(--lb-dur-2) var(--lb-ease-out),
    transform var(--lb-dur-1) var(--lb-ease-out);
}
.btn:active { transform: scale(0.97); }
.btn .arrow { transition: transform var(--lb-dur-2) var(--lb-ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 14px; gap: 8px; }
.btn--sm .ic { width: 18px; height: 18px; }
.btn--block { width: 100%; }
.btn--kakao { background: var(--lb-kakao); color: var(--lb-kakao-ink); }
.btn--kakao:hover { background: #F2D800; }
.btn--ink { background: var(--lb-ink); color: var(--lb-cream); }
.btn--ink:hover { background: #000; }
.btn--line { border-color: rgba(28, 26, 23, 0.55); color: var(--lb-ink); }
.btn--line:hover { border-color: var(--lb-ink); background: rgba(28, 26, 23, 0.05); }
.on-dark .btn--line { border-color: rgba(246, 241, 231, 0.55); color: var(--lb-cream); }
.on-dark .btn--line:hover { border-color: var(--lb-cream); background: rgba(246, 241, 231, 0.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row > * { min-width: 0; }

/* ===== 상단 메뉴 ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  max-width: 100%;
  overflow-x: clip;
  color: var(--lb-cream);
  border-bottom: 1px solid transparent;
  transition: background-color var(--lb-dur-3) var(--lb-ease-out), color var(--lb-dur-3) var(--lb-ease-out), border-color var(--lb-dur-3) var(--lb-ease-out);
}
.site-header.is-scrolled {
  background: rgb(30, 59, 54);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.site-header.is-light {
  background: rgb(246, 241, 231);
  color: var(--lb-ink);
  border-bottom-color: var(--lb-line);
}
.bar { height: var(--hdr); display: flex; align-items: center; gap: 24px; }
.is-scrolled .bar { height: 60px; }
.bar > * { min-width: 0; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; flex: 0 1 auto; min-width: 0; }
.brand-mark {
  font-family: var(--lb-serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.18em;
  text-decoration: none;
}
.brand-sub { font-size: 11.5px; letter-spacing: 0.04em; opacity: 0.72; margin-top: 3px; overflow-wrap: anywhere; }
.nav { margin-inline: auto; }
.nav ul { display: flex; gap: 32px; }
.nav a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font: 500 15px/1.4 var(--lb-sans);
  text-decoration: none;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--lb-dur-3) var(--lb-ease-out);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.burger {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  border: 0; background: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  border-radius: 9999px;
}
.burger span { display: block; width: 22px; height: 1.5px; background: currentColor; }

/* 모바일 시트 */
.sheet {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column;
  max-width: 100%;
  background: var(--lb-wall) var(--wall-stripes);
  color: var(--lb-cream);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity var(--lb-dur-3) var(--lb-ease-out), transform var(--lb-dur-3) var(--lb-ease-out);
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet[hidden] { display: none; }
.sheet.is-open { opacity: 1; transform: none; }
.sheet-top { height: 60px; display: flex; align-items: center; justify-content: space-between; }
.sheet-top > * { min-width: 0; }
.sheet-close {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; border-radius: 9999px; margin-right: -10px; flex: none;
}
.sheet-close .ic { width: 24px; height: 24px; }
.sheet-nav { margin-top: 24px; }
.sheet-nav li { border-top: 1px solid var(--lb-line-dark); }
.sheet-nav li:last-child { border-bottom: 1px solid var(--lb-line-dark); }
.sheet-nav a {
  display: flex; align-items: baseline; gap: 20px;
  min-height: 64px; padding: 14px 0;
  font: 400 26px/1.3 var(--lb-serif);
  text-decoration: none;
}
.sheet-nav a > * { min-width: 0; }
.sheet-nav .mono { color: var(--lb-gilt-light); }
.sheet-foot { margin-top: auto; padding-top: 40px; padding-bottom: 32px; }

/* ===== 작품 (액자 + 캡션) ===== */
.art { min-width: 0; }
.art-frame {
  padding: 8px;
  background: var(--gilt-grad);
  border-radius: 2px;
}
.on-dark .art-frame { box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55); }
.art-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 1px;
  background: var(--lb-wall-2);
  box-shadow: 0 0 0 1px rgba(15, 12, 10, 0.6);
}
.art-cap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 14px;
  color: var(--lb-ink-2);
}
.art-by { font: 600 12px/1.5 var(--lb-sans); letter-spacing: 0.06em; }
.art-title { font-family: var(--lb-serif); font-size: 17px; line-height: 1.4; color: var(--lb-ink); }
.art-title i { font-style: italic; }
.on-dark .art-cap { color: var(--lb-cream-2); }
.on-dark .art-title { color: var(--lb-cream); }

/* ===== 히어로 ===== */
.hero {
  --p: 0;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--lb-wall);
  color: var(--lb-cream);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 70% at 74% 36%, rgba(246, 241, 231, 0.07), transparent 62%),
    linear-gradient(180deg, transparent 55%, rgba(22, 48, 43, 0.85)),
    var(--wall-stripes);
}
.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  align-items: center;
  padding-top: calc(var(--hdr) + 40px);
  padding-bottom: 56px;
}
.hero-grid > * { min-width: 0; }
.hero-text { grid-column: 1 / span 6; }
.hero-text .lead { max-width: 30em; }
.hero-text .btn-row { margin-top: 40px; }
.hero-fade {
  animation: fadeUp 900ms var(--lb-ease-out) both;
  animation-delay: calc(500ms + var(--k) * 120ms);
}
.hero-wall {
  grid-column: 7 / span 6;
  position: relative;
  animation: settle 1100ms var(--lb-ease-out) both;
  animation-delay: 300ms;
}
.hero-wall .art-frame { padding: 10px; }
.hero-wall img {
  aspect-ratio: 1920 / 1426;
  max-height: calc(100svh - 300px);
  min-height: 240px;
}
/* 조명 원뿔 */
.hero-wall::after {
  content: "";
  position: absolute;
  left: -8%; right: -8%;
  top: calc(-1 * (var(--hdr) + 40px));
  bottom: 18%;
  pointer-events: none;
  background: linear-gradient(180deg, #F6F1E7, rgba(246, 241, 231, 0));
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  mix-blend-mode: screen;
  opacity: calc((0.35 + var(--p) * 0.65) * 0.16);
  transition: opacity var(--lb-dur-3) var(--lb-ease-out);
}

/* 사실 띠 */
.facts-band { position: relative; border-top: 1px solid var(--lb-line-dark); background: rgba(22, 48, 43, 0.6); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { min-width: 0; padding: 26px 24px 28px; border-left: 1px solid var(--lb-line-dark); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact dt { font-size: 13px; color: var(--lb-cream-2); letter-spacing: 0.04em; }
.fact dd {
  margin-top: 6px;
  font-family: var(--lb-serif);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.3;
  color: var(--lb-cream);
}
.fact-sub { font-size: 0.68em; color: var(--lb-cream-2); white-space: nowrap; }

/* ===== 손님 고민 ===== */
.caps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 64px;
  align-items: start;
}
.cap {
  position: relative;
  min-width: 0;
  padding: 28px 28px 36px 32px;
  background: var(--lb-card);
  border: 1px solid var(--lb-line);
  border-radius: 4px;
}
.cap::before {
  content: "";
  position: absolute; left: -1px; top: 24px; bottom: 24px;
  width: 2px; background: var(--lb-gilt);
}
.cap:nth-child(2) { margin-top: 32px; }
.cap-no { color: var(--lb-ink-2); }
.cap-q { margin-top: 20px; }
.cap-q p {
  font-family: var(--lb-serif);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.5;
}
.worry-end {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  margin-top: 96px;
  font-family: var(--lb-serif);
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.4;
  text-align: center;
}
.worry-end::before, .worry-end::after {
  content: ""; flex: 0 1 48px; height: 1px; background: var(--lb-gilt);
}

/* ===== 작품 벽 ===== */
.sec--salon {
  position: relative;
  isolation: isolate;
  background: var(--lb-wall);
  color: var(--lb-cream);
}
.sec--salon::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 60% at 50% 35%, rgba(246, 241, 231, 0.06), transparent 65%),
    var(--wall-stripes);
}
/* 휴대폰·태블릿: 옆으로 넘기는 슬라이드 (다음 장이 살짝 보임). 901px부터는 3칸 벽 */
.salon {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 32px calc(var(--gut) * -1) 0;
  padding: 0 var(--gut);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gut);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.salon::-webkit-scrollbar { display: none; }
.salon-art {
  flex: 0 0 min(82%, 420px);
  scroll-snap-align: start;
}
html.js .salon .salon-art.rv { opacity: 1; transform: none; }
.salon-count { margin-top: 20px; color: var(--lb-cream-2); }

@media (min-width: 901px) {
  .salon {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    margin: 48px 0 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
    scroll-padding-left: 0;
  }
  .salon-art { flex: none; scroll-snap-align: none; }
  .salon-art:nth-child(1) { margin-top: 64px; }
  .salon-art:nth-child(3) { margin-top: 120px; }
  html.js .salon .salon-art.rv:not(.is-in) { opacity: 0; transform: translateY(24px); }
  .salon-count { display: none; }
}

/* ===== 투어 소개 ===== */
.sec--tour { padding-bottom: 0; }
.tour-head { grid-column: 1 / span 5; }
.tour-body { grid-column: 7 / span 6; align-self: end; }
.tour-art { grid-column: 2 / span 10; margin-top: 80px; }
.tour-art img { aspect-ratio: 1920 / 1352; }
.tour-art .art-cap { align-items: flex-end; text-align: right; }
.qgal {
  position: relative;
  margin-top: 96px;
  background: var(--lb-wall);
  color: var(--lb-cream);
  overflow-x: clip;
}
.qgal::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(246, 241, 231, 0.06), transparent 65%),
    var(--wall-stripes);
}
.qgal-stage { position: relative; padding: 96px 0 72px; }
.qgal.is-pinned .qgal-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 84px 0 32px;
  overflow: hidden;
}
.qgal-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.qgal-top > * { min-width: 0; }
.qgal-top .h3 { color: var(--lb-cream); }
.qgal-hint { display: none; font-size: 13px; color: var(--lb-cream-2); }
.qgal-viewport {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--track-pad);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.qgal-viewport::-webkit-scrollbar { display: none; }
.qgal.is-pinned .qgal-viewport { overflow: hidden; }
.qgal-track {
  --fw: clamp(300px, calc((100vh - 300px) * 0.8), 440px);
  display: flex;
  align-items: flex-start;
  gap: 72px;
  width: max-content;
  padding: 8px var(--track-pad) 48px;
  will-change: transform;
}
.qframe { flex: none; width: var(--fw); min-width: 0; scroll-snap-align: start; }
.qframe:nth-child(2) { margin-top: 40px; }
.qframe-gilt {
  padding: 6px;
  background: var(--gilt-grad);
  border-radius: 2px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55);
}
.qframe-field {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 1px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(15, 12, 10, 0.6), inset 0 0 0 1px rgba(232, 201, 138, 0.3);
}
.qframe-field::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 12, 10, 0.86) 0%, rgba(15, 12, 10, 0.5) 34%, transparent 66%);
}
.qf-1 {
  background:
    radial-gradient(55% 40% at 32% 30%, rgba(255, 236, 190, 0.6), transparent 70%),
    radial-gradient(35% 45% at 76% 46%, rgba(122, 42, 48, 0.3), transparent 72%),
    linear-gradient(90deg, transparent 18%, rgba(227, 194, 122, 0.18) 18% 38%, transparent 38%),
    linear-gradient(160deg, #C9A24B, #8A6A2A);
}
.qf-2 {
  background:
    radial-gradient(18% 14% at 74% 22%, rgba(238, 242, 242, 0.7), transparent 70%),
    radial-gradient(90% 26% at 40% 58%, rgba(232, 238, 240, 0.4), transparent 70%),
    linear-gradient(176deg, transparent 54%, rgba(63, 94, 110, 0.55) 54.4%, rgba(63, 94, 110, 0.55) 100%),
    linear-gradient(180deg, #9DB4BF 0%, #7E9AA6 46%, #3F5E6E 100%);
}
.qf-3 {
  background:
    radial-gradient(circle, #E3B94F 0 3.5px, transparent 4.5px) 0 0 / 34px 30px,
    radial-gradient(circle, #7FA36B 0 3px, transparent 4px) 12px 14px / 38px 34px,
    radial-gradient(circle, #5C7FA8 0 3.5px, transparent 4.5px) 22px 6px / 42px 36px,
    radial-gradient(circle, #D9805A 0 2.5px, transparent 3.5px) 6px 22px / 30px 40px,
    radial-gradient(60% 45% at 62% 28%, rgba(92, 127, 168, 0.5), transparent 70%),
    linear-gradient(170deg, #2B3A4A, #0F0C0A);
}
.qframe-q {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 28px;
  font-family: var(--lb-serif);
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.35;
  color: var(--lb-cream);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.qframe-no { margin-top: 16px; color: var(--lb-cream-2); }
.qgal-foot { display: flex; align-items: center; gap: 20px; }
.qgal-count { color: var(--lb-cream-2); flex: none; }
.qgal-count span { color: var(--lb-gilt-light); }
.qgal-bar { position: relative; flex: 0 1 240px; min-width: 0; height: 1px; background: var(--lb-line-dark); overflow: hidden; }
.qgal-bar span {
  position: absolute; inset: 0;
  background: var(--lb-gilt-light);
  transform: scaleX(calc(0.333 + var(--gp, 0) * 0.667));
  transform-origin: left;
  transition: transform var(--lb-dur-2) var(--lb-ease-out);
}

/* ===== 추천 대상 ===== */
.for-head { grid-column: 1 / span 4; }
.for-head .sec-head { position: sticky; top: 120px; }
.rec { grid-column: 6 / span 7; counter-reset: none; }
.rec li { border-top: 1px solid var(--lb-line); overflow-x: clip; }
.rec li:last-child { border-bottom: 1px solid var(--lb-line); }
.rec-in {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: baseline;
  padding: 30px 0;
  transition: transform var(--lb-dur-3) var(--lb-ease-out);
}
.rec-no { color: var(--lb-ink-2); transition: color var(--lb-dur-2) var(--lb-ease-out); }
.rec-t { min-width: 0; font-family: var(--lb-serif); font-size: clamp(21px, 2vw, 26px); line-height: 1.4; }
.rec li:hover .rec-in { transform: translateX(12px); }
.rec li:hover .rec-no { color: var(--lb-burgundy); }

/* ===== 도슨트 ===== */
.sec--wall {
  position: relative;
  background: var(--lb-wall);
  color: var(--lb-cream);
  isolation: isolate;
}
.sec--wall::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--lb-wall) 0%, var(--lb-wall-2) 100%);
  opacity: 0.6;
}
.sec--wall::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--wall-stripes);
}
.doc-head { grid-column: 1 / span 5; display: flex; flex-direction: column; }
.arch { width: min(100%, 320px); max-width: 100%; height: auto; margin-top: 64px; }
.feats { grid-column: 6 / span 7; align-self: center; }
.feat {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--lb-line-dark);
}
.feat:last-child { border-bottom: 1px solid var(--lb-line-dark); }
.feat dt {
  padding-top: 8px;
  font: 600 13px/1.5 var(--lb-sans);
  letter-spacing: 0.08em;
  color: var(--lb-gilt-light);
}
.feat dd {
  min-width: 0;
  font-family: var(--lb-serif);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  color: var(--lb-cream);
}

/* ===== 요금 ===== */
.tickets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 64px;
}
.ticket-wrap { min-width: 0; filter: drop-shadow(0 20px 22px rgba(28, 26, 23, 0.14)); }
.ticket {
  --cut: 60%;
  --r: 13px;
  --cy: 176px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 60%) minmax(0, 40%);
  min-height: 224px;
  background:
    repeating-linear-gradient(135deg, rgba(184, 137, 59, 0.035) 0 1px, transparent 1px 9px),
    var(--lb-card);
  border: 1px solid var(--lb-line);
  border-radius: 4px;
  -webkit-mask:
    radial-gradient(circle var(--r) at var(--cut) 0, #0000 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--r) at var(--cut) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle var(--r) at var(--cut) 0, #0000 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--r) at var(--cut) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.ticket > * { min-width: 0; }
.ticket-main { padding: 30px 32px; display: flex; flex-direction: column; justify-content: center; }
.t-label { font: 600 13px/1.5 var(--lb-sans); letter-spacing: 0.08em; color: var(--lb-ink-2); }
.t-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.t-price > * { min-width: 0; }
.t-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: 72px;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--lb-burgundy);
}
.t-per { font-size: 13px; letter-spacing: 0.06em; color: var(--lb-ink-2); }
.t-alt { margin-top: 12px; font-size: 15px; color: var(--lb-ink-2); }
.ticket-stub {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  padding: 28px 28px 28px 30px;
  border-left: 1px dashed rgba(28, 26, 23, 0.32);
}
.t-no { color: var(--lb-ink-2); }
.t-cond { font-family: var(--lb-serif); font-size: 22px; line-height: 1.4; }
.t-dia { width: 8px; height: 8px; color: var(--lb-gilt); }

.calc {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 16px 32px;
  max-width: 880px;
  margin: 40px auto 0;
  padding: 20px 28px;
  background: var(--lb-card);
  border: 1px solid var(--lb-line);
  border-radius: 4px;
}
.calc > * { min-width: 0; }
.calc-label { font: 600 13px/1.5 var(--lb-sans); letter-spacing: 0.04em; color: var(--lb-ink-2); }
.stepper { display: flex; align-items: center; gap: 4px; }
.step {
  position: relative;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; background: none; cursor: pointer;
  border-radius: 9999px;
  transition: transform var(--lb-dur-1) var(--lb-ease-out);
}
.step::before {
  content: ""; position: absolute; inset: 4px;
  border: 1px solid rgba(28, 26, 23, 0.4);
  border-radius: 9999px;
  transition: background-color var(--lb-dur-2) var(--lb-ease-out), border-color var(--lb-dur-2) var(--lb-ease-out);
}
.step .ic { position: relative; width: 18px; height: 18px; }
.step:hover::before { background: rgba(28, 26, 23, 0.06); border-color: var(--lb-ink); }
.step:active { transform: scale(0.94); }
.step[aria-disabled="true"] { cursor: default; opacity: 0.35; }
.step[aria-disabled="true"]:hover::before { background: none; border-color: rgba(28, 26, 23, 0.4); }
.step-val {
  min-width: 56px;
  text-align: center;
  font-family: var(--lb-serif);
  font-size: 26px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.calc-res {
  text-align: right;
  font-family: var(--lb-serif);
  font-size: 20px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.notes { max-width: 880px; margin: 40px auto 0; display: grid; gap: 12px; }
.notes li { display: flex; align-items: baseline; gap: 14px; color: var(--lb-ink-2); }
.notes li > span { min-width: 0; }
.dia { width: 6px; height: 6px; color: var(--lb-gilt); flex: none; transform: translateY(-3px); }
.price-cta { display: flex; justify-content: center; margin-top: 48px; }

/* ===== 예약 문의 ===== */
.sec--contact { border-top: 1px solid var(--lb-line); }
.contact-info { grid-column: 1 / span 5; padding-right: 16px; }
.contact-info .body { margin-top: 24px; }
.contact-info .btn-row { margin-top: 32px; }
.addr { margin-top: 20px; }
.addr .mono { color: var(--lb-ink-2); user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; }
.copy-msg { margin-top: 8px; font-size: 14px; color: var(--lb-burgundy); }
.copy-btn .ic-check { display: none; }
.copy-btn.is-done .ic-copy { display: none; }
.copy-btn.is-done .ic-check { display: block; }

.form-card {
  grid-column: 6 / span 7;
  align-self: start;
  padding: 40px;
  background: var(--lb-card);
  border: 1px solid var(--lb-line);
  border-radius: 16px;
}
.inq .h3 { margin-bottom: 28px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font: 600 13px/1.4 var(--lb-sans); letter-spacing: 0.02em; }
.field input,
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 12px 16px;
  font-size: 16px;
  line-height: 1.5;
  background: var(--lb-paper);
  border: 1px solid rgba(28, 26, 23, 0.22);
  border-radius: 10px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--lb-dur-2) var(--lb-ease-out), box-shadow var(--lb-dur-2) var(--lb-ease-out);
}
.field input::placeholder, .field textarea::placeholder { color: #8A8277; }
.field select {
  padding-right: 44px;
  background: var(--lb-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23575048' stroke-width='1.4'/%3E%3C/svg%3E") right 18px center / 12px 8px no-repeat;
}
.field input[type="date"] { display: block; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(28, 26, 23, 0.4); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--lb-burgundy);
  box-shadow: 0 0 0 1px var(--lb-burgundy);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--lb-burgundy);
  outline-offset: 2px;
  box-shadow: none;
}
.form-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 28px;
}
.form-note { font-size: 14px; color: var(--lb-ink-2); min-width: 0; }
.form-done {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
  padding: 40px 8px;
}
.form-done[hidden] { display: none; }
.form-done > * { max-width: 100%; }
.form-done .h3:focus { outline: none; }
.form-done .h3:focus-visible { outline: 2px solid var(--lb-burgundy); outline-offset: 4px; }
.form-done .body { max-width: 26em; }
.form-done .btn { margin-top: 8px; }
.done-dia { width: 10px; height: 10px; color: var(--lb-gilt); }
.text-link {
  min-height: 44px; padding: 0 8px;
  border: 0; background: none; cursor: pointer;
  font-size: 15px; color: var(--lb-ink-2);
  text-decoration: underline; text-underline-offset: 4px;
}
.text-link:hover { color: var(--lb-ink); }

/* ===== 푸터 ===== */
.site-footer {
  position: relative;
  background: var(--lb-wall-2) var(--wall-stripes);
  color: var(--lb-cream);
  padding: 80px 0 40px;
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--lb-gilt) 15%, var(--lb-gilt-light) 50%, var(--lb-gilt) 85%, transparent);
}
.f-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: start; }
.f-top > * { min-width: 0; }
.f-mark { display: inline-block; font-size: 28px; }
.f-desc { margin-top: 12px; color: var(--lb-cream-2); }
.f-line { margin-top: 6px; font-size: 14px; color: var(--lb-cream-2); }
.f-nav ul { display: grid; gap: 4px; }
.f-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; color: var(--lb-cream);
  background: linear-gradient(currentColor, currentColor) left 75% / 0 1px no-repeat;
  transition: background-size var(--lb-dur-3) var(--lb-ease-out);
}
.f-nav a:hover { background-size: 100% 1px; }
.f-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 64px; padding-top: 24px;
  border-top: 1px solid var(--lb-line-dark);
  font-size: 13px; color: var(--lb-cream-2);
}
.f-bottom > * { min-width: 0; }
.f-legal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.f-legal > * { min-width: 0; }
.f-credit { font-size: 12px; opacity: 0.85; word-break: keep-all; overflow-wrap: break-word; }
.totop {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  text-decoration: none; color: var(--lb-cream);
  flex: none;
}
.totop .ic { width: 18px; height: 18px; transition: transform var(--lb-dur-2) var(--lb-ease-out); }
.totop:hover .ic { transform: translateY(-3px); }

/* ===== 모바일 하단 문의 바 ===== */
.mbar { display: none; }

/* ===== 등장 ===== */
html.js .rv {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--lb-dur-4) var(--lb-ease-out) var(--d, 0ms),
    transform var(--lb-dur-4) var(--lb-ease-out) var(--d, 0ms);
}
html.js .rv.is-in { opacity: 1; transform: none; }
html.js .rec li.rv.is-in .rec-in { transition: transform var(--lb-dur-3) var(--lb-ease-out); }

@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(4%); } to { opacity: 1; transform: none; } }

/* ===== 반응형 ===== */
@media (max-width: 1080px) {
  .nav ul { gap: 22px; }
  .brand-sub { display: none; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: flex; flex: none; }
  .nav-cta { margin-left: auto; }
  .burger { margin-left: 0; }
  .brand-sub { display: block; }

  .h1 { font-size: clamp(38px, 11vw, 52px); margin: 20px 0 24px; }
  .h3 { font-size: 21px; }
  .lead { font-size: 17px; }
  .body { font-size: 16px; }
  body { font-size: 16px; }

  .hero-grid { padding-top: calc(var(--hdr) + 32px); padding-bottom: 40px; row-gap: 48px; overflow-x: clip; }
  .hero-text, .hero-wall { grid-column: 1 / -1; }
  .hero-wall .art-frame { padding: 7px; }
  .hero-wall img { max-height: none; min-height: 0; }
  .hero-wall::after { top: -48px; }

  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 20px 0 22px 20px; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--lb-line-dark); }

  .caps { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 40px; }
  .cap:nth-child(2) { margin-top: 0; }
  .worry-end { margin-top: 56px; }

  .art-frame { padding: 6px; }

  .tour-head, .tour-body { grid-column: 1 / -1; }
  .tour-body { margin-top: 24px; }
  .tour-art { grid-column: 1 / -1; margin-top: 48px; }
  .qgal { margin-top: 64px; }
  .qgal-stage { padding: 64px 0 48px; }
  .qgal-hint { display: block; }
  .qgal-top { margin-bottom: 28px; }
  .qgal-track { --fw: 78vw; gap: 16px; padding-bottom: 36px; }
  .qframe:nth-child(2) { margin-top: 0; }
  .qframe-q { padding: 22px; font-size: 24px; }

  .for-head, .rec { grid-column: 1 / -1; }
  .for-head .sec-head { position: static; }
  .rec { margin-top: 40px; }
  .rec-in { grid-template-columns: 44px minmax(0, 1fr); padding: 22px 0; }

  .doc-head, .feats { grid-column: 1 / -1; }
  .arch { width: 200px; margin-top: 32px; }
  .feats { margin-top: 40px; }
  .feat { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 22px 0; }
  .feat dt { padding-top: 0; }

  .tickets { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 40px; }

  .contact-info, .form-card { grid-column: 1 / -1; }
  .contact-info { padding-right: 0; }
  .form-card { margin-top: 48px; padding: 28px 24px; }

  .f-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 760px) {
  .mbar {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
    background: rgba(246, 241, 231, 0.94);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--lb-line);
    box-shadow: 0 -8px 24px -12px rgba(28, 26, 23, 0.25);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform var(--lb-dur-3) var(--lb-ease-out), visibility 0s linear var(--lb-dur-3);
  }
  .mbar .btn { --h: 44px; }
  .mbar.is-shown { transform: none; visibility: visible; transition: transform var(--lb-dur-3) var(--lb-ease-out), visibility 0s; }
  .site-footer { padding-bottom: calc(40px + 80px + env(safe-area-inset-bottom)); }
}

@media (max-width: 600px) {
  .nav-cta { display: none; }
  .burger { margin-left: auto; }
  .btn-row { flex-direction: column; }
  .btn-row .btn, .price-cta .btn, .form-foot .btn, .form-done .btn { width: 100%; }
  .btn { white-space: normal; text-align: center; }
  .fact-sub { white-space: normal; }

  .art-title { font-size: 16px; }
  .f-bottom { align-items: flex-start; }

  .ticket {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--cy) auto;
    min-height: 0;
    -webkit-mask:
      radial-gradient(circle var(--r) at 0 var(--cy), #0000 98%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle var(--r) at 100% var(--cy), #0000 98%, #000) right / 51% 100% no-repeat;
    mask:
      radial-gradient(circle var(--r) at 0 var(--cy), #0000 98%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle var(--r) at 100% var(--cy), #0000 98%, #000) right / 51% 100% no-repeat;
  }
  .ticket-main { padding: 22px 24px; }
  .t-num { font-size: 56px; }
  .ticket-stub {
    border-left: 0;
    border-top: 1px dashed rgba(28, 26, 23, 0.32);
    flex-direction: row; align-items: center; justify-content: flex-start;
    padding: 18px 24px 20px;
  }
  .t-cond { font-size: 19px; flex: 1; min-width: 0; }
  .t-no { order: 2; }
  .t-dia { order: 0; }

  .calc { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 22px 20px; }
  .calc-res { text-align: center; font-size: 18px; }

  .fields { grid-template-columns: minmax(0, 1fr); }
  .form-foot { flex-direction: column; align-items: stretch; }

  .worry-end::before, .worry-end::after { flex-basis: 24px; }
  .f-bottom { margin-top: 40px; }
}

/* ===== 움직임 줄이기 ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 120ms !important;
    transition-delay: 0ms !important;
  }
  html.js .rv { opacity: 1; transform: none; }
  .hero-wall::after { opacity: 0.16; }
  .rec li:hover .rec-in { transform: none; }
}

/* 사진 판 고르기용 감싸개 (optimize_images.py): 배치에 끼지 않음 */
picture{display:contents}
