/* ============================================================
   올케어치과 — EDITORIAL MAGAZINE SYSTEM v3
   밝은 아이보리 베이스 · 딥 네이비 무게중심 · 민트/골드 포인트
   거대 영문 디스플레이(Fraunces) + 한글 나눔명조 800
   ============================================================ */

:root {
  /* ============================================================
     권민수 원장 2차 컬러 스펙 (2026.06 확정)
     · 메인(잉크)  딥네이비  #062741 → 로고·헤드라인·본문·버튼/CTA (단일 통일)
     · 배경(주)    아이보리  #FFFEEE → 페이지 기본 배경 (순백 #FFFFFF 제외)
     · 섹션·카드   웜베이지  #F1E9DC → 섹션 구분·카드·이미지 배경
     · 액센트      브라스골드 #B08D57 → 라인·아이콘·포인트 (면적 5% 이내)
     · 브라스 텍스트는 네이비 배경에서만 사용
     ============================================================ */
  --navy-900: #041a2c;   /* 네이비 hover/딥 배경용 미세 변주 */
  --navy-800: #062741;   /* ★ 딥 네이비 (단일 메인) */
  --navy-700: #0b3252;
  --navy-600: #154366;
  --navy-500: #2a5d85;
  --navy-300: #7d9cb5;

  /* (구)민트 → 팔레트에서 제외, 네이비 계열로 흡수 */
  --mint: #062741;
  --mint-600: #041a2c;
  --mint-400: #b08d57;    /* 다크(네이비) 배경 위 액센트 = 브라스 */
  --mint-tint: #f1e9dc;

  --gold: #b08d57;        /* ★ 브라스 골드 (포인트 5% 이내) */
  --gold-600: #97774a;
  --gold-300: #c7a878;
  --gold-tint: #f1e9dc;

  /* ---- 아이보리 / 웜베이지 (순백 #FFFFFF 사용 금지) ---- */
  --ivory: #fffeee;       /* ★ 페이지 기본 배경 */
  --ivory-2: #f1e9dc;     /* ★ 섹션·카드·이미지 배경 */
  --paper: #fffeee;
  --line: #e2d8c4;        /* 웜 라인 */
  --line-soft: #ece4d2;

  /* ---- 텍스트 (잉크 = 네이비 통일) ---- */
  --ink: #062741;
  --ink-soft: #2b4258;
  --gray-600: #4f6273;
  --gray-400: #84929f;

  /* ---- alias (기존 컴포넌트 호환) ---- */
  --ink-900: var(--navy-800);
  --ink-800: var(--navy-700);
  --ink-700: var(--navy-600);
  --brand: var(--navy-800);
  --brand-deep: var(--navy-900);
  --brand-dark: var(--navy-900);
  --brand-accent: var(--mint);
  --brand-accent-2: var(--gold);
  --sage: var(--mint);
  --sage-soft: var(--mint-400);
  --mint-soft: var(--mint-400);
  --beige: var(--ivory-2);
  --beige-soft: var(--ivory);
  --gray-200: var(--line);
  --gray-100: var(--line-soft);
  --white: #fffeee;  /* 순백 제외 — 아이보리가 화이트 역할 */

  /* ---- 라디우스 (매거진 = 거의 직각) ---- */
  --radius: 2px;
  --radius-lg: 4px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(6,39,65,.05);
  --shadow: 0 22px 60px -30px rgba(6,39,65,.22);
  --shadow-lg: 0 50px 110px -40px rgba(6,39,65,.32);

  /* ---- 타이포 ---- */
  --font-head: 'Nanum Myeongjo','Fraunces','Pretendard',Georgia,serif;
  --font-body: 'Pretendard',-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Segoe UI',sans-serif;
  --font-disp: 'Fraunces','Nanum Myeongjo',Georgia,serif;      /* 영문 디스플레이 */

  --maxw: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.22,.61,.36,1);
  --spring: cubic-bezier(.16,1,.3,1);
  --font-mono: 'DM Mono', ui-monospace, 'SF Mono', 'Roboto Mono', monospace;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.02em;
  word-break: keep-all;
  color: var(--ink);
}
em, .italic { font-style: normal; color: var(--mint); }

/* 영문 디스플레이 유틸 */
.disp { font-family: var(--font-disp); font-weight: 340; font-style: normal; letter-spacing: -.01em; }
.eng  { font-family: var(--font-disp); }
.kicker {
  font-family: var(--font-disp);
  font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 500; color: var(--gold-600);
}

::selection { background: var(--mint); color: #fffeee; }

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 11vw, 160px) 0; }
.section-sm { padding: clamp(52px, 7vw, 96px) 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--mint), var(--gold));
  z-index: 9999; transition: width .12s linear;
}

/* ============================================================
   HEADER — 매거진 마스트헤드
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: padding .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(251,250,247,.86);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled .header-inner { padding-top: 14px; padding-bottom: 14px; }

.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; }
.logo .mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  transition: transform .4s var(--ease);
}
.logo .mark-img { width: 28px; height: 28px; display: block; grid-area: 1/1; transition: opacity .4s var(--ease); }
.logo .mark-navy { opacity: 0; }
.site-header.scrolled .logo .mark-ivory { opacity: 0; }
.site-header.scrolled .logo .mark-navy { opacity: 1; }
.logo:hover .mark { transform: rotate(-12deg); }
.logo > span:last-child {
  font-family: var(--font-head); font-size: 22px; letter-spacing: -.02em;
  color: #fffeee; transition: color .4s var(--ease);
}
.site-header.scrolled .logo > span:last-child { color: var(--ink); }

/* GNB — 얇은 라인 */
.gnb { display: flex; align-items: center; gap: 4px; }
.gnb > li { position: relative; }
.gnb > li > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 18px; font-size: 15px; font-weight: 600;
  color: rgba(255,255,255,.9); letter-spacing: -.01em;
  transition: color .25s;
}
.site-header.scrolled .gnb > li > a { color: var(--ink-soft); }
.gnb > li > a:hover { color: var(--mint-400); }
.site-header.scrolled .gnb > li > a:hover { color: var(--mint); }

/* 메가 드롭다운 */
.mega {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(10px);
  min-width: 560px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 24px;
  opacity: 0; visibility: hidden; transition: all .3s var(--ease); z-index: 50;
}
.gnb > li:hover .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 22px; }
.mega-col-title {
  grid-column: 1 / -1; font-family: var(--font-disp); font-size: 12px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-600);
  margin: 8px 0 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft);
}
.mega-grid a {
  display: flex; align-items: center; gap: 13px; padding: 11px 12px;
  border-radius: var(--radius); transition: background .2s;
}
.mega-grid a:hover { background: var(--ivory-2); }
.mega-grid a .ico {
  width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--mint-tint); color: var(--mint); border-radius: 50%; font-size: 15px;
}
.mega-grid a.core .ico { background: var(--navy-800); color: var(--gold-300); }
.mega-grid a strong { display: block; font-size: 15px; font-weight: 700; color: var(--ink); }
.mega-grid a span span { font-size: 12.5px; color: var(--gray-600); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-tel {
  font-family: var(--font-disp); font-weight: 500; font-size: 16px;
  color: rgba(255,255,255,.92); letter-spacing: .01em; transition: color .3s;
}
.site-header.scrolled .header-tel { color: var(--ink); }
.header-tel i { color: var(--gold-300); margin-right: 6px; }
.site-header.scrolled .header-tel i { color: var(--gold-600); }

.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 24px; height: 2px; background: #fffeee; transition: background .3s; }
.site-header.scrolled .burger span { background: var(--ink); }

/* ============================================================
   BUTTONS — 매거진 (각진 + 얇은 보더, 일부 pill)
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  border-radius: var(--radius); transition: all .35s var(--ease);
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn i { transition: transform .35s var(--ease); }
.btn:hover i.fa-arrow-right { transform: translateX(5px); }

.btn-primary { background: var(--navy-800); color: #fffeee; }
.btn-primary:hover { background: var(--navy-900); transform: translateY(-2px); box-shadow: 0 16px 34px -16px rgba(18,32,54,.6); }

.btn-accent { background: var(--mint); color: #fffeee; }
.btn-accent:hover { background: var(--mint-600); transform: translateY(-2px); box-shadow: 0 16px 34px -16px rgba(6,39,65,.5); }

.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-600); color: #fffeee; transform: translateY(-2px); }

.btn-ghost { border: 1px solid rgba(255,255,255,.4); color: #fffeee; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); }

.btn-outline { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--navy-800); color: #fffeee; border-color: var(--navy-800); }

/* 텍스트 링크 화살표 */
.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-disp); font-size: 15px; font-weight: 500; letter-spacing: .02em;
  color: var(--ink); padding-bottom: 4px; border-bottom: 1px solid var(--ink);
  transition: gap .3s var(--ease), color .3s, border-color .3s;
}
.link-arrow:hover { gap: 16px; color: var(--mint); border-color: var(--mint); }

/* ============================================================
   HERO — 매거진 표지
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 0 clamp(48px, 7vw, 96px); overflow: hidden;
  background: var(--navy-900);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .58; filter: contrast(1.02) brightness(.92) saturate(1.04);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,27,48,.7) 0%, rgba(14,27,48,.2) 30%, rgba(14,27,48,.35) 62%, rgba(14,27,48,.96) 100%);
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(60% 50% at 78% 18%, rgba(176,141,87,.22), transparent 70%);
  mix-blend-mode: screen;
}
/* v7: 살아 숨쉬는 그라데이션 메시 캔버스 (이미지 위 · 콘텐츠 아래) */
.hero-canvas {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  mix-blend-mode: screen; opacity: .9;
  pointer-events: none;
}

/* 마스트헤드 라인 (상단) */
.hero-rule { display: none; }
.hero-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 100px var(--gutter) 0;
  font-family: var(--font-mono, var(--font-disp)); font-size: 11.5px; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
}
.hero-top span:last-child { text-align: right; }
.hero-coord {
  text-align: center; color: rgba(255,255,255,.42);
  font-family: var(--font-mono, monospace); letter-spacing: .12em;
}

