/* ============================================================
 * style.css — 색상·글꼴·간격은 아래 :root 변수만 바꿔도 전체에 적용됩니다.
 * 방향: 따뜻한 블랙 + 샴페인 골드, 얇은 세리프, 박스 대신 가는 선과 여백
 * ============================================================ */
:root {
  --bg: #0b0a09;
  --bg-alt: #110f0d;
  --panel: #15130f;
  --line: rgba(194, 168, 120, .16);
  --line-strong: rgba(194, 168, 120, .38);
  --gold: #c2a878;
  --gold-hi: #e3d3ae;
  --gold-lo: #8a7550;
  --text: #ece6da;
  --soft: #cfc7b8;
  --muted: #8f877a;
  --radius: 2px;
  --gutter: 20px;
  --max: 1200px;
  --display: "Cormorant Garamond", "Noto Serif KR", serif;
  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  --sans: "Pretendard Variable", Pretendard, system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; font-weight: 300; line-height: 1.8; letter-spacing: -.005em;
  padding-bottom: calc(60px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}
.eyebrow, .num, .h1-en, .brand-main, .copy, .space-label, .ag-mark { font-variant-numeric: lining-nums; }
img, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--gold-hi); text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.35; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
strong { font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(194, 168, 120, .3); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; justify-content: center; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 1px solid var(--gold-hi); outline-offset: 4px; }
@media (min-width: 900px) { :root { --gutter: 48px; } }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 10, 9, .72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-main { font-family: var(--display); font-size: 24px; font-weight: 400; letter-spacing: .38em; color: var(--gold-hi); }
.brand-sub { font-size: 9px; letter-spacing: .5em; color: var(--muted); margin-top: 6px; }
.nav { display: none; gap: 34px; font-size: 13px; letter-spacing: .08em; }
.nav a { color: var(--soft); position: relative; padding: 4px 0; transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .4s var(--ease); }
.nav a:hover { color: var(--gold-hi); }
.nav a:hover::after { transform: scaleX(1); }
.hdr-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--gold-hi); transition: background .3s; }
.icon-btn:hover { background: rgba(194, 168, 120, .1); }
.icon-btn svg { width: 16px; height: 16px; fill: currentColor; }
.nav-toggle {
  background: none; border: 1px solid var(--line-strong); color: var(--text); border-radius: var(--radius);
  height: 40px; padding: 0 16px; font: inherit; font-size: 12px; letter-spacing: .14em; cursor: pointer;
}
.nav.open {
  display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 68px;
  background: rgba(11, 10, 9, .98); padding: 28px var(--gutter) 32px; border-bottom: 1px solid var(--line); gap: 20px; font-size: 17px;
}
@media (min-width: 960px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
}

