/* 위드의원 메인 — 웜 화이트 바탕, 브론즈 선, 차콜 면. 영문 제목은 세리프(Cormorant Garamond) */

:root {
  /* 위드의원 원래 사이트의 색: 페이지 바탕 웜 화이트(#f7f5f1), 면은 웜 그레이(#e9e7e2 · #edeae4 · #f2f0eb),
     의료진은 흰 띠, 공간·오시는 길·상담·푸터는 차콜(#25262b) 띠, 포인트는 브론즈(#a78d70).
     작은 브론즈 글자는 한 단계 진한 accent-ink(웜 화이트 대비 5.3:1). */
  --accent: #a78d70;
  --accent-600: #8a7153;
  --accent-ink: #7a6246;
  --accent-ink-600: #5f4b34;
  --deep: #25262b;
  --deep-900: #1f2024;
  --night: #25262b;
  --sand: #e9e7e2;
  --stone: #edeae4;
  --mist: #f2f0eb;
  --mist-2: #e9e6e1;
  --paper: #f7f5f1;
  --ink: #1f1f1f;
  --ink-2: #5f5a54;
  --ink-3: #6b6660;
  --line: rgba(31, 31, 31, 0.14);
  --line-2: rgba(31, 31, 31, 0.08);
  --dark-line: #48494d;
  --dark-label: #a99984;
  --dark-text: #c9c5bf;
  --gold: #c7b48f;
  --kakao: #fee500;
  --naver: #03c75a;
  --wechat: #1aad19;
  --radius-lg: 32px;
  --radius: 20px;
  --gutter: clamp(16px, 2.6vw, 40px);
  --inset: clamp(10px, 1.6vw, 28px);
  --maxw: 1360px;
  --header-h: 80px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: "Cormorant Garamond", "Times New Roman", serif; /* 영문 제목 */
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: #d8cbb8 var(--mist);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent-ink);
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; text-underline-offset: 0.25em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
table { font-variant-numeric: tabular-nums; }

::selection { background: var(--accent-ink); color: #fff; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 12px; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--mist); }
::-webkit-scrollbar-thumb { background: #d8cbb8; border-radius: 999px; border: 3px solid var(--mist); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 700;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 16px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.br-m { display: none; }
html[lang="en"] body, html[lang="zh-CN"] body { word-break: normal; }
html[lang="zh-CN"] { --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
html[lang="zh-CN"] body { line-break: strict; }
/* 영어 페이지: 한국어 약속 문장이 이미 영어라, 옆의 영문 한 줄은 겹치므로 숨긴다 */
html[lang="en"] .promise-en, html[lang="en"] .pillar-en, html[lang="en"] .panel-en,
html[lang="en"] .chips .chip i, html[lang="en"] .cx-list span, html[lang="en"] .area-en { display: none; }
html[lang="en"] .promise-list li { grid-template-columns: clamp(160px, 17vw, 248px) minmax(0, 1fr); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 52px; padding: 0 1.5em;
  border: 1.5px solid transparent; border-radius: 999px;
  font-size: 1rem; font-weight: 650; letter-spacing: -0.01em; white-space: nowrap;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-accent { background: var(--deep); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); box-shadow: 0 12px 24px -14px rgba(138, 113, 83, 0.9); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--sand); box-shadow: 0 14px 26px -16px rgba(27, 28, 32, 0.55); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--accent-ink); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.75); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-kakao { background: var(--kakao); color: #191919; }
.btn-kakao:hover { background: #f5dc00; box-shadow: 0 14px 26px -16px rgba(0, 0, 0, 0.55); }
/* 네이버·위챗: 흰 버튼 + 브랜드색 아이콘 (브랜드 초록 위 흰 글씨는 대비가 모자라서) */
.btn-naver .icon { color: var(--naver); }
.btn-wechat .icon { color: var(--wechat); }
.btn-sm { min-height: 42px; padding: 0 1.15em; font-size: 0.9375rem; }
.btn-lg { min-height: 60px; padding: 0 1.8em; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  color: var(--ink); transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.icon-btn:hover { background: var(--mist); color: var(--accent-ink); }
.icon-btn .icon { width: 24px; height: 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 247, 0.94);
  transition: box-shadow 0.35s var(--ease-out);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line-2), 0 16px 30px -26px rgba(27, 28, 32, 0.5); }
.header-inner {
  width: min(100% - 2 * var(--gutter), 1560px); margin-inline: auto;
  height: var(--header-h); display: flex; align-items: center; gap: 24px;
}
/* 로고: W 모노그램(파비콘과 같은 모양) + WITH CLINIC / 위드의원. 어두운 바탕에서는 .is-light */
.brand { flex: none; display: inline-flex; align-items: center; gap: 12px; color: var(--ink); --brand-disc: #25262b; --brand-w: #c7b48f; }
.brand-mark { flex: none; width: 42px; height: 42px; }
.brand-word { display: grid; line-height: 1; }
.brand-word b { font-family: var(--serif); font-size: 1.375rem; font-weight: 600; letter-spacing: 0.1em; }
.brand-word small { margin-top: 5px; font-size: 0.6875rem; font-weight: 650; letter-spacing: 0.42em; color: var(--ink-3); }
.brand.is-light { color: #fff; --brand-disc: #f7f5f1; --brand-w: #25262b; }
.brand.is-light .brand-word small { color: rgba(255, 255, 255, 0.66); }
.gnb { align-self: stretch; display: flex; margin-inline: auto; }
.gnb-list { display: flex; align-items: center; gap: clamp(14px, 1.9vw, 40px); }
.gnb-link {
  position: relative; display: block; padding: 10px 2px; white-space: nowrap;
  font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.02em;
  transition: color 0.25s var(--ease-out);
}
.gnb-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.gnb-item:hover > .gnb-link, .gnb-item:focus-within > .gnb-link, .gnb-item.is-current > .gnb-link { color: var(--accent-ink); }
.gnb-item:hover > .gnb-link::after, .gnb-item:focus-within > .gnb-link::after, .gnb-item.is-current > .gnb-link::after { transform: scaleX(1); }

/* mega menu: pointing at or tabbing into the menu opens every column at once under the header.
   Three columns side by side in the middle, each headed by its menu name over an ink rule. */
.site-header { --mega-w: min(100% - 2 * var(--gutter), var(--maxw)); --mega-col: min(280px, var(--mega-w) / 3); }
.site-header.is-mega { background: #faf9f7; }
.gnb-sub {
  position: absolute; z-index: 2; top: var(--header-h);
  left: calc(50% - 1.5 * var(--mega-col) + var(--col) * var(--mega-col));
  width: var(--mega-col); padding-inline: 20px;
  display: grid; align-content: start; padding: 30px 12px 36px;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity 0.25s var(--ease-out), transform 0.45s var(--ease-out), visibility 0s linear 0.25s;
}
.site-header.is-mega .gnb-sub {
  visibility: visible; opacity: 1; transform: none;
  transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-out), visibility 0s;
}
.gnb-sub-head {
  margin-bottom: 10px; padding-bottom: 12px; border-bottom: 1.5px solid var(--ink);
  font-size: 1rem; font-weight: 750; letter-spacing: -0.02em; white-space: nowrap;
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.gnb-item:hover .gnb-sub-head, .gnb-item.is-current .gnb-sub-head { color: var(--accent-ink); border-color: var(--accent-ink); }
.gnb-sub a { display: block; padding: 7px 0; font-size: 0.9375rem; line-height: 1.4; color: var(--ink-2); transition: color 0.2s var(--ease-out); }
.gnb-sub a:hover { color: var(--accent-ink); }
.gnb-sub a[aria-current="page"] { color: var(--accent-ink); font-weight: 650; }
.mega-bg {
  position: absolute; z-index: 1; left: 0; right: 0; top: var(--header-h); height: var(--mega-h, 460px);
  background: #faf9f7; border-top: 1px solid var(--line-2);
  box-shadow: 0 26px 50px -22px rgba(27, 28, 32, 0.45);
  visibility: hidden; opacity: 0; transition: opacity 0.25s var(--ease-out), visibility 0s linear 0.25s;
}
.site-header.is-mega .mega-bg { visibility: visible; opacity: 1; transition: opacity 0.3s var(--ease-out), visibility 0s; }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
/* 언어 전환 (원래 사이트처럼 현재 언어만 채운 알약) */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; margin-right: 6px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch a {
  display: inline-grid; place-items: center; min-width: 40px; height: 32px; padding: 0 10px; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.02em; color: var(--ink-2);
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.lang-switch a:hover { color: var(--ink); background: var(--line-2); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: #fff; }
.mobile-menu > .lang-switch { align-self: flex-start; margin: 6px 0 0; }
.mobile-menu > .lang-switch a { min-width: 52px; height: 40px; font-size: 0.9375rem; }
.gnb + .header-actions { margin-left: 0; }
.menu-btn { display: none; }

/* ---------- mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 80; background: var(--paper);
  display: flex; flex-direction: column; padding: 8px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { animation: menu-in 0.45s var(--ease-out); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-12px); } }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.mobile-menu-head .brand-mark { width: 36px; height: 36px; }
.mobile-menu-head .brand-word b { font-size: 1.1875rem; }
.mobile-menu-list { margin-top: 12px; border-top: 1.5px solid var(--ink); }
/* one row per menu; each opens its pages in two columns */
.mm-group { border-bottom: 1px solid var(--line-2); }
.mm-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 17px 4px;
  font-size: 1.375rem; font-weight: 700; letter-spacing: -0.03em; text-align: left; color: var(--ink);
  transition: color 0.2s var(--ease-out);
}
.mm-toggle .icon { flex: none; width: 22px; height: 22px; color: var(--ink-3); transition: transform 0.35s var(--ease-out); }
.mm-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mm-toggle:hover, .mm-group.is-current .mm-toggle { color: var(--accent-ink); }
.mm-sub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; padding: 0 4px 14px; }
.mm-sub[hidden] { display: none; }
.mm-sub a { display: flex; align-items: center; min-height: 44px; font-size: 1rem; color: var(--ink-2); }
.mm-sub a:hover, .mm-sub a[aria-current="page"] { color: var(--accent-ink); }
.mm-sub a[aria-current="page"] { font-weight: 650; }
.mobile-menu-foot { margin-top: auto; padding-top: 28px; display: grid; gap: 10px; }

/* ---------- hero ---------- */
.hero { padding: 0 var(--inset); }
.hero-card {
  --hero-pad: clamp(40px, 6vw, 104px);
  position: relative; isolation: isolate; overflow: hidden;
  height: calc(100svh - var(--header-h) - var(--inset));
  min-height: 640px; max-height: 900px;
  border-radius: var(--radius-lg);
  background: var(--sand); color: var(--ink);
}
.hero-track { display: grid; height: 100%; }
.slide {
  grid-area: 1 / 1;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center; gap: clamp(24px, 4vw, 72px);
  padding: var(--hero-pad); padding-bottom: calc(var(--hero-pad) + 56px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.9s var(--ease-out), visibility 0s linear 0.9s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.9s var(--ease-out), visibility 0s; z-index: 1; }
.slide[data-theme="sand"] { background: var(--sand); color: var(--ink); }
.slide[data-theme="deep"] { background: var(--deep); color: #fff; }
.slide[data-theme="mist"] { background: var(--mist-2); color: var(--ink); }

/* The field behind each slide, so the colour is a place and not a flat fill: light from the top left, a fine grain,
   a dot grid under the copy, and a measuring dial (tick bezel, rings, a dashed ring turning slowly) centred on the
   photo's left edge, so its arcs sweep the colour field and pass behind the photo. The dial leans toward the pointer. */
.slide { --deco: rgba(138, 113, 83, 0.24); --deco-strong: rgba(138, 113, 83, 0.6); }
.slide[data-theme="deep"] { --deco: rgba(167, 141, 112, 0.24); --deco-strong: rgba(167, 141, 112, 0.62); }
.slide[data-theme="mist"] { --deco: rgba(138, 113, 83, 0.2); --deco-strong: rgba(138, 113, 83, 0.5); }
.slide-deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.slide-deco::before {
  content: ""; position: absolute; inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0.26 0 0 0 -0.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(70% 90% at 10% 0%, rgba(255, 255, 255, 0.7), transparent 62%),
    radial-gradient(42% 52% at 55% 56%, rgba(255, 255, 255, 0.4), transparent 70%),
    radial-gradient(70% 80% at 0% 100%, rgba(167, 141, 112, 0.22), transparent 72%);
}
.slide[data-theme="deep"] .slide-deco::before {
  background:
    radial-gradient(70% 90% at 10% 0%, rgba(255, 255, 255, 0.08), transparent 62%),
    radial-gradient(42% 52% at 55% 56%, rgba(167, 141, 112, 0.16), transparent 70%),
    radial-gradient(70% 80% at 0% 100%, rgba(21, 21, 24, 0.5), transparent 72%);
}
.slide[data-theme="mist"] .slide-deco::before {
  background:
    radial-gradient(70% 90% at 10% 0%, rgba(255, 255, 255, 0.75), transparent 62%),
    radial-gradient(42% 52% at 55% 56%, rgba(255, 255, 255, 0.5), transparent 70%),
    radial-gradient(70% 80% at 0% 100%, rgba(167, 141, 112, 0.16), transparent 72%);
}
.slide-deco::after {
  content: ""; position: absolute; inset: -24px;
  background: radial-gradient(circle, var(--deco-strong) 1px, transparent 1.6px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(42% 46% at 22% 74%, var(--night), transparent 72%);
  mask-image: radial-gradient(42% 46% at 22% 74%, var(--night), transparent 72%);
  opacity: 0.55;
  translate: calc(var(--px, 0) * -8px) calc(var(--py, 0) * -8px);
  transition: translate 1.2s var(--ease-out);
}
/* the reception's logo wall, left as an afterimage behind the copy: greyed, softened, a few percent, and faded out
   toward the photo and the bottom edge; it leans with the pointer like the dot grid */
.slide-ghost {
  position: absolute; inset: -32px;
  background: no-repeat var(--ghost-pos, 34% 50%) / var(--ghost-size, cover);
  opacity: 0.11; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(100deg, var(--night) 34%, transparent 62%), linear-gradient(to bottom, var(--night) 64%, transparent 96%);
  mask-image: linear-gradient(100deg, var(--night) 34%, transparent 62%), linear-gradient(to bottom, var(--night) 64%, transparent 96%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  translate: calc(var(--px, 0) * -6px) calc(var(--py, 0) * -6px);
  transition: translate 1.2s var(--ease-out), opacity 1.2s var(--ease-out);
}
.slide[data-theme="deep"] .slide-ghost { mix-blend-mode: screen; opacity: 0.13; }
.ghost-reception { background-image: url("../assets/img/ghost-reception.webp"); }
.js .slide:not(.is-active) .slide-ghost { opacity: 0; }
.slide-dial {
  position: absolute; left: 55%; top: 56%; height: 134%; width: auto; aspect-ratio: 1; overflow: visible;
  translate: calc(-50% + var(--px, 0) * 16px) calc(-50% + var(--py, 0) * 16px);
  opacity: 0; scale: 0.94;
  transition: opacity 1.2s var(--ease-out), scale 1.8s var(--ease-out), translate 1.2s var(--ease-out);
}
.slide.is-active .slide-dial { opacity: 1; scale: 1; }
.slide-dial circle, .slide-dial line { fill: none; stroke: var(--deco); stroke-width: 0.8; }
.slide-dial .dial-ticks circle { stroke-width: 12; }
.slide-dial .dial-ticks .dial-ticks-long { stroke: var(--deco-strong); stroke-width: 24; }
.slide-dial .dial-dash { stroke: var(--deco-strong); stroke-dasharray: 4 7; stroke-linecap: round; }
.slide-dial .dial-faint { stroke-dasharray: 1 5; }
.slide-dial .dial-guide { stroke-dasharray: 5 7; }
.slide-dial .dial-node { fill: var(--deco-strong); stroke: none; }
.dial-ticks, .dial-dash { transform-box: view-box; transform-origin: 0 0; }
.dial-ticks { animation: dial-turn 240s linear infinite; }
.dial-dash { animation: dial-turn 140s linear infinite reverse; }
@keyframes dial-turn { to { transform: rotate(360deg); } }

.slide-title {
  font-size: clamp(2.25rem, 4.3vw, 4.25rem); line-height: 1.17; font-weight: 750;
  letter-spacing: -0.038em; text-wrap: balance;
}
/* 영문 제목: 위드의원 사이트의 세리프 대문자 제목 */
.slide-kicker { margin-bottom: 20px; font-family: var(--serif); font-size: clamp(0.9375rem, 1.15vw, 1.0625rem); font-weight: 600; letter-spacing: 0.26em; color: var(--accent-ink); }
.slide[data-theme="deep"] .slide-kicker { color: #c7b48f; }
.slide-title.is-latin { font-family: var(--serif); font-size: clamp(2.5rem, 4.2vw, 4.5rem); font-weight: 500; line-height: 1.04; letter-spacing: 0.005em; }
@media (min-width: 961px) { .slide-title.is-latin { text-wrap: nowrap; } } /* 넓은 화면에서는 문구 한 줄이 끊기지 않게 */
.slide-text { margin-top: 24px; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.65; max-width: 30em; }
.slide .btn-row { margin-top: 40px; }
.slide-copy > * { transition: transform 1s var(--ease-out), opacity 1s var(--ease-out); }
.js .slide:not(.is-active) .slide-copy > * { transform: translateY(26px); opacity: 0; }
.slide.is-active .slide-copy > :nth-child(2) { transition-delay: 0.08s; }
.slide.is-active .slide-copy > :nth-child(3) { transition-delay: 0.16s; }

.slide-copy { position: relative; z-index: 1; }
.slide-photo {
  position: relative; margin: 0; align-self: end; justify-self: end;
  width: calc(100% + var(--hero-pad)); margin-right: calc(-1 * var(--hero-pad)); margin-bottom: calc(-1 * (var(--hero-pad) + 56px));
  aspect-ratio: 1.02; max-height: calc(100% + var(--hero-pad) + 56px - 32px);
  border-top-left-radius: var(--radius-lg); overflow: hidden; background: var(--mist-2);
}
.slide-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform: scale(1.05); transition: transform 1.8s var(--ease-out); }
.slide.is-active .slide-photo img { transform: none; }
.slide[data-theme="deep"] .slide-photo img { object-position: 46% 18%; }
.slide[data-theme="mist"] .slide-photo img { object-position: 42% 22%; }


/* thin corner marks on the photo, like a viewfinder */
.photo-frame { position: absolute; inset: 22px; pointer-events: none; opacity: 0.55; }
.photo-frame::before, .photo-frame::after, .photo-frame i::before, .photo-frame i::after { content: ""; position: absolute; width: 20px; height: 20px; border: 0 solid var(--accent-ink); }
.photo-frame::before { left: 0; top: 0; border-width: 1.5px 0 0 1.5px; }
.photo-frame::after { right: 0; top: 0; border-width: 1.5px 1.5px 0 0; }
.photo-frame i::before { left: 0; bottom: 0; border-width: 0 0 1.5px 1.5px; }
.photo-frame i::after { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; }

.photo-caption {
  position: absolute; left: 24px; bottom: 24px;
  padding: 12px 18px; border-radius: 20px;
  background: #fff; color: var(--ink); font-size: 0.875rem; line-height: 1.45;
  box-shadow: 0 18px 34px -18px rgba(27, 28, 32, 0.55);
}
.photo-caption strong { display: block; font-size: 1rem; font-weight: 750; letter-spacing: -0.02em; }

.hero-controls {
  position: absolute; z-index: 2; left: var(--hero-pad); bottom: clamp(28px, 3.6vw, 52px);
  display: flex; align-items: center; gap: 12px; color: #fff;
  transition: color 0.6s var(--ease-out);
}
.hero-card[data-active-theme="sand"] .hero-controls, .hero-card[data-active-theme="mist"] .hero-controls { color: var(--ink); }
.ctrl {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid currentColor; color: inherit;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.ctrl .icon { width: 20px; height: 20px; }
.ctrl:hover { background: rgba(255, 255, 255, 0.16); }
.hero-card[data-active-theme="sand"] .ctrl:hover, .hero-card[data-active-theme="mist"] .ctrl:hover { background: rgba(31, 31, 31, 0.08); }
.ctrl-toggle { border-color: transparent; }
.counter { display: flex; align-items: center; gap: 12px; font-weight: 650; font-variant-numeric: tabular-nums; font-size: 0.9375rem; }
.counter b { font-weight: 800; }
.counter-bar { position: relative; width: 96px; height: 2px; background: color-mix(in srgb, currentColor 30%, transparent); overflow: hidden; border-radius: 999px; }
.counter-bar span { position: absolute; inset: 0; background: currentColor; transform: scaleX(0); transform-origin: left; }

/* ---------- section titles ---------- */
.section-head { display: grid; }
.section-head.center { text-align: center; justify-items: center; }
.section-title { font-size: clamp(2rem, 3.5vw, 3.25rem); line-height: 1.24; font-weight: 750; letter-spacing: -0.038em; text-wrap: balance; }
.section-lead { margin-top: 20px; max-width: 38em; font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); color: var(--ink-2); }
/* 섹션 번호줄 (01 · OUR PHILOSOPHY)과 필기체 한 줄 (Skin, as it is) */
.section-kicker { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 22px; font-family: var(--serif); font-size: 1.0625rem; font-weight: 600; letter-spacing: 0.22em; color: var(--accent-ink); }
.section-kicker::before { content: ""; width: 32px; height: 1px; background: currentColor; opacity: 0.7; }
.section-head.center .section-kicker::after { content: ""; width: 32px; height: 1px; background: currentColor; opacity: 0.7; }
.script-line { margin-bottom: 10px; font-family: var(--serif); font-style: italic; font-size: clamp(1.625rem, 2.6vw, 2.375rem); font-weight: 500; color: var(--accent-ink); }

/* ---------- promise ---------- */
.promise { padding-block: clamp(40px, 5vw, 80px) clamp(96px, 11vw, 160px); }
.promise-list { margin-top: 56px; border-top: 1.5px solid var(--ink); }
.promise-list li {
  position: relative; display: grid; grid-template-columns: clamp(160px, 17vw, 248px) minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px clamp(28px, 4vw, 72px); align-items: center;
  padding: clamp(32px, 3.6vw, 48px) 0; border-bottom: 1px solid var(--line);
}
.promise-list li::before {
  content: ""; position: absolute; left: 0; top: -1.5px; height: 3px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out);
}
.promise-list li.is-in::before, .promise-list li:hover::before { transform: scaleX(1); }
.promise-head { font-size: clamp(1.625rem, 2.7vw, 2.5rem); font-weight: 750; line-height: 1.3; letter-spacing: -0.035em; text-wrap: balance; }
.promise-body { font-size: 1.0625rem; color: var(--ink-2); max-width: 30em; }
.promise-en { font-family: var(--serif); font-style: italic; font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.3; color: var(--accent-ink); }
.promise-photo { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.promise-photo figcaption { position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); font-size: 0.75rem; font-weight: 650; color: var(--ink-2); }
.promise-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.promise-list li:hover .promise-photo img { transform: scale(1.06); }
.js .promise-photo { clip-path: inset(0 100% 0 0 round var(--radius)); transition: clip-path 1.3s var(--ease-out) 0.1s; }
.js .promise-list li.is-in .promise-photo { clip-path: inset(0 0 0 0 round var(--radius)); }

/* ---------- program ---------- */
.program { position: relative; overflow: hidden; padding-block: clamp(96px, 11vw, 160px); background: var(--mist); border-radius: var(--radius-lg); margin-inline: var(--inset); --deco: rgba(138, 113, 83, 0.16); --deco-strong: rgba(138, 113, 83, 0.42); }
.program > .container { position: relative; z-index: 1; }
/* the section's own field: a light, a dot grid, and the dial behind the photo */
.program-deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.program-deco::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 8% 12%, rgba(255, 255, 255, 0.85), transparent 64%),
    radial-gradient(50% 60% at 96% 90%, rgba(167, 141, 112, 0.18), transparent 70%);
}
.program-deco::after {
  content: ""; position: absolute; inset: -24px;
  background: radial-gradient(circle, var(--deco-strong) 1px, transparent 1.6px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(38% 42% at 18% 88%, var(--night), transparent 72%);
  mask-image: radial-gradient(38% 42% at 18% 88%, var(--night), transparent 72%);
  opacity: 0.5;
}
.program-dial { left: 66%; top: 58%; height: 150%; opacity: 1; scale: 1; translate: -50% -50%; }
.tabs {
  margin-top: 48px; display: flex; border-bottom: 2px solid var(--line);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: 1 0 auto; min-width: 104px; padding: 18px 20px;
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem); font-weight: 700; letter-spacing: -0.02em; color: var(--ink-3);
  transition: color 0.3s var(--ease-out);
}
.tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--ink);
  transform: scaleX(0); transition: transform 0.5s var(--ease-out);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.panels { margin-top: clamp(40px, 5vw, 64px); }
.panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px); align-items: center;
}
.panel[hidden] { display: none; }
.panel:focus-visible { outline-offset: 8px; }
.panel.is-entering .panel-copy > * { animation: rise 0.9s var(--ease-out) both; }
.panel.is-entering .panel-copy > :nth-child(2) { animation-delay: 0.06s; }
.panel.is-entering .panel-copy > :nth-child(3) { animation-delay: 0.12s; }
.panel.is-entering .panel-copy > :nth-child(4) { animation-delay: 0.18s; }
.panel.is-entering .panel-figure { animation: unveil 1.1s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes unveil { from { clip-path: inset(0 0 0 100% round var(--radius-lg)); } to { clip-path: inset(0 0 0 0 round var(--radius-lg)); } }
.panel-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.02em; color: var(--accent-ink); }
.panel-kicker b { font-weight: 800; font-variant-numeric: tabular-nums; }
.panel-kicker b::after { content: ""; display: inline-block; width: 28px; height: 1.5px; margin: 0 0 4px 12px; background: var(--accent-ink); opacity: 0.6; }
.panel-title { font-size: clamp(1.625rem, 2.7vw, 2.5rem); line-height: 1.27; font-weight: 750; letter-spacing: -0.037em; text-wrap: balance; }
.panel-text { margin-top: 20px; max-width: 32em; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips a, .chips button {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 0.9375rem; font-weight: 650; letter-spacing: -0.01em;
  transition: border-color 0.25s var(--ease-out), color 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}
.chips a:hover, .chips button:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.chips .chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 0.9375rem; font-weight: 650; letter-spacing: -0.01em;
}
.chips .chip i { font-family: var(--serif); font-style: italic; font-size: 0.9375rem; font-weight: 500; color: var(--ink-3); }
.panel-en { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 1.8vw, 1.5rem); color: var(--accent-ink); }
.panel .btn-row { margin-top: 32px; }
.panel-figure { position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius-lg); overflow: hidden; background: var(--mist-2); box-shadow: 0 40px 80px -50px rgba(27, 28, 32, 0.55); }
.panel-figure .photo-frame { inset: 18px; }
.panel-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 20%; }
.panel-figure figcaption {
  position: absolute; left: 20px; bottom: 20px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); font-size: 0.8125rem; font-weight: 650; color: var(--ink-2);
}
.panel-nav { display: flex; align-items: center; gap: 10px; margin-top: 48px; }
.panel-nav .counter { margin-right: 12px; color: var(--ink); }
.ctrl-line { border-color: var(--line); color: var(--ink); background: #fff; }
.ctrl-line:hover { border-color: var(--ink); background: #fff; }
.program-note { margin-top: 20px; font-size: 0.875rem; color: var(--ink-3); }

/* ---------- doctor ---------- */
.doctor { padding-block: clamp(96px, 11vw, 170px); background: #fff; }
.doctor-inner {
  display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(40px, 6vw, 112px); align-items: center;
}
.doctor-photo {
  position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--mist-2); outline: 1px solid var(--accent); outline-offset: 16px;
}
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 18%; }
.js .doctor-photo img { clip-path: inset(10% 10% 10% 10% round 28px); transform: scale(1.06); transition: clip-path 1.4s var(--ease-out), transform 1.6s var(--ease-out); }
.js .doctor-photo.is-in img { clip-path: inset(0 0 0 0 round 0); transform: none; }
.doctor-title { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.2; font-weight: 750; letter-spacing: -0.04em; text-wrap: balance; }
.doctor-name { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 1.25rem; }
.doctor-name strong { font-size: clamp(1.375rem, 2.2vw, 1.875rem); font-weight: 800; letter-spacing: -0.02em; }
.doctor-name span { padding: 4px 12px; border: 1px solid var(--ink); border-radius: 999px; font-size: 0.875rem; font-weight: 650; }
.doctor-text { margin-top: 20px; max-width: 33em; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); color: var(--ink-2); }
.doctor-focus { margin-top: 8px; font-size: 0.9375rem; font-weight: 600; color: var(--accent-ink); }
.cred {
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px;
}
.cred li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 0.9375rem; }
.cred li::before { content: ""; flex: none; align-self: center; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.verify { padding: 2px 10px; border-radius: 999px; background: #fff1bf; color: #5c4300; font-size: 0.8125rem; font-weight: 700; }
.doctor .btn-row { margin-top: 36px; }
.doctor-more {
  margin-top: 32px; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px; align-items: center;
  padding: 16px 20px 16px 16px; border-radius: var(--radius); background: var(--mist);
}
.doctor-more { transition: background-color 0.25s var(--ease-out), transform 0.4s var(--ease-out); }
.doctor-more:hover { background: var(--sand); transform: translateY(-2px); }
.doctor-more img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
.doctor-more strong { display: block; font-size: 1.0625rem; font-weight: 750; letter-spacing: -0.02em; }
.doctor-more strong small { margin-left: 8px; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.doctor-more p { margin-top: 2px; font-size: 0.875rem; line-height: 1.55; color: var(--ink-2); }

/* ---------- statement ---------- */
.statement {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(112px, 13vw, 210px); background: #fff; color: var(--ink); text-align: center;
}
.statement-glyph { position: absolute; z-index: -1; left: 50%; top: 50%; translate: -50% -50%; width: min(80vw, 1000px); height: auto; pointer-events: none; }
.statement-glyph text { font-family: var(--serif); font-size: 96px; font-weight: 500; fill: rgba(167, 141, 112, 0.2); }
.statement-line { font-family: var(--serif); font-style: italic; font-size: clamp(3rem, 8vw, 7rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); }
.statement-line span { color: #8a7153; }
.statement-sub { margin-top: 28px; font-family: var(--serif); font-size: clamp(1rem, 1.3vw, 1.1875rem); font-weight: 600; letter-spacing: 0.22em; color: var(--accent-ink-600); }

/* ---------- 상담팀 ---------- */
.team { padding-block: clamp(96px, 11vw, 160px); background: var(--stone); border-radius: var(--radius-lg); margin: clamp(56px, 7vw, 96px) var(--inset) 0; }
.team-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 112px); align-items: center; }
.team-role { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 6px; max-width: 34em; }
.team-role strong { font-size: 1.25rem; font-weight: 750; letter-spacing: -0.02em; }
.team-role span { color: var(--ink-2); }
.team .btn-row { margin-top: 36px; }
.team-photo { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.js .team-photo img { clip-path: inset(0 0 0 100%); transition: clip-path 1.3s var(--ease-out); } /* 관찰 대상(figure)이 아니라 안쪽 사진을 가린다: 가린 요소는 화면에 보이는 것으로 잡히지 않는다 */
.js .team-photo.is-in img { clip-path: inset(0 0 0 0); }

/* ---------- 공간 갤러리: 가운데 맞춤 가로 넘김 ---------- */
.space { margin-top: clamp(96px, 11vw, 160px); padding-block: clamp(96px, 11vw, 160px); overflow: hidden; background: var(--deep); color: #fff; }
.space .section-kicker { color: var(--gold); }
.space .section-lead { color: #b8b8bb; }
.space .ctrl-line { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.space .ctrl-line:hover { background: #fff; border-color: #fff; color: var(--ink); }
.space-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 40px; }
.gallery-nav { display: flex; align-items: center; gap: 10px; }
.gallery-count { margin-right: 10px; font-weight: 650; font-variant-numeric: tabular-nums; color: #aaa; }
.gallery-count b { color: #fff; font-weight: 800; }
.gallery-track {
  --side: max(var(--gutter), (100vw - var(--maxw)) / 2);
  margin-top: 48px; display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 860px); column-gap: clamp(14px, 2vw, 28px);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--side); scroll-padding-inline: var(--side);
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track li { scroll-snap-align: start; }
.gallery-track figure { aspect-ratio: 3 / 2; border-radius: var(--radius-lg); overflow: hidden; background: var(--deep-900); }
.gallery-track img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- visit ---------- */
.visit { padding-block: clamp(96px, 11vw, 160px); background: var(--deep); color: #fff; border-top: 1px solid var(--dark-line); }
.visit .section-kicker { color: var(--gold); }
/* 차콜 띠 위의 정보표 (원래 사이트의 연락처 구역 색) */
.visit .visit-info { border-top: 1px solid var(--dark-line); }
.visit .visit-info div { border-bottom-color: var(--dark-line); }
.visit .visit-info dt { font-weight: 650; color: var(--dark-label); }
.visit .visit-info dd small { color: #aaa; }
.visit .hours span:first-child { color: var(--dark-text); }
.visit .tel { color: var(--gold); }
.visit .btn-dark { background: var(--accent); color: var(--ink); }
.visit .btn-dark:hover { background: #fff; color: var(--ink); }
.visit .btn-outline { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.visit .btn-outline:hover { background: #fff; border-color: #fff; color: var(--ink); }
.visit-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.visit-info { margin-top: 40px; border-top: 1.5px solid var(--ink); }
.visit-info div { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.visit-info dt { font-weight: 750; }
.visit-info dd small { display: block; margin-top: 4px; font-size: 0.875rem; color: var(--ink-3); }
.hours { display: flex; gap: 16px; font-variant-numeric: tabular-nums; }
.hours span:first-child { flex: none; width: 72px; color: var(--ink-2); }
html[lang="en"] .hours span:first-child, html[lang="zh-CN"] .hours span:first-child { width: 136px; } /* Wed · Thu · Fri, 周三 · 周四 · 周五 */
.tel { font-size: clamp(1.375rem, 2.2vw, 1.875rem); font-weight: 800; letter-spacing: -0.02em; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.tel:hover { text-decoration: underline; }
.visit .btn-row { margin-top: 36px; }
.visit-photo { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--deep-900); }
.visit-photo img { width: 100%; height: auto; }
.visit-photo figcaption {
  position: absolute; left: 20px; bottom: 20px; padding: 12px 18px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.94); font-size: 0.875rem; line-height: 1.5; color: var(--ink-2);
}
.visit-photo figcaption b { display: block; font-family: var(--serif); font-size: 1.125rem; font-weight: 600; letter-spacing: 0.1em; color: var(--ink); }
.js .visit-photo img { clip-path: inset(0 0 0 100%); transition: clip-path 1.3s var(--ease-out); }
.js .visit-photo.is-in img { clip-path: inset(0 0 0 0); }

/* ---------- cta ---------- */
.cta { padding: clamp(24px, 3vw, 40px) var(--inset) clamp(56px, 6vw, 96px); background: var(--deep); }
.cta-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 40px; align-items: end;
  padding: clamp(48px, 7vw, 112px); border-radius: var(--radius-lg);
  background: #2e2f34; color: #fff; border: 1px solid var(--dark-line);
}
.cta-card::before, .cta-card::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18);
}
/* two concentric rings kept to the top-right corner, clear of the text and the buttons */
.cta-card::before { width: 400px; height: 400px; right: -150px; top: -250px; }
.cta-card::after { width: 260px; height: 260px; right: -80px; top: -180px; border-color: rgba(255, 255, 255, 0.12); }
.cta-title { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.22; font-weight: 750; letter-spacing: -0.038em; text-wrap: balance; }
.cta-text { margin-top: 20px; max-width: 32em; font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); }
.cta-actions { display: grid; gap: 12px; }
.cta-actions .btn-white { color: var(--deep); }
.cta-actions .btn-kakao, .cta-actions .btn-white { border-color: transparent; }
.cta-fine { text-align: center; font-size: 0.875rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); color: var(--dark-text); padding-block: 64px 56px; margin-top: 0; border-top: 1px solid var(--dark-line); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-sns { display: flex; gap: 10px; }
.footer-sns a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); color: #fff; transition: background-color 0.25s var(--ease-out);
}
.footer-sns a:hover { background: var(--accent); color: #fff; }
.footer-sns .icon { width: 22px; height: 22px; }
.footer-info { margin-top: 36px; font-size: 0.875rem; line-height: 1.95; }
.footer-info span { display: inline-block; }
.footer-info span + span::before {
  content: ""; display: inline-block; width: 1px; height: 11px; margin: 0 12px; vertical-align: -1px;
  background: rgba(255, 255, 255, 0.25);
}
.footer-info br + span::before { display: none; }
.footer-links { margin-top: 18px; display: flex; gap: 20px; font-size: 0.875rem; font-weight: 700; color: #fff; }
.footer-links a:hover { text-decoration: underline; }
.footer-notice { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--dark-line); font-size: 0.8125rem; color: #9a9b9f; }
.footer-copy { margin-top: 10px; font-size: 0.8125rem; color: #9a9b9f; }

/* ---------- quick menu (PC) ---------- */
.quick { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: grid; justify-items: end; gap: 12px; transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out); }
.quick.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
.quick-toggle {
  display: grid; place-items: center; align-content: center; gap: 2px;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: var(--ink); font-size: 0.75rem; font-weight: 750;
  box-shadow: 0 0 0 3px #fff, 0 16px 30px -12px rgba(138, 113, 83, 0.75);
  transition: background-color 0.3s var(--ease-out), transform 0.4s var(--ease-out);
}
.quick-toggle:hover { background: #b89e81; transform: translateY(-2px); }
.quick-toggle .icon { width: 24px; height: 24px; }
.quick-toggle .icon-close, .quick-toggle[aria-expanded="true"] .icon-open { display: none; }
.quick-toggle[aria-expanded="true"] .icon-close { display: block; }
.quick-list {
  display: grid; gap: 2px; padding: 8px; border-radius: 20px; background: #fff;
  border: 1px solid var(--line-2); box-shadow: 0 26px 50px -22px rgba(27, 28, 32, 0.45);
  transform-origin: bottom right; animation: pop 0.4s var(--ease-out);
}
.quick-list[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.96); } }
.quick-list a {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px;
  border-radius: 12px; font-size: 0.9375rem; font-weight: 650;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.quick-list a:hover { background: var(--mist); color: var(--accent-ink); }
.quick-list .icon { width: 22px; height: 22px; color: var(--accent-ink); }

/* ---------- mobile bar ---------- */
.mobile-bar { display: none; }

/* ---------- first-visit intro (once a day, like the reference) ----------
   The reception wall pushes in slowly under a charcoal veil, the line types in one character at a time,
   holds, then the whole layer slides off to the left (ease-in: it leaves, it does not arrive). */
.intro { display: none; }
.intro-on .intro {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 0 var(--gutter);
  background: var(--deep); color: #fff; overflow: hidden; touch-action: none;
  transition: transform 1s cubic-bezier(0.55, 0.055, 0.675, 0.19);
  animation: intro-failsafe 0.6s var(--ease-out) 7s both; /* if the script never runs, get out of the way */
}
.intro.is-armed { animation: none; }
.intro.is-leaving { transform: translateX(-100%); }
.intro::after { content: ""; position: absolute; inset: 0; background: rgba(27, 28, 32, 0.55); }
.intro-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.9s var(--ease-out);
}
.intro-bg.is-loaded { opacity: 1; }
.intro.is-playing .intro-bg { animation: intro-push 4.6s linear both; }
.intro-line {
  position: relative; z-index: 1; text-align: center;
  font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 750; line-height: 1.3; letter-spacing: -0.038em;
}
.intro-br { display: none; }
.intro-word { display: inline-block; white-space: nowrap; }
.intro-ch { display: inline-block; opacity: 0; transform: translateY(20px); }
.intro.is-typing .intro-ch { animation: intro-char 0.24s var(--ease-out) forwards; animation-delay: calc(var(--i) * 80ms); }
@keyframes intro-char { to { opacity: 1; transform: none; } }
@keyframes intro-push { from { transform: scale(1.02); } to { transform: scale(1.1); } }
@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; } }
.intro-lock { overflow: hidden; }
/* the first hero slide waits behind the intro and makes its entrance once the intro is gone */
.intro-hold .slide.is-active .slide-copy > * { transform: translateY(26px); opacity: 0; }
.intro-hold .slide.is-active .slide-photo img { transform: scale(1.05); }
@media (max-width: 768px) {
  .intro-bg { object-position: 50% 50%; } /* keep the logo wall in a portrait frame */
  .intro-br { display: inline; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .gnb { display: none; }
  .menu-btn { display: inline-grid; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 960px) {
  .promise-list li { grid-template-columns: clamp(140px, 22vw, 200px) minmax(0, 1fr); }
  .promise-body { grid-column: 2; }
  .hero-card { height: auto; min-height: 0; max-height: none; --hero-pad: clamp(28px, 6vw, 48px); }
  .slide { grid-template-columns: 1fr; align-content: start; gap: 28px; padding-top: 0; padding-bottom: 44px; }
  .slide-photo { order: -1; justify-self: stretch; width: auto; max-height: none; margin: 0 calc(-1 * var(--hero-pad)); aspect-ratio: 5 / 4; border-radius: 0; }
  .photo-caption { left: 16px; bottom: 16px; padding: 8px 14px; font-size: 0.8125rem; }
  .photo-frame { display: none; } /* the slider controls sit on the photo here */
  .slide-dial { left: 96%; top: 84%; height: auto; width: min(170vw, 980px); }
  .slide-dial .dial-node { display: none; } /* a node would land on the copy */
  .slide-deco::after { -webkit-mask-image: radial-gradient(60% 34% at 20% 80%, var(--night), transparent 72%); mask-image: radial-gradient(60% 34% at 20% 80%, var(--night), transparent 72%); }
  .photo-caption strong { font-size: 0.875rem; }
  .hero-card .hero-controls, .hero-card[data-active-theme] .hero-controls {
    top: 14px; right: 14px; left: auto; bottom: auto; gap: 2px; padding: 3px; border-radius: 999px;
    background: rgba(31, 31, 31, 0.58); color: #fff;
  }
  .hero-controls .ctrl { width: 36px; height: 36px; border-color: transparent; }
  .hero-controls .ctrl-toggle { display: none; }
  .hero-controls .counter { gap: 6px; font-size: 0.8125rem; }
  .hero-controls .counter-bar { width: 32px; }
  .panel { grid-template-columns: 1fr; }
  .panel-figure { order: -1; aspect-ratio: 4 / 3; }
  .doctor-inner, .team-inner, .visit-grid, .cta-card { grid-template-columns: 1fr; }
  .team-photo { order: -1; width: min(100%, 460px); }
  .doctor-photo { width: min(100%, 460px); }
  .cta-card { align-items: start; }
  .cta-card::before { display: none; } /* one small ring on phones, above the title's right edge */
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .brand-mark { width: 36px; height: 36px; }
  .brand-word b { font-size: 1.1875rem; }
  .header-actions .btn-sm, .header-actions .lang-switch { display: none; }
  .br-m { display: inline; }
  .slide-text br { display: none; }
  .slide-title.is-latin { font-size: clamp(2.125rem, 10.4vw, 2.75rem); }
  .slide .btn-row { margin-top: 28px; }
  .slide .btn-row .btn { flex: 1 1 100%; }
  .promise-list li { grid-template-columns: 1fr; align-items: start; }
  .promise-body { grid-column: auto; }
  .promise-photo { aspect-ratio: 16 / 9; }
  .cred { grid-template-columns: 1fr; }
  .statement-glyph { width: 130vw; }
  .visit-info div { grid-template-columns: 84px 1fr; }
  .cta-actions .btn { width: 100%; }
  .footer-info br { display: none; }
  .footer-info span { display: block; }
  .footer-info span + span::before { display: none; }
  .quick { display: none; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
    background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a {
    display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 64px;
    font-size: 0.75rem; font-weight: 650; color: var(--ink-2);
  }
  .mobile-bar a.is-primary { background: var(--kakao); color: #191919; }
  .mobile-bar .icon { width: 22px; height: 22px; }
}

@media (max-width: 420px) {
  .hero-controls .ctrl-toggle { display: none; }
  .tab { min-width: 88px; padding: 16px 12px; }
  .gallery-track { grid-auto-columns: 86vw; }
}

@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; }
  .js .slide:not(.is-active) .slide-copy > * { transform: none; }
  .dial-ticks, .dial-dash { animation: none; }
  .js .doctor-photo img { clip-path: none; transform: none; }
  .js .promise-photo { clip-path: none; }
  .js .team-photo img, .js .visit-photo img { clip-path: none; }
}