.hero-inner { position: relative; z-index: 3; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-disp); font-size: 13px; letter-spacing: .12em;
  color: var(--gold-300); margin-bottom: 26px; text-transform: uppercase;
}
.hero .eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--gold-300); }

.hero h1 {
  color: #fffeee; font-size: clamp(3rem, 9vw, 8rem); line-height: .98;
  letter-spacing: -.03em; margin-bottom: 0;
}
/* 핫한 디자이너 모드: 화면 압도하는 메가 타이포 */
.hero h1.hero-mega {
  font-size: clamp(3.4rem, 13vw, 12rem); line-height: .9; letter-spacing: -.045em;
}
.hero h1 .line-mask { display: block; overflow: hidden; }
.hero h1 .line-mask > span { display: block; }
.hero h1 .accent { color: var(--mint-400); }
/* v7: 가변폰트 모핑 타이포 */
.hero h1 .morph-line { font-variation-settings: "opsz" 144, "wght" 360; }
.hero h1 .morph-line.morphed { cursor: default; }
.hero h1 .morph-line .gl { will-change: font-variation-settings, transform; }

.hero-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; margin-top: clamp(28px, 4vw, 48px); flex-wrap: wrap;
}
.hero .lead { color: rgba(255,255,255,.82); font-size: clamp(1rem, 1.5vw, 1.18rem); max-width: 460px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

.hero-meta { display: flex; gap: clamp(24px, 4vw, 52px); }
.hero-meta .item { text-align: left; }
.hero-meta .num {
  display: block; font-family: var(--font-disp); font-style: normal;
  font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 380; color: #fffeee; line-height: 1;
}
.hero-meta .lbl { font-size: 12.5px; color: rgba(255,255,255,.6); letter-spacing: .04em; margin-top: 8px; display: block; }

.scroll-ind {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-disp); font-size: 10.5px; letter-spacing: .3em; color: rgba(255,255,255,.5);
}
.scroll-ind .line { width: 1px; height: 46px; background: linear-gradient(rgba(255,255,255,.6), transparent); animation: scrollLine 2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* 히어로 하단 코너 마커 — LIVE 운영상태 + 실시간 시계 (디테일 밀도) */
.hero-foot {
  position: absolute; bottom: 28px; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: space-between;
  padding: 0 var(--gutter);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em;
  color: rgba(255,255,255,.55); pointer-events: none;
}
.hero-live { display: inline-flex; align-items: center; gap: 9px; }
.hero-live .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #6b7280;
  box-shadow: 0 0 0 0 rgba(176,141,87,.6);
}
.hero-live.open .dot { background: var(--mint-400); animation: livePulse 2.4s var(--ease) infinite; }
.hero-live.closed .dot { background: var(--gold-300); }
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(176,141,87,.5); }
  70% { box-shadow: 0 0 0 8px rgba(176,141,87,0); }
  100% { box-shadow: 0 0 0 0 rgba(176,141,87,0); }
}
.hero-now { font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .hero-top { grid-template-columns: 1fr 1fr; }
  .hero-coord { display: none; }
  .hero-foot { font-size: 10px; }
}

/* ============================================================
   MARQUEE — 신뢰 띠
   ============================================================ */
.marquee {
  background: var(--navy-800); color: rgba(255,255,255,.85);
  padding: 20px 0; overflow: hidden; white-space: nowrap;
  border-top: 1px solid rgba(255,255,255,.06);
}
.marquee-track { display: inline-flex; gap: 56px; animation: marquee 32s linear infinite; }
.marquee-track span {
  font-family: var(--font-disp); font-size: 15px; letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: 56px;
}
.marquee-track span::after { content: '✕'; color: var(--gold-300); font-size: 11px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SECTION HEAD — 매거진 헤드라인
   ============================================================ */
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-disp); font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-600); margin-bottom: 22px;
}
.sec-label .num {
  font-family: var(--font-mono); font-style: normal; font-size: 13px;
  color: var(--mint); font-weight: 500; letter-spacing: 0;
}
/* 라벨 뒤 그로우 라인 (스크롤 인 시 좌→우 확장) */
.sec-label::after {
  content: ''; display: inline-block; width: 0; height: 1px;
  background: linear-gradient(90deg, var(--gold-300), transparent);
  margin-left: 4px; transition: width 1.1s var(--ease) .2s; vertical-align: middle;
}
.reveal.in .sec-label::after { width: clamp(40px, 8vw, 120px); }
.section-head h2 {
  font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.08; margin-bottom: 20px;
}
.section-head p { color: var(--gray-600); font-size: clamp(1rem, 1.4vw, 1.1rem); max-width: 600px; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ============================================================
   값(VALUE) 카드 — 인지/공감/해소/원칙
   ============================================================ */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.value-card {
  padding: 40px 30px 48px; border-bottom: 1px solid var(--ink);
  border-right: 1px solid var(--line); transition: background .4s var(--ease);
  position: relative;
}
.value-card:last-child { border-right: none; }
.value-card:hover { background: var(--navy-800); }
.value-card:hover * { color: #fffeee !important; }
.value-card:hover .ico { background: var(--mint); color: #fffeee; }
.value-card .v-no {
  font-family: var(--font-disp); font-style: normal; font-size: 15px;
  color: var(--gold-600); display: block; margin-bottom: 28px;
}
.value-card .ico {
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--mint-tint); color: var(--mint); border-radius: 50%;
  font-size: 20px; margin-bottom: 22px; transition: all .4s var(--ease);
}
.value-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.value-card p { color: var(--gray-600); font-size: 15px; line-height: 1.7; }

/* ============================================================
   진료 큐레이션 — 매거진 기사형 (비대칭)
   ============================================================ */
.tx-feature { display: grid; gap: clamp(60px, 8vw, 120px); }
.tx-article {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.tx-article:nth-child(even) { grid-template-columns: .95fr 1.05fr; }
.tx-article:nth-child(even) .tx-art-media { order: -1; }
.tx-art-media { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); }
.tx-art-media img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
}
/* 호버 줌은 .zoom-media 규칙에 위임 (media-mask transform과 충돌 방지) */
.tx-art-media .tag {
  position: absolute; top: 20px; left: 20px;
  font-family: var(--font-disp); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(251,250,247,.92); backdrop-filter: blur(6px);
  color: var(--navy-800); padding: 8px 16px; border-radius: var(--radius-pill);
}
.tx-art-body .tx-no {
  font-family: var(--font-disp); font-style: normal; font-size: 16px;
  color: var(--gold-600); display: block; margin-bottom: 14px;
}
.tx-art-body .tx-eng {
  font-family: var(--font-disp); font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-style: normal; font-weight: 360; color: var(--mint); line-height: 1.1;
  display: block; margin-bottom: 8px;
}
.tx-art-body h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 18px; line-height: 1.12; }
.tx-art-body p { color: var(--gray-600); font-size: 1.05rem; line-height: 1.75; margin-bottom: 26px; max-width: 480px; }

/* ============================================================
   v7: 철학 핀드 스토리 시퀀스 (인지→공감→해소→원칙)
   ============================================================ */
.philo-pin {
  position: relative; color: #fffeee;
  background: linear-gradient(180deg, #0b1626 0%, var(--navy-900) 42%, #0c182a 100%);
}
.philo-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: center; overflow: hidden;
}
/* 미세한 메시 글로우 */
.philo-sticky::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(55% 45% at 78% 28%, rgba(176,141,87,.16), transparent 70%),
    radial-gradient(50% 40% at 18% 78%, rgba(194,160,106,.08), transparent 72%);
  pointer-events: none;
}
.philo-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr);
  gap: clamp(40px, 6vw, 96px); align-items: center; width: 100%;
}
.philo-aside { position: relative; }
.philo-aside .sec-label { color: rgba(255,255,255,.55); }
.philo-aside .sec-label::after { background: rgba(255,255,255,.2) !important; }
.philo-h2 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.18;
  margin: 18px 0 20px; color: #fffeee;
}
.philo-h2 em { color: var(--mint-400); font-style: normal; }
.philo-lead { color: rgba(255,255,255,.62); font-size: 1.02rem; line-height: 1.7; max-width: 380px; margin-bottom: 30px; }
/* SVG 진행 path (드로잉) */
.philo-path { position: absolute; left: -28px; top: 4px; width: 4px; height: clamp(180px, 26vh, 260px); }
.philo-path-bg { stroke: rgba(255,255,255,.14); stroke-width: 4; vector-effect: non-scaling-stroke; }
.philo-path-fg {
  stroke: var(--mint-400); stroke-width: 4; vector-effect: non-scaling-stroke;
  stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset .35s var(--ease, ease);
}
.philo-index { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.philo-index li {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 700;
  color: rgba(255,255,255,.32); transition: color .4s var(--ease, ease), transform .4s var(--spring, ease);
}
.philo-index li .pi-no { font-family: var(--font-mono, monospace); font-size: 12px; opacity: .7; }
.philo-index li.on { color: #fffeee; transform: translateX(6px); }
.philo-index li.on .pi-no { color: var(--mint-400); opacity: 1; }
/* 우측 스테이지 — 스텝 카드 스택 */
.philo-stage { position: relative; min-height: clamp(280px, 42vh, 420px); }
.philo-step {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(40px) scale(.98);
  transition: opacity .55s var(--ease, ease), transform .7s var(--spring, ease), visibility 0s linear .55s;
  pointer-events: none; visibility: hidden;
}
.philo-step.active { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .55s var(--ease, ease), transform .7s var(--spring, ease), visibility 0s; }
.philo-step .ps-no {
  font-family: var(--font-mono, monospace); font-size: 14px; letter-spacing: .1em;
  color: var(--mint-400); margin-bottom: 22px;
}
.philo-step .ps-no .ps-total { color: rgba(255,255,255,.3); margin-left: 4px; }
.philo-step .ps-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(176,141,87,.10);
  border: 1px solid rgba(176,141,87,.28);
  box-shadow: 0 0 0 6px rgba(176,141,87,.05), inset 0 1px 0 rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  color: var(--mint-400); font-size: 1.5rem; margin-bottom: 26px;
}
.philo-step h3 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1; color: #fffeee; margin-bottom: 20px;
}
.philo-step p { color: rgba(255,255,255,.74); font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.65; max-width: 460px; }
/* 스크롤 길이 트랙: 스텝당 1화면 (JS가 data-steps 읽어 높이 설정) */
.philo-track { height: 0; }

