/* ============================================================
   마음사랑 정신건강의학과 — Design System v1.0
   3,000만 원급 의료기관 사이트 기준
   김팀장 (Maeumsarang Psychiatric Clinic)
   ============================================================ */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

/* ─── 0. Design Tokens ─────────────────────────────────────── */
:root {
  /* Brand · Sage */
  --sage-50:  #F2F6F4;
  --sage-100: #E0EAE6;
  --sage-200: #C1D5CE;
  --sage-300: #A1C0B5;
  --sage-400: #8DB1A6;
  --sage-500: #7BA098;   /* PRIMARY */
  --sage-600: #5E8278;
  --sage-700: #466258;
  --sage-900: #2A3A36;

  /* Brand · Beige */
  --beige-50:  #FAF7F0;
  --beige-100: #F5EFE0;
  --beige-200: #E8DCC4;
  --beige-300: #D7C5A0;

  /* Brand · Navy (heading / accent) */
  --navy-700: #2E3F52;
  --navy-800: #1F2D3D;   /* HEADING */
  --navy-900: #0F1620;

  /* Neutral */
  --white:     #FFFFFF;
  --off-white: #FAFAF7;
  --gray-50:   #F4F4F1;
  --gray-100:  #E8E8E3;
  --gray-200:  #D1D1CA;
  --gray-300:  #B0B0A8;
  --gray-500:  #7E7E76;
  --gray-700:  #4A5258;
  --gray-900:  #2A2D31;

  /* Semantic */
  --text-heading:   var(--navy-800);
  --text-body:      var(--gray-700);
  --text-muted:     var(--gray-500);
  --bg-page:        var(--off-white);
  --bg-card:        var(--white);
  --bg-soft:        var(--beige-50);
  --border:         var(--gray-100);
  --link:           var(--sage-600);

  /* Typography */
  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
               system-ui, 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --font-serif: 'Nanum Myeongjo', 'Noto Serif KR', Georgia, serif;

  --fs-xs:      0.75rem;     /* 12 */
  --fs-sm:      0.875rem;    /* 14 */
  --fs-base:    1rem;        /* 16 */
  --fs-lg:      1.125rem;    /* 18 */
  --fs-xl:      1.25rem;     /* 20 */
  --fs-2xl:     1.5rem;      /* 24 */
  --fs-3xl:     1.875rem;    /* 30 */
  --fs-4xl:     2.25rem;     /* 36 */
  --fs-5xl:     3rem;        /* 48 */
  --fs-6xl:     3.75rem;     /* 60 */
  --fs-display: clamp(2.5rem, 5vw, 4rem);

  --lh-tight:   1.2;
  --lh-snug:    1.4;
  --lh-normal:  1.6;
  --lh-relaxed: 1.75;
  --lh-loose:   1.9;

  --tracking-tight:  -0.02em;
  --tracking-normal: 0;
  --tracking-wide:   0.05em;

  /* Spacing (8px base) */
  --sp-1:  0.25rem;   --sp-2:  0.5rem;    --sp-3:  0.75rem;
  --sp-4:  1rem;      --sp-5:  1.25rem;   --sp-6:  1.5rem;
  --sp-8:  2rem;      --sp-10: 2.5rem;    --sp-12: 3rem;
  --sp-16: 4rem;      --sp-20: 5rem;      --sp-24: 6rem;
  --sp-32: 8rem;      --sp-40: 10rem;

  /* Radius */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;

  /* Shadow */
  --shadow-xs: 0 1px 2px rgba(31, 45, 61, 0.04);
  --shadow-sm: 0 2px 8px rgba(31, 45, 61, 0.06);
  --shadow-md: 0 6px 20px rgba(31, 45, 61, 0.08);
  --shadow-lg: 0 16px 40px rgba(31, 45, 61, 0.10);
  --shadow-xl: 0 24px 60px rgba(31, 45, 61, 0.12);

  /* Premium card shadows — 3,000만 원급 그림자 시스템 */
  --shadow-card:      0 1px 2px rgba(31,45,61,0.04), 0 6px 24px rgba(31,45,61,0.06);
  --shadow-card-hov:  0 2px 4px rgba(31,45,61,0.05), 0 20px 40px rgba(31,45,61,0.12), 0 0 0 1px rgba(123,160,152,0.12);
  --shadow-sage:      0 8px 24px rgba(123,160,152,0.22);
  --shadow-elevated:  0 24px 60px rgba(31,45,61,0.12), 0 8px 20px rgba(31,45,61,0.06);
  --ring-sage:        0 0 0 4px rgba(123,160,152,0.15);

  /* Transition */
  --t-fast:  150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base:  250ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow:  400ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-card:  340ms cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --container:    1200px;
  --container-sm: 880px;
  --header-h:     76px;
}

/* ─── 1. Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;            /* 가로 스크롤 차단 */
}
body {
  font-family: var(--font-sans);
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--text-body);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02";
  text-rendering: optimizeLegibility;
  overflow-x: hidden;            /* 가로 스크롤 차단 */
  max-width: 100vw;              /* viewport 안전 */
  width: 100%;
}
img, svg, picture, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}

/* ─── 2. Layout primitives ────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.container--sm { max-width: var(--container-sm); }

.section { padding: var(--sp-20) 0; }
.section--lg { padding: var(--sp-32) 0; }
.section--alt { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage-600);
  margin-bottom: var(--sp-4);
}
.section-title {
  font-size: clamp(2rem, 3.5vw, var(--fs-4xl));
  color: var(--text-heading);
  margin-bottom: var(--sp-6);
  letter-spacing: var(--tracking-tight);
}
.section-lead {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  max-width: 640px;
  line-height: var(--lh-relaxed);
}

/* ─── 3. Header ───────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: border-color var(--t-base), background var(--t-base);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.95);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--sage-500);
  flex-shrink: 0;
}
.brand__symbol { width: 40px; height: 40px; }
.brand__text {
  display: flex; flex-direction: column; line-height: 1;
}
.brand__text strong {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}
.brand__text small {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 3px;
}

.gnb { display: flex; align-items: center; gap: 2px; }
.gnb__item { position: relative; }
.gnb__link {
  position: relative;
  display: inline-block;
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.gnb__link:hover { color: var(--sage-600); background: var(--sage-50); }
.gnb__link.is-active { color: var(--sage-700); }

/* Dropdown submenu — hover bridge로 갭 없이 연결 */
.gnb__dropdown {
  position: absolute;
  top: 100%;            /* 메인 메뉴 바로 아래, 갭 없음 */
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 220px;
  /* 위쪽 padding이 hover bridge 역할 — 갭이지만 hover 영역에 포함됨 */
  padding: 14px var(--sp-2) var(--sp-2);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease-out, transform 180ms ease-out, visibility 180ms ease-out;
  z-index: 110;
}
/* 메인 메뉴 hover 시 + dropdown 자체 hover 시 모두 유지 */
.gnb__item:hover .gnb__dropdown,
.gnb__item:focus-within .gnb__dropdown,
.gnb__dropdown:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0ms;
}
/* 닫힐 때만 약간의 지연 — 우발적 hover 이탈 방어 */
.gnb__dropdown {
  transition-delay: 120ms;
}
.gnb__dropdown::before {
  content: '';
  position: absolute;
  top: 8px;            /* padding-top 영역 안에 배치 */
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 11px; height: 11px;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
/* 메인 메뉴와의 추가 hover bridge — 1px 겹침으로 끊김 완전 차단 */
.gnb__item > .gnb__link {
  position: relative;
}
.gnb__item > .gnb__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 10px;       /* 메인 메뉴 하단~dropdown 상단 영역까지 invisible bridge */
  background: transparent;
}
.gnb__dropdown-link {
  display: block;
  padding: 10px var(--sp-4);
  font-size: 0.875rem;
  color: var(--gray-700);
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), padding-left var(--t-fast);
}
.gnb__dropdown-link:hover {
  background: var(--sage-50);
  color: var(--sage-700);
  padding-left: calc(var(--sp-4) + 4px);
}

/* Page hero (간단한 콘텐츠 페이지용) — 컴팩트화 */
.page-hero {
  padding: calc(var(--header-h) + var(--sp-10)) 0 var(--sp-8);
  background:
    radial-gradient(60% 60% at 30% 0%, rgba(123, 160, 152, 0.10) 0%, transparent 70%),
    var(--bg-page);
  text-align: center;
}
.page-hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.page-hero__actions .btn { padding: 12px 20px; font-size: 0.9rem; }
.page-hero__breadcrumb {
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}
.page-hero__breadcrumb a:hover { color: var(--sage-600); }
.page-hero__title {
  font-size: clamp(2rem, 4vw, var(--fs-5xl));
  margin-bottom: var(--sp-4);
  letter-spacing: -0.035em;
}
.page-hero__lead {
  font-size: var(--fs-xl);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.55;
}

