/* =========================================================
   CINQ MONDES SPA & YOGA
   Palette: Espresso / Charcoal / Cashmere / Sage / Platinum / Alabaster
   ========================================================= */
:root {
  --espresso: #12110e;
  --charcoal: #272523;
  --cashmere: #a49f8f;
  --sage: #757976;
  --platinum: #c3bebb;
  --alabaster: #dfd4d3;
  --paper: #efe9e6;
  --ivory: #f7f3f0;
  --plum: #512a3b;
  --ink: #272523;
  --muted: #6f6a66;
  --line: rgba(39, 37, 35, 0.14);

  --f-kr: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --f-en: "Cormorant Garamond", "Times New Roman", serif;
  --f-head: "Gowun Batang", "Noto Serif KR", serif;
  --f-serif: "Cormorant Garamond", "Gowun Batang", "Noto Serif KR", "Times New Roman", serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --pad: clamp(20px, 5vw, 72px);
  --maxw: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-kr);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--plum); color: var(--ivory); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.pc { display: inline; }
@media (max-width: 720px) { .pc { display: none; } }

/* ---------- Logo (SVG mask so color follows currentColor) ---------- */
.logo-mask {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: url("/assets/logo.svg") center / contain no-repeat;
          mask: url("/assets/logo.svg") center / contain no-repeat;
  aspect-ratio: 193.92 / 47.27;
}
.mark-mask {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: url("/assets/mark.svg") center / contain no-repeat;
          mask: url("/assets/mark.svg") center / contain no-repeat;
  aspect-ratio: 29.13 / 35.31;
}

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--f-en);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow--light { color: rgba(247, 243, 240, 0.7); }
.display {
  font-family: var(--f-head);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.22;
  letter-spacing: -0.035em;
  color: var(--charcoal);
}
.display--light { color: var(--ivory); }
.serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.01em;
}
.display .serif { font-family: var(--f-head); font-style: normal; font-weight: 700; color: var(--plum); }
.display--light .serif { color: var(--alabaster); }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.7; font-weight: 400; color: var(--charcoal); }
.note { font-size: 13px; color: var(--muted); margin-top: 28px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--light { background: var(--ivory); color: var(--espresso); }
.btn--light::before { background: var(--alabaster); }
.btn--ghost-light { border: 1px solid rgba(247, 243, 240, 0.5); color: var(--ivory); }
.btn--ghost-light::before { background: var(--ivory); }
.btn--ghost-light:hover { color: var(--espresso); border-color: var(--ivory); }
.btn--dark { background: var(--charcoal); color: var(--ivory); }
.btn--dark::before { background: var(--plum); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
}
.link-arrow::after { content: "→"; transition: transform 0.5s var(--ease); }
a:hover .link-arrow::after { transform: translateX(6px); }

/* =========================================================
   Loader
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--espresso);
  color: var(--alabaster);
  display: grid; place-items: center;
  transition: transform 1.1s var(--ease-io) 0.1s, visibility 0s linear 1.3s;
}
.loader__inner { display: grid; justify-items: center; gap: 26px; }
.loader__mark {
  display: block; width: 30px; aspect-ratio: 29.13 / 35.31;
  background: currentColor;
  -webkit-mask: url("/assets/mark.svg") center / contain no-repeat; mask: url("/assets/mark.svg") center / contain no-repeat;
  opacity: 0; transform: translateY(14px);
  animation: loaderUp 0.9s var(--ease) 0.1s forwards;
}
.loader__logo { width: 190px; opacity: 0; clip-path: inset(0 100% 0 0); animation: loaderReveal 1.1s var(--ease) 0.45s forwards; }
.loader__line { display: block; width: 120px; height: 1px; background: rgba(223, 212, 211, 0.2); position: relative; overflow: hidden; }
.loader__line::after { content: ""; position: absolute; inset: 0; background: var(--alabaster); transform: scaleX(0); transform-origin: left; animation: loaderLine 1.3s var(--ease-io) 0.3s forwards; }
@keyframes loaderUp { to { opacity: 1; transform: none; } }
@keyframes loaderReveal { to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes loaderLine { to { transform: scaleX(1); } }
.is-loaded .loader { transform: translateY(-100%); visibility: hidden; pointer-events: none; }
.is-loaded .loader__inner { transition: opacity 0.4s; opacity: 0; }

/* =========================================================
   (custom cursor removed)
   ========================================================= */

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 84px;
  padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  color: var(--ivory);
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease), height 0.6s var(--ease), transform 0.6s var(--ease), box-shadow 0.6s;
}
.header::after { content: ""; position: absolute; left: var(--pad); right: var(--pad); bottom: 0; height: 1px; background: currentColor; opacity: 0.18; transition: opacity 0.6s; }
.header.is-solid { background: rgba(239, 233, 230, 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--charcoal); height: 68px; }
.header.is-solid::after { opacity: 0; }
.header.is-hidden { transform: translateY(-100%); }
.header__logo { width: 142px; flex: none; }
.nav { display: flex; gap: clamp(20px, 3vw, 44px); }
.nav a {
  position: relative;
  font-family: var(--f-en); font-weight: 500; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 6px 0;
}
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.header__cta {
  font-size: 13px; font-weight: 500;
  padding: 9px 20px; border-radius: 999px;
  border: 1px solid currentColor;
  transition: background-color 0.4s, color 0.4s;
}
.header__cta:hover { background: var(--ivory); color: var(--espresso); border-color: var(--ivory); }
.header.is-solid .header__cta:hover { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 1px; background: currentColor; transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; }
.menu-open .burger span:first-child { top: 20px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 20px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 90;
  background: var(--espresso); color: var(--ivory);
  padding: 110px var(--pad) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease-io);
}
.menu-open .mobile-nav { clip-path: inset(0 0 0 0); }
.mobile-nav nav { display: grid; gap: 6px; }
.mobile-nav nav a {
  font-family: var(--f-serif); font-size: clamp(38px, 11vw, 56px); font-weight: 300; line-height: 1.2;
  display: flex; align-items: baseline; gap: 16px;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}
