/* ============================================================
   마곡베스트치과의원 — PORCELAIN & SAPPHIRE (2026 Premium Light)
   쿨 포슬린 화이트 · 로고 블루(사파이어) · 네이비 다크 · 브론즈 디테일
   ※ 컬러 기준: 제작 신청서 Q25 "치과 로고색인 파란색"
   세리프 디스플레이 · 실사 포토 중심 · 하이엔드 의료 브랜드
   ============================================================ */

/* ---- 크로스 도큐먼트 뷰 트랜지션 (Chrome 126+/Edge, 미지원 브라우저는 무시) ---- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out 0.22s ease both; }
  ::view-transition-new(root) { animation: vt-in 0.3s ease both; }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

:root {
  /* ---- 바탕: 도자기 아이보리 ---- */
  --bg: #F7F9FC;
  --bg-1: #F1F5FA;
  --bg-2: #E9EFF7;
  --bg-3: #E0E8F2;
  --paper: #FFFFFF;
  --dark: #0E1B2E;          /* 다크 반전 섹션 (딥 네이비) */
  --dark-2: #15263F;

  /* ---- 잉크 ---- */
  --ink: #17202E;
  --ink-1: #17202E;
  --ink-2: #43506A;
  --ink-3: #74829C;
  --ink-4: #A2AEC4;

  /* ---- 액센트: 로고 블루(주) + 스카이(디테일) ---- */
  --pine: #1656C8;          /* 로고 블루 (사파이어) */
  --pine-2: #0F3E96;
  --pine-soft: #E4EDFB;
  --bronze: #3E8EF0;
  --bronze-2: #2C6FD6;
  --bronze-soft: #E7F1FE;

  /* ---- 레거시 별칭 (인라인 스타일 호환) ---- */
  --brand: #1656C8;
  --brand-2: #0F3E96;
  --brand-glow: #4C8DF5;
  --brand-soft: #E4EDFB;
  --brand-dark: #0F3E96;
  --acc: #3E8EF0;
  --acc-blue: #1656C8;
  --text: #17202E;
  --text-3: #74829C;
  --fg: #17202E;
  --fg-2: #43506A;
  --fg-3: #74829C;
  --fg-4: #A2AEC4;
  --glass-border: rgba(23, 32, 46, 0.10);

  /* ---- 라인 ---- */
  --line: rgba(23, 32, 46, 0.10);
  --line-2: rgba(23, 32, 46, 0.18);
  --line-3: rgba(23, 32, 46, 0.06);

  /* ---- 그림자 ---- */
  --sh-sm: 0 1px 2px rgba(23, 32, 46, 0.05), 0 4px 14px rgba(23, 32, 46, 0.05);
  --sh-md: 0 2px 6px rgba(23, 32, 46, 0.05), 0 14px 34px rgba(23, 32, 46, 0.09);
  --sh-lg: 0 4px 10px rgba(23, 32, 46, 0.06), 0 28px 60px rgba(23, 32, 46, 0.13);

  /* ---- 타이포 ---- */
  --sans: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --serif: var(--sans);
  --display: 'Pretendard Variable', 'Pretendard', sans-serif;
  --mono: var(--sans);

  /* ---- 레이아웃 ---- */
  --maxw: 1320px;
  --pad-x: clamp(22px, 5vw, 72px);
  --radius: 16px;
  --radius-lg: 26px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0.05, 0, 1);
  --header-h: 74px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.7;
  letter-spacing: -0.012em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--pine); color: #fff; }

/* 은은한 종이 텍스처 */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: 0.03; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 배경 웜 글로우 (구 aurora — 라이트 버전) */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.55; }
.aurora .a1 { width: 46vw; height: 46vw; top: -18vw; right: -12vw; background: radial-gradient(circle, rgba(62,142,240,0.14), transparent 70%); }
.aurora .a2 { width: 40vw; height: 40vw; bottom: -16vw; left: -12vw; background: radial-gradient(circle, rgba(22,86,200,0.10), transparent 70%); }
.aurora .a3 { display: none; }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--pine), var(--bronze));
  z-index: 10001; transition: width 0.1s linear;
}
/* CSS 스크롤 연동 애니메이션 지원 브라우저 → JS 없이 네이티브 처리 */
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    width: 100%; transform-origin: 0 50%; transform: scaleX(0); transition: none;
    animation: sp-grow linear both; animation-timeline: scroll(root);
  }
  @keyframes sp-grow { to { transform: scaleX(1); } }
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); position: relative; z-index: 1; }
.container.narrow { max-width: 880px; }
.pad { padding: clamp(72px, 9vw, 130px) 0; }
.pad-sm { padding: clamp(44px, 6vw, 80px) 0; }
.tone { background: var(--bg-1); }

/* ============================================================
   타이포 시스템
   ============================================================ */
h1, h2, h3, h4 { color: var(--ink); font-weight: 750; letter-spacing: -0.03em; line-height: 1.22; text-wrap: balance; }
p { text-wrap: pretty; }

.eyebrow, .label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 0.88rem; font-weight: 700;
  letter-spacing: -0.01em; color: var(--pine);
}
.eyebrow::before, .label::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--pine); opacity: 0.85; }
.label--line::after { content: none; }
.label .idx { display: none; }

.section-title { font-size: clamp(1.9rem, 4.2vw, 3.1rem); margin-top: 18px; }
.section-title .thin { font-weight: 350; color: var(--ink-3); }
.section-lead { max-width: 460px; color: var(--ink-3); font-size: 1.02rem; }

