/* ═══════════════════════════════════════════════════════
   GOSU DENTAL — 武林 Design System v2
   먹(墨) × 로고 스카이블루(#acd7e5) × 낙관(落款) 레드
   "지켜야 할 것을 오래도록 지키며, 어제보다 나은 高手가 되어가는 치과"
   ═══════════════════════════════════════════════════════ */
:root {
  /* 로고 실측 컬러 */
  --sky: #acd7e5;            /* 로고 원형 하늘색 그대로 */
  --sky-bright: #b8e6f5;     /* 로고 반짝임 */
  --sky-deep: #4f9cbe;       /* 텍스트용 딥 스카이 (접근성) */
  --sky-mist: #eef6fa;
  --sky-line: #d7e9f1;
  /* 먹(墨) */
  --ink: #101417;            /* 먹색 — 로고 라인 그대로 */
  --ink-deep: #0a0d0f;
  --ink-2: #2e353b;
  --ink-soft: #4d565e;
  --ink-mute: #8a949c;
  /* 낙관(落款) */
  --seal: #b8382b;
  --seal-soft: #d4574a;
  /* 기타 */
  --paper: #fcfdfe;
  --line: #e5ecf0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Gowun Batang', 'Noto Serif KR', 'Pretendard Variable', serif; /* 수묵 본문 — 붓 세리프 바탕체 */
  --sans: 'Pretendard Variable', Pretendard, -apple-system, sans-serif;   /* UI·폼 전용 */
  --serif: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  --brush: 'LXGW WenKai TC', 'Noto Serif KR', serif;          /* 해서(楋書) 붓글씨 — 한자 워터마크·낙관 */
  --hangul-brush: 'Nanum Brush Script', 'Noto Serif KR', serif; /* 한글 붓 손글씨 — 포인트 강조 */
  /* 하위 호환 별칭 (기존 인라인 스타일 대응) */
  --brand: var(--sky-deep);
  --brand-soft: var(--sky);
  --brand-mist: var(--sky-mist);
  --brand-dark: var(--ink);
  --brand-deep: var(--ink-deep);
  --brand-accent: var(--sky);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink-2);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--sky); color: var(--ink); }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 999; background: var(--ink); color: #fff; padding: 8px 16px; }

/* ── 붓 스트로크 밑줄 (em 강조) ── */
.h-display em, .hero-title em {
  font-style: normal;
  position: relative;
  z-index: 1;
}
.h-display em::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: 0.06em; height: 0.38em;
  background: var(--sky); z-index: -1; opacity: 0.55;
  border-radius: 2px 6px 3px 5px / 6px 3px 5px 2px;
  transform: skewX(-8deg) rotate(-0.5deg);
}

/* ── 낙관 도장 ── */
.seal-stamp {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; flex-shrink: 0;
  border: 2.5px solid var(--seal); color: var(--seal);
  font-family: var(--brush); font-weight: 700; font-size: 20px; line-height: 1.05;
  letter-spacing: 0; text-align: center; padding: 4px;
  transform: rotate(-4deg);
  border-radius: 6px 10px 7px 9px / 9px 7px 10px 6px;
  box-shadow: inset 0 0 0 1px rgba(184,56,43,0.15);
  writing-mode: vertical-rl;
}
.seal-stamp.sm { width: 40px; height: 40px; font-size: 14px; border-width: 2px; }