.mobile-nav nav a small { font-family: var(--f-en); font-weight: 500; font-size: 13px; letter-spacing: 0.2em; color: var(--cashmere); }
.menu-open .mobile-nav nav a { opacity: 1; transform: none; }
.menu-open .mobile-nav nav a:nth-child(2) { transition-delay: 0.05s; }
.menu-open .mobile-nav nav a:nth-child(3) { transition-delay: 0.1s; }
.menu-open .mobile-nav nav a:nth-child(4) { transition-delay: 0.15s; }
.menu-open .mobile-nav nav a:nth-child(5) { transition-delay: 0.2s; }
.menu-open .mobile-nav nav a:nth-child(6) { transition-delay: 0.25s; }
.mobile-nav__foot { display: grid; gap: 4px; font-size: 14px; color: var(--platinum); }
.mobile-nav__foot a { font-size: 22px; color: var(--ivory); }
.menu-open .header { color: var(--ivory); background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

@media (max-width: 960px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .header { height: 68px; }
  .header__logo { width: 122px; }
}

/* =========================================================
   Split-line text reveal
   ========================================================= */
.split-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.split-line > span { display: inline-block; transform: translateY(110%); transition: transform 1.3s var(--ease); }
.is-loaded .split-line > span { transform: none; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 620px;
  color: var(--ivory);
  overflow: hidden;
  background: var(--espresso);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--pad) clamp(90px, 14vh, 150px);
}
.hero__media { position: absolute; inset: -6% 0 0; will-change: transform; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.18);
  transition: transform 3.2s var(--ease);
}
.is-loaded .hero__media img { transform: scale(1.02); }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,17,14,0.35) 0%, rgba(18,17,14,0.05) 35%, rgba(18,17,14,0.55) 100%); }
.hero__content { position: relative; max-width: 900px; }
.hero__eyebrow { color: rgba(247, 243, 240, 0.8); margin-bottom: 18px; }
.hero__title {
  font-family: var(--f-serif);
  font-weight: 300;
  font-size: clamp(46px, min(9.4vw, 13.5vh), 148px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.hero__title em { font-style: italic; padding-left: 0.6em; }
.hero__lead { margin-top: 28px; font-size: clamp(15px, 1.35vw, 18px); font-weight: 300; line-height: 1.7; color: rgba(247, 243, 240, 0.86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease) 1.1s, transform 1s var(--ease) 1.1s; }
.is-loaded .hero__actions { opacity: 1; transform: none; }
.hero .split-line:nth-child(2) > span { transition-delay: 0.12s; }
.hero__title .split-line:nth-child(1) > span { transition-delay: 0.15s; }
.hero__title .split-line:nth-child(2) > span { transition-delay: 0.3s; }
.hero__lead .split-line:nth-child(1) > span { transition-delay: 0.55s; }
.hero__lead .split-line:nth-child(2) > span { transition-delay: 0.65s; }
.hero__meta {
  position: absolute; right: var(--pad); bottom: clamp(90px, 14vh, 150px);
  display: grid; gap: 6px; text-align: right;
  font-family: var(--f-en); font-weight: 500; font-size: 13px; letter-spacing: 0.28em; color: rgba(247, 243, 240, 0.7);
  opacity: 0; transition: opacity 1.2s 1.3s;
}
.is-loaded .hero__meta { opacity: 1; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px;
  font-family: var(--f-en); font-weight: 500; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(247, 243, 240, 0.7);
}
.hero__scroll i { display: block; width: 1px; height: 46px; background: rgba(247, 243, 240, 0.25); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--ivory); animation: scrollLine 2.2s var(--ease-io) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (max-width: 720px) {
  .hero__meta { display: none; }
  .hero__title em { padding-left: 0; }
  .hero { padding-bottom: 96px; }
  .hero__scroll { display: none; }
}

/* =========================================================
   Marquee
   ========================================================= */
.marquee { background: var(--espresso); color: var(--platinum); overflow: hidden; padding: 22px 0; border-top: 1px solid rgba(223,212,211,0.08); }
.marquee__track { display: flex; align-items: center; gap: 44px; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { font-family: var(--f-serif); font-style: italic; font-weight: 300; font-size: clamp(22px, 2.6vw, 34px); white-space: nowrap; }
.marquee__track i { width: 14px; color: var(--cashmere); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   Sections / reveal
   ========================================================= */
.section { padding: clamp(96px, 14vw, 180px) 0; position: relative; }
.section-head { margin-bottom: clamp(48px, 7vw, 88px); max-width: 760px; }
.section-head__desc { margin-top: 24px; color: var(--muted); max-width: 520px; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.section-head--row .section-head__desc { margin-top: 0; }

[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="clip"] { opacity: 1; transform: none; }
[data-reveal="clip"] > img {
  clip-path: inset(100% 0 0 0);
  transform: scale(1.25);
  transition: clip-path 1.4s var(--ease-io), transform 1.8s var(--ease), scale 1.6s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal="clip"].is-in > img { clip-path: inset(0 0 0 0); transform: scale(1); }

/* =========================================================
   Philosophy
   ========================================================= */
.philosophy { background: var(--paper); }
.philosophy__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); }
.philosophy__head { position: relative; align-self: start; }
.philosophy__visual { position: relative; margin-top: 64px; padding-bottom: 110px; }
.philosophy__img { overflow: hidden; border-radius: 2px; }
.philosophy__img img { width: 100%; height: 100%; object-fit: cover; }
.philosophy__img--main { width: 82%; aspect-ratio: 4 / 5; }
.philosophy__img--main img { height: 112%; }
.philosophy__img--sub { position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 3 / 4; border: 8px solid var(--paper); }
.philosophy__body { padding-top: 38px; display: grid; gap: 26px; align-content: start; }
.philosophy__body > p:not(.lead) { color: var(--muted); }

.pillars { margin-top: 30px; border-top: 1px solid var(--line); }
.pillars li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.pillars__num { font-family: var(--f-en); font-weight: 500; font-size: 13px; letter-spacing: 0.16em; color: var(--cashmere); padding-top: 6px; }
.pillars h3 { font-family: var(--f-serif); font-size: 28px; font-weight: 400; line-height: 1.2; color: var(--charcoal); margin-bottom: 8px; }
.pillars p { color: var(--muted); font-size: 15px; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 24px; margin-top: 36px; }
.stats dt { font-family: var(--f-serif); font-weight: 300; font-size: clamp(48px, 5vw, 72px); line-height: 1; color: var(--plum); }
.stats sup { font-family: var(--f-en); font-weight: 500; font-size: 15px; letter-spacing: 0.1em; vertical-align: 1.6em; margin-left: 4px; color: var(--cashmere); }
.stats dd { margin-top: 10px; font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .philosophy__grid { grid-template-columns: 1fr; }
  .philosophy__body { padding-top: 0; }
}

/* =========================================================
   Rituals — horizontal scroll
   ========================================================= */
.rituals { position: relative; background: var(--espresso); color: var(--ivory); }
.rituals__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; padding-bottom: 40px; }
.rituals__intro {
  position: absolute; left: var(--pad); top: 50%; transform: translateY(-50%);
  width: min(430px, 32vw); z-index: 2;
  will-change: transform;
}
.rituals__intro .display { font-size: clamp(32px, 3.3vw, 50px); }
.rituals__intro .eyebrow { color: var(--cashmere); }
.rituals__desc { margin-top: 24px; color: var(--platinum); font-size: 15px; font-weight: 300; }
.rituals__progress { position: absolute; left: var(--pad); right: var(--pad); bottom: 36px; display: flex; align-items: center; gap: 18px; font-family: var(--f-en); font-weight: 500; font-size: 13px; letter-spacing: 0.16em; color: var(--cashmere); }
.rituals__progress b { flex: 1; height: 1px; background: rgba(223, 212, 211, 0.18); position: relative; }
.rituals__progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--alabaster); transform: scaleX(0); transform-origin: left; }
.rituals__track {
  display: flex; gap: clamp(20px, 2.4vw, 36px);
  padding-left: calc(var(--pad) + min(430px, 32vw) + 90px);
  padding-right: var(--pad);
  will-change: transform;
}
.ritual { flex: none; width: clamp(260px, min(24vw, 44vh), 380px); }
.ritual:nth-child(even) { margin-top: 9vh; }
.ritual figure { overflow: hidden; aspect-ratio: 3 / 4; border-radius: 2px; }
.ritual img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.4s var(--ease), filter 1s; filter: saturate(0.85); }
.ritual:hover img { transform: scale(1); filter: saturate(1); }
.ritual__ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(160deg, var(--charcoal), var(--espresso)); color: var(--cashmere); font-family: var(--f-en); font-weight: 500; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; text-align: center; padding: 20px; }
.ritual__txt { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; margin-top: 20px; }
.ritual__txt span { font-family: var(--f-en); font-weight: 500; font-size: 13px; letter-spacing: 0.16em; color: var(--cashmere); padding-top: 12px; grid-row: span 2; }
.ritual h3 { font-family: var(--f-serif); font-size: 36px; font-weight: 300; line-height: 1.1; display: flex; align-items: baseline; gap: 12px; }
.ritual h3 small { font-family: var(--f-en); font-weight: 500; font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--cashmere); }
.ritual p { font-size: 14px; color: var(--platinum); font-weight: 300; margin-top: 6px; }