/* 모바일/reduced: 핀 해제 → 일반 스택 */
@media (max-width: 860px) {
  .philo-sticky { position: relative; height: auto; padding: 80px 0; }
  .philo-grid { grid-template-columns: 1fr; gap: 40px; }
  .philo-path, .philo-index { display: none; }
  .philo-stage { min-height: 0; display: grid; gap: 28px; }
  .philo-step { position: relative; inset: auto; opacity: 1; transform: none; visibility: visible; pointer-events: auto; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .philo-track { display: none; }
}

/* ============================================================
   차별점 (split)
   ============================================================ */
.check { display: grid; gap: 14px; }
.check li {
  position: relative; padding-left: 32px; color: var(--ink-soft); line-height: 1.7;
}
.check li::before {
  content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; left: 0; top: 2px; color: var(--mint); font-size: 14px;
}
.check li strong { color: var(--ink); font-weight: 700; }

/* AEO 질문-직답형 강점 리스트 (difference) */
.aeo-list { display: grid; gap: 22px; }
.aeo-item { border-left: 2px solid var(--line); padding-left: 18px; transition: border-color .4s var(--ease); }
.aeo-item:hover { border-color: var(--mint); }
.aeo-item dt {
  font-family: 'Nanum Myeongjo', serif; font-weight: 800;
  font-size: 1.12rem; color: var(--ink); margin-bottom: 7px;
  display: flex; align-items: center; gap: 9px;
}
.aeo-item dt i { color: var(--mint); font-size: .95rem; width: 20px; text-align: center; }
.aeo-item dd { margin: 0; color: var(--ink-soft); line-height: 1.78; font-size: .98rem; }

/* AEO 카드 그리드 (mission) */
.aeo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.aeo-card {
  background: #fffeee; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 32px; transition: transform .5s var(--spring), box-shadow .5s var(--ease), border-color .4s var(--ease);
}
.aeo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--mint); }
.aeo-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ivory-2); color: var(--mint); font-size: 1.15rem; margin-bottom: 16px;
}
.aeo-card dt {
  font-family: 'Nanum Myeongjo', serif; font-weight: 800;
  font-size: 1.2rem; color: var(--ink); margin-bottom: 12px;
}
.aeo-card dd { margin: 0; }
.aeo-card .aeo-q {
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: -.01em;
  color: var(--mint); margin-bottom: 8px; font-weight: 500;
}
.aeo-card .aeo-q::before { content: 'Q. '; opacity: .6; }
.aeo-card .aeo-a { color: var(--ink-soft); line-height: 1.78; font-size: .97rem; }
@media (max-width: 720px) { .aeo-grid { grid-template-columns: 1fr; } }

/* ============================================================
   STATS BAND — 카운트업
   ============================================================ */
.stats-band { background: var(--navy-900); color: #fffeee; position: relative; overflow: hidden; }
.stats-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(50% 70% at 80% 0%, rgba(176,141,87,.16), transparent 70%);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; z-index: 2; }
.stat { text-align: center; }
.stat .num {
  font-family: var(--font-disp); font-style: normal; font-weight: 360;
  font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; color: #fffeee;
}
.stat .num::after { content: ''; }
.stat .lbl { color: rgba(255,255,255,.6); font-size: 14px; margin-top: 14px; letter-spacing: .02em; }

/* ============================================================
   의료진 카드
   ============================================================ */
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.doc-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: all .45s var(--ease); display: block;
}
.doc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--mint-400); }
.doc-photo {
  aspect-ratio: 4/4.4; background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.doc-photo img { width: 100%; height: 100%; object-fit: cover; }
.doc-photo .ph { color: rgba(255,255,255,.2); font-size: 64px; }
.doc-body { padding: 26px 26px 30px; }
.doc-body .role {
  font-family: var(--font-disp); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-600); display: block; margin-bottom: 10px;
}
.doc-body h3 { font-size: 1.5rem; margin-bottom: 8px; }
.doc-body .title-line { color: var(--gray-600); font-size: 14px; line-height: 1.6; margin-bottom: 10px; }
.doc-body .doc-career {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: -.01em;
  color: var(--mint); margin-bottom: 16px; line-height: 1.5;
  display: flex; align-items: center; gap: 6px;
}
.doc-body .doc-career::before { content: '\f559'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 10px; opacity: .7; }
.doc-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.doc-tags span {
  font-size: 12.5px; padding: 5px 12px; background: var(--mint-tint); color: var(--mint-600);
  border-radius: var(--radius-pill);
}

/* ============================================================
   서브 진료 그리드
   ============================================================ */
.tx-sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tx-sub {
  display: flex; align-items: center; gap: 16px; padding: 26px 28px;
  background: var(--paper); transition: background .3s, transform .3s;
}
.tx-sub:hover { background: var(--ivory-2); }
.tx-sub .ico {
  width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--gold-tint); color: var(--gold-600); border-radius: 50%; font-size: 18px;
}
.tx-sub strong { font-size: 16px; font-weight: 700; color: var(--ink); }
.tx-sub span span { font-size: 13px; color: var(--gray-400); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--navy-900); color: #fffeee; border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 96px); text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 90% at 50% 0%, rgba(176,141,87,.14), transparent 60%);
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fffeee; font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,.72); font-size: 1.1rem; margin-bottom: 36px; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* 진료시간 박스 / inlink */
.inlink-box { padding: 34px; border-radius: var(--radius-lg); }
.text-mint { color: var(--mint); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.66); padding: clamp(56px, 7vw, 96px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-size: 22px; color: #fffeee; margin-bottom: 20px; }
.footer-logo .mark { width: 36px; height: 36px; display: grid; place-items: center; }
.footer-sns { display: flex; gap: 12px; margin-top: 22px; }
.footer-sns a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; color: rgba(255,255,255,.7); transition: all .3s; }
.footer-sns a:hover { background: var(--mint); border-color: var(--mint); color: #fffeee; }
.site-footer h5 { color: #fffeee; font-family: var(--font-disp); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; font-weight: 500; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { font-size: 14.5px; transition: color .25s; }
.footer-links a:hover { color: var(--mint-400); }
.footer-contact li { display: flex; gap: 13px; margin-bottom: 16px; font-size: 14px; line-height: 1.6; }
.footer-contact .ico { color: var(--gold-300); margin-top: 2px; }
.footer-contact a:hover { color: #fffeee; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding: 28px 0; font-size: 12.5px; color: rgba(255,255,255,.45); flex-wrap: wrap; }
.footer-bottom .legal { display: flex; gap: 18px; }
.footer-bottom .legal a:hover { color: #fffeee; }
.compliance { background: rgba(0,0,0,.25); padding: 18px 0; font-size: 11.5px; color: rgba(255,255,255,.4); line-height: 1.6; }

/* ============================================================
   FLOATING CTA
   ============================================================ */
.float-cta { position: fixed; right: 22px; bottom: 22px; z-index: 800; display: flex; flex-direction: column; gap: 12px; }
.float-cta a { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fffeee; font-size: 20px; box-shadow: var(--shadow); position: relative; transition: transform .3s; }
.float-cta a:hover { transform: scale(1.08); }
.float-cta .tel { background: var(--gold); color: var(--navy-900); }
.float-cta .book { background: var(--mint); }
.float-cta .tip { position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%); background: var(--navy-900); color: #fffeee; font-size: 12px; padding: 6px 12px; border-radius: var(--radius); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .25s; }
.float-cta a:hover .tip { opacity: 1; }

/* ============================================================
   PAGE HERO (서브페이지)
   ============================================================ */
.page-hero {
  background: var(--navy-900); color: #fffeee; padding: clamp(130px, 16vw, 200px) 0 clamp(50px, 7vw, 84px);
  position: relative; overflow: hidden;
}
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 80% at 85% 10%, rgba(176,141,87,.12), transparent 65%); }
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 22px; font-family: var(--font-disp); letter-spacing: .04em; }
.breadcrumb a:hover { color: var(--gold-300); }
.breadcrumb span { color: var(--gold-300); }
.page-hero h1 { color: #fffeee; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.05; }
.page-hero p { color: rgba(255,255,255,.7); font-size: 1.1rem; margin-top: 18px; max-width: 560px; }

/* ============================================================
   PROSE (본문)
   ============================================================ */
.prose { line-height: 1.85; color: var(--ink-soft); }
.prose h2 { font-size: 1.8rem; margin: 48px 0 18px; }
.prose h3 { font-size: 1.35rem; margin: 36px 0 14px; }
.prose p { margin-bottom: 18px; }
.prose ul { display: grid; gap: 10px; margin: 18px 0; }
.prose ul li { position: relative; padding-left: 24px; }
.prose ul li::before { content: ''; position: absolute; left: 4px; top: 12px; width: 6px; height: 6px; background: var(--mint); border-radius: 50%; }
.prose strong { color: var(--ink); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.faq-q i { color: var(--mint); transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); color: var(--gray-600); line-height: 1.75; }
.faq-item.open .faq-a { max-height: 500px; padding-bottom: 26px; }

/* ============================================================
   doc/콘텐츠 카드
   ============================================================ */
.doc-list-card, .card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; transition: all .4s var(--ease);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--mint-400); }
.eyebrow { font-family: var(--font-disp); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
.stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1) { transition-delay: .05s; }
.stagger.in > *:nth-child(2) { transition-delay: .13s; }
.stagger.in > *:nth-child(3) { transition-delay: .21s; }
.stagger.in > *:nth-child(4) { transition-delay: .29s; }