/* Prose (긴 본문) */
.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--gray-700);
}
.prose h2 {
  margin: var(--sp-12) 0 var(--sp-4);
  font-size: var(--fs-2xl);
  color: var(--text-heading);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: var(--sp-8) 0 var(--sp-3); font-size: var(--fs-xl); color: var(--text-heading); }
.prose h4 { margin: var(--sp-6) 0 var(--sp-2); font-size: var(--fs-lg); color: var(--sage-700); }
.prose p { margin-bottom: var(--sp-4); }
.prose ul, .prose ol {
  margin: var(--sp-4) 0;
  padding-left: var(--sp-6);
}
.prose ul { list-style: none; }
.prose ul li {
  position: relative;
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-2);
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.8em;
  width: 14px; height: 1px;
  background: var(--sage-500);
}
.prose ol li { margin-bottom: var(--sp-2); padding-left: var(--sp-2); }
.prose strong { color: var(--text-heading); font-weight: 600; }
.prose blockquote {
  margin: var(--sp-8) 0;
  padding: var(--sp-6) var(--sp-8);
  background: var(--bg-soft);
  border-left: 3px solid var(--sage-500);
  border-radius: var(--r-md);
  color: var(--text-heading);
  font-size: var(--fs-lg);
  font-style: italic;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose a { color: var(--sage-600); border-bottom: 1px solid var(--sage-200); }
.prose a:hover { color: var(--sage-700); border-color: var(--sage-500); }
.prose table {
  width: 100%;
  margin: var(--sp-6) 0;
  border-collapse: collapse;
  font-size: var(--fs-base);
}
.prose th, .prose td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.prose th { font-weight: 600; color: var(--text-heading); background: var(--bg-soft); }

/* Info card grid */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  margin: var(--sp-8) 0;
}
@media (min-width: 700px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
.info-grid--3 { grid-template-columns: 1fr; }
@media (min-width: 900px) { .info-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.info-card {
  padding: var(--sp-8) var(--sp-6);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.info-card__num {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--sage-500);
  opacity: 0.5;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-2);
}
.info-card h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-3); }
.info-card p { font-size: var(--fs-base); color: var(--gray-700); line-height: var(--lh-relaxed); }

/* Mobile dropdown — accordion */
@media (max-width: 900px) {
  .gnb.is-open .gnb__item { width: 100%; }
  .gnb.is-open .gnb__dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: 0;
    background: var(--bg-soft);
    padding: var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-8);
    margin-bottom: var(--sp-2);
    min-width: 0;
  }
  .gnb.is-open .gnb__dropdown::before { display: none; }
  .gnb.is-open .gnb__dropdown-link {
    padding: var(--sp-2) 0;
    font-size: var(--fs-sm);
  }
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 10px 18px;
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--r-full);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform var(--t-base), background var(--t-base);
}
.header-cta:hover { background: var(--sage-600); transform: translateY(-1px); }
.header-cta svg { width: 14px; height: 14px; }

.menu-toggle { display: none; }

/* ─── 4. Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 84vh;            /* 100vh → 84vh — 다음 섹션이 살짝 보여 스크롤 유도 */
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  padding-bottom: var(--sp-12);
  background:
    radial-gradient(60% 50% at 20% 30%, rgba(123, 160, 152, 0.16) 0%, transparent 70%),
    radial-gradient(50% 40% at 80% 70%, rgba(232, 220, 196, 0.4) 0%, transparent 70%),
    linear-gradient(180deg, var(--off-white) 0%, var(--beige-50) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(31, 45, 61, 0.04) 1px, transparent 0);
  background-size: 32px 32px;
  opacity: 0.5;
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-16);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.2fr 1fr; gap: var(--sp-20); }
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--sage-600);
  margin-bottom: var(--sp-6);
}
.hero__eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--sage-400);
}
.hero__title {
  font-size: var(--fs-display);
  line-height: 1.25;
  letter-spacing: -0.035em;
  color: var(--text-heading);
  margin-bottom: var(--sp-6);
  font-weight: 600;
}
.hero__title em {
  font-style: normal;
  color: var(--sage-600);
  position: relative;
}
.hero__lead {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--gray-700);
  margin-bottom: var(--sp-10);
  max-width: 520px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}
.hero__meta {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  letter-spacing: -0.01em;
}
.hero__meta strong { color: var(--text-heading); font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 16px 28px;
  border-radius: var(--r-full);
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform var(--t-base), box-shadow var(--t-base), background var(--t-base);
  white-space: nowrap;
}
.btn--primary {
  background: var(--navy-800);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  background: var(--sage-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn--ghost {
  background: transparent;
  color: var(--text-heading);
  border: 1.5px solid var(--gray-200);
}
.btn--ghost:hover {
  border-color: var(--sage-500);
  color: var(--sage-700);
}
.btn--sage {
  background: var(--sage-500);
  color: var(--white);
}
.btn--sage:hover { background: var(--sage-600); transform: translateY(-2px); }

.btn svg { width: 18px; height: 18px; }

.hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--sage-100) 0%, var(--beige-100) 100%);
  box-shadow: var(--shadow-xl);
}
.hero__visual::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.6) 0%, transparent 60%);
}
.hero__visual-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__visual-art svg {
  width: 60%;
  height: auto;
  color: var(--sage-500);
  opacity: 0.85;
}

.hero__visual.hero__visual--photo {
  aspect-ratio: 4 / 5;
  background: var(--white);
}
.hero__visual--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero__visual--photo::after {
  background: linear-gradient(180deg, transparent 62%, rgba(31,45,61,0.10));
  pointer-events: none;
}

.about-split,
.doctor-profile,
.christian-intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: var(--sp-12);
  align-items: start;
}
/* ════════════════════════════════════════════════════════════
   IMAGE FRAME SYSTEM — 모든 이미지 카드의 베이스
   premium 프레임 + 호버 인터랙션 + 부드러운 줌
   ════════════════════════════════════════════════════════════ */
.about-photo,
.doctor-profile__photo,
.christian-symbol,
.facility-card,
.image-frame {
  position: relative;
  overflow: hidden;
  background: var(--white);                  /* 흰색 배경으로 밝게 */
  border: 1px solid rgba(31,45,61,0.04);     /* 보더 더 옅게 */
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  transition: transform var(--t-card), box-shadow var(--t-card), border-color var(--t-card);
  margin: 0;
}
/* 이미지 자체 약간 밝게 보정 */
.about-photo img,
.doctor-profile__photo img {
  filter: brightness(1.05) contrast(1.02);
}
.about-photo:hover,
.doctor-profile__photo:hover,
.christian-symbol:hover,
.facility-card:hover,
.image-frame:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hov);
  border-color: var(--sage-200);
}
.about-photo img,
.doctor-profile__photo img,
.christian-symbol img,
.facility-card img,
.image-frame img,
.facility-card__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1), filter 600ms ease;
}
/* 카드 호버 시 내부 이미지 줌 + 채도 변화 */
.about-photo:hover img,
.doctor-profile__photo:hover img,
.christian-symbol:hover img,
.facility-card:hover img,
.image-frame:hover img,
.facility-card__frame:hover img {
  transform: scale(1.05);
}
/* 호버 시 sage 글로우 보더 */
.about-photo::after,
.doctor-profile__photo::after,
.christian-symbol::after,
.facility-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(123,160,152,0);
  transition: box-shadow var(--t-card);
}
.about-photo:hover::after,
.doctor-profile__photo:hover::after,
.christian-symbol:hover::after,
.facility-card:hover::after {
  box-shadow: inset 0 0 0 1px rgba(123,160,152,0.35);
}

/* Portrait — 인물 사진 (얼굴 잘림 방지) */
.about-photo--portrait,
.doctor-profile__photo {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-6));
}
.about-photo--portrait img,
.doctor-profile__photo img {
  height: auto;                  /* 공통 height:100% 무효 — 이미지가 프레임 높이를 직접 결정해 텍스트 겹침 예방 */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 68%;   /* 메인 doctor 섹션과 동일 — 위 천정·책장 가림 + 명패·책상 보임 */
}