@media (max-width: 900px) {
  .rituals { padding: 100px 0 90px; }
  .rituals__pin { position: static; height: auto; display: block; overflow: visible; }
  .rituals__intro { position: static; transform: none; width: auto; padding: 0 var(--pad); margin-bottom: 44px; }
  .rituals__progress { display: none; }
  .rituals__track { padding: 0 var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .rituals__track::-webkit-scrollbar { display: none; }
  .ritual { width: 76vw; scroll-snap-align: center; }
  .ritual:nth-child(even) { margin-top: 0; }
}

/* =========================================================
   Spa Menu
   ========================================================= */
.menu { background: var(--ivory); overflow: hidden; }
.tabs, .filters { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(39, 37, 35, 0.06); margin-bottom: 40px; flex-wrap: wrap; }
.tabs button, .filters button {
  position: relative;
  font-family: var(--f-en); font-weight: 500; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 11px 22px; border-radius: 999px;
  color: var(--muted);
  transition: color 0.4s, background-color 0.4s;
}
.tabs button.is-active, .filters button.is-active { background: var(--charcoal); color: var(--ivory); }
.tabs button:not(.is-active):hover, .filters button:not(.is-active):hover { color: var(--charcoal); }

.menu__panels { position: relative; }
.menu__list { display: none; border-top: 1px solid var(--line); }
.menu__list.is-active { display: block; }
.menu-item {
  position: relative;
  display: grid; grid-template-columns: 220px 1fr 110px 130px; gap: 24px; align-items: baseline;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease), padding 0.6s var(--ease);
}
.menu__list.is-active .menu-item { opacity: 1; transform: none; }
.menu__list.is-active .menu-item:nth-child(2) { transition-delay: 0.07s; }
.menu__list.is-active .menu-item:nth-child(3) { transition-delay: 0.14s; }
.menu__list.is-active .menu-item:nth-child(4) { transition-delay: 0.21s; }
.menu-item::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--charcoal); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease); }
.menu-item:hover::before { transform: scaleX(1); }
.menu-item__origin { font-family: var(--f-en); font-weight: 500; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cashmere); }
.menu-item h3 { font-size: clamp(21px, 2.1vw, 28px); font-weight: 400; letter-spacing: -0.03em; color: var(--charcoal); transition: transform 0.6s var(--ease), color 0.4s; }
.menu-item:hover h3 { transform: translateX(10px); color: var(--plum); }
.menu-item__main p { margin-top: 8px; color: var(--muted); font-size: 15px; max-width: 560px; }
.menu-item__steps { display: inline-block; margin-top: 4px; font-size: 13px; color: var(--cashmere); }
.menu-item__time { font-family: var(--f-en); font-weight: 500; font-size: 14px; letter-spacing: 0.08em; color: var(--muted); }
.menu-item__price { font-family: var(--f-serif); font-size: 26px; text-align: right; color: var(--charcoal); }
.menu-item__price--ask { font-family: var(--f-head); font-size: 15px; }