.line-mask > span { display: block; transform: translateY(110%); transition: transform 1s var(--ease); }
.line-mask.in > span, .hero h1 .line-mask > span { transform: none; }
.hero h1 .line-mask > span { transform: translateY(110%); animation: lineUp 1.1s var(--ease) forwards; }
.hero h1 .line-mask:nth-child(1) > span { animation-delay: .15s; }
.hero h1 .line-mask:nth-child(2) > span { animation-delay: .3s; }
.hero h1 .line-mask:nth-child(3) > span { animation-delay: .45s; }
@keyframes lineUp { to { transform: none; } }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-ring, .cursor-dot { position: fixed; top: 0; left: 0; border-radius: 50%; pointer-events: none; z-index: 9998; mix-blend-mode: difference; }
.cursor-ring { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.7); transition: transform .18s var(--ease), width .25s, height .25s; }
.cursor-dot { width: 5px; height: 5px; background: #fffeee; transform: translate(-50%,-50%); }
.cursor-ring.hover { width: 64px; height: 64px; }
@media (hover: none), (pointer: coarse) { .cursor-ring, .cursor-dot { display: none; } }

/* ============================================================
   MOBILE DRAWER
   ============================================================ */
.m-drawer { position: fixed; inset: 0; background: var(--navy-900); z-index: 999; padding: 80px 32px 40px; transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto; }
.m-drawer.open { transform: none; }
.m-drawer a { display: block; color: rgba(255,255,255,.85); font-size: 18px; padding: 14px 0; font-family: var(--font-head); font-weight: 700; }
.m-drawer h4 { color: var(--gold-300); font-family: var(--font-disp); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 22px 0 6px; }
.m-drawer .m-sub a { font-size: 15px; font-family: var(--font-body); font-weight: 500; color: rgba(255,255,255,.65); padding: 9px 0; }
.m-close { position: absolute; top: 26px; right: 26px; color: #fffeee; font-size: 26px; }

.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--navy-900); color: #fffeee; padding: 14px 24px; border-radius: var(--radius); z-index: 9999; opacity: 0; transition: all .4s var(--ease); font-size: 14px; }
.toast.show { transform: translateX(-50%); opacity: 1; }

/* ============================================================
   FORMS — Editorial Magazine
   ============================================================ */
.grid-detail { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: start; }

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 30px 60px -40px rgba(18,32,54,.18);
}

.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field > label {
  display: block;
  font-family: var(--font-disp);
  font-size: 13px;
  letter-spacing: .04em;
  font-weight: 600;
  color: var(--navy-700);
  margin-bottom: 9px;
}
.req { color: var(--mint); font-style: normal; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body, 'Pretendard', system-ui, sans-serif);
  font-size: 15px;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--gray-400); }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--navy-300); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--mint);
  background: var(--paper);
  box-shadow: 0 0 0 3px var(--mint-tint);
}

.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

/* custom select caret */
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232f8aa0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

/* date input icon tint (webkit) */
.field input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .55; }
.field input[type="date"]:hover::-webkit-calendar-picker-indicator { opacity: 1; }

/* checkbox row */
.checkbox-row {
  display: flex !important;
  align-items: flex-start;
  gap: 11px;
  font-family: var(--font-body, 'Pretendard', system-ui, sans-serif);
  font-size: 13.5px;
  font-weight: 400 !important;
  line-height: 1.55;
  color: var(--gray-600);
  cursor: pointer;
  margin-bottom: 0 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.checkbox-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
  cursor: pointer;
  position: relative;
  transition: all .2s var(--ease);
}
.checkbox-row input[type="checkbox"]:hover { border-color: var(--mint); }
.checkbox-row input[type="checkbox"]:checked {
  background: var(--mint);
  border-color: var(--mint);
}
.checkbox-row input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid #fffeee;
  border-width: 0 2px 2px 0;
  transform: rotate(43deg);
}
.checkbox-row input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--mint-tint);
}

.btn-sm { padding: 10px 20px; font-size: 13px; }

/* ============================================================
   TREATMENT DETAIL — steps / tag-pill
   ============================================================ */
/* treatment list cards (/treatments tx-grid variant) */
.tx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tx-card {
  position: relative; display: block; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  min-height: 320px; background: var(--navy-900); color: #fffeee;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tx-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(14,27,48,.5); }
.tx-bg { position: absolute; inset: 0; }
.tx-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; transition: transform .8s var(--ease), opacity .5s; }
.tx-card:hover .tx-bg img { transform: scale(1.06); opacity: .42; }
.tx-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,27,48,.1) 0%, rgba(14,27,48,.85) 100%); }
.tx-content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: 320px; padding: 30px; }
.tx-content h3 { color: #fffeee; font-size: 1.4rem; margin-bottom: 8px; }
.tx-content p { color: rgba(255,255,255,.8); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.tx-link { font-family: var(--font-disp); font-style: normal; font-size: 14px; color: var(--mint-400); display: inline-flex; align-items: center; gap: 8px; }
.tx-card:hover .tx-link i { transform: translateX(5px); }
.tx-link i { transition: transform .35s var(--ease); }

/* steps */
.steps { display: grid; gap: 2px; margin: 18px 0 36px; border-top: 1px solid var(--line); }
.step {
  display: grid; grid-template-columns: 54px 1fr; gap: 18px;
  align-items: start; padding: 22px 4px; border-bottom: 1px solid var(--line);
}
.step .n {
  font-family: var(--font-disp); font-style: normal; font-size: 1.9rem;
  font-weight: 700; color: var(--mint); line-height: 1; padding-top: 2px;
}
.step h4 { font-size: 1.08rem; margin-bottom: 5px; color: var(--navy-800); }
.step p { font-size: 14.5px; color: var(--gray-600); line-height: 1.6; }

/* tag-pill (filters) */
.tag-pill {
  display: inline-flex; align-items: center;
  padding: 9px 18px; font-size: 13.5px; font-weight: 600;
  font-family: var(--font-disp);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  color: var(--navy-700); background: var(--paper);
  transition: all .25s var(--ease); cursor: pointer;
}
.tag-pill:hover { border-color: var(--navy-800); color: var(--navy-900); }

.tags { font-size: 13px; color: var(--gray-600); display: flex; flex-wrap: wrap; gap: 4px 2px; align-items: center; }
.tags i { color: var(--mint); margin-right: 3px; }

.badge {
  display: inline-block; padding: 3px 10px; font-size: 11px; font-weight: 700;
  letter-spacing: .03em; border-radius: var(--radius-pill);
  background: var(--mint-tint); color: var(--mint-600);
}

.pm { transition: transform .3s var(--ease); color: var(--mint); }
.faq-item.open .pm { transform: rotate(45deg); }
.faq-a-inner { padding-bottom: 4px; }

/* ============================================================
   CASES — before/after slider grid
   ============================================================ */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.case-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--paper);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.case-card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -30px rgba(18,32,54,.22); }

.ba-slider {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: var(--ivory-2); cursor: ew-resize; user-select: none;
}
.ba-slider.locked { cursor: default; }
.ba-slider > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after-wrap { position: absolute; inset: 0; width: 50%; overflow: hidden; border-right: 2px solid #fffeee; }
.ba-after-wrap img { position: absolute; inset: 0; width: 100vw; max-width: none; height: 100%; object-fit: cover; }
.ba-label {
  position: absolute; bottom: 12px; z-index: 4;
  font-family: var(--font-disp); font-style: normal; font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: var(--radius-pill); color: #fffeee;
  background: rgba(14,27,48,.7); backdrop-filter: blur(4px);
}
.ba-label.before { left: 12px; }
.ba-label.after { right: 12px; background: rgba(6,39,65,.85); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; z-index: 5;
  background: #fffeee; transform: translateX(-1px); pointer-events: none;
  box-shadow: 0 0 0 1px rgba(14,27,48,.12);
}
.ba-handle::after {
  content: "\f337"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 38px; height: 38px; border-radius: 50%; background: #fffeee; color: var(--mint);
  display: grid; place-items: center; font-size: 13px;
  box-shadow: 0 4px 14px rgba(14,27,48,.25);
}
.gate {
  position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; text-align: center;
  background: linear-gradient(180deg, rgba(14,27,48,.35), rgba(14,27,48,.78)); color: #fffeee;
  backdrop-filter: blur(2px);
}
.gate i.fa-lock { font-size: 26px; color: var(--mint-400); margin-bottom: 10px; }

.case-meta { padding: 22px 24px 26px; }
.case-meta .cat {
  font-family: var(--font-disp); font-style: normal; font-size: 12.5px;
  color: var(--mint-600); display: inline-block; margin-bottom: 8px;
}
.case-meta h4 { font-size: 1.12rem; margin-bottom: 8px; color: var(--navy-800); }

/* ============================================================
   ENCYCLOPEDIA — search / alpha / grid
   ============================================================ */
.enc-search {
  position: relative; max-width: 560px; margin: 0 auto 26px;
}
.enc-search i {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  color: var(--mint); font-size: 15px;
}
.enc-search input {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 16px 22px 16px 50px; transition: all .25s var(--ease); -webkit-appearance: none; appearance: none;
}
.enc-search input::placeholder { color: var(--gray-400); }
.enc-search input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px var(--mint-tint); }