/* facility-card__frame — 갤러리 이미지 박스 (다른 툴이 추가한 클래스 보강) */
.facility-card { padding: 0; }
.facility-card__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-50);
}
.facility-card__frame img {
  position: absolute; inset: 0;
  object-position: center;
}
/* Caption */
.about-photo figcaption,
.facility-card figcaption,
.image-frame figcaption {
  padding: 18px 20px;
  font-size: var(--fs-sm);
  color: var(--text-heading);
  font-weight: 500;
  background: linear-gradient(180deg, var(--white) 0%, var(--off-white) 100%);
  border-top: 1px solid var(--border);
  letter-spacing: -0.01em;
}
.doctor-profile__caption {
  padding: var(--sp-5);
  display: grid;
  gap: 4px;
}
.doctor-profile__caption strong {
  color: var(--text-heading);
  font-size: var(--fs-lg);
}
.doctor-profile__caption span {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
/* Facility gallery — 프리미엄 갤러리 그리드 */
.facility-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
}
.facility-card--wide {
  grid-column: span 2;
}
.facility-card--wide .facility-card__frame {
  aspect-ratio: 16 / 9;
}
.facility-card--portrait .facility-card__frame {
  aspect-ratio: 3 / 4;
}
.facility-card--hero {
  grid-column: 1 / -1;     /* 전체 폭 */
}
.facility-card--hero .facility-card__frame {
  aspect-ratio: 21 / 9;
}
/* Christian symbol */
.christian-symbol {
  align-self: start;
}
.christian-symbol img {
  height: auto;                           /* 공통 height:100% 무효 — 이미지가 figure 높이를 직접 결정해 텍스트 겹침 차단 */
  aspect-ratio: 4 / 3;
  object-position: center;
}
/* Hero visual photo — 메인 hero에 사진 들어갈 때 */
.hero__visual.hero__visual--photo {
  background: linear-gradient(135deg, var(--sage-100), var(--beige-100));
  position: relative;
}
.hero__visual.hero__visual--photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1000ms cubic-bezier(0.22, 1, 0.36, 1);
}
.hero__visual.hero__visual--photo:hover img {
  transform: scale(1.03);
}
.hero__visual.hero__visual--photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(31,45,61,0.18) 100%);
  pointer-events: none;
}

/* Hero visual art — 일러스트 SVG 들어갈 때 */
.hero__visual.hero__visual--art {
  background: linear-gradient(135deg, var(--sage-50) 0%, var(--beige-50) 60%, var(--beige-100) 100%);
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
}
.hero__visual.hero__visual--art img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
  display: block;
}
.hero__visual.hero__visual--art:hover img {
  transform: scale(1.02);
}
/* 일러스트 위에 미세한 sage 글로우 */
.hero__visual.hero__visual--art::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.4) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}
/* Doctor portrait — 베이스 (실제 디자인은 아래 line 2180 부근 cover crop 정의에서 처리) */
.doctor__profile .doctor__portrait {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}
/* Doctor profile photo with caption (의료진 페이지) */
.doctor-profile {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: var(--sp-12);
  align-items: start;
  margin-bottom: var(--sp-12);
}
.doctor-profile__photo {
  border-radius: 22px;
}
.doctor-profile__photo img {
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 68%;     /* 메인 doctor 섹션과 동일 — 위 가림 + 명패·책상 보임 */
}
.doctor-profile__caption {
  padding: var(--sp-5);
  display: grid;
  gap: 4px;
  background: linear-gradient(180deg, var(--white), var(--off-white));
  border-top: 1px solid var(--border);
}
.doctor-profile__caption strong {
  color: var(--text-heading);
  font-size: var(--fs-lg);
  font-weight: 600;
}
.doctor-profile__caption span {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

@media (max-width: 1100px) {
  .hero__visual.hero__visual--photo {
    aspect-ratio: 4 / 5;
    max-width: 420px;
  }
}
@media (max-width: 900px) {
  .about-split,
  .doctor-profile,
  .christian-intro {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .about-photo--portrait,
  .doctor-profile__photo {
    position: static;
    max-width: 420px;
    margin: 0 auto;
  }
  .facility-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facility-card--wide {
    grid-column: span 2;
  }
}
@media (max-width: 600px) {
  .hero__visual.hero__visual--photo {
    max-width: 320px;
  }
  .facility-gallery {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
  .facility-card--wide {
    grid-column: auto;
  }
  .facility-card img,
  .facility-card--wide img {
    aspect-ratio: 4 / 3;
  }
}

/* Scroll cue — 마우스 휠 아이콘으로 명확하게 */
.scroll-cue {
  position: absolute;
  bottom: var(--sp-6);
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--sage-700);
  text-transform: uppercase;
  font-weight: 600;
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  z-index: 2;
}
.scroll-cue::before {
  content: 'Scroll';
}
.scroll-cue::after {
  content: '';
  width: 22px; height: 34px;
  border: 1.5px solid var(--sage-600);
  border-radius: 12px;
  position: relative;
  background-image: radial-gradient(circle 2px at 50% 9px, var(--sage-600), var(--sage-600));
  background-repeat: no-repeat;
  animation: scrollWheel 1.8s ease-in-out infinite;
}
@keyframes scrollWheel {
  0%   { background-position: 0 0; opacity: 1; }
  50%  { background-position: 0 8px; opacity: 0.4; }
  100% { background-position: 0 0; opacity: 1; }
}

/* Hero 하단 fade — 다음 섹션과의 부드러운 연결 */
.hero-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.85));
  pointer-events: none;
  z-index: 1;
}

/* ─── 5. Section · Clinics (Section 2) ───────────────────── */
.clinics { background: var(--white); }
.clinics__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-16);
}
@media (min-width: 800px) {
  .clinics__head { grid-template-columns: 1fr 1fr; align-items: end; gap: var(--sp-10); }
}
.clinics__grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--sp-4);
}
@media (min-width: 640px)  { .clinics__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .clinics__grid { grid-template-columns: repeat(4, 1fr); } }

.clinic-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-8) var(--sp-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  position: relative;
  overflow: hidden;
}
.clinic-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--sage-50) 100%);
  opacity: 0;
  transition: opacity var(--t-base);
}
.clinic-card:hover {
  transform: translateY(-4px);
  border-color: var(--sage-300);
  box-shadow: var(--shadow-md);
}
.clinic-card:hover::before { opacity: 1; }
.clinic-card > * { position: relative; z-index: 1; }

.clinic-card__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sage-50);
  color: var(--sage-600);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-2);
}
.clinic-card__icon svg { width: 24px; height: 24px; }
.clinic-card__title {
  font-size: var(--fs-lg);
  color: var(--text-heading);
  margin-bottom: var(--sp-1);
}
.clinic-card__desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: var(--lh-normal);
  flex: 1;
}
.clinic-card__arrow {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--sage-600);
  margin-top: var(--sp-2);
  text-transform: uppercase;
  transition: gap var(--t-base);
}
.clinic-card:hover .clinic-card__arrow { gap: var(--sp-3); }

/* ─── 6. Section · Doctor & Philosophy (Section 3) ──────── */
.doctor { background: var(--bg-soft); }
/* Doctor 섹션 — 위쪽: 의료진 카드 (사진 + 약력), 아래쪽: Philosophy + BPSS */
.doctor__inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}
@media (min-width: 900px) {
  .doctor__inner { gap: var(--sp-20); }
}

/* 의료진 카드 — 사진 좌측 + 약력 우측 가로 정렬 */
.doctor__profile {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  padding: var(--sp-10);
  background: linear-gradient(180deg, var(--white) 0%, var(--off-white) 100%);
  border: 1px solid rgba(31,45,61,0.06);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--t-card);
}
.doctor__profile:hover {
  box-shadow: var(--shadow-card-hov);
}
@media (min-width: 700px) {
  .doctor__profile {
    grid-template-columns: 320px 1fr;
    gap: var(--sp-12);
    padding: var(--sp-12);
    align-items: start;
  }
}
.doctor__info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-top: var(--sp-2);
}
.doctor__info .doctor__name {
  font-size: clamp(1.5rem, 3vw, var(--fs-3xl));
  letter-spacing: -0.02em;
}
.doctor__info .doctor__role {
  font-size: var(--fs-base);
  color: var(--sage-700);
  font-weight: 500;
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-2);
}
.doctor__info .doctor__credentials {
  margin-top: 0;
}
.doctor__info .doctor__credentials li {
  font-size: var(--fs-sm);
  line-height: 1.7;
  padding-left: var(--sp-5);
  padding-bottom: 6px;
}
.doctor__portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--sage-200), var(--beige-200));
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.doctor__portrait::after {
  content: '원장 사진 영역';
  position: absolute;
  bottom: var(--sp-4); right: var(--sp-4);
  font-size: var(--fs-xs);
  color: rgba(31,45,61,0.4);
  letter-spacing: 0.1em;
}
.doctor__portrait svg {
  width: 50%;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0.7;
}
.doctor__name { font-size: var(--fs-2xl); color: var(--text-heading); }
.doctor__role { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 4px; }
.doctor__credentials { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-4); }
.doctor__credentials li {
  font-size: var(--fs-sm);
  color: var(--gray-700);
  padding-left: var(--sp-4);
  position: relative;
}
.doctor__credentials li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.7em;
  width: 8px; height: 1px;
  background: var(--sage-500);
}