/* ═══ Header ═══ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(252, 253, 254, 0.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 32px; height: 78px;
}
.header-logo img { width: 132px; height: auto; }
.gnb { flex: 1; display: flex; justify-content: center; }
.gnb-list { display: flex; gap: 2px; }
.gnb-list > li { position: relative; }
.gnb-list > li > a {
  display: block; padding: 27px 18px; font-weight: 600; font-size: 15.5px;
  color: var(--ink); letter-spacing: -0.01em; position: relative;
  transition: color 0.25s var(--ease);
}
.gnb-list > li > a::after {
  content: ''; position: absolute; left: 18px; right: 18px; bottom: 20px; height: 2px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.gnb-list > li > a:hover { color: var(--ink-deep); }
.gnb-list > li > a:hover::after, .has-mega:hover > a::after { transform: scaleX(1); }
.mega {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
  background: #fff; border: 1px solid var(--ink); border-radius: 2px;
  box-shadow: 6px 6px 0 rgba(16, 20, 23, 0.08);
  padding: 16px 8px; min-width: 220px; display: flex; gap: 8px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: all 0.3s var(--ease);
}
.mega-wide { min-width: 430px; }
.has-mega:hover .mega, .has-mega:focus-within .mega {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
}
.mega-col { flex: 1; display: flex; flex-direction: column; }
.mega-label {
  font-size: 11.5px; font-weight: 800; color: var(--sky-deep); text-transform: uppercase;
  letter-spacing: 0.1em; padding: 6px 16px 4px;
}
.mega-col a {
  padding: 9px 16px; font-size: 14.5px; color: var(--ink-soft);
  transition: all 0.2s var(--ease); white-space: nowrap; border-left: 2px solid transparent;
}
.mega-col a:hover { background: var(--sky-mist); color: var(--ink); border-left-color: var(--sky-deep); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.btn-ghost {
  padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--ink-soft);
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--ink); }
.btn-brand {
  padding: 12px 24px; font-size: 14.5px; font-weight: 700; color: #fff;
  background: var(--ink); border-radius: 2px; letter-spacing: -0.01em;
  box-shadow: 4px 4px 0 var(--sky);
  transition: all 0.3s var(--ease);
}
.btn-brand:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--sky); }
.mobile-toggle { display: none; }
.mobile-menu { display: none; }

/* ═══ Hero — 수묵 먹빛 ═══ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background:
    radial-gradient(ellipse 900px 600px at 85% 15%, rgba(172,215,229,0.13), transparent 60%),
    linear-gradient(170deg, #0a0d0f 0%, #12181c 55%, #162026 100%);
  color: #fff; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; opacity: 0.22;
  background-size: cover; background-position: center;
  transform: scale(1.08);
  animation: heroZoom 16s var(--ease) forwards;
  filter: grayscale(0.5) contrast(1.05);
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,13,15,0.6) 0%, rgba(10,13,15,0.2) 50%, rgba(10,13,15,0.85) 100%);
}
/* 세로 한자 워터마크 */
.hero-hanja {
  position: absolute; right: clamp(16px, 6vw, 110px); top: 50%;
  transform: translateY(-50%);
  font-family: var(--brush); font-weight: 700;
  font-size: clamp(110px, 17vw, 260px); line-height: 1.06;
  color: transparent;
  -webkit-text-stroke: 1px rgba(172, 215, 229, 0.2);
  writing-mode: vertical-rl; letter-spacing: 0.08em;
  pointer-events: none; user-select: none;
  animation: hanjaIn 2.4s var(--ease) 0.4s both;
}
.hero-hanja b { font-weight: 900; color: rgba(172, 215, 229, 0.1); -webkit-text-stroke: 0; }
@keyframes hanjaIn { from { opacity: 0; transform: translateY(-46%); } to { opacity: 1; transform: translateY(-50%); } }
.hero-inner { position: relative; max-width: 1320px; margin: 0 auto; padding: 150px 24px 110px; width: 100%; z-index: 2; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 32px;
  opacity: 0; animation: fadeUp 0.9s var(--ease) 0.2s forwards;
}
.hero-eyebrow::before { content: ''; width: 46px; height: 1px; background: var(--sky); }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 80px); font-weight: 900; line-height: 1.22;
  letter-spacing: -0.015em; margin-bottom: 34px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span {
  display: block; transform: translateY(112%);
  animation: riseUp 1.2s var(--ease) forwards;
}
.hero-title .line:nth-child(2) span { animation-delay: 0.18s; }
.hero-title .line:nth-child(3) span { animation-delay: 0.36s; }
.hero-title em { color: var(--sky); }
.hero-title em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 0.1em;
  background: var(--sky); opacity: 0.5;
  border-radius: 3px 8px 4px 7px / 7px 4px 8px 3px;
  transform: skewX(-10deg);
}
@keyframes riseUp { to { transform: translateY(0); } }
.hero-sub {
  font-size: clamp(15.5px, 1.6vw, 19px); color: rgba(255,255,255,0.78);
  max-width: 640px; font-weight: 300; line-height: 1.95;
  opacity: 0; animation: fadeUp 1s var(--ease) 0.6s forwards;
}
.hero-sub strong { color: var(--sky-bright); font-weight: 600; }
.hero-actions {
  display: flex; gap: 14px; margin-top: 48px; flex-wrap: wrap; align-items: center;
  opacity: 0; animation: fadeUp 1s var(--ease) 0.8s forwards;
}
.hero-btn {
  padding: 17px 36px; font-weight: 700; font-size: 15.5px; border-radius: 2px;
  transition: all 0.35s var(--ease); letter-spacing: 0.01em;
}
.hero-btn.primary { background: var(--sky); color: var(--ink-deep); box-shadow: 5px 5px 0 rgba(172,215,229,0.25); }
.hero-btn.primary:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 rgba(172,215,229,0.35); background: var(--sky-bright); }
.hero-btn.outline { border: 1px solid rgba(255,255,255,0.4); color: #fff; }
.hero-btn.outline:hover { background: rgba(255,255,255,0.08); border-color: var(--sky); color: var(--sky-bright); }
.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2;
  font-size: 10.5px; letter-spacing: 0.28em; color: rgba(255,255,255,0.5); text-transform: uppercase;
  opacity: 0; animation: fadeUp 1s var(--ease) 1.3s forwards;
}
.hero-scroll::after {
  content: ''; width: 1px; height: 46px;
  background: linear-gradient(to bottom, var(--sky), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:0.3; transform:scaleY(0.7); transform-origin:top;} 50%{opacity:1; transform:scaleY(1);} }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }

/* ═══ Sections & Typography ═══ */
.section { padding: clamp(84px, 11vw, 156px) 24px; }
.section-inner { max-width: 1320px; margin: 0 auto; }
.section-narrow { max-width: 880px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sky-deep); margin-bottom: 20px;
}
.eyebrow::before {
  content: ''; width: 9px; height: 9px; background: var(--seal);
  transform: rotate(-4deg); border-radius: 1px 3px 2px 3px;
}
.h-display {
  font-family: var(--serif);
  font-size: clamp(30px, 4.1vw, 52px); font-weight: 900; line-height: 1.32;
  letter-spacing: -0.01em; color: var(--ink); margin-bottom: 24px;
}
.lead { font-size: clamp(16px, 1.5vw, 18.5px); color: var(--ink-soft); max-width: 700px; line-height: 1.95; font-weight: 350; }
.lead strong { color: var(--ink); font-weight: 600; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ═══ Philosophy — 먹빛 3고수 ═══ */
.philosophy {
  background:
    radial-gradient(ellipse 700px 500px at 12% 90%, rgba(172,215,229,0.09), transparent 60%),
    linear-gradient(165deg, #0a0d0f, #13191d 70%, #162026);
  color: #fff; position: relative; overflow: hidden;
}
.philosophy::before {
  content: '固守'; position: absolute; right: -1%; top: 50%; transform: translateY(-50%);
  font-family: var(--brush); font-size: clamp(200px, 30vw, 430px); font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px rgba(172,215,229,0.09);
  line-height: 1; pointer-events: none; writing-mode: vertical-rl;
}
.philosophy .h-display { color: #fff; }
.philosophy .h-display em::after { opacity: 0.35; }
.phil-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 68px; position: relative; z-index: 1; }
.phil-card {
  padding: 44px 36px 40px; border: 1px solid rgba(172,215,229,0.16); border-radius: 2px;
  background: rgba(255,255,255,0.025); backdrop-filter: blur(6px);
  transition: all 0.5s var(--ease); position: relative;
}
.phil-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--sky), transparent 70%);
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease);
}
.phil-card:hover { transform: translateY(-6px); border-color: rgba(172,215,229,0.45); background: rgba(172,215,229,0.05); }
.phil-card:hover::before { transform: scaleX(1); }
.phil-num {
  font-family: var(--brush); font-size: 17px; font-weight: 700;
  color: var(--sky); letter-spacing: 0.24em;
}
.phil-card h3 { font-family: var(--serif); font-size: 22.5px; font-weight: 900; margin: 16px 0 14px; letter-spacing: -0.01em; }
.phil-card p { font-size: 14.5px; color: rgba(255,255,255,0.62); line-height: 1.9; font-weight: 300; }