.grad { color: var(--pine); }
em, .doctor-quote em { font-style: normal; color: var(--pine); }

.sec-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.meta, .coord { font-size: 0.78rem; color: var(--ink-4); line-height: 1.7; }

/* ============================================================
   버튼
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  font-family: var(--sans); font-size: 0.94rem; font-weight: 650; letter-spacing: -0.01em;
  cursor: pointer; border: 1px solid transparent;
  transition: all 0.35s var(--ease); white-space: nowrap;
}
.btn i { font-size: 0.85em; transition: transform 0.35s var(--ease); }
.btn:hover i.fa-arrow-right { transform: translateX(4px); }

.btn-primary { background: var(--pine); color: #fff; box-shadow: 0 8px 22px rgba(22, 86, 200, 0.25); }
.btn-primary:hover { background: var(--pine-2); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(22, 86, 200, 0.3); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--pine); color: var(--pine); transform: translateY(-2px); }

.btn-white { background: #fff; color: var(--pine-2); box-shadow: var(--sh-sm); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }

.btn-glass { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.3); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,0.2); }

.btn-lg { padding: 17px 36px; font-size: 1rem; }

.btn-kakao { background: #FEE500; color: #191919; box-shadow: 0 8px 22px rgba(254, 229, 0, 0.3); }
.btn-kakao:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(254, 229, 0, 0.4); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(250, 248, 244, 0.86);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line-3);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: var(--sh-sm); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 20px; }

.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--ink); font-size: 1.06rem; letter-spacing: -0.02em; }
.logo small { display: block; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-3); margin-top: 2px; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 13px; flex: none;
  background: var(--pine); color: #EAF2FE;
  display: grid; place-items: center; font-size: 1rem;
  box-shadow: 0 6px 16px rgba(22, 86, 200, 0.28);
}

.gnb { display: flex; gap: 4px; }
.gnb > li { position: relative; }
.gnb > li > a {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 15px; border-radius: 999px;
  font-size: 0.93rem; font-weight: 600; color: var(--ink-2);
  transition: all 0.25s;
}
.gnb > li > a i { font-size: 0.6rem; opacity: 0.5; transition: transform 0.25s; }
.gnb > li:hover > a { color: var(--pine); background: var(--pine-soft); }
.gnb > li:hover > a i { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 560px; background: #fff; border: 1px solid var(--line-3);
  border-radius: var(--radius-lg); box-shadow: var(--sh-lg); padding: 18px;
  opacity: 0; visibility: hidden; transition: all 0.3s var(--ease); z-index: 1001;
}
.gnb > li:hover .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega-col-title {
  grid-column: 1 / -1; font-size: 0.78rem; font-weight: 700; letter-spacing: 0;
  color: var(--bronze-2); text-transform: uppercase; padding: 12px 14px 6px;
}
.mega-item {
  display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; border-radius: 12px;
  transition: background 0.2s;
}
.mega-item:hover { background: var(--bg-1); }
.mega-item i { color: var(--pine); margin-top: 3px; width: 18px; text-align: center; }
.mega-item.core i { color: var(--bronze-2); }
.mi-name { display: block; font-weight: 700; color: var(--ink); font-size: 0.92rem; }
.mi-desc { display: block; font-size: 0.78rem; color: var(--ink-3); margin-top: 1px; }

.header-cta { display: flex; align-items: center; gap: 10px; }
.btn-call { font-weight: 750; color: var(--pine); font-size: 0.95rem; display: inline-flex; gap: 8px; align-items: center; }
.btn-call i { font-size: 0.8rem; }
.header-cta .btn-primary { padding: 11px 22px; font-size: 0.88rem; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 모바일 네비 */
.mobile-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 999;
  background: var(--bg); padding: 24px var(--pad-x) 120px; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.4s var(--ease);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav .top-link, .mobile-nav summary {
  display: block; padding: 16px 4px; font-size: 1.1rem; font-weight: 700; color: var(--ink);
  border-bottom: 1px solid var(--line-3); cursor: pointer; list-style: none;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav .sub { padding: 6px 4px 14px 18px; display: grid; gap: 4px; }
.mobile-nav .sub a { padding: 9px 0; color: var(--ink-2); font-weight: 550; }
.mobile-cta { display: grid; gap: 10px; margin-top: 28px; }

main { padding-top: var(--header-h); position: relative; z-index: 1; }

/* ============================================================
   HERO — 풀블리드 포토 + 세리프
   ============================================================ */
.hero {
  position: relative; min-height: calc(100svh - var(--header-h));
  display: flex; align-items: flex-end;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg); overflow: hidden;
  margin: 0 clamp(8px, 1.2vw, 18px);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 112%; object-fit: cover; animation: heroZoom 14s var(--ease) forwards; }
.hero-bg img.parallax { transform: translateY(var(--py, 0)); animation: none; will-change: transform; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,27,46,0.18) 0%, rgba(14,27,46,0.02) 34%, rgba(14,27,46,0.62) 100%),
    linear-gradient(100deg, rgba(14,27,46,0.42) 0%, transparent 55%);
}
.hero .container { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(44px, 6vw, 80px); }

.hero-meta { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: clamp(22px, 3.5vw, 44px); }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 18px; border-radius: 999px;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px); color: #fff; font-size: 0.82rem; font-weight: 600;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #7FB2F8; box-shadow: 0 0 10px #7FB2F8; }
.hero .coord { color: rgba(255,255,255,0.66); text-align: right; }