.philosophy__title {
  font-size: clamp(1.875rem, 3vw, var(--fs-4xl));
  line-height: 1.3;
  margin-bottom: var(--sp-6);
}
.philosophy__title em { font-style: normal; color: var(--sage-600); }
.philosophy__lead {
  font-size: var(--fs-lg);
  color: var(--gray-700);
  margin-bottom: var(--sp-10);
  line-height: var(--lh-relaxed);
}
.bpss {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-1);
  padding: var(--sp-1);
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 600px) {
  .bpss { grid-template-columns: repeat(4, 1fr); }
}
.bpss__cell {
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  border-radius: var(--r-md);
  transition: background var(--t-base);
}
.bpss__cell:hover { background: var(--sage-50); }
.bpss__cell-key {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--sage-600);
  margin-bottom: var(--sp-2);
}
.bpss__cell-label { font-size: var(--fs-lg); font-weight: 600; color: var(--text-heading); }
.bpss__cell-desc { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 4px; }

/* ─── 7. Section · Christian (Section 4) — 좌우 풀폭 강제 ─── */
.christian {
  position: relative;
  /* 좌우 풀폭 강제 — viewport 폭만큼 확장 */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 60%, #0A1218 100%);
  color: var(--white);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(123,160,152,0.08), inset 0 -1px 0 rgba(0,0,0,0.4);
}
.christian::before {
  content: '';
  position: absolute;
  top: -20%; left: -10%;
  width: 60%; height: 140%;
  background: radial-gradient(circle, rgba(123, 160, 152, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.christian::after {
  content: '';
  position: absolute;
  bottom: -30%; right: -10%;
  width: 50%; height: 120%;
  background: radial-gradient(circle, rgba(232, 220, 196, 0.10) 0%, transparent 60%);
  pointer-events: none;
}
.christian__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-16);
  align-items: center;
}
@media (min-width: 900px) {
  .christian__inner { grid-template-columns: 1fr 1.1fr; gap: var(--sp-24); }
}
.christian .eyebrow { color: var(--sage-300); }
.christian__title {
  font-size: clamp(1.75rem, 3vw, var(--fs-4xl));
  color: var(--white);
  margin-bottom: var(--sp-6);
  line-height: 1.35;
}
.christian__lead {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.75);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-10);
}
.christian__visual {
  aspect-ratio: 1/1;
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08) 0%, transparent 60%),
    linear-gradient(135deg, rgba(123, 160, 152, 0.18), rgba(232, 220, 196, 0.06));
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
}
.christian__visual svg {
  width: 40%;
  color: var(--sage-300);
  opacity: 0.7;
}
.christian .btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}
.christian .btn--ghost:hover {
  background: var(--white);
  color: var(--navy-800);
  border-color: var(--white);
}

/* ─── 8. Section · Info & Location (Section 5) ──────────── */
.info { background: var(--white); }
.info__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  align-items: start;
}
@media (min-width: 900px) {
  .info__inner { grid-template-columns: 1fr 1fr; gap: var(--sp-16); }
}
.hours-table {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.hours-table__row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-base);
  transition: background var(--t-fast);
}
.hours-table__row:last-child { border-bottom: 0; }
.hours-table__row:hover { background: var(--sage-50); }
.hours-table__row.is-today {
  background: var(--sage-50);
  font-weight: 600;
  color: var(--sage-700);
}
.hours-table__day { color: var(--text-heading); font-weight: 500; }
.hours-table__time { color: var(--gray-700); }
.hours-table__row.is-off .hours-table__time { color: var(--text-muted); }

.contact-card {
  margin-top: var(--sp-8);
  padding: var(--sp-8);
  background: var(--bg-soft);
  border-radius: var(--r-lg);
}
.contact-card__phone {
  display: block;
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin: var(--sp-2) 0 var(--sp-4);
}
.contact-card__address {
  font-size: var(--fs-base);
  color: var(--gray-700);
  line-height: var(--lh-normal);
}
.contact-card__note {
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--gray-100);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: var(--lh-normal);
}
.map-placeholder {
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  background: var(--gray-50);
  background-image:
    linear-gradient(45deg, transparent 48%, var(--gray-100) 49%, var(--gray-100) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, var(--gray-100) 49%, var(--gray-100) 51%, transparent 52%);
  background-size: 60px 60px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  letter-spacing: 0.05em;
}

/* ─── 9. Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding: var(--sp-16) 0 var(--sp-8);
  font-size: var(--fs-sm);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  padding-bottom: var(--sp-10);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 800px) {
  .site-footer__top { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.site-footer h4 {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.site-footer ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.site-footer a:hover { color: var(--sage-300); }
.site-footer__brand .brand__text strong { color: var(--white); }
.site-footer__brand .brand__text small { color: rgba(255,255,255,0.5); }
.site-footer__brand p {
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.55);
  line-height: var(--lh-relaxed);
  max-width: 320px;
}
.site-footer__bottom {
  padding-top: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.4);
}
@media (min-width: 700px) {
  .site-footer__bottom { flex-direction: row; justify-content: space-between; }
}

/* ─── 10. Floating CTA ───────────────────────────────────── */
.floating-call {
  position: fixed;
  right: var(--sp-6);
  bottom: var(--sp-6);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 14px 22px;
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--r-full);
  font-size: var(--fs-base);
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  z-index: 90;
  transition: transform var(--t-base), background var(--t-base);
}
.floating-call:hover { background: var(--sage-600); transform: translateY(-2px); }
.floating-call__ico {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--sage-500);
  display: inline-flex; align-items: center; justify-content: center;
}
.floating-call__ico svg { width: 16px; height: 16px; }
.floating-call__sub { font-size: 11px; opacity: 0.7; display: block; font-weight: 400; }
.floating-call__num { font-size: var(--fs-base); font-weight: 700; letter-spacing: 0.02em; display: block; line-height: 1.2; }

/* ─── 11. Reveal animation ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--t-base), transform 0.8s var(--t-base);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 560ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .scroll-cue::after { animation: none; }
}

/* 모바일/태블릿에서는 reveal 애니메이션 비활성화 → 콘텐츠 즉시 표시 (UX 안전망) */
@media (max-width: 900px) {
  .reveal, .reveal-stagger,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ─── 12. Clinic Detail Page ──────────────────────────────── */
.clinic-hero {
  padding: calc(var(--header-h) + var(--sp-12)) 0 var(--sp-12);
  background:
    radial-gradient(60% 60% at 30% 0%, rgba(123, 160, 152, 0.10) 0%, transparent 70%),
    var(--bg-page);
}
.clinic-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}
.clinic-hero__actions .btn { padding: 14px 22px; font-size: 0.95rem; }
.clinic-hero__quicknav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
}
.clinic-hero__quicknav-label { color: var(--text-muted); margin-right: var(--sp-2); align-self: center; }
.clinic-hero__quicknav-link {
  padding: 6px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--gray-700);
  transition: all var(--t-fast);
}
.clinic-hero__quicknav-link:hover {
  background: var(--sage-50);
  border-color: var(--sage-300);
  color: var(--sage-700);
}
.clinic-hero__breadcrumb {
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}
.clinic-hero__breadcrumb a:hover { color: var(--sage-600); }
.clinic-hero__title {
  font-size: clamp(2.25rem, 4vw, var(--fs-5xl));
  margin-bottom: var(--sp-4);
  letter-spacing: -0.035em;
}
.clinic-hero__lead {
  font-size: var(--fs-xl);
  color: var(--sage-700);
  font-weight: 500;
  font-style: italic;
  margin-bottom: var(--sp-8);
  max-width: 720px;
  line-height: 1.55;
}
.clinic-hero__intro {
  font-size: var(--fs-lg);
  color: var(--gray-700);
  line-height: var(--lh-relaxed);
  max-width: 760px;
}