@media (max-width: 900px) {
  .menu-item { grid-template-columns: 1fr auto; gap: 6px 16px; padding: 28px 0; }
  .menu-item__origin { grid-column: 1 / -1; }
  .menu-item__main { grid-column: 1 / -1; }
  .menu-item__time { align-self: center; }
  .menu-item__price { align-self: center; }
}

/* =========================================================
   Works — bento
   ========================================================= */
.works { background: var(--paper); }
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(90px, 9vw, 130px);
  gap: clamp(10px, 1.4vw, 20px);
}
.tile { position: relative; overflow: hidden; border-radius: 2px; background: var(--alabaster); cursor: zoom-in; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile:hover img { scale: 1.06; transition-delay: 0s; }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 60px 22px 18px;
  background: linear-gradient(180deg, transparent, rgba(18, 17, 14, 0.62));
  color: var(--ivory);
  font-family: var(--f-serif); font-size: 22px; line-height: 1.2;
  transform: translateY(30%); opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.5s;
}
.tile figcaption span { display: block; font-family: var(--f-en); font-weight: 500; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--platinum); margin-bottom: 6px; }
.tile:hover figcaption { transform: none; opacity: 1; }
.tile--a { grid-column: 1 / 6; grid-row: 1 / 6; }
.tile--b { grid-column: 6 / 10; grid-row: 1 / 4; }
.tile--c { grid-column: 10 / 13; grid-row: 1 / 6; }
.tile--d { grid-column: 6 / 10; grid-row: 4 / 6; }
.tile--f { grid-column: 1 / 8; grid-row: 6 / 8; }
.tile--h { grid-column: 8 / 13; grid-row: 6 / 11; }
.tile--e { grid-column: 1 / 5; grid-row: 8 / 11; }
.tile--g { grid-column: 5 / 8; grid-row: 8 / 11; }

