:root {
  --ivory: #f4f0e6; --paper: #fbf9f3; --olive: #3b4630; --forest: #262f1f;
  --sage: #a9ad92; --sand: #d9cfb8; --brass: #8c6b3e; --ink: #24241d; --muted: #6d6b5e;
  --line: rgba(36, 36, 29, .14);
  --serif: "Cormorant Garamond", "Nanum Myeongjo", Georgia, serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: 4rem; --s6: 6rem;
  --max: 1120px; --head: 64px; --sub: 44px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font: 400 15px/1.75 var(--sans); letter-spacing: -.005em;
  word-break: keep-all; overflow-wrap: break-word;
  padding-top: calc(var(--head) + var(--sub));
}
/* keep-all은 한국어용. 띄어쓰기 없는 중국어는 문장 전체가 한 단어가 돼 칸 끝에서 강제로 잘린다 */
body:lang(zh) { word-break: normal; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 1px solid var(--brass); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- 공용 ---------- */
.wrap { width: min(100% - 2 * var(--s3), var(--max)); margin-inline: auto; }
.eyebrow { font: 500 11px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.display { font: 400 clamp(2.4rem, 6vw, 4.6rem)/1.04 var(--serif); letter-spacing: -.01em; }
.display em { font-style: italic; color: var(--olive); }
.lede { font-size: 16px; color: var(--muted); max-width: 36em; }
.rule { height: 1px; background: var(--line); border: 0; margin: var(--s4) 0; }
.btn {
  display: inline-flex; align-items: center; gap: .6em; padding: .95em 1.6em;
  background: var(--olive); color: var(--ivory);
  font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  transition: background .3s;
}
.btn:hover { background: var(--forest); }
.btn--ghost { background: transparent; color: var(--olive); box-shadow: inset 0 0 0 1px var(--olive); }
.btn--ghost:hover { background: var(--olive); color: var(--ivory); }
.seg { display: inline-flex; box-shadow: inset 0 0 0 1px var(--line); }
.seg button { padding: .7em 1.1em; font: 500 12px/1 var(--sans); letter-spacing: .14em; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--olive); color: var(--ivory); }
.field { display: grid; gap: .4rem; }
.field label { font: 500 11px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.input, .select {
  width: 100%; padding: .85em 1em; background: var(--paper); color: var(--ink);
  font: 400 16px/1.2 var(--sans); border: 1px solid var(--line); border-radius: 0; appearance: none;
}
.select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%);
  background-position: right 1.2em center, right calc(1.2em - 5px) center; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.6em; }
.input:focus, .select:focus { outline: none; border-color: var(--olive); }
.card { background: var(--paper); border: 1px solid var(--line); padding: var(--s3); }