.enc-alpha { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-bottom: 40px; }
.enc-alpha button {
  min-width: 40px; padding: 8px 12px; font-size: 13.5px; font-weight: 600;
  font-family: var(--font-disp);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--navy-700);
  cursor: pointer; transition: all .2s var(--ease);
}
.enc-alpha button:hover { border-color: var(--mint); color: var(--mint-600); }
.enc-alpha button.active { background: var(--navy-800); border-color: var(--navy-800); color: #fffeee; }

.enc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.enc-item {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; background: var(--paper);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.enc-item:hover { border-color: var(--mint); transform: translateY(-3px); box-shadow: 0 20px 40px -28px rgba(18,32,54,.2); }
.enc-item h4 { font-size: 1.1rem; margin-bottom: 10px; color: var(--navy-800); display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.term-en { font-family: var(--font-disp); font-style: normal; font-weight: 400; font-size: 13px; color: var(--mint-600); }
.enc-item p { font-size: 14px; line-height: 1.65; color: var(--gray-600); margin-bottom: 14px; }
.enc-item .links { display: flex; gap: 16px; flex-wrap: wrap; }
.enc-item .links a { font-size: 12.5px; font-weight: 600; color: var(--navy-600); display: inline-flex; align-items: center; gap: 5px; }
.enc-item .links a:hover { color: var(--mint); }
.enc-item .links i { color: var(--mint); font-size: 11px; }
.enc-item[hidden] { display: none; }

/* notice list */
.notice-list { border-top: 1px solid var(--line); }
.notice-list a, .notice-list .item {
  display: flex; align-items: center; gap: 14px; padding: 20px 4px;
  border-bottom: 1px solid var(--line); transition: background .25s var(--ease);
}
.notice-list a:hover { background: var(--ivory-2); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-detail { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .value-card:nth-child(2) { border-right: none; }
  .doc-grid { grid-template-columns: 1fr 1fr; }
  .tx-sub-grid { grid-template-columns: 1fr 1fr; }
  .tx-grid { grid-template-columns: 1fr 1fr; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .enc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .gnb, .header-tel { display: none; }
  .burger { display: flex; }
  .header-cta .btn-accent { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .tx-article, .tx-article:nth-child(even) { grid-template-columns: 1fr; }
  .tx-article:nth-child(even) .tx-art-media { order: 0; }
  .hero-row { flex-direction: column; align-items: flex-start; }
  .hero-top { padding-top: 92px; font-size: 10.5px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .doc-grid { grid-template-columns: 1fr; }
  .tx-sub-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .value-card { border-right: none !important; }
  .tx-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .enc-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.6rem, 14vw, 4rem); }
}

/* ============================================================
   ★★★ 2026 LAYER — kinetic / cinematic / grain / glass
   기존 매거진 톤(아이보리·네이비·민트) 유지 + 최신 인터랙션
   ============================================================ */

/* ---- 1. global film grain (subtle, fixed) ---- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9990; pointer-events: none;
  opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- 2. cinematic pin-scale hero ---- */
/* 히어로 이미지가 처음엔 둥근 창처럼 보였다가 스크롤하며 풀블리드로 확장 */
.hero.cinema .hero-bg {
  clip-path: inset(var(--clip,0%) round var(--clipr,0px));
  transition: clip-path .1s linear;
  will-change: clip-path;
}
.hero.cinema .hero-bg img { transform: scale(var(--heroScale,1.08)); transition: transform .1s linear; }

/* hero kicker 위 작은 영문 라벨 (cinema 전용 강조) */
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-disp); font-style: normal; font-size: 14px;
  color: var(--mint-400); margin-bottom: 18px;
}
.hero-badge::before { content: ""; width: 26px; height: 1px; background: var(--mint-400); }

/* ---- 3. word-by-word reveal (heading) ---- */
.word-rise { display: inline-block; overflow: hidden; vertical-align: top; }
.word-rise > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); }
.word-rise.in > span,
.in .word-rise > span { transform: translateY(0); }

/* ---- 4. kinetic marquee strip (giant english, scroll-linked) ---- */
.kinetic {
  overflow: hidden; padding: clamp(40px,7vw,110px) 0; background: var(--navy-900); color: #fffeee;
  position: relative;
}
.kinetic::before {
  content: ""; position: absolute; inset: 0; opacity: .14;
  background: radial-gradient(60% 80% at 20% 30%, rgba(176,141,87,.5), transparent 60%),
              radial-gradient(50% 70% at 85% 70%, rgba(221,199,155,.35), transparent 60%);
}
.kinetic-track {
  display: flex; gap: .5em; white-space: nowrap; will-change: transform; position: relative;
  font-family: var(--font-disp); font-style: normal; font-weight: 340;
  font-size: clamp(3rem, 11vw, 11rem); line-height: 1; letter-spacing: -.02em;
}
.kinetic-track span { color: rgba(255,255,255,.14); transition: color .4s; }
.kinetic-track .lit { color: #fffeee; }
.kinetic-track .out { -webkit-text-stroke: 1px rgba(255,255,255,.3); color: transparent; }
.kinetic-sub {
  position: relative; text-align: center; margin-top: clamp(24px,3vw,40px);
  font-family: var(--font-body); font-size: clamp(.95rem,1.4vw,1.15rem);
  color: rgba(255,255,255,.6); letter-spacing: .02em;
}

/* ---- 5. glass refinement on dark inlink / cta ---- */
.cta-band, .stats-band { position: relative; overflow: hidden; }
.cta-band::after, .stats-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(50% 60% at 80% 10%, rgba(176,141,87,.12), transparent 60%);
}

/* ---- 6. media reveal mask (image clip-in on scroll) ---- */
.media-mask { overflow: hidden; }
.media-mask > img { clip-path: inset(0 0 100% 0); transform: scale(1.12); transition: clip-path 1.1s var(--ease), transform 1.4s var(--ease); }
.media-mask.in > img { clip-path: inset(0 0 0 0); transform: scale(1); }
/* tag 라벨은 클립 제외 */
.media-mask .tag { clip-path: none !important; }

/* ---- 7. card hover lift refinement (2026 spring) ---- */
.tx-art-media, .doc-card, .value-card, .tx-card, .enc-item, .case-card {
  transition: transform .55s cubic-bezier(.16,1,.3,1), box-shadow .55s cubic-bezier(.16,1,.3,1), border-color .4s;
}

/* ---- 8. animated section-label number tick ---- */
.sec-label .num { position: relative; }

/* ---- 9. link-arrow underline sweep (좌→우 민트 채움) ---- */
.link-arrow {
  position: relative; border-bottom-color: var(--line);
  background-image: linear-gradient(var(--mint), var(--mint));
  background-size: 0% 1px; background-position: left bottom; background-repeat: no-repeat;
  transition: gap .3s var(--ease), color .3s, background-size .5s var(--spring);
}
.link-arrow:hover { gap: 16px; color: var(--mint); background-size: 100% 1px; border-bottom-color: transparent; }

/* ---- 10. 버튼 와이프 채움 (호버 시 안쪽에서 차오름) ----
   isolation으로 stacking context 생성 → ::before(z-index:-1)가
   버튼 배경 위·텍스트 아래에 안전하게 배치됨 (텍스트 노드 가림 방지) */
.btn { isolation: isolate; }
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .45s var(--spring);
}
.btn-accent::before { background: var(--mint-600); }
.btn-primary::before { background: var(--navy-900); }
.btn-gold::before { background: var(--gold-600); }
.btn-outline::before { background: var(--navy-800); }
.btn-ghost::before { background: rgba(255,255,255,.14); }
.btn:hover::before { transform: scaleY(1); }

/* ============================================================
   ★★★★ 2026 HIGH-END INTERACTIVE LAYER
   섹션 도트 네비 / 워드 마스크 리빌 / 이미지 inner-zoom+라벨
   / 커서 라벨(VIEW) / 스프링 디테일
   ============================================================ */

/* ---- A. 섹션 인디케이터 (우측 도트 네비, Awwwards) ---- */
.section-nav {
  position: fixed; right: clamp(16px, 2.4vw, 38px); top: 50%;
  transform: translateY(-50%);
  z-index: 60; display: flex; flex-direction: column; gap: 16px;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
  mix-blend-mode: difference;
}
.section-nav.show { opacity: 1; visibility: visible; }
.section-nav a {
  position: relative; display: block; width: 11px; height: 11px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.5);
  background: transparent; transition: all .45s var(--spring);
}
.section-nav a::after {
  content: attr(data-label);
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%) translateX(8px);
  white-space: nowrap; font-family: var(--font-disp); font-style: normal;
  font-size: 13px; color: #fffeee; letter-spacing: .02em;
  opacity: 0; pointer-events: none; transition: all .4s var(--ease);
}
.section-nav a:hover::after,
.section-nav a.active::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.section-nav a:hover { border-color: #fffeee; }
.section-nav a.active {
  background: #fffeee; border-color: #fffeee;
  box-shadow: 0 0 0 4px rgba(255,255,255,.18);
}
@media (max-width: 1024px) { .section-nav { display: none; } }

/* ---- B. 워드 마스크 리빌 (em 강조 유지) ---- */
.split-rise .wr { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.06; }
.split-rise .wr > span {
  display: inline-block; transform: translateY(110%);
  transition: transform .85s var(--ease);
}
.split-rise.in .wr > span { transform: translateY(0); }
/* em(강조) 단어는 색만 토큰 유지 */
.split-rise em { font-style: inherit; color: var(--mint); }

/* ---- C. 이미지 호버 inner-zoom + 라벨 슬라이드 ---- */
.zoom-media { position: relative; overflow: hidden; }
.zoom-media > img,
.zoom-media .zm-img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.001); transition: transform 1.1s var(--spring);
  will-change: transform;
}
.zoom-media:hover > img,
.zoom-media:hover .zm-img { transform: scale(1.08); }
.zoom-media .zm-label {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 26px 24px 22px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  color: #fffeee; z-index: 3;
  background: linear-gradient(to top, rgba(14,27,48,.78), rgba(14,27,48,0));
  transform: translateY(14px); opacity: 0;
  transition: transform .6s var(--spring), opacity .6s var(--ease);
}
.zoom-media:hover .zm-label { transform: translateY(0); opacity: 1; }
.zoom-media .zm-label .zm-t { font-family: var(--font-disp); font-style: normal; font-size: clamp(1.1rem,1.6vw,1.4rem); }
.zoom-media .zm-label .zm-go {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.6); display: grid; place-items: center;
  font-size: 13px; transition: all .4s var(--spring);
}
.zoom-media:hover .zm-label .zm-go { background: #fffeee; color: var(--navy-900); }

/* ---- D. 커서 라벨 (미디어 위 VIEW) ---- */
.cursor-ring.media { width: 88px; height: 88px; background: rgba(255,255,255,.06); backdrop-filter: blur(1px); }
.cursor-label {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  font-family: var(--font-disp); font-style: normal; font-size: 13px;
  color: #fffeee; letter-spacing: .08em; text-transform: uppercase;
  opacity: 0; transform: translate(-50%,-50%) scale(.7);
  transition: opacity .3s var(--ease), transform .35s var(--spring);
  mix-blend-mode: difference;
}
.cursor-label.show { opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* ---- E. 마그네틱 스프링 복귀 ---- */
.magnetic { transition: transform .45s var(--spring); }
.magnetic:active { transition: transform .15s var(--spring); }

/* ---- F. /treatments — v7 디테일 (정제된 살아있음) ---- */
/* 상세 인트로 lead: 좌측 민트 헤어라인 + 격 */
.tx-intro-lead {
  position: relative; padding-left: 22px; margin-bottom: 8px;
  letter-spacing: -.01em;
}
.tx-intro-lead::before {
  content: ''; position: absolute; left: 0; top: .35em; bottom: .35em;
  width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--mint-400), var(--mint-600));
}
/* step: 호버 시 미세 슬라이드 + 번호 가중 (살아있음) */
.step { transition: background .4s var(--ease); }
.step:hover { background: var(--ivory-2); }
.step:hover .n { transform: translateX(2px); }
.step .n { transition: transform .45s var(--spring); }
/* core 카드 번호(tx-no) 모노 격상 */
.tx-content .tx-no {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--mint-400);
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.tx-content .tx-no::before {
  content: ''; width: 18px; height: 1px; background: var(--mint-400); opacity: .7;
}

