/* 곁 구월점 — 방명록 벽
   하트시그널 키오스크와 같은 세계: 갈색빛 검정 나무 벽, 크림 종이, 앰버 조명, 놋쇠 레일, 빈 잔 라인아트.
   그 위에 손님 사진과 한 줄이 테이프로 붙어 있는 매장 메모 벽. */

:root {
  --wall: #120d09;
  --wall-2: #1a130e;
  --plank: #2a2018;
  --wood: #5a4130;
  --wood-dark: #241810;
  --slate: #1c1e1b;
  --slate-edge: #121411;
  --chalk: #f1ece2;
  --chalk-dim: #c9c2b4;
  --paper: #f4ede2;
  --paper-2: #ebe1d1;
  --ink: #2b2118;
  --ink-soft: #574737;
  --cream: #f7f1e8;
  --cream-dim: #d9cebd;
  --amber: #de9842;
  --amber-soft: #eab984;
  --amber-deep: #9b6a2e;
  --tape: rgba(232, 214, 176, 0.78);
  --hand: 'Nanum Pen Script', 'Gowun Batang', serif; /* 분필 — 어두운 벽과 칠판 위 */
  --pen: 'Gaegu', 'Nanum Pen Script', serif; /* 볼펜 — 종이 위 (한글 자간이 넓어 좁혀 쓴다) */
  --pen-track: -0.04em;
  --poster: 'Black Han Sans', 'Pretendard', sans-serif;
  --serif: 'Gowun Batang', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; background-color: var(--wall); }
body { min-height: 100vh; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--wall);
  /* 나무 벽 결 — 아주 옅은 세로 판재 + 필름 그레인 */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.9' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.24 0 0 0 0 0.15 0 0 0 0.10 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(120% 1400px at 50% 0%, #241810 0%, var(--wall) 60%);
  background-repeat: repeat, no-repeat;
  background-attachment: scroll;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--amber); color: var(--wall); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
html { scrollbar-color: var(--wood) var(--wall); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--wall); }
::-webkit-scrollbar-thumb { background: var(--wood); border-radius: 10px; border: 2px solid var(--wall); }

a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
img { display: block; max-width: 100%; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── 놋쇠 레일 ── */
.rail {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber-deep) 12%, #f3dcb2 50%, var(--amber-deep) 88%, transparent);
  opacity: 0.85;
}

/* ── 상단 내비 ── */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 30;
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  background: rgba(18, 13, 9, 0.82);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px var(--gutter);
  max-width: 1440px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.brand__mark { font-family: var(--poster); font-size: 26px; color: var(--amber); line-height: 1; }
.brand__branch { font-family: var(--serif); font-size: 15px; color: var(--cream-dim); }
.nav__links { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a {
  padding: 8px 12px;
  font-size: 15px;
  color: var(--cream-dim);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
  transition: color 0.2s, background-color 0.2s;
}
.nav__links a:hover { color: var(--cream); background: rgba(222, 152, 66, 0.12); }
.nav__call {
  white-space: nowrap;
  padding: 9px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--wall);
  background: var(--amber);
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.2s;
}
.nav__call:hover { background: var(--amber-soft); }
@media (max-width: 760px) {
  .nav__inner { gap: 12px; flex-wrap: wrap; }
  .nav__links { order: 3; width: 100%; margin-left: 0; }
  .nav__call { margin-left: auto; }
}