/* 사진 자리표시: 실제 사진으로 교체할 슬롯 */
.ph {
  position: relative; display: block; width: 100%; aspect-ratio: var(--ar, 4 / 5); overflow: hidden;
  background: linear-gradient(160deg, #6f7559 0%, #3b4630 55%, #262f1f 100%);
}
.ph--2 { background: linear-gradient(170deg, #d9cfb8 0%, #b9b195 60%, #8f8a6c 100%); }
.ph--3 { background: linear-gradient(150deg, #a9ad92 0%, #6d735a 100%); }
.ph--4 { background: linear-gradient(180deg, #e9e2d0 0%, #cbbf9f 100%); }
.ph::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(251, 249, 243, .28); pointer-events: none; }
.ph > span {
  position: absolute; left: 18px; bottom: 16px; z-index: 1;
  font: 500 10px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(251, 249, 243, .85);
}
.ph--2 > span, .ph--4 > span { color: rgba(36, 36, 29, .6); }
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 헤더 ---------- */
.site-head { position: fixed; inset: 0 0 auto; z-index: 40; background: rgba(244, 240, 230, .94); backdrop-filter: blur(8px); }
.head-bar { height: var(--head); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); padding-inline: var(--s3); }
.menu-btn { display: inline-flex; align-items: center; gap: .7rem; justify-self: start; font: 500 11px/1 var(--sans); letter-spacing: .24em; }
.menu-btn i { display: grid; gap: 5px; width: 22px; }
.menu-btn i::before, .menu-btn i::after { content: ""; height: 1px; background: currentColor; }
.menu-btn i::after { width: 14px; }
.wordmark { display: block; }
.wordmark img { height: 30px; width: auto; }
.lang-mini { justify-self: end; display: flex; gap: .2rem; }
.lang-mini button, .foot-lang button { padding: .4em .5em; font: 500 11px/1 var(--sans); letter-spacing: .14em; color: var(--muted); }
.lang-mini button[aria-pressed="true"], .foot-lang button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.subnav { height: var(--sub); display: flex; justify-content: center; align-items: center; gap: clamp(1rem, 2.4vw, 2rem);
  overflow-x: auto; scrollbar-width: none; padding-inline: var(--s3); border-bottom: 1px solid var(--line); }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; font: 500 11px/1 var(--sans); letter-spacing: .2em; color: var(--muted); padding-block: .6em; border-bottom: 1px solid transparent; }
.subnav a:hover, .subnav a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }
.subnav--venue { height: 38px; background: var(--paper); }
.subnav--venue a { font-size: 10px; }

/* ---------- 드로어 ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(38, 47, 31, .45); opacity: 0; pointer-events: none; transition: opacity .4s; }
.drawer {
  position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(420px, 88vw); overflow-y: auto;
  background: var(--forest); color: var(--ivory); padding: var(--s4) var(--s4) var(--s5);
  transform: translateX(-100%); transition: transform .5s cubic-bezier(.2, .7, .1, 1);
}
.drawer-open .drawer { transform: none; }
.drawer-open .scrim { opacity: 1; pointer-events: auto; }
.drawer-close { font: 500 11px/1 var(--sans); letter-spacing: .24em; color: var(--sage); margin-bottom: var(--s4); }
.drawer .group { margin-bottom: var(--s4); }
.drawer .group > a { display: block; font: italic 400 15px/1 var(--serif); letter-spacing: .1em; color: var(--sage); margin-bottom: var(--s2); }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li > a { display: block; font: 400 30px/1.25 var(--serif); letter-spacing: .02em; padding-block: .1em; }
.drawer li > a:hover, .drawer a[aria-current="page"] { color: var(--sand); font-style: italic; }
.drawer li ul { padding: .3em 0 .6em 1.2em; border-left: 1px solid rgba(169, 173, 146, .3); margin-left: .2em; }
.drawer li ul a { font: 500 11px/2.3 var(--sans); letter-spacing: .2em; }
.drawer .contact { border-top: 1px solid rgba(169, 173, 146, .3); padding-top: var(--s3); font-size: 13px; color: var(--sage); line-height: 2; }

/* ---------- 연락 플로팅바 ---------- */
.contact-bar { position: fixed; z-index: 30; right: var(--s3); bottom: var(--s3); display: grid; background: var(--olive); box-shadow: 0 10px 30px rgba(38, 47, 31, .25); }
.contact-bar a, .contact-bar button { padding: .95em 1.2em; font: 500 10px/1 var(--sans); letter-spacing: .2em; color: var(--ivory); text-align: center; }
.contact-bar > * + * { border-top: 1px solid rgba(244, 240, 230, .16); }
.contact-bar :hover { background: var(--forest); }
@media (max-width: 720px) {
  .contact-bar { inset: auto 0 0; grid-auto-flow: column; grid-auto-columns: 1fr; box-shadow: none; }
  .contact-bar > * + * { border-top: 0; border-left: 1px solid rgba(244, 240, 230, .16); }
  .head-bar { padding-inline: var(--s2); }
  .menu-btn span { display: none; }
  .wordmark img { height: 22px; }
  .subnav { justify-content: flex-start; }
}

/* ---------- 웨딩 허브 ---------- */
.hub { padding-block: var(--s5) var(--s6); }
.hub-intro { display: grid; gap: var(--s3); margin-bottom: var(--s4); }
@media (min-width: 900px) { .hub-intro { grid-template-columns: 1.7fr 1fr; align-items: end; } }
.hub-hero { --ar: 4 / 5; }
@media (min-width: 720px) { .hub-hero { --ar: 16 / 9; } }
.hub-cta { display: flex; flex-wrap: wrap; gap: var(--s2); }
/* 릴스: 모바일은 가로 스냅 스크롤, 넓은 화면은 3열 */
.reels { margin-top: var(--s5); display: grid; grid-template-columns: 1fr auto; gap: var(--s3); justify-items: start; }
.reels > .pg-more { grid-column: 1 / -1; }
/* 스와이프 힌트: eyebrow 줄 오른쪽 끝의 점 3개, 활성 점은 site.js가 스크롤 위치로 바꾼다 */
.reel-dots { display: flex; gap: 6px; align-self: center; }
.reel-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--sand); }
.reel-dots i.on { background: var(--olive); }
.reel-row { grid-column: 1 / -1; justify-self: stretch; display: grid; grid-auto-flow: column; grid-auto-columns: 64%; gap: var(--s2); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--s3); scrollbar-width: none; margin-inline: calc(-1 * var(--s3)); padding-inline: var(--s3); }
.reel { margin: 0; scroll-snap-align: start; }
.reel video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--sand); }
.reel figcaption { margin-top: var(--s1); font: italic 400 1.15rem/1.35 var(--serif); color: var(--olive); text-wrap: balance; }
@media (min-width: 720px) {
  .reel-row { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
  .reel-dots { display: none; }
}

/* ---------- 푸터 ---------- */
.site-foot { background: var(--forest); color: var(--sage); padding: var(--s5) 0 var(--s4); font-size: 13px; }
/* 페이지 끝에서 푸터 언어 버튼(KR·EN·CN)이 떠 있는 연락 버튼(높이 59px) 밑에 깔리지 않게 푸터 아래를 그만큼 늘린다(body 여백이면 푸터 아래 아이보리 띠가 생긴다) */
@media (min-width: 721px) { .site-foot { padding-bottom: calc(var(--s4) + 59px); } }
/* 모바일은 연락 버튼이 하단 띠(높이 29px)라, 예전 body 여백 46px을 푸터로 옮겨 푸터 글자 위치는 그대로 두고 아래 아이보리 띠만 없앤다 */
@media (max-width: 720px) { .site-foot { padding-bottom: calc(var(--s4) + 46px); } }
.site-foot .wordmark { display: inline-block; margin-bottom: var(--s3); }
.site-foot .wordmark img { width: 104px; height: auto; }
.foot-grid { display: grid; gap: var(--s2); }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1fr auto; align-items: end; } }
.foot-lang button { color: var(--sage); }
.foot-lang button[aria-pressed="true"] { color: var(--ivory); }

/* ---------- 리빌 ---------- */
.fx { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .1, 1); }
.fx.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fx { opacity: 1; transform: none; transition: none; }
  .drawer, .scrim { transition: none; }
}