/* ---- responsive: kinetic on mobile ---- */
@media (max-width: 820px) {
  .kinetic-track { font-size: clamp(2.4rem, 16vw, 5rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal, .stagger > *, .line-mask > span, .hero h1 .line-mask > span { opacity: 1 !important; transform: none !important; }
  .word-rise > span { transform: none !important; }
  .media-mask > img { clip-path: none !important; transform: none !important; }
  .hero.cinema .hero-bg { clip-path: none !important; }
  body::after { display: none; }
  .split-rise .wr > span { transform: none !important; }
  .section-nav { display: none !important; }
  .cursor-label { display: none !important; }
  .zoom-media > img, .zoom-media .zm-img { transform: none !important; }
}

/* ============================================================
   FABLE STORY LAYER v8 — 챕터 내러티브 시스템
   책 메타포: 챕터 레일(책갈피) + 챕터 헤드 + 스토리 네비게이터
   ============================================================ */

/* ---- 챕터 레일 (우측 고정 책갈피) ---- */
.chapter-rail {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%);
  z-index: 60; display: flex; flex-direction: column; gap: 6px;
  opacity: 0; pointer-events: none; transition: opacity .5s var(--ease);
}
.chapter-rail.show { opacity: 1; pointer-events: auto; }
.cr-item {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 4px 0; position: relative;
}
.cr-item .cr-no {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em;
  color: var(--gray-400); transition: color .3s var(--ease);
  order: 1;
}
.cr-item .cr-label {
  font-size: 11.5px; font-weight: 600; color: var(--ink-soft);
  background: rgba(255,255,255,.92); padding: 4px 10px; border-radius: 2px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateX(6px); transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none; white-space: nowrap; order: 0;
}
.cr-item .cr-tick {
  width: 16px; height: 2px; background: var(--line); border-radius: 1px;
  transition: width .35s var(--spring), background .3s var(--ease); order: 2;
}
.cr-item:hover .cr-label { opacity: 1; transform: none; }
.cr-item:hover .cr-tick { background: var(--gray-400); }
.cr-item.on .cr-tick { width: 30px; background: var(--mint); }
.cr-item.on .cr-no { color: var(--mint); }
.chapter-rail.dark .cr-item .cr-tick { background: rgba(255,255,255,.25); }
.chapter-rail.dark .cr-item.on .cr-tick { background: var(--mint-400); }
.chapter-rail.dark .cr-item .cr-no { color: rgba(255,255,255,.5); }
.chapter-rail.dark .cr-item.on .cr-no { color: var(--mint-400); }
@media (max-width: 1100px) { .chapter-rail { display: none; } }

/* ---- 챕터 헤드 (책 페이지 상단) ---- */
.chapter-head { margin-bottom: clamp(40px, 6vw, 64px); max-width: 760px; }
.chapter-head .ch-row {
  display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px;
}
.chapter-head .ch-no {
  font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 300; line-height: 1;
  color: var(--gold); font-style: normal;
}
.chapter-head .ch-line { flex: 0 0 56px; height: 1px; background: var(--gold-300); align-self: center; }
.chapter-head .ch-eng {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gray-600);
}
.chapter-head .ch-title { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.2; }
.chapter-head .ch-lead { margin-top: 16px; color: var(--gray-600); font-size: 1.05rem; max-width: 560px; }

/* 히어로 배지 챕터 라벨 */
.hero-badge .hb-chapter {
  font-family: var(--font-disp); font-style: normal; font-weight: 400;
  color: var(--gold-300); margin-right: 10px; padding-right: 10px;
  border-right: 1px solid rgba(255,255,255,.25);
}

/* ---- CHAPTER 00 — 스토리 네비게이터 ---- */
.story-nav { position: relative; }
.story-nav::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-300), transparent);
}
.sn-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.sn-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: #fffeee; color: var(--ink-soft);
  font-size: 14.5px; font-weight: 600; letter-spacing: -.01em;
  transition: all .35s var(--spring); cursor: pointer;
}
.sn-chip i { color: var(--mint); font-size: 13px; transition: color .3s; }
.sn-chip:hover { border-color: var(--mint); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.sn-chip.on {
  background: var(--navy-800); color: #fffeee; border-color: var(--navy-800);
  box-shadow: 0 10px 26px -12px rgba(18,32,54,.45);
}
.sn-chip.on i { color: var(--mint-400); }

.sn-stage { position: relative; min-height: 380px; }
.sn-card {
  position: absolute; inset: 0; display: grid;
  grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 4vw, 56px);
  background: #fffeee; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  opacity: 0; transform: translateY(18px); pointer-events: none; visibility: hidden;
  transition: opacity .45s var(--ease), transform .55s var(--spring), visibility 0s .45s;
  box-shadow: var(--shadow);
}
.sn-card.active {
  position: relative; opacity: 1; transform: none; pointer-events: auto; visibility: visible;
  transition: opacity .5s var(--ease) .08s, transform .6s var(--spring) .08s, visibility 0s;
}
.sn-card .sn-tag {
  font-size: 13px; color: var(--gold-600); letter-spacing: .04em;
  display: inline-block; margin-bottom: 16px;
}
.sn-card .sn-empathy {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.5;
  color: var(--ink); margin-bottom: 16px; word-break: keep-all;
}
.sn-card .sn-guide { color: var(--gray-600); line-height: 1.75; margin-bottom: 22px; }
.sn-card .sn-faq {
  background: var(--ivory-2); border-left: 3px solid var(--mint);
  border-radius: var(--radius); padding: 16px 20px; font-size: 14.5px;
}
.sn-card .sn-faq .q { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.sn-card .sn-faq .q i { color: var(--mint); margin-right: 6px; }
.sn-card .sn-faq .a { color: var(--gray-600); line-height: 1.65; }

.sn-links { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.sn-link {
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--ivory); transition: all .3s var(--ease);
}
.sn-link .t { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-400); }
.sn-link strong { font-size: 15.5px; color: var(--ink); display: flex; align-items: center; justify-content: space-between; }
.sn-link strong i { font-size: 12px; color: var(--mint); transition: transform .3s var(--spring); }
.sn-link:hover { border-color: var(--mint); background: #fffeee; transform: translateX(4px); }
.sn-link:hover strong i { transform: translateX(4px); }
.sn-link.main { background: var(--mint-tint); border-color: rgba(176,141,87,.35); }
.sn-link.main strong { color: var(--mint-600); }
.sn-cta { justify-content: center; margin-top: 6px; }
@media (max-width: 860px) {
  .sn-card { grid-template-columns: 1fr; }
  .sn-stage { min-height: 0; }
  .sn-chip { font-size: 13px; padding: 10px 15px; }
}

/* ---- CHAPTER 04 밴드 헤드 ---- */
.ch-band-head { text-align: center; margin-bottom: 44px; }
.ch-band-head .ch-no-light {
  font-size: 14px; letter-spacing: .1em; color: var(--gold-300);
  display: block; margin-bottom: 12px;
}
.ch-band-head h2 { color: #fffeee; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 10px; }
.ch-band-head p { color: rgba(255,255,255,.6); font-size: 1rem; }

/* ---- EPILOGUE ---- */
.epilogue-band { position: relative; overflow: hidden; }
.epilogue-band::after {
  content: 'Fin.'; position: absolute; right: clamp(20px, 6vw, 80px); bottom: -10px;
  font-family: var(--font-disp); font-style: normal; font-weight: 300;
  font-size: clamp(5rem, 12vw, 10rem); color: rgba(255,255,255,.05);
  line-height: 1; pointer-events: none;
}

/* ---- 케이스: 미니 우화 포맷 ---- */
.case-card .case-story-no {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-600); display: block; margin-bottom: 6px;
}
.case-card .case-story-line {
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
  color: var(--ink); line-height: 1.5; word-break: keep-all;
}

/* ---- 서브페이지 챕터 모티프 (page-hero 확장) ---- */
.page-hero .ph-chapter {
  font-family: var(--font-disp); font-style: normal; font-weight: 300;
  font-size: 15px; letter-spacing: .06em; color: var(--gold-300);
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.page-hero .ph-chapter::after { content: ''; width: 44px; height: 1px; background: var(--gold-300); opacity: .6; }

/* ============================================================
   ★★★★★ HERITAGE PRIVATE CLINIC v9 — 권민수 원장 확정 디자인
   웜베이지 면 분할 + 딥네이비 단일 잉크 + 브라스 헤어라인 장식
   "신뢰 · 전문성 · 고급스러움" — 호텔/헤리티지 브랜드 문법
   ============================================================ */

/* ---- 브라스 다이아 장식 (공통 모티프) ---- */
.hh-diamond {
  display: inline-block; width: 7px; height: 7px;
  background: var(--gold); transform: rotate(45deg); flex-shrink: 0;
}

/* ---- HERO HERITAGE: 좌 카피(아이보리) / 우 프레임 사진(웜베이지 패널) ---- */
.hero--heritage {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--ivory); overflow: hidden;
  padding: clamp(120px, 14vh, 170px) 0 clamp(70px, 9vh, 110px);
}
/* 우측 웜베이지 면 분할 패널 — "베이지 배경 + 네이비 메인"이 한눈에 */
.hero--heritage .hh-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 44%;
  background: var(--ivory-2); z-index: 0;
}
.hero--heritage .hh-panel::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(var(--gold) 0%, transparent 30%, transparent 70%, var(--gold) 100%);
  opacity: .55;
}
.hero--heritage .hh-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 104px var(--gutter) 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gray-400);
}
.hero--heritage .hh-top .hero-coord { color: var(--gold-600); }
.hero--heritage .hh-top span:last-child { text-align: right; }