/* ── 공용: 섹션 머리 ── */
.wall { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-block: clamp(56px, 7vw, 104px) clamp(32px, 4vw, 56px); }
.section__head { display: flex; align-items: flex-end; gap: 18px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section__glass { width: 34px; height: 52px; flex: none; }
.section__title {
  margin: 0;
  font-family: var(--hand);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1;
  color: var(--chalk);
  letter-spacing: 0;
}
.section__lede { margin: 0 0 6px; max-width: 46ch; color: var(--cream-dim); font-size: 16px; }

/* ── 첫 화면: 칠판 + 붙은 사진들 ── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding-block: clamp(28px, 5vw, 64px) clamp(56px, 7vw, 96px);
  min-height: calc(100svh - 70px);
}
.board {
  position: relative;
  padding: clamp(28px, 4.4vw, 60px) clamp(24px, 4vw, 56px) clamp(26px, 3.6vw, 48px);
  /* 칠판 판(래스터) + 매장 바 카운터 나무로 짠 틀 */
  background: var(--slate) url('../img/plate-slate.webp') center / cover no-repeat;
  border: 14px solid transparent;
  border-image: url('../img/plate-wood.webp') 40 round;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.75), inset 0 0 50px rgba(0, 0, 0, 0.5);
  color: var(--chalk);
}
.board__ledge {
  position: absolute;
  left: -20px;
  right: -20px;
  bottom: -30px;
  height: 16px;
  background: #3a2a1c url('../img/plate-wood.webp') left center / auto 160% repeat-x;
  box-shadow: inset 0 2px 0 rgba(255, 220, 170, 0.12), 0 10px 18px -8px rgba(0, 0, 0, 0.8);
}
@media (max-width: 600px) { .board { background-image: url('../img/plate-slate-tall.webp'); } }
.board__sign { margin: clamp(14px, 2vw, 22px) 0 0; font-family: var(--hand); font-size: clamp(1.5rem, 2.1vw, 1.9rem); color: var(--amber-soft); text-align: right; }
.board h1 {
  margin: 0;
  font-family: var(--hand);
  font-weight: 400;
  font-size: clamp(3.4rem, 7.2vw, 6rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}
.board h1 em { font-style: normal; color: var(--amber-soft); }
.board__lines { list-style: none; padding: 0; margin: clamp(22px, 3vw, 34px) 0 0; display: grid; gap: 6px; font-family: var(--hand); font-size: clamp(1.45rem, 2vw, 1.85rem); line-height: 1.25; color: var(--chalk); }
.board__lines li { display: flex; gap: 12px; align-items: baseline; }
.board__lines li::before { content: ''; flex: none; width: 14px; height: 2px; margin-top: 0.62em; background: var(--chalk-dim); border-radius: 2px; transform: rotate(-8deg); }
.board__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: clamp(24px, 3vw, 34px); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background-color 0.2s, color 0.2s, box-shadow 0.25s;
}
.btn svg { width: 18px; height: 18px; }
.btn--amber { background: var(--amber); color: var(--wall); box-shadow: 0 10px 24px -10px rgba(222, 152, 66, 0.7); }
.btn--amber:hover { background: var(--amber-soft); transform: translateY(-2px); }
.btn--line { color: var(--chalk); border: 1.5px solid rgba(241, 236, 226, 0.55); }
.btn--line:hover { border-color: var(--chalk); transform: translateY(-2px); }

.collage { position: relative; aspect-ratio: 1 / 1.06; width: 100%; max-width: 640px; justify-self: center; }
.collage .pin { position: absolute; }
.collage .pin:nth-child(1) { left: 2%; top: 3%; width: 54%; --r: -4deg; z-index: 3; }
.collage .pin:nth-child(2) { right: 0; top: 0; width: 44%; --r: 5deg; z-index: 2; }
.collage .pin:nth-child(3) { left: 33%; top: 41%; width: 42%; --r: 2.5deg; z-index: 4; }
.collage .pin:nth-child(4) { right: 2%; bottom: 2%; width: 34%; --r: -6deg; z-index: 5; }
.collage .pin:nth-child(5) { left: 0; bottom: 0; width: 36%; --r: 6deg; z-index: 2; }
.score-note {
  position: absolute;
  right: 6%;
  top: 44%;
  z-index: 6;
  width: 150px;
  padding: 14px 14px 12px;
  background: #f2d38f;
  color: var(--ink);
  transform: rotate(7deg);
  box-shadow: 0 14px 24px -12px rgba(0, 0, 0, 0.7);
  font-family: var(--hand);
  line-height: 1.05;
  text-align: center;
}
.score-note b { display: block; font-family: var(--poster); font-weight: 400; font-size: 40px; letter-spacing: -0.01em; }
.score-note span { font-size: 22px; }
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .collage { max-width: 560px; }
}

