/* ============================================================
   리리키친 — style.css
   초림재 홈페이지의 디자인 언어(세리프 대제목, 리넨·먹색 구간 교차,
   얇은 선의 정보 표, 사진 위 캡션, 자동 전환 첫 화면)를
   리리키친의 흰 바탕·한글 중심으로 옮겨 온 구성.
   흰색·리넨·먹색 구간이 의도적으로 고정된 단일 테마 — 다크 모드 없음.
   ============================================================ */
:root {
  --paper: #ffffff;
  --linen: #F5F2EB;
  --linen-2: #EAE5DA;
  --ink: #080909;
  --ink-2: #1d1e1e;
  --text: #1a1a1a;
  --text-2: #4a4744;
  --mute: #6e6a64;
  --line: rgba(8, 9, 9, .13);
  --line-strong: rgba(8, 9, 9, .85);
  --on-ink: #F5F2EB;
  --on-ink-2: rgba(245, 242, 235, .7);
  --line-ink: rgba(245, 242, 235, .16);
  --terra: #8C382A;   /* 적갈색 포인트 */
  --gold: #C2A27D;    /* 먹색 구간 보조 */

  --latin: 'Cormorant Garamond', 'Times New Roman', serif;
  --serif: 'Noto Serif KR', 'AppleMyungjo', serif;
  --sans: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;

  --gut: clamp(20px, 4vw, 56px);
  --hd-h: 76px;
  --sub-h: 54px;
  --bb-h: 54px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (max-width: 1023px) { :root { --hd-h: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.75;
  word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
main { display: block; outline: none; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.ink :focus-visible, .hero :focus-visible, .ft :focus-visible { outline-color: var(--gold); }

.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;
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 400; background: var(--ink); color: var(--on-ink); padding: 10px 16px; }
.skip:focus { top: calc(var(--sat) + 10px); }

.wrap {
  width: 100%; max-width: 1360px; margin-inline: auto;
  padding-left: max(var(--gut), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gut), env(safe-area-inset-right, 0px));
}

/* ---------- 구간 색 ---------- */
.linen { background: var(--linen); }
.ink { background: var(--ink); color: var(--on-ink); }
.ink .spec dt, .ink .body-lg { color: var(--on-ink-2); }

/* ---------- 타이포 ---------- */
.eyebrow {
  font-family: var(--latin); font-size: 13px; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase; color: var(--terra);
  margin-bottom: 18px;
}
.eyebrow--gold { color: var(--gold); }
.h-page { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 64px); line-height: 1.3; letter-spacing: -.02em; }
.h-display { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.8vw, 50px); line-height: 1.35; letter-spacing: -.02em; }
.h-sec { font-family: var(--serif); font-weight: 400; font-size: clamp(23px, 2.4vw, 32px); line-height: 1.4; letter-spacing: -.01em; }
.h-small { font-size: 16px; font-weight: 600; line-height: 1.5; }
.body-lg { font-size: clamp(16.5px, 1.35vw, 19px); line-height: 1.8; color: var(--text-2); }
.body { color: var(--text-2); }
.won { font-size: .84em; margin-left: 1px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500; padding-block: 6px; white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .4s var(--ease), color .3s;
}
.link-arrow:hover { background-size: 35% 1px; color: var(--terra); }
.ink .link-arrow:hover { color: var(--gold); }
.link-arrow .arr { transition: transform .4s var(--ease); }
.link-arrow:hover .arr { transform: translateX(5px); }

.btn-line, .btn-solid {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; font-size: 14.5px; font-weight: 500; letter-spacing: .06em;
  border: 1px solid transparent; white-space: nowrap;
  transition: background .3s, color .3s, border-color .3s;
}
.btn-line { border-color: currentColor; }
.btn-line:hover { color: var(--terra); }
.btn-line--light { color: var(--on-ink); border-color: rgba(245, 242, 235, .5); }
.btn-line--light:hover { color: var(--gold); border-color: var(--gold); }
.btn-line--dark { color: var(--ink); border-color: var(--line-strong); }
.btn-solid { background: var(--linen); color: var(--ink); }
.btn-solid:hover { background: var(--gold); }
.btn-solid--dark { background: var(--ink); color: var(--on-ink); }
.btn-solid--dark:hover { background: var(--terra); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 32px; }

.pending {
  display: inline-block; font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: 0; line-height: 1.5;
  color: #7a4f13; background: #fbf5e8; border: 1px dashed #d8bf8f; padding: 2px 8px; vertical-align: middle;
}