/* ═══ 인용 배너 (원장님의 말) ═══ */
.quote-band {
  position: relative; text-align: center;
  padding: clamp(80px, 10vw, 130px) 24px;
  background: var(--sky-mist);
  overflow: hidden;
}
.quote-band::before {
  content: '"'; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-size: 200px; font-weight: 900; color: rgba(172,215,229,0.35);
  line-height: 1; pointer-events: none;
}
.quote-band blockquote {
  font-family: var(--serif); font-size: clamp(21px, 2.9vw, 34px); font-weight: 700;
  color: var(--ink); line-height: 1.72; letter-spacing: -0.01em;
  max-width: 900px; margin: 0 auto; position: relative;
}
.quote-band blockquote em { font-style: normal; color: var(--sky-deep); }
.quote-band cite {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 34px;
  font-style: normal; font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
}
.quote-band cite::before { content: ''; width: 34px; height: 1px; background: var(--ink-mute); }

/* ═══ Treatment cards ═══ */
.treat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.treat-card {
  position: relative; border-radius: 2px; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  transition: all 0.5s var(--ease); display: flex; flex-direction: column;
}
.treat-card:hover { transform: translateY(-8px); box-shadow: 10px 10px 0 var(--sky-mist), 0 26px 60px rgba(16,20,23,0.1); border-color: var(--ink); }
.treat-card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--sky-mist); position: relative; }
.treat-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(10,13,15,0.18));
}
.treat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.treat-card:hover .treat-card-img img { transform: scale(1.06); }
.treat-card-body { padding: 32px 30px 36px; flex: 1; display: flex; flex-direction: column; }
.treat-tag {
  font-size: 11.5px; font-weight: 800; color: var(--seal); letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 12px;
}
.treat-card h3 { font-family: var(--serif); font-size: 23px; font-weight: 900; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 12px; }
.treat-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.8; flex: 1; }
.treat-more {
  margin-top: 24px; font-size: 14px; font-weight: 700; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0.02em;
}
.treat-more i { transition: transform 0.3s var(--ease); font-size: 12px; color: var(--sky-deep); }
.treat-card:hover .treat-more i { transform: translateX(5px); }
.treat-sub-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.treat-sub {
  padding: 26px 24px; border-radius: 2px; border: 1px solid var(--line); background: #fff;
  transition: all 0.4s var(--ease); display: block;
}
.treat-sub:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: 6px 6px 0 var(--sky-mist); }
.treat-sub h4 { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.treat-sub p { font-size: 13.5px; color: var(--ink-mute); line-height: 1.65; }

/* ═══ Stats ═══ */
.stats-band {
  background: var(--ink); color: #fff; position: relative; overflow: hidden;
  padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(64px, 8vw, 110px);
}
.stats-band::before {
  content: '修鍊'; position: absolute; left: 3%; top: 50%; transform: translateY(-50%);
  font-family: var(--brush); font-size: clamp(120px, 16vw, 230px); font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px rgba(172,215,229,0.08);
  line-height: 1; pointer-events: none;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; position: relative; z-index: 1; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px); font-weight: 900; color: #fff;
  letter-spacing: -0.02em; line-height: 1.1;
}
.stat-num .unit { font-size: 0.44em; font-weight: 700; color: var(--sky); margin-left: 2px; }
.stat-label { font-size: 14.5px; color: rgba(255,255,255,0.6); margin-top: 10px; font-weight: 400; }

/* ═══ Doctors ═══ */
.doctor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.doctor-card {
  border-radius: 2px; overflow: hidden; background: #fff; border: 1px solid var(--line);
  transition: all 0.5s var(--ease);
}
.doctor-card:hover { transform: translateY(-8px); box-shadow: 10px 10px 0 var(--sky-mist), 0 26px 60px rgba(16,20,23,0.1); border-color: var(--ink); }
.doctor-photo {
  aspect-ratio: 4/4.4;
  background: linear-gradient(170deg, var(--sky-mist), var(--sky) 130%);
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-photo i { font-size: 84px; color: rgba(16,20,23,0.12); }
.doctor-photo .badge {
  position: absolute; top: 16px; left: 16px; background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 700; padding: 8px 15px; letter-spacing: 0.03em;
  border-radius: 2px; z-index: 2;
}
.doctor-body { padding: 30px 28px 34px; }
.doctor-body h3 { font-family: var(--serif); font-size: 24px; font-weight: 900; color: var(--ink); letter-spacing: -0.01em; }
.doctor-body .role { font-size: 13.5px; font-weight: 700; color: var(--sky-deep); margin: 4px 0 14px; letter-spacing: 0.02em; }
.doctor-body p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.8; }

/* ═══ Space gallery ═══ */
.space-gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 64px; }
.space-item { border-radius: 2px; overflow: hidden; position: relative; }
.space-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.space-item:hover img { transform: scale(1.05); }
.space-item .cap {
  position: absolute; left: 22px; bottom: 20px; color: #fff;
  font-family: var(--serif); font-size: 14.5px; font-weight: 700; letter-spacing: 0.14em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5); z-index: 2; text-transform: uppercase;
}
.space-item .cap::before { content: ''; display: inline-block; width: 20px; height: 1px; background: var(--sky); margin-right: 10px; vertical-align: middle; }
.space-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,13,15,0.6));
  pointer-events: none;
}
.sp-a { grid-column: span 7; aspect-ratio: 16/9.5; }
.sp-b { grid-column: span 5; aspect-ratio: 16/12.6; }
.sp-c { grid-column: span 4; aspect-ratio: 1/1.05; }
.sp-d { grid-column: span 4; aspect-ratio: 1/1.05; }
.sp-e { grid-column: span 4; aspect-ratio: 1/1.05; }