/* ---------- 공통 요소 ---------- */
.eyebrow {
  font-family: var(--display); font-size: 13px; font-weight: 500; letter-spacing: .42em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.section { padding: 112px 0; }
.section.alt { background: var(--bg-alt); }
.section > .wrap > h2 { font-size: clamp(30px, 4.4vw, 48px); margin-bottom: 56px; }
@media (min-width: 900px) { .section { padding: 168px 0; } }
.lead { color: var(--soft); font-size: 17px; line-height: 1.9; max-width: 520px; }
.note { color: var(--muted); font-size: 13px; margin-top: 20px; }
.prose p { color: var(--soft); font-size: 16.5px; line-height: 2; }
.rule { display: block; width: 1px; height: 56px; background: linear-gradient(var(--gold), transparent); margin: 36px auto; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn-row.center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px;
  border-radius: var(--radius); border: 1px solid var(--line-strong); color: var(--text);
  background: transparent; font: inherit; font-size: 14px; font-weight: 400; letter-spacing: .06em; cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn svg { width: 15px; height: 15px; fill: currentColor; }
.btn:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn.is-primary { background: var(--gold); border-color: var(--gold); color: #17130c; font-weight: 500; }
.btn.is-primary:hover { background: var(--gold-hi); border-color: var(--gold-hi); color: #17130c; }
.btn.ghost { border-color: transparent; color: var(--soft); padding: 0 6px; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 6px; }
.btn.ghost:hover { color: var(--gold-hi); text-decoration-color: var(--gold); }

/* ---------- 히어로 ---------- */
.hero {
  position: relative; min-height: calc(100svh - 68px); display: flex; flex-direction: column; justify-content: center;
  padding: 96px 0 120px; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: slowzoom 24s var(--ease) both; }
.hero-light {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(38% 52% at 78% 38%, rgba(214, 170, 98, .22), transparent 70%),
    radial-gradient(22% 30% at 84% 30%, rgba(255, 222, 160, .16), transparent 70%),
    radial-gradient(70% 60% at 10% 110%, rgba(120, 82, 40, .22), transparent 70%),
    linear-gradient(180deg, #0d0b09, #0b0a09);
}
.hero-light::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 22%; width: 1px;
  background: linear-gradient(transparent, rgba(194, 168, 120, .35) 30%, rgba(194, 168, 120, .35) 70%, transparent);
}
.hero-veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 10, 9, .85), rgba(11, 10, 9, .35) 65%, rgba(11, 10, 9, .2)), linear-gradient(0deg, var(--bg), transparent 30%); }
.hero:not(.has-image) .hero-veil { background: linear-gradient(0deg, var(--bg), transparent 30%); }
.hero-in { position: relative; }
.hero h1 { margin-bottom: 28px; }
.h1-en {
  display: block; font-family: var(--display); font-weight: 300; font-size: clamp(64px, 15vw, 180px);
  letter-spacing: .14em; line-height: .95; color: var(--gold-hi); margin-left: -.06em;
}
.h1-ko { display: block; font-family: var(--serif); font-size: clamp(15px, 2vw, 18px); font-weight: 400; letter-spacing: .3em; color: var(--gold); margin-top: 22px; }
.hero-sub { font-family: var(--serif); font-size: clamp(22px, 3.2vw, 34px); color: var(--text); margin-bottom: 18px; letter-spacing: -.02em; }
.hero-lead { color: var(--soft); max-width: 480px; font-size: 16px; line-height: 1.95; }
.hero-meta {
  position: absolute; left: 0; right: 0; bottom: 28px; margin: 0 auto; max-width: var(--max); padding: 0 var(--gutter);
  display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 12px; letter-spacing: .08em; color: var(--muted);
}
@media (max-width: 959px) { .hero { min-height: calc(100svh - 128px); padding-bottom: 96px; } }
@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---------- 브랜드 문장 ---------- */
.statement h2 { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.45; }
.statement .prose { max-width: 600px; margin: 0 auto; }
.points { display: grid; gap: 28px; margin-top: 56px; text-align: left; }
.points h3 { font-size: 18px; margin-bottom: 6px; }
.points p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- 공간(잡지식 그리드) ---------- */
.space-grid { display: grid; gap: 40px; }
.space { margin: 0; }
.space img, .art { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.4s var(--ease); }
.space { overflow: hidden; }
.space:hover img { transform: scale(1.03); }
.art { position: relative; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.art span { font-family: var(--display); font-weight: 300; font-size: clamp(64px, 9vw, 120px); color: rgba(227, 211, 174, .18); letter-spacing: .1em; }
.art::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(194, 168, 120, .12); }
.art-1 { background: radial-gradient(60% 50% at 50% 30%, rgba(222, 178, 104, .28), transparent 70%), linear-gradient(180deg, #1a1611, #0e0c0a); }
.art-2 { background: radial-gradient(80% 60% at 20% 100%, rgba(150, 104, 54, .3), transparent 70%), linear-gradient(160deg, #15120e, #0c0b09); }
.art-3 { background: radial-gradient(50% 40% at 80% 20%, rgba(255, 226, 170, .14), transparent 70%), linear-gradient(200deg, #12110f, #0a0908); }
.space figcaption { display: grid; gap: 6px; padding-top: 22px; }
.space-label { font-family: var(--display); font-size: 12px; font-weight: 500; letter-spacing: .38em; color: var(--gold); }
.space figcaption strong { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--text); }
.space-text { font-size: 14.5px; color: var(--muted); }
@media (min-width: 800px) {
  .space-grid.n3 { grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 48px 56px; }
  .space-grid.n3 .space:first-child { grid-row: span 2; }
  .space-grid.n3 .space:first-child img, .space-grid.n3 .space:first-child .art { aspect-ratio: 4 / 4.6; }
  .space-grid.n3 .space:not(:first-child) img, .space-grid.n3 .space:not(:first-child) .art { aspect-ratio: 16 / 9; }
  .space-grid:not(.n3) { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 요금 ---------- */
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; } }
.price-list { margin: 0; border-top: 1px solid var(--line-strong); }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.price-row dt { font-family: var(--serif); font-size: 19px; font-weight: 400; display: grid; gap: 4px; }
.price-row dt small { font-family: var(--sans); font-size: 13px; color: var(--muted); font-weight: 300; }
.price-row dd { margin: 0; font-family: var(--serif); font-size: 17px; color: var(--gold-hi); white-space: nowrap; }

/* ---------- 예약 ---------- */
.steps { display: grid; gap: 0; border-top: 1px solid var(--line-strong); counter-reset: s; }
.steps li { padding: 32px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 4px 12px; }
.steps .num { grid-row: span 2; font-family: var(--display); font-size: 22px; color: var(--gold); line-height: 1.2; }
.steps h3 { font-size: 20px; }
.steps p { color: var(--muted); font-size: 14.5px; margin: 0; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .steps li { display: block; padding: 40px 40px 44px 0; border-bottom: 0; }
  .steps li + li { padding-left: 40px; border-left: 1px solid var(--line); }
  .steps .num { display: block; margin-bottom: 26px; font-size: 26px; }
  .steps h3 { margin-bottom: 10px; }
}
.plan { margin-top: 88px; display: grid; gap: 32px; border-top: 1px solid var(--line); padding-top: 56px; }
@media (min-width: 900px) { .plan { grid-template-columns: 5fr 7fr; gap: 80px; } }
.plan-head h3 { font-size: clamp(22px, 2.6vw, 28px); }
.chips { border: 0; padding: 0; margin: 0 0 26px; }
.chips legend { font-size: 12px; letter-spacing: .24em; color: var(--muted); margin-bottom: 12px; padding: 0; }
.chip {
  font: inherit; font-size: 14px; color: var(--soft); background: transparent; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 18px; margin: 0 8px 8px 0;
  transition: border-color .3s, color .3s, background .3s;
}
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip[aria-pressed="true"] { background: rgba(194, 168, 120, .1); border-color: var(--gold); color: var(--gold-hi); }
.plan-summary { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.plan-summary.has { color: var(--text); }
.plan .btn-row { margin-top: 24px; }
.more-link { margin-top: 64px; font-size: 14px; letter-spacing: .06em; }
.more-link a { color: var(--soft); border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; }
.more-link a:hover { color: var(--gold-hi); border-color: var(--gold); }

/* ---------- 오시는 길 ---------- */
.two-col { display: grid; gap: 48px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; } }
address { font-style: normal; font-size: 17px; line-height: 1.9; margin-bottom: 32px; display: grid; gap: 2px; color: var(--soft); }
address strong { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--text); margin-bottom: 10px; }
address span { color: var(--muted); font-size: 15px; }
.bullets li { position: relative; padding: 12px 0 12px 22px; border-top: 1px solid var(--line); color: var(--soft); font-size: 15px; }
.bullets li:last-child { border-bottom: 1px solid var(--line); }
.bullets li::before { content: ""; position: absolute; left: 0; top: 1.45em; width: 10px; height: 1px; background: var(--gold); }
.map { position: relative; }
.map iframe { width: 100%; height: 440px; border: 0; filter: grayscale(1) invert(.9) contrast(.9) brightness(.85) sepia(.25); }
.map::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); pointer-events: none; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-strong); max-width: 920px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 28px 0; font-family: var(--serif); font-size: 18px; font-weight: 400; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; transition: color .3s; }
.faq summary:hover { color: var(--gold-hi); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform: rotate(45deg) translate(-3px, -3px); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { padding: 0 48px 30px 0; margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.95; }

/* ---------- CTA / 푸터 ---------- */
.cta { padding: 160px 0; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 60% at 50% 100%, rgba(194, 150, 86, .16), transparent 70%); pointer-events: none; }
.cta .wrap { position: relative; }
.cta h2 { font-size: clamp(30px, 5vw, 52px); margin-bottom: 18px; }
.cta p { color: var(--soft); }
.cta-addr { margin-top: 40px; font-size: 13px; letter-spacing: .06em; }
.cta-addr a { color: var(--muted); }
.site-footer { padding: 72px 0 48px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.site-footer .brand-main { font-size: 28px; margin-bottom: 10px; }
.foot-grid { display: grid; gap: 32px; margin-bottom: 40px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.2fr 1.6fr 1fr; } }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--soft); }
.site-footer a:hover { color: var(--gold-hi); }
.site-footer strong { color: var(--soft); }
.disclaimer { font-size: 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.copy { font-family: var(--display); font-size: 12px; letter-spacing: .3em; margin-top: 10px !important; }

/* ---------- 텍스트 페이지 ---------- */
.page-hero { padding: 96px 0 24px; }
.page-hero h1 { font-size: clamp(34px, 6vw, 56px); margin-bottom: 18px; }
.crumbs { font-size: 12px; letter-spacing: .1em; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); }
.doc { padding: 40px 0; border-top: 1px solid var(--line); }
.doc h2 { font-size: 24px; margin-bottom: 16px; }
.page-text .section:not(.page-hero) { padding-top: 32px; }