.hh-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(40px, 6vw, 90px); align-items: center;
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
}
.hh-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-600); margin-bottom: 30px;
}
.hero--heritage .hh-title, .hh-title {
  color: var(--navy-800);
  font-size: clamp(3.2rem, 8.6vw, 7.6rem); line-height: .96; letter-spacing: -.035em;
  margin-bottom: 0;
}
.hh-title .line-mask { display: block; overflow: hidden; }
.hh-title .line-mask > span { display: block; }
.hh-title .hh-italic { font-style: normal; font-weight: 380; color: var(--navy-600); }
.hh-lead {
  color: var(--ink-soft); font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  line-height: 1.85; margin-top: clamp(26px, 3.4vw, 40px); max-width: 470px;
}
.hh-lead strong { color: var(--navy-800); font-weight: 800; }
.hero--heritage .hero-actions { margin-top: 34px; }

.hh-meta {
  display: flex; gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(36px, 5vh, 60px); padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hh-meta .num {
  display: block; font-family: var(--font-disp); font-style: normal; font-weight: 380;
  font-size: clamp(1.9rem, 3vw, 2.7rem); color: var(--navy-800); line-height: 1;
}
.hh-meta .lbl { display: block; font-size: 12.5px; color: var(--gray-600); letter-spacing: .04em; margin-top: 9px; }

/* 우측 헤리티지 프레임 사진 — 네이비 보더 + 브라스 코너 오프셋 */
.hh-figure { position: relative; margin: 0; }
.hh-frame {
  position: relative; border: 1px solid var(--navy-800);
  padding: clamp(10px, 1.4vw, 16px); background: var(--ivory);
  box-shadow: var(--shadow-lg);
}
.hh-frame::before {
  content: ''; position: absolute; top: 14px; left: -14px; right: 14px; bottom: -14px;
  border: 1px solid var(--gold); opacity: .6; z-index: -1; pointer-events: none;
}
.hh-frame img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block;
  filter: saturate(.96) contrast(1.02);
}
.hh-caption {
  display: flex; align-items: baseline; gap: 14px; margin-top: 16px;
  font-size: 13px; color: var(--gray-600);
}
.hh-cap-eng {
  font-style: normal; font-weight: 420; font-size: 15px; color: var(--navy-800);
  position: relative; padding-right: 14px;
}
.hh-cap-eng::after { content: ''; position: absolute; right: 0; top: 50%; width: 1px; height: 12px; background: var(--gold); transform: translateY(-50%); }

.hero--heritage .hh-foot {
  position: absolute; bottom: 26px; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 var(--gutter);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  color: var(--gray-400); pointer-events: none;
}
.hh-rule { flex: 1; display: flex; align-items: center; gap: 0; margin: 0 26px; }
.hh-rule::before, .hh-rule::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.hh-rule .hh-diamond { margin: 0 12px; width: 5px; height: 5px; }
.hero--heritage .hero-live .dot { background: #9aa6b1; }
.hero--heritage .hero-live.open .dot { background: var(--gold); animation: livePulseBrass 2.4s var(--ease) infinite; }
.hero--heritage .hero-live.closed .dot { background: var(--navy-300); }
@keyframes livePulseBrass {
  0% { box-shadow: 0 0 0 0 rgba(176,141,87,.45); }
  70% { box-shadow: 0 0 0 8px rgba(176,141,87,0); }
  100% { box-shadow: 0 0 0 0 rgba(176,141,87,0); }
}

/* ---- 라이트 히어로 위 헤더: 잉크 컬러로 자동 전환 ---- */
body:has(.hero--heritage) .site-header:not(.scrolled) .logo > span:last-child,
body:has(.hero--heritage) .site-header:not(.scrolled) .header-tel { color: var(--ink); }
body:has(.hero--heritage) .site-header:not(.scrolled) .gnb > li > a { color: var(--ink-soft); }
body:has(.hero--heritage) .site-header:not(.scrolled) .gnb > li > a:hover { color: var(--navy-800); }
body:has(.hero--heritage) .site-header:not(.scrolled) .header-tel i { color: var(--gold-600); }
body:has(.hero--heritage) .site-header:not(.scrolled) .burger span { background: var(--ink); }
body:has(.hero--heritage) .site-header:not(.scrolled) .logo .mark-ivory { opacity: 0; }
body:has(.hero--heritage) .site-header:not(.scrolled) .logo .mark-navy { opacity: 1; }

/* ---- 섹션 리듬: 아이보리 ↔ 웜베이지 교차가 명확하게 ---- */
.section { position: relative; }
.chapter-head .ch-no { color: var(--gold); }
.chapter-head .ch-line { background: linear-gradient(90deg, var(--gold), transparent); opacity: .65; }
.chapter-head .ch-eng { color: var(--gold-600); }

/* 섹션 헤드에 브라스 헤어라인 디테일 */
.sec-label .num { color: var(--gold-600); }

/* ---- 버튼: 네이비 통일 + 브라스 마이크로 디테일 ---- */
.btn-primary, .btn-accent {
  background: var(--navy-800); color: var(--ivory);
  border: 1px solid var(--navy-800);
}
.btn-primary:hover, .btn-accent:hover {
  background: var(--navy-900); border-color: var(--navy-900);
  transform: translateY(-2px); box-shadow: 0 16px 34px -16px rgba(6,39,65,.55);
}
.btn-outline { border-color: var(--navy-800); color: var(--navy-800); }
.btn-outline:hover { background: var(--navy-800); color: var(--ivory); }
/* 다크(네이비) 배경 위 ghost 버튼 = 브라스 라인 */
.btn-ghost { border-color: rgba(176,141,87,.55); color: var(--ivory); }
.btn-ghost:hover { background: rgba(176,141,87,.14); border-color: var(--gold); }

.link-arrow:hover { color: var(--navy-800); border-color: var(--gold); }

/* ---- 마퀴 띠: 네이비 바탕 + 브라스 다이아 구분점 ---- */
.marquee { background: var(--navy-800); border-block: 1px solid var(--navy-900); }
.marquee-track span { color: rgba(255,254,238,.78); }
.marquee-track span::after { background: var(--gold); }

/* ---- 카드 호버: 민트 잔재 제거 → 브라스/네이비 ---- */
.card:hover { border-color: var(--gold-300); }
.value-card .ico { background: var(--ivory-2); color: var(--navy-800); border: 1px solid var(--line); }
.value-card:hover .ico { background: var(--navy-800); color: var(--gold-300); border-color: var(--navy-800); }

/* ---- 스토리 네비게이터: 헤리티지 톤 정리 ---- */
.story-nav { background: var(--ivory); }
.sn-chip { border-color: var(--line); background: var(--ivory); color: var(--ink-soft); }
.sn-chip:hover { border-color: var(--navy-500); color: var(--navy-800); }
.sn-chip.on { background: var(--navy-800); border-color: var(--navy-800); color: var(--ivory); }
.sn-chip.on i { color: var(--gold-300); }
.sn-card { background: var(--ivory-2); border: 1px solid var(--line); }
.sn-empathy { color: var(--navy-800); }
.sn-tag { color: var(--gold-600); }
.sn-link { background: var(--ivory); border: 1px solid var(--line); }
.sn-link:hover { border-color: var(--gold); background: var(--ivory); }
.sn-link.main { background: var(--navy-800); border-color: var(--navy-800); }
.sn-link.main .t { color: var(--gold-300); }

/* ---- 통계 밴드/CTA: 네이비 위 브라스 ---- */
.stats-band .num, .stats-band .stat .num { color: var(--ivory); }
.stats-band .num em, .stat .num { font-style: normal; }
.ch-band-head .ch-no-light { color: var(--gold-300); }

/* ---- 푸터 ---- */
.site-footer { background: var(--navy-900); }
.footer-sns a:hover { background: var(--gold); color: var(--navy-900); }

/* ---- FAQ/프로즈 불릿: 민트 → 브라스 ---- */
.prose ul li::before { background: var(--gold); border-radius: 0; transform: rotate(45deg); width: 6px; height: 6px; }
.faq-q i { color: var(--gold-600); }

/* ---- 서브페이지 히어로: 네이비 + 브라스 헤어라인 ---- */
.page-hero::before { background: radial-gradient(50% 80% at 85% 10%, rgba(176,141,87,.14), transparent 65%); }
.page-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .5;
}
.page-hero .ph-chapter { color: var(--gold-300); }

/* ---- 키네틱 띠: 잉크 아웃라인 정리 ---- */
.kinetic { background: var(--ivory-2); }
.kinetic-track .lit { color: var(--navy-800); }
.kinetic-track .out { -webkit-text-stroke-color: rgba(6,39,65,.28); }

/* ---- 챕터 레일: 브라스 톤 ---- */
.chapter-rail .cr-item.on .cr-no { color: var(--gold-600); }
.chapter-rail.dark .cr-item.on .cr-no { color: var(--gold-300); }