/* ---------- 사진 (초림재식 톤 플레이스홀더 + 캡션) ---------- */
.ph {
  position: relative; overflow: hidden; aspect-ratio: var(--ar, 4/3); max-width: 100%;
  --t1: #d9d1c3; --t2: #b9ad98; --tc: rgba(8, 9, 9, .42);
  background: linear-gradient(160deg, var(--t1), var(--t2) 85%);
}
.ph[data-tone="wood"]  { --t1: #7a5a3c; --t2: #2b1f15; --tc: rgba(245, 242, 235, .45); }
.ph[data-tone="stone"] { --t1: #8d8a84; --t2: #2e2d2b; --tc: rgba(245, 242, 235, .45); }
.ph[data-tone="linen"] { --t1: #ebe5da; --t2: #cfc5b3; }
.ph--fill { position: absolute; inset: 0; aspect-ratio: auto; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ph__fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 12px; text-align: center; color: var(--tc);
}
.ph:not(.is-missing) .ph__fallback { visibility: hidden; }
.ph__fallback i { font-family: var(--latin); font-style: italic; font-size: clamp(18px, 2vw, 26px); line-height: 1.2; }
.ph__name { font-size: 12.5px; letter-spacing: .04em; }
.ph__file { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 10.5px; opacity: .85; word-break: break-all; }
.ph figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; gap: 12px;
  padding: 48px 18px 14px; font-size: 12.5px; letter-spacing: .06em; color: #F5F2EB;
  background: linear-gradient(transparent, rgba(8, 9, 9, .62));
}
.ph figcaption .en { font-family: var(--latin); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: rgba(245, 242, 235, .72); }

/* ---------- 헤더 ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: var(--sat); z-index: 61; background: var(--paper); }
.page-home::before { background: transparent; }
.hd {
  position: sticky; top: var(--sat); z-index: 60;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: background .4s, color .4s, border-color .4s;
}
@supports (backdrop-filter: blur(10px)) { .hd { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); } }
.hd--overlay { position: fixed; left: 0; right: 0; top: 0; padding-top: var(--sat); }
.js .hd--overlay:not(.solid):not(.is-open) { background: transparent; color: var(--on-ink); border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.hd--ink { background: rgba(8, 9, 9, .92); color: var(--on-ink); border-color: var(--line-ink); }
.hd--ink .btn-line:hover { color: var(--gold); }
.hd__in {
  max-width: 1360px; margin-inline: auto; height: var(--hd-h);
  padding-left: max(var(--gut), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gut), env(safe-area-inset-right, 0px));
  display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: baseline; gap: 12px; min-height: 44px; align-items: center; }
.brand b { font-family: var(--serif); font-weight: 500; font-size: 20px; letter-spacing: .08em; }
.brand span { font-family: var(--latin); font-size: 12.5px; letter-spacing: .3em; opacity: .62; }
.brand__logo { height: 34px; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 36px; }
.nav a {
  display: inline-block; padding-block: 8px; font-size: 14.5px; font-weight: 500; letter-spacing: .04em; opacity: .78;
  background: linear-gradient(currentColor, currentColor) left calc(100% - 2px) / 0 1px no-repeat;
  transition: opacity .3s, background-size .35s var(--ease);
}
.nav a:hover { opacity: 1; background-size: 100% 1px; }
.nav a[aria-current="page"] { opacity: 1; background-size: 100% 1px; }
.hd__cta { min-height: 42px; padding: 0 20px; font-size: 13.5px; }
.hd__toggle { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; }
.hd__bars, .hd__bars::before, .hd__bars::after { position: absolute; left: 11px; width: 22px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease), opacity .2s; }
.hd__bars { top: 21px; }
.hd__bars::before, .hd__bars::after { content: ""; left: 0; }
.hd__bars::before { top: -6px; }
.hd__bars::after { top: 6px; }
.hd.is-open .hd__bars { background: transparent; }
.hd.is-open .hd__bars::before { top: 0; transform: rotate(45deg); }
.hd.is-open .hd__bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1023px) {
  .hd__cta { display: none; }
  .brand span { display: none; }
  .js .hd__toggle { display: block; margin-left: auto; }
  .js .nav {
    position: fixed; left: 0; right: 0; bottom: 0; top: calc(var(--sat) + var(--hd-h)); z-index: 59;
    background: var(--linen); color: var(--ink); overflow-y: auto; display: none;
    padding: 28px max(var(--gut), env(safe-area-inset-right, 0px)) calc(48px + var(--sab)) max(var(--gut), env(safe-area-inset-left, 0px));
  }
  .js .hd.is-open .nav { display: block; }
  .js .nav ul { flex-direction: column; gap: 0; }
  .js .nav li { border-bottom: 1px solid var(--line); }
  .js .nav a { display: block; padding: 20px 0; font-family: var(--serif); font-size: 26px; font-weight: 400; opacity: 1; background: none; }
  .js .nav a[aria-current="page"] { color: var(--terra); }
  html:not(.js) .hd__in { flex-wrap: wrap; height: auto; padding-block: 12px; gap: 6px 20px; }
  html:not(.js) .nav ul { flex-wrap: wrap; gap: 4px 20px; }
}

/* ---------- 모바일 하단 바 ---------- */
.bb { display: none; }
@media (max-width: 1023px) {
  .bb {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: var(--ink); color: var(--on-ink);
    padding: 0 env(safe-area-inset-right, 0px) var(--sab) env(safe-area-inset-left, 0px);
  }
  .bb a { position: relative; display: flex; align-items: center; justify-content: center; height: var(--bb-h); font-size: 14px; font-weight: 500; letter-spacing: .04em; }
  .bb a + a { border-left: 1px solid var(--line-ink); }
  .bb a[aria-current="page"] { color: var(--gold); }
  .bb a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 32%; right: 32%; height: 2px; background: var(--gold); }
  .ft { padding-bottom: calc(var(--bb-h) + var(--sab) + 48px) !important; }
}

/* ---------- 자동 인트로 (초림재식: 흰 화면 · 순차 등장 · 진행 바) ---------- */
.intro { display: none; }
.intro-on .intro {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; text-align: center;
  background: #fff; color: #111; padding: 40px 24px;
  animation: introOut .8s ease 2.1s forwards;   /* 스크립트가 실패해도 반드시 사라짐 */
}
.intro__line { display: grid; gap: 4px; font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 3.4vw, 38px); line-height: 1.55; letter-spacing: -.01em; }
.intro__line span { animation: introIn .9s var(--ease) both; }
.intro__line span:nth-child(2) { animation-delay: .35s; }
.intro__name { margin-top: 34px; font-family: var(--serif); font-size: 15px; letter-spacing: .5em; margin-right: -.5em; animation: introName 1s var(--ease) .8s both; }
.intro__bar { position: absolute; left: 50%; bottom: calc(10vh + var(--sab)); width: min(200px, 50vw); height: 1px; background: #e8e5df; transform: translateX(-50%); }
.intro__bar i { position: absolute; inset: 0; background: var(--terra); transform-origin: left; animation: introBar 2s ease-in-out both; }
@keyframes introIn { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes introName { from { opacity: 0; letter-spacing: .9em; } to { opacity: 1; letter-spacing: .5em; } }
@keyframes introBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes introOut { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) {
  .intro-on .intro { animation: introCut 0s linear 2s forwards; }
  .intro__line span, .intro__name, .intro__bar i { animation: none; }
  @keyframes introCut { to { opacity: 0; visibility: hidden; pointer-events: none; } }
}

/* ---------- 스크롤 등장 (스크립트가 있을 때만 숨김) ---------- */
.rv { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js-motion .rv:not(.in) { opacity: 0; transform: translateY(24px); }

/* ---------- 메인 첫 화면: 자동 전환 ---------- */
.hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; background: var(--ink); color: var(--on-ink); }
@supports (height: 100svh) { .hero { height: 100svh; } }
.hero__slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity 1.4s ease; }
.slide.is-on { opacity: 1; }
.slide .ph { transform: scale(1.06); transition: transform 7s linear; }
.slide.is-on .ph { transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 9, 9, .4), transparent 28%, transparent 45%, rgba(8, 9, 9, .72));
}
.hero__copy {
  position: absolute; z-index: 2; bottom: calc(12vh + var(--sab)); max-width: 720px;
  left: max(var(--gut), env(safe-area-inset-left, 0px)); right: max(var(--gut), env(safe-area-inset-right, 0px));
}
@media (min-width: 1440px) { .hero__copy { left: calc((100vw - 1360px) / 2 + var(--gut)); } }
.hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 10vw, 136px); line-height: 1.05; letter-spacing: .02em; }
.hero__lead { margin-top: 22px; font-size: clamp(15.5px, 1.4vw, 18px); color: rgba(245, 242, 235, .86); }
.hero__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero__ui {
  position: absolute; z-index: 3; bottom: calc(12vh + var(--sab));
  right: max(var(--gut), env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
}
@media (min-width: 1440px) { .hero__ui { right: calc((100vw - 1360px) / 2 + var(--gut)); } }
.hero__count { font-family: var(--latin); font-size: 19px; letter-spacing: .1em; color: rgba(245, 242, 235, .58); }
.hero__count b { font-weight: 400; color: var(--on-ink); }
.hero__ticks { display: flex; gap: 2px; }
.tick { width: 30px; height: 24px; position: relative; }
.tick::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1px; background: rgba(245, 242, 235, .3); transition: background .4s; }
.tick.on::before { background: var(--gold); }
.hero__cap { font-size: 12.5px; letter-spacing: .12em; color: rgba(245, 242, 235, .7); }
.hero__pause { width: 34px; height: 34px; border: 1px solid rgba(245, 242, 235, .35); display: grid; place-items: center; }
.hero__pause span { width: 8px; height: 10px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.hero__pause[aria-pressed="true"] span { width: 0; height: 0; border: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
@media (max-width: 767px) {
  .hero__copy { bottom: calc(var(--bb-h) + 92px + var(--sab)); }
  .hero__ui { left: max(var(--gut), env(safe-area-inset-left, 0px)); right: max(var(--gut), env(safe-area-inset-right, 0px)); bottom: calc(var(--bb-h) + 24px + var(--sab)); flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; }
  .hero__count { font-size: 16px; }
  .hero__cap { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .slide, .slide .ph { transition: none; transform: none; } }

/* ---------- 공통 섹션 ---------- */
.sec { padding-block: clamp(80px, 11vw, 160px); }
.sec--tight { padding-block: clamp(48px, 6vw, 80px); }
.sec--line { border-top: 1px solid var(--line); }
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head.row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.sec-head.row > div { min-width: 0; }

.split { display: grid; gap: 28px; margin-bottom: clamp(40px, 6vw, 80px); }
@media (min-width: 900px) { .split { grid-template-columns: 7fr 5fr; align-items: end; gap: 64px; } }
.split__side { display: grid; gap: 22px; justify-items: start; padding-bottom: 8px; }
.wide-photo { width: 100%; }
@media (max-width: 767px) { .wide-photo { --ar: 4/3 !important; } }

/* 정보 표 */
.spec { border-top: 1px solid var(--line-strong); }
.ink .spec { border-top-color: var(--line-ink); }
.spec > div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 16px; padding-block: 15px; border-bottom: 1px solid var(--line); }
.ink .spec > div { border-color: var(--line-ink); }
.spec dt { font-size: 14px; color: var(--mute); padding-top: 1px; }
.spec dd { font-size: 16px; font-variant-numeric: tabular-nums; }
.tel { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* 대표 메뉴 */
.feature { display: grid; gap: 36px; }
@media (min-width: 900px) { .feature { grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; } }
.feature__side { display: grid; gap: 28px; justify-items: start; min-width: 0; }
.feature__side .spec { width: 100%; }

/* 메인: 공간 */
.trio { display: grid; gap: 40px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trio li:first-child { grid-column: 1 / -1; }
.trio li:first-child .ph { --ar: 16/10 !important; }
@media (min-width: 900px) {
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trio li:first-child { grid-column: auto; }
  .trio li:first-child .ph { --ar: 4/5 !important; }
  .trio li:nth-child(2) { margin-top: 80px; }
}
.trio__t { margin-top: 16px; font-family: var(--serif); font-size: 19px; }

/* 메인: 방문 요약 */
.visit-sum, .visit-key { display: grid; gap: 40px; }
@media (min-width: 900px) { .visit-sum, .visit-key { grid-template-columns: 6fr 6fr; gap: 64px; align-items: start; } }
.addr-lg { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.55; }
.addr-sub { margin-top: 6px; color: var(--mute); font-size: 15px; }

/* ---------- 하위 페이지 머리 ---------- */
.page-head { padding-block: clamp(64px, 10vw, 140px) clamp(56px, 7vw, 96px); }
.page-head .body-lg { margin-top: 24px; }
.page-head.ink .h-page { color: var(--on-ink); }
.visit-key { margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }

/* ---------- 소개 ---------- */
.story__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .story__grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }
/* 세로 상호 — 2×2 정사각 배열: 왼쪽 줄 리·리, 오른쪽 줄 키·친 */
.story__mark {
  display: grid; grid-template-columns: repeat(2, 1em); grid-template-rows: repeat(2, 1em); grid-auto-flow: column;
  gap: .06em .1em; justify-content: start; align-content: start;
  font-family: var(--serif); font-weight: 400; color: var(--terra); line-height: 1;
  font-size: clamp(64px, 20vw, 96px);
}
.story__mark span { display: grid; place-items: center; }
@media (min-width: 900px) { .story__mark { font-size: clamp(110px, 11vw, 170px); position: sticky; top: calc(var(--sat) + var(--hd-h) + 40px); } }
.story__text { display: grid; gap: 26px; align-content: start; }
.story__text .eyebrow { margin-bottom: -6px; }
.story__rows { margin-top: 16px; border-top: 1px solid var(--line); }
.story__rows > div { display: grid; grid-template-columns: 4em minmax(0, 1fr); gap: 20px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.story__rows dt { font-family: var(--serif); color: var(--terra); font-size: 18px; }
.story__rows dd { color: var(--text-2); }
.gallery3 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery3 li:last-child { grid-column: 1 / -1; }
.gallery3 li:last-child .ph { --ar: 16/10 !important; }
@media (min-width: 900px) {
  .gallery3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .gallery3 li:last-child { grid-column: auto; }
  .gallery3 li:last-child .ph { --ar: 3/4 !important; }
}

/* 링크 띠 (초림재 help) */
.help { background: var(--ink); color: var(--on-ink); border-top: 1px solid var(--line-ink); }
.help__grid { display: grid; }
@media (min-width: 768px) { .help__grid { grid-template-columns: 1fr 1fr; } }
.help__link { position: relative; display: grid; gap: 6px; padding: clamp(36px, 5vw, 64px) 56px clamp(36px, 5vw, 64px) 0; border-bottom: 1px solid var(--line-ink); }
@media (min-width: 768px) {
  .help__link { border-bottom: 0; }
  .help__link + .help__link { padding-left: clamp(32px, 4vw, 56px); border-left: 1px solid var(--line-ink); }
}
.help__link:last-child { border-bottom: 0; }
.help__eb { font-family: var(--latin); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.help__link b { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.4vw, 30px); }
.help__arr { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; transition: transform .4s var(--ease), color .3s; }
.help__link:hover .help__arr { transform: translate(6px, -50%); color: var(--gold); }

/* ---------- 메뉴 ---------- */
.subnav {
  position: sticky; top: calc(var(--sat) + var(--hd-h)); z-index: 50;
  background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line);
}
.subnav__list {
  display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; max-width: 1360px; margin-inline: auto;
  padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px));
}
.subnav__list::-webkit-scrollbar { display: none; }
.subnav__list li { flex: none; }
.subnav a {
  display: flex; align-items: center; height: var(--sub-h); white-space: nowrap;
  font-size: 15px; font-weight: 500; color: var(--mute); border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .3s, border-color .3s;
}
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="true"] { color: var(--ink); border-color: var(--terra); }
#signature, .msec { scroll-margin-top: calc(var(--sat) + var(--hd-h) + var(--sub-h) - 1px); }