/* ---------- 모바일 하단 고정바 ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid;
  background: rgba(11, 10, 9, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.sticky-bar.cols-2 { grid-template-columns: repeat(2, 1fr); }
.sticky-bar.cols-3 { grid-template-columns: repeat(3, 1fr); }
.sticky-bar.cols-4 { grid-template-columns: repeat(4, 1fr); }
.sticky-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; color: var(--gold-hi); font-size: 13px; letter-spacing: .08em;
}
.sticky-bar a + a { border-left: 1px solid var(--line); }
.sticky-bar svg { width: 15px; height: 15px; fill: currentColor; }
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .sticky-bar { display: none; }
}

/* ---------- 연령 확인(입장 화면) ---------- */
.agegate {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(50% 50% at 50% 40%, rgba(194, 150, 86, .12), transparent 70%), #0a0908;
}
.agegate[hidden] { display: none; }
.agegate-box { max-width: 420px; width: 100%; text-align: center; padding: 48px 8px; }
.agegate-box .ag-mark { font-family: var(--display); font-size: 40px; font-weight: 300; letter-spacing: .4em; color: var(--gold-hi); margin: 0 0 40px .4em; }
.agegate-box .eyebrow { margin-bottom: 16px; }
.agegate-box h2 { font-size: 22px; margin-bottom: 12px; }
.agegate-box p { color: var(--muted); font-size: 14px; }
.agegate-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 36px; }
.agegate-actions .btn { width: 100%; }
.agegate-actions .btn:not(.is-primary) { border-color: transparent; color: var(--muted); }