@media (hover: none) { .tile figcaption { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .tile { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 4 / 5; }
  .tile--a, .tile--f, .tile--h { grid-column: 1 / -1 !important; aspect-ratio: 4 / 3; }
  .tile figcaption { font-size: 17px; padding: 40px 14px 12px; }
}

.palette { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: clamp(40px, 6vw, 72px); border-radius: 2px; overflow: hidden; }
.palette span {
  position: relative; height: 120px; padding: 16px;
  background: var(--c); color: var(--ivory);
  display: flex; align-items: flex-end;
  font-family: var(--f-en); font-weight: 500; font-size: 13px; letter-spacing: 0.14em;
  transition: flex 0.6s var(--ease), height 0.6s var(--ease);
}
.palette span::before { content: attr(data-name); position: absolute; top: 16px; left: 16px; font-family: var(--f-serif); font-size: 20px; letter-spacing: 0; }
.palette span.is-light { color: var(--charcoal); }
@media (max-width: 720px) {
  .palette { grid-template-columns: repeat(3, 1fr); }
  .palette span { height: 96px; font-size: 10px; }
  .palette span::before { font-size: 16px; }
}

/* =========================================================
   Shop
   ========================================================= */
.shop { background: var(--ivory); }
.feature {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch;
  background: var(--espresso); color: var(--ivory);
  border-radius: 2px; overflow: hidden;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.feature__img { overflow: hidden; min-height: 420px; position: relative; }
.feature__img img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; transition: scale 1.6s var(--ease); }
.feature:hover .feature__img img { scale: 1.04; }
.feature__txt { padding: clamp(36px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.feature__txt .eyebrow { color: var(--cashmere); margin: 0; }
.feature__txt h3 { font-family: var(--f-serif); font-weight: 300; font-size: clamp(44px, 5vw, 76px); line-height: 1; }
.feature__txt p { color: var(--platinum); font-weight: 300; max-width: 380px; }
.feature__txt .link-arrow { align-self: flex-start; margin-top: 12px; color: var(--alabaster); }
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; } .feature__img { min-height: 300px; } }

.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 28px); }
.product {
  position: relative; display: flex; flex-direction: column;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.product.is-out { opacity: 0; transform: scale(0.96); }
.product__img {
  position: relative; background: #fff; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px;
  display: grid; place-items: center;
}
.product__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 1.1s var(--ease); }
.product:hover .product__img img { transform: translateY(-6px) scale(1.05); }
.product__tag { position: absolute; top: 14px; left: 14px; font-family: var(--f-en); font-weight: 500; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,0.8); }
.product__ph { font-family: var(--f-en); font-weight: 500; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cashmere); background: var(--alabaster); width: 100%; height: 100%; display: grid; place-items: center; }
.product__info { padding: 18px 2px 0; }
.product__cat { font-family: var(--f-en); font-weight: 500; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cashmere); }
.product h3 { font-size: 16px; font-weight: 500; line-height: 1.45; margin-top: 6px; color: var(--charcoal); }
.product__price { margin-top: 6px; font-size: 15px; color: var(--muted); }
.product__buy {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; justify-content: center; height: 46px; z-index: 1;
  border-radius: 999px; background: var(--charcoal); color: var(--ivory);
  font-size: 14px; font-weight: 500;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.product__buy::after { content: " ↗"; margin-left: 4px; }
@media (hover: hover) {
  .product:hover .product__buy { opacity: 1; transform: none; }
}
@media (hover: none) {
  .product__buy { left: auto; right: 10px; bottom: 10px; width: auto; height: 32px; padding: 0 12px; font-size: 12px; opacity: 1; transform: none; background: rgba(39,37,35,0.88); }
}
@media (max-width: 1000px) { .products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .products { grid-template-columns: repeat(2, 1fr); } .product h3 { font-size: 14px; } }
.shop__more { margin-top: clamp(56px, 7vw, 88px); text-align: center; }
.shop__more .note { margin-top: 16px; }

/* =========================================================
   Contact
   ========================================================= */
.contact { position: relative; overflow: hidden; background: var(--espresso); color: var(--ivory); padding: clamp(110px, 15vw, 200px) 0; }
.contact__bg { position: absolute; inset: -15% 0; opacity: 0.32; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; }
.contact::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 40%, transparent 0%, rgba(18,17,14,0.85) 70%); }
.contact__inner { position: relative; z-index: 1; }
.contact__title { font-family: var(--f-serif); font-weight: 300; font-size: clamp(64px, 11vw, 168px); line-height: 0.9; letter-spacing: -0.02em; }
.contact__title em { font-style: italic; color: var(--alabaster); padding-left: 0.8em; }
.contact__lead { margin-top: 36px; color: var(--platinum); font-weight: 300; font-size: clamp(15px, 1.3vw, 18px); }
.contact__cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 56px; max-width: 980px; }
.c-card {
  position: relative; text-align: left;
  display: grid; gap: 4px; align-content: start;
  padding: 34px 34px 30px;
  border: 1px solid rgba(223, 212, 211, 0.22);
  border-radius: 4px;
  background: rgba(18, 17, 14, 0.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  overflow: hidden; isolation: isolate;
  transition: border-color 0.5s, color 0.5s;
}
.c-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--alabaster); transform: scaleY(0); transform-origin: bottom; transition: transform 0.7s var(--ease); }
.c-card:hover { color: var(--espresso); border-color: var(--alabaster); }
.c-card:hover::before { transform: scaleY(1); }
.c-card__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; margin-bottom: 28px; opacity: 0.9; }
.c-card__icon svg { width: 20px; height: 20px; }
.c-card--kakao .c-card__icon { background: #fee500; color: #191600; border-color: #fee500; }
.c-card__label { font-family: var(--f-en); font-weight: 500; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.7; }
.c-card strong { font-family: var(--f-head); font-weight: 400; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.02em; line-height: 1.3; }
.c-card__go { margin-top: 20px; font-size: 14px; display: inline-flex; gap: 8px; }
.c-card__go::after { content: "→"; transition: transform 0.5s var(--ease); }
.c-card:hover .c-card__go::after { transform: translateX(6px); }
.contact__info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 72px; padding-top: 32px; border-top: 1px solid rgba(223, 212, 211, 0.16); max-width: 980px; }
.contact__info span { font-family: var(--f-en); font-weight: 500; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cashmere); }
.contact__info p { margin-top: 10px; font-size: 14px; color: var(--platinum); font-weight: 300; }
.contact__map { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--alabaster); border-bottom: 1px solid rgba(223,212,211,0.4); padding-bottom: 2px; transition: border-color 0.3s; }
.contact__map::after { content: " ↗"; }
.contact__map:hover { border-color: var(--alabaster); }
.footer__copy a { border-bottom: 1px solid rgba(117,121,118,0.4); }
.footer__copy a:hover { color: var(--platinum); }
.mobile-nav__kakao { font-size: 14px !important; color: var(--platinum) !important; }
@media (max-width: 720px) {
  .contact__cards, .contact__info { grid-template-columns: 1fr; }
  .contact__title em { padding-left: 0; }
  .c-card { padding: 26px; }
}

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--espresso); color: var(--platinum); padding: 80px 0 120px; border-top: 1px solid rgba(223,212,211,0.08); }
.footer__inner { display: grid; justify-items: center; text-align: center; gap: 18px; }
.footer__logo { width: 180px; color: var(--alabaster); }
.footer__tag { font-family: var(--f-serif); font-style: italic; font-size: 20px; color: var(--cashmere); }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 18px 0; }
.footer__nav a { font-family: var(--f-en); font-weight: 500; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; transition: color 0.3s; }
.footer__nav a:hover { color: var(--ivory); }
.footer__copy { font-size: 12px; line-height: 1.9; color: var(--sage); }