.hero h1 {
  color: #fff; font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.08;
  letter-spacing: -0.035em; margin-bottom: clamp(24px, 3.5vw, 42px);
  text-shadow: 0 4px 30px rgba(0,0,0,0.18);
}
.hero h1 .l { display: block; overflow: hidden; }
.hero h1 .l > span { display: inline-block; transform: translateY(110%); animation: lineUp 1s var(--ease) forwards; }
.hero h1 .l:nth-child(2) > span { animation-delay: 0.14s; }
@keyframes lineUp { to { transform: translateY(0); } }
.hero h1 .l-grad > span, .hero h1 .l-grad [data-split] { color: #A8CBF9; }

.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.hero-sub { max-width: 500px; color: rgba(255,255,255,0.86); font-size: 1.04rem; line-height: 1.75; margin-bottom: 22px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-primary { background: #fff; color: var(--pine-2); box-shadow: 0 10px 28px rgba(0,0,0,0.2); }
.hero .btn-primary:hover { background: var(--bg-1); }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.42); }
.hero .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.1); }

.hero-info {
  display: grid; gap: 8px; padding: 22px 26px; min-width: 300px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-lg); backdrop-filter: blur(14px);
}
.hero-info .row { display: flex; justify-content: space-between; gap: 24px; font-size: 0.86rem; }
.hero-info .k { font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.6); padding-top: 2px; }
.hero-info .v { color: #fff; font-weight: 650; }
.hero-info .v.acc { color: #BCD5FA; }
.hero-info a { color: inherit; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; z-index: 2;
  font-size: 0.72rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.6);
}
.scroll-hint .bar { width: 36px; height: 1px; background: rgba(255,255,255,0.4); position: relative; overflow: hidden; }
.scroll-hint .bar::after { content: ''; position: absolute; inset: 0; background: #fff; animation: barSlide 2s var(--ease) infinite; }
@keyframes barSlide { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { overflow: hidden; padding: 22px 0; border-bottom: 1px solid var(--line-3); }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: marquee 30s linear infinite; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 14px; white-space: nowrap;
  font-size: 0.86rem; font-weight: 600; color: var(--ink-3);
}
.marquee-item i { font-size: 0.3rem; color: var(--bronze); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   STATS
   ============================================================ */
.fact-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--dark); border-bottom: 1px solid var(--line);
}
.fact { padding: 26px 24px 26px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact strong { display: block; font-size: 1.05rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.fact span { display: block; margin-top: 6px; font-size: 0.85rem; color: var(--ink-3); }

/* ============================================================
   CREED (진료 철학)
   ============================================================ */
.creed { display: grid; grid-template-columns: 240px 1fr; gap: 40px; margin-bottom: clamp(44px, 6vw, 72px); }
.creed-headline {
  font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.2; letter-spacing: -0.035em; margin-bottom: 22px;
}
.creed-lead { max-width: 620px; font-size: 1.08rem; color: var(--ink-2); }

/* 진료 원칙 — 사진 + 흐르는 목록 (카드 그리드 아님) */
.principle-flow { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.pf-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--sh-md); }
.pf-photo img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; display: block; }
.pf-list { display: flex; flex-direction: column; }
.pf-item { padding: 26px 0; border-bottom: 1px solid var(--line); }
.pf-item:first-child { padding-top: 0; }
.pf-item:last-child { border-bottom: none; padding-bottom: 0; }
.pf-item h3 { font-size: 1.12rem; margin-bottom: 8px; }
.pf-item h3 b { color: var(--pine); font-weight: inherit; }
.pf-item p { font-size: 0.95rem; color: var(--ink-3); line-height: 1.8; max-width: 560px; }

/* ============================================================
   CORE — 포토 카드
   ============================================================ */
.core-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.core-photo-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 4.6; display: flex; align-items: flex-end;
  box-shadow: var(--sh-sm); transition: all 0.5s var(--ease);
}
.core-photo-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.cpc-img { position: absolute; inset: 0; }
.cpc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.core-photo-card:hover .cpc-img img { transform: scale(1.06); }
.cpc-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,27,46,0) 30%, rgba(14,27,46,0.78) 100%);
}
.cpc-body { position: relative; z-index: 1; padding: 26px; width: 100%; }
.cpc-idx { font-size: 0.76rem; font-weight: 600; color: rgba(255,255,255,0.65); }
.cpc-title { color: #fff; font-size: 1.5rem; margin: 8px 0 4px; }
.cpc-tag { color: #BCD5FA; font-size: 0.88rem; font-weight: 600; }
.cpc-desc {
  color: rgba(255,255,255,0.8); font-size: 0.85rem; line-height: 1.65; margin-top: 10px;
  max-height: 0; opacity: 0; overflow: hidden; transition: all 0.5s var(--ease);
}
.core-photo-card:hover .cpc-desc { max-height: 130px; opacity: 1; }
.cpc-arrow {
  position: absolute; top: 20px; right: 20px; z-index: 1;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px); display: grid; place-items: center; color: #fff;
  transition: all 0.4s var(--ease);
}
.core-photo-card:hover .cpc-arrow { background: #fff; color: var(--pine); transform: rotate(-38deg); }

/* (레거시 core-list 호환) */
.core-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.core-row {
  display: grid; grid-template-columns: 80px 260px 1fr 60px; gap: 24px; align-items: center;
  padding: 30px 8px; border-bottom: 1px solid var(--line); transition: all 0.3s;
}
.core-row:hover { background: #fff; padding-left: 18px; }
.cr-idx { font-size: 0.78rem; font-weight: 700; color: var(--ink-4); }
.cr-main { display: flex; gap: 14px; align-items: center; }
.cr-ico { color: var(--bronze-2); }
.cr-title { font-size: 1.3rem; font-weight: 750; color: var(--ink); }
.cr-tag { display: block; color: var(--pine); font-size: 0.85rem; font-weight: 650; margin-bottom: 4px; }
.cr-desc { display: block; font-size: 0.86rem; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cr-arrow { color: var(--ink-4); transition: all 0.3s; }
.core-row:hover .cr-arrow { color: var(--pine); transform: translateX(4px); }

/* ============================================================
   CHIPS (일반 진료)
   ============================================================ */
.tx-index { border-top: 2px solid var(--dark); position: relative; }
/* 커서 팔로우 이미지 프리뷰 (tx-index 호버) */
.tx-preview {
  position: fixed; z-index: 60; width: 250px; aspect-ratio: 4/3;
  border-radius: 14px; overflow: hidden; pointer-events: none;
  box-shadow: 0 24px 60px rgba(14,27,46,0.28);
  opacity: 0; transform: scale(0.88) rotate(-2deg);
  transition: opacity 0.28s var(--ease), transform 0.38s var(--ease);
}
.tx-preview.show { opacity: 1; transform: scale(1) rotate(0deg); }
.tx-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.22s ease; }
.tx-preview img.on { opacity: 1; }
@media (hover: none), (max-width: 900px) { .tx-preview { display: none; } }
.tx-row {
  display: grid; grid-template-columns: 200px 1fr auto; gap: clamp(16px, 3vw, 48px);
  align-items: baseline; padding: 24px 4px; border-bottom: 1px solid var(--line);
  transition: background 0.25s var(--ease), padding 0.25s var(--ease);
}
.tx-row:hover { background: rgba(22, 86, 200, 0.035); padding-left: 14px; padding-right: 0; }
.tx-name { font-weight: 750; color: var(--text); font-size: clamp(1.05rem, 1.6vw, 1.25rem); letter-spacing: -0.02em; }
.tx-desc { color: var(--ink-3); font-size: 0.92rem; }
.tx-go { font-size: 0.82rem; font-weight: 700; color: var(--ink-4); white-space: nowrap; transition: color 0.25s; }
.tx-row:hover .tx-go { color: var(--pine); }

/* ============================================================
   DOCTOR 섹션
   ============================================================ */
.doctor-feature { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.doctor-quote {
  font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; color: var(--ink);
  line-height: 1.4; letter-spacing: -0.03em; margin-bottom: 22px;
}
.doctor-note { color: var(--ink-3); max-width: 480px; margin-bottom: 26px; }
.doctor-sign { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.doctor-sign .nm { font-weight: 800; color: var(--ink); font-size: 1.06rem; }
.doctor-sign .cr { font-size: 0.84rem; color: var(--bronze-2); }

.cred-list { display: grid; gap: 10px; margin-bottom: 30px; }
.cred-item { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-2); }
.cred-item .n { font-size: 0.78rem; font-weight: 800; color: var(--pine); padding-top: 3px; }
.cred-item i { color: var(--pine); }

.doctor-photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 5; box-shadow: var(--sh-lg);
}
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(14,27,46,0.62) 100%);
}
.doctor-photo .ph-label { position: absolute; bottom: 22px; left: 24px; z-index: 1; }
.doctor-photo .pn { color: #fff; font-weight: 800; font-size: 1.1rem; }
.doctor-photo .pc { color: rgba(255,255,255,0.75); font-size: 0.8rem; }
.ph-corner { position: absolute; top: 18px; left: 20px; z-index: 1; color: rgba(255,255,255,0.6); }

/* 플레이스홀더 호환 */
.doctor-photo.is-placeholder { background: linear-gradient(160deg, var(--bg-2), var(--bg-3)); }
.ph-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; align-content: center; gap: 8px; }
.ph-icon { font-size: 3rem; color: var(--ink-4); }
.ph-note, .ph-dim { font-size: 0.74rem; color: var(--ink-4); }

/* ============================================================
   FEATURE SPLIT + EQUIPMENT
   ============================================================ */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.feature-list { display: grid; gap: 20px; margin-top: 30px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.fi-ico {
  width: 46px; height: 46px; flex: none; border-radius: 14px;
  background: var(--bronze-soft); color: var(--bronze-2);
  display: grid; place-items: center; font-size: 1.02rem;
}
.feature-item h4 { font-size: 1.02rem; margin-bottom: 4px; }
.feature-item p { font-size: 0.88rem; color: var(--ink-3); }

.equip-table { background: #fff; border: 1px solid var(--line-3); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--sh-sm); }
.equip-row { display: flex; gap: 18px; padding: 22px 26px; border-bottom: 1px solid var(--line-3); align-items: flex-start; transition: background 0.25s; }
.equip-row:last-child { border-bottom: none; }
.equip-row:hover { background: var(--bg-1); }
.en-idx { font-family: var(--sans); font-weight: 800; color: var(--pine); font-size: 0.92rem; padding-top: 3px; }
.equip-row .en { font-weight: 750; color: var(--ink); font-size: 0.98rem; }
.equip-row .ed { font-size: 0.85rem; color: var(--ink-3); margin-top: 3px; }
.equip-row i { color: var(--pine); margin-top: 4px; }
.equip-visual { background: #fff; border: 1px solid var(--line-3); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--sh-sm); }
.equip-visual h3 { margin-bottom: 18px; font-size: 1.15rem; }
.equip-visual h3 i { color: var(--bronze-2); margin-right: 8px; }
.equip-grid { display: grid; gap: 4px; }

/* ============================================================
   FUNNEL — 환자 여정
   ============================================================ */
.journey { border-top: 1px solid var(--line); }
.journey-row {
  display: grid; grid-template-columns: 150px 1fr; gap: clamp(20px, 4vw, 60px);
  padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.journey-row .jt { font-weight: 750; font-size: 1.05rem; color: var(--ink); }
.journey-row .jd { font-size: 0.95rem; color: var(--ink-3); line-height: 1.8; max-width: 640px; }

/* ============================================================
   LIFE 섹션 (풀블리드 포토 밴드)
   ============================================================ */
.life-band {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 480px; display: flex; align-items: center; box-shadow: var(--sh-lg);
}
.life-band .lb-img { position: absolute; inset: 0; }
.life-band .lb-img img { width: 100%; height: 100%; object-fit: cover; }
.life-band .lb-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(14,27,46,0.72) 0%, rgba(14,27,46,0.32) 55%, transparent 100%);
}
.lb-body { position: relative; z-index: 1; padding: clamp(36px, 6vw, 72px); max-width: 620px; }
.lb-body .eyebrow { color: #BCD5FA; }
.lb-body h2 { color: #fff; font-size: clamp(1.8rem, 3.8vw, 2.8rem); margin: 16px 0 18px; }
.lb-body h2 em { color: #BCD5FA; }
.lb-body p { color: rgba(255,255,255,0.85); font-size: 1rem; margin-bottom: 26px; }

/* ============================================================
   CTA 밴드
   ============================================================ */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--dark); border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 88px) clamp(28px, 5vw, 72px);
  text-align: center; box-shadow: var(--sh-lg);
}
.cta-band::before {
  content: ''; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%;
  top: -40%; right: -18%; filter: blur(80px);
  background: radial-gradient(circle, rgba(62,142,240,0.35), transparent 70%);
}
.cta-band::after {
  content: ''; position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%;
  bottom: -36%; left: -12%; filter: blur(80px);
  background: radial-gradient(circle, rgba(46,107,87,0.4), transparent 70%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band .label, .cta-band .eyebrow { color: #9CC0F6; justify-content: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3.2rem); margin: 18px 0; }
.cta-band h2 em { color: #BCD5FA; }
.cta-band p { color: rgba(255,255,255,0.78); max-width: 560px; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-primary { background: #fff; color: var(--pine-2); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; }
.cta-inner { position: relative; z-index: 1; }

/* ============================================================
   PAGE HERO (서브페이지)
   ============================================================ */
.page-hero {
  position: relative; padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line-3);
  background:
    radial-gradient(60% 120% at 85% -20%, rgba(62,142,240,0.10), transparent 60%),
    radial-gradient(50% 110% at 10% -10%, rgba(22,86,200,0.08), transparent 60%);
}
.page-hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); margin: 14px 0 16px; }
.ph-sub { max-width: 640px; color: var(--ink-3); font-size: 1.02rem; }
.page-hero.with-photo { border-bottom: none; padding: 0; background: none; }

.breadcrumb { display: flex; gap: 10px; align-items: center; font-size: 0.8rem; color: var(--ink-4); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--pine); }
.breadcrumb .sep { opacity: 0.4; }

/* ============================================================
   그리드 & 카드
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card, .glass-card {
  background: #fff; border: 1px solid var(--line-3); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--sh-sm); transition: all 0.4s var(--ease);
  position: relative; display: block;
}
.card:hover, .glass-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.glass-card h3 { font-size: 1.3rem; margin: 16px 0 8px; }
.glass-card .tag { display: inline-block; font-size: 0.82rem; color: var(--pine); font-weight: 700; margin-bottom: 10px; }
.glass-card p { font-size: 0.9rem; color: var(--ink-3); }
.glass-card .more { display: inline-flex; gap: 8px; align-items: center; margin-top: 16px; font-weight: 700; color: var(--pine); font-size: 0.9rem; }
.num-tag { position: absolute; top: 24px; right: 26px; font-family: var(--sans); font-weight: 800; color: var(--pine); opacity: 0.35; font-size: 1.05rem; }
.tico {
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--pine-soft); color: var(--pine);
  display: grid; place-items: center; font-size: 1.2rem;
}

.info-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--sh-sm); border: 1px solid var(--line-3); }
.info-table th, .info-table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line-3); font-size: 0.92rem; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
.info-table th { width: 130px; background: var(--bg-1); color: var(--ink); font-weight: 700; }
.info-table td { color: var(--ink-2); }

.notice-box {
  display: flex; gap: 16px; padding: 22px 26px;
  background: var(--bronze-soft); border: 1px solid rgba(62,142,240,0.25);
  border-radius: var(--radius); font-size: 0.92rem; color: var(--ink-2);
}
.notice-box i { color: var(--bronze-2); margin-top: 4px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: #fff; border: 1px solid var(--line-3); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--sh-sm); transition: box-shadow 0.3s;
}
.faq-item[open] { box-shadow: var(--sh-md); border-color: rgba(22,86,200,0.22); }
.faq-item summary {
  padding: 19px 24px; cursor: pointer; list-style: none;
  font-weight: 700; color: var(--ink); font-size: 0.97rem;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.3rem; font-weight: 300; color: var(--bronze-2);
  transition: transform 0.3s; flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.q-ico {
  width: 26px; height: 26px; flex: none; border-radius: 8px;
  background: var(--pine-soft); color: var(--pine);
  display: inline-grid; place-items: center; font-size: 0.75rem; font-weight: 800;
}
.faq-a { padding: 0 24px 22px 62px; color: var(--ink-2); font-size: 0.92rem; line-height: 1.8; }

/* ============================================================
   진료 상세
   ============================================================ */
.t-detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.t-section { margin-bottom: clamp(36px, 5vw, 52px); }
.t-section h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.t-section h2::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 52px; height: 2px; background: var(--pine); }
.t-section p { color: var(--ink-2); line-height: 1.9; font-size: 0.97rem; }
.t-hero-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--sh-md); margin-bottom: clamp(32px, 5vw, 48px); aspect-ratio: 21/9; }
.t-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.proc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.proc-card { background: #fff; border: 1px solid var(--line-3); border-radius: var(--radius); padding: 22px; box-shadow: var(--sh-sm); }
.proc-card h4 { font-size: 1rem; margin-bottom: 7px; color: var(--pine-2); }
.proc-card p { font-size: 0.85rem !important; color: var(--ink-3) !important; }

.t-sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.side-card { background: #fff; border: 1px solid var(--line-3); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--sh-sm); }
.side-card.brand { background: var(--dark); border-color: transparent; }
.side-card.brand h4 { color: #fff; }
.side-card.brand p { color: rgba(255,255,255,0.75); font-size: 0.88rem; margin: 10px 0 18px; }
.side-card h4 { font-size: 1.04rem; margin-bottom: 8px; }
.side-links { display: grid; gap: 2px; margin-top: 10px; }
.side-links a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 4px; font-size: 0.9rem; color: var(--ink-2); font-weight: 550;
  border-bottom: 1px solid var(--line-3); transition: all 0.25s;
}
.side-links a:last-child { border-bottom: none; }
.side-links a:hover { color: var(--pine); padding-left: 8px; }
.side-links a i { font-size: 0.7rem; color: var(--ink-4); }

/* ============================================================
   의료진
   ============================================================ */
.doc-card {
  display: grid; grid-template-columns: 320px 1fr; gap: clamp(28px, 4vw, 52px);
  background: #fff; border: 1px solid var(--line-3); border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 44px); box-shadow: var(--sh-md); align-items: center;
}
.dc-photo {
  aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2); display: grid; place-items: center;
  font-size: 3rem; color: var(--ink-4);
}
.dc-photo img { width: 100%; height: 100%; object-fit: cover; }
.doc-card h3 { font-size: 1.6rem; margin-bottom: 6px; }
.dc-title { color: var(--bronze-2); font-weight: 650; font-size: 0.9rem; margin-bottom: 16px; }

.story-quote { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 18px 0 20px; line-height: 1.35; }
.story-body { font-size: 1.04rem; color: var(--ink-2); line-height: 1.9; max-width: 720px; }
.story-attr { margin-top: 22px; font-weight: 700; color: var(--pine-2); font-size: 0.98rem; }
.voice-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.voice-chip {
  padding: 10px 20px; background: #fff; border: 1px solid var(--line-3);
  border-radius: 999px; font-size: 0.88rem; color: var(--ink-2); box-shadow: var(--sh-sm);
}
.story-flow { border-top: 2px solid var(--dark); }
.story-item {
  display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 4vw, 60px);
  padding: clamp(32px, 4vw, 48px) 0; border-bottom: 1px solid var(--line);
}
.si-label { font-size: 0.85rem; font-weight: 700; color: var(--pine); }
.si-head h3 { font-size: 1.3rem; margin-top: 10px; line-height: 1.4; letter-spacing: -0.02em; }
.si-body p { font-size: 0.98rem; color: var(--ink-2); line-height: 1.95; }
.si-close { margin-top: 14px; color: var(--pine) !important; font-weight: 600; }

/* ============================================================
   비포·애프터
   ============================================================ */
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ba-card { background: #fff; border: 1px solid var(--line-3); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--sh-sm); transition: all 0.4s var(--ease); }
.ba-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.ba-images { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line-3); }
.ba-img { aspect-ratio: 1; background: var(--bg-1); display: grid; place-items: center; position: relative; overflow: hidden; }
.ba-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ba-tag {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  padding: 4px 12px; border-radius: 999px; font-size: 0.68rem; font-weight: 700;
  background: var(--ink); color: #fff; letter-spacing: 0.06em;
}
.ba-img.locked { background: var(--bg-2); }
.lock-ui { text-align: center; color: var(--ink-3); font-size: 0.76rem; line-height: 1.5; }
.lock-ui i { font-size: 1.3rem; display: block; margin-bottom: 8px; color: var(--bronze-2); }
.ba-body { padding: 20px 22px; }
.ba-body h4 { font-size: 1.02rem; margin-bottom: 8px; }
.ba-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.76rem; color: var(--ink-3); }
.ba-meta span { padding: 4px 10px; background: var(--bg-1); border-radius: 999px; }

/* 비포애프터 슬라이더 */
.ba-slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; box-shadow: var(--sh-md); user-select: none; }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-slider .after-wrap { position: absolute; inset: 0; overflow: hidden; }
.ba-slider .handle {
  position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; cursor: ew-resize; z-index: 2;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
.ba-slider .handle::after {
  content: '⟷'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--pine);
  display: grid; place-items: center; font-size: 1rem; font-weight: 700;
  box-shadow: var(--sh-md);
}