/* ═══ CTA band ═══ */
.cta-band {
  background:
    radial-gradient(ellipse 600px 400px at 88% 10%, rgba(172,215,229,0.14), transparent 60%),
    linear-gradient(150deg, var(--ink-deep), #162026);
  color: #fff; text-align: center; border-radius: 2px;
  padding: clamp(64px, 8vw, 104px) 24px; position: relative; overflow: hidden;
  border: 1px solid rgba(172,215,229,0.14);
}
.cta-band::before {
  content: '信賴'; position: absolute; right: 4%; bottom: -8%;
  font-family: var(--brush); font-size: clamp(100px, 13vw, 190px); font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px rgba(172,215,229,0.1); line-height: 1;
}
.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 44px); font-weight: 900; letter-spacing: -0.01em;
  margin-bottom: 18px; position: relative; line-height: 1.4;
}
.cta-band p { color: rgba(255,255,255,0.7); font-size: 16.5px; margin-bottom: 40px; position: relative; font-weight: 300; }

/* ═══ Page hero (서브 페이지) ═══ */
.page-hero {
  padding: 180px 24px 92px;
  background:
    radial-gradient(ellipse 700px 400px at 90% 0%, rgba(172,215,229,0.25), transparent 55%),
    linear-gradient(165deg, var(--sky-mist) 0%, #fff 70%);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '高手'; position: absolute; right: 2%; top: 46%; transform: translateY(-50%);
  font-family: var(--brush); font-size: clamp(90px, 13vw, 200px); font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px rgba(79,156,190,0.14);
  line-height: 1; pointer-events: none; writing-mode: vertical-rl;
}
.page-hero.dark {
  background:
    radial-gradient(ellipse 800px 500px at 85% 10%, rgba(172,215,229,0.12), transparent 60%),
    linear-gradient(168deg, var(--ink-deep), #13191d 60%, #162026);
  color: #fff;
}
.page-hero.dark::after { -webkit-text-stroke-color: rgba(172,215,229,0.1); }
.page-hero.dark .h-display { color: #fff; }
.page-hero.dark .lead { color: rgba(255,255,255,0.75); }
.breadcrumb { font-size: 13px; color: var(--ink-mute); margin-bottom: 28px; display: flex; gap: 8px; flex-wrap: wrap; letter-spacing: 0.02em; }
.breadcrumb a:hover { color: var(--sky-deep); }
.page-hero.dark .breadcrumb { color: rgba(255,255,255,0.5); }

/* ═══ Prose ═══ */
.prose h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; color: var(--ink);
  letter-spacing: -0.01em; margin: 58px 0 20px; line-height: 1.45;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink); margin: 38px 0 14px; }
.prose p { font-size: 16.5px; color: var(--ink-soft); line-height: 1.95; margin-bottom: 18px; white-space: pre-line; font-weight: 350; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose img { border-radius: 2px; margin: 28px 0; }
.prose a { color: var(--sky-deep); font-weight: 600; border-bottom: 1px solid var(--sky); }
.prose ul { margin: 0 0 18px 4px; }
.prose ul li { position: relative; padding-left: 22px; margin-bottom: 9px; color: var(--ink-soft); font-size: 16px; }
.prose ul li::before { content: ''; position: absolute; left: 3px; top: 12px; width: 7px; height: 7px; background: var(--sky); transform: rotate(-4deg); border-radius: 1px 2px 1px 2px; }
.prose blockquote {
  margin: 32px 0; padding: 28px 32px; border-left: 3px solid var(--sky);
  background: var(--sky-mist); font-family: var(--serif); font-size: 17.5px;
  color: var(--ink); line-height: 1.85; font-weight: 500;
}

/* ═══ FAQ ═══ */
.faq-list { margin-top: 42px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  padding: 25px 8px; font-size: 16.5px; font-weight: 700; color: var(--ink);
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 15px;
  transition: color 0.25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: '問'; flex-shrink: 0; width: 34px; height: 34px;
  font-family: var(--brush); background: var(--ink); color: #fff; font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center; border-radius: 2px;
  transform: rotate(-2deg);
}
.faq-item summary:hover { color: var(--sky-deep); }
.faq-item[open] summary { color: var(--sky-deep); }
.faq-item[open] summary::before { background: var(--sky-deep); }
.faq-a { padding: 0 8px 28px 57px; font-size: 15.5px; color: var(--ink-soft); line-height: 1.9; }

/* ═══ Career ═══ */
.career-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; margin-top: 42px; }
.career-block h3 {
  font-size: 14px; font-weight: 800; color: var(--sky-deep); letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 20px; display: flex; align-items: center; gap: 12px;
}
.career-block h3::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.career-block li { font-size: 15.5px; color: var(--ink-soft); padding: 7px 0 7px 22px; position: relative; }
.career-block li::before { content: ''; position: absolute; left: 3px; top: 16px; width: 6px; height: 6px; background: var(--sky); transform: rotate(-4deg); border-radius: 1px; }

/* ═══ Cases ═══ */
.case-filter { display: flex; gap: 10px; flex-wrap: wrap; margin: 42px 0 10px; }
.case-filter button {
  padding: 10px 21px; border: 1px solid var(--line); background: #fff; border-radius: 2px;
  font-size: 14px; font-weight: 600; color: var(--ink-soft); cursor: pointer; font-family: var(--font);
  transition: all 0.25s var(--ease);
}
.case-filter button.active, .case-filter button:hover { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 3px 3px 0 var(--sky); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.case-card {
  border-radius: 2px; overflow: hidden; border: 1px solid var(--line); background: #fff;
  transition: all 0.45s var(--ease); cursor: pointer;
}
.case-card:hover { transform: translateY(-6px); box-shadow: 8px 8px 0 var(--sky-mist), 0 20px 48px rgba(16,20,23,0.09); border-color: var(--ink); }
.case-thumb { aspect-ratio: 16/10; background: var(--sky-mist); position: relative; overflow: hidden; }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-thumb .lock-overlay {
  position: absolute; inset: 0; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(16,20,23,0.4); display: flex; flex-direction: column; gap: 8px;
  align-items: center; justify-content: center; color: #fff; font-size: 13.5px; font-weight: 600;
}
.lock-overlay i { font-size: 22px; color: var(--sky); }
.case-body { padding: 23px 24px 27px; }
.case-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 11px; }
.case-meta span {
  font-size: 12px; font-weight: 700; color: var(--sky-deep); background: var(--sky-mist);
  padding: 4px 11px; border-radius: 2px;
}
.case-body h3 { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 7px; line-height: 1.5; }
.case-body p { font-size: 13.5px; color: var(--ink-mute); }

/* Before/After slider */
.ba-slider { position: relative; border-radius: 2px; overflow: hidden; aspect-ratio: 16/10; user-select: none; touch-action: none; background: var(--sky-mist); border: 1px solid var(--line); }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-slider .ba-after { clip-path: inset(0 0 0 50%); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--sky);
  cursor: ew-resize; z-index: 5;
}
.ba-handle::after {
  content: '⟨ ⟩'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 46px; height: 46px; background: var(--ink); color: var(--sky); border: 1px solid var(--sky);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; letter-spacing: -1px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.ba-tag {
  position: absolute; top: 14px; font-size: 12px; font-weight: 800; color: #fff;
  background: rgba(16,20,23,0.72); padding: 6px 13px; border-radius: 2px; z-index: 4;
  letter-spacing: 0.1em;
}
.ba-tag.before { left: 14px; }
.ba-tag.after { right: 14px; background: rgba(79,156,190,0.85); }

/* ═══ Forms & Auth ═══ */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.form-card {
  background: #fff; border: 1px solid var(--ink); border-radius: 2px;
  padding: 38px 34px; box-shadow: 8px 8px 0 var(--sky-mist);
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.form-group label .req { color: var(--seal); }
.form-control {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 2px;
  font-size: 15px; font-family: var(--font); color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s; background: #fff;
}
.form-control:focus { outline: none; border-color: var(--ink); box-shadow: 3px 3px 0 var(--sky-mist); }
textarea.form-control { min-height: 110px; resize: vertical; }
.form-check { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; }
.form-check input { margin-top: 3px; accent-color: var(--sky-deep); }
.btn-submit {
  width: 100%; padding: 15px; background: var(--ink); color: #fff; border: none; border-radius: 2px;
  font-size: 15.5px; font-weight: 700; font-family: var(--font); cursor: pointer;
  box-shadow: 4px 4px 0 var(--sky);
  transition: all 0.3s var(--ease); letter-spacing: 0.01em;
}
.btn-submit:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--sky); }
.btn-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.auth-links { text-align: center; margin-top: 20px; font-size: 14px; color: var(--ink-mute); }
.auth-links a { color: var(--sky-deep); font-weight: 700; }