.sig { padding-block: clamp(56px, 7vw, 100px); }
.num { font-family: var(--latin); font-size: 16px; color: var(--terra); letter-spacing: .06em; padding-top: 6px; }
.msec__head { display: flex; gap: 18px; align-items: flex-start; }
.msec__head .eyebrow { margin-bottom: 8px; }
.msec__head--row { margin-bottom: clamp(32px, 4vw, 48px); }
.how ol { counter-reset: s; margin-top: 10px; display: grid; gap: 6px; }
.how li { counter-increment: s; display: grid; grid-template-columns: 1.8em 1fr; color: var(--text-2); }
.how li::before { content: counter(s, decimal-leading-zero); font-family: var(--latin); color: var(--terra); }
.how.is-pending ol { opacity: .75; }
.spec--gloss { width: 100%; }

.msec { padding-block: clamp(56px, 7vw, 100px); border-top: 1px solid var(--line); display: grid; gap: 32px; }
.msec:first-child { border-top: 0; }
@media (min-width: 1024px) {
  .msec { grid-template-columns: 3fr 9fr; gap: 48px; }
  .msec__head { position: sticky; top: calc(var(--sat) + var(--hd-h) + var(--sub-h) + 40px); align-self: start; }
}
.msec__body { min-width: 0; }
.mgroup { margin: 56px 0 16px; }
.mgroup:first-child { margin-top: 0; }