/* ============================================================
   블로그
   ============================================================ */
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.blog-cats a {
  padding: 9px 20px; border-radius: 999px; font-size: 0.86rem; font-weight: 650;
  background: #fff; border: 1px solid var(--line-3); color: var(--ink-2);
  box-shadow: var(--sh-sm); transition: all 0.25s;
}
.blog-cats a:hover { border-color: var(--pine); color: var(--pine); }
.blog-cats a.on { background: var(--pine); border-color: var(--pine); color: #fff; }

.blog-feature {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0; overflow: hidden;
  background: #fff; border: 1px solid var(--line-3); border-radius: var(--radius-lg);
  box-shadow: var(--sh-md); margin-bottom: 28px; transition: all 0.4s var(--ease);
}
.blog-feature:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.bf-visual {
  background: var(--dark); min-height: 300px; position: relative;
  display: grid; place-items: center; font-size: 3.4rem; color: rgba(255,255,255,0.85); overflow: hidden;
}
.bf-visual::before {
  content: ''; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  top: -30%; right: -20%; filter: blur(60px);
  background: radial-gradient(circle, rgba(62,142,240,0.45), transparent 70%);
}
.bf-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bf-body { padding: clamp(28px, 4vw, 44px); }
.bf-cat { font-size: 0.8rem; font-weight: 700; color: var(--pine); }
.blog-feature h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin: 14px 0 12px; }
.bf-body p { color: var(--ink-3); font-size: 0.93rem; }
.bf-meta { display: flex; gap: 16px; margin: 18px 0 22px; font-size: 0.8rem; color: var(--ink-4); }
.bf-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--pine); font-size: 0.92rem; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.blog-card {
  background: #fff; border: 1px solid var(--line-3); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--sh-sm); transition: all 0.4s var(--ease);
  display: flex; flex-direction: column; gap: 12px;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.bc-ico {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--pine-soft); color: var(--pine);
  display: grid; place-items: center; font-size: 1.05rem;
}
.bc-cat { font-size: 0.76rem; font-weight: 700; color: var(--pine); }
.blog-card h3 { font-size: 1.08rem; line-height: 1.45; }
.blog-card p { font-size: 0.86rem; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bc-meta { display: flex; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-3); font-size: 0.76rem; color: var(--ink-4); }
.bc-read { color: var(--pine); font-weight: 700; }