/* ---------- 등장 애니메이션 ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
}

/* ---------- 관리자에서 추가한 섹션(글·사진) ---------- */
.cs-grid { display: grid; gap: 40px; }
.custom:not(.has-media) .cs-grid { max-width: 760px; margin: 0 auto; text-align: center; }
.custom:not(.has-media) .prose { max-width: 600px; margin: 0 auto; }
.custom h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 32px; line-height: 1.45; }
.cs-media { margin: 0; overflow: hidden; }
.cs-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.4s var(--ease); }
.cs-media:hover img { transform: scale(1.03); }
@media (min-width: 900px) {
  .custom.has-media .cs-grid { grid-template-columns: 7fr 5fr; gap: 80px; align-items: center; }
  .custom.has-media.alt .cs-media { order: 2; }
}

/* ============================================================
 * 리뉴얼 — 모션
 * 모든 움직임은 '동작 줄이기' 설정을 켠 사용자에게는 꺼집니다.
 * ============================================================ */

/* 스크롤 진행 막대 */
.progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* 헤더: 스크롤 내리면 숨고, 올리면 나타남 */
.site-header { transition: transform .5s var(--ease), background .4s; }
.site-header.hide { transform: translateY(-100%); }
.nav a.on { color: var(--gold-hi); }
.nav a.on::after { transform: scaleX(1); }