.mlist { border-top: 1px solid var(--line-strong); }
.mi { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: start; padding-block: 20px; border-bottom: 1px solid var(--line); }
@media (min-width: 600px) { .mi { grid-template-columns: 180px minmax(0, 1fr); gap: 28px; } }
@media (min-width: 1100px) { .mi { grid-template-columns: 240px minmax(0, 1fr); gap: 36px; padding-block: 24px; } }
.mi__body { min-width: 0; padding-top: 2px; }
.mi__line { display: flex; align-items: baseline; gap: 12px; }
.mi__name { font-family: var(--serif); font-size: clamp(17px, 1.5vw, 20px); font-weight: 500; min-width: 0; }
.mi__dots { flex: 1 1 24px; min-width: 16px; border-bottom: 1px dotted rgba(8, 9, 9, .3); transform: translateY(-5px); }
.mi__price { flex: none; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mi__desc { margin-top: 6px; font-size: 14.5px; line-height: 1.75; color: var(--text-2); max-width: 46ch; }
.mi__note { margin-top: 4px; font-size: 13.5px; color: var(--terra); letter-spacing: .02em; }
.mi__img .ph__fallback i { font-size: 16px; }
@media (max-width: 599px) { .mi__img .ph__file, .mi__img .ph__name { display: none; } }

.mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; border-top: 1px solid var(--line-strong); padding-top: 24px; }
@media (min-width: 600px) { .mgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 24px; } }
@media (min-width: 1100px) { .mgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mg { min-width: 0; }
.mg__name { margin-top: 14px; font-family: var(--serif); font-size: 16.5px; font-weight: 500; line-height: 1.45; }
.mg__sub { display: block; font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--mute); }
.mg__meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.mg__price { font-size: 15px; font-variant-numeric: tabular-nums; }
.mg__img .ph__name { font-size: 11.5px; }
.temp { font-family: var(--latin); font-size: 13px; letter-spacing: .14em; color: var(--terra); }