.checklist {
  background: var(--bg-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-12) var(--sp-10);
}
.checklist__title { font-size: var(--fs-2xl); margin-bottom: var(--sp-2); }
.checklist__hint { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--sp-8); }
.checklist__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
@media (min-width: 700px) { .checklist__grid { grid-template-columns: repeat(2, 1fr); } }
.checklist__item {
  display: flex; gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.checklist__item-ico {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--sage-100);
  color: var(--sage-700);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.checklist__item h4 { font-size: var(--fs-base); margin-bottom: 4px; }
.checklist__item p { font-size: var(--fs-sm); color: var(--text-muted); line-height: var(--lh-normal); }

.process { background: var(--white); }
.process__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  counter-reset: step;
}
@media (min-width: 900px) {
  .process__steps { grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); }
}
.process__step {
  position: relative;
  padding: var(--sp-10) var(--sp-8);
  background: var(--bg-soft);
  border-radius: var(--r-lg);
  counter-increment: step;
}
.process__step::before {
  content: counter(step, decimal-leading-zero);
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--sage-500);
  opacity: 0.4;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--sp-4);
  display: block;
}
.process__step h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.process__step h4 { font-size: var(--fs-sm); color: var(--sage-600); font-weight: 500; margin-bottom: var(--sp-4); }
.process__step p { font-size: var(--fs-base); color: var(--gray-700); line-height: var(--lh-relaxed); }

.faq { background: var(--bg-soft); }
.faq__list { display: flex; flex-direction: column; gap: var(--sp-2); }
.faq__item {
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color var(--t-fast);
}
.faq__item[open] { border-color: var(--sage-300); }
.faq__q {
  padding: var(--sp-6);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--text-heading);
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  transition: color var(--t-fast);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: '+';
  font-size: var(--fs-2xl);
  color: var(--sage-500);
  font-weight: 300;
  transition: transform var(--t-base);
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a {
  padding: 0 var(--sp-6) var(--sp-6);
  color: var(--gray-700);
  line-height: var(--lh-relaxed);
}

.final-cta {
  /* 좌우 풀폭 강제 */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  background: linear-gradient(135deg, var(--sage-500) 0%, var(--sage-600) 50%, var(--sage-700) 100%);
  color: var(--white);
  text-align: center;
}
.final-cta__title {
  color: var(--white);
  font-size: clamp(1.875rem, 3vw, var(--fs-4xl));
  margin-bottom: var(--sp-4);
}
.final-cta__lead {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--sp-8);
  max-width: 540px;
  margin-left: auto; margin-right: auto;
}
.final-cta .btn--primary {
  background: var(--white);
  color: var(--navy-800);
}
.final-cta .btn--primary:hover {
  background: var(--navy-800);
  color: var(--white);
}

/* ─── 13. Mobile menu ─────────────────────────────────────── */
@media (max-width: 900px) {
  .gnb { display: none; }
  .gnb.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--white);
    padding: var(--sp-4);
    padding-bottom: max(var(--sp-4), env(safe-area-inset-bottom));
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
    gap: 0;
  }
  .gnb.is-open .gnb__link {
    width: 100%;
    padding: var(--sp-4);
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
    color: var(--text-heading);
  }
  .menu-toggle svg { width: 24px; height: 24px; }
  .header-cta { display: none; }
}

/* ─── 14. Floating CTA on mobile compact ──────────────────── */
@media (max-width: 600px) {
  .floating-call__sub { display: none; }
  .floating-call { padding: 12px 18px; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + var(--sp-16)); padding-bottom: var(--sp-16); }
  .section { padding: var(--sp-16) 0; }
}

/* ─── 15. Skip link ───────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px; left: 0;
  background: var(--navy-800); color: var(--white);
  padding: var(--sp-3) var(--sp-4);
  z-index: 200;
}
.skip-link:focus { top: 0; }

/* ════════════════════════════════════════════════════════════
   17. PREMIUM BOX SYSTEM — 3,000만 원급 박스 디자인
   안정감 있는 카드 + 마이크로 인터랙션 + 글래스모피즘
   ════════════════════════════════════════════════════════════ */

/* ─── 17.1 Clinic Card — 메인 페이지 클리닉 8개 카드 강화 ─── */
.clinic-card {
  background: var(--white);
  border: 1px solid rgba(31, 45, 61, 0.06);
  border-radius: 18px;
  padding: 32px 26px;
  box-shadow: var(--shadow-card);
  transition: transform var(--t-card), box-shadow var(--t-card), border-color var(--t-card);
  position: relative;
  isolation: isolate;
}
.clinic-card::before {
  /* 그라데이션 글로우 (호버 시 표시) */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--sage-300), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--t-card);
  z-index: -1;
}
.clinic-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hov);
  border-color: transparent;
}
.clinic-card:hover::before { opacity: 1; }
.clinic-card:active { transform: translateY(-3px); }
.clinic-card__icon {
  background: linear-gradient(135deg, var(--sage-50), var(--beige-100));
  transition: transform var(--t-card);
}
.clinic-card:hover .clinic-card__icon {
  transform: scale(1.08) rotate(-3deg);
}

/* ─── 17.2 Info Card — 일반 정보 카드 ─── */
.info-card {
  background: var(--white);
  border: 1px solid rgba(31, 45, 61, 0.06);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: transform var(--t-card), box-shadow var(--t-card), border-color var(--t-card);
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hov);
  border-color: transparent;
}

/* ─── 17.3 Process Step — 치료 과정 3단계 카드 ─── */
.process__step {
  background: var(--white);
  border: 1px solid rgba(31, 45, 61, 0.06);
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  transition: transform var(--t-card), box-shadow var(--t-card);
  position: relative;
  overflow: hidden;
}
.process__step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sage-400), var(--sage-600));
  opacity: 0;
  transition: opacity var(--t-card);
}
.process__step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hov);
}
.process__step:hover::before { opacity: 1; }
.process__step::after {
  /* 카드 우상단 데코 원 */
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(123,160,152,0.10), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ─── 17.4 Checklist Item — 증상 체크리스트 ─── */
.checklist__item {
  background: var(--white);
  border: 1px solid rgba(31, 45, 61, 0.06);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-card), box-shadow var(--t-card), border-color var(--t-card);
  cursor: default;
}
.checklist__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--sage-200);
}
.checklist__item-ico {
  background: var(--sage-100);
  transition: background var(--t-base), transform var(--t-base);
}
.checklist__item:hover .checklist__item-ico {
  background: var(--sage-500);
  color: var(--white);
  transform: scale(1.1);
}

/* ─── 17.5 FAQ Item — 자주 묻는 질문 ─── */
.faq__item {
  background: var(--white);
  border: 1px solid rgba(31, 45, 61, 0.06);
  border-radius: 14px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t-card), border-color var(--t-card), transform var(--t-card);
}
.faq__item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--sage-200);
  transform: translateY(-2px);
}
.faq__item[open] {
  border-color: var(--sage-400);
  box-shadow: var(--shadow-sage);
}

/* ─── 17.6 Contact Card / Hours Table — 진료시간 박스 ─── */
.contact-card {
  border: 1px solid var(--sage-200);
  box-shadow: var(--shadow-card);
  background: linear-gradient(135deg, var(--beige-50), var(--white));
  transition: transform var(--t-card), box-shadow var(--t-card);
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hov);
}
.hours-table {
  background: var(--white);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(31, 45, 61, 0.06);
  overflow: hidden;
}

/* ─── 17.7 BPSS — 4축 인포그래픽 ─── */
.bpss {
  background: var(--white);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(31, 45, 61, 0.06);
}
.bpss__cell {
  transition: transform var(--t-card), background var(--t-card);
  cursor: default;
}
.bpss__cell:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--sage-50), var(--beige-50));
}

/* ─── 17.8 Prose 박스화 — 일반 페이지 본문 카드 ─── */
.prose {
  background: var(--white);
  border: 1px solid rgba(31, 45, 61, 0.06);
  border-radius: 22px;
  padding: 56px 56px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--t-card);
}
.prose:hover {
  box-shadow: var(--shadow-card-hov);
}

/* ─── 17.9 Buttons — 호버 시 더 입체적 ─── */
.btn--primary {
  box-shadow: 0 4px 14px rgba(31,45,61,0.15), 0 1px 2px rgba(31,45,61,0.08);
}
.btn--primary:hover {
  box-shadow: 0 8px 24px rgba(123,160,152,0.32), 0 2px 6px rgba(31,45,61,0.12);
}
.btn--sage {
  box-shadow: 0 4px 14px rgba(123,160,152,0.30);
}
.btn--sage:hover {
  box-shadow: 0 10px 28px rgba(123,160,152,0.42);
}

/* ─── 17.10 Doctor Portrait 카드 강화 ─── */
.doctor__portrait {
  box-shadow: var(--shadow-elevated);
  transition: transform var(--t-card), box-shadow var(--t-card);
}
.doctor__portrait:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 0 30px 70px rgba(31,45,61,0.18);
}
.doctor__credentials li {
  padding: 4px 0 4px var(--sp-4);
}