/* 히어로: 로고 글자 하나씩 떠오름 + 금빛 광택이 지나감 */
.h1-en { display: flex; }
.h1-en .ch { display: inline-block; }
.js .h1-en .ch { opacity: 0; transform: translateY(.35em) scale(.96); filter: blur(14px); }
.js.is-ready .h1-en .ch {
  opacity: 1; transform: none; filter: none;
  transition: opacity 1.4s var(--ease), transform 1.6s var(--ease), filter 1.4s var(--ease);
  transition-delay: calc(var(--i) * 110ms + 250ms);
  animation: glint 8s ease-in-out infinite; animation-delay: calc(var(--i) * 140ms + 3s);
}
@keyframes glint {
  0%, 12%, 100% { color: var(--gold-hi); text-shadow: none; }
  6% { color: #fff7e2; text-shadow: 0 0 28px rgba(255, 226, 160, .55), 0 0 2px rgba(255, 240, 210, .8); }
}
.js .ha { opacity: 0; transform: translateY(22px); }
.js.is-ready .ha { opacity: 1; transform: none; transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--d) * 120ms + 700ms); }

/* 히어로 조명: 마우스를 따라 천천히 움직임 */
.hero-light {
  background:
    radial-gradient(34% 48% at var(--mx, 78%) var(--my, 38%), rgba(214, 170, 98, .24), transparent 70%),
    radial-gradient(18% 26% at calc(var(--mx, 78%) + 6%) calc(var(--my, 38%) - 8%), rgba(255, 222, 160, .16), transparent 70%),
    radial-gradient(70% 60% at 10% 110%, rgba(120, 82, 40, .22), transparent 70%),
    linear-gradient(180deg, #0d0b09, #0b0a09);
  transition: background-position 1s;
}
.hero-light::before {
  content: ""; position: absolute; inset: -20%;
  background: conic-gradient(from 200deg at 70% 40%, transparent, rgba(194, 168, 120, .06), transparent 30%);
  animation: drift 24s linear infinite;
}
@keyframes drift { to { transform: rotate(360deg); } }
.hero-light::after { animation: beam 7s var(--ease) infinite alternate; }
@keyframes beam { from { opacity: .25; } to { opacity: 1; } }

/* 아래로 스크롤 안내 */
.scroll-cue { position: absolute; right: var(--gutter); bottom: 28px; width: 1px; height: 64px; background: var(--line); overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold-hi); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }
@media (min-width: 900px) { .scroll-cue { right: calc((100vw - min(var(--max), 100vw)) / 2 + var(--gutter)); } }

/* 흐르는 띠 문구 */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; background: var(--bg); }
.marquee .track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marq 60s linear infinite; }
.marquee span { font-family: var(--display); font-weight: 300; font-size: clamp(22px, 3vw, 34px); letter-spacing: .22em; color: var(--soft); white-space: nowrap; text-transform: uppercase; }
.marquee i { font-style: normal; color: var(--gold); font-size: 12px; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }

/* 제목: 단어가 아래에서 차례로 올라옴 */
.js .split-h.reveal { opacity: 1; transform: none; }
.split-h .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-h .wi { display: inline-block; }
.js .split-h .wi { transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.js .split-h.in .wi { transform: none; }

/* 사진: 커튼이 걷히듯 나타나고, 스크롤에 따라 깊이감 있게 움직임 */
.mask { position: relative; overflow: hidden; }
.js .reveal .mask, .js .mask.reveal { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease); }
.js .reveal.in .mask, .js .mask.reveal.in { clip-path: inset(0 0 0 0); }
.js .reveal .mask img { transform: scale(1.18); transition: transform 2.2s var(--ease); }
.js .reveal.in .mask img { transform: scale(1.06); }
.js .reveal.in .mask img[data-parallax] { transform: translate3d(0, var(--py, 0px), 0) scale(1.14); transition: transform .15s linear; }
.js .space.reveal, .js .cs-media.reveal, .js .g-item.reveal, .js .card-x.reveal { opacity: 1; transform: none; }
.space:hover img, .cs-media:hover img { transform: none; }
.mask .art { transition: transform 2.2s var(--ease); }
.js .reveal .mask .art { transform: scale(1.12); }
.js .reveal.in .mask .art { transform: none; }