/* ── 테이프로 붙인 사진 ── */
.pin {
  --r: 0deg;
  margin: 0;
  padding: 10px 10px 0;
  background: var(--paper);
  color: var(--ink);
  transform: rotate(var(--r));
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25), 0 16px 28px -14px rgba(0, 0, 0, 0.8);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.pin::before {
  /* 마스킹 테이프 — 찢긴 양 끝 */
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  width: var(--tw, 92px);
  height: 26px;
  transform: translateX(calc(-50% + var(--tx, 0px))) rotate(calc(var(--r) * -1.6 + var(--tt, 2deg)));
  background: rgb(var(--tc, 232 214 176) / 0.8);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 26' preserveAspectRatio='none'%3E%3Cpath d='M3 1 L7 3 L4 6 L8 9 L3 12 L7 15 L4 18 L8 21 L4 25 L88 25 L85 22 L89 19 L85 16 L90 13 L85 10 L89 7 L85 4 L89 1 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 26' preserveAspectRatio='none'%3E%3Cpath d='M3 1 L7 3 L4 6 L8 9 L3 12 L7 15 L4 18 L8 21 L4 25 L88 25 L85 22 L89 19 L85 16 L90 13 L85 10 L89 7 L85 4 L89 1 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  z-index: 2;
}
.pin { position: relative; }
.pin img { width: 100%; background: #2a2018; }
.pin figcaption { padding: 8px 2px 10px; font-family: var(--pen); letter-spacing: var(--pen-track); font-size: clamp(19px, 1.6vw, 22px); line-height: 1.1; color: var(--ink); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; align-items: baseline; }
.pin figcaption small { font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pin button { all: unset; display: block; width: 100%; cursor: zoom-in; }
.pin button:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.pin:hover { transform: rotate(0deg) translateY(-6px) scale(1.02); box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2), 0 30px 44px -18px rgba(0, 0, 0, 0.85); z-index: 10; }

/* 시그니처: 벽에 붙는 순간 — 살짝 들린 채 들어와 흔들리며 자리 잡는다 (JS가 있을 때만) */
.js .pin.is-pending { opacity: 0; transform: rotate(calc(var(--r) * 2.4)) translateY(-26px) scale(1.04); }
.js .pin.is-placed { animation: settle 0.9s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes settle {
  0% { opacity: 0; transform: rotate(calc(var(--r) * 2.4)) translateY(-26px) scale(1.04); box-shadow: 0 40px 50px -20px rgba(0, 0, 0, 0.6); }
  55% { opacity: 1; transform: rotate(calc(var(--r) * -0.6)) translateY(2px) scale(1); }
  78% { transform: rotate(calc(var(--r) * 1.25)) translateY(0); }
  100% { opacity: 1; transform: rotate(var(--r)); }
}
@media (prefers-reduced-motion: reduce) {
  .js .pin.is-pending { opacity: 1; transform: rotate(var(--r)); }
  .js .pin.is-placed { animation: none; }
  .pin, .pin:hover { transition: none; }
}

/* ── 사장님 편지 ── */
.letter-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.letter {
  position: relative;
  padding: clamp(28px, 4vw, 52px) clamp(24px, 4vw, 52px);
  background: var(--paper);
  background-image: repeating-linear-gradient(180deg, transparent 0 37px, rgba(109, 92, 75, 0.18) 37px 38px);
  background-position: 0 22px;
  color: var(--ink);
  transform: rotate(-1.2deg);
  box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.85);
  font-family: var(--pen);
  letter-spacing: var(--pen-track);
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  line-height: 38px;
}
@media (min-width: 901px) { .letter { position: sticky; top: 110px; } }
.letter p { margin: 0 0 38px; }
.letter p:last-of-type { margin-bottom: 0; }
.letter__sign { margin-top: 24px; text-align: right; color: #7a521f; font-weight: 700; }
.letter::before { content: ''; position: absolute; top: -12px; left: 40px; width: 110px; height: 26px; background: var(--tape); transform: rotate(-4deg); }
.letter-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 34px); padding-top: 10px; }
.letter-photos .pin:nth-child(1) { --r: 3deg; }
.letter-photos .pin:nth-child(2) { --r: -3.5deg; margin-top: 48px; }
.letter-photos .pin:nth-child(3) { --r: -2deg; }
.letter-photos .pin:nth-child(4) { --r: 4deg; margin-top: 48px; }
@media (max-width: 900px) { .letter-wrap { grid-template-columns: 1fr; } }