/* ═══ Posts / Column ═══ */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.post-card {
  border-radius: 2px; overflow: hidden; background: #fff; border: 1px solid var(--line);
  transition: all 0.45s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: 8px 8px 0 var(--sky-mist); border-color: var(--ink); }
.post-thumb { aspect-ratio: 16/9; background: var(--sky-mist); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 24px 24px 28px; }
.post-body .date { font-size: 12.5px; color: var(--ink-mute); letter-spacing: 0.04em; }
.post-body h3 { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--ink); margin: 8px 0 10px; line-height: 1.55; }
.post-body p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ═══ Dictionary ═══ */
.dict-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.dict-card {
  padding: 24px 24px 26px; background: #fff; border: 1px solid var(--line); border-radius: 2px;
  transition: all 0.35s var(--ease); display: block;
}
.dict-card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 5px 5px 0 var(--sky-mist); }
.dict-card h3 { font-family: var(--serif); font-size: 17.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.dict-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dict-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.dict-links span { font-size: 12px; color: var(--sky-deep); background: var(--sky-mist); padding: 3px 10px; border-radius: 2px; font-weight: 700; }

/* ═══ Notices ═══ */
.notice-list { margin-top: 40px; }
.notice-row {
  display: flex; align-items: center; gap: 18px; padding: 22px 10px;
  border-bottom: 1px solid var(--line); transition: background 0.25s;
}
.notice-row:hover { background: var(--sky-mist); }
.notice-row .pin {
  flex-shrink: 0; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--seal);
  padding: 5px 11px; border-radius: 2px; transform: rotate(-2deg); letter-spacing: 0.06em;
}
.notice-row h3 { font-size: 16px; font-weight: 600; color: var(--ink); flex: 1; }
.notice-row .date { font-size: 13.5px; color: var(--ink-mute); }