/* ─── 17.11 Map Placeholder 카드화 ─── */
.map-placeholder {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--t-card);
}
.map-placeholder:hover {
  box-shadow: var(--shadow-md);
}

/* ─── 17.12 Header CTA · Floating CTA 강화 ─── */
.header-cta {
  box-shadow: 0 4px 14px rgba(31,45,61,0.18);
}
.header-cta:hover {
  box-shadow: 0 8px 22px rgba(123,160,152,0.35);
}
.floating-call {
  box-shadow: 0 16px 40px rgba(31,45,61,0.24), 0 4px 10px rgba(31,45,61,0.12);
}
.floating-call:hover {
  box-shadow: 0 22px 50px rgba(123,160,152,0.40), 0 6px 14px rgba(31,45,61,0.16);
  transform: translateY(-4px);
}

/* ─── 17.13 Hero Visual / Christian Visual 카드 강화 ─── */
.hero__visual {
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: var(--shadow-elevated);
  transition: transform var(--t-card);
}
.hero__visual:hover {
  transform: translateY(-4px) scale(1.01);
}
.christian__visual {
  transition: transform var(--t-card);
}
.christian__visual:hover {
  transform: scale(1.02);
}

/* ─── 17.14 Hero Content 박스화 — 옵션 (메인 hero 텍스트가 더 안정감 있게) ─── */
.hero__inner > .hero__content {
  position: relative;
}

/* ─── 17.15 Final CTA 강화 ─── */
.final-cta {
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: -50%; left: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
  animation: ctaShine 8s ease-in-out infinite;
}
@keyframes ctaShine {
  0%, 100% { transform: translateX(-30%) translateY(-10%); }
  50%      { transform: translateX(30%) translateY(10%); }
}
.final-cta__title, .final-cta__lead { position: relative; }
.final-cta .btn--primary {
  box-shadow: 0 8px 24px rgba(31,45,61,0.20);
}
.final-cta .btn--primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 32px rgba(31,45,61,0.28);
}

/* ─── 17.16 GNB 드롭다운 카드 강화 ─── */
.gnb__dropdown {
  box-shadow: var(--shadow-elevated);
  border-radius: 14px;
}
.gnb__dropdown-link {
  transition: background var(--t-fast), color var(--t-fast), padding-left var(--t-fast);
}

/* ─── 17.17 Brand Hover ─── */
.brand {
  transition: transform var(--t-card);
}
.brand:hover {
  transform: translateX(-2px);
}
.brand:hover .brand__symbol {
  transform: scale(1.05);
}
.brand__symbol {
  transition: transform var(--t-card);
}

/* ═══════════════════════════════════════════════════════════════
   18. RESPONSIVE — Galaxy Z TriFold + Mobile + Tablet + Desktop
   ─ Cover (접힘): ~360px width
   ─ Inner Single (1단 펼침): ~540px width
   ─ Inner Full (2단 펼침/태블릿): ~768~840px width
   ─ Desktop: ~1024px+
   ═══════════════════════════════════════════════════════════════ */

/* ━━━ 18.1 Galaxy TriFold COVER (접힘 상태, ≤412px) ━━━ */
@media (max-width: 412px) {
  :root {
    --header-h: 64px;
    --fs-display: clamp(2rem, 9vw, 2.6rem);
  }
  .container { padding: 0 18px; }
  .container--sm { padding: 0 18px; }

  /* Hero — 접힘 화면에서 컴팩트 */
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + var(--sp-10));
    padding-bottom: var(--sp-12);
  }
  .hero__title { font-size: clamp(1.875rem, 8vw, 2.4rem); line-height: 1.25; }
  .hero__lead  { font-size: var(--fs-base); }
  .hero__visual { aspect-ratio: 16/12; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; width: 100%; }

  /* Hero meta — 한 줄 정리 */
  .hero__meta { font-size: 0.75rem; line-height: 1.7; }

  /* Page hero */
  .page-hero { padding: calc(var(--header-h) + var(--sp-8)) 0 var(--sp-6); }
  .page-hero__title { font-size: clamp(1.625rem, 7vw, 2rem); }
  .page-hero__lead  { font-size: var(--fs-base); }
  .page-hero__actions .btn { font-size: 0.85rem; padding: 11px 16px; }

  /* Clinic hero */
  .clinic-hero { padding: calc(var(--header-h) + var(--sp-8)) 0 var(--sp-10); }
  .clinic-hero__title { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  .clinic-hero__lead { font-size: var(--fs-base); }
  .clinic-hero__intro { font-size: var(--fs-base); line-height: 1.7; }
  .clinic-hero__actions { flex-direction: column; align-items: stretch; }
  .clinic-hero__actions .btn { justify-content: center; }

  /* Cards — 접힘 화면 1열 */
  .clinics__grid { grid-template-columns: 1fr; gap: var(--sp-3); }
  .clinic-card { padding: 24px 20px; }
  .info-grid, .info-grid--3 { grid-template-columns: 1fr; gap: var(--sp-3); }
  .info-card { padding: 24px 20px; }
  .process__steps { grid-template-columns: 1fr; gap: var(--sp-3); }
  .process__step { padding: 28px 22px; }
  .checklist__grid { grid-template-columns: 1fr; gap: var(--sp-2); }
  .checklist__item { padding: 16px 18px; }
  .checklist { padding: var(--sp-8) var(--sp-4); }

  /* BPSS — 2x2 */
  .bpss { grid-template-columns: 1fr 1fr; }

  /* Prose — 접힘 화면 패딩 줄임 */
  .prose { padding: 32px 22px; border-radius: 16px; font-size: var(--fs-base); }
  .prose h2 { font-size: var(--fs-xl); margin-top: var(--sp-8); }
  .prose h3 { font-size: var(--fs-lg); }

  /* Section padding */
  .section { padding: var(--sp-12) 0; }
  .section-title { font-size: clamp(1.5rem, 6vw, 1.875rem); }

  /* Doctor section */
  .doctor__portrait { aspect-ratio: 4 / 5; max-width: 280px; }

  /* Christian visual */
  .christian__visual { max-width: 280px; margin: 0 auto; }

  /* Hours table */
  .hours-table__row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 18px;
  }
  .hours-table__day { font-size: var(--fs-sm); font-weight: 600; }

  /* Contact card */
  .contact-card { padding: var(--sp-6); }
  .contact-card__phone { font-size: var(--fs-3xl); }

  /* Floating CTA */
  .floating-call { right: 14px; bottom: 14px; padding: 11px 16px; }
  .floating-call__sub { display: none; }
  .floating-call__num { font-size: 0.875rem; }
  .floating-call__ico { width: 26px; height: 26px; }

  /* FAQ */
  .faq__q { padding: var(--sp-4) var(--sp-5); font-size: var(--fs-base); }
  .faq__a { padding: 0 var(--sp-5) var(--sp-5); }

  /* Final CTA */
  .final-cta__title { font-size: clamp(1.5rem, 6vw, 1.875rem); }
  .final-cta__lead { font-size: var(--fs-base); }
  .final-cta .btn { width: 100%; justify-content: center; }
}