.post-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.82rem; color: var(--ink-4); margin-top: 16px; }
.post-lead { font-size: 1.12rem; color: var(--ink-2); line-height: 1.85; padding: 22px 26px; background: var(--pine-soft); border-left: 3px solid var(--pine); border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 36px; }
.post-body h2 { font-size: 1.4rem; margin: 40px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); position: relative; }
.post-body h2::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 48px; height: 2px; background: var(--pine); }
.post-body p { color: var(--ink-2); line-height: 1.9; font-size: 0.98rem; }
.post-takeaway { margin-top: 44px; padding: 26px 30px; background: var(--dark); border-radius: var(--radius-lg); color: rgba(255,255,255,0.88); }
.post-takeaway .pt-label { color: #9CC0F6; font-size: 0.82rem; font-weight: 700; display: block; margin-bottom: 10px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.ptag { padding: 6px 14px; background: #fff; border: 1px solid var(--line-3); border-radius: 999px; font-size: 0.78rem; color: var(--ink-3); }
.post-disclaimer { margin-top: 30px; font-size: 0.8rem; color: var(--ink-4); line-height: 1.7; padding: 16px 20px; background: var(--bg-1); border-radius: var(--radius); }

/* ============================================================
   폼
   ============================================================ */
.form-input {
  width: 100%; padding: 14px 18px; border-radius: 13px;
  border: 1.5px solid var(--line-2); background: #fff; color: var(--ink);
  font-family: var(--sans); font-size: 1rem; transition: all 0.25s; outline: none; /* 16px 이상 — iOS 자동확대 방지 */
}
.form-input:focus { border-color: var(--pine); box-shadow: 0 0 0 4px rgba(22,86,200,0.1); }
.form-input::placeholder { color: var(--ink-4); }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2374829C' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }

/* ============================================================
   퍼널 장치: 플로팅 CTA + 모바일 스티키 바
   ============================================================ */
.float-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.float-cta a {
  display: flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 20px; border-radius: 999px;
  font-weight: 700; font-size: 0.88rem;
  box-shadow: var(--sh-md); transition: all 0.3s var(--ease);
}
.float-cta a:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.fc-kakao { background: #FEE500; color: #191919; }
.fc-reserve { background: var(--pine); color: #fff; }
.fc-top {
  width: 52px; height: 52px; padding: 0 !important; justify-content: center;
  background: #fff; color: var(--ink-2); border: 1px solid var(--line-3);
  opacity: 0; visibility: hidden;
}
.fc-top.show { opacity: 1; visibility: visible; }

.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  display: none; grid-template-columns: 1fr 1fr 1.3fr;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-3); box-shadow: 0 -6px 24px rgba(23,32,46,0.08);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 8px;
}
.sticky-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 8px; border-radius: 13px; font-size: 0.86rem; font-weight: 750;
}
.sb-call { background: var(--bg-1); color: var(--ink); }
.sb-kakao { background: #FEE500; color: #191919; }
.sb-reserve { background: var(--pine); color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.65); margin-top: clamp(48px, 7vw, 90px); position: relative; overflow: hidden; }
.site-footer::before {
  content: ''; position: absolute; width: 50%; aspect-ratio: 1; border-radius: 50%;
  top: -46%; right: -14%; filter: blur(100px);
  background: radial-gradient(circle, rgba(62,142,240,0.2), transparent 70%);
}
.site-footer .container { position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1.1fr; gap: 40px; padding: clamp(48px, 6vw, 72px) 0 40px; }
.footer-brand .logo { color: #fff; margin-bottom: 18px; }
.footer-brand .logo small { color: #9CC0F6; }
.footer-brand .logo-mark { background: rgba(255,255,255,0.1); color: #BCD5FA; box-shadow: none; }
.footer-brand p { font-size: 0.88rem; line-height: 1.8; }
.footer-col h5 { color: #fff; font-size: 0.94rem; margin-bottom: 16px; font-weight: 750; }
.footer-col a { display: block; padding: 6px 0; font-size: 0.87rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col a:hover { color: #BCD5FA; }
.footer-contact { display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 12px; font-size: 0.87rem; align-items: flex-start; }
.footer-contact i { color: #9CC0F6; margin-top: 4px; width: 16px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 26px 0; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem;
}
.footer-biz { line-height: 1.8; color: rgba(255,255,255,0.5); }
.footer-biz b { color: rgba(255,255,255,0.8); }
.footer-legal { display: flex; gap: 20px; align-items: center; }
.footer-legal a:hover { color: #BCD5FA; }
.compliance-note {
  padding: 20px 0 34px; font-size: 0.74rem; color: rgba(255,255,255,0.38); line-height: 1.8;
}

/* ============================================================
   리빌 애니메이션
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* 사진 와이프 리빌 — 커튼 걷히듯 (reveal 옵저버 공유) */
.reveal-wipe { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease); }
.reveal-wipe img { transform: scale(1.12); transition: transform 1.4s var(--ease); }
.reveal-wipe.in { clip-path: inset(0 0 0 0); }
.reveal-wipe.in img { transform: scale(1); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal-wipe { clip-path: none; }
  .reveal-wipe img { transform: none; }
}

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 1080px) {
  .gnb { display: none; }
  .menu-toggle { display: flex; }
  .btn-call { display: none; }
  .creed { grid-template-columns: 1fr; gap: 18px; }
  .principle-flow { grid-template-columns: 1fr; }
  .pf-photo img { min-height: 300px; }
  .core-photo-grid { grid-template-columns: 1fr 1fr; }
  .journey-row { grid-template-columns: 120px 1fr; }
  .t-detail-grid { grid-template-columns: 1fr; }
  .t-sidebar { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .doc-card { grid-template-columns: 1fr; }
  .dc-photo { max-width: 340px; }
  .story-item { grid-template-columns: 1fr; gap: 14px; }
  .fact-strip { grid-template-columns: 1fr 1fr; }
  .fact { padding: 20px 16px 20px 0; }
  .fact + .fact { padding-left: 0; border-left: none; }
  .fact:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .blog-feature { grid-template-columns: 1fr; }
  .bf-visual { min-height: 220px; }
  .cpc-desc { max-height: none; opacity: 1; }
}

@media (max-width: 720px) {
  .hero { margin: 0; border-radius: 0; min-height: calc(96svh - var(--header-h)); }
  .hero-meta { flex-direction: column; gap: 12px; }
  .hero .coord { text-align: left; }
  .hero-foot { flex-direction: column; align-items: stretch; }
  .hero-info { min-width: 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 14px; }

  
  .core-photo-grid { grid-template-columns: 1fr; }
  .core-photo-card { aspect-ratio: 4/3.4; }
  .tx-row { grid-template-columns: 1fr; gap: 4px; padding: 18px 4px; }
  .tx-go { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .doctor-feature, .feature-split { grid-template-columns: 1fr; gap: 32px; }
  .journey-row { grid-template-columns: 1fr; gap: 6px; }
  .ba-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .proc-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .float-cta { display: none; }
  .sticky-bar { display: grid; }
  body { padding-bottom: 74px; }
  .life-band { min-height: 420px; }
  .core-row { grid-template-columns: 1fr; gap: 10px; }
  .cred-list[style] { grid-template-columns: 1fr !important; }

  /* 모바일 터치·가독성 보강 */
  .btn { min-height: 48px; }                                /* 터치 타깃 48px 확보 */
  .tx-row { min-height: 56px; align-content: center; }
  .hero h1 { font-size: clamp(2.1rem, 9.5vw, 2.8rem); }     /* 작은 폰 줄밀림 방지 */
  .hero-info { backdrop-filter: none; background: rgba(14,27,46,0.55); } /* 모바일 GPU 부하 절감 */
  .fact strong { font-size: 0.95rem; }
  .si-head h3 { font-size: 1.15rem; }
  .journey-row { padding: 16px 0; }
  .pf-photo img { min-height: 240px; }
  .aurora { display: none; }                                 /* 모바일 blur 렌더 비용 제거 */
  .float-cta, .tx-preview { display: none; }
}

/* 가로 스크롤 방지 (전역) */
html, body { overflow-x: clip; }