/* ── 손님들이 남긴 말 ── */
.tally { display: flex; flex-wrap: wrap; gap: 14px 18px; margin: 0 0 clamp(40px, 5vw, 64px); padding: 0; list-style: none; }
.tally li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 18px 10px;
  border: 1.5px dashed rgba(241, 236, 226, 0.28);
  border-radius: 14px;
  font-family: var(--hand);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--chalk);
}
.tally b { font-family: var(--poster); font-weight: 400; font-size: 1.15rem; color: var(--amber); font-variant-numeric: tabular-nums; }
.notes { columns: 4 260px; column-gap: clamp(18px, 2.4vw, 30px); }
.note {
  --r: 0deg;
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  position: relative;
  margin: 0 0 clamp(22px, 2.6vw, 34px);
  padding: 22px 22px 16px;
  background: var(--paper);
  color: var(--ink);
  transform: rotate(var(--r));
  box-shadow: 0 18px 28px -16px rgba(0, 0, 0, 0.85);
}
.note:nth-child(3n + 2) { background: #f2d38f; }
.note:nth-child(4n + 3) { background: var(--paper-2); }
.note::before {
  /* 놋쇠 압정 */
  content: '';
  position: absolute;
  top: -7px;
  left: calc(50% - 8px);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff2cf, var(--tack, var(--amber)) 45%, #3e2a12 100%);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.5);
}
.note blockquote { margin: 0; font-family: var(--pen); font-size: 1.32rem; line-height: 1.38; letter-spacing: var(--pen-track); }
.note figcaption { margin-top: 12px; font-size: 12.5px; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 10px; }
.note figcaption a { color: var(--ink-soft); display: inline-flex; align-items: center; min-height: 28px; padding: 0 6px; margin: -6px -6px -6px 0; }

/* ── 사진 벽 ── */
.board-wall { columns: 4 160px; column-gap: clamp(16px, 2.2vw, 28px); }
.board-wall .pin { display: inline-block; width: 100%; break-inside: avoid; margin: 0 0 clamp(26px, 3vw, 40px); }
details.more { margin-top: 10px; }
details.more summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px 14px 40px;
  background: #c9a575;
  color: var(--ink);
  font-family: var(--pen);
  font-size: 1.25rem;
  font-weight: 700;
  /* 끈 구멍이 난 크라프트 꼬리표 */
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 18px 100%, 0 50%);
  transform: rotate(-1.5deg);
  box-shadow: 0 10px 18px -10px rgba(0, 0, 0, 0.8);
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
details.more summary::before { content: ''; position: absolute; left: 20px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--wall); }
details.more summary::-webkit-details-marker { display: none; }
details.more summary:hover { background: #d8b787; transform: rotate(0deg) translateY(-2px); }
details.more[open] summary { margin-bottom: 36px; }
details.more[open] .more__label-closed, details.more:not([open]) .more__label-open { display: none; }

/* ── 하트시그널 ── */
.signal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(40px, 5vw, 72px) 0;
  /* 백바 한 칸 — 위아래 놋쇠 레일, 안쪽은 앰버 조명이 번지는 어두운 판 */
  background: radial-gradient(closest-side at 75% 55%, rgba(222, 152, 66, 0.16), transparent);
}
.signal::before, .signal::after {
  content: '';
  position: absolute;
  left: calc(var(--gutter) * -1);
  right: calc(var(--gutter) * -1);
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--amber-deep) 10%, #f3dcb2 50%, var(--amber-deep) 90%, transparent);
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.7);
}
.signal::before { top: 0; }
.signal::after { bottom: 0; }
.signal__title { margin: 0; font-family: var(--poster); font-weight: 400; font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.08; letter-spacing: -0.01em; color: var(--cream); text-wrap: balance; }
.signal__title span { color: var(--amber); }
.signal p { color: var(--cream-dim); max-width: 46ch; }
.signal ol { margin: 22px 0 28px; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: s; }
.signal ol li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: baseline; color: var(--cream); }
.signal ol li::before { content: counter(s); font-family: var(--hand); font-size: 1.8rem; color: var(--amber); line-height: 1; }
.signal__shelf { width: 100%; height: auto; }
.signal__note { margin-top: 14px; font-size: 14px; color: var(--cream-dim); }
@media (max-width: 900px) { .signal { grid-template-columns: 1fr; } }