.mfoot { padding-block: clamp(56px, 7vw, 96px); }
.mfoot__in { display: grid; gap: 32px; }
@media (min-width: 900px) { .mfoot__in { grid-template-columns: 1fr auto; align-items: end; gap: 64px; } }
.mfoot__order { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); }
.mfoot__date { margin-top: 8px; font-size: 14px; color: var(--on-ink-2); }
.mfoot__next { display: grid; gap: 16px; justify-items: start; color: var(--on-ink-2); }

/* ---------- 공간 ---------- */
.page-head.ink { padding-bottom: clamp(40px, 5vw, 64px); }
.space { padding-bottom: clamp(80px, 11vw, 160px); }
.space__full { width: 100%; }
.space__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.space__a { grid-column: 1 / -1; }
.space__b { grid-column: 1 / 7; }
.space__c { grid-column: 7 / -1; }
.space__d { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .space__grid { gap: 12px; margin-top: 12px; }
  .space__a { grid-column: 1 / 8; }
  .space__b { grid-column: 8 / -1; grid-row: span 2; }
  .space__c { grid-column: 1 / 5; --ar: 4/5 !important; }
  .space__d { grid-column: 5 / 8; --ar: 3/5 !important; }
}
@media (max-width: 767px) { .space__full { --ar: 4/3 !important; } }