/* 카드·목록: 차례로 등장 */
.js .reveal { transition-delay: calc(var(--i, 0) * 90ms); }

/* 버튼: 금빛이 차오르는 효과 */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn:not(.ghost):not(.is-primary)::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(194, 168, 120, .12); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.btn:not(.ghost):not(.is-primary):hover::before { transform: scaleX(1); }
.btn.is-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .9s var(--ease); }
.btn.is-primary:hover::after { left: 130%; }

/* 입장 화면: 들어갈 때 천천히 걷힘 */
.agegate { transition: opacity 1s var(--ease), visibility 1s; }
.agegate.leaving { opacity: 0; visibility: hidden; }
.agegate-box { transition: transform 1s var(--ease), filter 1s var(--ease); }
.agegate.leaving .agegate-box { transform: scale(1.06); filter: blur(6px); }
.js .agegate .ag-mark { animation: agIn 1.6s var(--ease) both; }
.js .agegate .agegate-box > :not(.ag-mark) { animation: agIn 1.2s var(--ease) both; animation-delay: .5s; }
@keyframes agIn { from { opacity: 0; transform: translateY(14px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- 새 섹션 종류 ---------- */
.cs-head { max-width: 760px; margin-bottom: 56px; }
.cs-head h2 { font-size: clamp(30px, 4.4vw, 48px); margin-bottom: 24px; }
.custom.type-text .cs-head { margin-bottom: 0; }
/* 갤러리: 가로로 넘겨 보는 사진 */
.gallery { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 24px; scroll-padding: 0 var(--gutter); scrollbar-width: thin; scrollbar-color: var(--gold-lo) transparent; cursor: grab; }
.gallery.dragging { cursor: grabbing; scroll-snap-type: none; }
.g-item { flex: 0 0 min(78vw, 520px); margin: 0; scroll-snap-align: start; }
.g-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; pointer-events: none; }
.g-item figcaption { padding-top: 14px; font-size: 14px; color: var(--muted); letter-spacing: .04em; }
@media (min-width: 900px) {
  .gallery { padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
  .g-item:nth-child(even) { margin-top: 64px; }
}
/* 카드 목록 */
.cards { display: grid; gap: 40px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.card-x { border-top: 1px solid var(--line-strong); padding-top: 28px; }
.card-x .mask { margin-bottom: 24px; }
.card-x img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-no { font-family: var(--display); font-size: 40px; font-weight: 300; color: var(--gold); line-height: 1; margin-bottom: 22px; }
.card-x h3 { font-size: 22px; margin-bottom: 10px; }
.card-x p { color: var(--muted); font-size: 15px; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .js .h1-en .ch, .js .ha, .js .split-h .wi, .js .reveal .mask, .js .mask.reveal, .js .reveal .mask img, .js .reveal .mask .art { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; transition: none !important; animation: none !important; }
  .marquee .track, .hero-light::before, .hero-light::after, .scroll-cue span { animation: none; }
  .site-header.hide { transform: none; }
}

/* 관리자 미리보기: 움직임 없이 완성된 화면으로 */
.no-motion *, .no-motion *::before, .no-motion *::after { transition: none !important; animation: none !important; }
.no-motion .h1-en .ch, .no-motion .ha, .no-motion .reveal, .no-motion .split-h .wi, .no-motion .mask, .no-motion .mask img, .no-motion .mask .art { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }

/* ============================================================
 * 입장 연출: ① 문이 열리는 입장 → ② 천장 조명이 하나씩 켜짐
 * ============================================================ */
.agegate { perspective: 1600px; overflow: hidden; background: #0a0908; transition: background 1.6s var(--ease) .6s; }
.agegate.open { background: transparent; }
.agegate .door {
  position: absolute; top: 0; bottom: 0; width: 50.2%; z-index: 0;
  transition: transform 2.4s cubic-bezier(.65, 0, .25, 1) .15s;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 7px), linear-gradient(180deg, #1b1611, #0f0c09 60%, #16110c);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, .8);
}
.agegate .door::before { content: ""; position: absolute; inset: 7% 12%; border: 1px solid rgba(194, 168, 120, .32); box-shadow: inset 0 0 0 10px rgba(0, 0, 0, .25), inset 0 0 0 11px rgba(194, 168, 120, .14); }
.agegate .door.l { left: 0; transform-origin: 0 50%; }
.agegate .door.r { right: 0; transform-origin: 100% 50%; }
.agegate .door .h { position: absolute; top: 62%; width: 6px; height: 13%; border-radius: 3px; background: linear-gradient(180deg, #f3e2b4, #9c7a3c 50%, #e8d29c); box-shadow: 0 0 18px rgba(227, 211, 174, .35); }
.agegate .door.l .h { right: 5%; }
.agegate .door.r .h { left: 5%; }
.agegate .seam { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); z-index: 1; background: linear-gradient(transparent, rgba(255, 226, 160, .9) 20%, #fff2cc 50%, rgba(255, 226, 160, .9) 80%, transparent); box-shadow: 0 0 30px 6px rgba(255, 210, 130, .45); animation: seam 2.4s ease-in-out infinite; transition: opacity .6s; }
@keyframes seam { 50% { box-shadow: 0 0 50px 12px rgba(255, 210, 130, .6); } }
.agegate .burst { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; background: radial-gradient(40% 70% at 50% 50%, rgba(255, 236, 190, .85), rgba(255, 200, 120, .22) 40%, transparent 70%); }
.agegate .agegate-box { position: relative; z-index: 2; padding: 40px 28px; background: radial-gradient(closest-side, rgba(10, 9, 8, .92), rgba(10, 9, 8, .75) 70%, transparent); }
.agegate.open .door.l { transform: rotateY(-104deg); }
.agegate.open .door.r { transform: rotateY(104deg); }
.agegate.open .seam { opacity: 0; }
.agegate.open .burst { animation: burst 2.2s var(--ease) .2s both; }
@keyframes burst { 30% { opacity: .85; } 100% { opacity: 0; } }
.agegate.open .agegate-box { opacity: 0; transform: scale(.96); filter: blur(4px); transition: opacity .5s, transform .6s, filter .5s; }
.agegate.leaving { opacity: 1; visibility: visible; }

/* 첫 화면 천장 조명 */
.hero-spots { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-spots .spot { position: absolute; top: 0; left: var(--x); width: 22vw; max-width: 320px; height: 100%; transform: translateX(-50%); }
.hero-spots i { position: absolute; left: 50%; top: -6px; width: 16px; height: 10px; transform: translateX(-50%); border-radius: 0 0 50% 50%; background: #fff6dc; box-shadow: 0 0 26px 8px rgba(255, 214, 150, .6); }
.hero-spots b { position: absolute; left: 0; right: 0; top: 0; height: 82%; background: linear-gradient(180deg, rgba(255, 218, 160, .26), rgba(255, 200, 130, .04) 80%, transparent); clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); filter: blur(6px); }
.hero-spots u { position: absolute; left: -20%; right: -20%; bottom: 4%; height: 18%; background: radial-gradient(50% 50% at 50% 50%, rgba(255, 206, 140, .16), transparent 70%); }
.js .hero-spots .spot { opacity: 0; }
.js.is-ready .hero-spots .spot { animation: flick 1.1s steps(1) both; animation-delay: calc(var(--d) * 110ms + 150ms); }
@keyframes flick { 0% { opacity: 0; } 10% { opacity: .8; } 16% { opacity: .15; } 26% { opacity: 1; } 34% { opacity: .4; } 44%, 100% { opacity: 1; } }
@media (max-width: 759px) { .hero-spots .spot:nth-child(2), .hero-spots .spot:nth-child(4) { display: none; } .hero-spots .spot { width: 40vw; } }

/* 조명이 켜진 뒤 로고·문구가 나오도록 순서 조정 */
.js.is-ready .h1-en .ch { transition-delay: calc(var(--i) * 110ms + 1100ms); animation-delay: calc(var(--i) * 140ms + 4s); }
.js.is-ready .ha { transition-delay: calc(var(--d) * 110ms + 1400ms); }

/* 두 번째 방문부터는 빠르게 */
.quick.is-ready .hero-spots .spot { animation: none; opacity: 1; transition: opacity .6s; }
.quick.is-ready .h1-en .ch { transition-delay: calc(var(--i) * 50ms + 100ms); }
.quick.is-ready .ha { transition-delay: calc(var(--d) * 50ms + 200ms); }

@media (prefers-reduced-motion: reduce) {
  .agegate .door, .agegate .seam, .agegate .burst { transition: none !important; animation: none !important; }
  .js .hero-spots .spot { opacity: 1 !important; animation: none !important; }
}
.no-motion .hero-spots .spot { opacity: 1 !important; }
.hero-spots b { background: linear-gradient(180deg, rgba(255, 218, 160, .2), rgba(255, 200, 130, .03) 80%, transparent); }
@media (max-width: 759px) {
  .agegate .door .h { top: 80%; height: 10%; }
  .agegate-box h2 { font-size: 19px; word-break: keep-all; }
  .agegate-box p { word-break: keep-all; }
}

/* 푸터 SNS 아이콘 (X · 텔레그램) */
.site-footer .social { display: flex; gap: 12px; margin: 4px 0 28px; }
.site-footer .social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--gold-hi); transition: background .3s, border-color .3s, transform .3s; }
.site-footer .social a:hover { background: rgba(194, 168, 120, .12); border-color: var(--gold); transform: translateY(-2px); }
.site-footer .social svg { width: 17px; height: 17px; fill: currentColor; }

/* ============ 짧은 구성(5단) ============ */
.compact-space .cs-intro { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.compact-space .cs-intro h2 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.45; margin-bottom: 22px; }
.compact-space .lead { margin: 0 auto; }
.space-row { display: grid; gap: 28px; }
@media (min-width: 800px) { .space-row { grid-template-columns: repeat(3, 1fr); gap: 32px; } .space-row .space:nth-child(2) { margin-top: 64px; } }
.space-row .space img, .space-row .art { aspect-ratio: 3 / 4; }
.room-cards { display: grid; gap: 28px; }
@media (min-width: 800px) { .room-cards { grid-template-columns: repeat(3, 1fr); } }
.room { border: 1px solid var(--line); background: rgba(255, 255, 255, .012); display: flex; flex-direction: column; transition: border-color .4s, transform .5s var(--ease); }
.room:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.room img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.room-body { padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.room h3 { font-size: 22px; }
.room p { color: var(--muted); font-size: 14.5px; margin: 0; }
.room dl { margin: auto 0 0; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.room dl div { display: flex; justify-content: space-between; font-size: 14px; }
.room dt { color: var(--muted); }
.room dd { margin: 0; color: var(--gold-hi); font-family: var(--serif); }
.visit-grid { display: grid; gap: 56px; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: 7fr 5fr; gap: 80px; align-items: end; } }
.visit h2 { font-size: clamp(30px, 4.6vw, 52px); margin-bottom: 20px; }
.visit-info { border-top: 1px solid var(--line-strong); padding-top: 28px; }
.visit-info address { margin-bottom: 20px; }
@media (max-width: 799px) {
  .space-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .space-row::-webkit-scrollbar { display: none; }
  .space-row .space { flex: 0 0 68%; scroll-snap-align: start; }
  .compact-space .cs-intro { margin-bottom: 40px; }
  .room-cards { gap: 16px; }
  .room-body { padding: 20px 20px 18px; }
  .page-home .section.compact-space, .page-home #rooms, .page-home .visit, .page-home #faq { padding: 80px 0; }
}