/* ── 오는 길 ── */
.way { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding-bottom: 30px; }
.steps li::after { content: ''; position: absolute; left: 25px; top: 46px; bottom: 6px; width: 2px; background: repeating-linear-gradient(180deg, var(--amber-deep) 0 6px, transparent 6px 12px); }
.steps li:last-child::after { display: none; }
.steps__dot { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--wall-2); border: 1.5px solid var(--amber-deep); font-family: var(--hand); font-size: 1.9rem; color: var(--amber); line-height: 1; }
.steps h3 { margin: 6px 0 4px; font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--cream); }
.steps p { margin: 0; color: var(--cream-dim); }
.facts {
  padding: clamp(24px, 3vw, 36px);
  background: var(--paper);
  color: var(--ink);
  transform: rotate(1deg);
  box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.85);
}
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; }
.facts dt { font-family: var(--pen); font-weight: 700; font-size: 1.5rem; line-height: 1.2; color: var(--amber-deep); }
.facts dd { margin: 0; font-size: 16px; line-height: 1.55; }
.facts dd a { font-weight: 700; }
.facts__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.facts__chips span { padding: 3px 10px; border-radius: 999px; background: rgba(155, 106, 46, 0.12); font-size: 13.5px; }
.facts__buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.facts .btn--line { color: var(--ink); border-color: rgba(43, 33, 24, 0.4); }
.facts .btn--line:hover { border-color: var(--ink); }
.way__quote { margin-top: 26px; font-family: var(--hand); font-size: 1.7rem; line-height: 1.25; color: var(--chalk); }
.way__quote small { display: block; margin-top: 6px; font-family: var(--sans); font-size: 13px; color: var(--cream-dim); }
@media (max-width: 900px) { .way { grid-template-columns: 1fr; } .facts { transform: none; } }

/* ── 마감 선반 ── */
.closing { padding-block: clamp(80px, 10vw, 140px) 40px; text-align: center; }
.closing__shelf { display: block; width: min(100%, 980px); margin: 0 auto 36px; height: auto; }
.closing__line { margin: 0; font-family: var(--hand); font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; color: var(--chalk); }
.closing__line em { font-style: normal; color: var(--amber-soft); }
.footer { padding: 40px var(--gutter) calc(48px + env(safe-area-inset-bottom, 0px)); max-width: 1100px; margin: 0 auto; color: var(--cream-dim); font-size: 13.5px; line-height: 1.7; text-align: center; }
.footer p { margin: 6px 0; }