/* ═══ Pricing table ═══ */
.price-table { width: 100%; border-collapse: collapse; margin-top: 30px; }
.price-table th {
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 700;
  padding: 15px 18px; text-align: left; letter-spacing: 0.03em;
}
.price-table td { padding: 15px 18px; font-size: 14.5px; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.price-table tr:hover td { background: var(--sky-mist); }

/* ═══ Misc ═══ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.pill-row { display: flex; gap: 9px; flex-wrap: wrap; }
.pill { font-size: 13px; font-weight: 700; color: var(--sky-deep); background: var(--sky-mist); padding: 7px 15px; border-radius: 2px; }
.map-frame { width: 100%; height: 440px; border: 1px solid var(--ink); border-radius: 2px; overflow: hidden; box-shadow: 8px 8px 0 var(--sky-mist); }
.empty-state { text-align: center; padding: 90px 20px; color: var(--ink-mute); }
.empty-state i { font-size: 44px; color: var(--sky); margin-bottom: 18px; }
.alert { padding: 15px 19px; border-radius: 2px; font-size: 14px; margin-bottom: 18px; }
.alert.info { background: var(--sky-mist); color: var(--sky-deep); border: 1px solid var(--sky-line); }
.alert.warn { background: #fdf3ec; color: #b4551e; border: 1px solid #f3ddc9; }

/* ═══ Footer ═══ */
.site-footer {
  background: var(--ink-deep); color: rgba(255,255,255,0.65); position: relative; overflow: hidden;
  padding: clamp(60px, 7vw, 90px) 24px 44px;
}
.site-footer::before {
  content: '固守 · 高手'; position: absolute; right: 3%; bottom: 8%;
  font-family: var(--brush); font-size: clamp(60px, 8vw, 120px); font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px rgba(172,215,229,0.07); line-height: 1;
  pointer-events: none;
}
.footer-inner { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1.6fr; gap: 44px; position: relative; }
.footer-brand img { width: 170px; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-slogan { font-family: var(--serif); font-size: 15.5px; color: var(--sky); margin: 18px 0 22px; font-weight: 600; }
.footer-sns { display: flex; gap: 10px; }
.footer-sns a {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(172,215,229,0.25); border-radius: 2px; color: var(--sky);
  transition: all 0.3s var(--ease); font-size: 15px;
}
.footer-sns a:hover { background: var(--sky); color: var(--ink); transform: translateY(-3px); }
.footer-info p { font-size: 14px; line-height: 2; }
.footer-info strong { color: #fff; }
.footer-links { margin-top: 14px; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--sky); }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 26px; margin-top: 14px; }
.footer-legal p { font-size: 12.5px; color: rgba(255,255,255,0.4); line-height: 1.8; }

/* ═══ Admin ═══ */
.admin-shell { display: flex; min-height: 100vh; background: #f4f7f9; }
.admin-side {
  width: 240px; flex-shrink: 0; background: var(--ink-deep); color: rgba(255,255,255,0.72);
  padding: 28px 16px; display: flex; flex-direction: column; gap: 4px;
}
.admin-side h2 { font-family: var(--serif); font-size: 17px; color: #fff; padding: 0 12px 22px; font-weight: 900; }
.admin-side a {
  padding: 12px 14px; border-radius: 2px; font-size: 14.5px; font-weight: 600;
  transition: all 0.25s; display: flex; align-items: center; gap: 4px;
}
.admin-side a:hover { background: rgba(172,215,229,0.1); color: #fff; }
.admin-side a.active { background: var(--sky); color: var(--ink); }
.admin-main { flex: 1; padding: 38px 40px; overflow-x: auto; }
.admin-main h1 { font-family: var(--serif); font-size: 25px; font-weight: 900; color: var(--ink); margin-bottom: 26px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 28px; margin-bottom: 24px; box-shadow: 4px 4px 0 rgba(172,215,229,0.2); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: 12.5px; color: var(--ink-mute); font-weight: 700; padding: 10px 12px; border-bottom: 2px solid var(--ink); letter-spacing: 0.04em; }
.admin-table td { padding: 13px 12px; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.admin-btn {
  padding: 8px 16px; border-radius: 2px; border: none; background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 700; cursor: pointer; font-family: var(--font);
  transition: all 0.25s;
}
.admin-btn:hover { box-shadow: 3px 3px 0 var(--sky); transform: translate(-1px,-1px); }
.admin-btn.danger { background: var(--seal); }
.admin-btn.ghost { background: #eef2f5; color: var(--ink-soft); }
.editor-toolbar { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px; background: #f4f7f9; border: 1px solid var(--line); border-bottom: none; border-radius: 2px 2px 0 0; }
.editor-toolbar button {
  padding: 7px 13px; border: 1px solid var(--line); background: #fff; border-radius: 2px;
  font-size: 13px; cursor: pointer; font-family: var(--font); font-weight: 600;
}
.editor-toolbar button:hover { border-color: var(--ink); }
.editor-area {
  min-height: 320px; padding: 20px; border: 1px solid var(--line); border-radius: 0 0 2px 2px;
  background: #fff; font-size: 15.5px; line-height: 1.85; outline: none;
}
.editor-area:focus { border-color: var(--ink); }
.editor-area.dragover { border-color: var(--sky-deep); background: var(--sky-mist); }
.editor-area img { max-width: 100%; border-radius: 2px; margin: 12px 0; }
.ac-wrap { position: relative; }
.ac-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 30; background: #fff;
  border: 1px solid var(--ink); border-radius: 2px; box-shadow: 4px 4px 0 var(--sky-mist);
  display: none; max-height: 230px; overflow-y: auto;
}
.ac-list.open { display: block; }
.ac-list div { padding: 11px 15px; font-size: 14px; cursor: pointer; }
.ac-list div:hover { background: var(--sky-mist); color: var(--ink); }

/* ═══ Responsive ═══ */
@media (max-width: 1024px) {
  .gnb { display: none; }
  .header-cta .btn-ghost { display: none; }
  .mobile-toggle {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none;
    cursor: pointer; padding: 8px;
  }
  .mobile-toggle span { width: 24px; height: 2px; background: var(--ink); transition: all 0.3s; }
  .mobile-menu {
    display: none; flex-direction: column; background: #fff;
    border-top: 1px solid var(--line); max-height: calc(100vh - 78px); overflow-y: auto;
    padding: 12px 20px 28px;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { padding: 14px 6px; font-size: 16px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
  .mobile-menu details summary { padding: 14px 6px; font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer; border-bottom: 1px solid var(--line); }
  .mobile-menu details a { padding-left: 20px; font-size: 15px; color: var(--ink-soft); }
  .mobile-cta { background: var(--ink); color: #fff !important; text-align: center; margin-top: 18px; border-radius: 2px; border: none !important; box-shadow: 4px 4px 0 var(--sky); }
  .phil-grid, .treat-grid, .doctor-grid, .post-grid, .dict-grid { grid-template-columns: 1fr 1fr; }
  .treat-sub-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .career-cols { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .sp-a, .sp-b, .sp-c, .sp-d, .sp-e { grid-column: span 12; aspect-ratio: 16/10; }
  .admin-shell { flex-direction: column; }
  .admin-side { width: 100%; }
  .hero-hanja { opacity: 0.5; }
}
@media (max-width: 640px) {
  .treat-grid, .doctor-grid, .post-grid, .case-grid, .treat-sub-grid, .phil-grid, .dict-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 0 16px; height: 68px; }
  .header-logo img { width: 108px; }
  .section { padding: 66px 18px; }
  .hero-inner { padding: 124px 18px 92px; }
  .hero-hanja { font-size: 90px; right: 8px; opacity: 0.4; }
  .quote-band blockquote { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-title .line span { transform: none; }
  .hero-eyebrow, .hero-sub, .hero-actions, .hero-scroll, .hero-hanja { opacity: 1; }
}

/* ═══════════════════════════════════════════
   수묵(水墨) Interactive Layer — ink.js companion
   ═══════════════════════════════════════════ */

/* hero ink trail canvas */
.ink-canvas {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none; mix-blend-mode: screen;
  filter: url(#ink-bleed);
}
.hero .hero-inner, .hero .hero-scroll { position: relative; }

/* click ink drop */
.ink-drop {
  position: fixed; z-index: 9999; pointer-events: none;
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  background: radial-gradient(circle at 42% 38%, rgba(16,20,23,0.5), rgba(16,20,23,0.28) 55%, rgba(16,20,23,0) 72%);
  filter: url(#ink-bleed);
  animation: inkDrop 1.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.ink-drop-sat {
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50% 42% 55% 46% / 48% 56% 44% 52%;
  animation: inkDropSat 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes inkDrop {
  0%   { transform: scale(0.15); opacity: 0.95; }
  45%  { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes inkDropSat {
  0%   { transform: scale(0.3); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* brush divider strokes */
.brush-divider {
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
  height: 30px; display: flex; align-items: center;
  color: var(--ink); opacity: 0.85;
}
.brush-divider svg { width: min(560px, 70%); height: 22px; margin: 0 auto; display: block; filter: url(#ink-bleed); }
.brush-divider .brush-path { transition: stroke-dashoffset 1.4s cubic-bezier(0.6, 0, 0.2, 1); }
.brush-divider .brush-path-2 { transition-duration: 1.9s; transition-delay: 0.15s; }
.brush-divider.drawn .brush-path { stroke-dashoffset: 0 !important; }

/* 먹 번짐 — apply rough ink edge to key 武林 elements */
.hero-hanja, .h-display em::after, .seal-stamp, .site-footer::before {
  filter: url(#ink-bleed);
}
.philosophy::before, .stats-band::before, .cta-band::before { filter: url(#ink-bleed); }

@media (prefers-reduced-motion: reduce) {
  .ink-canvas, .ink-drop { display: none; }
  .brush-divider .brush-path { stroke-dashoffset: 0 !important; transition: none; }
}
@media (max-width: 720px) {
  .brush-divider { height: 22px; }
}

/* ═══ 붓글씨 폰트 세트 (LXGW WenKai TC + Nanum Brush) ═══ */
/* 히어로 '고수' — 한글 붓 손글씨, 살짝 크게·기울여 낙관 느낌 */
.hero-title em {
  font-family: var(--hangul-brush); font-weight: 400;
  font-size: 1.24em; line-height: 1;
  display: inline-block; transform: rotate(-2deg) translateY(0.03em);
  letter-spacing: 0.01em;
}
/* 인용 배너 강조도 붓글씨 */
.quote-band blockquote em {
  font-family: var(--hangul-brush); font-weight: 400;
  font-size: 1.3em; line-height: 1;
  display: inline-block; transform: rotate(-1.2deg);
}
/* 인용부호를 붓 획으로 */
.quote-band::before { font-family: var(--brush); }
/* h-display 강조(em)에도 은은한 붓 기울임 */
.h-display em {
  font-family: var(--hangul-brush); font-weight: 400;
  font-size: 1.18em; line-height: 1;
  display: inline-block; transform: rotate(-1.5deg);
}
/* eyebrow 위 낙관풍 점 — 유지하되 붓체 통일 */
.footer-slogan { font-family: var(--hangul-brush); font-size: 22px; font-weight: 400; }
/* stat 숫자 단위 한자풍 */
.stat-num .unit { font-family: var(--brush); }

/* ═══════════════════════════════════════════
   동양(東洋) 레이어 — 한지 · 산수 · 매화 · 창호
   ═══════════════════════════════════════════ */

/* ── 한지(韓紙) 질감 — 전체 배경에 은은한 종이 섬유 ── */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.53 0 0 0 0 0.49 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23p)'/%3E%3C/svg%3E");
}
main, .site-header, .site-footer { position: relative; z-index: 1; }

/* ── 수묵 산수 능선 — 히어로 하단 ── */
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(90px, 14vw, 200px);
  background: url('/static/img/ink-mountains.svg') bottom center / cover no-repeat;
  pointer-events: none; z-index: 2;
  opacity: 0.9;
}

/* ── 매화 붓가지 — 인용 배너 좌하단 ── */
.quote-band::after {
  content: ''; position: absolute; left: clamp(-40px, -2vw, 0px); bottom: -20px;
  width: clamp(200px, 26vw, 380px); aspect-ratio: 420/300;
  background: url('/static/img/plum-branch.svg') center / contain no-repeat;
  pointer-events: none; opacity: 0.5;
}

/* ── 창호(窓戶) 문살 격자 — 어두운 섹션 배경 ── */
.philosophy::after, .site-footer::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.05;
  background-image:
    linear-gradient(rgba(172,215,229,0.9) 1px, transparent 1px),
    linear-gradient(90deg, rgba(172,215,229,0.9) 1px, transparent 1px),
    linear-gradient(rgba(172,215,229,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(172,215,229,0.5) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
}

/* ── 히어로 낙관 도장 — 붉은 전각 '高手' ── */
.hero-seal {
  position: absolute; z-index: 3;
  right: clamp(20px, 7vw, 130px); bottom: clamp(120px, 18vh, 210px);
  width: 74px; height: 74px; padding: 6px;
  display: flex; align-items: center; justify-content: center;
  background: var(--seal); color: #f6ece8;
  font-family: var(--brush); font-weight: 700; font-size: 26px; line-height: 1.05;
  writing-mode: vertical-rl; letter-spacing: 0.05em;
  transform: rotate(-5deg);
  border-radius: 8px 12px 9px 11px / 11px 9px 12px 8px;
  box-shadow: inset 0 0 14px rgba(60,10,5,0.5), 3px 4px 0 rgba(10,13,15,0.35);
  filter: url(#ink-bleed);
  opacity: 0; animation: sealStamp 0.5s cubic-bezier(0.34, 1.8, 0.5, 1) 1.9s forwards;
  pointer-events: none;
}
@keyframes sealStamp {
  0% { opacity: 0; transform: rotate(-5deg) scale(2.1); }
  100% { opacity: 0.94; transform: rotate(-5deg) scale(1); }
}

/* ── 두루마리 여백 — quote-band 상하에 은은한 먹 경계 ── */
.quote-band { border-top: 1px solid rgba(16,20,23,0.1); border-bottom: 1px solid rgba(16,20,23,0.1); }

@media (max-width: 720px) {
  .hero-seal { width: 54px; height: 54px; font-size: 19px; right: 14px; bottom: 96px; }
  .quote-band::after { width: 180px; opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-seal { animation: none; opacity: 0.94; }
}

/* ═══════════════════════════════════════════
   東洋 v2 — 수묵 본문체 · 운문 · 족자 · 먹 와이프
   ═══════════════════════════════════════════ */

/* UI·폼·관리자는 산세리프 유지 (가독성/입력 편의) */
input, select, textarea, button, .admin-side, .admin-main, .admin-main table,
.mobile-menu, .gnb, .header-cta, .breadcrumb, .pill, .badge, .treat-tag,
.footer-info, .footer-legal, .footer-links { font-family: var(--sans); }
.eyebrow, .mega-label, .stat-label, .hero-eyebrow { font-family: var(--sans); }

/* ── 운문(雲紋) 구름 문양 — 밝은 섹션에 은은히 흐르는 당초 구름 ── */
.section:not(.philosophy):not(.stats-band)::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='300' viewBox='0 0 420 300'%3E%3Cg fill='none' stroke='%23acd7e5' stroke-width='1.4' stroke-linecap='round' opacity='0.33'%3E%3Cpath d='M40 80 q18 -26 44 -14 q10 -22 36 -16 q24 6 22 28 q22 2 20 22 q-2 18 -24 16 l-84 0 q-24 -2 -20 -20 q3 -13 6 -16'/%3E%3Cpath d='M250 190 q14 -20 36 -11 q8 -18 29 -13 q20 5 18 23 q18 2 16 18 q-2 15 -20 13 l-68 0 q-20 -2 -16 -16 q2 -11 5 -14'/%3E%3Cpath d='M300 60 q11 -15 27 -8 q6 -13 22 -10 q15 4 14 17 q13 1 12 13 q-1 11 -15 10 l-51 0 q-15 -1 -12 -12 q2 -8 3 -10'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 420px 300px;
}
.section { position: relative; }
.section > .section-inner, .section > .section-narrow { position: relative; z-index: 1; }

/* ── 족자(簇子) 펼침 — quote-band 스크롤 시 두루마리처럼 ── */
.quote-band {
  clip-path: inset(46% 0 46% 0);
  transition: clip-path 1.3s cubic-bezier(0.65, 0, 0.2, 1);
}
.quote-band.unrolled { clip-path: inset(0 0 0 0); }
/* 족자 봉(축) — 펼쳐질 때 위아래 나무 축 느낌의 진한 경계 */
.quote-band::before { transition: opacity 0.9s ease 0.5s; opacity: 0; }
.quote-band.unrolled::before { opacity: 1; }
.quote-band blockquote, .quote-band cite { transition: opacity 0.8s ease 0.55s, transform 0.8s var(--ease) 0.55s; opacity: 0; transform: translateY(14px); }
.quote-band.unrolled blockquote, .quote-band.unrolled cite { opacity: 1; transform: none; }
.quote-band { border-top: 3px double rgba(16,20,23,0.28); border-bottom: 3px double rgba(16,20,23,0.28); }

/* ── 먹 와이프 페이지 전환 ── */
.ink-wipe {
  position: fixed; inset: -12%; z-index: 9998; pointer-events: none;
  background: radial-gradient(140% 90% at 50% 50%, #101417 62%, rgba(16,20,23,0.92) 78%, rgba(16,20,23,0) 100%);
  filter: url(#ink-bleed);
  transform: translateX(-118%) skewX(-7deg);
}
.ink-wipe.in { animation: inkWipeIn 0.5s cubic-bezier(0.7, 0, 0.3, 1) forwards; }
@keyframes inkWipeIn {
  from { transform: translateX(-118%) skewX(-7deg); }
  to   { transform: translateX(0) skewX(0); }
}
/* 페이지 도착 시 먹이 걷히는 연출 */
body.ink-arrive::after {
  content: ''; position: fixed; inset: -12%; z-index: 9998; pointer-events: none;
  background: radial-gradient(140% 90% at 50% 50%, #101417 62%, rgba(16,20,23,0.92) 78%, rgba(16,20,23,0) 100%);
  filter: url(#ink-bleed);
  animation: inkWipeOut 0.6s cubic-bezier(0.7, 0, 0.3, 1) 0.05s forwards;
}
@keyframes inkWipeOut {
  from { transform: translateX(0) skewX(0); }
  to   { transform: translateX(118%) skewX(7deg); }
}

@media (prefers-reduced-motion: reduce) {
  .quote-band { clip-path: none; }
  .quote-band blockquote, .quote-band cite, .quote-band::before { opacity: 1; transform: none; transition: none; }
  .ink-wipe, body.ink-arrive::after { display: none; }
}