/* =========================================================
   Quick contact
   ========================================================= */
.quick {
  position: fixed; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); z-index: 80;
  display: grid; gap: 10px;
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.quick.is-on { opacity: 1; transform: none; pointer-events: auto; }
.quick__btn {
  display: flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--charcoal); color: var(--ivory);
  font-size: 14px; font-weight: 500;
  box-shadow: 0 10px 30px rgba(18, 17, 14, 0.25);
  transition: transform 0.4s var(--ease), background-color 0.3s;
}
.quick__btn:hover { transform: translateY(-3px); background: var(--plum); }
.quick__btn svg { width: 20px; height: 20px; }
.quick__btn--kakao { background: #fee500; color: #191600; }
.quick__btn--kakao:hover { background: #f5dc00; }
@media (max-width: 720px) {
  .quick { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); grid-template-columns: 1fr 1fr; }
  .quick__btn { justify-content: center; height: 52px; }
}

/* =========================================================
   Lightbox & toast
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 180;
  background: rgba(18, 17, 14, 0.94);
  display: grid; place-items: center; padding: 60px var(--pad);
  animation: fadeIn 0.5s var(--ease);
}
.lightbox figure { max-width: min(1100px, 100%); display: grid; gap: 16px; animation: zoomIn 0.7s var(--ease); }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 2px; }
.lightbox figcaption { text-align: center; color: var(--platinum); font-family: var(--f-serif); font-size: 22px; }
.lightbox figcaption span { display: block; font-family: var(--f-en); font-weight: 500; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cashmere); }
.lightbox__close { position: absolute; top: 22px; right: var(--pad); color: var(--ivory); font-family: var(--f-en); font-weight: 500; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; padding: 10px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.94); } }

/* =========================================================
   Ritual detail modal
   ========================================================= */
.ritual-modal {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(18, 17, 14, 0.88);
  display: grid; place-items: center; padding: 40px var(--pad);
  animation: fadeIn 0.4s var(--ease); overflow-y: auto;
}
.ritual-modal__panel {
  position: relative; width: min(880px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--ivory); border-radius: 4px; animation: zoomIn 0.5s var(--ease);
  display: grid; grid-template-columns: 1fr; margin: auto;
}
@media (min-width: 760px) { .ritual-modal__panel { grid-template-columns: 320px 1fr; } }
.ritual-modal__media { position: relative; min-height: 220px; background: var(--alabaster); }
.ritual-modal__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ritual-modal__ph { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(160deg, var(--charcoal), var(--espresso)); color: var(--cashmere); font-family: var(--f-en); font-weight: 500; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; }
.ritual-modal__body { padding: clamp(28px, 4vw, 48px); }
.ritual-modal__body .eyebrow { color: var(--cashmere); margin-bottom: 10px; }
.ritual-modal__body h3 { font-family: var(--f-serif); font-weight: 300; font-size: clamp(28px, 3vw, 36px); color: var(--charcoal); margin-bottom: 16px; }
.ritual-modal__desc { color: var(--muted); line-height: 1.7; margin-bottom: 28px; }
.ritual-modal__products { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.ritual-modal__empty { color: var(--muted); font-size: 14px; line-height: 1.6; }
.ritual-product { display: block; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; transition: border-color 0.3s; }
.ritual-product:hover { border-color: var(--charcoal); }
.ritual-product__img { display: block; aspect-ratio: 4 / 5; background: #fff; overflow: hidden; }
.ritual-product__img img { width: 100%; height: 100%; object-fit: cover; }
.ritual-product__info { display: block; padding: 10px 12px 14px; }
.ritual-product__info strong { display: block; font-size: 12.5px; font-weight: 500; line-height: 1.4; color: var(--charcoal); }
.ritual-product__info span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.ritual-modal__close { position: absolute; top: 16px; right: 16px; z-index: 2; color: var(--charcoal); background: rgba(255,255,255,0.85); border-radius: 999px; width: 34px; height: 34px; font-size: 0; }
.ritual-modal__close::before, .ritual-modal__close::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 1px; background: currentColor; }
.ritual-modal__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.ritual-modal__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.ritual { cursor: pointer; }
.ritual:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 4px; }

.toast {
  position: fixed; left: 50%; bottom: 100px; z-index: 190;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ivory); color: var(--charcoal);
  padding: 14px 22px; border-radius: 999px; font-size: 14px;
  box-shadow: 0 12px 40px rgba(18, 17, 14, 0.25);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
  white-space: nowrap; max-width: calc(100vw - 32px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  [data-reveal], [data-reveal="clip"], [data-reveal="clip"] > img { opacity: 1; transform: none; clip-path: none; }
  .split-line > span { transform: none; }
  .marquee__track { animation: none; }
}

@media (max-width: 720px) {
  .tabs, .filters { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .tabs::-webkit-scrollbar, .filters::-webkit-scrollbar { display: none; }
  .tabs button, .filters button { flex: none; padding: 10px 16px; font-size: 11px; }
}

/* ---------- Contact + Location (merged) ---------- */
.contact__loc { margin-top: 72px; padding-top: 48px; border-top: 1px solid rgba(223, 212, 211, 0.16); max-width: 980px; display: grid; gap: 32px; align-items: center; scroll-margin-top: 90px; }
@media (min-width: 900px) { .contact__loc { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } }
.contact__loc h3 { font-family: var(--f-head); font-weight: 400; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; line-height: 1.25; }
.contact__loc-list { margin: 26px 0 30px; border-top: 1px solid rgba(223, 212, 211, 0.2); }
.contact__loc-list > div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(223, 212, 211, 0.2); }
.contact__loc-list dt { padding-top: 3px; font-family: var(--f-en); font-weight: 500; font-size: 13px; letter-spacing: 0.2em; color: var(--cashmere); }
.contact__loc-list dd { font-size: 16px; line-height: 1.7; color: var(--ivory); overflow-wrap: anywhere; }
.contact__loc-list dd strong { font-weight: 600; color: var(--alabaster); }
.contact__loc-map { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: rgba(223, 212, 211, 0.08); border: 1px solid rgba(223, 212, 211, 0.2); }
.contact__loc-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.45) sepia(0.15) saturate(0.8) brightness(0.92); }
.contact__loc > * { min-width: 0; }
.menu-open .mobile-nav nav a:nth-child(7) { transition-delay: 0.3s; }
/* 모바일 메뉴: 화면이 낮은 폰에서도 넘치지 않게 */
.mobile-nav { overflow-y: auto; -webkit-overflow-scrolling: touch; }
@media (max-height: 720px) {
  .mobile-nav { padding-top: 92px; padding-bottom: 24px; gap: 20px; }
  .mobile-nav nav a { font-size: clamp(30px, 8.6vw, 40px); }
  .mobile-nav__foot a { font-size: 19px; }
}