/* ── 사진 크게 보기 ── */
dialog.viewer {
  width: min(96vw, 1100px);
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  overflow: visible;
}
dialog.viewer::backdrop { background: rgba(8, 6, 4, 0.9); backdrop-filter: blur(6px); }
.viewer__frame { margin: 0; display: grid; gap: 12px; justify-items: center; }
.viewer__frame img { max-height: 78vh; width: auto; max-width: 100%; background: var(--paper); padding: 12px; box-shadow: 0 40px 80px -30px #000; }
.viewer__frame figcaption { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; justify-content: center; font-size: 14px; color: var(--cream-dim); }
.viewer__frame figcaption b { font-family: var(--hand); font-weight: 400; font-size: 1.7rem; color: var(--chalk); }
.viewer__btn { position: fixed; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(241, 236, 226, 0.4); background: rgba(18, 13, 9, 0.7); color: var(--chalk); display: grid; place-items: center; cursor: pointer; }
.viewer__btn:hover { border-color: var(--amber); color: var(--amber); }
.viewer__btn svg { width: 22px; height: 22px; }
.viewer__prev { left: max(12px, 2vw); }
.viewer__next { right: max(12px, 2vw); }
.viewer__close { top: max(14px, 3vh); right: max(12px, 2vw); transform: none; }
@media (max-width: 640px) { .viewer__prev, .viewer__next { top: auto; bottom: 18px; transform: none; } }

/* ── 자주 묻는 것 ── */
.faq { margin-top: clamp(48px, 6vw, 80px); max-width: 860px; }
.faq__title { margin: 0 0 14px; font-family: var(--hand); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1.1; color: var(--chalk); }
.faq__item { border-top: 1px solid rgba(241, 236, 226, 0.14); }
.faq__item:last-child { border-bottom: 1px solid rgba(241, 236, 226, 0.14); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 2px; font-family: var(--serif); font-size: 1.12rem; font-weight: 700; color: var(--cream); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '';
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  background: var(--amber);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.25s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0 0 20px; color: var(--cream-dim); max-width: 62ch; }
.closing__actions { justify-content: center; margin-top: 30px; }

/* ── 작은 화면: 첫 사진 묶음은 겹치지 않게 두 줄로 ── */
@media (max-width: 600px) {
  .hero { gap: 40px; padding-top: 20px; }
  .board { border-width: 10px; }
  .signal { padding-inline: 0; }
  .board__actions .btn { padding: 12px 18px; font-size: 15px; }
  .collage { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .collage .pin:nth-child(n) { position: relative; inset: auto; width: auto; }
  .collage .pin:nth-child(1) { grid-column: 1 / -1; }
  .score-note { position: absolute; right: -4px; top: -18px; width: 120px; padding: 10px; }
  .score-note b { font-size: 30px; }
  .score-note span { font-size: 18px; }
  .tally { gap: 10px; }
  .tally li { font-size: 1.4rem; padding: 10px 14px 8px; }
  .board-wall { column-gap: 14px; }
  .pin { padding: 7px 7px 0; }
  .pin::before { width: 64px; height: 20px; top: -9px; }
}

.note:nth-child(4n + 2) { --tack: #b2463a; }
.note:nth-child(5n + 4) { --tack: #d9cbb0; }

/* 촛불처럼 번지는 앰버 빛 — 섹션마다 제목 쪽에서 */
.section { position: relative; isolation: isolate; }
.section::before { content: ''; position: absolute; z-index: -1; left: -10%; top: 0; width: 60%; height: 520px; background: radial-gradient(closest-side, rgba(222, 152, 66, 0.10), transparent); pointer-events: none; }

.pin figcaption small a { color: inherit; text-decoration-color: rgba(87, 71, 55, 0.35); }
.pin figcaption small a:hover { text-decoration-color: currentColor; }

.footer__en { max-width: 70ch; margin-inline: auto; opacity: 0.8; }

/* ── 휴대폰: 엄지로 쓰는 홈페이지 ──
   아래 고정 바(전화·길찾기·톡톡), 한 줄 머리, 후기와 사진 벽은 옆으로 밀어 보기 */
.dock, .swipe-hint { display: none; }
@media (max-width: 720px) {
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  .nav__inner { flex-wrap: nowrap; gap: 12px; padding-block: 10px; }
  .nav__call { display: none; }
  .nav__links {
    order: 0; width: auto; flex: 1 1 auto; min-width: 0; margin-left: 4px;
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
    mask-image: linear-gradient(90deg, #000 82%, transparent);
  }
  .nav__links a { padding: 10px 11px; font-size: 15px; }
  .brand__branch { font-size: 13px; }
  .hero { padding-top: 14px; min-height: 0; }
  .hero .board__actions { display: none; } /* 전화·길찾기는 아래 고정 바로 */
  .board { padding: 26px 22px 24px; }
  .board h1 { font-size: clamp(2.9rem, 13vw, 3.6rem); }
  .board__lines { font-size: 1.32rem; margin-top: 18px; }
  .board__sign { margin-top: 10px; font-size: 1.3rem; }
  .section { padding-block: 52px 28px; }
  .section__head { margin-bottom: 18px; gap: 12px; }
  .section__lede { font-size: 15px; }

  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(18, 13, 9, 0.94);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 -1px 0 rgba(243, 220, 178, 0.18), 0 -12px 30px -12px rgba(0, 0, 0, 0.8);
  }
  .dock a {
    min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 14px; border: 1.5px solid rgba(241, 236, 226, 0.28);
    color: var(--chalk); font-size: 15px; font-weight: 700; text-decoration: none;
  }
  .dock a svg { width: 18px; height: 18px; flex: none; }
  .dock .dock__main { background: var(--amber); border-color: var(--amber); color: var(--wall); }
  .dock a:active { transform: scale(0.97); }

  .swipe-hint {
    display: flex; align-items: center; gap: 8px; margin: 0 0 4px;
    font-family: var(--hand); font-size: 1.3rem; line-height: 1; color: var(--chalk-dim);
  }
  .swipe-hint::after { content: ''; width: 28px; height: 1.5px; background: currentColor; -webkit-mask: linear-gradient(90deg, #000 70%, transparent); mask: linear-gradient(90deg, #000 70%, transparent); }

  /* 옆으로 밀어 보는 줄 — 사진 벽·후기·키워드 */
  .board-wall, .notes, .tally {
    display: flex; align-items: flex-start; gap: 14px;
    columns: auto; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding: 22px var(--gutter) 26px;
    scrollbar-width: none;
  }
  .board-wall::-webkit-scrollbar, .notes::-webkit-scrollbar, .tally::-webkit-scrollbar { display: none; }
  .board-wall .pin { flex: 0 0 64vw; width: auto; margin: 0; scroll-snap-align: start; }
  .notes .note { flex: 0 0 80vw; width: auto; margin: 0; scroll-snap-align: start; }
  .tally { padding-block: 4px 10px; margin-bottom: 18px; flex-wrap: nowrap; }
  .tally li { flex: none; }
  details.more { margin-top: 4px; }
  details.more[open] summary { margin-bottom: 4px; }
  .letter { font-size: 1.25rem; line-height: 34px; background-size: auto; }
  .letter p { margin-bottom: 34px; }
  .letter-photos { gap: 14px; }
  .letter-photos .pin:nth-child(2), .letter-photos .pin:nth-child(4) { margin-top: 28px; }
  .closing { padding-block: 64px 24px; }
  .closing__actions { display: none; } /* 아래 고정 바와 겹친다 */
  .footer { padding-bottom: 28px; }
}
@media (max-width: 380px) {
  .brand__branch { display: none; }
}
/* 기울어진 사진이 화면 옆으로 삐져나와 가로 스크롤이 생기지 않게 (sticky 머리는 그대로 동작하는 clip) */
main { overflow-x: clip; }

/* ── 사장님 고민상담 — 사진 한 장 + 예약 쪽지 ── */
.counsel { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.counsel__photo { max-width: 420px; justify-self: center; }
.counsel__photo img { aspect-ratio: 9 / 16; object-fit: cover; }
.counsel__lead { margin: 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.75; color: var(--cream); max-width: 40ch; }
.counsel__facts { list-style: none; padding: 0; margin: 22px 0 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.counsel__facts li { padding: 8px 14px 7px; border: 1.5px dashed rgba(241, 236, 226, 0.3); border-radius: 12px; font-size: 15px; color: var(--cream-dim); }
.counsel__facts b { color: var(--amber-soft); font-weight: 700; }

.booking {
  position: relative; display: grid; gap: 16px;
  padding: clamp(26px, 3.4vw, 40px); background: var(--paper); color: var(--ink);
  transform: rotate(0.6deg); box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.85);
}
.booking::before { content: ''; position: absolute; top: -13px; left: 50%; width: 120px; height: 28px; transform: translateX(-50%) rotate(-2deg); background: var(--tape); }
.booking__title { margin: 0 0 4px; font-family: var(--pen); font-weight: 700; font-size: 1.7rem; letter-spacing: -0.03em; color: var(--amber-deep); }
.booking__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field span { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--ink);
  background: rgba(255, 255, 255, 0.55); border: 1.5px solid rgba(43, 33, 24, 0.25); border-radius: 10px;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--amber-deep); outline-offset: 1px; border-color: transparent; }
.field [aria-invalid="true"] { border-color: #b8473a; }
.booking__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.booking__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 600; cursor: pointer; }
.booking__consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--amber-deep); flex: none; }
.booking__terms { font-size: 13.5px; color: var(--ink-soft); margin-top: -8px; }
.booking__terms summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; width: max-content; }
.booking__terms p { margin: 8px 0 0; line-height: 1.6; }
.booking__submit { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.booking__submit[disabled] { opacity: 0.55; cursor: progress; }
.booking__msg { margin: 0; font-size: 15px; line-height: 1.6; font-weight: 600; min-height: 1px; }
.booking__msg.is-ok { color: #2f6b3a; }
.booking__msg.is-err { color: #b8473a; }
.booking.is-done .booking__row, .booking.is-done .field, .booking.is-done .booking__consent, .booking.is-done .booking__terms, .booking.is-done .booking__submit { display: none; }
@media (max-width: 900px) {
  .counsel { grid-template-columns: minmax(0, 1fr); }
  .counsel__photo { max-width: 340px; }
  .booking { transform: none; }
}
.counsel__dm { margin: -10px 0 24px; font-size: 15px; color: var(--cream-dim); }
.counsel__dm a { color: var(--amber-soft); font-weight: 700; }

/* 신청서 칩 — 고민 주제·대화 방식·기분 */
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chips legend { width: 100%; margin-bottom: 8px; padding: 0; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1.5px solid rgba(43, 33, 24, 0.25); border-radius: 999px; font-size: 15px; background: rgba(255, 255, 255, 0.45); transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chips input:focus-visible + span { outline: 2px solid var(--amber-deep); outline-offset: 2px; }
.booking__done { display: grid; gap: 14px; }
.booking__done[hidden] { display: none; }
.booking__done img { width: 100%; height: auto; box-shadow: 0 18px 30px -16px rgba(0, 0, 0, 0.7); }
.booking__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.booking__actions .btn--line { color: var(--ink); border-color: rgba(43, 33, 24, 0.4); background: none; cursor: pointer; font-family: inherit; }
.booking__tip { margin: 0; font-size: 14px; color: var(--ink-soft); }
.booking.is-done .chips { display: none; }

/* 상담 칸 v2 — 위: 사장님 소개 / 아래: 신청서 쓰기 + 실시간 미리보기 */
.counsel { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 64px); }
.counsel__intro { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.counsel__photo { max-width: 280px; justify-self: start; }
.counsel__work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: clamp(28px, 4vw, 52px); align-items: start; }
.preview { position: sticky; top: 92px; display: grid; gap: 14px; }
.preview__label { margin: 0; font-family: var(--hand); font-size: 1.6rem; line-height: 1; color: var(--chalk); }
.preview canvas { display: block; width: 100%; height: auto; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.85); }
.preview .booking__actions .btn--line { color: var(--chalk); border-color: rgba(241, 236, 226, 0.45); }
.preview .booking__tip { color: var(--cream-dim); }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 2px; }
.suggest button { min-height: 34px; padding: 5px 12px; border: 1.5px dashed rgba(43, 33, 24, 0.3); border-radius: 999px; background: none; font: inherit; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; }
.suggest button:hover { border-style: solid; color: var(--ink); }
.booking.is-done .suggest, .booking.is-done .booking__title { display: none; }
@media (max-width: 900px) {
  .counsel__intro { grid-template-columns: minmax(0, 1fr); }
  .counsel__photo { max-width: 240px; justify-self: center; }
  .counsel__work { grid-template-columns: minmax(0, 1fr); }
  .preview { position: static; }
}
.booking__jump { display: none; margin-left: 10px; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--amber-deep); }
@media (max-width: 900px) { .booking__jump { display: inline; } }
.counsel__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.counsel-page { padding-top: clamp(36px, 5vw, 64px); }
.counsel-page .section__title { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
@media (max-width: 900px) { .counsel-page .counsel__photo { max-width: 170px; } .counsel-page .counsel__intro { gap: 20px; } }