/* ---------- 방문 안내 ---------- */
.vm { display: grid; gap: 8px; }
@media (min-width: 900px) { .vm { grid-template-columns: 4fr 8fr; gap: 64px; } }
.vm .sec-head { margin-bottom: 24px; }
.vm__body { min-width: 0; display: grid; gap: 28px; }
.vm__map { aspect-ratio: 16 / 8; max-width: 100%; background: var(--linen); }
.vm__map--off { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; color: var(--text-2); }
@media (max-width: 599px) { .vm__map { aspect-ratio: 4 / 3; } }

.pk__lead { color: var(--text-2); }
.steps { display: grid; gap: 48px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.step__no { margin: 20px 0 4px; font-family: var(--latin); font-size: 30px; line-height: 1; color: var(--terra); }
.step__t { margin-top: 6px; font-size: 15px; color: var(--text-2); }
.pk__over { margin-top: 32px; }
.ent__cap { margin-top: 28px; }

.fac { display: grid; border-top: 1px solid var(--line-ink); }
@media (min-width: 768px) { .fac { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.fac li { display: grid; gap: 8px; align-content: start; padding-block: 22px; border-bottom: 1px solid var(--line-ink); }
.fac b { font-size: 17px; font-weight: 600; }
.fac p { color: var(--on-ink-2); font-size: 15px; }

.ask { display: grid; gap: 24px; }
@media (min-width: 900px) { .ask { grid-template-columns: 4fr 8fr; gap: 64px; } }
.ask__tel { font-family: var(--latin); font-size: clamp(34px, 4vw, 52px); line-height: 1.1; font-variant-numeric: lining-nums; }
.ask__tel a:hover { color: var(--terra); }
.ask .actions { margin-top: 20px; }

/* ---------- 푸터 (먹색) ---------- */
.ft { background: var(--ink); color: var(--on-ink-2); border-top: 1px solid var(--line-ink); padding-block: 72px 48px; font-size: 14px; }
.ft__in { display: grid; gap: 24px; }
.ft__brand { display: flex; align-items: baseline; gap: 14px; color: var(--on-ink); }
.ft__brand b { font-family: var(--serif); font-weight: 500; font-size: 20px; letter-spacing: .08em; }
.ft__brand span { font-family: var(--latin); font-size: 12.5px; letter-spacing: .3em; color: var(--on-ink-2); }
.ft__nav { display: flex; flex-wrap: wrap; gap: 6px 26px; color: var(--on-ink); }
.ft__nav a { padding-block: 6px; display: inline-block; }
.ft__nav a:hover, .ft__links a:hover { color: var(--gold); }
.ft__info { display: grid; gap: 4px; }
.ft__info div { display: flex; gap: 16px; }
.ft__info dt { flex: none; width: 4.5em; color: rgba(245, 242, 235, .45); }
.ft__info a { text-decoration: underline; text-underline-offset: 3px; }
.ft__links { display: flex; flex-wrap: wrap; gap: 6px 24px; color: var(--on-ink); }
.ft__links a { padding-block: 6px; text-decoration: underline; text-underline-offset: 3px; }
.ft__copy, .ft__biz { font-size: 12.5px; color: rgba(245, 242, 235, .45); }

/* ---------- 토스트 ---------- */
.toast {
  position: fixed; left: 50%; z-index: 120; transform: translateX(-50%); max-width: calc(100% - 32px);
  bottom: calc(28px + var(--sab)); background: var(--ink); color: var(--on-ink);
  padding: 13px 20px; font-size: 14.5px; border: 1px solid var(--line-ink);
}
@media (max-width: 1023px) { .toast { bottom: calc(var(--bb-h) + 16px + var(--sab)); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .js-motion .rv:not(.in) { opacity: 1; transform: none; }
}
@media print { .hd, .bb, .subnav, .intro, .toast, .hero__ui { display: none !important; } }

/* =========================================================
   추가: 지도·SNS 연결, 공지사항·FAQ, 메뉴 보조
   ========================================================= */
.mi__sub { margin-left: 8px; font-family: var(--sans); font-size: 13.5px; font-weight: 400; color: var(--mute); }
.mg__desc { margin-top: 4px; font-size: 13.5px; line-height: 1.6; color: var(--text-2); }

/* 헤더: 공지·FAQ 는 모바일 메뉴 안에서만 */
.nav__sub { display: none; }
@media (max-width: 1023px) {
  .js .nav .nav__sub { display: block; border-bottom: 0; }
  .js .nav .nav__sub:first-of-type { margin-top: 20px; }
  .js .nav .nav__sub a { padding: 8px 0; font-family: var(--sans); font-size: 15px; color: var(--text-2); }
}

/* 지도·SNS */
.social { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); column-gap: 32px; border-top: 1px solid var(--line-strong); }
.social__item { border-bottom: 1px solid var(--line); }
.social__item > a, .social__item.is-off { display: flex; align-items: center; gap: 16px; padding-block: 20px; min-height: 84px; }
.social__item.is-off { flex-wrap: wrap; row-gap: 6px; color: var(--mute); }
.social__item.is-off .pending { margin-left: 60px; }
.social__icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--ink); }
.social__icon svg { width: 22px; height: 22px; }
.social__icon.has-img { border: 0; }
.social__icon img { width: 44px; height: 44px; object-fit: contain; }
.social__text { display: grid; min-width: 0; }
.social__text b { font-family: var(--serif); font-weight: 500; font-size: 17px; line-height: 1.4; }
.social__en { font-family: var(--latin); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.social__arr { margin-left: auto; font-size: 18px; transition: transform .4s var(--ease), color .3s; }
.social__item a:hover .social__arr { transform: translateX(5px); color: var(--terra); }
.social__item a:hover b { color: var(--terra); }
@media (hover: hover) and (pointer: fine) { .social__item.app-only { display: none; } }
.social--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.social--compact .social__item > a { min-height: 72px; padding-block: 14px; }

.vm__img { width: 100%; }
.vm__note { color: var(--text-2); }

/* 공지사항·FAQ */
.board { max-width: 960px; }
.board__list { border-top: 1px solid var(--line-strong); }
.board__item { border-bottom: 1px solid var(--line); }
.board__item summary {
  display: grid; grid-template-columns: auto minmax(0, 1fr) 24px; gap: 8px 24px; align-items: baseline;
  padding-block: 24px; cursor: pointer; list-style: none;
}
.board__item summary::-webkit-details-marker { display: none; }
.board__meta { display: flex; align-items: center; gap: 10px; font-family: var(--latin); font-size: 16px; letter-spacing: .06em; color: var(--mute); min-width: 6.5em; }
.board__pin { font-family: var(--sans); font-size: 11.5px; letter-spacing: .04em; color: var(--paper); background: var(--terra); padding: 2px 7px; }
.board__q { font-family: var(--latin); font-size: 18px; color: var(--terra); }
.board__title { font-family: var(--serif); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; }
.board__toggle { position: relative; width: 14px; height: 14px; align-self: center; justify-self: end; }
.board__toggle::before, .board__toggle::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform .3s var(--ease); }
.board__toggle::after { transform: rotate(90deg); }
details[open] > summary .board__toggle::after { transform: rotate(0); }
.board__item summary:hover .board__title { color: var(--terra); }
.board__body { padding: 0 0 28px; color: var(--text-2); line-height: 1.85; max-width: 62ch; }
@media (min-width: 640px) { .board__body { padding-left: calc(6.5em + 24px); } .board__list--faq .board__body { padding-left: calc(2.4em + 24px); } }
@media (max-width: 639px) { .board__item summary { grid-template-columns: minmax(0, 1fr) 24px; } .board__meta, .board__q { grid-column: 1 / -1; } }
.board__empty { color: var(--mute); padding-block: 32px; border-top: 1px solid var(--line-strong); }

/* =========================================================
   줄바꿈 일관성 (2026-11-05)
   - 메뉴 이름은 어떤 화면에서도 한 줄
   - 휴대폰: 이름 한 줄 → 가격 한 줄 → 설명 (모든 메뉴 같은 모양)
   - 사진 캡션: 한 줄 고정, 사진이 좁으면 영문 캡션 숨김
   ========================================================= */
.mi__name { white-space: nowrap; }
@media (max-width: 599px) {
  .mi { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; }
  .mi__line { display: block; }
  .mi__name { display: block; font-size: clamp(15px, 4.4vw, 18px); line-height: 1.45; overflow: hidden; text-overflow: ellipsis; }
  .mi__dots { display: none; }
  .mi__price { display: block; margin-top: 4px; font-size: 15px; color: var(--terra); }
  .mi__desc { margin-top: 8px; font-size: 14px; line-height: 1.65; }
}

.ph { container-type: inline-size; }
.ph figcaption { white-space: nowrap; align-items: flex-end; }
.ph figcaption > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ph figcaption .en { flex: none; }
@container (max-width: 440px) {
  .ph figcaption { padding: 36px 12px 10px; font-size: 12px; }
  .ph figcaption .en { display: none; }
}

/* 짧은 제목·라벨은 한 줄 고정 (길면 말줄임) */
.trio__t, .help__link b, .social__text b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.help__link b { display: block; }
.social { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.social--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
@media (max-width: 599px) {
  .trio__t { font-size: 15px; }
  .help__link b { font-size: clamp(18px, 5.2vw, 22px); }
  .board__title { font-size: clamp(15.5px, 4.6vw, 18px); }
}