/* ---- 반응형 ---- */
@media (max-width: 1024px) {
  .hh-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero--heritage { justify-content: flex-start; padding-top: 130px; }
  .hero--heritage .hh-panel { top: auto; height: 52%; width: 100%; }
  .hh-frame img { aspect-ratio: 16/10; }
  .hh-frame::before { left: 10px; top: 10px; right: -10px; bottom: -10px; }
}
@media (max-width: 640px) {
  .hero--heritage .hh-top { grid-template-columns: 1fr 1fr; }
  .hero--heritage .hh-top .hero-coord { display: none; }
  .hh-meta { flex-wrap: wrap; gap: 22px; }
  .hh-rule { margin: 0 12px; }
}

/* ============================================================
   ★★★★★ v9.5 — VECTOR MOTION LAYER (헤리티지 드로잉 문법)
   브라스 헤어라인이 "만년필로 긋듯" 그려지는 SVG 모션
   pathLength=1 정규화 → dasharray/dashoffset 드로잉
   ============================================================ */

/* ---- 공용: 드로잉 라인 기본 ---- */
.co-line, .hr-arc, .hfd-rect, .cr-arc {
  stroke: var(--gold); stroke-width: 1; fill: none;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}

/* ---- HERO 케어 링 (로고 모티프 대형 아크 — 베이지 패널 위) ---- */
.hh-ring {
  position: absolute; z-index: 1; pointer-events: none;
  top: 50%; right: max(-90px, -6vw); transform: translateY(-50%);
  width: clamp(380px, 42vw, 660px); aspect-ratio: 1; opacity: .5;
}
.hh-ring .hr-arc {
  animation: hhDraw 2.2s cubic-bezier(.6,.04,.25,1) .5s forwards;
}
.hh-ring .hr-dot {
  fill: var(--gold); opacity: 0; transform-origin: 88px 14px; transform: scale(.2);
  animation: hhDotIn .8s var(--ease) 2.4s forwards;
}
@keyframes hhDraw { to { stroke-dashoffset: 0; } }
@keyframes hhDotIn { to { opacity: .9; transform: scale(1); } }

/* ---- HERO 액자: 브라스 오프셋 프레임이 그려진다 ---- */
.hh-frame-draw {
  position: absolute; z-index: -1; pointer-events: none;
  top: 14px; left: -14px; right: 14px; bottom: -14px;
  width: auto; height: auto; overflow: visible;
}
.hh-frame-draw .hfd-rect {
  opacity: .7;
  animation: hhDraw 2s cubic-bezier(.6,.04,.25,1) .9s forwards;
}
.hh-frame::before { display: none; } /* 정적 프레임 → SVG 드로잉으로 대체 */
.hh-frame { animation: hhFrameIn 1.2s var(--ease) .4s backwards; }
@keyframes hhFrameIn { from { border-color: transparent; box-shadow: none; } }

/* ---- HERO 메타: 상단 헤어라인이 좌→우로 그어진다 ---- */
.hh-meta { border-top: none; position: relative; }
.hh-meta::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--line) 55%, var(--line) 100%);
  transform: scaleX(0); transform-origin: left;
  animation: hhRuleX 1.4s cubic-bezier(.6,.04,.25,1) 1.5s forwards;
}
@keyframes hhRuleX { to { transform: scaleX(1); } }

/* ---- HERO 아이브로 다이아: 잉크 점이 찍히듯 ---- */
.hh-eyebrow .hh-diamond {
  animation: diaInk .7s var(--ease) .3s backwards;
}
@keyframes diaInk {
  from { transform: rotate(45deg) scale(0); opacity: 0; }
  60% { transform: rotate(45deg) scale(1.5); }
  to { transform: rotate(45deg) scale(1); opacity: 1; }
}

/* ---- 챕터 헤드 오너먼트: reveal 시 라인 드로잉 + 다이아 ---- */
.chapter-head .ch-orna {
  flex: 0 0 64px; height: 10px; align-self: center; overflow: visible;
}
.chapter-head .co-dia {
  align-self: center; width: 5px; height: 5px; opacity: 0;
  transform: rotate(45deg) scale(0); transition: all .6s var(--ease) 1s;
}
.chapter-head .co-line { transition: stroke-dashoffset 1.3s cubic-bezier(.6,.04,.25,1) .25s; }
.chapter-head.in .co-line { stroke-dashoffset: 0; }
.chapter-head.in .co-dia { opacity: 1; transform: rotate(45deg) scale(1); }

/* ---- 스탯 밴드 오너먼트 (네이비 위 브라스) ---- */
.cb-orna { width: 120px; height: 12px; margin: 18px auto 22px; display: block; overflow: visible; }
.cb-orna .co-line { transition: stroke-dashoffset 1.2s cubic-bezier(.6,.04,.25,1) .3s; }
.cb-orna .co-line2 { transition-delay: .5s; }
.cb-orna .cb-dia {
  fill: var(--gold); opacity: 0; transform-origin: 60px 6px; transform: scale(0);
  transition: all .6s var(--ease) .9s;
}
.ch-band-head.in .co-line { stroke-dashoffset: 0; }
.ch-band-head.in .cb-dia { opacity: 1; transform: scale(1); }

/* ---- 에필로그 케어 링 (네이비 밴드 위 브라스 아크) ---- */
.cta-ring {
  position: absolute; z-index: 1; pointer-events: none;
  top: 50%; right: -8%; transform: translateY(-50%);
  width: clamp(300px, 34vw, 520px); aspect-ratio: 1; opacity: .35;
}
.cta-ring .cr-arc { transition: stroke-dashoffset 2.4s cubic-bezier(.6,.04,.25,1) .4s; }
.cta-ring .cr-dot { fill: var(--gold); opacity: 0; transition: opacity .8s var(--ease) 2.6s; }
.epilogue-band.in .cr-arc { stroke-dashoffset: 0; }
.epilogue-band.in .cr-dot { opacity: .9; }

/* ---- 브라스 스크롤 프로그레스 헤어라인 (JS 생성) ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1000;
  background: linear-gradient(90deg, var(--gold), var(--gold-600));
  transform: scaleX(0); transform-origin: left; pointer-events: none;
}

/* ---- 닥터 카드: 브라스 코너 틱 (호버 시 모서리가 그려짐) ---- */
.doc-card { position: relative; }
.doc-card::before, .doc-card::after {
  content: ''; position: absolute; width: 22px; height: 22px; z-index: 3;
  pointer-events: none; opacity: 0; transition: all .5s var(--ease);
}
.doc-card::before {
  top: 10px; left: 10px;
  border-top: 1px solid var(--gold); border-left: 1px solid var(--gold);
  transform: translate(6px, 6px);
}
.doc-card::after {
  bottom: 10px; right: 10px;
  border-bottom: 1px solid var(--gold); border-right: 1px solid var(--gold);
  transform: translate(-6px, -6px);
}
.doc-card:hover::before, .doc-card:hover::after { opacity: 1; transform: translate(0, 0); }

/* ---- 통계 숫자: 브라스 베이스라인 틱 ---- */
.stats-band .stat { position: relative; padding-bottom: 14px; }
.stats-band .stat::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%) scaleX(0);
  width: 28px; height: 1px; background: var(--gold); transition: transform .8s var(--ease) .5s;
}
.stats-band .stat.in::after { transform: translateX(-50%) scaleX(1); }

/* ---- 버튼 마이크로: 브라스 언더 헤어라인 ---- */
.btn-primary::after, .btn-accent::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 7px; height: 1px;
  background: var(--gold-300); opacity: 0; transform: scaleX(.3); transform-origin: left;
  transition: all .45s var(--ease);
}
.btn-primary:hover::after, .btn-accent:hover::after { opacity: .8; transform: scaleX(1); }

/* ---- sn-chip 선택: 다이아 잉크 포인트 ---- */
.sn-chip { position: relative; }
.sn-chip.on::after {
  content: ''; position: absolute; top: -3px; right: -3px; width: 6px; height: 6px;
  background: var(--gold); transform: rotate(45deg);
  animation: diaInk .5s var(--ease) both;
}

/* ---- 반응형 / 모션 감소 ---- */
@media (max-width: 1024px) {
  .hh-ring { top: auto; bottom: -4%; right: -14%; width: 360px; opacity: .35; }
  .cta-ring { right: -22%; }
}
@media (max-width: 640px) {
  .hh-ring { display: none; }
  .hh-frame-draw { top: 10px; left: -10px; right: 10px; bottom: -10px; }
}
@media (prefers-reduced-motion: reduce) {
  .co-line, .hr-arc, .hfd-rect, .cr-arc { stroke-dashoffset: 0 !important; }
  .hh-ring .hr-dot, .cta-ring .cr-dot, .cb-orna .cb-dia, .chapter-head .co-dia { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hh-meta::before { transform: scaleX(1); animation: none; }
  .hh-frame, .hh-eyebrow .hh-diamond { animation: none; }
  .scroll-progress { display: none; }
}

/* ---- v9.5.1 핫픽스: 라이트 히어로에서 구버전 .hero h1 잉크 무력화 ---- */
.hero--heritage h1, .hero--heritage .hh-title { color: var(--navy-800); }
.hero--heritage .hh-title .hh-italic { color: var(--navy-600); }
/* 커스텀 커서: difference 블렌드 제거 → 브라스 헤어라인 커서 (라이트/다크 양쪽 안정) */
.cursor-ring, .cursor-dot { mix-blend-mode: normal; }
.cursor-ring { border-color: rgba(176,141,87,.85); }
.cursor-dot { background: var(--gold); }
.cursor-ring.media { background: rgba(176,141,87,.08); border-color: var(--gold); }

/* ── 칼럼 본문 삽입 이미지 (에디터 업로드) ── */
.prose .column-figure { margin: 32px 0; }
.prose .column-figure img { width: 100%; border-radius: 14px; display: block; box-shadow: 0 12px 32px rgba(6,39,65,.10); }
.prose .column-figure figcaption { margin-top: 10px; font-size: 13px; color: var(--gray-600); text-align: center; letter-spacing: .02em; }