/* ━━━ 18.2 TriFold INNER SINGLE (1단 펼침, 413~600px) ━━━ */
@media (min-width: 413px) and (max-width: 600px) {
  .container { padding: 0 22px; }
  .clinics__grid { grid-template-columns: 1fr; }
  .info-grid, .info-grid--3 { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
  .checklist__grid { grid-template-columns: 1fr; }
  .prose { padding: 40px 32px; }
  .hero__title { font-size: clamp(2.25rem, 7vw, 3rem); }
}

/* ━━━ 18.3 TriFold INNER FULL / Tablet (601~900px) ━━━ */
@media (min-width: 601px) and (max-width: 900px) {
  .container { padding: 0 28px; }

  /* Cards — 2열 그리드 */
  .clinics__grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .process__steps { grid-template-columns: 1fr; gap: var(--sp-5); }
  .checklist__grid { grid-template-columns: repeat(2, 1fr); }

  /* Hero — 단일 컬럼 */
  .hero__inner { grid-template-columns: 1fr; gap: var(--sp-10); }
  .hero__visual { aspect-ratio: 16/10; max-width: 520px; margin: 0 auto; }
  .hero__title { font-size: clamp(2.5rem, 5.5vw, 3.5rem); }

  /* Doctor — 단일 컬럼 */
  .doctor__inner { grid-template-columns: 1fr; gap: var(--sp-12); }
  .doctor__portrait { max-width: 280px; margin: 0 auto; aspect-ratio: 4 / 5; }

  /* Christian — 단일 컬럼 */
  .christian__inner { grid-template-columns: 1fr; gap: var(--sp-10); }
  .christian__visual { max-width: 320px; margin: 0 auto; }

  /* Info — 단일 컬럼 */
  .info__inner { grid-template-columns: 1fr; gap: var(--sp-10); }

  /* Clinics head — 단일 컬럼 */
  .clinics__head { grid-template-columns: 1fr; gap: var(--sp-4); }

  /* Prose */
  .prose { padding: 48px 40px; }

  /* GNB — 모바일 메뉴 사용 */
}

/* ━━━ 18.4 Tablet 가로 + 작은 데스크탑 (901~1100px) ━━━ */
@media (min-width: 901px) and (max-width: 1100px) {
  .clinics__grid { grid-template-columns: repeat(3, 1fr); }
  .info-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ━━━ 18.5 Desktop Large (1400px+) ━━━ */
@media (min-width: 1400px) {
  .container { max-width: 1280px; }
  .prose { padding: 64px 64px; }
  .hero__title { font-size: clamp(3rem, 4vw, 4.5rem); }
}

/* ─── 18.6 모바일 메뉴 (≤900px) — 드롭다운 카드형 ─── */
@media (max-width: 900px) {
  .gnb.is-open {
    border-radius: 0 0 16px 16px;
    box-shadow: var(--shadow-elevated);
  }
}

/* ─── 18.7 다크 모드 대응 (선택, prefers-color-scheme) ─── */
@media (prefers-color-scheme: dark) {
  /* 본 사이트는 라이트 모드 전용으로 유지 */
}

/* ─── 18.8 포커스 링 — 접근성 ─── */
*:focus-visible {
  outline: 2px solid var(--sage-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── Final image placement polish ───────────────────────── */
/* Doctor portrait — 사람 중심 포커스 (위 20% 가림 + 책상/명패 보임 + 약력과 비슷한 높이) */
.doctor__portrait {
  display: block;
  position: relative;
  width: 100%;
  max-width: 280px;                       /* 320 → 280 (약력과 비슷한 길이) */
  margin: 0 auto;
  aspect-ratio: 4 / 5;                    /* 280×350px (약력 영역과 균형) */
  padding: 0;
  background: var(--white);
  border: 1px solid rgba(31,45,61,0.06);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(31,45,61,0.14);
  overflow: hidden;
  transition: transform var(--t-card), box-shadow var(--t-card);
}
.doctor__portrait::after { display: none; }
.doctor__portrait svg { display: none; }
.doctor__portrait img {
  display: block;
  position: static;                       /* absolute 제거 — 부모 컨텍스트 의존 차단. 어떤 화면 폭(트라이폴드 펼침 포함)에서도 hero로 튀지 않음 */
  width: 100%;
  height: 100%;
  object-fit: cover;                      /* 비율 유지 + 자동 crop (찌그러짐 0) */
  object-position: center 68%;            /* 위 ~20% 가림 + 아래 ~10% 가림 → 사람·책상·명패 중심 */
  filter: brightness(1.04);
  border-radius: 0;
  transition: transform 1000ms cubic-bezier(0.22, 1, 0.36, 1);
}
.doctor__portrait:hover {
  transform: translateY(-4px);
  box-shadow: 0 36px 80px rgba(31,45,61,0.18);
}
.doctor__portrait:hover img {
  transform: scale(1.04);
}

.facility-section {
  background:
    linear-gradient(180deg, var(--bg-page) 0%, var(--white) 46%, var(--bg-soft) 100%);
}
.facility-head {
  max-width: 780px;
  margin: 0 auto var(--sp-12);
  text-align: center;
}
.facility-head .section-lead {
  margin-left: auto;
  margin-right: auto;
}
.facility-gallery {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.facility-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 10px;
  overflow: visible;
  background: var(--white);
  border: 1px solid rgba(31,45,61,0.08);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(31,45,61,0.10);
  transition: transform var(--t-card), box-shadow var(--t-card), border-color var(--t-card);
}
.facility-card:hover {
  transform: translateY(-4px);
  border-color: rgba(123,160,152,0.34);
  box-shadow: 0 28px 70px rgba(31,45,61,0.14);
}
.facility-card--wide { grid-column: span 6; }
.facility-card--portrait { grid-column: span 4; }
.facility-card__frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg-soft);
}
.facility-card--wide .facility-card__frame { aspect-ratio: 16 / 9; }
.facility-card--portrait .facility-card__frame { aspect-ratio: 3 / 4; }
.facility-card img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.facility-card figcaption {
  padding: 14px 6px 4px;
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-heading);
  background: transparent;
}

@media (max-width: 1100px) {
  .facility-gallery { gap: 18px; }
  .facility-card,
  .facility-card--portrait { grid-column: span 6; }
  .facility-card--wide { grid-column: span 12; }
}
@media (max-width: 900px) {
  .doctor__portrait {
    max-width: 360px;
    margin: 0 auto;
  }
}
@media (max-width: 640px) {
  .facility-head { text-align: left; }
  .facility-card,
  .facility-card--wide,
  .facility-card--portrait { grid-column: span 12; }
  .facility-card__frame,
  .facility-card--wide .facility-card__frame,
  .facility-card--portrait .facility-card__frame { aspect-ratio: 4 / 3; }
}

/* ════════════════════════════════════════════════════════════
   19. LIGHTBOX — 갤러리 이미지 클릭 시 확대 모달
   ════════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15, 22, 32, 0.92);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  opacity: 0;
  transition: opacity 250ms ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
}
.lightbox__img {
  max-width: min(1400px, 95vw);
  max-height: 88vh;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
  transform: scale(0.95);
  object-fit: contain;
}
.lightbox.is-open .lightbox__img {
  transform: scale(1);
}
.lightbox__caption {
  position: absolute;
  bottom: var(--sp-6);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.9);
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  padding: 8px 16px;
  background: rgba(0,0,0,0.4);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.lightbox__close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms, transform 200ms;
  border: 1px solid rgba(255,255,255,0.15);
}
.lightbox__close:hover {
  background: rgba(255,255,255,0.22);
  transform: rotate(90deg);
}
.lightbox__close svg { width: 20px; height: 20px; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms, transform 200ms;
  border: 1px solid rgba(255,255,255,0.15);
}
.lightbox__nav:hover { background: rgba(255,255,255,0.22); }
.lightbox__nav--prev { left: var(--sp-4); }
.lightbox__nav--next { right: var(--sp-4); }
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox-trigger { cursor: zoom-in; }
@media (max-width: 600px) {
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__caption { bottom: var(--sp-3); font-size: 11px; }
}
body.lightbox-open { overflow: hidden; }

/* ════════════════════════════════════════════════════════════
   20. EDITORIAL LAYOUTS — Sticky 사진 + 본문 카드
   ════════════════════════════════════════════════════════════ */
.about-split {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: var(--sp-12);
  align-items: start;
}
.christian-intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);   /* 이미지 좌측 sticky + 본문 우측 */
  gap: var(--sp-12);
  align-items: start;
}
.christian-intro .christian-symbol {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-6));
}

/* ════════════════════════════════════════════════════════════
   21. IMAGE RESPONSIVE — Galaxy Z TriFold + Mobile + Tablet
   ════════════════════════════════════════════════════════════ */
/* 트라이폴드 접힘 (≤412px) */
@media (max-width: 412px) {
  .facility-gallery {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }
  .facility-card--wide,
  .facility-card--hero,
  .facility-card--portrait {
    grid-column: auto;
  }
  .facility-card__frame,
  .facility-card--wide .facility-card__frame,
  .facility-card--hero .facility-card__frame {
    aspect-ratio: 4 / 3;
  }
  .about-split, .doctor-profile, .christian-intro {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
  .about-photo--portrait,
  .doctor-profile__photo,
  .christian-intro .christian-symbol {
    position: static;
    max-width: 320px;
    margin: 0 auto;
  }
  .doctor__portrait { aspect-ratio: 4 / 5; max-width: 240px; margin: 0 auto; }
}

/* 트라이폴드 1단 펼침 / 작은 폰 (413~600px) */
@media (min-width: 413px) and (max-width: 600px) {
  .facility-gallery {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
  .facility-card--wide,
  .facility-card--hero { grid-column: auto; }
  .about-split, .doctor-profile, .christian-intro {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .about-photo--portrait,
  .doctor-profile__photo,
  .christian-intro .christian-symbol {
    position: static;
    max-width: 380px;
    margin: 0 auto;
  }
}

/* 트라이폴드 풀 펼침 / 태블릿 (601~900px) */
@media (min-width: 601px) and (max-width: 900px) {
  .facility-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-4);
  }
  .facility-card--wide { grid-column: span 2; }
  .facility-card--hero { grid-column: span 2; }
  .about-split, .doctor-profile, .christian-intro {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .about-photo--portrait,
  .doctor-profile__photo,
  .christian-intro .christian-symbol {
    position: static;
    max-width: 480px;
    margin: 0 auto;
  }
}

/* ════════════════════════════════════════════════════════════
   22-A. MOBILE LAYOUT FIX — Editorial 카드 강제 1열 (모바일/태블릿)
   사진 + 본문이 좌우 분할되어 가로 스크롤 생기는 문제 차단
   ════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-split,
  .doctor-profile,
  .christian-intro,
  .doctor__profile {
    display: block !important;
    grid-template-columns: none !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 0 !important;
  }
  .about-split > *,
  .doctor-profile > *,
  .christian-intro > *,
  .doctor__profile > * {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 var(--sp-6) 0 !important;
    box-sizing: border-box;
  }
  /* 사진은 가운데 정렬 + 적당한 크기로 */
  .about-photo,
  .about-photo--portrait,
  .doctor-profile__photo,
  .christian-intro .christian-symbol,
  .doctor__profile .doctor__portrait {
    max-width: 320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: var(--sp-6) !important;
    position: static !important;          /* sticky/relative 무효 + top:auto — sticky의 top 잔여값이 사진을 아래로 밀어 텍스트를 덮던 버그 차단. (doctor 이미지는 일반흐름이라 부모 static이어도 hero로 안 튐) */
    top: auto !important;
  }
  /* prose 카드는 부모 너비 100% + 적당한 패딩 */
  .prose {
    width: 100% !important;
    max-width: 100% !important;
    padding: 32px 22px !important;
    margin: 0 !important;
    box-sizing: border-box;
  }
}

/* ════════════════════════════════════════════════════════════
   22. MOBILE MENU FIX — 햄버거 메뉴 강제 동작 (최우선 cascading)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* 닫힌 상태 */
  .gnb {
    display: none !important;
  }

  /* 열린 상태 — 풀폭 드롭다운 */
  .gnb.is-open {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    position: absolute !important;
    top: var(--header-h) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: var(--white) !important;
    padding: var(--sp-3) !important;
    box-shadow: 0 24px 60px rgba(31,45,61,0.18) !important;
    border-top: 1px solid var(--border) !important;
    border-radius: 0 0 16px 16px !important;
    gap: 4px !important;
    max-height: calc(100vh - var(--header-h)) !important;
    overflow-y: auto !important;
    z-index: 1000 !important;
  }

  /* 메뉴 항목 — block + 풀폭 */
  .gnb.is-open .gnb__item {
    display: block !important;
    width: 100% !important;
    position: static !important;
    margin: 0 !important;
  }

  /* 메인 메뉴 링크 — 큼직하게 */
  .gnb.is-open .gnb__link {
    display: block !important;
    width: 100% !important;
    padding: 14px 18px !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--text-heading) !important;
    background: transparent !important;
    border: 0 !important;
    text-align: left !important;
  }
  .gnb.is-open .gnb__link:hover,
  .gnb.is-open .gnb__link.is-active {
    background: var(--sage-50) !important;
    color: var(--sage-700) !important;
  }
  .gnb.is-open .gnb__link::after {
    display: none !important;
  }

  /* 드롭다운 — 항상 펼친 상태로 표시 */
  .gnb.is-open .gnb__dropdown {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: block !important;
    box-shadow: none !important;
    border: 0 !important;
    background: var(--bg-soft) !important;
    padding: 6px !important;
    margin: 4px 0 10px 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    border-radius: 10px !important;
  }
  .gnb.is-open .gnb__dropdown::before {
    display: none !important;
  }
  .gnb.is-open .gnb__dropdown-link {
    display: block !important;
    padding: 10px 18px !important;
    font-size: 14px !important;
    color: var(--gray-700) !important;
    background: transparent !important;
    border-radius: 6px !important;
    white-space: normal !important;
  }
  .gnb.is-open .gnb__dropdown-link:hover {
    background: var(--white) !important;
    color: var(--sage-700) !important;
    padding-left: 22px !important;
  }

  /* 햄버거 버튼 표시 보장 */
  .menu-toggle {
    display: inline-flex !important;
  }
  .header-cta {
    display: none !important;
  }
}

/* ════════════════════════════════════════════════════════════
   23. SAFE GUARDS — 가로 스크롤 방지
   ════════════════════════════════════════════════════════════ */
img, svg, video {
  max-width: 100%;
}
.container, .container--sm {
  max-width: min(var(--container), 100%);
  box-sizing: border-box;
}
/* 100vw 풀폭 섹션의 모바일 보호 — viewport 폭 정확히 일치 */
@media (max-width: 900px) {
  .christian, .final-cta {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    /* viewport 풀폭은 body overflow-x: hidden이 처리 */
  }
}

/* ─── 16. Print ───────────────────────────────────────────── */
@media print {
  .site-header, .floating-call, .menu-toggle, .lightbox { display: none; }
  .hero { min-height: auto; padding-top: 0; }
  .prose { box-shadow: none; border: 0; padding: 0; }
}

/* ════════════════════════════════════════════════════════════
   24. EXAM — 심리검사 영역 칩 / 검사 진행 방식 카드
   (검사 프로그램 페이지 재사용 컴포넌트)
   ════════════════════════════════════════════════════════════ */
/* 본문 카드 박스 — .prose와 동일한 톤 (흰 박스·테두리·그림자) */
.exam-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid rgba(31, 45, 61, 0.06);
  border-radius: 22px;
  padding: 56px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--t-card);
}
.exam-card:hover { box-shadow: var(--shadow-card-hov); }
.exam-card .eyebrow { margin-top: 0; }
.exam-card__title {
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-2xl);
  color: var(--text-heading);
}
.exam-card__divider {
  border: 0;
  border-top: 1px solid rgba(31, 45, 61, 0.08);
  margin: var(--sp-12) 0 var(--sp-10);
}

/* 검사 영역 인트로 문장 */
.exam-lead {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--text-body);
  margin: 0 0 var(--sp-8);
}
.exam-lead strong { color: var(--sage-700); font-weight: 700; }

/* 22개 심리영역 — 칩(태그) 그리드 */
.exam-domains {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 var(--sp-6);
  padding: 0;
  list-style: none;
}
.exam-domains li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--sage-700);
  background: var(--sage-50);
  border: 1px solid var(--sage-200);
  border-radius: 999px;
  white-space: nowrap;
  transition: transform var(--t-card), background var(--t-card), border-color var(--t-card);
}
.exam-domains li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sage-500);
  flex: 0 0 auto;
}
.exam-domains li:hover {
  transform: translateY(-2px);
  background: var(--sage-100);
  border-color: var(--sage-400);
}
.exam-note {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin: 0;
}

/* 검사 진행 방식 — 포인트 카드 */
.exam-process {
  display: grid;
  gap: var(--sp-4);
  margin: 0 0 var(--sp-4);
  padding: 0;
  list-style: none;
}
.exam-process li {
  position: relative;
  padding: 20px 22px 20px 56px;
  background: var(--white);
  border: 1px solid rgba(31,45,61,0.06);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(31,45,61,0.06);
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--text-body);
  counter-increment: exam-step;
  transition: transform var(--t-card), box-shadow var(--t-card);
}
.exam-process li::before {
  content: counter(exam-step);
  position: absolute;
  left: 18px; top: 18px;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700;
  color: var(--white);
  background: var(--sage-500);
  border-radius: 50%;
}
.exam-process {
  counter-reset: exam-step;
}
.exam-process li:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(31,45,61,0.10);
}
.exam-process strong { color: var(--sage-700); font-weight: 700; }

/* 비밀유지 안내 — prose 밖에서도 동일 톤 */
.exam-blockquote {
  margin: var(--sp-8) 0 0;
  padding: var(--sp-5) var(--sp-6);
  background: var(--bg-soft);
  border-left: 3px solid var(--sage-500);
  border-radius: var(--r-md);
  color: var(--text-heading);
  font-size: var(--fs-base);
  font-style: italic;
}
.exam-blockquote p { margin: 0; }

@media (max-width: 600px) {
  .exam-card { padding: 32px 22px; border-radius: 18px; }
  .exam-card__divider { margin: var(--sp-8) 0 var(--sp-6); }
  .exam-domains { gap: 8px; }
  .exam-domains li { padding: 8px 13px; font-size: 0.82rem; }
  .exam-process li { padding: 16px 16px 16px 50px; }
  .exam-process li::before { left: 14px; top: 16px; }
}
