/* ============================================
   이음치과의원 — CINEMATIC DESIGN SYSTEM v6
   Clean White / Deep Navy — Trust & Elegance
   Final Polish: Movie-Trailer Tone Unity
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@200;300;400;500;600;700;800;900&family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

/* Font loading optimization — prevent CLS */
.fonts-loading {
  opacity: 0;
}
.fonts-loaded {
  opacity: 1;
  transition: opacity 0.3s ease;
}

:root {
  /* === 이음치과 BRAND PALETTE — 로고 매칭 ===
     로고 컬러: Deep Navy #00306A · Mint Teal #4ABCBD
     ============================================ */
  --bg: #FFFFFF;
  --bg-2: #F5F8FB;            /* 살짝 푸른 흰색 (로고와 어울리는 톤) */
  --surface: #FFFFFF;
  --surface-2: #EEF3F8;
  --white: #0A1F3D;            /* 본문 텍스트 = 로고 네이비 약간 더 진하게 */
  --white-dim: rgba(10, 31, 61, 0.7);
  --white-muted: rgba(10, 31, 61, 0.42);
  --white-ghost: rgba(10, 31, 61, 0.08);

  /* === 액센트: 로고 민트 틸 (--gold 변수명 유지하되 컬러는 민트로) ===
     기존 변수명을 그대로 두어 281곳 사용처를 모두 자동 적용 */
  --gold: #4ABCBD;             /* 로고 무한대 컬러 = 민트 틸 */
  --gold-bright: #6FD0D1;      /* 밝은 민트 (호버/하이라이트) */
  --gold-dim: rgba(74, 188, 189, 0.1);

  /* === 메인 네이비 = 로고 메인 컬러 === */
  --navy: #00306A;             /* 로고 "이음" + 치아 외곽선 */
  --navy-light: #1A4A8C;       /* 그라데이션·서브 네이비 */

  /* === CTA = 로고 네이비 베이스 === */
  --cta: #00306A;
  --cta-bright: #1A4A8C;
  --cta-dim: rgba(0, 48, 106, 0.06);

  /* === 별도 보조 컬러 (브랜드 강조용) === */
  --brand-mint: #4ABCBD;       /* 로고 민트 — alias */
  --brand-mint-deep: #2E9799;  /* 깊은 민트 */
  --brand-navy: #00306A;       /* 로고 네이비 — alias */
  --brand-navy-deep: #00204A;  /* 더 깊은 네이비 */

  /* === Dark section variables (로고 네이비 기반) === */
  --dark-bg: #0A2447;          /* 로고 네이비보다 약간 진한 배경 */
  --dark-surface: #143560;
  --dark-text: #F5F8FB;
  --dark-text-dim: rgba(245, 248, 251, 0.78);
  --dark-text-muted: rgba(245, 248, 251, 0.42);
  --dark-border: rgba(245, 248, 251, 0.12);

  --font-kr: 'Noto Sans KR', sans-serif;
  --font-en: 'DM Serif Display', serif;
  --font-ui: 'Inter', sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-cinematic: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Cinematic rhythm — vertical spacing */
  --section-rhythm: clamp(6rem, 14vw, 14rem);
  --chapter-rhythm: clamp(4rem, 8vw, 8rem);

  --shadow-sm: 0 1px 3px rgba(0, 48, 106, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 48, 106, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 48, 106, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 48, 106, 0.16);

  /* === GLASSMORPHISM TOKENS (BOLD) === */
  --glass-bg: rgba(255, 255, 255, 0.35);
  --glass-bg-hover: rgba(255, 255, 255, 0.52);
  --glass-bg-strong: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-border-hover: rgba(255, 255, 255, 0.8);
  --glass-blur: blur(20px) saturate(1.8);
  --glass-blur-strong: blur(32px) saturate(2.0);
  --glass-shadow:
    0 8px 32px rgba(15, 27, 45, 0.1),
    0 2px 8px rgba(15, 27, 45, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.7),
    inset 0 -1px 0 rgba(255,255,255,0.15);
  --glass-shadow-hover:
    0 20px 60px rgba(15, 27, 45, 0.14),
    0 4px 12px rgba(15, 27, 45, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(255,255,255,0.2);
  --glass-ring: 0 0 0 1px rgba(255, 255, 255, 0.4);
  --glass-highlight: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.15) 100%);

  /* Dark glass for navy sections */
  --glass-dark-bg: rgba(15, 27, 45, 0.35);
  --glass-dark-bg-hover: rgba(15, 27, 45, 0.5);
  --glass-dark-border: rgba(245, 247, 250, 0.18);
  --glass-dark-border-hover: rgba(245, 247, 250, 0.3);
  --glass-dark-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 -1px 0 rgba(255,255,255,0.03);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-kr);
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Cursor — keep default visible, custom dot is decorative only */
@media (hover: hover) and (pointer: fine) {
  body { cursor: auto; }
}

a { text-decoration: none; color: inherit; }

/* === ACCESSIBILITY — Focus Visible === */
:focus-visible {
  outline: 2px solid var(--cta-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip to main content link */
.skip-link {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-bg);
  color: var(--dark-text);
  padding: 0.75rem 1.5rem;
  z-index: 11000;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 0;
}

::selection {
  background: var(--gold);
  color: var(--bg);
}

/* === CINEMATIC SECTION TRANSITIONS === */
/* Unified entrance for all major sections — trailer rhythm */
.section {
  position: relative;
}
.section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(27,58,92,0.06) 30%, rgba(27,58,92,0.06) 70%, transparent 100%);
  pointer-events: none;
}
.dark-section::after,
.contact-big::after,
.director-full::after {
  background: linear-gradient(90deg, transparent 0%, rgba(245,247,250,0.06) 30%, rgba(245,247,250,0.06) 70%, transparent 100%);
}

/* === DARK SECTION OVERRIDES === */
.dark-section {
  background: var(--dark-bg) !important;
  color: var(--dark-text) !important;
}
.dark-section .section-label { color: var(--cta-bright) !important; }
.dark-section .section-label::before { background: linear-gradient(90deg, var(--cta), var(--cta-bright)) !important; }
.dark-section h2, .dark-section h3, .dark-section h4 { color: var(--dark-text) !important; }
.dark-section p { color: var(--dark-text-dim) !important; }
.dark-section .card-num, .dark-section .equip-num, .dark-section .h-card-num { color: var(--cta-bright) !important; }

/* === CUSTOM CURSOR (Morphing + Labels) === */
.cursor {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--navy);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  mix-blend-mode: difference;
  top: 0;
  left: 0;
  will-change: transform;
}

.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(27, 58, 92, 0.25);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  top: 0;
  left: 0;
  will-change: transform;
  transition: width 0.4s var(--ease-expo), height 0.4s var(--ease-expo), border-color 0.3s, background 0.3s, border-radius 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cursor-follower.hover {
  border-color: var(--gold);
  background: rgba(27, 58, 92, 0.06);
}

.cursor-follower.link-hover {
  border-color: var(--gold);
  background: rgba(27, 58, 92, 0.04);
}

.cursor-follower.drag-mode,
.cursor-follower.text-mode {
  border-color: var(--gold);
  background: rgba(15, 27, 45, 0.9);
  border-radius: 50%;
}

.cursor-label {
  font-family: var(--font-en);
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.2em;
  white-space: nowrap;
}

/* Card shine overlay */
.card-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  transition: background 0.2s ease;
}

/* === GRAIN TEXTURE — Film-grade === */
.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

/* Global cinematic grain — always-on subtle film look */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.018'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

/* === NAV SCROLL PROGRESS === */
.nav-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--cta-bright));
  width: 0%;
  transition: width 0.1s linear;
}

/* === NAVIGATION === */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
  transition: padding 0.4s var(--ease), backdrop-filter 0.4s, background 0.4s;
}

/* Hero state: transparent nav with light text */
#nav:not(.scrolled) {
  background: transparent;
}
#nav:not(.scrolled) .nav-brand,
#nav:not(.scrolled) .nav-booking,
#nav:not(.scrolled) .nav-menu-btn {
  color: rgba(245, 247, 250, 0.9);
}
#nav:not(.scrolled) .nav-menu-btn {
  border-color: rgba(245, 247, 250, 0.2);
}

#nav.scrolled {
  padding-top: 1rem;
  padding-bottom: 1rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

#nav.scrolled .nav-brand,
#nav.scrolled .nav-booking,
#nav.scrolled .nav-menu-btn {
  color: var(--navy, #0b1a3a);
}

#nav.scrolled .nav-menu-btn {
  background: rgba(11, 26, 58, 0.04);
  border-color: rgba(15, 27, 45, 0.18);
}

#nav.scrolled .nav-menu-btn .nav-menu-line {
  background: var(--navy, #0b1a3a);
}

.nav-brand {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.08em;
  font-style: italic;
}

.nav-booking {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  color: var(--white);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(248,249,252,0.25);
  padding: 0.45rem 1.2rem;
  border-radius: 100px;
  transition: all 0.4s var(--ease);
  white-space: nowrap;
}
.nav-booking:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  transform: translateY(-1px);
}
.nav-booking svg {
  opacity: 0.8;
  transition: opacity 0.3s;
}
.nav-booking:hover svg {
  opacity: 1;
}
#nav.scrolled .nav-booking {
  color: var(--navy);
  border-color: rgba(15, 27, 45, 0.12);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#nav.scrolled .nav-booking:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* ============================================
   NAV MENU BUTTON v2 — Animated Hamburger + Label
   ============================================ */
.nav-menu-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 1.1rem 0.55rem 0.85rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(248,249,252,0.18);
  border-radius: 999px;
  color: var(--white);
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  cursor: pointer;
  overflow: hidden;
  transition:
    background 0.45s var(--ease),
    border-color 0.45s var(--ease),
    color 0.45s var(--ease),
    transform 0.35s var(--ease),
    box-shadow 0.45s var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@media (hover: hover) and (pointer: fine) {
  .nav-menu-btn { cursor: none; }
}

/* Gold sweep background (hover fill) */
.nav-menu-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold, #c9a961) 0%, #e0c287 100%);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
  z-index: 0;
  border-radius: inherit;
}
.nav-menu-btn > * { position: relative; z-index: 1; }

/* Animated Hamburger Icon */
.nav-menu-icon {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  width: 20px;
  height: 14px;
}
.nav-menu-line {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transform-origin: center;
  transition:
    width 0.4s var(--ease),
    transform 0.45s var(--ease),
    background 0.4s var(--ease),
    margin 0.4s var(--ease);
}
.nav-menu-line:nth-child(1) { width: 20px; margin-bottom: 5px; }
.nav-menu-line:nth-child(2) { width: 14px; margin-bottom: 5px; margin-left: auto; }
.nav-menu-line:nth-child(3) { width: 18px; }

/* Label typography */
.nav-menu-label {
  display: inline-block;
  padding-top: 1px;
  transition: color 0.45s var(--ease), letter-spacing 0.45s var(--ease);
}

/* Hover — desktop */
@media (hover: hover) and (pointer: fine) {
  .nav-menu-btn:hover {
    border-color: var(--gold, #c9a961);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px -8px rgba(201,169,97,0.45);
  }
  .nav-menu-btn:hover::before {
    transform: translateY(0);
  }
  .nav-menu-btn:hover .nav-menu-label {
    color: var(--navy, #0b1a3a);
    letter-spacing: 0.32em;
  }
  .nav-menu-btn:hover .nav-menu-line {
    background: var(--navy, #0b1a3a);
  }
  .nav-menu-btn:hover .nav-menu-line:nth-child(1) { width: 18px; }
  .nav-menu-btn:hover .nav-menu-line:nth-child(2) { width: 20px; margin-left: 0; }
  .nav-menu-btn:hover .nav-menu-line:nth-child(3) { width: 14px; margin-left: auto; }
}

/* Active press */
.nav-menu-btn:active {
  transform: translateY(0) scale(0.97);
}

/* Focus (a11y) */
.nav-menu-btn:focus-visible {
  outline: 2px solid var(--gold, #c9a961);
  outline-offset: 3px;
}

/* OPEN state (menu on): morph to X */
.nav-menu-btn.is-open {
  background: var(--gold, #c9a961);
  border-color: var(--gold, #c9a961);
  color: var(--navy, #0b1a3a);
}
.nav-menu-btn.is-open::before { transform: translateY(0); }
.nav-menu-btn.is-open .nav-menu-line { background: var(--navy, #0b1a3a); margin: 0; }
.nav-menu-btn.is-open .nav-menu-line:nth-child(1) {
  width: 20px;
  transform: translateY(6.5px) rotate(45deg);
}
.nav-menu-btn.is-open .nav-menu-line:nth-child(2) {
  width: 0;
  opacity: 0;
}
.nav-menu-btn.is-open .nav-menu-line:nth-child(3) {
  width: 20px;
  margin-left: 0;
  transform: translateY(-6.5px) rotate(-45deg);
}
.nav-menu-btn.is-open .nav-menu-label {
  color: var(--navy, #0b1a3a);
}

/* === FULL SCREEN MENU === */
.full-menu {
  position: fixed;
  inset: 0;
  z-index: 998;
  pointer-events: none;
  clip-path: circle(0% at calc(100% - 4rem) 2rem);
  transition: clip-path 0.8s var(--ease-expo);
  background: linear-gradient(135deg, #0F1B2D 0%, #162744 50%, #1B3254 100%);
}

.full-menu.open {
  pointer-events: auto;
  clip-path: circle(150% at calc(100% - 4rem) 2rem);
}

.menu-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0F1B2D 0%, #162744 100%);
  opacity: 0.98;
}

.menu-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem clamp(2rem, 8vw, 8rem) 3rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.menu-link {
  font-family: var(--font-kr);
  font-size: clamp(1.8rem, 4.5vw, 3.8rem);
  font-weight: 200;
  color: var(--dark-text);
  padding: 0.2rem 0;
  display: block;
  overflow: hidden;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease), color 0.3s;
  position: relative;
}

.full-menu.open .menu-link {
  transform: translateY(0);
  opacity: 1;
}

.full-menu.open .menu-link:nth-child(1) { transition-delay: 0.1s; }
.full-menu.open .menu-link:nth-child(2) { transition-delay: 0.15s; }
.full-menu.open .menu-link:nth-child(3) { transition-delay: 0.2s; }
.full-menu.open .menu-link:nth-child(4) { transition-delay: 0.25s; }
.full-menu.open .menu-link:nth-child(5) { transition-delay: 0.3s; }
.full-menu.open .menu-link:nth-child(6) { transition-delay: 0.35s; }

.menu-link::after {
  content: attr(data-index);
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-en);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.3s;
}

.menu-link:hover::after {
  opacity: 1;
}

.menu-link:hover {
  color: var(--cta-bright);
}

.menu-link span {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}

.menu-link:hover span {
  transform: translateX(2rem);
}

.menu-footer {
  margin-top: auto;
  flex-shrink: 0;
  display: flex;
  gap: 4rem;
  border-top: 1px solid var(--dark-border);
  padding-top: 1.5rem;
}

.menu-label {
  display: block;
  font-family: var(--font-en);
  font-size: 0.6rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

.menu-footer-col p {
  font-size: 0.82rem;
  color: var(--dark-text-dim);
  line-height: 1.6;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark-bg);
  color: var(--dark-text);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--dark-bg);
  overflow: hidden;
}

/* ─── Hero Scan Line ─── */
.hero-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 20%, var(--cta-bright) 50%, var(--gold) 80%, transparent 100%);
  opacity: 0.3;
  z-index: 4;
  pointer-events: none;
  top: 50%;
  animation: scanMove 6s ease-in-out infinite;
}

@keyframes scanMove {
  0%, 100% { top: 20%; opacity: 0; }
  10% { opacity: 0.3; }
  50% { top: 80%; opacity: 0.15; }
  90% { opacity: 0.3; }
}

/* ─── Warm Ambient Background ─── */
.hero-mesh {
  position: absolute;
  inset: -15%;
  width: 130%;
  height: 130%;
  filter: blur(140px) saturate(1.2);
  opacity: 0.4;
  will-change: transform;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.mesh-blob-1 {
  width: 55%;
  height: 55%;
  top: 5%;
  left: -5%;
  background: radial-gradient(circle at 40% 40%, #1B3A5C 0%, #0F2440 45%, transparent 72%);
  animation: blobFloat1 24s ease-in-out infinite;
}

.mesh-blob-2 {
  width: 48%;
  height: 52%;
  top: -10%;
  right: -5%;
  background: radial-gradient(circle at 55% 45%, #2A5A8F 0%, #1B4570 38%, transparent 70%);
  animation: blobFloat2 30s ease-in-out infinite;
}

.mesh-blob-3 {
  width: 45%;
  height: 42%;
  bottom: 0%;
  left: 15%;
  background: radial-gradient(circle at 50% 55%, #3A7AAA 0%, #2A5A8F 25%, #1B3A5C 45%, transparent 68%);
  animation: blobFloat3 26s ease-in-out infinite;
}

.mesh-blob-4 {
  width: 42%;
  height: 42%;
  bottom: 8%;
  right: 8%;
  background: radial-gradient(circle at 55% 45%, #0D1A2A 0%, #071020 45%, transparent 72%);
  animation: blobFloat4 32s ease-in-out infinite;
}

.mesh-blob-5 {
  width: 32%;
  height: 32%;
  top: 38%;
  left: 42%;
  background: radial-gradient(circle at 50% 50%, #4A8ABF 0%, #2A5A8F 30%, transparent 65%);
  animation: blobFloat5 20s ease-in-out infinite;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(5%, 6%) scale(1.06); }
  50% { transform: translate(-3%, 10%) scale(0.96); }
  75% { transform: translate(7%, -2%) scale(1.04); }
}

@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-6%, 4%) scale(1.08); }
  50% { transform: translate(4%, -5%) scale(0.94); }
  75% { transform: translate(-2%, 8%) scale(1.04); }
}

@keyframes blobFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(5%, -4%) scale(0.95); }
  50% { transform: translate(-5%, -6%) scale(1.1); }
  75% { transform: translate(3%, 5%) scale(0.98); }
}

@keyframes blobFloat4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-4%, -5%) scale(1.05); }
  50% { transform: translate(6%, 3%) scale(0.95); }
  75% { transform: translate(-5%, 6%) scale(1.02); }
}

@keyframes blobFloat5 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(8%, 5%) scale(1.12); }
  66% { transform: translate(-6%, -4%) scale(0.92); }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(2rem, 8vw, 8rem);
  will-change: transform, opacity;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ─── Hero Fine Line (top gold accent) ─── */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--cta) 30%, var(--cta-bright) 50%, var(--cta) 70%, transparent 100%);
  opacity: 0.2;
  z-index: 5;
}

/* ─── Hero Side Decorations ─── */
.hero::after {
  content: 'IEUM DENTAL CLINIC — EST.2025';
  position: absolute;
  right: clamp(1.5rem, 3vw, 3rem);
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  font-family: var(--font-ui);
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  color: rgba(245, 247, 250, 0.15);
  white-space: nowrap;
  z-index: 3;
  pointer-events: none;
}

.hero-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  opacity: 0;
  animation: slideUpFade 0.8s var(--ease) 0.2s forwards;
}

.tag-line {
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, var(--cta), var(--cta-bright));
  animation: expandLine 1.2s var(--ease) 0.4s both;
}

@keyframes expandLine {
  from { width: 0; opacity: 0; }
  to { width: 50px; opacity: 1; }
}

.tag-text {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--cta-bright);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero-title {
  margin-bottom: 4rem;
  text-align: center;
  /* Cinematic text shadow for depth on dark bg */
  text-shadow: 0 2px 40px rgba(0,0,0,0.15);
}

.title-line {
  display: block;
  overflow: hidden;
}

.title-word {
  display: inline-block;
  font-size: clamp(3.5rem, 11vw, 8.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--dark-text);
  transform: translateY(115%);
  animation: wordReveal 1.2s var(--ease-expo) forwards;
  will-change: transform;
}

.title-line:nth-child(1) .title-word { animation-delay: 0.3s; }
.title-line:nth-child(2) .title-word { animation-delay: 0.5s; }
.title-line:nth-child(3) .title-word { animation-delay: 0.7s; }

.title-line.accent .title-word {
  -webkit-text-stroke: 1.5px var(--cta-bright);
  color: transparent;
  position: relative;
  font-style: italic;
  text-shadow: none;
}

/* Shimmer on accent text */
.title-line.accent .title-word::after {
  content: '두려운 이유';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(42, 90, 143, 0.9) 45%, rgba(27, 58, 92, 0.9) 55%, transparent 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0;
  animation: shimmer 4s ease-in-out infinite;
  animation-delay: 2s;
  opacity: 0.8;
  font-style: italic;
}

@keyframes shimmer {
  0%, 100% { background-position: -250% 0; }
  50% { background-position: 250% 0; }
}

@keyframes wordReveal {
  to { transform: translateY(0); }
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: slideUpFade 0.8s var(--ease) 1s forwards;
}

.hero-scroll-hint {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.scroll-circle {
  width: 42px;
  height: 42px;
  animation: rotate 8s linear infinite;
}

.scroll-circle svg { width: 100%; height: 100%; }

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.hero-scroll-hint span {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--dark-text-muted);
}

.hero-sub {
  font-size: 0.9rem;
  color: var(--dark-text-dim);
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* === HERO CTA BUTTON === */
.hero-cta-wrap {
  margin-top: 3.5rem;
  opacity: 0;
  animation: slideUpFade 0.8s var(--ease) 1.4s forwards;
  text-align: center;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.2rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(245, 247, 250, 0.18);
  border-radius: 100px;
  color: rgba(245, 247, 250, 0.9);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.hero-cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42, 90, 143, 0.3), rgba(58, 122, 170, 0.15));
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease);
}

.hero-cta-btn:hover::before {
  transform: translateX(0);
}

.hero-cta-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(245, 247, 250, 0.35);
  color: #fff;
  box-shadow: 0 8px 32px rgba(42, 90, 143, 0.2), inset 0 1px 0 rgba(255,255,255,0.15);
}

.hero-cta-btn span {
  position: relative;
  z-index: 1;
}

.hero-cta-btn svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s var(--ease);
}

.hero-cta-btn:hover svg {
  transform: translateX(4px);
}

/* ─── Hero Stats Counter ─── */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 4rem;
  opacity: 0;
  animation: slideUpFade 0.8s var(--ease) 1.2s forwards;
}

.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  padding: 0 2rem;
  position: relative;
}

.hero-stat:first-child {
  padding-left: 0;
}

.hero-stat-num {
  font-family: var(--font-en);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-stat-unit {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(42, 90, 143, 0.8);
}

.hero-stat-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--white-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.4rem;
  font-family: var(--font-ui);
}

.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, transparent, var(--white-ghost), transparent);
}

/* ─── Scroll Line Indicator ─── */
.scroll-line-wrap {
  width: 1px;
  height: 50px;
  background: var(--white-ghost);
  position: relative;
  overflow: hidden;
}

.scroll-line {
  width: 100%;
  height: 100%;
  background: var(--cta-bright);
  transform: scaleY(0);
  transform-origin: top;
  animation: scrollLineAnim 2s ease-in-out infinite;
}

@keyframes scrollLineAnim {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* === MARQUEE BAND === */
.marquee-band {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(15, 27, 45, 0.06);
  border-bottom: 1px solid rgba(15, 27, 45, 0.06);
  overflow: hidden;
  background: var(--bg);
}

.marquee-band.dark {
  background: var(--bg-2);
  border-color: rgba(15, 27, 45, 0.04);
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.marquee-track.reverse {
  animation-direction: reverse;
}

/* Cinematic marquee typography */
.marquee-track span {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: rgba(15, 27, 45, 0.18);
  padding-right: 0;
  flex-shrink: 0;
  text-transform: uppercase;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}

/* === CONTAINER === */
.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(2rem, 6vw, 6rem);
}

/* === SECTION LABEL === */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--cta), var(--cta-bright));
}

.section-label.light {
  color: var(--cta-bright);
}

/* ═══════════════════════════════════════════════════════
   STORY NARRATIVE — CINEMATIC ULTRA v2
   Directed by: Avatar-tier Visual Design
   Bioluminescence · Depth-of-Field · Volumetric Light
   Parallax Layers · Anamorphic Flares · Fog Volumes
   ═══════════════════════════════════════════════════════ */

/* --- Hero cinematic layers --- */
.story-hero {
  min-height: 100vh; min-height: 100dvh;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Canvas particle system generated by JS */
#heroCanvas {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
}

/* CSS-only particle fallback */
.hero-particles {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 15%, rgba(255,255,255,0.5) 50%, transparent 50%),
    radial-gradient(1px 1px at 22% 42%, rgba(255,255,255,0.3) 50%, transparent 50%),
    radial-gradient(2px 2px at 38% 8%, rgba(255,255,255,0.4) 50%, transparent 50%),
    radial-gradient(1px 1px at 52% 72%, rgba(255,255,255,0.25) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 65% 28%, rgba(255,255,255,0.35) 50%, transparent 50%),
    radial-gradient(1px 1px at 78% 58%, rgba(255,255,255,0.2) 50%, transparent 50%),
    radial-gradient(2px 2px at 90% 85%, rgba(42,90,143,0.4) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 15% 75%, rgba(58,122,170,0.35) 50%, transparent 50%),
    radial-gradient(1px 1px at 45% 92%, rgba(255,255,255,0.15) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 85% 12%, rgba(42,90,143,0.3) 50%, transparent 50%);
  animation: particleDrift 60s linear infinite;
}
@keyframes particleDrift {
  0%   { transform: translate3d(0,0,0) rotate(0deg); }
  25%  { transform: translate3d(12px,-20px,0) rotate(0.5deg); }
  50%  { transform: translate3d(-8px,-35px,0) rotate(0deg); }
  75%  { transform: translate3d(15px,-15px,0) rotate(-0.3deg); }
  100% { transform: translate3d(0,0,0) rotate(0deg); }
}

/* Anamorphic light leaks (lens flare) */
.hero-light-leak {
  position: absolute; pointer-events: none; z-index: 3;
  filter: blur(100px);
  mix-blend-mode: screen;
  will-change: transform, opacity;
}
.hero-light-leak-1 {
  width: 50vw; height: 50vw; top: -15%; right: -15%;
  background: radial-gradient(ellipse 60% 40% at 40% 50%, rgba(42,90,143,0.3) 0%, rgba(58,122,170,0.1) 40%, transparent 70%);
  animation: lightLeak1 16s ease-in-out infinite alternate;
}
.hero-light-leak-2 {
  width: 45vw; height: 45vw; bottom: -20%; left: -10%;
  background: radial-gradient(ellipse 50% 60% at 60% 40%, rgba(58,122,170,0.2) 0%, rgba(27,58,92,0.08) 50%, transparent 70%);
  animation: lightLeak2 20s ease-in-out infinite alternate;
}
@keyframes lightLeak1 {
  0%   { opacity: 0.3; transform: scale(1) translate(0,0) rotate(0deg); }
  50%  { opacity: 0.7; transform: scale(1.15) translate(3%,-4%) rotate(2deg); }
  100% { opacity: 0.5; transform: scale(1.3) translate(-2%,3%) rotate(-1deg); }
}
@keyframes lightLeak2 {
  0%   { opacity: 0.2; transform: scale(1) translate(0,0) rotate(0deg); }
  50%  { opacity: 0.5; transform: scale(1.2) translate(-4%,2%) rotate(-2deg); }
  100% { opacity: 0.35; transform: scale(1.1) translate(3%,-3%) rotate(1deg); }
}

/* Cinematic anamorphic horizontal flare */
.hero-anamorphic {
  position: absolute; top: 45%; left: -10%; width: 120%; height: 2px; z-index: 4;
  pointer-events: none;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(42,90,143,0.0) 10%,
    rgba(42,90,143,0.15) 30%,
    rgba(58,122,170,0.3) 45%,
    rgba(74,138,191,0.4) 50%,
    rgba(58,122,170,0.3) 55%,
    rgba(42,90,143,0.15) 70%,
    rgba(42,90,143,0.0) 90%,
    transparent 100%);
  filter: blur(1px);
  opacity: 0;
  animation: anamorphicFlare 8s ease-in-out 1.5s forwards;
}
@keyframes anamorphicFlare {
  0%   { opacity: 0; transform: scaleX(0.3); }
  40%  { opacity: 0.6; }
  100% { opacity: 0.35; transform: scaleX(1); }
}

/* Deep cinematic vignette */
.hero-vignette {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(ellipse 65% 55% at 50% 45%, transparent 0%, rgba(10,22,40,0.3) 50%, rgba(10,22,40,0.7) 100%);
}

/* Depth-of-field blur layer */
.hero-depth-blur {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 30%, rgba(10,22,40,0.15) 100%);
  backdrop-filter: blur(0px);
}

/* --- Story narrative wrapper --- */
.story-narrative {
  position: relative; background: var(--bg); overflow: hidden;
}

/* Cinematic ambient glow — dual-layer with color shift */
.story-ambient-glow {
  position: fixed; top: 50%; left: 50%;
  width: 80vw; height: 80vw; max-width: 1000px; max-height: 1000px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(27,58,92,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 40% 60%, rgba(42,90,143,0.04) 0%, transparent 60%);
  filter: blur(80px);
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.16,1,0.3,1);
}
.story-narrative.in-view .story-ambient-glow { opacity: 1; }

/* Secondary ambient pulse */
.story-ambient-pulse {
  position: fixed; top: 50%; left: 50%;
  width: 40vw; height: 40vw; max-width: 500px; max-height: 500px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(42,90,143,0.04) 0%, transparent 60%);
  filter: blur(40px);
  opacity: 0;
  animation: ambientPulse 6s ease-in-out infinite alternate;
}
.story-narrative.in-view .story-ambient-pulse { opacity: 1; }
@keyframes ambientPulse {
  0%   { transform: translate(-50%, -50%) scale(0.8); }
  100% { transform: translate(-50%, -50%) scale(1.3); }
}

/* --- Chapter structure --- */
.story-chapter {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; overflow: hidden;
  --chapter-darkness: 0;
}

.chapter-bg-fx {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}

/* Chapter numbers — giant cinematic watermark with parallax */
.story-chapter-num {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-en); font-size: clamp(10rem, 25vw, 22rem);
  font-weight: 800; line-height: 1;
  background: linear-gradient(180deg, rgba(15,27,45,0.04) 0%, rgba(15,27,45,0.01) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none; z-index: 0;
  user-select: none;
  will-change: transform;
}

/* --- Chapter orbs (volumetric ambient light per chapter) --- */
.chapter-orb {
  position: absolute; border-radius: 50%;
  filter: blur(120px);
  opacity: 0;
  transition: opacity 2s cubic-bezier(0.16,1,0.3,1);
  will-change: transform, opacity;
}
.story-chapter.in-view .chapter-orb { opacity: 1; }

.chapter-orb-1 {
  width: 60vw; height: 60vw; top: 5%; right: -20%;
  background: radial-gradient(circle, rgba(27,58,92,0.1) 0%, rgba(42,90,143,0.04) 40%, transparent 70%);
}
.chapter-orb-2 {
  width: 50vw; height: 50vw; bottom: -15%; left: -15%;
  background: radial-gradient(circle, rgba(42,90,143,0.08) 0%, rgba(27,58,92,0.03) 45%, transparent 70%);
}

/* ═══ CINEMATIC BLACKOUT OVERLAY — Dark-to-Light Transition ═══ */
/* Full-screen overlay that creates the cinematic darkness → light reveal */
.blackout-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  background: radial-gradient(ellipse 130% 130% at 50% 45%,
    #010408 0%,
    #030810 20%,
    #060E1A 45%,
    #0A1628 70%,
    #0F1B2D 100%);
  opacity: 0;
  will-change: opacity;
  transition: none; /* GSAP controls this */
}

/* Subtle dust particles floating in the blackout — denser for depth */
.blackout-particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 15%, rgba(42,90,143,0.35) 50%, transparent 50%),
    radial-gradient(1px 1px at 22% 42%, rgba(58,122,170,0.25) 50%, transparent 50%),
    radial-gradient(2px 2px at 35% 68%, rgba(74,138,191,0.3) 50%, transparent 50%),
    radial-gradient(1px 1px at 48% 20%, rgba(42,90,143,0.2) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 62% 52%, rgba(58,122,170,0.28) 50%, transparent 50%),
    radial-gradient(1px 1px at 78% 38%, rgba(42,90,143,0.18) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 85% 72%, rgba(74,138,191,0.22) 50%, transparent 50%),
    radial-gradient(1px 1px at 15% 88%, rgba(58,122,170,0.15) 50%, transparent 50%),
    radial-gradient(2px 2px at 92% 12%, rgba(42,90,143,0.2) 50%, transparent 50%);
  animation: blackoutParticleDrift 20s linear infinite;
  opacity: 0.7;
}

@keyframes blackoutParticleDrift {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(-8px, -12px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* Light burst flash that appears when blackout lifts — cinematic god-ray */
.blackout-overlay::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250vw;
  height: 250vh;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(ellipse 45% 40% at 50% 45%,
    rgba(255,255,255,0.45) 0%,
    rgba(200,220,245,0.25) 15%,
    rgba(42,90,143,0.15) 35%,
    rgba(58,122,170,0.06) 55%,
    transparent 75%);
  opacity: 0;
  transition: none; /* GSAP controls this */
}

.blackout-overlay.light-burst::after {
  animation: lightBurstFlash 2.4s cubic-bezier(0.16,1,0.3,1) forwards;
}

@keyframes lightBurstFlash {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 0; filter: blur(20px); }
  15%  { transform: translate(-50%, -50%) scale(0.3); opacity: 0.8; filter: blur(10px); }
  35%  { transform: translate(-50%, -50%) scale(0.8); opacity: 1; filter: blur(4px); }
  60%  { transform: translate(-50%, -50%) scale(1.4); opacity: 0.5; filter: blur(0px); }
  100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; filter: blur(0px); }
}

/* Secondary light ring — cinematic flare */
.blackout-light-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  transform: translate(-50%, -50%) scale(0);
  border: 1px solid rgba(42,90,143,0.2);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 60px rgba(42,90,143,0.1), inset 0 0 60px rgba(42,90,143,0.05);
}

.blackout-overlay.light-burst .blackout-light-ring {
  animation: blackoutRingExpand 2.2s var(--ease-expo) 0.1s forwards;
}

@keyframes blackoutRingExpand {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  30%  { opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

/* --- Dark chapter (Chapter 3: ghost/fear mood) — deeper, moodier --- */
.story-chapter-dark {
  background: linear-gradient(180deg,
    var(--bg) 0%,
    #DDE4ED 10%,
    #C8D2E0 25%,
    #B8C4D5 40%,
    #ADB9CC 50%,
    #B8C4D5 60%,
    #C8D2E0 75%,
    #DDE4ED 90%,
    var(--bg) 100%);
}

/* Multi-layer volumetric fog */
.chapter-fog {
  position: absolute; inset: -20%; width: 140%; height: 140%;
  background:
    radial-gradient(ellipse 90% 50% at 15% 45%, rgba(15,27,45,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 85% 35%, rgba(15,27,45,0.04) 0%, transparent 55%),
    radial-gradient(ellipse 100% 30% at 50% 80%, rgba(15,27,45,0.03) 0%, transparent 50%);
  animation: fogDrift 25s ease-in-out infinite alternate;
}
.chapter-fog-2 {
  position: absolute; inset: -10%; width: 120%; height: 120%;
  background:
    radial-gradient(ellipse 50% 70% at 70% 60%, rgba(15,27,45,0.03) 0%, transparent 50%),
    radial-gradient(ellipse 80% 40% at 30% 30%, rgba(15,27,45,0.02) 0%, transparent 50%);
  animation: fogDrift2 30s ease-in-out infinite alternate;
}
@keyframes fogDrift {
  0%   { transform: translate3d(0,0,0) scale(1); opacity: 0.4; }
  50%  { transform: translate3d(3%,2%,0) scale(1.03); opacity: 0.7; }
  100% { transform: translate3d(-2%,-1%,0) scale(1.06); opacity: 0.5; }
}
@keyframes fogDrift2 {
  0%   { transform: translate3d(0,0,0) scale(1) rotate(0deg); opacity: 0.3; }
  100% { transform: translate3d(-3%,3%,0) scale(1.04) rotate(0.5deg); opacity: 0.6; }
}

/* --- Turn chapter (Chapter 4: light breaks through — volumetric) --- */
.story-chapter-turn {
  background: linear-gradient(180deg, 
    #E8ECF4 0%, 
    #F0F3F9 15%,
    var(--bg-2) 40%, 
    var(--bg) 100%);
  /* Subtle warm wash after the darkness lifts */
}
.story-chapter-turn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 20%, rgba(42,90,143,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.chapter-light-burst {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 3px; height: 0; opacity: 0;
  background: linear-gradient(180deg,
    rgba(42,90,143,0.8) 0%,
    rgba(42,90,143,0.5) 20%,
    rgba(58,122,170,0.3) 50%,
    rgba(27,58,92,0.1) 80%,
    transparent 100%);
  box-shadow:
    0 0 30px rgba(42,90,143,0.3),
    0 0 60px rgba(42,90,143,0.15),
    0 0 120px rgba(42,90,143,0.08);
  transition: height 2.5s var(--ease), opacity 1.5s ease;
}
/* Volumetric cone of light */
.chapter-light-cone {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 100%; opacity: 0;
  background: linear-gradient(180deg,
    rgba(42,90,143,0.06) 0%,
    rgba(42,90,143,0.02) 40%,
    transparent 80%);
  clip-path: polygon(48% 0%, 52% 0%, 70% 100%, 30% 100%);
  transition: width 3s var(--ease), opacity 2s ease;
}
.story-chapter-turn.in-view .chapter-light-burst {
  height: 100%; opacity: 0.7;
}
.story-chapter-turn.in-view .chapter-light-cone {
  width: 100%; opacity: 1;
}

/* --- Resolve chapter (Chapter 5: clarity — god rays) --- */
.story-chapter-resolve { background: var(--bg); }
.chapter-rays {
  position: absolute; top: -20%; left: 50%; width: 140%; transform: translateX(-50%);
  height: 140%; opacity: 0;
  background:
    linear-gradient(180deg, rgba(27,58,92,0.04) 0%, transparent 30%),
    repeating-conic-gradient(from 0deg at 50% 0%, transparent 0deg, rgba(27,58,92,0.015) 1.5deg, transparent 3deg);
  animation: raysRotate 60s linear infinite;
  transition: opacity 3s ease;
}
.story-chapter-resolve.in-view .chapter-rays { opacity: 1; }
@keyframes raysRotate {
  0%   { transform: translateX(-50%) rotate(0deg); }
  100% { transform: translateX(-50%) rotate(360deg); }
}

/* Secondary rays (counter-rotating for depth) */
.chapter-rays-2 {
  position: absolute; top: -10%; left: 50%; width: 120%; transform: translateX(-50%);
  height: 120%; opacity: 0;
  background: repeating-conic-gradient(from 45deg at 50% -10%, transparent 0deg, rgba(42,90,143,0.008) 2deg, transparent 4deg);
  animation: raysRotate2 80s linear infinite;
  transition: opacity 3s ease 0.5s;
}
.story-chapter-resolve.in-view .chapter-rays-2 { opacity: 1; }
@keyframes raysRotate2 {
  0%   { transform: translateX(-50%) rotate(0deg); }
  100% { transform: translateX(-50%) rotate(-360deg); }
}

/* --- Climax chapter (Chapter 6: starfield + aurora — AVATAR LEVEL) --- */
.story-chapter-climax {
  background: linear-gradient(180deg,
    #040A14 0%,
    #060E1A 12%,
    #0A1628 28%,
    #0F1B2D 45%,
    #0D1926 60%,
    #0A1628 78%,
    #0F1B2D 100%);
}

/* Multi-layer aurora borealis */
.chapter-aurora {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 35% at 25% 15%, rgba(42,90,143,0.15) 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 75% 65%, rgba(27,58,92,0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 40%, rgba(58,122,170,0.08) 0%, transparent 45%);
  animation: auroraPulse 10s ease-in-out infinite alternate;
}
.chapter-aurora-2 {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 25% at 65% 25%, rgba(58,122,170,0.1) 0%, transparent 50%),
    radial-gradient(ellipse 40% 50% at 30% 70%, rgba(42,90,143,0.06) 0%, transparent 45%);
  animation: auroraPulse2 14s ease-in-out infinite alternate;
}
@keyframes auroraPulse {
  0%   { opacity: 0.4; transform: scale(1) rotate(0deg); }
  50%  { opacity: 0.8; transform: scale(1.05) rotate(0.5deg); }
  100% { opacity: 1; transform: scale(1.12) rotate(1deg); }
}
@keyframes auroraPulse2 {
  0%   { opacity: 0.3; transform: scale(1.1) rotate(-0.5deg) translateY(0); }
  100% { opacity: 0.7; transform: scale(1) rotate(0.5deg) translateY(-2%); }
}

/* Bioluminescent star field — multiple layers for depth */
.chapter-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 5% 12%, rgba(255,255,255,0.7) 50%, transparent 50%),
    radial-gradient(1px 1px at 18% 38%, rgba(255,255,255,0.4) 50%, transparent 50%),
    radial-gradient(2px 2px at 32% 65%, rgba(200,220,255,0.5) 50%, transparent 50%),
    radial-gradient(1px 1px at 48% 22%, rgba(255,255,255,0.35) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 62% 78%, rgba(200,220,255,0.45) 50%, transparent 50%),
    radial-gradient(1px 1px at 75% 45%, rgba(255,255,255,0.3) 50%, transparent 50%),
    radial-gradient(2px 2px at 88% 15%, rgba(200,220,255,0.55) 50%, transparent 50%),
    radial-gradient(1px 1px at 95% 88%, rgba(255,255,255,0.25) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 42% 92%, rgba(200,220,255,0.4) 50%, transparent 50%);
  animation: starTwinkle 8s ease-in-out infinite alternate;
}
.chapter-stars-deep {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(0.8px 0.8px at 12% 28%, rgba(255,255,255,0.2) 50%, transparent 50%),
    radial-gradient(0.6px 0.6px at 28% 55%, rgba(200,220,255,0.15) 50%, transparent 50%),
    radial-gradient(0.8px 0.8px at 55% 35%, rgba(255,255,255,0.18) 50%, transparent 50%),
    radial-gradient(0.6px 0.6px at 72% 72%, rgba(200,220,255,0.12) 50%, transparent 50%),
    radial-gradient(0.8px 0.8px at 82% 18%, rgba(255,255,255,0.15) 50%, transparent 50%),
    radial-gradient(0.6px 0.6px at 38% 82%, rgba(200,220,255,0.1) 50%, transparent 50%);
  animation: starTwinkleDeep 12s ease-in-out infinite alternate-reverse;
}
@keyframes starTwinkle {
  0%   { opacity: 0.2; }
  30%  { opacity: 0.6; }
  60%  { opacity: 0.4; }
  100% { opacity: 0.7; }
}
@keyframes starTwinkleDeep {
  0%   { opacity: 0.3; transform: translate3d(0,0,0); }
  100% { opacity: 0.15; transform: translate3d(2px,-1px,0); }
}

/* Bioluminescent nebula effect */
.chapter-nebula {
  position: absolute; inset: -10%;
  width: 120%; height: 120%;
  background:
    radial-gradient(ellipse 30% 25% at 25% 40%, rgba(42,90,143,0.12) 0%, transparent 50%),
    radial-gradient(ellipse 25% 20% at 70% 60%, rgba(58,122,170,0.08) 0%, transparent 50%);
  filter: blur(60px);
  animation: nebulaPulse 12s ease-in-out infinite alternate;
}
@keyframes nebulaPulse {
  0%   { transform: scale(1) rotate(0deg); opacity: 0.5; }
  100% { transform: scale(1.1) rotate(1deg); opacity: 0.8; }
}

/* --- Story line — cinematic pacing === */
.story-line {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 4rem clamp(1.5rem, 5vw, 6rem);
  position: relative; z-index: 1;
}

/* --- Story text base — cinematic typography --- */
.story-text {
  font-family: var(--font-kr);
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  font-weight: 400; line-height: 1.65; text-align: center;
  color: var(--white); max-width: min(90vw, 1100px);
  opacity: 0; transform: translateY(40px);
  will-change: transform, opacity, filter;
  transition: text-shadow 0.5s ease;
  /* Cinematic letter-spacing for readability */
  letter-spacing: 0.01em;
  /* Korean word-break safety */
  word-break: keep-all;
  overflow-wrap: break-word;
}
.story-text.visible { opacity: 1; transform: translateY(0); }

/* --- Text variants with enhanced cinematic styling --- */

/* Solo word — singular dramatic word with letter-spacing animation */
.story-text.story-solo {
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 200; letter-spacing: 0.5em;
  color: var(--white-dim);
}
.story-text.story-solo.visible {
  animation: soloExpand 2s var(--ease-expo) forwards;
}
@keyframes soloExpand {
  0%   { letter-spacing: 0.8em; opacity: 0; }
  100% { letter-spacing: 0.5em; opacity: 1; }
}

/* Question — large bold with text glow */
.story-text.story-question {
  font-size: clamp(1.8rem, 4.5vw, 3.6rem);
  font-weight: 700; color: var(--navy);
}
.story-text.story-question.visible {
  text-shadow: 0 0 60px rgba(15,27,45,0.06);
}

/* Emphasis — bold with animated underline + glow */
.story-text.story-emphasis {
  font-weight: 700; color: var(--navy);
  font-size: clamp(1.8rem, 4.5vw, 3.6rem);
  max-width: min(95vw, 1200px);
}
/* Desktop: keep emphasis on one line to preserve rhythm */
@media (min-width: 769px) {
  .story-text.story-emphasis { white-space: nowrap; }
}
.story-text.story-emphasis::after {
  content: ''; display: block; width: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--cta-bright), var(--gold));
  background-size: 200% 100%;
  margin: 1.2rem auto 0;
  transition: width 1.4s var(--ease) 0.5s;
  box-shadow: 0 0 25px rgba(27,58,92,0.35), 0 0 50px rgba(42,90,143,0.15);
  animation: underlineShimmer 3s ease-in-out infinite;
}
.story-text.story-emphasis.visible::after { width: 120px; }
@keyframes underlineShimmer {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}

/* Small — contemplative with dramatic fade */
.story-text.story-small {
  font-size: clamp(1.3rem, 3.2vw, 2.4rem);
  color: var(--white-dim); font-weight: 300;
  letter-spacing: 0.05em;
}

/* Pause — agreement snap with bold presence */
.story-text.story-pause {
  font-size: clamp(1.5rem, 3.8vw, 3rem);
  font-weight: 700; color: var(--navy); letter-spacing: 0.15em;
}

/* Whisper — ghostly, eerie, barely there — trailer tension */
.story-text.story-whisper {
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  font-weight: 200; color: var(--white-muted);
  font-style: italic; letter-spacing: 0.4em;
  text-shadow: 0 0 60px rgba(15,27,45,0.12);
}
.story-text.story-whisper.visible {
  animation: whisperBreathe 4s ease-in-out infinite alternate;
}
@keyframes whisperBreathe {
  0%   { opacity: 0.5; letter-spacing: 0.4em; }
  100% { opacity: 0.7; letter-spacing: 0.45em; }
}

/* Turn — pivotal italic moment with dramatic glow — THE moment */
.story-text.story-turn {
  font-family: var(--font-en);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 400; font-style: italic; color: var(--gold);
  text-shadow: 0 0 80px rgba(27,58,92,0.25), 0 0 160px rgba(42,90,143,0.12), 0 0 320px rgba(42,90,143,0.06);
}

/* Bridge — connector */
.story-text.story-bridge {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 300; color: var(--white-muted);
  letter-spacing: 0.25em; text-transform: uppercase;
}

/* Action — what we do, with cinematic underlines */
.story-text.story-action {
  font-size: clamp(1.8rem, 4.5vw, 3.6rem); font-weight: 600;
}
.story-text.story-action em {
  color: var(--gold); font-style: normal; position: relative;
  display: inline-block;
}
.story-text.story-action em::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--cta-bright));
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s var(--ease) 0.6s;
  box-shadow: 0 2px 20px rgba(27,58,92,0.4), 0 4px 40px rgba(42,90,143,0.15);
}
.story-text.story-action.visible em::after { transform: scaleX(1); }

/* Finale — THE payoff — MAXIMUM CINEMATIC IMPACT */
.story-text.story-finale {
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 800; line-height: 1.08;
  color: #FFFFFF; letter-spacing: -0.03em;
  text-shadow:
    0 0 30px rgba(42,90,143,0.6),
    0 0 60px rgba(42,90,143,0.4),
    0 0 120px rgba(42,90,143,0.25),
    0 0 240px rgba(27,58,92,0.15),
    0 0 480px rgba(27,58,92,0.08);
}

/* Finale glow behind text — pulsing bioluminescence */
.finale-glow {
  position: absolute; top: 50%; left: 50%;
  width: 90vw; height: 90vw; max-width: 800px; max-height: 800px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background:
    radial-gradient(circle, rgba(42,90,143,0.2) 0%, rgba(27,58,92,0.08) 30%, transparent 60%);
  filter: blur(60px); z-index: -1; pointer-events: none;
  opacity: 0;
}
.story-text.story-finale.visible ~ .finale-glow {
  opacity: 1;
  animation: finaleGlowPulse 5s ease-in-out infinite alternate;
}
@keyframes finaleGlowPulse {
  0%   { transform: translate(-50%, -50%) scale(0.85); opacity: 0.4; filter: blur(60px); }
  50%  { transform: translate(-50%, -50%) scale(1.05); opacity: 0.8; filter: blur(50px); }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; filter: blur(60px); }
}

/* Finale secondary ring glow */
.finale-ring {
  position: absolute; top: 50%; left: 50%;
  width: 50vw; height: 50vw; max-width: 500px; max-height: 500px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(42,90,143,0.15);
  border-radius: 50%; z-index: -1; pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 40px rgba(42,90,143,0.1), inset 0 0 40px rgba(42,90,143,0.05);
}
.story-text.story-finale.visible ~ .finale-ring {
  animation: finaleRingExpand 3s var(--ease-expo) forwards;
}
@keyframes finaleRingExpand {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  50%  { opacity: 0.6; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2); }
}

/* em within story */
.story-text em { font-style: normal; color: var(--gold); font-weight: 600; }

/* Climax overrides */
.story-chapter-climax .story-text { color: var(--dark-text); }
.story-chapter-climax .story-text.story-bridge { color: var(--dark-text-muted); }
.story-chapter-climax .story-text.story-finale { color: #FFFFFF; }
.story-chapter-climax .story-text em { color: rgba(120,180,230,0.9); }

/* --- Story line finale — extra breathing room --- */
.story-line-finale { min-height: 100vh; min-height: 100dvh; position: relative; }

/* ═══ CHAPTER TRANSITION LINES ═══ */
.chapter-transition {
  width: 100%; height: 1px; position: relative; overflow: visible;
  z-index: 2;
}
.chapter-transition::before {
  content: ''; position: absolute; top: 0; left: 10%; width: 80%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(27,58,92,0.08), transparent);
}

/* ═══ STORY STATS — Cinematic breathing room ═══ */
.story-stats {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(42, 90, 143, 0.06) 0%, transparent 60%),
    linear-gradient(135deg, #eef2f7 0%, #e4ecf5 50%, #f0eef2 100%);
  border-top: none;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}
.story-stats::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 50%, rgba(42,90,143,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.story-stats-inner {
  display: flex; justify-content: center; align-items: center; gap: 4rem;
  position: relative; z-index: 1;
}

/* ═══════════════════════════════════════════
   HERO SIGNATURE — 숫자 대신 브랜드 아이덴티티
   (hero 하단 작은 시그니처 라인)
   ═══════════════════════════════════════════ */
.hero-signature {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.9rem 1.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-top: 2rem;
}
.hero-signature-ko {
  font-family: var(--font-serif, 'Noto Serif KR', serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
}
.hero-signature-divider {
  width: 1px;
  height: 14px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(212, 175, 55, 0.6) 50%,
    transparent 100%);
}
.hero-signature-en {
  font-family: var(--font-en, 'Inter', sans-serif);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
@media (max-width: 640px) {
  .hero-signature {
    padding: 0.7rem 1.2rem;
    gap: 0.85rem;
    margin-top: 1.5rem;
  }
  .hero-signature-ko { font-size: 1rem; }
  .hero-signature-en { font-size: 0.62rem; letter-spacing: 0.18em; }
}

/* ═══════════════════════════════════════════
   STORY BRAND — 숫자 대신 정체성 (ACT 3 교체)
   대형 브랜드 스테이트먼트 섹션
   ═══════════════════════════════════════════ */
.story-brand {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(42, 90, 143, 0.06) 0%, transparent 65%),
    linear-gradient(180deg, #0a1220 0%, #0d1830 100%);
  position: relative;
  overflow: hidden;
}
.story-brand::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.2) 30%,
    rgba(212, 175, 55, 0.4) 50%,
    rgba(212, 175, 55, 0.2) 70%,
    transparent 100%);
}
.story-brand::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.15) 50%,
    transparent 100%);
}

.story-brand-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.story-brand-kicker {
  font-family: var(--font-en, 'Inter', sans-serif);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold, #d4af37);
  opacity: 0.85;
}
.story-brand-name {
  font-family: var(--font-serif, 'Noto Serif KR', serif);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 40px rgba(212, 175, 55, 0.15);
}
.story-brand-divider {
  display: block;
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.8) 50%,
    transparent 100%);
  margin: 0.5rem 0;
}
.story-brand-tagline {
  font-family: var(--font-serif, 'Noto Serif KR', serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  max-width: 560px;
  word-break: keep-all;
}
.story-brand-meta {
  font-family: var(--font-en, 'Inter', sans-serif);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .story-brand { padding: 4rem 0; }
  .story-brand-inner { gap: 1.1rem; padding: 0 1.25rem; }
  .story-brand-kicker { font-size: 0.68rem; letter-spacing: 0.22em; }
  .story-brand-name { font-size: clamp(2.8rem, 14vw, 4rem); }
  .story-brand-divider { width: 48px; }
  .story-brand-tagline { font-size: 1rem; }
  .story-brand-meta { font-size: 0.65rem; letter-spacing: 0.16em; }
}

/* ═══ STORY PILLARS ═══ */
.story-pillars {
  padding: var(--section-rhythm) 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(42, 90, 143, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(58, 122, 170, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(180, 140, 200, 0.04) 0%, transparent 50%),
    linear-gradient(135deg, #e8edf5 0%, #dce4f0 25%, #f0e8e4 50%, #e4ecf5 75%, #eee8f2 100%);
  position: relative;
}
.pillars-header { margin-bottom: 4rem; }
.pillars-title {
  font-family: var(--font-kr);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -0.03em; color: var(--white);
}
.pillars-title em { font-style: italic; font-family: var(--font-en); color: var(--gold); }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.pillar-card {
  position: relative; padding: 2.8rem 2.5rem 2.5rem;
  background:
    var(--glass-highlight),
    var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: all 0.6s cubic-bezier(0.16,1,0.3,1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--glass-shadow);
}
.pillar-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--cta-bright));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.8s var(--ease);
}
.pillar-card::after {
  content: ''; position: absolute; inset: 0; border-radius: 16px;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 0%), rgba(27,58,92,0.06) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.6s ease;
}
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-card:hover::after { opacity: 1; }
.pillar-card:hover {
  background:
    var(--glass-highlight),
    var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-8px);
}
.pillar-num {
  font-family: var(--font-en); font-size: 0.75rem;
  color: var(--white-muted); letter-spacing: 0.1em; margin-bottom: 1.5rem;
}
.pillar-icon {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; color: var(--gold);
  background: rgba(27,58,92,0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 14px; padding: 12px;
  transition: all 0.5s var(--ease);
}
.pillar-card:hover .pillar-icon {
  background: rgba(27,58,92,0.1); transform: scale(1.1) rotate(-2deg);
  box-shadow: 0 0 30px rgba(27,58,92,0.1);
}
.pillar-icon svg { width: 28px; height: 28px; }
.pillar-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; color: var(--navy); }
.pillar-card p { font-size: 0.92rem; line-height: 1.8; color: var(--white-dim); }

/* Pillar card — enhanced content styles */
.pillars-subtitle {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--white-muted);
  margin-top: 1.5rem;
  max-width: 580px;
}
.pillar-lead {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.pillar-desc {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--white-dim);
  margin-bottom: 1.5rem;
}
.pillar-details {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(15,27,45,0.06);
  padding-top: 1.2rem;
}
.pillar-details li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.85rem;
  line-height: 2;
  color: var(--white-muted);
  font-weight: 400;
}
.pillar-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

/* Pillar card stagger */
.pillar-card:nth-child(2) { transition-delay: 0.12s; }
.pillar-card:nth-child(3) { transition-delay: 0.24s; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .pillars-grid { grid-template-columns: 1fr; max-width: 600px; }
  .story-stats-inner { flex-wrap: wrap; gap: 1.5rem; }
  .hero-light-leak, .hero-anamorphic { display: none; }
  .chapter-orb, .chapter-aurora, .chapter-aurora-2, .chapter-stars, .chapter-stars-deep,
  .chapter-fog, .chapter-fog-2, .chapter-nebula, .chapter-light-cone, .chapter-rays-2 { display: none; }
  .story-ambient-glow, .story-ambient-pulse { display: none; }
  .hero-depth-blur { display: none; }
  .nav-menu-btn { cursor: pointer !important; }
}
@media (max-width: 768px) {
  .story-text { font-size: clamp(1.3rem, 4.5vw, 2.4rem); }
  .story-text.story-question { font-size: clamp(1.5rem, 5vw, 2.8rem); }
  .story-text.story-emphasis { font-size: clamp(1rem, 3vw, 1.5rem) !important; font-weight: 600 !important; }
  .story-text.story-finale { font-size: clamp(2.4rem, 9vw, 5rem); }
  .story-text.story-turn { font-size: clamp(2rem, 6.5vw, 4rem); }
  .story-text.story-solo { font-size: clamp(1.8rem, 5vw, 3.5rem); }
  .story-chapter-num { font-size: clamp(6rem, 18vw, 14rem); }
}
@media (max-width: 480px) {
  .story-line { min-height: 80vh; min-height: 80dvh; padding: 2rem 1.5rem; }
  .story-text.story-emphasis { font-size: clamp(0.95rem, 2.8vw, 1.3rem) !important; font-weight: 600 !important; }
  .story-stats-inner { flex-direction: column; gap: 1.5rem; }
  .story-stats-inner .hero-stat-divider { display: none; }
  .story-chapter-num { display: none; }
}

/* === MANIFESTO SECTION — Cinematic breathing room === */
.about-manifesto {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--section-rhythm) 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.manifesto-number {
  font-family: var(--font-en);
  font-size: clamp(6rem, 20vw, 15rem);
  font-weight: 400;
  color: rgba(27, 58, 92, 0.05);
  line-height: 1;
  margin-bottom: -2rem;
  position: relative;
  z-index: 0;
  font-style: italic;
}

.manifesto-text {
  position: relative;
  z-index: 1;
}

.manifesto-text .reveal-text {
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--white-muted);
  transition: color 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s;
  filter: blur(1px);
  transform: translateX(-10px);
}

.manifesto-text .reveal-text.visible {
  color: var(--white);
  filter: blur(0);
  transform: translateX(0);
}

.manifesto-text em {
  font-style: italic;
  color: var(--gold);
  font-family: var(--font-en);
  font-weight: 400;
}

.manifesto-text em {
  font-style: normal;
  color: var(--gold);
}

.manifesto-text strong {
  font-weight: 700;
}

/* === PHILOSOPHY SPLIT SCREEN === */
.philosophy-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: var(--surface);
}

.split-left {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 6rem clamp(2rem, 4vw, 4rem);
}

.split-sticky {
  position: sticky;
  top: 30vh;
}

.split-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.split-title em {
  font-style: italic;
  font-family: var(--font-en);
  font-weight: 400;
  color: var(--gold);
  -webkit-text-stroke: none;
  position: relative;
}

/* Underline accent */
.split-title em::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineReveal 1s var(--ease-expo) 0.5s forwards;
}

@keyframes underlineReveal {
  to { transform: scaleX(1); }
}

.split-right {
  padding: 8rem clamp(2rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 3rem;
  border-left: 1px solid var(--white-ghost);
}

.philosophy-card {
  padding: 3rem 0;
  border-bottom: 1px solid var(--white-ghost);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease);
  position: relative;
  transform-style: preserve-3d;
}

.philosophy-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover side accent */
.philosophy-card::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 3rem;
  width: 3px;
  height: 0;
  background: linear-gradient(to bottom, var(--gold), var(--cta-bright));
  transition: height 0.5s var(--ease);
}

.philosophy-card:hover::before {
  height: calc(100% - 6rem);
}

.card-num {
  font-family: var(--font-en);
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}

.philosophy-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  transition: color 0.3s;
}

.philosophy-card:hover h3 {
  color: var(--gold);
}

.philosophy-card p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.9;
}

/* === HORIZONTAL SCROLL SERVICES === */
.services-horizontal {
  padding: var(--section-rhythm) 0 0;
  background:
    radial-gradient(ellipse 70% 50% at 30% 60%, rgba(42, 90, 143, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 30%, rgba(170, 130, 190, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #e8edf5 35%, #f0e8eb 65%, var(--bg) 100%);
  overflow: hidden;
}

.services-header {
  margin-bottom: 3rem;
}

.services-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.15;
}

.horizontal-wrap {
  width: 100%;
  overflow: visible;
  padding-bottom: 6rem;
}

.horizontal-wrap::-webkit-scrollbar { display: none; }

.horizontal-track {
  display: flex;
  gap: 1.5rem;
  padding: 0 clamp(2rem, 6vw, 6rem);
  will-change: transform;
  cursor: grab;
}

.horizontal-track:active { cursor: grabbing; }

.h-card {
  flex: 0 0 380px;
  min-height: 520px;
  background:
    var(--glass-highlight),
    var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease);
  transform-style: preserve-3d;
  box-shadow: var(--glass-shadow);
}

/* Service card hover glow */
.h-card::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse, var(--gold-dim), transparent 60%);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}

.h-card:hover::after {
  opacity: 1;
}

.h-card:hover {
  background:
    var(--glass-highlight),
    var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-8px);
}

.h-card-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  flex: 0 0 320px;
}

.h-card-intro::after { display: none; }

.h-intro-text {
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--white-dim);
}

.h-intro-text em {
  font-style: normal;
  color: var(--gold);
  font-weight: 600;
}

.h-intro-sub {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--white-muted);
  margin-top: 1.5rem;
  line-height: 1.8;
}

.h-card-inner {
  padding: 2.5rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.h-card-num {
  font-family: var(--font-en);
  font-size: 0.65rem;
  color: var(--white-muted);
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
  transition: color 0.3s;
}

.h-card:hover .h-card-num {
  color: var(--gold);
}

.h-card-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  transition: letter-spacing 0.4s var(--ease);
}

.h-card:hover .h-card-title {
  letter-spacing: 0.02em;
}

.h-card-badge {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.25em;
  background: rgba(27, 58, 92, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(27, 58, 92, 0.12);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  align-self: flex-start;
  position: relative;
  overflow: hidden;
}

/* Badge shimmer */
.h-card-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(27,58,92,0.2), transparent);
  animation: badgeShimmer 3s infinite;
}

@keyframes badgeShimmer {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.h-card-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.8;
  margin-bottom: auto;
  padding-bottom: 2rem;
}

.h-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid var(--white-ghost);
  padding-top: 1.5rem;
}

.h-card-features span {
  font-size: 0.72rem;
  color: var(--white-muted);
  padding: 0.35rem 0.8rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  transition: all 0.3s var(--ease);
}

.h-card:hover .h-card-features span {
  background: rgba(27, 58, 92, 0.06);
  border-color: rgba(27, 58, 92, 0.15);
  color: var(--white-dim);
}

/* Service card arrow */
.h-card-arrow {
  font-family: var(--font-en);
  font-size: 1.5rem;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s var(--ease);
  margin-top: auto;
  padding-top: 1rem;
}

.h-card:hover .h-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Service card — patient note */
.h-card-patient-note {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--white-dim);
  font-style: italic;
  line-height: 1.6;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.3);
  border-left: 2px solid var(--gold);
  border-radius: 0 10px 10px 0;
}

/* Services subtitle */
.services-subtitle {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--white-dim);
  margin-top: 1.2rem;
  max-width: 560px;
}

/* === DIRECTOR — Cinematic dark section === */
.director-full {
  padding: var(--section-rhythm) 0;
  background:
    radial-gradient(ellipse 50% 40% at 15% 30%, rgba(42, 90, 143, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 85% 70%, rgba(58, 122, 170, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 30% 30% at 50% 90%, rgba(100, 80, 160, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 60% 20%, rgba(30, 60, 100, 0.15) 0%, transparent 60%),
    var(--dark-bg);
  color: var(--dark-text);
  position: relative;
  overflow: hidden;
}

/* Decorative circle — glass ring */
.director-full::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  border: 1px solid rgba(245, 247, 250, 0.08);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 1;
  background: radial-gradient(circle, rgba(42, 90, 143, 0.06) 0%, transparent 70%);
  box-shadow: 0 0 80px rgba(42, 90, 143, 0.08);
}

.director-layout {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
  position: relative;
}

.director-visual {
  position: sticky;
  top: 8rem;
}

.director-frame {
  aspect-ratio: 3/4;
  border: 1px solid var(--glass-dark-border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--glass-dark-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 16px;
  box-shadow: var(--glass-dark-shadow);
  transition: all 0.6s var(--ease);
}
.director-frame:hover {
  border-color: var(--glass-dark-border-hover);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

/* Frame corner accents */
.director-frame::before,
.director-frame::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border: 1px solid var(--cta-bright);
  z-index: 3;
  transition: all 0.5s var(--ease);
}

.director-frame::before {
  top: -1px;
  right: -1px;
  border-left: none;
  border-bottom: none;
}

.director-frame::after {
  bottom: -1px;
  left: -1px;
  border-right: none;
  border-top: none;
}

.director-frame:hover::before,
.director-frame:hover::after {
  width: 50px;
  height: 50px;
}

.director-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  filter: saturate(0.85) contrast(1.02) brightness(0.92);
  transition: filter 0.8s var(--ease), transform 1.2s var(--ease-expo);
}

.director-frame:hover .director-photo {
  filter: saturate(1) contrast(1) brightness(1);
  transform: scale(1.03);
}

.frame-content {
  padding: 2.5rem;
  width: 100%;
  position: relative;
  z-index: 2;
  background: linear-gradient(transparent 0%, rgba(15, 27, 45, 0.4) 40%, rgba(15, 27, 45, 0.7) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.frame-label {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--cta-bright);
  display: block;
  margin-bottom: 1rem;
}

.frame-name {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--dark-text);
}

.frame-title {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--dark-text-dim);
}

/* Director — name title */
.director-name-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 2rem;
  line-height: 1.4;
}
.director-name-title em {
  font-style: normal;
  color: var(--cta-bright);
}

.director-quote {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--dark-text-dim);
  margin-bottom: 2.5rem;
  padding: 2rem 2rem 2rem 2.5rem;
  border-left: 3px solid var(--cta-bright);
  font-style: italic;
  background: var(--glass-dark-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-dark-border);
  border-left: 3px solid var(--cta-bright);
  border-radius: 0 16px 16px 0;
  box-shadow: var(--glass-dark-shadow);
  /* opacity/transform handled by [data-reveal] system */
}

/* Director — philosophy paragraph */
.director-philosophy {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--dark-text-dim);
  margin-bottom: 3rem;
  max-width: 540px;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 247, 250, 0.06);
  border-radius: 12px;
  /* opacity/transform handled by [data-reveal] system */
}

.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cred-block {
  /* opacity/transform handled by [data-reveal] system */
  transition: all 0.6s var(--ease);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.05) 100%),
    var(--glass-dark-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-dark-border);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: var(--glass-dark-shadow);
}
.cred-block:hover {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.03) 50%, rgba(255,255,255,0.08) 100%),
    var(--glass-dark-bg-hover);
  border-color: var(--glass-dark-border-hover);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255,255,255,0.12);
  transform: translateY(-3px);
}

.cred-block h4 {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--cta-bright);
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(245, 247, 250, 0.1);
  text-transform: uppercase;
}

.cred-block ul {
  list-style: none;
}

.cred-block li {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--dark-text-dim);
  padding: 0.3rem 0;
  line-height: 1.6;
  transition: color 0.3s, padding-left 0.3s;
}

.cred-block li:hover {
  color: var(--dark-text);
  padding-left: 0.5rem;
}

/* === EQUIPMENT — Cinematic rhythm === */
.equipment-minimal {
  padding: var(--section-rhythm) 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(42, 90, 143, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 25% 65%, rgba(170, 140, 100, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, #e8e4f0 0%, #e4ecf5 35%, #f0e8e4 65%, #e8edf5 100%);
  position: relative;
}

.equip-header {
  margin-bottom: 3.5rem;
}

.equip-title {
  font-family: var(--font-en);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  font-style: italic;
  transition: color 0.5s;
}

.equip-title:hover {
  color: var(--gold);
}

.equip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

/* Stagger equipment visibility */
.equip-item:nth-child(2) { transition-delay: 0.08s; }
.equip-item:nth-child(3) { transition-delay: 0.16s; }
.equip-item:nth-child(4) { transition-delay: 0.24s; }
.equip-item:nth-child(5) { transition-delay: 0.32s; }
.equip-item:nth-child(6) { transition-delay: 0.4s; }

.equip-item {
  padding: 2.8rem 2.2rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: none;
  margin: 0;
  transition: all 0.5s var(--ease);
  border-radius: 0;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  /* opacity/transform handled by [data-reveal] system */
}

/* Corner accent on hover */
.equip-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  transition: all 0.4s var(--ease);
}

.equip-item:hover::before {
  width: 30px;
  height: 30px;
}

.equip-item:hover {
  background:
    var(--glass-highlight),
    var(--glass-bg-hover);
  box-shadow: var(--glass-shadow-hover);
  z-index: 2;
}

.equip-num {
  font-family: var(--font-en);
  font-size: 0.6rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 1rem;
}

.equip-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.equip-item:hover h4 {
  color: var(--gold);
}

.equip-item p {
  font-size: 0.82rem;
  color: var(--white-dim);
  font-weight: 300;
}

/* Equipment — enhanced content styles */
.equip-subtitle {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--white-muted);
  margin-top: 1.5rem;
  max-width: 600px;
}
.equip-subtitle em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.equip-name-en {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-bottom: 1rem;
  display: block;
}
.equip-desc {
  font-size: 0.85rem;
  line-height: 1.85;
  color: var(--white-dim);
  font-weight: 300;
  margin-bottom: 1rem;
}
.equip-benefit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold);
  padding-top: 0.8rem;
  border-top: 1px solid rgba(15,27,45,0.06);
  margin-top: auto;
  line-height: 1.6;
}

/* === CONTACT BIG — Final act === */
.contact-big {
  position: relative;
  padding: var(--section-rhythm) 0;
  min-height: auto;
  display: flex;
  align-items: center;
  background: var(--dark-bg);
  color: var(--dark-text);
}

/* Nav override for dark sections */
.contact-big + .footer-full {
  border-top: 1px solid var(--dark-border);
}

.contact-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 70% 50%, rgba(27, 58, 92, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 30% 40%, rgba(27, 58, 92, 0.03) 0%, transparent 60%),
    var(--dark-bg);
}

.contact-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 8rem);
}

.contact-phone-big {
  display: block;
  margin-bottom: 3rem;
  position: relative;
}

.phone-label {
  display: block;
  font-family: var(--font-en);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--white-muted);
  margin-bottom: 0.75rem;
}

.phone-number {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--dark-text);
  transition: color 0.3s, letter-spacing 0.4s var(--ease);
  font-style: italic;
}

.contact-phone-big:hover .phone-number {
  color: var(--cta-bright);
  letter-spacing: 0.02em;
}

.contact-address p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--dark-text-dim);
  line-height: 1.8;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--cta-bright);
  padding: 0.5rem 1.2rem;
  background: rgba(42, 90, 143, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(42, 90, 143, 0.2);
  border-radius: 100px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.map-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease);
  z-index: 0;
}

.map-btn:hover::before {
  transform: translateX(0);
}

.map-btn:hover {
  color: var(--bg);
  border-color: var(--gold);
}

/* Hours Minimal */
.hours-minimal {
  margin-bottom: 3rem;
  color: var(--dark-text);
}

.hours-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--dark-border);
  align-items: baseline;
  transition: background 0.3s;
}

.hours-row:hover {
  background: rgba(245, 247, 250, 0.03);
  border-radius: 4px;
}

.hours-day {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--dark-text);
}

.hours-time {
  font-size: 0.95rem;
  font-weight: 400;
}

.hours-note {
  font-size: 0.72rem;
  color: var(--dark-text-muted);
  font-weight: 300;
}

.hours-row.closed .hours-time {
  color: var(--dark-text-muted);
}

.hours-extra {
  font-size: 0.75rem;
  color: var(--dark-text-muted);
  margin-top: 1rem;
}

.transport-minimal {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.transport-label {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--cta-bright);
  border: 1px solid rgba(42, 90, 143, 0.3);
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
}

.transport-item p {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--dark-text-dim);
  line-height: 1.7;
}

/* === GALLERY STRIP === */
.gallery-strip {
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  padding: 2rem 0;
  border-top: 1px solid rgba(15, 27, 45, 0.06);
  border-bottom: 1px solid rgba(15, 27, 45, 0.06);
}

.gallery-track {
  display: flex;
  gap: 1rem;
  animation: galleryScroll 45s linear infinite;
  /* GPU-composited layer — avoids main-thread layout jitter */
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.gallery-item {
  flex: 0 0 480px;
  height: 300px;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02) brightness(0.97);
  transition: filter 0.6s var(--ease), transform 1s var(--ease-expo);
}

.gallery-item:hover img {
  filter: saturate(1) contrast(1.02) brightness(1);
  transform: scale(1.04);
}

/* Gallery Caption Overlay */
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(15, 27, 45, 0.75));
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.7);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease), opacity 0.4s;
  opacity: 0;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
  opacity: 1;
}

@keyframes galleryScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === PROMISE SECTION === */
.promise-section {
  position: relative;
  padding: var(--section-rhythm) 0;
  overflow: hidden;
}

.promise-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 25% 40%, rgba(42, 90, 143, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 75% 65%, rgba(170, 130, 190, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 20%, rgba(58, 122, 170, 0.04) 0%, transparent 50%),
    linear-gradient(135deg, #e8edf5 0%, #dce4f0 30%, #f0e8e4 60%, #eee8f2 100%);
}

.promise-header {
  margin-bottom: 4rem;
}

.promise-main-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.promise-main-title em {
  font-style: italic;
  font-family: var(--font-en);
  font-weight: 400;
  color: var(--gold);
  -webkit-text-stroke: none;
  position: relative;
}

.promise-subtitle {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--white-dim);
  margin-top: 1.2rem;
  max-width: 520px;
}

.promise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

/* Stagger promise items visibility */
.promise-item:nth-child(2) { transition-delay: 0.1s; }
.promise-item:nth-child(3) { transition-delay: 0.2s; }
.promise-item:nth-child(4) { transition-delay: 0.3s; }

.promise-item {
  position: relative;
  padding: 3rem 2.5rem;
  border: none;
  margin: 0;
  transition: all 0.8s var(--ease);
  overflow: hidden;
  transform-style: preserve-3d;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  /* opacity/transform handled by [data-reveal] system */
}

/* Number watermark */
.promise-item::after {
  content: attr(data-num);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: var(--font-en);
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 800;
  color: var(--white-ghost);
  line-height: 1;
  pointer-events: none;
  transition: color 0.5s var(--ease);
}

.promise-item:hover::after {
  color: var(--gold-dim);
}

.promise-item:hover {
  background:
    var(--glass-highlight),
    var(--glass-bg-hover);
  box-shadow: var(--glass-shadow-hover);
  z-index: 2;
}

/* Top-left corner accent on hover */
.promise-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  transition: all 0.4s var(--ease);
}

.promise-item:hover::before {
  width: 40px;
  height: 40px;
}

.promise-icon {
  width: 40px;
  height: 40px;
  color: var(--gold);
  margin-bottom: 1.5rem;
  transition: transform 0.4s var(--ease);
}

.promise-item:hover .promise-icon {
  transform: scale(1.15);
}

.promise-icon svg {
  width: 100%;
  height: 100%;
}

.promise-content {
  position: relative;
  z-index: 1;
}

.promise-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  transition: color 0.3s;
  color: var(--navy);
}

.promise-item:hover .promise-content h3 {
  color: var(--gold);
}

.promise-quote {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 0.8rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(27,58,92,0.15);
  font-style: italic;
  line-height: 1.6;
}

.promise-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.8;
}

/* === IMAGE BREAK === */
.image-break {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  position: relative;
}

.image-break img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.5) contrast(1.1);
  /* GPU layer for parallax — no will-change to reduce compositing cost */
  transform: translate3d(0,0,0) scale(1.08);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: filter 0.5s;
}

.image-break:hover img {
  filter: saturate(0.8) contrast(1.05);
}

/* ═══════════════════════════════════════════
   FOOTER (v3 — 통합/정리)
   두 가지 variant: .footer-full (서브페이지/메인) · .footer-minimal (홈 시네마틱)
   ═══════════════════════════════════════════ */

/* 공통 컨테이너 */
.footer-full,
.footer-minimal {
  background: #0a1220;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-ui);
  position: relative;
}
.footer-full::before,
.footer-minimal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.25) 20%,
    rgba(212, 175, 55, 0.45) 50%,
    rgba(212, 175, 55, 0.25) 80%,
    transparent 100%);
}

/* === FOOTER FULL (서브페이지·메인) === */
.footer-full {
  padding: 4.5rem 0 1.75rem;
}
.footer-full .container-wide {
  padding-left: 2rem;
  padding-right: 2rem;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* 브랜드 컬럼 */
.footer-brand-col {
  max-width: 340px;
}
.footer-brand-col .footer-brand-big {
  font-family: var(--font-serif, 'Noto Serif KR', serif);
  font-size: 1.9rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
  margin-bottom: 0.75rem;
  opacity: 1;
  transition: color 0.3s;
  display: inline-block;
}
.footer-brand-col .footer-brand-big::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold, #d4af37);
  margin-left: 0.35rem;
  vertical-align: top;
  margin-top: 0.35rem;
}
.footer-brand-col .footer-tagline {
  font-size: 0.83rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 1.5rem;
  max-width: 280px;
}

/* SNS 아이콘 원형 버튼 */
.footer-sns {
  display: flex;
  gap: 0.6rem;
  margin-top: 0;
  margin-bottom: 0;
}
.footer-sns a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.3s var(--ease, ease);
  text-decoration: none;
}
.footer-sns a:hover {
  border-color: var(--gold, #d4af37);
  color: var(--gold, #d4af37);
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.18);
}
.footer-sns-kakao svg { fill: currentColor; stroke: none; }
.footer-sns-kakao:hover {
  background: #FEE500;
  border-color: #FEE500;
  color: #3C1E1E;
}

/* 내비 컬럼 */
.footer-nav-col h4 {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold, #d4af37);
  margin: 0 0 1.1rem;
}
.footer-nav-col a {
  display: block;
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.62);
  padding: 0.35rem 0;
  transition: color 0.25s ease, padding-left 0.25s ease;
  text-decoration: none;
  position: relative;
}
.footer-nav-col a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--gold, #d4af37);
  transition: width 0.3s ease;
  transform: translateY(-50%);
}
.footer-nav-col a:hover {
  color: #fff;
  padding-left: 1rem;
}
.footer-nav-col a:hover::before {
  width: 0.6rem;
}

/* 사업자 정보 */
.footer-biz-info {
  padding: 2rem 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  align-items: center;
}
.footer-biz-info p {
  font-size: 0.73rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  margin: 0;
}
.footer-biz-info p + p::before {
  content: '';
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  margin-right: 1.5rem;
  vertical-align: middle;
}

/* 하단 바 */
.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom-bar span {
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
}
.footer-bottom-bar a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.25s ease;
}
.footer-bottom-bar a:hover {
  color: var(--gold, #d4af37);
}
.footer-legal-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.footer-legal-links a {
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
}
.footer-legal-links a + a::before {
  content: '';
  position: absolute;
  left: -0.7rem;
  top: 50%;
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-50%);
}
.footer-legal-links a:hover {
  color: var(--gold, #d4af37);
}

/* === FOOTER MINIMAL (홈 전용) === */
.footer-minimal {
  padding: 5rem 0 2rem;
}
.footer-minimal .footer-top {
  margin-bottom: 3.5rem;
  text-align: center;
}
.footer-minimal .footer-brand-big {
  font-family: var(--font-serif, 'Noto Serif KR', serif);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
  margin-bottom: 1rem;
  opacity: 1;
}
.footer-minimal .footer-tagline {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: 420px;
  margin: 0 auto;
}
.footer-minimal .footer-bottom-bar {
  max-width: 960px;
  margin: 0 auto;
  padding-top: 2rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.footer-links a {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.25s ease;
}
.footer-links a:hover {
  color: var(--gold, #d4af37);
}

/* === 반응형 === */
@media (max-width: 960px) {
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
    max-width: none;
  }
}
@media (max-width: 640px) {
  .footer-full {
    padding: 3rem 0 1.5rem;
  }
  .footer-full .container-wide {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.25rem;
    padding-bottom: 2rem;
  }
  .footer-brand-col {
    text-align: left;
  }
  .footer-brand-col .footer-brand-big {
    font-size: 1.6rem;
  }
  .footer-brand-col .footer-tagline {
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
  }
  .footer-sns a {
    width: 40px;
    height: 40px;
  }
  .footer-nav-col h4 {
    font-size: 0.65rem;
    margin-bottom: 0.85rem;
  }
  .footer-nav-col a {
    font-size: 0.82rem;
    padding: 0.35rem 0;
    min-height: 36px;
    display: flex;
    align-items: center;
  }
  .footer-biz-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 1.5rem 0 1rem;
  }
  .footer-biz-info p + p::before {
    display: none;
  }
  .footer-biz-info p {
    font-size: 0.72rem;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 1rem;
  }
  .footer-legal-links {
    gap: 1rem;
  }
  .footer-legal-links a {
    font-size: 0.7rem;
  }
  /* 홈 미니멀 */
  .footer-minimal {
    padding: 3.5rem 0 1.5rem;
  }
  .footer-minimal .footer-top {
    margin-bottom: 2rem;
  }
  .footer-minimal .footer-bottom-bar {
    text-align: center;
    align-items: center;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }
}
@media (max-width: 400px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* === FLOATING CALL === */
.floating-call {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 27, 45, 0.55);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  color: var(--dark-text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  z-index: 900;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.5s var(--ease);
  box-shadow: 0 8px 32px rgba(15, 27, 45, 0.25), inset 0 1px 0 rgba(255,255,255,0.08);
}

.floating-call.visible {
  opacity: 1;
  transform: scale(1);
}

.floating-call:hover {
  background: rgba(42, 90, 143, 0.65);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 40px rgba(42, 90, 143, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Pulse ring */
.floating-call::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--cta);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* === KAKAO PLUS FRIEND INTEGRATION === */

/* Nav Kakao Button */
.nav-kakao {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  background: #FEE500;
  color: #3C1E1E;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.nav-kakao svg { fill: #3C1E1E; }
.nav-kakao:hover {
  background: #FFD600;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(254, 229, 0, 0.35);
}
#nav.scrolled .nav-kakao {
  background: #FEE500;
  color: #3C1E1E;
}

/* Menu Kakao Link */
.menu-kakao-link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: #FEE500;
  color: #3C1E1E;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease);
}
.menu-kakao-link:hover {
  background: #FFD600;
  transform: translateX(3px);
}

/* Hero CTA Kakao Button */
.hero-cta-wrap {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-cta-kakao {
  background: #FEE500 !important;
  color: #3C1E1E !important;
  border-color: rgba(60, 30, 30, 0.1) !important;
}
.hero-cta-kakao svg { fill: #3C1E1E; }
.hero-cta-kakao:hover {
  background: #FFD600 !important;
  box-shadow: 0 8px 32px rgba(254, 229, 0, 0.4) !important;
}
.hero-cta-kakao span {
  color: #3C1E1E !important;
}

/* Contact Section Kakao */
.contact-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.kakao-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: #FEE500;
  color: #3C1E1E;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease);
}
.kakao-btn svg { fill: #3C1E1E; }
.kakao-btn:hover {
  background: #FFD600;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(254, 229, 0, 0.4);
}

/* Floating CTA Group */
.floating-cta-group {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 900;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s var(--ease);
}
.floating-cta-group.visible {
  opacity: 1;
  transform: translateY(0);
}
.floating-btn {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  position: relative;
}
.floating-kakao {
  background: #FEE500;
  color: #3C1E1E;
  box-shadow: 0 4px 20px rgba(254, 229, 0, 0.3);
}
.floating-kakao svg { fill: #3C1E1E; }
.floating-kakao:hover {
  background: #FFD600;
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(254, 229, 0, 0.5);
}
.floating-cta-group .floating-call {
  background: rgba(15, 27, 45, 0.55);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  color: var(--dark-text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(15, 27, 45, 0.25), inset 0 1px 0 rgba(255,255,255,0.08);
  opacity: 1;
  transform: none;
}
.floating-cta-group .floating-call:hover {
  background: rgba(42, 90, 143, 0.65);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 40px rgba(42, 90, 143, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: scale(1.1);
}
/* Pulse ring on phone button */
.floating-cta-group .floating-call::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--cta);
  animation: pulse 2s ease infinite;
}

/* === SECTION INDICATOR (Side dots) === */
.section-indicator {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 900;
  mix-blend-mode: difference;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--white-muted);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.4s var(--ease);
}

.indicator-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.3);
}

.indicator-dot:hover {
  border-color: var(--gold);
}

/* === REVEAL ANIMATIONS === */
/* When GSAP is loaded (main page), GSAP handles [data-reveal] via gsap.from().
   When GSAP is NOT loaded (sub-pages), app.js IntersectionObserver adds .visible.
   We set initial hidden state ONLY for non-GSAP (sub-page) fallback. */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* When GSAP is active, it sets inline styles that override CSS.
   Mark body so we know GSAP is in charge. */
body.gsap-active [data-reveal] {
  /* Let GSAP control opacity/transform via inline styles */
  opacity: unset;
  transform: unset;
  transition: none;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  body { cursor: auto !important; }
  .cursor, .cursor-follower { display: none !important; }
  .section-indicator { display: none; }

  .philosophy-split {
    grid-template-columns: 1fr;
  }

  .split-left {
    padding-bottom: 0;
  }

  .split-sticky {
    position: relative;
    top: 0;
  }

  .split-right {
    border-left: none;
    border-top: 1px solid var(--white-ghost);
  }

  .director-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .director-visual {
    position: relative;
    top: 0;
    max-width: 400px;
  }

  .director-full::before { display: none; }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .h-card {
    flex: 0 0 320px;
    min-height: 460px;
  }

  .gallery-item {
    flex: 0 0 360px;
    height: 220px;
  }

  .promise-grid {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .hero-stat {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .menu-footer {
    flex-direction: column;
    gap: 1.5rem;
  }

  .equip-grid {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 10px;
  }

  .credentials-grid {
    grid-template-columns: 1fr;
  }

  .hours-row {
    grid-template-columns: 80px 1fr;
  }

  .hours-note {
    grid-column: span 2;
    padding-left: 80px;
    margin-top: -0.5rem;
  }

  .h-card {
    flex: 0 0 290px;
    min-height: 420px;
  }

  .gallery-item {
    flex: 0 0 300px;
    height: 180px;
  }

  .image-break img {
    height: 50vh;
  }

  .marquee-track span {
    font-size: 0.6rem;
  }

}

@media (max-width: 480px) {
  .equip-grid {
    grid-template-columns: 1fr;
    border-radius: 8px;
  }

  .nav-booking span {
    display: none;
  }
  .nav-booking {
    padding: 0.4rem 0.7rem;
  }
  .nav-kakao span { display: none; }
  .nav-kakao { padding: 0.4rem 0.5rem; }

  .hero-cta-btn {
    padding: 0.85rem 1.8rem;
    font-size: 0.7rem;
  }

  .hero-bottom {
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-stat-divider {
    display: none;
  }

  .hero-stat {
    padding: 0;
  }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-particles, .hero-mesh, .hero-scan-line,
  .hero-light-leak, .hero-anamorphic, .chapter-fog,
  .chapter-fog-2, .chapter-aurora, .chapter-aurora-2,
  .chapter-nebula, .gallery-track, .marquee-track {
    animation: none !important;
  }
}

/* === PRINT === */
@media print {
  body { background: white; color: black; cursor: auto; }
  .cursor, .cursor-follower, #nav, .full-menu, .floating-call, .floating-cta-group, .grain, .marquee-band, .section-indicator, .hero-mesh, .hero-scan-line { display: none !important; }
  .hero { min-height: auto; background: white; }
  .title-word { transform: none !important; color: black !important; -webkit-text-stroke: none !important; animation: none !important; }
}

/* ============================================
   SUB-PAGES — Cases, Blogs, Notices
   ============================================ */

.sub-page .sub-page-content {
  padding-top: 80px;
  min-height: 60vh;
}

/* Page Hero Mini */
.page-hero-mini {
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--white-ghost);
}
.page-hero-mini .section-label { margin-bottom: 0.5rem; }
.page-title {
  font-family: var(--font-en);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  font-style: italic;
}
.page-subtitle {
  font-size: 1rem;
  color: var(--white-dim);
  font-weight: 300;
}
.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--white-dim); font-size: 0.9rem;
  padding: 0.5rem 0; transition: color 0.2s;
}
.back-link:hover { color: var(--gold); }

/* Filter Bar */
.page-filter { padding: 2rem 0 0; }
.filter-bar {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.filter-btn {
  padding: 0.5rem 1.2rem;
  background: transparent; border: 1px solid var(--white-ghost);
  border-radius: 99px; color: var(--white-dim);
  font-size: 0.85rem; cursor: pointer; transition: all 0.3s;
  font-family: inherit;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active {
  background: var(--gold); border-color: var(--gold); color: var(--bg);
  font-weight: 600;
}

/* Grid Section */
.page-grid-section { padding: 2.5rem 0 4rem; }

/* Loading & Empty */
.loading-spinner {
  padding: 4rem; text-align: center; color: var(--white-muted); font-size: 0.95rem;
}
.empty-state {
  padding: 5rem 2rem; text-align: center; color: var(--white-muted);
  border: 1px dashed var(--white-ghost); border-radius: 16px;
}
.empty-state p { font-size: 1rem; }

/* Load More */
.load-more-wrap { text-align: center; padding: 2rem 0; }
.btn-load-more {
  padding: 0.7rem 2rem; background: transparent;
  border: 1px solid var(--white-ghost); border-radius: 99px;
  color: var(--white-dim); font-size: 0.9rem; cursor: pointer;
  transition: all 0.3s; font-family: inherit;
}
.btn-load-more:hover { border-color: var(--gold); color: var(--gold); }

/* === CASE CARDS === */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.case-card {
  background: var(--surface);
  border: 1px solid var(--white-ghost);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s var(--ease);
  box-shadow: var(--shadow-sm);
}
.case-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.case-card-img {
  width: 100%; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2);
}
.case-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.case-card:hover .case-card-img img { transform: scale(1.05); }
.case-card-img .no-img {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--white-muted); font-family: var(--font-en); font-size: 0.8rem; letter-spacing: 0.1em;
}
.case-card-body { padding: 1.25rem; }
.case-tag {
  display: inline-block; padding: 0.2rem 0.6rem;
  background: var(--gold-dim); color: var(--gold);
  font-size: 0.7rem; font-weight: 600; border-radius: 4px; margin-bottom: 0.5rem;
}
.case-card-body h3 {
  font-size: 1rem; font-weight: 500; margin-bottom: 0.5rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.case-meta {
  display: flex; gap: 1rem; font-size: 0.75rem; color: var(--white-muted);
}

/* === CASE DETAIL === */
.case-detail-section { padding: 2rem 0 4rem; }
.case-detail-header { margin-bottom: 2rem; }
.case-detail-header h1 { font-size: 1.8rem; font-weight: 600; margin: 0.5rem 0; }
.case-detail-desc { margin-bottom: 2rem; color: var(--white-dim); line-height: 1.8; font-size: 0.95rem; }
.case-detail-images {
  display: grid; gap: 1.5rem;
}
.case-detail-img-wrap { border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--white-ghost); }
.case-detail-img-label {
  padding: 0.75rem 1rem; font-size: 0.8rem; color: var(--gold);
  font-weight: 600; border-bottom: 1px solid var(--white-ghost);
  font-family: var(--font-en);
}
.case-detail-img-wrap img { width: 100%; display: block; }

/* === BLOG CARDS === */
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--white-ghost);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s var(--ease);
  box-shadow: var(--shadow-sm);
}
.blog-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.blog-card-img {
  width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2);
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-img .no-img {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--white-muted); font-family: var(--font-en); font-size: 0.9rem; letter-spacing: 0.15em;
}
.blog-card-body { padding: 1.25rem; }
.blog-card-body h3 {
  font-size: 1.05rem; font-weight: 500; margin-bottom: 0.5rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-excerpt {
  font-size: 0.85rem; color: var(--white-muted); line-height: 1.6; margin-bottom: 0.75rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-meta {
  display: flex; gap: 1rem; font-size: 0.75rem; color: var(--white-muted);
}

/* === BLOG DETAIL === */
.blog-detail-section { padding: 2rem 0 4rem; }
.blog-detail-header { margin-bottom: 2rem; }
.blog-detail-header h1 { font-size: 1.8rem; font-weight: 600; margin-bottom: 0.5rem; }
.blog-detail-content { margin-bottom: 2rem; color: var(--white-dim); line-height: 1.9; font-size: 0.95rem; }
.blog-detail-images { display: flex; flex-direction: column; gap: 1.5rem; }
.blog-detail-img { border-radius: 12px; overflow: hidden; }
.blog-detail-img img { width: 100%; display: block; }

/* === NOTICE LIST === */
.notices-list { display: flex; flex-direction: column; gap: 0; }
.notice-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--white-ghost);
  transition: all 0.3s var(--ease);
  gap: 1rem;
}
.notice-row:first-child { border-top: 1px solid var(--white-ghost); }
.notice-row:hover { background: var(--surface); }
.notice-row.pinned { background: rgba(27,58,92,0.05); }
.notice-row-left { display: flex; align-items: center; gap: 0.75rem; min-width: 0; flex: 1; }
.notice-row-left h3 {
  font-size: 0.95rem; font-weight: 400;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pin-badge {
  padding: 0.15rem 0.5rem; background: var(--gold-dim); color: var(--gold);
  font-size: 0.65rem; font-weight: 700; border-radius: 4px; white-space: nowrap;
  letter-spacing: 0.05em;
}
.notice-row-right {
  display: flex; gap: 1.5rem; font-size: 0.75rem; color: var(--white-muted);
  white-space: nowrap; flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   NOTICE DETAIL (v3 — 아티클 스타일)
   ═══════════════════════════════════════════ */
.notice-detail-section {
  padding: 3rem 0 5rem;
  background: var(--dark-bg);
}
.notice-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.notice-article-header {
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}
.notice-pin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  color: var(--gold, #d4af37);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.notice-article-title {
  font-family: var(--font-serif, 'Noto Serif KR', serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 1rem;
  word-break: keep-all;
}
.notice-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
}
.notice-article-meta .meta-date { letter-spacing: 0.02em; }
.notice-article-meta .meta-dot { opacity: 0.5; }

.notice-article-hero {
  margin: 0 -2.5rem 2.5rem;
  overflow: hidden;
  border-radius: 0;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.03);
}
.notice-article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 본문 — markdown 렌더 영역 */
.notice-article-body {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.95;
  font-weight: 300;
  word-break: keep-all;
}
.notice-article-body > *:first-child { margin-top: 0; }
.notice-article-body > *:last-child { margin-bottom: 0; }

.notice-article-body .md-p {
  margin: 0 0 1.1rem;
}
.notice-article-body .md-h1,
.notice-article-body .md-h2,
.notice-article-body .md-h3,
.notice-article-body .md-h4 {
  font-family: var(--font-serif, 'Noto Serif KR', serif);
  color: #fff;
  font-weight: 500;
  line-height: 1.4;
  margin: 2.25rem 0 1rem;
  letter-spacing: -0.01em;
}
.notice-article-body .md-h1 { font-size: 1.6rem; }
.notice-article-body .md-h2 { font-size: 1.35rem; }
.notice-article-body .md-h3 { font-size: 1.15rem; }
.notice-article-body .md-h4 { font-size: 1rem; color: var(--gold, #d4af37); letter-spacing: 0.02em; }

.notice-article-body strong {
  font-weight: 600;
  color: #fff;
}
.notice-article-body em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
}

.notice-article-body .md-ul,
.notice-article-body .md-ol {
  margin: 0 0 1.3rem;
  padding-left: 1.4rem;
}
.notice-article-body .md-ul li,
.notice-article-body .md-ol li {
  margin-bottom: 0.5rem;
  padding-left: 0.2rem;
}
.notice-article-body .md-ul li::marker { color: var(--gold, #d4af37); }
.notice-article-body .md-ol li::marker { color: var(--gold, #d4af37); font-weight: 600; }

.notice-article-body .md-quote {
  border-left: 3px solid var(--gold, #d4af37);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1.5rem 0;
  color: rgba(255, 255, 255, 0.72);
  font-style: italic;
  background: rgba(212, 175, 55, 0.04);
  border-radius: 0 6px 6px 0;
}

.notice-article-body .md-link {
  color: var(--gold, #d4af37);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  transition: border-color 0.25s ease;
}
.notice-article-body .md-link:hover {
  border-bottom-color: var(--gold, #d4af37);
}

.notice-article-body .md-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.75rem auto;
  border-radius: 8px;
}

.notice-article-body .md-hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(255, 255, 255, 0.15), transparent);
  margin: 2.5rem 0;
}

.notice-article-body .md-code {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 1.25rem 0;
}
.notice-article-body .md-inline-code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--gold, #d4af37);
}

/* 하단 갤러리 */
.notice-article-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.notice-article-gallery figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.03);
}
.notice-article-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease, ease);
}
.notice-article-gallery figure:hover img { transform: scale(1.03); }

/* 아티클 푸터 */
.notice-article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.notice-article-footer .back-to-list {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.3s var(--ease, ease);
}
.notice-article-footer .back-to-list:hover {
  border-color: var(--gold, #d4af37);
  color: var(--gold, #d4af37);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.15);
}

/* 반응형 */
@media (max-width: 768px) {
  .notice-detail-section { padding: 1.5rem 0 3rem; }
  .notice-article {
    padding: 2rem 1.25rem;
    border-radius: 12px;
    margin: 0 0.75rem;
  }
  .notice-article-hero {
    margin: 0 -1.25rem 1.75rem;
    aspect-ratio: 4 / 3;
  }
  .notice-article-title {
    font-size: 1.4rem;
  }
  .notice-article-body {
    font-size: 0.95rem;
    line-height: 1.85;
  }
  .notice-article-body .md-h1 { font-size: 1.35rem; }
  .notice-article-body .md-h2 { font-size: 1.2rem; }
  .notice-article-body .md-h3 { font-size: 1.05rem; }
  .notice-article-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
}
@media (max-width: 480px) {
  .notice-article-gallery {
    grid-template-columns: 1fr;
  }
}

/* === SUB-PAGE RESPONSIVE === */
@media (max-width: 768px) {
  .cases-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .blogs-grid { grid-template-columns: 1fr; }
  .case-detail-images { grid-template-columns: 1fr !important; }
  .notice-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .notice-row-right { gap: 1rem; }
  .page-title { font-size: 2rem; }
}

@media (max-width: 480px) {
  .cases-grid { grid-template-columns: 1fr; }
  .filter-bar { gap: 0.35rem; }
  .filter-btn { padding: 0.4rem 0.8rem; font-size: 0.75rem; }
}

/* ============================================
   FAQ PAGE — Premium Accordion Design
   ============================================ */

/* Search */
.faq-search-wrap {
  padding: 2.5rem 0 1.5rem;
}
.faq-search-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--white-ghost);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  transition: all 0.3s var(--ease);
}
.faq-search-box:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.faq-search-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--white-muted);
}
.faq-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font-kr);
}
.faq-search-input::placeholder {
  color: var(--white-muted);
}
.faq-search-clear {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white-ghost);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--white-dim);
  transition: all 0.2s;
}
.faq-search-clear:hover {
  background: var(--gold-dim);
  color: var(--gold);
}
.faq-search-clear svg {
  width: 14px;
  height: 14px;
}
.faq-search-count {
  display: none;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 500;
}

/* Category Bar */
.faq-category-bar {
  display: flex;
  gap: 0.5rem;
  padding: 0 0 2rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.faq-category-bar::-webkit-scrollbar { display: none; }

.faq-cat-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: 1px solid var(--white-ghost);
  border-radius: 99px;
  color: var(--white-muted);
  font-size: 0.85rem;
  font-family: var(--font-kr);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}
.faq-cat-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.faq-cat-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
  font-weight: 600;
}
.faq-cat-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-cat-icon svg {
  width: 16px;
  height: 16px;
}
.faq-cat-count {
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.6;
}
.faq-cat-btn.active .faq-cat-count {
  opacity: 1;
}

/* FAQ Content */
.faq-content {
  padding-bottom: 2rem;
}

/* FAQ Group */
.faq-group {
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s var(--ease);
}
.faq-group.visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-group-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gold);
}
.faq-group-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: var(--gold-dim);
  border-radius: 10px;
  flex-shrink: 0;
}
.faq-group-icon svg {
  width: 20px;
  height: 20px;
}
.faq-group-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.faq-group-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.faq-group-count {
  font-size: 0.75rem;
  color: var(--white-muted);
  font-weight: 400;
}

/* FAQ List */
.faq-list {
  display: flex;
  flex-direction: column;
}

/* FAQ Item */
.faq-item {
  border-bottom: 1px solid var(--white-ghost);
  transition: all 0.3s var(--ease);
}
.faq-item:first-child {
  border-top: 1px solid var(--white-ghost);
}
.faq-item:hover {
  background: rgba(110, 159, 212, 0.03);
}

/* Question button */
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--white);
  font-family: var(--font-kr);
  transition: all 0.3s;
}
.faq-question:hover {
  padding-left: 1rem;
}

.faq-q-num {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--white-muted);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  min-width: 24px;
  transition: color 0.3s;
}
.faq-item.open .faq-q-num,
.faq-item:hover .faq-q-num {
  color: var(--gold);
}

.faq-q-text {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.faq-q-toggle {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--white-ghost);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.4s var(--ease);
  color: var(--white-muted);
}
.faq-q-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.4s var(--ease);
}
.faq-item.open .faq-q-toggle {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
  transform: rotate(45deg);
}
.faq-item:hover .faq-q-toggle {
  border-color: var(--gold);
  color: var(--gold);
}

/* Answer */
.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), opacity 0.4s var(--ease);
}
.faq-answer-inner {
  padding: 0 0.5rem 1.5rem 3rem;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--white-dim);
}
.faq-item.open .faq-answer {
  opacity: 1;
}

/* Search highlight */
.faq-highlight {
  background: var(--gold-dim);
  color: var(--gold);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-weight: 600;
}

/* CTA Banner */
.faq-cta-banner {
  margin: 2rem 0 4rem;
}
.faq-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem 3rem;
  background: var(--surface);
  border: 1px solid var(--white-ghost);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.faq-cta-inner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: radial-gradient(ellipse at 100% 50%, var(--gold-dim), transparent 70%);
  pointer-events: none;
}
.faq-cta-text {
  position: relative;
  z-index: 1;
}
.faq-cta-text h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.faq-cta-text p {
  font-size: 0.9rem;
  color: var(--white-dim);
  font-weight: 300;
}
.faq-cta-actions {
  display: flex;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.faq-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  font-family: var(--font-kr);
}
.faq-cta-btn.primary {
  background: var(--cta);
  color: var(--bg);
}
.faq-cta-btn.primary:hover {
  background: var(--cta-bright);
  transform: translateY(-2px);
}
.faq-cta-btn.secondary {
  background: transparent;
  border: 1px solid var(--white-ghost);
  color: var(--white-dim);
}
.faq-cta-btn.secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* FAQ Responsive */
@media (max-width: 768px) {
  .faq-category-bar {
    padding-bottom: 1.5rem;
  }
  .faq-cat-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  .faq-answer-inner {
    padding-left: 0.5rem;
  }
  .faq-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
  }
  .faq-cta-actions {
    width: 100%;
  }
  .faq-cta-btn {
    flex: 1;
    justify-content: center;
  }
  .faq-group-title-wrap {
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .faq-search-box {
    padding: 0.8rem 1rem;
  }
  .faq-question {
    gap: 0.5rem;
    padding: 1rem 0.25rem;
  }
  .faq-q-num { display: none; }
  .faq-q-text { font-size: 0.92rem; }
}

/* ============================================
   LOGIN GATE & BLUR OVERLAY (비포애프터)
   ============================================ */
.login-gate-banner {
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--white-ghost);
  padding: 1.5rem 0;
}
.gate-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.gate-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-dim);
  border-radius: 12px;
  color: var(--gold);
  flex-shrink: 0;
}
.gate-text { flex: 1; min-width: 200px; }
.gate-text h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.2rem; }
.gate-text p { font-size: 0.85rem; color: var(--white-dim); }
.gate-actions { display: flex; gap: 0.75rem; }
.gate-btn-login {
  padding: 0.65rem 1.5rem;
  background: var(--cta);
  color: var(--bg);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: opacity 0.2s;
}
.gate-btn-login:hover { opacity: 0.85; }
.gate-btn-signup {
  padding: 0.65rem 1.5rem;
  background: transparent;
  color: var(--white-dim);
  border: 1px solid var(--white-ghost);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}
.gate-btn-signup:hover { border-color: var(--gold); color: var(--gold); }

/* === AFTER 잠금 오버레이 (리스트 카드) === */
.case-thumb.locked {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 27, 45, 0.92) 0%, rgba(25, 40, 60, 0.95) 100%);
}
.case-thumb-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.75rem;
  text-align: center;
}
.case-thumb-lock .lock-icon {
  color: var(--gold);
  opacity: 0.9;
}
.case-thumb-lock .lock-text {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
}
.case-thumb.locked .case-label.after {
  z-index: 2;
}

/* === AFTER 잠금 오버레이 (상세 페이지 비교) === */
.compare-item.locked {
  background: linear-gradient(135deg, rgba(15, 27, 45, 0.94) 0%, rgba(25, 40, 60, 0.97) 100%);
  border: 1px solid rgba(212, 175, 55, 0.18);
  min-height: 240px;
  position: relative;
  overflow: hidden;
}
.compare-item.locked::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.08), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.06), transparent 50%);
  pointer-events: none;
}
.compare-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  z-index: 1;
}
.compare-lock .lock-icon {
  color: var(--gold);
  opacity: 0.95;
  margin-bottom: 0.25rem;
}
.compare-lock .lock-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.compare-lock .lock-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
  max-width: 280px;
}
.compare-lock .lock-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.compare-lock .gate-btn-login,
.compare-lock .gate-btn-signup {
  padding: 0.55rem 1.2rem;
  font-size: 0.8rem;
  border-radius: 8px;
}

@media (max-width: 480px) {
  .case-thumb-lock .lock-text { font-size: 0.72rem; }
  .compare-item.locked { min-height: 200px; }
  .compare-lock { padding: 1rem; gap: 0.5rem; }
  .compare-lock .lock-title { font-size: 0.95rem; }
  .compare-lock .lock-desc { font-size: 0.78rem; }
}

/* Case card blur effect for non-logged-in users */
.case-card.blurred .case-card-img img {
  filter: blur(12px);
  -webkit-filter: blur(12px);
  transition: filter 0.3s;
}
.case-card.blurred .case-card-img {
  position: relative;
}
.blur-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(15, 27, 45, 0.4);
  color: var(--dark-text-dim);
  z-index: 2;
}
.blur-overlay svg { opacity: 0.7; }
.blur-overlay span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Login required card (case detail page) */
.login-required-card {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--surface);
  border: 1px solid var(--white-ghost);
  border-radius: 16px;
  margin: 2rem auto;
  max-width: 480px;
  box-shadow: var(--shadow-md);
}
.login-req-icon {
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.login-required-card h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.login-required-card p {
  font-size: 0.95rem;
  color: var(--white-dim);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.login-req-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

/* ============================================
   CASE DETAIL — Before/After Pairs
   ============================================ */
.case-detail-pairs {
  margin-top: 2.5rem;
}
.case-pair {
  margin-bottom: 3rem;
}
.case-pair-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--white-ghost);
}
.case-pair-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.case-pair-img {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.case-pair-img img {
  width: 100%;
  display: block;
  border-radius: 12px;
}
.case-pair-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.3rem 0.8rem;
  background: rgba(15, 27, 45, 0.7);
  color: rgba(245, 247, 250, 0.9);
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 6px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(4px);
}
.case-pair-label.after {
  background: rgba(42, 90, 143, 0.4);
  color: rgba(245, 247, 250, 0.95);
}

/* ============================================
   BLOG ARTICLE — SEO Optimized
   ============================================ */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}
.blog-article-header {
  border-bottom: 1px solid var(--white-ghost);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}
.blog-article-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.blog-article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--white-muted);
}
.blog-views { color: var(--gold); }

.blog-article-body {
  font-size: 1rem;
  line-height: 2;
  color: var(--white-dim);
}
.blog-article-body p {
  margin-bottom: 1.5rem;
}
.blog-article-body h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--white-ghost);
}
.blog-article-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin: 2rem 0 0.75rem;
}
.blog-article-body ul, .blog-article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}
.blog-article-body li {
  margin-bottom: 0.5rem;
}
.blog-article-body strong {
  color: var(--white);
  font-weight: 600;
}

.blog-inline-figure {
  margin: 2rem -1rem;
  text-align: center;
}
.blog-inline-figure img {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}
.blog-inline-figure figcaption {
  font-size: 0.78rem;
  color: var(--white-muted);
  margin-top: 0.75rem;
  font-style: italic;
}

.blog-article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--white-ghost);
}
.blog-cta-box {
  background: var(--surface);
  border: 1px solid var(--white-ghost);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}
.blog-cta-box p {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.blog-cta-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--cta);
  color: var(--bg);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.2s;
}
.blog-cta-btn:hover { opacity: 0.85; }

/* ============================================
   SIGNUP & LOGIN PAGES
   ============================================ */
.signup-section, .login-section {
  padding: 3rem 0 6rem;
}
.signup-card, .login-page-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--white-ghost);
  border-radius: 16px;
  padding: 2.5rem;
}
.login-page-card {
  max-width: 420px;
}
.signup-form .form-section {
  margin-bottom: 2rem;
}
.form-section-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--white-ghost);
}
.signup-form .form-group,
.login-page-form .form-group {
  margin-bottom: 1.1rem;
}
.signup-form label,
.login-page-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--white-dim);
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.required { color: var(--cta); }
.signup-form input[type="text"],
.signup-form input[type="tel"],
.signup-form input[type="email"],
.signup-form input[type="password"],
.signup-form input[type="date"],
.login-page-form input[type="tel"],
.login-page-form input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border: 1px solid rgba(27, 58, 92, 0.2);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.signup-form input:focus,
.login-page-form input:focus {
  border-color: var(--gold);
}
.form-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--white-muted);
  margin-top: 0.3rem;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.radio-group {
  display: flex;
  gap: 1rem;
  margin-top: 0.25rem;
}
.radio-label {
  display: flex !important;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem !important;
  color: var(--white-dim) !important;
  cursor: pointer;
}
.radio-label input[type="radio"] {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
}

/* Consent / Agreement checkboxes */
.consent-all {
  margin-bottom: 0.75rem;
}
.consent-divider {
  height: 1px;
  background: var(--white-ghost);
  margin-bottom: 0.75rem;
}
.consent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}
.consent-label {
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem !important;
  cursor: pointer;
  color: var(--white-dim) !important;
}
.consent-all-label {
  font-weight: 600 !important;
  color: var(--white) !important;
  font-size: 0.95rem !important;
}
.consent-check {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(27, 58, 92, 0.3);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s;
}
.consent-check.sm {
  width: 16px;
  height: 16px;
}
.consent-label input[type="checkbox"] {
  display: none;
}
.consent-label input[type="checkbox"]:checked + .consent-check {
  background: var(--gold);
  border-color: var(--gold);
}
.consent-label input[type="checkbox"]:checked + .consent-check::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 6px;
  height: 10px;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent-label input[type="checkbox"]:checked + .consent-check.sm::after {
  top: 1px;
  left: 4px;
  width: 5px;
  height: 8px;
}
.consent-required {
  color: var(--cta) !important;
  font-style: normal !important;
  font-weight: 600;
  font-size: 0.8rem;
}
.consent-optional {
  color: var(--gold) !important;
  font-style: normal !important;
  font-weight: 500;
  font-size: 0.8rem;
}
.consent-view-btn {
  background: none;
  border: none;
  color: var(--white-muted);
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  flex-shrink: 0;
  transition: color 0.2s;
}
.consent-view-btn:hover { color: var(--gold); }
.consent-sub {
  padding: 0.5rem 0 0.5rem 2rem;
  display: flex;
  gap: 1.5rem;
}
.consent-sub-label {
  font-size: 0.85rem !important;
}

/* Consent modal */
.consent-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}
.consent-modal-card {
  background: var(--surface);
  border: 1px solid var(--white-ghost);
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  overflow-y: auto;
}
.consent-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--white-ghost);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.consent-modal-header h3 {
  font-size: 1rem;
  font-weight: 600;
}
.consent-modal-close {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--white-muted);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.consent-modal-close:hover { color: var(--white); }
.consent-modal-body {
  padding: 1.5rem;
  font-size: 0.88rem;
  color: var(--white-dim);
  line-height: 1.8;
}
.consent-modal-body h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  margin: 1.25rem 0 0.5rem;
}
.consent-modal-body h4:first-child { margin-top: 0; }
.consent-modal-body p { margin-bottom: 0.5rem; }

.form-error {
  color: #e74c3c;
  font-size: 0.85rem;
  margin: 0.75rem 0;
  padding: 0.6rem 1rem;
  background: rgba(231, 76, 60, 0.08);
  border: 1px solid rgba(231, 76, 60, 0.2);
  border-radius: 8px;
}

.btn-signup {
  width: 100%;
  padding: 0.9rem;
  background: var(--cta);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 1rem;
  font-family: inherit;
}
.btn-signup:hover { opacity: 0.85; }
.btn-signup:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.signup-login-link {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--white-muted);
}
.signup-login-link a {
  color: var(--gold);
  font-weight: 500;
  text-decoration: underline;
}
.signup-login-link a:hover { color: var(--gold-bright); }

/* ============================================
   NAV - User Auth State
   ============================================ */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-user-name {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 500;
}
.nav-user-logout {
  font-size: 0.72rem;
  color: var(--white-muted);
  background: none;
  border: 1px solid var(--white-ghost);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.nav-user-logout:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.nav-login-btn {
  font-size: 0.78rem;
  color: var(--white-dim);
  border: 1px solid var(--white-ghost);
  border-radius: 6px;
  padding: 0.35rem 0.8rem;
  transition: all 0.2s;
}
.nav-login-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================
   RESPONSIVE — Signup/Login/Cases Gate
   ============================================ */
@media (max-width: 768px) {
  .gate-content { flex-direction: column; text-align: center; }
  .gate-actions { width: 100%; justify-content: center; }
  .signup-card, .login-page-card { padding: 1.5rem; margin: 0 0.5rem; }
  .form-row-2 { grid-template-columns: 1fr; }
  .consent-sub { padding-left: 1.5rem; flex-direction: column; gap: 0.5rem; }
  .case-pair-images { grid-template-columns: 1fr; }
  .blog-article-header h1 { font-size: 1.4rem; }
  .blog-inline-figure { margin: 1.5rem 0; }
  .nav-user-name { display: none; }
}

@media (max-width: 480px) {
  .signup-card, .login-page-card { padding: 1.25rem; }
  .consent-item { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .consent-view-btn { align-self: flex-end; }
  .radio-group { flex-wrap: wrap; }
}

/* ============================================
   SEO/AEO — Screen Reader Only (크롤러 가독 콘텐츠)
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* noscript FAQ 서버사이드 렌더링 스타일 */
.faq-ssr-content {
  padding: 2rem 0;
}
.faq-ssr-content section {
  margin-bottom: 2rem;
}
.faq-ssr-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}
.faq-item-static {
  padding: 1rem 0;
  border-bottom: 1px solid var(--white-ghost);
}
.faq-item-static h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.faq-item-static p {
  font-size: 0.92rem;
  color: var(--white-dim);
  line-height: 1.8;
}

/* ─── 서비스 카드 백과사전 링크 ─── */
.h-card-dict-link {
  display: block;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(15,27,45,0.08);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.h-card-dict-link:hover { color: var(--cta-bright); }

.h-card-features .term-link {
  color: inherit;
  border-bottom: 1px dotted var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
.h-card-features .term-link:hover {
  color: var(--gold-bright);
}

/* ============================================
   치과 용어 백과사전 — Dictionary  (Premium v2)
   ============================================ */

/* ─── Container ─── */
.dict-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── HERO — Immersive gradient header ─── */
.dict-hero {
  position: relative;
  padding: 140px 0 64px;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(27,58,92,0.08) 0%, transparent 70%);
  overflow: hidden;
}
.dict-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231B3A5C' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}
.dict-hero-compact {
  padding: 120px 0 32px;
}
.dict-hero .sub-hero-inner {
  position: relative;
  z-index: 1;
}
.dict-hero .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--white-muted);
  margin-bottom: 20px;
}
.dict-hero .breadcrumb a {
  color: var(--white-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.dict-hero .breadcrumb a:hover { color: var(--gold); }
.dict-hero .bc-sep { color: rgba(15,27,45,0.12); font-size: 0.7rem; }
.dict-hero .page-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.dict-hero .page-subtitle {
  max-width: 540px;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--white-dim);
  font-weight: 300;
}
.dict-hero .page-subtitle strong {
  color: var(--gold-bright);
  font-weight: 700;
}

/* ─── 통계 배지 (히어로 하단) ─── */
.dict-stats-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.dict-stat-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(15,27,45,0.04);
  border: 1px solid rgba(15,27,45,0.06);
  border-radius: 40px;
  backdrop-filter: blur(8px);
}
.dict-stat-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-dim);
  border-radius: 50%;
  font-size: 0.95rem;
}
.dict-stat-label {
  font-size: 0.72rem;
  color: var(--white-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
}
.dict-stat-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-bright);
  font-family: var(--font-en);
}

/* ─── 검색 바 — glass-morph ─── */
.dict-search-wrap {
  max-width: 600px;
  margin: 28px auto 0;
}
.dict-search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(15,27,45,0.05);
  border: 1px solid rgba(15,27,45,0.1);
  border-radius: 60px;
  padding: 0 24px;
  backdrop-filter: blur(12px);
  transition: all 0.35s var(--ease);
}
.dict-search-bar:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(27,58,92,0.12), 0 8px 32px rgba(0,0,0,0.2);
  background: rgba(15,27,45,0.07);
}
.dict-search-icon {
  width: 20px;
  height: 20px;
  color: var(--white-muted);
  flex-shrink: 0;
  transition: color 0.3s;
}
.dict-search-bar:focus-within .dict-search-icon {
  color: var(--gold);
}
.dict-search-bar input {
  flex: 1;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1rem;
  padding: 16px 12px;
  outline: none;
  font-family: inherit;
}
.dict-search-bar input::placeholder { color: var(--white-muted); }
.dict-search-clear {
  background: rgba(15,27,45,0.08);
  border: none;
  color: var(--white-muted);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.dict-search-clear:hover { background: rgba(15,27,45,0.12); color: var(--white); }

/* 자동완성 */
.dict-autocomplete {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid rgba(15,27,45,0.1);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  z-index: 100;
  overflow: hidden;
  display: none;
}
.dict-autocomplete.show { display: block; }
.dict-ac-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--white-dim);
  text-decoration: none;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(15,27,45,0.04);
}
.dict-ac-item:last-child { border-bottom: none; }
.dict-ac-item:hover, .dict-ac-item.active {
  background: rgba(27,58,92,0.08);
  color: var(--white);
}
.dict-ac-term {
  font-weight: 600;
  font-size: 0.92rem;
}
.dict-ac-en {
  font-size: 0.78rem;
  color: var(--gold);
  font-family: var(--font-en);
}
.dict-ac-cat {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--white-muted);
  background: var(--white-ghost);
  padding: 2px 8px;
  border-radius: 8px;
}

/* ─── 초성 + 정렬 바 ─── */
.dict-chosung-section {
  padding: 14px 0;
  border-bottom: 1px solid rgba(15,27,45,0.04);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 50;
  transition: box-shadow 0.3s;
}
.dict-chosung-section.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.dict-chosung-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.dict-chosung-bar {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-wrap: nowrap;
  flex: 1;
  padding: 2px 0;
}
.dict-chosung-bar::-webkit-scrollbar { display: none; }
.chosung-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--white-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  font-family: inherit;
  position: relative;
}
.chosung-btn:hover {
  color: var(--white);
  background: rgba(15,27,45,0.04);
}
.chosung-btn.active {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(27,58,92,0.25);
}
.chosung-btn .chosung-count {
  position: absolute;
  top: -4px;
  right: -2px;
  font-size: 0.55rem;
  background: var(--cta);
  color: #fff;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s;
}
.chosung-btn:hover .chosung-count,
.chosung-btn.active .chosung-count {
  opacity: 1;
  transform: scale(1);
}

/* 정렬 드롭다운 */
.dict-sort-wrap {
  flex-shrink: 0;
}
.dict-sort-select {
  appearance: none;
  background: rgba(15,27,45,0.04);
  border: 1px solid rgba(15,27,45,0.08);
  color: var(--white-dim);
  font-size: 0.8rem;
  font-family: inherit;
  padding: 7px 32px 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231B3A5C' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.dict-sort-select:hover { border-color: rgba(15,27,45,0.15); }
.dict-sort-select:focus { border-color: var(--gold); }

/* ─── 메인 레이아웃 ─── */
.dict-main-section {
  padding: 28px 0 80px;
}
.dict-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 36px;
  align-items: start;
}

/* ─── 사이드바 ─── */
.dict-sidebar {
  position: sticky;
  top: 72px;
}
.dict-sidebar-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white-muted);
  margin-bottom: 14px;
  padding-left: 14px;
}
.dict-category-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dict-cat-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--white-dim);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: left;
  font-family: inherit;
  position: relative;
}
.dict-cat-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 20px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.2s var(--ease);
}
.dict-cat-btn:hover {
  background: rgba(15,27,45,0.03);
  color: var(--white);
}
.dict-cat-btn.active {
  background: rgba(27,58,92,0.08);
  color: var(--gold-bright);
  font-weight: 600;
}
.dict-cat-btn.active::before {
  transform: translateY(-50%) scaleY(1);
}
.dict-cat-icon { font-size: 1.05rem; width: 22px; text-align: center; }
.dict-cat-name { flex: 1; }
.dict-cat-count {
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(15,27,45,0.05);
  padding: 2px 8px;
  border-radius: 10px;
  color: var(--white-muted);
  font-family: var(--font-en);
  min-width: 28px;
  text-align: center;
}
.dict-cat-btn.active .dict-cat-count {
  background: rgba(27,58,92,0.15);
  color: var(--gold);
}

/* ─── 툴바 ─── */
.dict-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(15,27,45,0.04);
}
.dict-result-count {
  font-size: 0.88rem;
  color: var(--white-dim);
  font-weight: 400;
}
.dict-result-count strong {
  color: var(--gold-bright);
  font-weight: 700;
  font-family: var(--font-en);
}
.dict-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dict-view-toggle { display: flex; gap: 2px; background: rgba(15,27,45,0.03); border-radius: 8px; padding: 2px; }
.view-btn {
  background: transparent;
  border: none;
  color: var(--white-muted);
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.view-btn:hover { color: var(--white); }
.view-btn.active { background: rgba(27,58,92,0.15); color: var(--gold-bright); }

/* ─── 카드 그리드 ─── */
.dict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.dict-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dict-list .dict-card {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-radius: 10px;
}
.dict-list .dict-card-body { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.dict-list .dict-card-desc { display: none; }
.dict-list .dict-card-term { font-size: 0.95rem; margin: 0; }
.dict-list .dict-card-en { margin: 0; font-size: 0.75rem; }
.dict-list .dict-card-arrow { position: static; opacity: 0.5; }

/* ─── 카드 ─── */
.dict-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid rgba(15,27,45,0.05);
  border-radius: 14px;
  padding: 22px;
  text-decoration: none;
  color: var(--white);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.dict-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.dict-card:hover {
  border-color: rgba(27,58,92,0.2);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25), 0 0 0 1px rgba(27,58,92,0.1);
}
.dict-card:hover::before { opacity: 1; }
.dict-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.dict-card-cat {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.dict-card-views {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: var(--white-muted);
}
.dict-card-views svg {
  width: 12px;
  height: 12px;
  opacity: 0.5;
}
.dict-card-term {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.dict-card-en {
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 10px;
  font-family: var(--font-en);
  font-weight: 400;
  opacity: 0.8;
}
.dict-card-desc {
  font-size: 0.84rem;
  color: var(--white-dim);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.dict-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(15,27,45,0.04);
}
.dict-card-service-tag {
  font-size: 0.68rem;
  color: var(--white-muted);
  background: rgba(15,27,45,0.04);
  padding: 3px 8px;
  border-radius: 4px;
}
.dict-card-arrow {
  color: var(--gold);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.3s var(--ease);
  display: flex;
  align-items: center;
}
.dict-card:hover .dict-card-arrow {
  opacity: 1;
  transform: translateX(0);
}
.dict-card mark {
  background: rgba(27,58,92,0.2);
  color: var(--gold-bright);
  border-radius: 2px;
  padding: 0 2px;
}

/* ─── Card entrance animation ─── */
.dict-card {
  animation: dictCardIn 0.4s var(--ease) both;
}
@keyframes dictCardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.dict-grid .dict-card:nth-child(1)  { animation-delay: 0.00s; }
.dict-grid .dict-card:nth-child(2)  { animation-delay: 0.03s; }
.dict-grid .dict-card:nth-child(3)  { animation-delay: 0.06s; }
.dict-grid .dict-card:nth-child(4)  { animation-delay: 0.09s; }
.dict-grid .dict-card:nth-child(5)  { animation-delay: 0.12s; }
.dict-grid .dict-card:nth-child(6)  { animation-delay: 0.15s; }
.dict-grid .dict-card:nth-child(7)  { animation-delay: 0.18s; }
.dict-grid .dict-card:nth-child(8)  { animation-delay: 0.21s; }
.dict-grid .dict-card:nth-child(9)  { animation-delay: 0.24s; }
.dict-grid .dict-card:nth-child(10) { animation-delay: 0.27s; }
.dict-grid .dict-card:nth-child(11) { animation-delay: 0.30s; }
.dict-grid .dict-card:nth-child(12) { animation-delay: 0.33s; }

/* ─── 로딩, 빈 상태 ─── */
.dict-loading, .dict-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 16px;
  grid-column: 1 / -1;
}
.dict-spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(15,27,45,0.06);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: dictSpin 0.7s linear infinite;
}
@keyframes dictSpin { to { transform: rotate(360deg); } }
.dict-loading p { color: var(--white-muted); font-size: 0.88rem; }
.dict-empty svg { opacity: 0.4; }
.dict-empty p { color: var(--white-dim); font-size: 1.05rem; font-weight: 600; }
.dict-empty span { color: var(--white-muted); font-size: 0.85rem; }

/* ─── 페이지네이션 ─── */
.dict-pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(15,27,45,0.04);
}
.page-btn {
  background: transparent;
  border: 1px solid rgba(15,27,45,0.06);
  color: var(--white-dim);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.84rem;
  font-family: var(--font-en);
  font-weight: 500;
  transition: all 0.2s;
  min-width: 38px;
  text-align: center;
}
.page-btn:hover { background: rgba(27,58,92,0.08); color: var(--gold); border-color: rgba(27,58,92,0.2); }
.page-btn.active { background: var(--gold); color: var(--bg); font-weight: 700; border-color: var(--gold); }
.page-dots { color: var(--white-muted); padding: 8px 4px; font-family: var(--font-en); }

/* ─── CTA 배너 ─── */
.dict-cta {
  padding: 48px 0 60px;
}
.dict-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid rgba(15,27,45,0.06);
  border-radius: 20px;
  padding: 36px 44px;
  gap: 28px;
  position: relative;
  overflow: hidden;
}
.dict-cta-inner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 260px;
  height: 100%;
  background: radial-gradient(ellipse at 100% 50%, rgba(27,58,92,0.08), transparent 70%);
  pointer-events: none;
}
.dict-cta-text { position: relative; z-index: 1; }
.dict-cta-text h3 {
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 6px;
  font-weight: 700;
}
.dict-cta-text p { font-size: 0.9rem; color: var(--white-dim); font-weight: 300; }
.dict-cta-actions { display: flex; gap: 12px; position: relative; z-index: 1; }
.dict-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.3s var(--ease);
}
.dict-cta-btn.phone {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 4px 16px rgba(27,58,92,0.2);
}
.dict-cta-btn.phone:hover { background: var(--cta-bright); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(27,58,92,0.25); }
.dict-cta-btn.kakao { background: #FEE500; color: #3c1e1e; }
.dict-cta-btn.kakao:hover { background: #FFD700; transform: translateY(-2px); }

/* ============================================
   상세 페이지 — Premium Detail v2
   ============================================ */
.dict-detail-section { padding: 24px 0 80px; }
.dict-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* ─── 상세 — 메인 아티클 ─── */
.dict-detail-article {
  background: var(--surface);
  border: 1px solid rgba(15,27,45,0.05);
  border-radius: 20px;
  padding: 44px;
  position: relative;
}
.dict-detail-article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 40px;
  right: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
}
.dict-detail-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.dict-detail-cat {
  background: var(--gold-dim);
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.dict-detail-views {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--white-muted);
}
.dict-detail-term {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.dict-detail-sub {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.dict-detail-en {
  font-family: var(--font-en);
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 500;
}
.dict-detail-pron {
  color: var(--white-muted);
  font-size: 0.88rem;
  background: rgba(15,27,45,0.04);
  padding: 4px 12px;
  border-radius: 6px;
}
.dict-detail-short {
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.75;
  padding: 24px;
  margin-bottom: 28px;
  font-weight: 400;
  background: rgba(27,58,92,0.04);
  border: 1px solid rgba(27,58,92,0.08);
  border-radius: 12px;
  border-left: 3px solid var(--gold);
}
.dict-detail-full {
  margin-bottom: 28px;
}
.dict-detail-full h2 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dict-detail-full h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(15,27,45,0.06);
}
.dict-detail-full-text {
  font-size: 0.95rem;
  color: var(--white-dim);
  line-height: 2;
  word-break: keep-all;
}

/* ─── 관련 진료 ─── */
.dict-detail-service {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(15,27,45,0.06);
}
.dict-detail-service h2 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dict-detail-service h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(15,27,45,0.06);
}
.dict-service-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(27,58,92,0.06);
  border: 1px solid rgba(27,58,92,0.12);
  border-radius: 14px;
  padding: 18px 22px;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  margin-bottom: 10px;
}
.dict-service-link:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.dict-service-name { font-weight: 700; color: var(--gold-bright); font-size: 1rem; }
.dict-service-arrow { color: var(--gold); font-size: 0.85rem; transition: transform 0.3s; }
.dict-service-link:hover .dict-service-arrow { transform: translateX(3px); }
.dict-service-all {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  color: var(--white-muted);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s;
}
.dict-service-all:hover { color: var(--gold); }

/* ─── 공유 & 네비게이션 ─── */
.dict-detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(15,27,45,0.06);
}
.dict-share-btn {
  background: rgba(15,27,45,0.04);
  border: 1px solid rgba(15,27,45,0.08);
  color: var(--white-dim);
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.84rem;
  font-family: inherit;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dict-share-btn:hover { border-color: rgba(15,27,45,0.15); color: var(--white); background: rgba(15,27,45,0.06); }
.dict-share-btn svg { width: 16px; height: 16px; }

/* ─── 상세 사이드바 ─── */
.dict-detail-sidebar {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dict-related {
  background: var(--surface);
  border: 1px solid rgba(15,27,45,0.05);
  border-radius: 16px;
  padding: 24px;
}
.dict-related h3,
.dict-sidebar-cta h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white-muted);
  margin-bottom: 14px;
}
.dict-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dict-related-list li a {
  display: block;
  background: rgba(15,27,45,0.02);
  border: 1px solid rgba(15,27,45,0.04);
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  transition: all 0.25s var(--ease);
}
.dict-related-list li a:hover {
  border-color: rgba(27,58,92,0.2);
  transform: translateX(3px);
  background: rgba(27,58,92,0.04);
}
.dict-related-list li a strong {
  display: block;
  color: var(--white);
  font-size: 0.92rem;
  margin-bottom: 2px;
}
.dict-related-list li a small {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  font-family: var(--font-en);
  margin-bottom: 4px;
}
.dict-related-list li a span {
  display: block;
  color: var(--white-muted);
  font-size: 0.78rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dict-sidebar-cta {
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid rgba(15,27,45,0.06);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}
.dict-sidebar-cta p { font-size: 0.85rem; color: var(--white-dim); margin-bottom: 14px; line-height: 1.6; }
.dict-cta-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cta);
  color: #fff;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 12px rgba(27,58,92,0.15);
}
.dict-cta-mini:hover { background: var(--cta-bright); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(27,58,92,0.2); }

.dict-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--white-muted);
  text-decoration: none;
  font-size: 0.84rem;
  padding: 12px;
  border-radius: 10px;
  transition: all 0.2s;
  border: 1px solid rgba(15,27,45,0.06);
}
.dict-back-btn:hover { color: var(--gold); border-color: rgba(27,58,92,0.2); background: rgba(27,58,92,0.04); }

/* ─── 토스트 알림 ─── */
.dict-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  border: 1px solid rgba(27,58,92,0.2);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transition: all 0.35s var(--ease);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  pointer-events: none;
}
.dict-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── 진료 페이지 용어 연동 링크 ─── */
.term-link {
  color: var(--gold-bright);
  text-decoration: none;
  border-bottom: 1px dotted var(--gold);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}
.term-link:hover {
  color: var(--cta-bright);
  border-bottom-color: var(--cta-bright);
}

/* ─── 모바일 반응형 ─── */
@media (max-width: 1024px) {
  .dict-layout {
    grid-template-columns: 200px 1fr;
    gap: 24px;
  }
  .dict-detail-layout {
    grid-template-columns: 1fr 280px;
    gap: 28px;
  }
}
@media (max-width: 900px) {
  .dict-layout {
    grid-template-columns: 1fr;
  }
  .dict-sidebar {
    order: -1;
    position: static;
  }
  .dict-category-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
  .dict-cat-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  .dict-cat-btn::before { display: none; }
  .dict-cat-btn.active {
    background: var(--gold);
    color: var(--bg);
  }
  .dict-cat-btn.active .dict-cat-count {
    background: rgba(0,0,0,0.15);
    color: var(--bg);
  }
  .dict-sidebar-title { display: none; }
  .dict-detail-layout {
    grid-template-columns: 1fr;
  }
  .dict-detail-sidebar {
    position: static;
  }
  .dict-detail-article { padding: 28px; }
  .dict-detail-article::before { left: 28px; right: 28px; }
  .dict-detail-term { font-size: 1.6rem; }
  .dict-cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 28px;
  }
  .dict-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  .dict-stats-row {
    gap: 12px;
  }
  .dict-stat-badge {
    padding: 8px 14px;
  }
}
@media (max-width: 600px) {
  .dict-hero { padding: 110px 0 36px; }
  .dict-hero .page-title { font-size: 1.8rem; }
  .dict-search-bar { padding: 0 16px; }
  .dict-search-bar input { font-size: 0.92rem; padding: 14px 10px; }
  .dict-chosung-bar { justify-content: flex-start; }
  .chosung-btn { padding: 6px 10px; font-size: 0.78rem; }
  .dict-card { padding: 18px; }
  .dict-card-term { font-size: 0.95rem; }
  .dict-grid { grid-template-columns: 1fr; }
  .dict-stats-row { gap: 8px; }
  .dict-stat-badge { padding: 6px 12px; gap: 8px; }
  .dict-stat-icon { width: 28px; height: 28px; font-size: 0.85rem; }
  .dict-stat-value { font-size: 1rem; }
  .dict-detail-article { padding: 20px; }
  .dict-detail-article::before { left: 20px; right: 20px; }
  .dict-detail-term { font-size: 1.4rem; }
  .dict-detail-short { padding: 16px; font-size: 1rem; }
  .dict-chosung-row { flex-direction: column; gap: 8px; }
  .dict-sort-wrap { align-self: flex-end; }
}

/* ═══════════════════════════════════════════
   NEW PAGES CSS — Treatments, Doctors, About, Visit, Footer
   ═══════════════════════════════════════════ */

/* === TREATMENTS LIST === */
.treat-category-section { margin-bottom: 60px; }
.treat-cat-title {
  font-family: var(--font-serif); font-size: 1.4rem; color: var(--text);
  margin-bottom: 24px; display: flex; align-items: center; gap: 12px;
}
.treat-cat-badge {
  font-size: 0.7rem; font-family: var(--font-sans); letter-spacing: 0.12em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 20px;
}
.treat-cat-badge.core { background: var(--gold); color: var(--bg); }
.treat-cat-badge.standard { background: rgba(15,27,45,0.08); color: var(--gold); border: 1px solid rgba(15,27,45,0.1); }

.treat-grid { display: grid; gap: 16px; }
.treat-grid.core { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.treat-grid.standard { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.treat-card {
  display: flex; align-items: center; gap: 16px; padding: 24px;
  background: rgba(15,27,45,0.03); border: 1px solid rgba(15,27,45,0.06);
  border-radius: 12px; text-decoration: none; color: var(--text);
  transition: all 0.3s; position: relative; overflow: hidden;
}
.treat-card:hover {
  background: rgba(15,27,45,0.06); border-color: var(--gold);
  transform: translateY(-2px);
}
.treat-card.core { padding: 28px; }
.treat-card-icon { width: 48px; height: 48px; flex-shrink: 0; color: var(--gold); }
.treat-card-icon svg { width: 100%; height: 100%; }
.treat-card-body { flex: 1; min-width: 0; }
.treat-card-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
.treat-card-en { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.treat-card-desc { font-size: 0.85rem; color: var(--text-dim); margin-top: 6px; line-height: 1.5; }
.treat-card-arrow { font-size: 1.2rem; color: var(--gold); opacity: 0; transform: translateX(-8px); transition: all 0.3s; }
.treat-card:hover .treat-card-arrow { opacity: 1; transform: translateX(0); }

/* Treatment CTA */
.treat-cta-section { padding: 60px 0; }
.treat-cta-inner {
  background: linear-gradient(135deg, rgba(27,58,92,0.08), rgba(27,58,92,0.02));
  border: 1px solid rgba(27,58,92,0.15); border-radius: 16px; padding: 48px;
  text-align: center;
}
.treat-cta-inner h3 { font-family: var(--font-serif); font-size: 1.4rem; margin-bottom: 8px; }
.treat-cta-inner p { color: var(--text-dim); margin-bottom: 24px; }
.treat-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.treat-cta-btn {
  padding: 14px 32px; border-radius: 8px; text-decoration: none; font-size: 0.9rem;
  font-weight: 600; transition: all 0.3s;
}
.treat-cta-btn.primary { background: var(--gold); color: var(--bg); }
.treat-cta-btn.primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.treat-cta-btn.secondary { background: rgba(15,27,45,0.05); color: var(--text); border: 1px solid rgba(15,27,45,0.1); }
.treat-cta-btn.secondary:hover { background: rgba(15,27,45,0.08); }

/* === TREATMENT DETAIL === */
.treat-detail-hero { padding: 120px 0 40px; }
.treat-hero-icon { width: 56px; height: 56px; color: var(--gold); margin-bottom: 16px; }
.treat-hero-icon svg { width: 100%; height: 100%; }
.treat-hero-title { font-family: var(--font-serif); font-size: 2.4rem; margin-bottom: 12px; }
.treat-hero-sub { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 16px; }
.treat-hero-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.treat-badge {
  background: rgba(15,27,45,0.05); border: 1px solid rgba(15,27,45,0.1);
  padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; color: var(--text-dim);
}

.treat-section { padding: 60px 0; }
.treat-section.bg-alt { background: rgba(15,27,45,0.015); }
.treat-section-title {
  font-family: var(--font-serif); font-size: 1.6rem; margin-bottom: 32px;
  color: var(--gold); position: relative; padding-bottom: 12px;
}
.treat-section-title::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 40px; height: 2px; background: var(--gold);
}

/* Steps */
.treat-steps { display: flex; flex-direction: column; gap: 24px; }
.treat-step {
  display: flex; gap: 20px; padding: 24px; background: rgba(15,27,45,0.03);
  border-radius: 12px; border-left: 3px solid var(--gold);
}
.treat-step-num { font-family: var(--font-serif); font-size: 1.6rem; color: var(--gold); font-weight: 700; min-width: 40px; }
.treat-step-body h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.treat-step-body p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.5; }

/* Benefits */
.treat-benefits { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.treat-benefit {
  padding: 24px; background: rgba(15,27,45,0.03);
  border: 1px solid rgba(15,27,45,0.06); border-radius: 12px;
}
.treat-benefit h4 { color: var(--gold); margin-bottom: 8px; font-size: 1rem; }
.treat-benefit p { color: var(--text-dim); font-size: 0.88rem; line-height: 1.5; }

/* Price table */
.treat-price-table { overflow-x: auto; }
.treat-price-table table { width: 100%; border-collapse: collapse; }
.treat-price-table th, .treat-price-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(15,27,45,0.06); font-size: 0.9rem; }
.treat-price-table th { color: var(--gold); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.price-val { color: var(--gold); font-weight: 600; }
.badge-ins, .badge-insurance { background: rgba(76,175,80,0.15); color: #81c784; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; }
.treat-price-note { margin-top: 16px; color: var(--text-dim); font-size: 0.8rem; }

/* Doctors in treatment */
.treat-doctors { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.treat-doctor-card {
  display: flex; align-items: center; gap: 16px; padding: 20px;
  background: rgba(15,27,45,0.03); border: 1px solid rgba(15,27,45,0.06);
  border-radius: 12px; text-decoration: none; color: var(--text); transition: all 0.3s;
}
.treat-doctor-card:hover { border-color: var(--gold); background: rgba(15,27,45,0.05); }
.treat-doctor-card img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.treat-doctor-no-photo {
  width: 60px; height: 60px; border-radius: 50%; background: rgba(27,58,92,0.1);
  display: flex; align-items: center; justify-content: center; color: var(--gold);
  font-size: 1.2rem; font-weight: 700;
}
.treat-doctor-info h4 { font-size: 1rem; margin-bottom: 2px; }
.treat-doctor-info h4 span { color: var(--text-dim); font-weight: 400; font-size: 0.8rem; margin-left: 4px; }
.treat-doctor-info p { color: var(--text-dim); font-size: 0.82rem; }
.primary-badge {
  background: rgba(27,58,92,0.1); color: var(--gold); font-size: 0.7rem;
  padding: 2px 8px; border-radius: 4px; display: inline-block; margin-top: 4px;
}

/* FAQ in treatment */
.treat-faq-list { display: flex; flex-direction: column; gap: 8px; }
.treat-faq-item { border: 1px solid rgba(15,27,45,0.06); border-radius: 8px; overflow: hidden; }
.treat-faq-q {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 20px;
  background: transparent; border: none; color: var(--text); cursor: pointer;
  font-size: 0.92rem; text-align: left; transition: background 0.2s;
}
.treat-faq-q:hover { background: rgba(15,27,45,0.03); }
.treat-faq-num { color: var(--gold); font-weight: 700; font-size: 0.8rem; min-width: 28px; }
.treat-faq-toggle { margin-left: auto; color: var(--gold); font-size: 1.2rem; transition: transform 0.3s; }
.treat-faq-item.open .treat-faq-toggle { transform: rotate(45deg); }
.treat-faq-a {
  max-height: 0; overflow: hidden; transition: all 0.3s; opacity: 0;
}
.treat-faq-item.open .treat-faq-a { max-height: 600px; opacity: 1; }
.treat-faq-a p {
  padding: 0 20px 20px 60px; color: var(--text-dim); font-size: 0.88rem; line-height: 1.6;
}

/* Dictionary terms in treatment */
.treat-dict-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.treat-dict-card {
  padding: 16px; background: rgba(15,27,45,0.03); border: 1px solid rgba(15,27,45,0.06);
  border-radius: 8px; text-decoration: none; color: var(--text); transition: all 0.3s;
}
.treat-dict-card:hover { border-color: var(--gold); }
.treat-dict-card h4 { font-size: 0.92rem; margin-bottom: 2px; }
.treat-dict-en { font-size: 0.72rem; color: var(--text-dim); display: block; margin-bottom: 6px; }
.treat-dict-card p { font-size: 0.8rem; color: var(--text-dim); line-height: 1.4; }

/* Cases in treatment */
.treat-cases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.treat-case-thumb {
  position: relative; border-radius: 8px; overflow: hidden; text-decoration: none; color: var(--text);
}
.treat-case-thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform 0.3s; }
.treat-case-thumb:hover img { transform: scale(1.05); }
.treat-case-thumb span { display: block; padding: 8px; font-size: 0.78rem; color: var(--text-dim); }
.treat-more-link { color: var(--gold); text-decoration: none; font-size: 0.9rem; }
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }

/* Treatment CTA bottom */
.treat-cta-bottom { padding: 80px 0; }
.treat-cta-card {
  background: linear-gradient(135deg, rgba(27,58,92,0.08), rgba(27,58,92,0.03));
  border: 1px solid rgba(27,58,92,0.15); border-radius: 16px; padding: 48px;
  text-align: center;
}
.treat-cta-card h3 { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 24px; }

/* === DOCTORS PAGE === */
.doctors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.doctor-card {
  display: flex; flex-direction: column; padding: 0;
  background: rgba(15,27,45,0.03); border: 1px solid rgba(15,27,45,0.06);
  border-radius: 16px; text-decoration: none; color: var(--text);
  overflow: hidden; transition: all 0.3s;
}
.doctor-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.doctor-card-photo { height: 280px; overflow: hidden; background: rgba(15,27,45,0.02); }
.doctor-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.doctor-card:hover .doctor-card-photo img { transform: scale(1.05); }
.doctor-card-initial {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: var(--gold); font-family: var(--font-serif);
}
.doctor-card-info { padding: 24px; }
.doctor-card-title { font-size: 0.75rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; }
.doctor-card-name { font-size: 1.4rem; font-family: var(--font-serif); margin: 4px 0 2px; }
.doctor-card-en { font-size: 0.78rem; color: var(--text-dim); display: block; margin-bottom: 12px; }
.doctor-card-specs { display: flex; gap: 6px; flex-wrap: wrap; }
.doctor-card-specs span {
  background: rgba(15,27,45,0.05); border: 1px solid rgba(15,27,45,0.08);
  padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; color: var(--text-dim);
}
.doctor-card-arrow {
  padding: 16px 24px; font-size: 0.8rem; color: var(--gold); opacity: 0.5;
  transition: opacity 0.3s; text-align: right;
}
.doctor-card:hover .doctor-card-arrow { opacity: 1; }

/* Doctor Detail */
.doctor-profile { padding: 80px 0 40px; }
.doctor-profile-grid { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.doctor-profile-photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 16px; }
.doctor-profile-initial {
  width: 100%; aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center;
  background: rgba(27,58,92,0.08); border-radius: 16px; font-size: 6rem;
  color: var(--gold); font-family: var(--font-serif);
}
.doctor-profile-title { font-size: 0.8rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.12em; }
.doctor-profile-name { font-family: var(--font-serif); font-size: 2.4rem; margin: 8px 0 4px; }
.doctor-profile-en { font-size: 0.9rem; color: var(--text-dim); display: block; margin-bottom: 20px; }
.doctor-greeting {
  font-family: var(--font-serif); font-size: 1.1rem; font-style: italic;
  color: var(--gold); border-left: 3px solid var(--gold); padding-left: 16px;
  margin: 20px 0; line-height: 1.6;
}
.doctor-philosophy { color: var(--text-dim); font-size: 0.92rem; line-height: 1.6; margin-bottom: 16px; }
.doctor-spec-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.spec-tag {
  background: rgba(27,58,92,0.08); color: var(--gold); border: 1px solid rgba(27,58,92,0.15);
  padding: 6px 14px; border-radius: 20px; font-size: 0.82rem;
}

.doctor-credentials { padding: 40px 0; }
.cred-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.cred-block {
  padding: 24px; background: rgba(15,27,45,0.03);
  border: 1px solid rgba(15,27,45,0.06); border-radius: 12px;
}
.cred-block h3 { font-size: 0.8rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.cred-block ul { list-style: none; padding: 0; }
.cred-block li { padding: 4px 0; font-size: 0.88rem; color: var(--text-dim); line-height: 1.5; }
.cred-year { color: var(--gold); font-weight: 600; }

.doctor-treatments, .doctor-cases, .doctor-cta { padding: 40px 0; }
.doctor-section-title {
  font-family: var(--font-serif); font-size: 1.4rem; margin-bottom: 24px;
  color: var(--gold);
}
.doctor-treat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.doctor-treat-card {
  padding: 20px; background: rgba(15,27,45,0.03); border: 1px solid rgba(15,27,45,0.06);
  border-radius: 12px; text-decoration: none; color: var(--text); transition: all 0.3s;
}
.doctor-treat-card:hover { border-color: var(--gold); }
.doctor-treat-card h4 { font-size: 1rem; margin-bottom: 4px; }
.doctor-treat-card p { font-size: 0.82rem; color: var(--text-dim); line-height: 1.4; }
.doctor-cases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }

/* === ABOUT / MISSION PAGE === */
.mission-statement { padding: 80px 0; }
.mission-manifesto { max-width: 700px; margin: 0 auto; text-align: center; }
.mission-quote-mark { font-family: var(--font-serif); font-size: 6rem; line-height: 1; color: var(--gold); opacity: 0.3; }
.mission-big-text { font-family: var(--font-serif); font-size: 1.5rem; line-height: 2; }
.mission-big-text em { color: var(--gold); font-style: normal; }
.mission-big-text strong { color: var(--text); }
.mission-author { margin-top: 24px; color: var(--text-dim); font-size: 0.9rem; }

.mission-values { padding: 60px 0; }
.mission-section-title {
  font-family: var(--font-serif); font-size: 1.8rem; margin-bottom: 40px;
  text-align: center; color: var(--gold);
}
.values-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.value-card {
  padding: 32px; background: rgba(15,27,45,0.03); border: 1px solid rgba(15,27,45,0.06);
  border-radius: 16px; transition: all 0.3s;
}
.value-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.value-num { font-family: var(--font-serif); font-size: 2rem; color: var(--gold); opacity: 0.3; margin-bottom: 8px; }
.value-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.value-card p { color: var(--text-dim); font-size: 0.88rem; line-height: 1.6; }

.mission-equipment { padding: 60px 0; background: rgba(15,27,45,0.015); }
.mission-equip-desc { text-align: center; color: var(--text-dim); margin-bottom: 40px; }
.equip-showcase { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.equip-card {
  padding: 24px; text-align: center; background: rgba(15,27,45,0.03);
  border: 1px solid rgba(15,27,45,0.06); border-radius: 12px; transition: all 0.3s;
}
.equip-card:hover { border-color: var(--gold); }
.equip-icon { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--gold); }
.equip-icon svg { width: 100%; height: 100%; }
.equip-card h4 { font-size: 0.95rem; margin-bottom: 8px; }
.equip-card p { color: var(--text-dim); font-size: 0.8rem; line-height: 1.5; }

.mission-gallery { padding: 60px 0; }
.gallery-masonry {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.gallery-masonry-item {
  position: relative; border-radius: 12px; overflow: hidden;
}
.gallery-masonry-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform 0.5s; }
.gallery-masonry-item:hover img { transform: scale(1.05); }
.gallery-masonry-item span {
  position: absolute; bottom: 12px; left: 12px; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: rgba(15,27,45,0.6);
  background: rgba(0,0,0,0.4); padding: 4px 10px; border-radius: 4px; backdrop-filter: blur(4px);
}

/* === VISIT GUIDE PAGE === */
.visit-tabs { padding-top: 20px; }
.visit-tab-bar { display: flex; gap: 8px; border-bottom: 1px solid rgba(15,27,45,0.08); }
.visit-tab {
  padding: 12px 24px; background: none; border: none; color: var(--text-dim);
  cursor: pointer; font-size: 0.9rem; font-weight: 500; position: relative;
  transition: color 0.3s;
}
.visit-tab.active { color: var(--gold); }
.visit-tab.active::after {
  content: ''; position: absolute; left: 0; bottom: -1px;
  width: 100%; height: 2px; background: var(--gold);
}

.visit-section { padding: 40px 0 60px; }
.visit-location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.visit-map-wrap { min-height: 300px; }
.map-static {
  background: rgba(15,27,45,0.03); border: 1px solid rgba(15,27,45,0.06);
  border-radius: 16px; padding: 40px; text-align: center; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.map-pin { color: var(--gold); }
.map-address { font-size: 1rem; color: var(--text); }
.map-naver-btn {
  color: var(--gold); text-decoration: none; font-size: 0.88rem;
  border: 1px solid var(--gold); padding: 10px 24px; border-radius: 8px;
  transition: all 0.3s; display: inline-block;
}
.map-naver-btn:hover { background: var(--gold); color: var(--bg); }

.visit-info-cards { display: flex; flex-direction: column; gap: 16px; }
.visit-info-card {
  padding: 20px; background: rgba(15,27,45,0.03);
  border: 1px solid rgba(15,27,45,0.06); border-radius: 12px;
}
.visit-info-card h3 { font-size: 0.9rem; color: var(--gold); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.visit-info-card h3 svg { flex-shrink: 0; }
.visit-info-card p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.5; }
.visit-phone-link { color: var(--gold); text-decoration: none; font-size: 1.2rem; font-weight: 700; }

/* Hours table */
.hours-table-wrap { max-width: 700px; margin: 0 auto; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td {
  padding: 14px 16px; text-align: left; font-size: 0.9rem;
  border-bottom: 1px solid rgba(15,27,45,0.06);
}
.hours-table th { color: var(--gold); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }
.hours-table tr.closed td { color: var(--text-dim); opacity: 0.5; }
.hours-notice { margin-top: 24px; }
.hours-notice p { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 4px; }

/* Price guide */
.price-group { margin-bottom: 32px; }
.price-group-title { font-family: var(--font-serif); font-size: 1.1rem; color: var(--gold); margin-bottom: 12px; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td {
  padding: 12px 16px; text-align: left; font-size: 0.88rem;
  border-bottom: 1px solid rgba(15,27,45,0.06);
}
.price-table th { color: var(--gold); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; }
.price-note { font-size: 0.8rem; color: var(--text-dim); }
.price-notice { margin-top: 24px; padding: 20px; background: rgba(15,27,45,0.02); border-radius: 8px; }
.price-notice p { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 4px; }

/* === RESPONSIVE — NEW PAGES === */
@media (max-width: 900px) {
  .treat-grid.core, .treat-grid.standard { grid-template-columns: 1fr; }
  .treat-hero-title { font-size: 1.8rem; }
  .doctor-profile-grid { grid-template-columns: 1fr; }
  .doctor-profile-photo img { max-width: 250px; }
  .doctors-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .visit-location-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 600px) {
  .treat-card { padding: 16px; gap: 12px; }
  .treat-card-icon { width: 36px; height: 36px; }
  .treat-detail-hero { padding: 100px 0 24px; }
  .treat-hero-title { font-size: 1.4rem; }
  .treat-section { padding: 32px 0; }
  .treat-section-title { font-size: 1.2rem; }
  .treat-cta-inner { padding: 28px; }
  .treat-cta-card { padding: 28px; }
  .doctors-grid { grid-template-columns: 1fr; }
  .doctor-card-photo { height: 200px; }
  .doctor-profile-grid { gap: 24px; }
  .doctor-profile-name { font-size: 1.8rem; }
  .mission-big-text { font-size: 1.1rem; }
  .equip-showcase { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .gallery-masonry { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .visit-tab { padding: 10px 16px; font-size: 0.82rem; }
}

/* ============================================
   Phase 2-5 ADDITIONS
   Cases card images, Dict auto-link, Region SEO,
   Admin expanded forms, GSAP scroll progress
   ============================================ */

/* === Case Card - Split Before/After === */
.case-card-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--gray-900, #111);
}
.case-card-images > div { position: relative; overflow: hidden; }
.case-card-images img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.case-card:hover .case-card-images img { transform: scale(1.05); }
.case-card-before:only-child { grid-column: 1/-1; }
.case-img-label {
  position: absolute; top: 8px; left: 8px;
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: #fff; background: rgba(0,0,0,0.5); padding: 3px 8px; border-radius: 4px;
}
.case-img-label.after { background: rgba(37,99,235,0.7); }

/* After image blur overlay */
.case-card-after.blurred img {
  filter: blur(12px) brightness(0.7);
}
.case-card-after .blur-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; gap: 4px; font-size: 0.75rem; background: rgba(0,0,0,0.2);
}

/* Case Detail - after locked */
.case-pair-img.after-locked { position: relative; }
.case-pair-img.after-locked .blurred-img { filter: blur(16px) brightness(0.7); }
.after-lock-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: #fff; background: rgba(0,0,0,0.3);
}
.lock-login-btn {
  display: inline-block; padding: 8px 24px; border-radius: 8px;
  background: #2563eb; color: #fff; font-size: 0.9rem; font-weight: 600;
  text-decoration: none; transition: background 0.2s;
}
.lock-login-btn:hover { background: #1d4ed8; }

/* Case patient info & badges */
.case-patient-info {
  font-size: 0.78rem; color: var(--text-secondary, #94a3b8);
  margin-top: 4px;
}
.case-detail-badges {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;
}
.detail-badge {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 500;
  background: rgba(15,27,45,0.06); color: var(--text-secondary, #94a3b8);
  border: 1px solid rgba(15,27,45,0.08);
}
.detail-badge.doctor { background: rgba(37,99,235,0.1); border-color: rgba(37,99,235,0.3); color: #93b4ff; }

/* === Dictionary Auto-Link === */
.dict-auto-link {
  color: #60a5fa;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s;
}
.dict-auto-link:hover { color: #93c5fd; text-decoration-style: solid; }

/* === Region SEO Pages === */
.region-hero {
  padding: 120px 0 60px;
  background: linear-gradient(180deg, var(--bg-primary, #0a1128) 0%, rgba(10,17,40,0.9) 100%);
}
.region-content {
  padding: 60px 0;
}
.region-content-body {
  font-size: 1.05rem; line-height: 1.9; color: var(--text-secondary, #94a3b8);
  max-width: 800px;
}
.region-content-body h2 { font-size: 1.3rem; font-weight: 700; color: #fff; margin: 32px 0 16px; }
.region-content-body p { margin-bottom: 16px; }
.region-nearby {
  margin-top: 24px; padding: 16px; border-radius: 12px;
  background: rgba(15,27,45,0.03); border: 1px solid rgba(15,27,45,0.06);
}
.nearby-label { font-size: 0.8rem; font-weight: 600; color: #60a5fa; margin-bottom: 4px; }
.region-treat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px;
}
.region-treat-card {
  display: block; padding: 24px; border-radius: 16px;
  background: rgba(15,27,45,0.03); border: 1px solid rgba(15,27,45,0.06);
  text-decoration: none; transition: all 0.3s ease;
}
.region-treat-card:hover {
  background: rgba(15,27,45,0.06); transform: translateY(-2px);
  border-color: rgba(37,99,235,0.3);
}
.region-treat-card .treat-icon { font-size: 2rem; margin-bottom: 12px; }
.region-treat-card h4 { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 6px; }
.region-treat-card p { font-size: 0.85rem; color: var(--text-secondary, #94a3b8); }

.region-case-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px;
}
.region-case-card {
  display: block; border-radius: 12px; overflow: hidden;
  background: rgba(15,27,45,0.03); border: 1px solid rgba(15,27,45,0.06);
  text-decoration: none; transition: transform 0.3s, border-color 0.3s;
}
.region-case-card:hover { transform: translateY(-2px); border-color: rgba(37,99,235,0.3); }
.region-case-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.region-case-card .card-body { padding: 12px 16px; }
.region-case-card h4 { font-size: 0.9rem; color: #fff; }

.region-faq-item {
  padding: 16px 0; border-bottom: 1px solid rgba(15,27,45,0.06);
}
.region-faq-item summary {
  font-size: 1rem; font-weight: 500; color: #fff; cursor: pointer;
  list-style: none; padding-right: 24px; position: relative;
}
.region-faq-item summary::after {
  content: '+'; position: absolute; right: 0; top: 0; font-size: 1.4rem; color: #60a5fa;
}
.region-faq-item[open] summary::after { content: '-'; }
.region-faq-item .faq-answer {
  margin-top: 12px; font-size: 0.92rem; line-height: 1.7; color: var(--text-secondary, #94a3b8);
}

.region-info-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px;
}
.region-info-card {
  padding: 20px; border-radius: 12px;
  background: rgba(15,27,45,0.03); border: 1px solid rgba(15,27,45,0.06);
}
.region-info-card h3 { font-size: 0.85rem; font-weight: 600; color: #60a5fa; margin-bottom: 8px; }
.region-info-card p { font-size: 0.92rem; line-height: 1.6; color: var(--text-secondary, #94a3b8); }
.region-info-card a { color: #93c5fd; }
.region-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.region-treatments, .region-cases, .region-faq, .region-map {
  padding: 60px 0;
}
.section-heading {
  font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 28px;
  letter-spacing: -0.02em;
}

/* Region list page */
.regions-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.region-list-card {
  display: block; padding: 24px; border-radius: 12px;
  background: rgba(15,27,45,0.03); border: 1px solid rgba(15,27,45,0.06);
  text-decoration: none; transition: all 0.3s;
}
.region-list-card:hover { background: rgba(15,27,45,0.06); border-color: rgba(37,99,235,0.3); }
.region-list-card h3 { font-size: 1.05rem; font-weight: 600; color: #fff; margin-bottom: 4px; }
.region-list-card p { font-size: 0.85rem; color: var(--text-secondary, #94a3b8); }

/* === Admin Expanded Form Styles === */
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-section-title {
  font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: #64748b; margin: 20px 0 12px; padding-bottom: 8px;
  border-bottom: 1px solid #1e293b;
}

/* Region autocomplete */
.region-autocomplete-wrap { position: relative; }
.region-suggestions {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 100;
  background: #1e293b; border: 1px solid #334155; border-radius: 8px;
  max-height: 200px; overflow-y: auto; box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.region-suggestion-item {
  padding: 10px 14px; cursor: pointer; font-size: 0.88rem; color: #e2e8f0;
  border-bottom: 1px solid rgba(15,27,45,0.05);
}
.region-suggestion-item:hover { background: rgba(37,99,235,0.15); }

/* Notice thumbnail in list */
.notice-thumb {
  width: 48px; height: 48px; border-radius: 6px; object-fit: cover;
  margin-right: 12px; flex-shrink: 0;
}
.notice-images {
  margin: 20px 0;
}
.notice-detail-img {
  width: 100%; max-width: 600px; border-radius: 12px; margin-bottom: 12px;
}

/* Notice thumb upload in admin */
.notice-thumb-upload {
  display: flex; align-items: center; gap: 10px;
}
.notice-thumb-upload .img-slot-preview { width: 60px; height: 60px; }
.notice-thumb-upload .img-slot-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.btn-sm {
  padding: 6px 14px; font-size: 0.8rem; border-radius: 6px;
  background: #334155; color: #e2e8f0; border: none; cursor: pointer;
}
.btn-sm:hover { background: #475569; }

/* Dropzone small variant */
.dropzone-sm { min-height: 80px; }
.dropzone-sm .dropzone-msg p { font-size: 0.85rem; }

/* === GSAP Scroll Progress Bar (see v4 micro-interaction section below) === */

/* === Responsive for new features === */
@media (max-width: 768px) {
  .case-card-images { aspect-ratio: 4/3; }
  .form-row-2 { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
  .region-treat-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .region-case-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .region-info-grid { grid-template-columns: 1fr 1fr; }
  .region-cta { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .region-case-grid { grid-template-columns: 1fr; }
  .region-info-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════
   MICRO-INTERACTION & SCROLL ANIMATION v4
   Ripple · Glass Glow · Card Shine · Shimmer
   Velocity Skew · Section Morph · Spring Hover
   ════════════════════════════════════════════ */

/* --- Ripple Effect --- */
@keyframes rippleExpand {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

/* --- Card Shine Overlay --- */
.card-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  z-index: 2;
  transition: opacity 0.4s ease;
  opacity: 0;
}

/* --- Glass Active Glow (mouse tracking) --- */
.glass-active {
  background-image: radial-gradient(
    circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.08) 30%,
    transparent 60%
  ) !important;
}

.dark-section .glass-active {
  background-image: radial-gradient(
    circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(42, 90, 143, 0.15) 0%,
    rgba(42, 90, 143, 0.05) 30%,
    transparent 60%
  ) !important;
}

/* --- Glass Shimmer (scroll-triggered light sweep) --- */
.glass-shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
  z-index: 3;
}

/* --- Character reveal animation --- */
.char-reveal {
  display: inline-block;
  will-change: transform, opacity;
}

/* --- GSAP word split --- */
.gsap-word {
  display: inline-block;
  will-change: transform, opacity;
  transform-style: preserve-3d;
}

/* --- Section visible state --- */
.section-visible {
  --section-entered: 1;
}

/* --- Nav dark zone (over dark sections) --- */
#nav.nav-dark-zone:not(.scrolled) .nav-brand,
#nav.nav-dark-zone:not(.scrolled) .nav-booking,
#nav.nav-dark-zone:not(.scrolled) .nav-menu-btn {
  color: var(--dark-text);
}

#nav.nav-dark-zone:not(.scrolled) .nav-menu-btn {
  border-color: rgba(245, 247, 250, 0.2);
}

/* --- Enhanced scroll progress bar --- */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--cta-bright), var(--gold));
  z-index: 10000;
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
  will-change: transform;
  transition: opacity 0.5s ease;
  box-shadow: 0 0 10px rgba(42, 90, 143, 0.3), 0 0 20px rgba(42, 90, 143, 0.1);
}

/* --- Hover spring for buttons --- */
.hero-cta-btn,
.nav-booking,
.map-btn,
.treat-cta-btn {
  will-change: transform;
  transform-style: preserve-3d;
}

/* --- Enhanced card entrance transitions --- */
.pillar-card,
.h-card,
.equip-item,
.promise-item,
.cred-block {
  will-change: transform, opacity;
  transform-style: preserve-3d;
}

/* --- Velocity skew hint --- */
@media (min-width: 1025px) {
  .pillar-card,
  .h-card,
  .equip-item,
  .promise-item {
    transition: transform 0.5s var(--ease), box-shadow 0.5s ease, border-color 0.3s ease;
  }
}

/* --- Indicator dot enhancements --- */
.indicator-dot {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.indicator-dot.active {
  transform: scale(1.5);
  box-shadow: 0 0 8px rgba(42, 90, 143, 0.4);
}

/* --- Nav progress bar --- */
.nav-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--cta-bright));
  transition: width 0.1s linear;
  z-index: 1;
}

/* --- Floating call enhanced pulse --- */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(42, 90, 143, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(42, 90, 143, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(42, 90, 143, 0);
  }
}

.floating-call.visible {
  animation: pulseGlow 2s ease-in-out infinite;
}

/* --- Text reveal mask --- */
.text-reveal-mask {
  overflow: hidden;
  display: inline-block;
}

.text-reveal-mask > span {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.text-reveal-mask.revealed > span {
  transform: translateY(0);
}

/* --- Scroll velocity motion blur (desktop) --- */
@media (min-width: 1025px) {
  .section-heading,
  .pillars-title,
  .services-title,
  .equip-title,
  .promise-main-title {
    will-change: filter;
    transition: filter 0.15s ease-out;
  }
}

/* --- Counter pop animation --- */
.hero-stat-num {
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Enhanced card hover glow (for glass tracking) --- */
@media (min-width: 1025px) {
  .pillar-card::after,
  .h-card::after,
  .equip-item::after,
  .promise-item::after {
    transition: opacity 0.4s ease, background 0.3s ease;
  }
}

/* --- Mobile: disable heavy animations --- */
@media (max-width: 768px) {
  .card-shine,
  .glass-shimmer {
    display: none !important;
  }
  
  .char-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  
  .gsap-word {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ╔══════════════════════════════════════════════════════════════╗
   ║  COMPREHENSIVE MOBILE OPTIMIZATION — 2026-04-16            ║
   ║  Touch-first, performance-aware, accessibility-enhanced     ║
   ╚══════════════════════════════════════════════════════════════╝ */

/* ─── SAFE AREA (iPhone notch / Dynamic Island) ─── */
@supports (padding: max(0px)) {
  #nav {
    padding-left: max(clamp(1.5rem, 4vw, 3rem), env(safe-area-inset-left));
    padding-right: max(clamp(1.5rem, 4vw, 3rem), env(safe-area-inset-right));
  }
  .floating-call,
  .floating-cta-group {
    bottom: max(2rem, calc(env(safe-area-inset-bottom) + 1rem));
    right: max(2rem, calc(env(safe-area-inset-right) + 1rem));
  }
  .site-footer {
    padding-bottom: max(40px, env(safe-area-inset-bottom));
  }
  .full-menu .menu-content {
    padding-bottom: max(3rem, calc(env(safe-area-inset-bottom) + 2rem));
  }
}

/* ─── TOUCH TARGET MINIMUM (48px per WCAG 2.2) ─── */
@media (pointer: coarse) {
  .nav-menu-btn,
  .nav-booking,
  .nav-kakao,
  .filter-btn,
  .btn-load-more,
  .faq-search-clear,
  .chosung-btn,
  .dict-cat-btn,
  .btn-submit,
  .floating-call,
  .floating-btn,
  .back-link,
  .consent-view-btn,
  a.treat-card,
  .menu-link {
    min-height: 48px;
    min-width: 48px;
  }

  /* Larger tap targets for small buttons */
  .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  .chosung-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  /* Disable hover-only effects */
  .case-card:hover,
  .blog-card:hover,
  .treat-card:hover {
    transform: none;
  }

  /* Remove custom cursor references */
  body, * { cursor: auto !important; }
}

/* ─── TABLET (769px – 1024px) ─── */
@media (max-width: 1024px) {
  /* Hero title sizing */
  .hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
  }

  /* Section padding tighter */
  :root {
    --section-rhythm: clamp(4rem, 10vw, 10rem);
    --chapter-rhythm: clamp(3rem, 6vw, 6rem);
  }

  /* Container max widths */
  .container, [class*="-inner"] {
    padding-left: clamp(1.5rem, 4vw, 3rem);
    padding-right: clamp(1.5rem, 4vw, 3rem);
  }

  /* Horizontal scroll cards - better sizing */
  .h-scroll-track {
    gap: 1rem;
    padding: 0 1.5rem;
  }
}

/* ─── MOBILE PRIMARY (max-width: 768px) — COMPREHENSIVE ─── */
@media (max-width: 768px) {

  /* === GLOBAL MOBILE TYPOGRAPHY === */
  html { font-size: 15px; }

  h1 { font-size: clamp(1.6rem, 6vw, 2.4rem) !important; }
  h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  h3 { font-size: clamp(1.1rem, 4vw, 1.4rem); }

  /* Tighter section spacing */
  :root {
    --section-rhythm: clamp(3rem, 8vw, 6rem);
    --chapter-rhythm: clamp(2rem, 5vw, 4rem);
  }

  /* === NAV MOBILE === */
  #nav {
    padding: 1rem clamp(1rem, 3vw, 1.5rem);
  }
  #nav.scrolled {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  .nav-brand {
    font-size: 1.2rem;
  }
  .nav-menu-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
  }
  .nav-booking span { display: none; }
  .nav-booking {
    padding: 0.5rem 0.8rem;
    border-radius: 50%;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
  }
  .nav-booking svg { width: 18px; height: 18px; }

  /* Kakao nav button mobile */
  .nav-kakao span { display: none; }
  .nav-kakao {
    padding: 0;
    border-radius: 50%;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
  }
  .nav-kakao svg { width: 20px; height: 20px; }

  /* Floating CTA group mobile */
  .floating-cta-group {
    bottom: 1.25rem;
    right: 1.25rem;
    gap: 0.6rem;
  }
  .floating-btn {
    width: 48px;
    height: 48px;
  }

  /* Hero CTA wrap mobile */
  .hero-cta-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .hero-cta-kakao {
    text-align: center;
    justify-content: center;
  }

  /* Contact actions mobile */
  .contact-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* === FULL MENU MOBILE === */
  .full-menu {
    clip-path: circle(0% at calc(100% - 2rem) 1.5rem);
  }
  .full-menu.open {
    clip-path: circle(150% at calc(100% - 2rem) 1.5rem);
  }
  .menu-content {
    padding: 5rem 1.5rem 2rem;
    justify-content: flex-start;
    padding-top: 6rem;
  }
  .menu-link {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    padding: 0.6rem 0;
    font-weight: 300;
  }
  .menu-link:hover span {
    transform: translateX(0.5rem);
  }
  .menu-footer {
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 2rem;
    margin-top: 2rem;
  }

  /* === HERO MOBILE === */
  .hero {
    min-height: 100svh;
  }
  .hero-content {
    padding: 0 1.5rem;
  }
  .hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem) !important;
  }
  .hero-title .title-line {
    line-height: 1.2;
  }
  .hero-subtitle {
    font-size: clamp(0.85rem, 3vw, 1.1rem);
  }
  .hero-cta-row {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  .hero-cta-btn {
    width: 100%;
    text-align: center;
    padding: 1rem 2rem;
    font-size: 0.75rem;
  }
  .hero-bottom {
    padding: 0 1.5rem;
  }
  .hero-stats {
    width: 100%;
  }
  .hero-stat-num {
    font-size: clamp(1.6rem, 6vw, 2.5rem);
  }
  .hero-stat-label {
    font-size: 0.7rem;
  }

  /* === STORY / NARRATIVE MOBILE === */
  .story-line {
    min-height: 70vh;
    min-height: 70dvh;
    padding: 3rem 1.5rem;
  }

  /* === PILLARS / CARDS MOBILE === */
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 100%;
  }
  .pillar-card {
    padding: 1.5rem;
  }

  /* === HORIZONTAL SCROLL MOBILE === */
  .h-scroll-track {
    gap: 1rem;
    padding: 0 1.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .h-card {
    flex: 0 0 85vw;
    min-height: 380px;
    scroll-snap-align: center;
  }

  /* === PROMISE SECTION MOBILE === */
  .promise-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .promise-item {
    padding: 1.5rem;
  }

  /* === EQUIPMENT GRID MOBILE === */
  .equip-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .equip-item {
    padding: 1.25rem;
  }

  /* === DIRECTOR SECTION MOBILE === */
  .director-layout {
    gap: 2rem;
  }
  .director-visual {
    max-width: 280px;
    margin: 0 auto;
  }

  /* === CONTACT SECTION MOBILE === */
  .contact-layout {
    gap: 2.5rem;
  }

  /* === IMAGE GALLERY MOBILE === */
  .gallery-item {
    flex: 0 0 260px;
    height: 160px;
  }

  /* === FLOATING CTA — BIGGER ON MOBILE === */
  .floating-call {
    width: 52px;
    height: 52px;
    bottom: 1.5rem;
    right: 1.5rem;
  }
  .floating-call svg {
    width: 22px;
    height: 22px;
  }
  .floating-cta-group {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  .floating-cta-group .floating-btn {
    width: 52px;
    height: 52px;
  }
  .floating-cta-group .floating-btn svg {
    width: 22px;
    height: 22px;
  }

  /* === SUB-PAGE HERO MOBILE === */
  .sub-page .sub-page-content {
    padding-top: 70px;
  }
  .page-hero-mini {
    padding: 3rem 0 1.5rem;
  }
  .page-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  /* === CASE/BLOG/NOTICE GRIDS MOBILE === */
  .cases-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .case-card-body {
    padding: 0.75rem;
  }
  .case-card-body h3 {
    font-size: 0.85rem;
  }
  .case-meta {
    font-size: 0.7rem;
    gap: 0.5rem;
  }

  .blogs-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .blog-card-body {
    padding: 1rem;
  }

  .notice-row {
    padding: 1rem 1.25rem;
  }
  .notice-row-left h3 {
    font-size: 0.9rem;
  }

  /* === DETAIL PAGES MOBILE === */
  .case-detail-header h1,
  .blog-detail-header h1,
  .notice-detail-header h1 {
    font-size: 1.4rem !important;
  }
  .case-detail-desc,
  .blog-detail-content,
  .notice-detail-content {
    font-size: 0.9rem;
    line-height: 1.85;
  }

  /* === FAQ MOBILE === */
  .faq-search-box {
    padding: 0.75rem 1rem;
  }
  .faq-item-header {
    padding: 1rem 1.25rem;
    min-height: 56px;
  }
  .faq-item-body {
    padding: 0 1.25rem 1.25rem;
  }

  /* === SIGNUP/LOGIN MOBILE === */
  .signup-card, .login-page-card {
    padding: 1.5rem;
    margin: 0 0.75rem;
    border-radius: 12px;
  }
  .signup-section, .login-section {
    padding: 2rem 0 4rem;
  }
  .signup-form input[type="text"],
  .signup-form input[type="tel"],
  .signup-form input[type="email"],
  .signup-form input[type="password"],
  .signup-form input[type="date"],
  .login-page-form input[type="tel"],
  .login-page-form input[type="password"] {
    padding: 0.85rem 1rem;
    font-size: 16px; /* Prevent iOS zoom on focus */
  }
  .btn-submit, .btn-login {
    width: 100%;
    padding: 1rem;
    font-size: 0.95rem;
    min-height: 52px;
  }
  .form-section-title {
    font-size: 1rem;
  }

  /* === TREATMENTS MOBILE === */
  .treat-detail-hero {
    padding: 90px 0 20px;
  }
  .treat-hero-title {
    font-size: clamp(1.4rem, 5vw, 2rem) !important;
  }
  .treat-section {
    padding: 28px 0;
  }
  .treat-card {
    padding: 16px;
    gap: 12px;
  }
  .treat-card-icon {
    width: 36px;
    height: 36px;
  }
  .treat-grid.core,
  .treat-grid.standard {
    grid-template-columns: 1fr;
  }
  .treat-cta-inner {
    padding: 24px;
  }
  .treat-cta-actions {
    flex-direction: column;
  }
  .treat-cta-actions .btn-primary,
  .treat-cta-actions .btn-outline {
    width: 100%;
    text-align: center;
  }

  /* === DOCTORS MOBILE === */
  .doctors-grid {
    grid-template-columns: 1fr;
  }
  .doctor-card-photo {
    height: 200px;
  }
  .doctor-profile-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .doctor-profile-photo img {
    max-width: 200px;
    margin: 0 auto;
    display: block;
  }
  .doctor-profile-name {
    font-size: 1.6rem;
  }

  /* === DICTIONARY MOBILE === */
  .dict-layout {
    grid-template-columns: 1fr;
  }
  .dict-sidebar {
    position: static;
    order: -1;
  }
  .dict-category-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
  .dict-cat-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  .dict-sidebar-title { display: none; }
  .dict-hero {
    padding: 100px 0 32px;
  }
  .dict-grid {
    grid-template-columns: 1fr;
  }

  /* === VISIT PAGE MOBILE === */
  .visit-location-grid {
    grid-template-columns: 1fr;
  }
  .visit-map-wrap {
    height: 250px;
  }
  .visit-tab {
    padding: 10px 14px;
    font-size: 0.82rem;
  }

  /* === ABOUT PAGE MOBILE === */
  .values-grid {
    grid-template-columns: 1fr;
  }
  .mission-big-text {
    font-size: 1.05rem;
  }

  /* === REGION SEO PAGES MOBILE === */
  .region-hero {
    padding: 90px 0 28px;
  }

  /* === IMAGE BREAK MOBILE === */
  .image-break img {
    height: 40vh;
  }

  /* === MANIFESTO MOBILE === */
  .manifesto-text .reveal-text {
    font-size: clamp(1.1rem, 3.5vw, 1.8rem);
  }

  /* === HOURS TABLE MOBILE === */
  .hours-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .hours-note {
    padding-left: 0;
    grid-column: span 1;
  }

  /* === CREDENTIALS MOBILE === */
  .credentials-grid {
    grid-template-columns: 1fr;
  }

  /* === MARQUEE MOBILE === */
  .marquee-track span {
    font-size: 0.55rem;
  }

  /* === DISABLE HEAVY DECORATIONS MOBILE === */
  .hero-depth-blur,
  .hero-anamorphic,
  .hero-light-leak,
  .chapter-orb,
  .chapter-aurora,
  .chapter-aurora-2,
  .chapter-stars,
  .chapter-stars-deep,
  .chapter-fog,
  .chapter-fog-2,
  .chapter-nebula,
  .chapter-light-cone,
  .chapter-rays-2,
  .story-ambient-glow,
  .story-ambient-pulse,
  .section-indicator,
  .cursor,
  .cursor-follower {
    display: none !important;
  }
}

/* ─── SMALL MOBILE (max-width: 480px) — COMPACT ─── */
@media (max-width: 480px) {

  /* === Tighter everything === */
  html { font-size: 14px; }

  #nav {
    padding: 0.75rem 1rem;
  }
  .nav-brand {
    font-size: 1.1rem;
  }
  .nav-menu-btn {
    padding: 0.45rem 1rem;
    font-size: 0.55rem;
  }

  /* Hero compact */
  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.8rem) !important;
  }
  .hero-subtitle {
    font-size: 0.82rem;
  }
  .hero-cta-btn {
    padding: 0.9rem 1.5rem;
    font-size: 0.72rem;
  }

  /* Full menu compact */
  .menu-content {
    padding: 5rem 1.25rem 1.5rem;
  }
  .menu-link {
    font-size: clamp(1.3rem, 5.5vw, 1.8rem);
    padding: 0.5rem 0;
  }

  /* Cards single column */
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .case-card-body h3 {
    font-size: 0.9rem;
    white-space: normal;
  }

  /* Horizontal scroll tighter */
  .h-card {
    flex: 0 0 90vw;
    min-height: 340px;
  }
  .h-scroll-track {
    padding: 0 1rem;
    gap: 0.75rem;
  }

  /* Equipment single column */
  .equip-grid {
    grid-template-columns: 1fr;
  }

  /* Promise tighter */
  .promise-item {
    padding: 1.25rem;
  }

  /* Filter bar */
  .filter-bar {
    gap: 0.3rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn {
    flex-shrink: 0;
    padding: 0.45rem 0.9rem;
    font-size: 0.78rem;
  }

  /* Signup/Login compact */
  .signup-card, .login-page-card {
    padding: 1.25rem;
    margin: 0 0.5rem;
  }

  /* Dictionary compact */
  .dict-hero {
    padding: 90px 0 24px;
  }
  .dict-search-bar input {
    font-size: 0.9rem;
    padding: 12px 10px;
  }
  .dict-card {
    padding: 14px;
  }
  .dict-card-term {
    font-size: 0.92rem;
  }

  /* Page titles compact */
  .page-title {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
  }

  /* Sub page padding */
  .sub-page .sub-page-content {
    padding-top: 60px;
  }
  .page-hero-mini {
    padding: 2.5rem 0 1rem;
  }

  /* Story compact */
  .story-line {
    min-height: 60vh;
    padding: 2rem 1.25rem;
  }

  /* Detail pages compact */
  .case-detail-header h1,
  .blog-detail-header h1,
  .notice-detail-header h1 {
    font-size: 1.25rem !important;
  }

  /* Floating call */
  .floating-call {
    width: 48px;
    height: 48px;
    bottom: 1rem;
    right: 1rem;
  }
  .floating-cta-group {
    bottom: 1rem;
    right: 1rem;
    gap: 0.5rem;
  }
  .floating-cta-group .floating-btn {
    width: 48px;
    height: 48px;
  }
}

/* ─── VERY SMALL MOBILE (max-width: 360px) ─── */
@media (max-width: 360px) {
  html { font-size: 13px; }

  #nav {
    padding: 0.7rem 0.75rem;
  }
  .nav-brand {
    font-size: 1rem;
  }
  .nav-menu-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.5rem;
  }
  .nav-booking {
    width: 38px;
    height: 38px;
  }

  .hero-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem) !important;
  }

  .menu-link {
    font-size: 1.2rem;
  }

  .h-card {
    flex: 0 0 92vw;
    min-height: 300px;
  }

  .signup-card, .login-page-card {
    padding: 1rem;
    margin: 0 0.25rem;
  }

  .case-card-images {
    aspect-ratio: 4/3;
  }
}

/* ─── LANDSCAPE MOBILE ─── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vw;
    min-height: auto;
    padding: 4rem 0;
  }
  .story-line {
    min-height: 60vh;
  }
  .menu-content {
    padding-top: 4rem;
  }
  .menu-link {
    font-size: 1.2rem;
    padding: 0.3rem 0;
  }
}

/* ─── iOS INPUT ZOOM PREVENTION ─── */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  select,
  textarea,
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  input[type="password"],
  input[type="date"],
  input[type="search"],
  input[type="number"] {
    font-size: 16px;
  }
}

/* ─── SMOOTH SCROLLING MOBILE PERFORMANCE ─── */
@media (max-width: 768px) {
  * {
    -webkit-tap-highlight-color: transparent;
  }

  /* Optimized scrolling */
  .h-scroll-track,
  .filter-bar,
  .dict-category-list,
  .menu-content {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* Prevent content overflow */
  body {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
  }

  /* Image optimization */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Table overflow */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ╔══════════════════════════════════════════════════════════════╗
   ║  MOBILE OPTIMIZATION PHASE 2 — 2026-04-16                  ║
   ║  Gaps & Edge-case fixes, Performance, Accessibility         ║
   ╚══════════════════════════════════════════════════════════════╝ */

/* ─── FOCUS VISIBLE — Keyboard users only ─── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* ─── PHILOSOPHY SPLIT — Missing mobile fix ─── */
@media (max-width: 768px) {
  .philosophy-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .split-left {
    padding: 3rem 1.5rem 1rem;
  }
  .split-right {
    padding: 2rem 1.5rem 4rem;
    border-left: none;
    border-top: 1px solid var(--white-ghost);
  }
  .split-sticky {
    position: relative;
    top: 0;
  }
  .split-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
  }
  .philosophy-card {
    padding: 2rem 0;
  }
  .philosophy-card h3 {
    font-size: 1.3rem;
  }
  .philosophy-card::before {
    left: 0;
  }
}

/* ─── DIRECTOR MOBILE — Comprehensive fixes ─── */
@media (max-width: 768px) {
  .director-full {
    padding: clamp(3rem, 8vw, 6rem) 0;
  }
  .director-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .director-visual {
    position: relative;
    top: 0;
    max-width: 280px;
    margin: 0 auto;
  }
  .frame-name {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .director-name-title {
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  }
  .director-quote {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    padding: 1.5rem;
  }
  .director-philosophy {
    padding: 1.2rem;
    font-size: 0.88rem;
  }
  .credentials-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .cred-block {
    padding: 1.2rem;
  }
}

/* ─── CONTACT SECTION — Missing mobile grid ─── */
@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .phone-number {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
  }
  .hours-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 1rem 0;
  }
  .hours-note {
    padding-left: 0;
    grid-column: span 1;
  }
  .transport-minimal {
    gap: 1rem;
  }
}

/* ─── HORIZONTAL SCROLL — Swipe-friendly ─── */
@media (max-width: 768px) {
  .horizontal-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 3rem;
  }
  .horizontal-wrap::-webkit-scrollbar { display: none; }
  .horizontal-track {
    padding: 0 1.5rem;
    gap: 1rem;
    cursor: auto;
  }
  .h-card {
    flex: 0 0 85vw;
    min-height: 380px;
    scroll-snap-align: center;
  }
  .h-card-intro {
    flex: 0 0 75vw;
  }
  .h-intro-text {
    font-size: 1.2rem;
  }
  .h-card-inner {
    padding: 1.5rem;
  }
  .h-card-title {
    font-size: 1.5rem;
  }
  .h-card-features span {
    font-size: 0.68rem;
    padding: 0.3rem 0.6rem;
  }
  /* Arrow always visible on mobile */
  .h-card .h-card-arrow {
    opacity: 0.6;
    transform: translateX(0);
  }
}

/* ─── SERVICE CARDS — Swipe indicator hint ─── */
@media (max-width: 768px) {
  .services-horizontal::after {
    content: '';
    display: block;
    text-align: center;
    padding: 0.5rem 0;
    font-size: 0;
  }
  .horizontal-wrap {
    position: relative;
  }
  /* Fade hint at right edge */
  .horizontal-wrap::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(90deg, transparent, var(--bg));
    pointer-events: none;
    opacity: 0.5;
    z-index: 2;
  }
}

/* ─── GALLERY STRIP — Smaller on mobile ─── */
@media (max-width: 480px) {
  .gallery-item {
    flex: 0 0 220px;
    height: 140px;
  }
  .gallery-caption {
    font-size: 0.55rem;
    padding: 1.5rem 0.8rem 0.8rem;
  }
}

/* ─── BLOG ARTICLE — Better readability ─── */
@media (max-width: 768px) {
  .blog-article {
    padding: 1.5rem 0 3rem;
  }
  .blog-article-body {
    font-size: 0.95rem;
    line-height: 1.9;
  }
  .blog-article-body h2 {
    font-size: 1.15rem;
    margin: 2rem 0 0.75rem;
  }
  .blog-article-body h3 {
    font-size: 1rem;
    margin: 1.5rem 0 0.5rem;
  }
  .blog-inline-figure {
    margin: 1.5rem -0.5rem;
  }
  .blog-cta-box {
    padding: 1.5rem;
  }
}

/* ─── CASE DETAIL — Pairs mobile ─── */
@media (max-width: 480px) {
  .case-pair-images {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .case-pair-label {
    padding: 0.25rem 0.6rem;
    font-size: 0.65rem;
  }
}

/* ─── NOTICE DETAIL — Legacy selectors kept for backward compat ─── */

/* ─── CONSENT MODAL — Full screen on mobile ─── */
@media (max-width: 480px) {
  .consent-modal-card {
    max-height: 90vh;
    border-radius: 12px 12px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
  }
  .consent-modal {
    align-items: flex-end;
    padding: 0;
  }
}

/* ─── TREATMENT DETAIL — Mobile sections ─── */
@media (max-width: 768px) {
  .treat-steps {
    gap: 16px;
  }
  .treat-step {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .treat-step-num {
    font-size: 1.2rem;
    min-width: auto;
  }
  .treat-benefits {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .treat-benefit {
    padding: 16px;
  }
  .treat-price-table th,
  .treat-price-table td {
    padding: 10px 8px;
    font-size: 0.82rem;
  }
  .treat-doctors {
    grid-template-columns: 1fr;
  }
  .treat-faq-q {
    padding: 14px 16px;
    gap: 8px;
    font-size: 0.88rem;
  }
  .treat-faq-a p {
    padding: 0 16px 16px 40px;
    font-size: 0.85rem;
  }
  .treat-dict-grid {
    grid-template-columns: 1fr 1fr;
  }
  .treat-cases-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

/* ─── DOCTOR DETAIL — Credentials mobile ─── */
@media (max-width: 768px) {
  .cred-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .doctor-treat-grid {
    grid-template-columns: 1fr;
  }
  .doctor-cases-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
  .doctor-greeting {
    font-size: 0.95rem;
  }
  .doctor-spec-tags {
    gap: 6px;
  }
  .spec-tag {
    padding: 4px 10px;
    font-size: 0.78rem;
  }
}

/* ─── REGION SEO — Mobile comprehensive ─── */
@media (max-width: 768px) {
  .region-hero {
    padding: 90px 0 28px;
  }
  .region-content-body {
    font-size: 0.95rem;
  }
  .region-content-body h2 {
    font-size: 1.15rem;
    margin: 24px 0 12px;
  }
  .region-treat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .region-treat-card {
    padding: 16px;
  }
  .region-treat-card .treat-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }
  .region-treat-card h4 {
    font-size: 0.9rem;
  }
  .region-treat-card p {
    font-size: 0.78rem;
  }
  .regions-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .region-list-card {
    padding: 16px;
  }
  .section-heading {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }
}

/* ─── MANIFESTO — Better mobile ─── */
@media (max-width: 480px) {
  .about-manifesto {
    min-height: auto;
    padding: clamp(2rem, 6vw, 4rem) 0;
  }
  .manifesto-number {
    font-size: clamp(4rem, 14vw, 8rem);
    margin-bottom: -1rem;
  }
  .manifesto-text .reveal-text {
    font-size: clamp(1rem, 3.5vw, 1.5rem);
  }
}

/* ─── PRICE TABLES — Responsive ─── */
@media (max-width: 600px) {
  .price-table, .hours-table {
    font-size: 0.82rem;
  }
  .price-table th, .price-table td,
  .hours-table th, .hours-table td {
    padding: 10px 8px;
  }
  .price-group-title {
    font-size: 0.95rem;
  }
}

/* ─── LOGIN GATE — Better CTA mobile ─── */
@media (max-width: 480px) {
  .gate-content {
    padding: 0.5rem;
  }
  .gate-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }
  .gate-text h3 {
    font-size: 0.9rem;
  }
  .gate-text p {
    font-size: 0.78rem;
  }
  .gate-actions {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
  }
  .gate-btn-login, .gate-btn-signup {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    min-height: 44px;
  }
  .login-required-card {
    padding: 2.5rem 1.5rem;
    margin: 1.5rem auto;
  }
  .login-required-card h2 {
    font-size: 1.2rem;
  }
  .login-req-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ─── ACTIVE STATES — Touch feedback ─── */
@media (pointer: coarse) {
  .nav-menu-btn:active,
  .nav-booking:active,
  .filter-btn:active,
  .faq-question:active,
  .menu-link:active,
  .hero-cta-btn:active,
  .map-btn:active,
  .faq-cta-btn:active,
  .treat-cta-btn:active,
  .btn-signup:active,
  .btn-load-more:active {
    transform: scale(0.97) !important;
    transition: transform 0.1s !important;
  }

  .case-card:active,
  .blog-card:active,
  .dict-card:active,
  .treat-card:active,
  .doctor-card:active,
  .region-list-card:active {
    transform: scale(0.98) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: transform 0.1s !important;
  }
}

/* ─── SCROLL-BEHAVIOR — Smooth for non-reduced ─── */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ─── DARK MODE — Media query system ─── */
@media (prefers-color-scheme: dark) {
  /* The site already uses dark sections — no override needed.
     This is a placeholder for future theming support. */
}

/* ─── CONTENT OVERFLOW GUARD ─── */
.container-wide,
.dict-container,
.blog-article,
.case-detail-section,
.notice-detail-section,
.signup-section,
.login-section {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ─── IMAGE LAZY LOAD PLACEHOLDER ─── */
img[loading="lazy"] {
  background: var(--surface-2);
  transition: opacity 0.3s ease;
}

/* ─── SELECTION STYLE ─── */
::selection {
  background: rgba(27, 58, 92, 0.25);
  color: var(--navy);
}

/* ─── PRINT — Extended ─── */
@media print {
  .floating-call,
  .full-menu,
  #nav,
  .section-indicator,
  .login-gate-banner,
  .consent-modal,
  .blackout-overlay,
  #scrollProgress {
    display: none !important;
  }
  .sub-page .sub-page-content {
    padding-top: 0;
  }
  a[href^="tel:"]::after {
    content: " (" attr(href) ")";
  }
}

/* ╔══════════════════════════════════════════════════════════════╗
   ║  MOBILE OPTIMIZATION PHASE 3 — 2026-04-16                  ║
   ║  Precision polish: layout, performance, typography, UX      ║
   ╚══════════════════════════════════════════════════════════════╝ */

/* ─── MOBILE PERFORMANCE: Disable heavy GPU effects ─── */
@media (max-width: 768px) {
  /* Kill grain overlay — saves compositing layer + GPU memory */
  body::after {
    display: none !important;
  }
  .grain {
    display: none !important;
  }

  /* Reduce blob animations to single simple blob */
  .mesh-blob-3,
  .mesh-blob-4,
  .mesh-blob-5 {
    display: none !important;
  }
  .mesh-blob-1,
  .mesh-blob-2 {
    animation-duration: 40s !important; /* Slower = less GPU repaints */
  }
  .hero-mesh {
    filter: blur(100px) saturate(1.0) !important; /* Simpler filter */
    opacity: 0.3 !important;
  }

  /* Simplify hero decorations */
  .hero-particles {
    animation: none !important;
    opacity: 0.3 !important;
  }
  .hero-scan-line {
    display: none !important;
  }
  .hero::after {
    display: none !important; /* Remove side text on mobile */
  }
  .hero-vignette {
    background: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 0%, rgba(10,22,40,0.5) 100%) !important;
  }

  /* Reduce marquee animation impact */
  .marquee-track {
    animation-duration: 45s !important;
  }

  /* Simplify section dividers */
  .section::after {
    display: none !important;
  }

  /* Reduce blackout complexity */
  .blackout-particles {
    display: none !important;
  }
  .blackout-light-ring {
    display: none !important;
  }
  .blackout-overlay::after {
    animation-duration: 1.5s !important;
  }

  /* Kill CSS-based will-change to reduce memory */
  .hero-content,
  .story-chapter-num,
  .chapter-orb {
    will-change: auto !important;
  }

  /* Simplify story chapter backgrounds */
  .story-chapter-dark {
    background: linear-gradient(180deg, var(--bg) 0%, #DDE4ED 30%, #C8D2E0 70%, var(--bg) 100%) !important;
  }
  .story-chapter-climax {
    background: linear-gradient(180deg, #040A14 0%, #0A1628 50%, #0F1B2D 100%) !important;
  }

  /* Reduce chapter-bg-fx paint areas */
  .chapter-bg-fx {
    opacity: 0.5 !important;
  }

  /* Simplify finale glow */
  .finale-glow,
  .finale-ring {
    display: none !important;
  }
}

/* ─── HERO SECTION — Mobile refinements ─── */
@media (max-width: 768px) {
  .hero {
    padding-bottom: 2rem;
  }
  .hero-content {
    padding: 0 1.25rem;
    gap: 0;
  }

  /* Hero tag — tighter */
  .hero-tag {
    margin-bottom: 2rem;
    gap: 0.6rem;
  }
  .tag-text {
    font-size: 0.55rem;
    letter-spacing: 0.2em;
  }
  .tag-line {
    width: 30px;
  }

  /* Hero title — optimal mobile reading */
  .hero-title {
    margin-bottom: 2rem !important;
  }
  .title-word {
    font-size: clamp(2.2rem, 9vw, 3.8rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
  }

  /* Hero subtitle */
  .hero-sub {
    font-size: 0.82rem;
    line-height: 1.6;
    max-width: 90%;
    margin: 0 auto;
  }

  /* Hero stats — horizontal scroll on very small screens */
  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    width: 100%;
  }
  .hero-stat {
    padding: 0.5rem 1rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-stat-num {
    font-size: clamp(1.5rem, 5.5vw, 2.2rem) !important;
    color: var(--dark-text) !important;
  }
  .hero-stat-unit {
    font-size: 0.8rem;
  }
  .hero-stat-label {
    font-size: 0.6rem;
    margin-top: 0.2rem;
    color: var(--dark-text-muted) !important;
  }
  .hero-stat-divider {
    display: none;
  }

  /* Hero CTA */
  .hero-cta-wrap {
    margin-top: 2rem;
    width: 100%;
    padding: 0 0.5rem;
  }
  .hero-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.15em !important;
    min-height: 52px;
    border-radius: 12px;
    background: rgba(42, 90, 143, 0.25) !important;
    border-color: rgba(42, 90, 143, 0.4) !important;
  }

  /* Hero bottom scroll hint */
  .hero-bottom {
    margin-top: 2rem;
  }
  .scroll-circle {
    width: 32px;
    height: 32px;
  }
  .hero-scroll-hint span {
    font-size: 0.5rem;
  }
}

/* ─── HERO — 480px ─── */
@media (max-width: 480px) {
  .hero-content {
    padding: 0 1rem;
  }
  .hero-tag {
    margin-bottom: 1.5rem;
  }
  .tag-text {
    font-size: 0.5rem;
  }
  .title-word {
    font-size: clamp(1.8rem, 8.5vw, 2.8rem) !important;
  }
  .hero-stat {
    padding: 0.4rem 0.6rem;
    min-width: 30%;
  }
  .hero-stat-num {
    font-size: clamp(1.3rem, 5vw, 1.8rem) !important;
  }
  .hero-stat-label {
    font-size: 0.55rem;
  }
  .hero-cta-btn {
    padding: 0.9rem 1.2rem !important;
    font-size: 0.72rem !important;
  }
}

/* ─── STORY NARRATIVE — Mobile perfection ─── */
@media (max-width: 768px) {
  .story-narrative {
    overflow: hidden;
  }
  .story-hero {
    min-height: 70vh !important;
    min-height: 70dvh !important;
    perspective: none !important;
  }
  .story-chapter {
    padding: 3rem 0;
  }
  .story-chapter-num {
    font-size: clamp(5rem, 18vw, 10rem) !important;
    opacity: 0.3 !important;
  }
  .story-line {
    min-height: auto !important;
    padding: 2.5rem 1.25rem !important;
  }
  .story-text {
    font-size: clamp(1rem, 3.2vw, 1.3rem) !important;
    line-height: 1.9 !important;
    letter-spacing: 0.01em;
  }
  .story-text.story-emphasis {
    font-size: clamp(1rem, 3vw, 1.5rem) !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
  }
  /* Story hero content */
  .story-hero-content {
    padding: 0 1.25rem;
  }
  .story-hero-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
    line-height: 1.3 !important;
  }
}

/* ─── PILLARS SECTION — Better mobile cards ─── */
@media (max-width: 768px) {
  .pillars-section {
    padding: var(--section-rhythm) 0;
  }
  .pillars-title {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
    margin-bottom: 1.5rem;
  }
  .pillars-subtitle {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 2rem;
  }
  .pillars-grid {
    gap: 0.75rem !important;
  }
  .pillar-card {
    padding: 1.25rem !important;
    border-radius: 12px;
  }
  .pillar-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }
  .pillar-card h3 {
    font-size: 1.05rem !important;
    margin-bottom: 0.5rem;
  }
  .pillar-card p {
    font-size: 0.85rem !important;
    line-height: 1.7 !important;
  }
}

/* ─── SERVICES HORIZONTAL — Better mobile scroll ─── */
@media (max-width: 768px) {
  .services-horizontal {
    padding: var(--section-rhythm) 0;
  }
  .services-title {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
    padding: 0 1.25rem;
    margin-bottom: 1rem;
  }
  .services-subtitle {
    font-size: 0.88rem;
    padding: 0 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.7;
  }
  .horizontal-wrap {
    padding-bottom: 2rem !important;
    /* Better scroll indicator */
    mask-image: linear-gradient(to right, transparent 0%, black 3%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 90%, transparent 100%);
  }
  .horizontal-wrap::after {
    display: none !important; /* Remove old fade, use mask instead */
  }
  .h-card {
    border-radius: 16px !important;
    overflow: hidden;
  }
  .h-card-inner {
    padding: 1.25rem !important;
  }
  .h-card-num {
    font-size: 0.65rem !important;
  }
  .h-card-badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.6rem;
  }
  .h-card-title {
    font-size: 1.3rem !important;
    margin-bottom: 0.5rem;
  }
  .h-card-desc {
    font-size: 0.82rem !important;
    line-height: 1.65 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .h-card-features {
    gap: 0.3rem !important;
    margin-top: 0.75rem;
  }
  .h-card-features span {
    font-size: 0.62rem !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 6px;
  }
  .h-card-dict-link {
    font-size: 0.72rem;
    padding: 0.5rem 0;
    min-height: 40px;
    display: flex;
    align-items: center;
  }
  .h-card-patient-note {
    font-size: 0.78rem;
    padding: 0.75rem;
    margin-top: 0.75rem;
    border-radius: 8px;
  }
  /* Intro card */
  .h-card-intro {
    flex: 0 0 70vw !important;
  }
  .h-intro-text {
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
  }
  .h-intro-sub {
    font-size: 0.78rem;
  }
}

/* ─── EQUIPMENT — Mobile grid polish ─── */
@media (max-width: 768px) {
  .equip-title {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
  }
  .equip-subtitle {
    font-size: 0.85rem;
    line-height: 1.7;
  }
  .equip-grid {
    gap: 1px !important; /* Tight grid look */
  }
  .equip-item {
    padding: 1rem !important;
  }
  .equip-num {
    font-size: 0.6rem !important;
  }
  .equip-name-en {
    font-size: 0.9rem !important;
    line-height: 1.3;
  }
  .equip-desc {
    font-size: 0.75rem !important;
    line-height: 1.6 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .equip-benefit {
    font-size: 0.68rem;
    padding: 0.2rem 0.5rem;
  }
}

/* ─── PROMISE SECTION — Mobile readability ─── */
@media (max-width: 768px) {
  .promise-main-title {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
  }
  .promise-grid {
    gap: 1px !important;
    border-radius: 12px;
    overflow: hidden;
  }
  .promise-item {
    padding: 1.25rem !important;
  }
  .promise-num {
    font-size: 0.6rem !important;
  }
  .promise-item h3 {
    font-size: 1rem !important;
    margin-bottom: 0.5rem;
  }
  .promise-item p {
    font-size: 0.82rem !important;
    line-height: 1.7 !important;
  }
}

/* ─── DIRECTOR SECTION — Mobile portrait card ─── */
@media (max-width: 768px) {
  .director-full {
    padding: clamp(2.5rem, 6vw, 4rem) 0 !important;
  }
  .director-layout {
    gap: 1.5rem !important;
  }
  .director-visual {
    max-width: 220px !important;
    margin: 0 auto;
  }
  .frame-name {
    font-size: clamp(1.5rem, 5vw, 2.5rem) !important;
  }
  .frame-label,
  .frame-title {
    font-size: 0.6rem !important;
  }
  .director-name-title {
    font-size: clamp(1.1rem, 3vw, 1.5rem) !important;
    text-align: center;
  }
  .director-quote {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem) !important;
    padding: 1.25rem !important;
    line-height: 1.8 !important;
  }
  .director-philosophy {
    font-size: 0.85rem !important;
    padding: 1rem !important;
    line-height: 1.75 !important;
  }
  .credentials-grid {
    gap: 0.5rem !important;
  }
  .cred-block {
    padding: 1rem !important;
  }
  .cred-block h4 {
    font-size: 0.85rem !important;
  }
  .cred-block ul li {
    font-size: 0.8rem !important;
    line-height: 1.7;
  }
}

/* ─── CONTACT SECTION — Mobile phone-friendly ─── */
@media (max-width: 768px) {
  .contact-big, .contact-bg {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
  }
  .contact-layout {
    gap: 2rem !important;
  }
  .contact-left, .contact-right {
    text-align: center;
  }
  .contact-phone-big, .phone-number {
    font-size: clamp(1.5rem, 5vw, 2.2rem) !important;
    letter-spacing: 0.02em;
  }
  .contact-phone-big a, .phone-number a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(42, 90, 143, 0.08);
    border-radius: 12px;
    min-height: 52px;
    line-height: 1.4;
    width: 100%;
  }
  .contact-address {
    font-size: 0.85rem;
    line-height: 1.7;
  }
  .hours-row {
    padding: 0.75rem 0 !important;
  }
  .transport-minimal {
    text-align: center;
  }
  /* Map button full width */
  .map-btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    border-radius: 12px;
  }
}

/* ─── GALLERY — Smooth mobile scroll ─── */
@media (max-width: 768px) {
  .gallery-strip {
    padding: clamp(2rem, 5vw, 3rem) 0;
  }
  .gallery-track {
    gap: 0.5rem;
    padding: 0 0.5rem;
  }
  .gallery-item {
    flex: 0 0 200px !important;
    height: 130px !important;
    border-radius: 8px;
    overflow: hidden;
  }
  .gallery-caption {
    font-size: 0.5rem !important;
    padding: 1rem 0.5rem 0.5rem !important;
  }
}

/* ─── FULL MENU — Mobile scroll fix + better UX ─── */
@media (max-width: 768px) {
  .full-menu {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .menu-content {
    min-height: 100%;
    justify-content: flex-start !important;
    padding-top: 5rem !important;
    padding-bottom: 3rem !important;
    gap: 0;
  }
  .menu-links {
    flex: 1;
    gap: 0.25rem;
  }
  .menu-link {
    font-size: clamp(1.4rem, 5.5vw, 2rem) !important;
    padding: 0.75rem 0 !important;
    min-height: 52px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(245, 247, 250, 0.06);
  }
  .menu-link::after {
    opacity: 0.5 !important;
    font-size: 0.5rem !important;
  }
  .menu-footer {
    flex-direction: column !important;
    gap: 1rem !important;
    margin-top: 1.5rem !important;
    padding-top: 1.5rem !important;
  }
  .menu-footer-col p {
    font-size: 0.78rem !important;
  }
  .menu-label {
    font-size: 0.55rem !important;
  }
}

/* ─── SUB-PAGES — Consistent mobile padding ─── */
@media (max-width: 768px) {
  .container-wide {
    padding: 0 1.25rem !important;
  }
  .sub-page-content {
    padding-top: 65px !important;
  }
  .page-hero-mini {
    padding: 2rem 0 1rem !important;
  }
  .page-hero-mini .page-title {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
  }
  .page-hero-mini .page-subtitle {
    font-size: 0.85rem;
    line-height: 1.7;
  }
}

/* ─── FAQ — Mobile optimized (heavy page 116KB) ─── */
@media (max-width: 768px) {
  .faq-hero {
    padding: 80px 0 20px;
  }
  .faq-search-box {
    border-radius: 12px !important;
  }
  .faq-search-box input {
    font-size: 16px !important; /* Prevent iOS zoom */
    padding: 0.75rem 1rem;
  }
  .faq-cat-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap !important;
    gap: 0.3rem;
    padding-bottom: 4px;
  }
  .faq-cat-tabs::-webkit-scrollbar { display: none; }
  .faq-cat-tab {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    min-height: 40px;
    white-space: nowrap;
    border-radius: 8px;
  }
  .faq-item {
    border-radius: 8px !important;
    margin-bottom: 0.5rem;
  }
  .faq-item-header {
    padding: 0.85rem 1rem !important;
    min-height: 52px !important;
    gap: 0.75rem;
  }
  .faq-item-header h3 {
    font-size: 0.9rem !important;
    line-height: 1.5;
  }
  .faq-item-body {
    padding: 0 1rem 1rem !important;
    font-size: 0.85rem !important;
    line-height: 1.8 !important;
  }
  .faq-item-body p {
    font-size: 0.85rem !important;
  }
}

/* ─── DICTIONARY — Mobile sidebar-as-tabs ─── */
@media (max-width: 768px) {
  .dict-hero {
    padding: 80px 0 20px !important;
  }
  .dict-search-bar {
    border-radius: 12px;
  }
  .dict-search-bar input {
    font-size: 16px !important;
  }
  .dict-category-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap !important;
    padding-bottom: 4px;
  }
  .dict-category-list::-webkit-scrollbar { display: none; }
  .dict-cat-btn {
    flex-shrink: 0;
    white-space: nowrap;
    border-radius: 8px;
  }
  .dict-grid {
    gap: 0.75rem !important;
  }
  .dict-card {
    padding: 1rem !important;
    border-radius: 10px !important;
  }
  .dict-card-term {
    font-size: 0.95rem !important;
    margin-bottom: 0.25rem;
  }
  .dict-card-en {
    font-size: 0.72rem;
  }
  .dict-card-desc {
    font-size: 0.82rem !important;
    line-height: 1.7 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .chosung-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    gap: 2px;
    padding-bottom: 4px;
  }
  .chosung-bar::-webkit-scrollbar { display: none; }
  .chosung-btn {
    flex-shrink: 0;
    min-width: 36px;
    min-height: 36px;
    padding: 6px 8px !important;
    font-size: 0.78rem !important;
    border-radius: 6px;
  }
}

/* ─── TREATMENT DETAIL — Mobile precision ─── */
@media (max-width: 768px) {
  .treat-detail-hero {
    padding: 80px 0 16px !important;
  }
  .treat-hero-title {
    font-size: clamp(1.3rem, 4.5vw, 1.8rem) !important;
    line-height: 1.4 !important;
  }
  .treat-hero-desc {
    font-size: 0.85rem;
    line-height: 1.7;
  }
  .treat-section {
    padding: 20px 0 !important;
  }
  .treat-section-title {
    font-size: 1.1rem !important;
    margin-bottom: 1rem;
  }
  .treat-card {
    padding: 14px !important;
    border-radius: 10px;
  }
  .treat-card h4 {
    font-size: 0.92rem !important;
  }
  .treat-card p {
    font-size: 0.82rem !important;
    line-height: 1.65 !important;
  }
  .treat-step {
    padding: 14px !important;
    border-radius: 10px;
  }
  .treat-step-num {
    font-size: 1rem !important;
    min-width: 32px;
    min-height: 32px;
  }
  .treat-benefit {
    padding: 14px !important;
    border-radius: 10px;
  }
  .treat-benefit h4 {
    font-size: 0.9rem;
  }
  .treat-benefit p {
    font-size: 0.8rem;
    line-height: 1.65;
  }
  .treat-price-table {
    border-radius: 10px;
    overflow: hidden;
  }
  .treat-price-table th,
  .treat-price-table td {
    padding: 10px 6px !important;
    font-size: 0.78rem !important;
  }
  .treat-faq-q {
    padding: 12px 14px !important;
    font-size: 0.85rem !important;
    min-height: 48px;
  }
  .treat-faq-a p {
    padding: 0 14px 14px 36px !important;
    font-size: 0.82rem !important;
    line-height: 1.75 !important;
  }
  .treat-cta-inner {
    padding: 20px !important;
    border-radius: 12px;
  }
  .treat-cta-inner h3 {
    font-size: 1.1rem;
  }
  .treat-cta-inner p {
    font-size: 0.85rem;
  }
}

/* ─── CASES PAGE — Better mobile grid ─── */
@media (max-width: 768px) {
  .cases-grid {
    gap: 0.5rem !important;
  }
  .case-card {
    border-radius: 10px;
    overflow: hidden;
  }
  .case-card-images {
    aspect-ratio: 16/10;
  }
  .case-card-body {
    padding: 0.6rem !important;
  }
  .case-card-body h3 {
    font-size: 0.82rem !important;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .case-meta {
    font-size: 0.65rem !important;
    margin-top: 0.3rem;
  }
  .case-meta span {
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
  }
}

/* ─── BLOGS PAGE — Mobile card layout ─── */
@media (max-width: 768px) {
  .blogs-grid {
    gap: 0.75rem !important;
  }
  .blog-card {
    border-radius: 12px;
    overflow: hidden;
  }
  .blog-card-thumb {
    aspect-ratio: 16/9;
  }
  .blog-card-body {
    padding: 0.85rem !important;
  }
  .blog-card-body h3 {
    font-size: 1rem !important;
    line-height: 1.45;
    margin-bottom: 0.3rem;
  }
  .blog-card-body p {
    font-size: 0.82rem !important;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .blog-card-meta {
    font-size: 0.7rem;
    margin-top: 0.5rem;
  }
}

/* ─── NOTICES — Mobile row layout ─── */
@media (max-width: 768px) {
  .notice-list {
    gap: 0 !important;
  }
  .notice-row {
    padding: 0.85rem 1rem !important;
    min-height: 56px;
    border-radius: 0;
  }
  .notice-row-left h3 {
    font-size: 0.88rem !important;
    line-height: 1.45;
  }
  .notice-row-right {
    font-size: 0.7rem;
  }
  .notice-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
  }
}

/* ─── SIGNUP/LOGIN — Mobile form UX ─── */
@media (max-width: 768px) {
  .signup-section, .login-section {
    padding: 1.5rem 0 3rem !important;
  }
  .signup-card, .login-page-card {
    padding: 1.25rem !important;
    margin: 0 0.5rem !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 16px rgba(15,27,45,0.06) !important;
  }
  .signup-card h2, .login-page-card h2 {
    font-size: 1.3rem !important;
    margin-bottom: 1rem;
  }
  .form-group {
    margin-bottom: 0.75rem;
  }
  .form-group label {
    font-size: 0.82rem;
    margin-bottom: 0.3rem;
    font-weight: 500;
  }
  .signup-form input,
  .login-page-form input {
    border-radius: 10px !important;
    min-height: 48px;
  }
  .form-hint {
    font-size: 0.72rem;
    margin-top: 0.2rem;
  }
  .consent-section {
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
  }
  .consent-section label {
    font-size: 0.82rem;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .consent-section input[type="checkbox"] {
    min-width: 20px;
    min-height: 20px;
  }
  .btn-submit, .btn-login {
    border-radius: 12px !important;
    font-weight: 600;
    letter-spacing: 0.02em;
  }
}

/* ─── ABOUT PAGE — Mobile manifesto ─── */
@media (max-width: 768px) {
  .about-hero {
    padding: 80px 0 20px;
  }
  .about-manifesto {
    padding: clamp(2rem, 5vw, 3rem) 0 !important;
  }
  .manifesto-number {
    font-size: clamp(3rem, 12vw, 6rem) !important;
  }
  .values-grid {
    gap: 0.75rem !important;
  }
  .value-card {
    padding: 1.25rem !important;
    border-radius: 12px;
  }
  .value-card h3 {
    font-size: 1rem;
  }
  .value-card p {
    font-size: 0.82rem;
    line-height: 1.7;
  }
  .mission-big-text {
    font-size: 0.95rem !important;
    line-height: 1.85 !important;
  }
}

/* ─── VISIT PAGE — Mobile map + tabs ─── */
@media (max-width: 768px) {
  .visit-hero {
    padding: 80px 0 20px;
  }
  .visit-map-wrap {
    height: 220px !important;
    border-radius: 12px;
    overflow: hidden;
  }
  .visit-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }
  .visit-tabs::-webkit-scrollbar { display: none; }
  .visit-tab {
    flex-shrink: 0;
    white-space: nowrap;
    border-radius: 8px;
    min-height: 42px;
  }
  .visit-info-card {
    padding: 1.25rem;
    border-radius: 12px;
  }
  .visit-info-card h3 {
    font-size: 1rem;
  }
  .visit-info-card p, .visit-info-card li {
    font-size: 0.85rem;
    line-height: 1.7;
  }
}

/* ─── REGIONS — Mobile card list ─── */
@media (max-width: 768px) {
  .regions-grid {
    gap: 0.5rem !important;
  }
  .region-list-card {
    padding: 1rem !important;
    border-radius: 10px;
    min-height: 52px;
    display: flex;
    align-items: center;
  }
  .region-list-card h3 {
    font-size: 0.95rem;
  }
  .region-treat-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  .region-treat-card {
    padding: 1rem !important;
    border-radius: 10px;
  }
}

/* ─── DOCTOR DETAIL — Mobile profile ─── */
@media (max-width: 768px) {
  .doctor-profile-grid {
    gap: 1.5rem !important;
  }
  .doctor-profile-photo img {
    max-width: 180px !important;
  }
  .doctor-profile-name {
    font-size: 1.4rem !important;
    text-align: center;
  }
  .doctor-profile-title {
    font-size: 0.85rem;
    text-align: center;
  }
  .doctor-greeting {
    font-size: 0.88rem !important;
    line-height: 1.8 !important;
    padding: 1rem !important;
    border-radius: 10px;
  }
  .doctor-spec-tags {
    justify-content: center;
  }
  .spec-tag {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.8rem !important;
    border-radius: 6px;
  }
}

/* ─── CASE DETAIL — Mobile comparison ─── */
@media (max-width: 768px) {
  .case-detail-header {
    padding-bottom: 1rem;
  }
  .case-detail-desc {
    font-size: 0.88rem !important;
    line-height: 1.8 !important;
  }
  .case-pair-images {
    gap: 0.5rem !important;
  }
  .case-pair-images img {
    border-radius: 8px;
  }
  .case-pair-label {
    font-size: 0.6rem !important;
    padding: 0.2rem 0.5rem !important;
    border-radius: 4px;
  }
}

/* ─── BLOG DETAIL — Mobile article ─── */
@media (max-width: 768px) {
  .blog-article-body {
    font-size: 0.92rem !important;
    line-height: 1.85 !important;
  }
  .blog-article-body h2 {
    font-size: 1.1rem !important;
    margin: 1.75rem 0 0.6rem !important;
  }
  .blog-article-body h3 {
    font-size: 0.98rem !important;
    margin: 1.25rem 0 0.5rem !important;
  }
  .blog-article-body img {
    border-radius: 10px;
    margin: 1.25rem 0;
  }
  .blog-article-body blockquote {
    padding: 1rem;
    margin: 1.25rem 0;
    border-radius: 10px;
    font-size: 0.88rem;
  }
  .blog-cta-box {
    padding: 1.25rem !important;
    border-radius: 12px;
  }
  .blog-cta-box h3 {
    font-size: 1rem;
  }
  .blog-cta-box p {
    font-size: 0.82rem;
  }
}

/* ─── GLOBAL MOBILE TYPOGRAPHY REFINEMENTS ─── */
@media (max-width: 768px) {
  /* Consistent section label */
  .section-label {
    font-size: 0.58rem !important;
    letter-spacing: 0.2em !important;
    margin-bottom: 1.25rem !important;
    gap: 0.5rem !important;
  }
  .section-label::before {
    width: 18px !important;
  }

  /* Better line heights for readability */
  p {
    line-height: 1.75;
  }

  /* Letter spacing reduction on mobile */
  .nav-menu-btn,
  .hero-cta-btn,
  .tag-text,
  .section-label {
    letter-spacing: 0.15em !important;
  }

  /* Smooth text rendering */
  * {
    text-rendering: optimizeSpeed;
  }
}

/* ─── LANDSCAPE MOBILE — Expanded fixes ─── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto !important;
    padding: 3rem 0 !important;
  }
  .hero-title {
    margin-bottom: 1rem !important;
  }
  .hero-stats {
    margin-bottom: 1rem !important;
  }
  .hero-cta-wrap {
    margin-top: 1rem !important;
  }
  .hero-bottom {
    display: none !important;
  }
  .full-menu .menu-content {
    padding-top: 3.5rem !important;
  }
  .menu-link {
    font-size: 1.1rem !important;
    padding: 0.3rem 0 !important;
  }
  .story-hero {
    min-height: auto !important;
    padding: 3rem 0;
  }
}

/* ─── 360px — Extreme small screen ─── */
@media (max-width: 360px) {
  .hero-stat {
    padding: 0.3rem 0.4rem !important;
    min-width: 28% !important;
  }
  .hero-stat-num {
    font-size: 1.2rem !important;
  }
  .hero-stat-label {
    font-size: 0.5rem !important;
  }
  .h-card {
    flex: 0 0 95vw !important;
    min-height: 300px !important;
  }
  .h-card-intro {
    flex: 0 0 80vw !important;
  }
  .pillar-card {
    padding: 1rem !important;
  }
  .equip-grid {
    grid-template-columns: 1fr !important;
  }
  .menu-link {
    font-size: 1.2rem !important;
  }
  .contact-phone-big, .phone-number {
    font-size: clamp(1.2rem, 4.5vw, 1.8rem) !important;
  }
  .treat-faq-q {
    font-size: 0.82rem !important;
  }
  .faq-item-header h3 {
    font-size: 0.85rem !important;
  }
}

/* ─── TOUCH DEVICE — Enhanced feedback ─── */
@media (pointer: coarse) {
  /* Better active states */
  .h-card:active {
    transform: scale(0.985) !important;
    transition: transform 0.15s !important;
  }
  .pillar-card:active,
  .equip-item:active,
  .promise-item:active {
    transform: scale(0.98) !important;
    transition: transform 0.15s !important;
  }
  .hero-cta-btn:active {
    transform: scale(0.96) !important;
    background: rgba(42, 90, 143, 0.35) !important;
  }
  .menu-link:active {
    background: rgba(245, 247, 250, 0.05);
    border-radius: 8px;
  }
  .filter-btn:active,
  .faq-cat-tab:active,
  .dict-cat-btn:active,
  .chosung-btn:active {
    transform: scale(0.95) !important;
  }
  .notice-row:active,
  .region-list-card:active {
    background: rgba(15, 27, 45, 0.02) !important;
  }

  /* Larger tap targets for inline links in content */
  .blog-article-body a,
  .notice-detail-content a,
  .treat-benefit a {
    padding: 2px 0;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;
  }

  /* Phone number links always tappable */
  a[href^="tel:"] {
    display: inline-block;
    padding: 0.25rem 0;
    color: var(--gold) !important;
    font-weight: 500;
  }
}

/* ─── REDUCED MOTION — Phase 3 additions ─── */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh,
  .mesh-blob-1,
  .mesh-blob-2,
  .hero-particles,
  .marquee-track,
  .blackout-particles,
  .chapter-fog,
  .chapter-fog-2 {
    animation: none !important;
  }
  .hero-cta-btn::before {
    transition: none !important;
  }
  .horizontal-wrap {
    scroll-behavior: auto !important;
  }
  .menu-link,
  .full-menu {
    transition-duration: 0.01ms !important;
  }
  .blackout-overlay {
    display: none !important;
  }
}

/* ==============================================
   404 Error Page
   ============================================== */
.page-404 {
  min-height: 100vh;
  background: linear-gradient(180deg, #0a0a0a 0%, #0F1B2D 100%);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}
.page-404 .error-section {
  width: 100%;
}
.page-404 .error-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.page-404 .error-code {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(96px, 18vw, 220px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.25) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.page-404 .error-title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: #fff;
}
.page-404 .error-desc {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  margin: 0 0 40px;
}
.page-404 .error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.page-404 .btn-primary,
.page-404 .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all .3s ease;
}
.page-404 .btn-primary {
  background: #fff;
  color: #0F1B2D;
}
.page-404 .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,255,255,.25); }
.page-404 .btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}
.page-404 .btn-secondary:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }

.page-404 .error-quicklinks {
  margin: 0 auto 56px;
  max-width: 680px;
  padding: 36px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
}
.page-404 .quicklinks-heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin: 0 0 20px;
}
.page-404 .quicklinks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  text-align: left;
}
.page-404 .quicklinks-grid a {
  display: block;
  padding: 14px 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all .25s ease;
}
.page-404 .quicklinks-grid a:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.2);
  color: #fff;
  transform: translateX(4px);
}

.page-404 .error-contact {
  color: rgba(255,255,255,.6);
  font-size: 14px;
}
.page-404 .error-contact p { margin: 0 0 8px; }
.page-404 .error-tel {
  display: inline-block;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  transition: all .25s ease;
}
.page-404 .error-tel:hover { background: rgba(255,255,255,.08); }

@media (max-width: 640px) {
  .page-404 { padding: 100px 0 60px; }
  .page-404 .error-quicklinks { padding: 24px; }
}

/* ============================================================
   🎬 MOBILE CINEMATIC OVERRIDES (added 2026-04-19)
   목표: 모바일에서도 데스크탑처럼 빨려들게
   ============================================================ */

/* ---------- 공통: 모바일 전역 ---------- */
@media (max-width: 768px) {
  /* 본문 전반 */
  html, body { -webkit-text-size-adjust: 100%; }
  body { overflow-x: hidden; }

  /* 컨테이너 여백 타이트하게 */
  .container, .container-wide, .container-narrow {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  /* 섹션 높이 & 패딩 — 모바일에서 과도한 공백 줄임 */
  section { padding-left: 0; padding-right: 0; }

  /* 모바일은 브라우저 상단바 포함 height 변동 대응 */
  .hero, .hero-cinema, .full-menu, .story-chapter-dark,
  .story-chapter-turn, .story-chapter-climax {
    min-height: 100vh;
    min-height: 100dvh;
  }
}

/* ---------- 히어로(메인): 모바일 임팩트 극대화 ---------- */
@media (max-width: 768px) {
  .hero-title { margin-bottom: 2.5rem; }

  /* 제목 글자 — 스크린에 꽉차는 거대한 타이포 */
  .title-word {
    font-size: clamp(3rem, 14vw, 5.8rem) !important;
    line-height: 1 !important;
    letter-spacing: -0.04em !important;
  }

  /* 바닥 여백 정리 */
  .hero-bottom { gap: 2rem; flex-direction: column; }
  .hero-scroll-hint { flex-direction: column; gap: 0.75rem; }
  .hero-sub {
    font-size: 0.72rem !important;
    letter-spacing: 0.2em;
    text-align: center;
    padding: 0 1rem;
    line-height: 1.6;
  }

  /* CTA 버튼 풀사이즈로, 탭영역 크게 */
  .hero-cta-wrap { margin-top: 2rem; padding: 0 1rem; width: 100%; }
  .hero-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 1.1rem 1.5rem !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.22em !important;
  }

  /* 히어로 통계 */
  .hero-stats {
    flex-direction: column !important;
    gap: 1rem !important;
    padding: 0 1rem !important;
  }
  .hero-stat { padding: 0 !important; text-align: center; }
  .hero-stat-divider { display: none !important; }
}

/* ---------- 네비게이션(상단) ---------- */
@media (max-width: 768px) {
  .nav-bar, .main-nav, nav.main-nav {
    padding: 0.75rem 1rem !important;
  }
  .nav-brand { font-size: 0.85rem !important; letter-spacing: 0.15em !important; }
  .nav-booking {
    padding: 0.5rem 0.85rem !important;
    font-size: 0.62rem !important;
    letter-spacing: 0.18em !important;
  }
  .nav-menu-btn {
    width: 44px; height: 44px;
    padding: 0 !important;
    gap: 0.35rem !important;
  }
  .nav-menu-btn span { font-size: 0.55rem !important; }
}

/* ---------- 풀스크린 메뉴 ---------- */
@media (max-width: 768px) {
  .full-menu { padding: 6rem 1.5rem 2rem !important; overflow-y: auto; }
  .menu-link {
    font-size: clamp(2rem, 9vw, 3rem) !important;
    padding: 0.35rem 0 !important;
    letter-spacing: -0.02em;
  }
  .menu-link::after { font-size: 0.55rem; }
  .menu-link:hover span { transform: none !important; }
  .menu-footer {
    flex-direction: column !important;
    gap: 1.2rem !important;
    margin-top: 2rem !important;
    padding-top: 1.2rem !important;
  }
  .menu-footer-col p { font-size: 0.82rem; }
}

/* ---------- 스토리 챕터(스크롤 내러티브) ---------- */
@media (max-width: 768px) {
  .story-line {
    min-height: 70vh !important;
    min-height: 70dvh !important;
    padding: 3rem 1.25rem !important;
  }
  .story-text {
    font-size: clamp(1.5rem, 6.5vw, 2.4rem) !important;
    line-height: 1.35 !important;
    letter-spacing: -0.02em !important;
    padding: 0 0.25rem !important;
  }
  .story-text.story-question {
    font-size: clamp(1.7rem, 7.5vw, 2.8rem) !important;
    line-height: 1.3 !important;
  }
  .story-text.story-finale {
    font-size: clamp(2.4rem, 11vw, 4.5rem) !important;
    line-height: 1.1 !important;
  }
  .story-text.story-turn {
    font-size: clamp(2rem, 9vw, 3.5rem) !important;
    line-height: 1.2 !important;
  }
  .story-text.story-solo {
    font-size: clamp(1.8rem, 7vw, 3rem) !important;
  }
  .story-text.story-emphasis {
    font-size: clamp(1.05rem, 4vw, 1.4rem) !important;
    line-height: 1.6 !important;
  }
  .story-text.story-whisper {
    font-size: clamp(1rem, 3.8vw, 1.3rem) !important;
  }
  .story-chapter-num {
    font-size: clamp(5rem, 22vw, 10rem) !important;
    opacity: 0.08;
  }
}
@media (max-width: 480px) {
  .story-chapter-num { display: none !important; }
  .story-line { padding: 2.5rem 1rem !important; }
}

/* ---------- 히어로 시네마틱 이펙트 — 모바일 성능 최적화 ---------- */
@media (max-width: 768px) {
  /* 무거운 blur/ambient 효과 줄임 — 프레임 드랍 방지 */
  .hero-light-leak,
  .hero-anamorphic,
  .hero-depth-blur,
  .chapter-nebula,
  .chapter-stars-deep,
  .chapter-aurora,
  .chapter-aurora-2,
  .chapter-fog,
  .chapter-fog-2,
  .chapter-rays-2,
  .chapter-light-cone,
  .chapter-orb,
  .story-ambient-glow,
  .story-ambient-pulse { display: none !important; }

  /* 별/파티클은 살리되 수량 감소 느낌으로 투명도 줄임 */
  .chapter-stars { opacity: 0.5 !important; }
  .blackout-particles { opacity: 0.6 !important; }

  /* 히어로 배경 비네트는 더 깊게 — 모바일에서 텍스트 가독성 ↑ */
  .hero-cinema::after,
  .hero::after {
    background: radial-gradient(ellipse at center,
      transparent 0%,
      rgba(0,0,0,0.35) 60%,
      rgba(0,0,0,0.75) 100%) !important;
  }
}

/* ---------- 서비스/치료 카드(가로 스와이프) ---------- */
@media (max-width: 768px) {
  .services-title { font-size: clamp(2rem, 7vw, 2.8rem) !important; }

  .horizontal-wrap {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 3rem !important;
  }
  .horizontal-track {
    gap: 1rem !important;
    padding: 0 1.25rem !important;
    transform: none !important; /* GSAP 가로스크롤 대신 네이티브 스와이프 */
  }
  .h-card {
    flex: 0 0 82vw !important;
    min-height: 440px !important;
    max-width: 340px;
    scroll-snap-align: start;
  }
  /* 카드 내부 패딩 조정 */
  .h-card-inner, .h-card-body { padding: 1.75rem !important; }
}

/* ---------- 갤러리(포트폴리오) ---------- */
@media (max-width: 768px) {
  .gallery-item {
    flex: 0 0 80vw !important;
    height: 50vh !important;
    max-width: 320px;
    scroll-snap-align: start;
  }
  .gallery-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .gallery-track {
    transform: none !important;
    gap: 0.75rem !important;
    padding: 0 1rem !important;
  }
}

/* ---------- About / Manifesto / Director ---------- */
@media (max-width: 768px) {
  .about-manifesto {
    min-height: auto !important;
    padding: 4rem 0 !important;
  }
  .manifesto-title,
  .about-title,
  .director-title {
    font-size: clamp(2rem, 8vw, 3.2rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
  }
  .manifesto-body, .about-body {
    font-size: 1rem !important;
    line-height: 1.75 !important;
  }
  .director-visual { max-width: 260px !important; margin: 0 auto; }
  .director-name { font-size: clamp(1.8rem, 6vw, 2.5rem) !important; }
}

/* ---------- Pillars (3 principles) ---------- */
@media (max-width: 768px) {
  .pillars-grid { gap: 1rem !important; grid-template-columns: 1fr !important; }
  .pillar-card { padding: 2rem 1.5rem !important; }
  .pillar-num { font-size: 3.5rem !important; }
  .pillar-title { font-size: 1.3rem !important; }
  .pillar-body { font-size: 0.95rem !important; line-height: 1.7 !important; }
}

/* ---------- Contact / Footer ---------- */
@media (max-width: 768px) {
  .contact-layout { gap: 2.5rem !important; }
  .contact-title { font-size: clamp(2rem, 8vw, 3rem) !important; line-height: 1.15 !important; }
  .contact-body { font-size: 0.95rem !important; }
  .hours-grid { font-size: 0.9rem !important; }

  .footer {
    padding: 3rem 1.25rem 2rem !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .footer-brand { font-size: 1.1rem !important; }
  .footer-link, .footer-col p { font-size: 0.82rem !important; }
}

/* ---------- 서브페이지(케이스/블로그/공지/의료진) ---------- */
@media (max-width: 768px) {
  .page-hero-mini {
    padding: 7rem 1.25rem 3.5rem !important;
    min-height: auto !important;
  }
  .page-hero-mini h1, .page-hero-mini .page-title {
    font-size: clamp(2rem, 8vw, 3rem) !important;
    line-height: 1.15 !important;
  }
  .page-hero-mini .page-sub, .page-hero-mini p {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }

  /* 케이스/블로그 카드 리스트 */
  .cases-grid, .blog-grid, .notice-grid, .doctors-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    padding: 0 1.25rem !important;
  }
  .case-card, .blog-card, .notice-item, .doctor-card {
    border-radius: 14px !important;
  }
  .case-card img, .blog-card img, .notice-item img, .doctor-card img {
    aspect-ratio: 16/10 !important;
    object-fit: cover !important;
    width: 100% !important;
  }
  .case-card-body, .blog-card-body, .notice-item-body, .doctor-card-body {
    padding: 1.25rem !important;
  }
  .case-card-title, .blog-card-title, .notice-item-title {
    font-size: 1.05rem !important;
    line-height: 1.4 !important;
  }

  /* 상세 페이지 */
  .case-article, .blog-article, .notice-article {
    padding: 0 1.25rem !important;
  }
  .case-article h1, .blog-article h1, .notice-article h1 {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
    line-height: 1.3 !important;
    word-break: keep-all;
  }
  .case-article img, .blog-article img, .notice-article img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px;
  }
  .case-compare-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .case-article p, .blog-article p, .notice-article p {
    font-size: 1rem !important;
    line-height: 1.8 !important;
    word-break: keep-all;
  }

  /* 필터 버튼(케이스) */
  .filter-bar {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
    padding: 0.5rem 1.25rem !important;
    gap: 0.5rem !important;
    scrollbar-width: none;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn {
    flex-shrink: 0 !important;
    white-space: nowrap;
    font-size: 0.8rem !important;
    padding: 0.5rem 1rem !important;
  }
}

/* ---------- 마키(흐르는 텍스트) ---------- */
@media (max-width: 768px) {
  .marquee-band { padding: 0.75rem 0 !important; }
  .marquee-track span {
    font-size: 0.55rem !important;
    letter-spacing: 0.25em !important;
  }
}

/* ---------- 추가 미세 조정 (아주 작은 폰) ---------- */
@media (max-width: 420px) {
  .container, .container-wide, .container-narrow {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .hero-cta-btn {
    font-size: 0.68rem !important;
    padding: 1rem 1.25rem !important;
  }
  .title-word {
    font-size: clamp(2.6rem, 13vw, 4rem) !important;
  }
}

/* ---------- 터치 디바이스 공통 ---------- */
@media (hover: none) and (pointer: coarse) {
  /* 호버 전용 효과 비활성 — 탭시 잔존 스타일 제거 */
  .h-card:hover { transform: none !important; }
  .gallery-item:hover { transform: none !important; }
  .case-card:hover, .blog-card:hover, .notice-item:hover, .doctor-card:hover {
    transform: none !important;
    box-shadow: var(--glass-shadow, 0 4px 20px rgba(0,0,0,0.08)) !important;
  }
  /* 탭피드백: 살짝 눌림 */
  .hero-cta-btn:active,
  .h-card:active,
  .case-card:active, .blog-card:active, .notice-item:active, .doctor-card:active,
  .filter-btn:active {
    transform: scale(0.98) !important;
    transition: transform 0.12s ease !important;
  }
}

/* ============================================================
   🔧 MOBILE FIX v2 (2026-04-19) — Viewport & Navigation Cleanup
   ============================================================ */

/* ---------- iOS Safari viewport 대응 (주소창 표시/숨김 변동) ---------- */
@media (max-width: 768px) {
  /* svh: 주소창이 보이는 상태 기준 작은 뷰포트. 잘림 방지 핵심 */
  .hero,
  .story-hero {
    min-height: 100svh !important;
    min-height: 100dvh;
    height: auto !important;
  }
  /* 🎬 한 문장 = 한 컷. 모든 story-line을 화면 꽉 채워 시네마틱 시퀀스 */
  .story-chapter {
    /* 챕터는 그저 line들을 담는 래퍼로. 높이 강제 X */
    min-height: auto !important;
    height: auto !important;
    display: block !important;
    padding: 0 !important;
    position: relative;
  }

  /* ⭐ 핵심: 각 story-line이 화면 하나 = 하나의 "컷" */
  .story-chapter .story-line,
  .story-line {
    min-height: 100svh !important;
    min-height: 100dvh;
    height: auto !important;
    padding: 2rem 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100%;
    position: relative;
    margin: 0 !important;
  }

  /* 챕터 번호(01, 02...)는 뒷배경 장식으로 */
  .story-line .story-chapter-num {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: clamp(8rem, 35vw, 16rem) !important;
    opacity: 0.05 !important;
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
  }
  .story-line .story-text {
    position: relative;
    z-index: 1;
  }

  /* 피날레는 풀블리드로 임팩트 */
  .story-line-finale {
    min-height: 100svh !important;
    min-height: 100dvh !important;
  }

  /* 타이포 재튜닝 — 한 컷에 한 문장이니 과하지 않되 충분한 무게 */
  .story-text.story-question {
    font-size: clamp(1.9rem, 8vw, 2.8rem) !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    word-break: keep-all;
  }
  .story-text.story-solo {
    font-size: clamp(2.4rem, 10vw, 3.6rem) !important;
    font-weight: 500 !important;
    letter-spacing: -0.02em;
  }
  .story-text.story-emphasis {
    font-size: clamp(1.3rem, 5.5vw, 1.9rem) !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    word-break: keep-all;
  }
  .story-text.story-emphasis::after {
    margin-top: 1.5rem !important;
  }
  .story-text.story-small {
    font-size: clamp(1.3rem, 5vw, 1.8rem) !important;
    font-weight: 400 !important;
    color: var(--dark-text-dim, rgba(0,0,0,0.55)) !important;
  }
  .story-text.story-pause {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
    font-weight: 400 !important;
    letter-spacing: 0.05em;
  }
  .story-text.story-whisper {
    font-size: clamp(1.4rem, 5.5vw, 2rem) !important;
    font-style: italic;
    font-weight: 300 !important;
    opacity: 0.85;
  }
  .story-text.story-turn {
    font-size: clamp(2.2rem, 9vw, 3.4rem) !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    word-break: keep-all;
  }
  .story-text.story-bridge {
    font-size: clamp(1.2rem, 4.5vw, 1.6rem) !important;
    font-weight: 300 !important;
  }
  .story-text.story-action {
    font-size: clamp(1.8rem, 7vw, 2.6rem) !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    word-break: keep-all;
  }
  .story-text.story-finale {
    font-size: clamp(2.8rem, 12vw, 4.8rem) !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    word-break: keep-all;
  }
  .story-text {
    /* 기본 story-text 모바일 폴백 */
    font-size: clamp(1.5rem, 6vw, 2.2rem) !important;
    line-height: 1.4 !important;
    word-break: keep-all;
  }
}

/* ---------- 모바일 네비: 카카오 버튼 완전 숨김, 깔끔하게 ---------- */
@media (max-width: 768px) {
  /* 상단 네비에서 카카오 버튼 완전 제거 — 풀메뉴에 이미 있음 */
  nav#nav .nav-kakao,
  .nav-kakao {
    display: none !important;
  }

  /* 예약 버튼도 아이콘만 */
  nav#nav .nav-booking span,
  .nav-booking span {
    display: none !important;
  }
  nav#nav .nav-booking,
  .nav-booking {
    padding: 0.5rem 0.7rem !important;
    min-width: 40px !important;
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  /* 네비 높이/정렬 단순화 */
  nav#nav {
    padding: 0.75rem 1rem !important;
    gap: 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 56px;
  }
  .nav-brand {
    font-size: 0.95rem !important;
    letter-spacing: 0.1em !important;
    flex-shrink: 0;
  }
  .nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
  }
}

/* ---------- 플로팅 CTA — 하단 고정 확실히 ---------- */
@media (max-width: 768px) {
  .floating-cta-group {
    position: fixed !important;
    bottom: max(1.25rem, env(safe-area-inset-bottom)) !important;
    right: 1rem !important;
    top: auto !important;
    left: auto !important;
    z-index: 800 !important;
    flex-direction: column !important;
    gap: 0.6rem !important;
  }
  .floating-cta-group .floating-btn {
    width: 52px !important;
    height: 52px !important;
  }
  /* 상단 침범 방지: transform 초기화 */
  .floating-cta-group:not(.visible) {
    transform: translateY(30px) !important;
  }
  .floating-cta-group.visible {
    transform: translateY(0) !important;
  }
}

/* ---------- 히어로-다음섹션 자연 연결 ---------- */
@media (max-width: 768px) {
  /* 히어로 하단 그라디언트 — 다음 섹션으로 부드럽게 fade */
  .hero::before,
  .story-hero::before {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 80px;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(10, 17, 40, 0.6) 50%,
      rgba(10, 17, 40, 0) 100%
    );
    pointer-events: none;
    z-index: 5;
  }

  /* 통계 섹션 — 히어로와 이어지는 느낌 */
  .story-stats {
    padding: 3.5rem 1.25rem !important;
    background:
      radial-gradient(ellipse 100% 50% at 50% 0%, rgba(42, 90, 143, 0.12) 0%, transparent 60%),
      linear-gradient(180deg, #eef2f7 0%, #f0eef2 100%) !important;
  }
  .story-stats-inner {
    flex-direction: column !important;
    gap: 2rem !important;
  }
  .story-stats-inner .hero-stat-divider {
    display: none !important;
  }
  .hero-stat {
    text-align: center;
    width: 100%;
  }
}

/* ============================================================
   🎴 SERVICES CARDS — Clean & Smooth (Desktop + Mobile)
   GSAP pin 가로스크롤 폐기 → 네이티브 scroll-snap + fade-in
   ============================================================ */

/* 데스크탑: GSAP pin 해제 → 정상 세로 흐름, 카드 자체는 그리드로 */
@media (min-width: 1025px) {
  .horizontal-wrap {
    overflow: visible !important;
    padding: 0 clamp(2rem, 5vw, 4rem) 6rem !important;
  }
  .horizontal-track {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 1.5rem !important;
    padding: 0 !important;
    transform: none !important; /* GSAP pin 방지 */
    cursor: auto !important;
  }
  .h-card {
    flex: unset !important;
    min-height: 480px !important;
    max-width: 100% !important;
    width: auto !important;
  }
}

/* 태블릿: 2열 */
@media (min-width: 769px) and (max-width: 1024px) {
  .horizontal-wrap {
    overflow: visible !important;
    padding: 0 2rem 5rem !important;
  }
  .horizontal-track {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
    padding: 0 !important;
    transform: none !important;
  }
  .h-card {
    flex: unset !important;
    min-height: 460px !important;
    max-width: 100% !important;
  }
}

/* 모바일: 가로 스와이프 (scroll-snap) */
@media (max-width: 768px) {
  .horizontal-wrap {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 1.25rem;
    padding: 0 0 2.5rem !important;
    scrollbar-width: none;
  }
  .horizontal-wrap::-webkit-scrollbar { display: none; }
  .horizontal-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 1rem !important;
    padding: 0 1.25rem 0.5rem !important;
    transform: none !important;
    cursor: auto !important;
    /* 마지막 카드 여백 확보 */
    padding-right: 20vw !important;
  }
  .h-card {
    flex: 0 0 80vw !important;
    max-width: 340px;
    min-height: 440px !important;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  }
}

/* 카드 진입 애니메이션 — GSAP 없이 순수 CSS */
.h-card {
  opacity: 1; /* 기본은 보임 */
}
/* reveal 클래스로 fade-in (GSAP에서 이미 set opacity:0 하는 경우 방지) */
body.gsap-active .h-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
body.gsap-active .h-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .h-card { transition: none !important; transform: none !important; opacity: 1 !important; }
}

/* Services section overflow fix for mobile */
@media (max-width: 768px) {
  .services-horizontal {
    overflow: visible !important;
    padding: 3rem 0 2rem !important;
  }
  .services-header {
    margin-bottom: 2rem !important;
    padding: 0 1.25rem !important;
  }
  .services-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem) !important;
    text-align: left;
  }
  .services-intro, .services-sub {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    padding: 0 1.25rem !important;
    margin-top: 1rem !important;
  }

  /* Marquee 모바일 간소화 */
  .marquee-band {
    overflow: hidden !important;
    padding: 0.6rem 0 !important;
  }
}

/* ============================================================
   🌫️ STORY CHAPTER — 공포의 어둠 유지 (모바일)
   "입 안은 보이지 않으니까요 → 맞습니다 → 우리는 보이지 않는 것을 두려워합니다 → 귀신처럼요"
   이 시퀀스는 어둠/공포의 정점. 밝아지면 안됨.
   ============================================================ */
@media (max-width: 768px) {
  /* Chapter 3: 공포의 안개 — 깊은 다크 블루 + 희미한 안개 */
  .story-chapter-dark {
    background:
      radial-gradient(ellipse 80% 60% at 50% 30%, rgba(30, 50, 80, 0.5) 0%, transparent 70%),
      radial-gradient(ellipse 60% 40% at 30% 80%, rgba(20, 35, 60, 0.4) 0%, transparent 60%),
      linear-gradient(180deg,
        #0a1128 0%,
        #0e1730 20%,
        #121f3d 50%,
        #0e1730 80%,
        #0a1128 100%) !important;
    position: relative;
  }

  /* 안개 레이어 — 모바일에서도 살려서 공포감 유지 */
  .story-chapter-dark .chapter-fog,
  .story-chapter-dark .chapter-fog-2 {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
    opacity: 0.6;
    animation: mobileFogDrift 20s ease-in-out infinite alternate;
  }
  .story-chapter-dark .chapter-fog {
    background:
      radial-gradient(ellipse 90% 40% at 20% 30%, rgba(180, 200, 230, 0.08) 0%, transparent 60%),
      radial-gradient(ellipse 70% 50% at 80% 70%, rgba(160, 180, 210, 0.06) 0%, transparent 55%);
  }
  .story-chapter-dark .chapter-fog-2 {
    background:
      radial-gradient(ellipse 80% 30% at 60% 20%, rgba(200, 220, 240, 0.05) 0%, transparent 50%),
      radial-gradient(ellipse 100% 20% at 50% 90%, rgba(140, 170, 200, 0.04) 0%, transparent 60%);
    animation-duration: 28s;
    animation-direction: alternate-reverse;
  }
  @keyframes mobileFogDrift {
    0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.5; }
    50%  { transform: translate3d(-5%, 2%, 0) scale(1.05); opacity: 0.7; }
    100% { transform: translate3d(3%, -1%, 0) scale(1); opacity: 0.5; }
  }

  /* Chapter 3 텍스트: 흰색으로 반전 — 어둠 속에 떠오르는 속삭임 */
  .story-chapter-dark .story-text,
  .story-chapter-dark .story-text.story-small,
  .story-chapter-dark .story-text.story-pause,
  .story-chapter-dark .story-text.story-whisper {
    color: rgba(245, 247, 250, 0.92) !important;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
  }
  .story-chapter-dark .story-text em {
    color: rgba(140, 180, 220, 0.95) !important;
    font-style: normal;
    font-weight: 600;
  }
  /* 귀신처럼요 — 속삭임 톤 유지하되 흰색으로 */
  .story-chapter-dark .story-text.story-whisper {
    color: rgba(200, 215, 235, 0.75) !important;
    font-style: italic;
    letter-spacing: 0.05em;
  }
  /* "맞습니다" — 잠시 쉬어가는 호흡, 살짝 어둡게 */
  .story-chapter-dark .story-text.story-pause {
    color: rgba(180, 200, 225, 0.7) !important;
    letter-spacing: 0.1em;
  }
  /* 챕터 번호 watermark도 어두운 톤 */
  .story-chapter-dark .story-chapter-num {
    color: rgba(180, 200, 225, 0.06) !important;
  }

  /* ---------- Chapter 4 (Turn): 어둠 → 빛 전환. 과도기 톤 ---------- */
  .story-chapter-turn {
    background: linear-gradient(180deg,
      #0e1730 0%,
      #1a2a4a 25%,
      #2a4068 50%,
      #5878a8 75%,
      #a8c4e4 100%) !important;
  }
  .story-chapter-turn .story-text {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
  }
  .story-chapter-turn .story-text em {
    color: rgba(200, 220, 245, 0.98) !important;
    font-style: normal;
    font-weight: 700;
  }
  /* Turn 끝자락 "두려움은 사라집니다" — 밝은 빛 */
  .story-chapter-turn .story-text.story-emphasis {
    color: rgba(20, 40, 70, 0.9) !important;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.4);
  }

  /* ---------- Chapter Resolve & Climax도 톤 점진적으로 ---------- */
  .story-chapter-resolve {
    background: linear-gradient(180deg,
      #eef2f7 0%,
      #f5f7fa 50%,
      #eef2f7 100%) !important;
  }

  /* 다크 챕터들 간 트랜지션 하드 컷 방지 — fade */
  .story-chapter-dark::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, #0e1730 70%);
    pointer-events: none;
    z-index: 1;
  }
  .story-chapter-turn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to top, transparent, #0e1730 70%);
    pointer-events: none;
    z-index: 1;
  }
}

/* ============================================================
   🔧 .story-chapter 다시 flex 복원 (내 이전 override가 깨뜨렸음)
   ============================================================ */
@media (max-width: 768px) {
  .story-chapter {
    display: block !important;  /* 내부 story-line이 각자 100svh 먹으니 block 유지 */
    position: relative !important;
    overflow: hidden !important;  /* 배경 fx가 바깥으로 새지 않도록 */
    min-height: auto !important;
    padding: 0 !important;
  }
  /* chapter-bg-fx가 story-chapter 전체를 덮도록 */
  .story-chapter .chapter-bg-fx {
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none;
    z-index: 0;
  }
  /* story-line은 relative + z-index 1로 위에 */
  .story-chapter .story-line {
    position: relative !important;
    z-index: 2 !important;
  }
}

/* ========================================================================
   🔧 FIX v3 (2026-04-19) — Menu button visibility + Director photo
   ======================================================================== */

/* ---------- [1] MENU BUTTON always visible (white bg 문제 해결) ---------- */
/* Default scrolled state: ensure strong contrast on translucent white bg */
#nav.scrolled {
  background: rgba(15, 27, 45, 0.72) !important;
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
#nav.scrolled .nav-brand,
#nav.scrolled .nav-booking,
#nav.scrolled .nav-menu-btn {
  color: #F5F7FA !important;
}
#nav.scrolled .nav-menu-btn {
  border-color: rgba(245, 247, 250, 0.35) !important;
  background: rgba(255, 255, 255, 0.06);
}
#nav.scrolled .nav-menu-btn span {
  color: #F5F7FA !important;
}
#nav.scrolled .nav-menu-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(245, 247, 250, 0.6) !important;
}

/* Over dark story chapters — keep same dark bar style (no inversion) */
#nav.nav-dark-zone.scrolled,
#nav.nav-dark-zone:not(.scrolled) {
  background: rgba(15, 27, 45, 0.72) !important;
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
}
#nav.nav-dark-zone .nav-brand,
#nav.nav-dark-zone .nav-booking,
#nav.nav-dark-zone .nav-menu-btn,
#nav.nav-dark-zone .nav-menu-btn span {
  color: #F5F7FA !important;
}
#nav.nav-dark-zone .nav-menu-btn {
  border-color: rgba(245, 247, 250, 0.35) !important;
}

/* Hero transparent state — light text on dark hero stays the same */
#nav:not(.scrolled):not(.nav-dark-zone) .nav-menu-btn {
  color: rgba(245, 247, 250, 0.95) !important;
  border-color: rgba(245, 247, 250, 0.45) !important;
}
#nav:not(.scrolled):not(.nav-dark-zone) .nav-menu-btn span {
  color: rgba(245, 247, 250, 0.95) !important;
}

/* Hover slide-in overlay → keep it consistent */
.nav-menu-btn::before {
  background: rgba(245, 247, 250, 0.18) !important;
}
.nav-menu-btn:hover span {
  color: #F5F7FA !important;
}

/* ---------- [2] DIRECTOR FRAME — remove overlay leftovers ---------- */
/* Defensive: even if cached HTML still has frame-content, hide it */
.director-frame .frame-content { display: none !important; }

/* Frame presentation — photo-first, subtle gold corner accents only */
.director-frame {
  aspect-ratio: 3/4;
  display: block;
  background: #0F1B2D;
}
.director-photo {
  filter: saturate(0.95) contrast(1.03) brightness(0.98);
}

/* ---------- [3] DIRECTOR PHOTO — BIGGER on mobile ---------- */
@media (max-width: 768px) {
  .director-layout {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  .director-visual {
    position: relative !important;
    top: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
  }
  .director-frame {
    aspect-ratio: 4/5 !important;
    max-width: 100% !important;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(15, 27, 45, 0.18);
  }
  .director-photo {
    object-position: center 20%;
  }
  /* Enhance corner accents on mobile for presence */
  .director-frame::before,
  .director-frame::after {
    width: 36px;
    height: 36px;
    border-width: 2px;
  }
}

@media (max-width: 480px) {
  .director-frame {
    aspect-ratio: 4/5 !important;
    border-radius: 12px;
  }
}

/* ========================================================================
   🔧 FIX v4 (2026-04-19) — Menu button = solid pill (always readable)
   ======================================================================== */

/* Whole nav bar: strong dark pill on any background */
#nav {
  padding: 0.75rem clamp(1rem, 3vw, 2rem);
}
#nav.scrolled,
#nav.nav-dark-zone,
#nav.nav-dark-zone.scrolled {
  background: rgba(15, 27, 45, 0.88) !important;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 24px rgba(15, 27, 45, 0.18);
}

/* MENU button — solid readable pill regardless of scroll state */
.nav-menu-btn,
#nav.scrolled .nav-menu-btn,
#nav.nav-dark-zone .nav-menu-btn {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(245, 247, 250, 0.55) !important;
  color: #F8F9FC !important;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}
.nav-menu-btn span,
#nav.scrolled .nav-menu-btn span,
#nav.nav-dark-zone .nav-menu-btn span {
  color: #F8F9FC !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}

/* Hover — brighter, more prominent */
.nav-menu-btn:hover,
#nav.scrolled .nav-menu-btn:hover,
#nav.nav-dark-zone .nav-menu-btn:hover {
  background: rgba(255, 255, 255, 0.26) !important;
  border-color: rgba(245, 247, 250, 0.85) !important;
}
.nav-menu-btn:hover span {
  color: #FFFFFF !important;
}

/* Disable the slide-up white overlay (was making button invisible) */
.nav-menu-btn::before {
  display: none !important;
}

/* Nav-booking — same treatment for consistency */
.nav-booking,
#nav.scrolled .nav-booking {
  color: #F8F9FC !important;
}

/* Nav-brand (이음) — always readable */
.nav-brand,
#nav.scrolled .nav-brand,
#nav.nav-dark-zone .nav-brand {
  color: #F8F9FC !important;
}

/* nav-login button (로그인) */
.nav-login-btn,
#nav.scrolled .nav-login-btn,
#nav.nav-dark-zone .nav-login-btn {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(245, 247, 250, 0.55) !important;
  color: #F8F9FC !important;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}
.nav-login-btn:hover {
  background: rgba(255, 255, 255, 0.26) !important;
}

/* Mobile — ensure same readable pill on tight screens */
@media (max-width: 768px) {
  .nav-menu-btn {
    padding: 0.5rem 1rem !important;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
  }
  .nav-menu-btn span {
    font-size: 0.65rem !important;
    letter-spacing: 0.22em !important;
  }
  .nav-login-btn {
    padding: 0.45rem 0.9rem !important;
    font-size: 0.65rem !important;
  }
}

/* ========================================================================
   🩺 DOCTORS PAGE — proper design (2026-04-19 v5)
   클래스: doctor-grid-item, doctor-grid-link, doctor-grid-photo,
           doctor-grid-info, doctor-grid-name, doctor-grid-title,
           doctor-grid-specialty, doctor-grid-greeting, doctor-grid-more
           doctor-profile-hero, doctor-profile-grid, doctor-profile-photo,
           doctor-profile-meta, doctor-profile-tags, doctor-tag,
           doctor-profile-greeting, doctor-profile-details,
           doctor-details-grid, doctor-detail-block, detail-heading, detail-list
   ======================================================================== */

/* ---------- Page Hero Mini (의료진 소개 헤더) ---------- */
.page-doctors .page-hero-mini,
.page-doctor-detail .page-hero-mini {
  padding: 120px 0 48px;
  background: linear-gradient(180deg, #0a1128 0%, #121f3d 100%);
  color: #F5F7FA;
  text-align: center;
}
.page-doctors .page-hero-mini .section-label,
.page-doctor-detail .page-hero-mini .section-label {
  display: inline-block;
  color: #b8965a;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  font-weight: 600;
  margin-bottom: 12px;
}
.page-doctors .page-hero-mini .page-title,
.page-doctor-detail .page-hero-mini .page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: #F5F7FA;
  line-height: 1.15;
}
.page-doctors .page-hero-mini .page-subtitle,
.page-doctor-detail .page-hero-mini .page-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(245, 247, 250, 0.7);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Doctors Grid (목록) ---------- */
.doctors-grid-section {
  padding: 72px 0 120px;
  background: #f5f7fa;
}
.doctors-grid-section .doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}
.doctor-grid-item {
  list-style: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease, cubic-bezier(0.2,0.7,0.2,1)), transform 0.7s var(--ease, cubic-bezier(0.2,0.7,0.2,1));
}
.doctor-grid-item.visible,
body.gsap-active .doctor-grid-item {
  opacity: 1;
  transform: translateY(0);
}
.doctor-grid-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #FFFFFF;
  border: 1px solid rgba(15, 27, 45, 0.08);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
  box-shadow: 0 2px 8px rgba(15, 27, 45, 0.04);
  height: 100%;
}
.doctor-grid-link:hover {
  transform: translateY(-6px);
  border-color: rgba(184, 150, 90, 0.5);
  box-shadow: 0 20px 50px rgba(15, 27, 45, 0.14);
}

/* Photo area */
.doctor-grid-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1128 0%, #1B3A5C 100%);
}
.doctor-grid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.9s ease;
}
.doctor-grid-link:hover .doctor-grid-photo img {
  transform: scale(1.06);
}
.doctor-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a1128 0%, #1B3A5C 100%);
  color: #b8965a;
}
.doctor-photo-placeholder span {
  font-family: 'Playfair Display', 'Noto Serif KR', serif;
  font-size: clamp(5rem, 12vw, 8rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.doctor-photo-placeholder.large span {
  font-size: clamp(7rem, 16vw, 11rem);
}

/* Info area */
.doctor-grid-info {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.doctor-grid-name {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0F1B2D;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.3;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.doctor-grid-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: #b8965a;
  letter-spacing: 0.08em;
}
.doctor-grid-specialty {
  font-size: 0.85rem;
  color: #4a5b75;
  margin: 0;
  font-weight: 500;
}
.doctor-grid-greeting {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(15, 27, 45, 0.7);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.doctor-grid-more {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.82rem;
  color: #b8965a;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.35s ease, color 0.35s ease;
  display: inline-block;
}
.doctor-grid-link:hover .doctor-grid-more {
  transform: translateX(6px);
  color: #8a6e3f;
}

/* ---------- Doctor Detail Page ---------- */
.page-doctor-detail .page-hero-mini.compact {
  padding: 96px 0 24px;
  text-align: left;
}
.back-link {
  color: rgba(245, 247, 250, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
  display: inline-block;
}
.back-link:hover { color: #b8965a; }

.doctor-profile-hero {
  padding: 48px 0 72px;
  background: linear-gradient(180deg, #121f3d 0%, #f5f7fa 65%);
}
.doctor-profile-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 56px;
  align-items: start;
}
.doctor-profile-photo {
  position: sticky;
  top: 100px;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 24px 60px rgba(15, 27, 45, 0.2);
  background: #0a1128;
}
.doctor-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.doctor-profile-meta {
  padding-top: 24px;
}
.doctor-profile-meta .section-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: #b8965a;
  font-weight: 600;
  margin-bottom: 12px;
}
.doctor-profile-name {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0F1B2D;
  line-height: 1.15;
  margin: 0 0 8px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.doctor-profile-title {
  font-size: 1rem;
  font-weight: 500;
  color: #b8965a;
  letter-spacing: 0.06em;
}
.doctor-profile-specialty {
  font-size: 1rem;
  color: #4a5b75;
  margin: 0 0 20px;
  font-weight: 500;
}
.doctor-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.doctor-tag {
  background: rgba(184, 150, 90, 0.1);
  border: 1px solid rgba(184, 150, 90, 0.3);
  color: #8a6e3f;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.doctor-profile-greeting.rich-content {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.85;
  color: rgba(15, 27, 45, 0.8);
  padding: 24px 28px;
  background: #FFFFFF;
  border-left: 3px solid #b8965a;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 4px 16px rgba(15, 27, 45, 0.05);
}
.doctor-profile-greeting.rich-content p { margin: 0 0 12px; }
.doctor-profile-greeting.rich-content p:last-child { margin-bottom: 0; }

/* Details (학력, 경력, 자격) */
.doctor-profile-details {
  padding: 72px 0 120px;
  background: #f5f7fa;
}
.doctor-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}
.doctor-detail-block {
  background: #FFFFFF;
  border: 1px solid rgba(15, 27, 45, 0.06);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(15, 27, 45, 0.04);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.doctor-detail-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 27, 45, 0.1);
}
.detail-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0F1B2D;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #b8965a;
  display: inline-block;
}
.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.detail-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(15, 27, 45, 0.8);
}
.detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b8965a;
}

/* ---------- Empty state ---------- */
.page-doctors .empty-state,
.page-doctor-detail .empty-state {
  text-align: center;
  padding: 80px 24px;
  color: rgba(15, 27, 45, 0.6);
}
.page-doctor-detail .empty-state h1 {
  font-size: 1.6rem;
  margin: 0 0 24px;
  color: #0F1B2D;
}
.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: #0F1B2D;
  color: #FFFFFF;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.3s ease;
}
.btn-primary:hover { background: #b8965a; }

/* ---------- Mobile ---------- */
@media (max-width: 1024px) {
  .doctor-profile-grid {
    grid-template-columns: minmax(260px, 320px) 1fr;
    gap: 40px;
  }
  .doctor-profile-photo { position: relative; top: 0; }
}

@media (max-width: 768px) {
  .page-doctors .page-hero-mini,
  .page-doctor-detail .page-hero-mini {
    padding: 96px 0 36px;
  }
  .doctors-grid-section {
    padding: 48px 0 80px;
  }
  .doctors-grid-section .doctors-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .doctor-grid-photo { aspect-ratio: 4/5; }
  .doctor-grid-info { padding: 22px 22px 26px; }
  .doctor-grid-name { font-size: 1.25rem; }

  .doctor-profile-hero { padding: 32px 0 48px; }
  .doctor-profile-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .doctor-profile-photo {
    max-width: 320px;
    margin: 0 auto;
    aspect-ratio: 4/5;
  }
  .doctor-profile-meta { padding-top: 0; text-align: center; }
  .doctor-profile-name { justify-content: center; font-size: 1.8rem; }
  .doctor-profile-tags { justify-content: center; }
  .doctor-profile-greeting.rich-content {
    text-align: left;
    padding: 20px 22px;
  }

  .doctor-profile-details { padding: 48px 0 80px; }
  .doctor-details-grid { gap: 20px; }
  .doctor-detail-block { padding: 24px; }
}

@media (max-width: 480px) {
  .doctor-grid-info { padding: 20px; }
  .doctor-grid-name { font-size: 1.2rem; }
  .doctor-profile-name { font-size: 1.6rem; }
  .doctor-profile-photo { max-width: 280px; }
}

/* ---------- Doctor Extra Fields (v5.1) ---------- */
.doctor-grid-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.doctor-grid-tag {
  background: rgba(184, 150, 90, 0.1);
  border: 1px solid rgba(184, 150, 90, 0.25);
  color: #8a6e3f;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
}
.doctor-profile-name-en {
  font-size: 0.85rem;
  color: rgba(15, 27, 45, 0.5);
  font-style: italic;
  letter-spacing: 0.04em;
  margin: -4px 0 16px;
  font-weight: 400;
}
.doctor-profile-philosophy.rich-content {
  margin-top: 20px;
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  line-height: 1.85;
  color: rgba(15, 27, 45, 0.75);
  padding: 20px 24px;
  background: rgba(184, 150, 90, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(184, 150, 90, 0.15);
}
.doctor-profile-philosophy.rich-content p { margin: 0 0 10px; }
.doctor-profile-philosophy.rich-content p:last-child { margin-bottom: 0; }

/* ========================================================================
   🩺 DOCTOR DETAIL — Timeline & Membership lists (v5.2)
   ======================================================================== */

/* Timeline (학력·경력·자격) */
.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: start;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 66px;
  top: 6px;
  bottom: -16px;
  width: 1px;
  background: rgba(184, 150, 90, 0.25);
}
.timeline-item:last-child::before { display: none; }

.timeline-year {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #b8965a;
  letter-spacing: 0.04em;
  padding-top: 2px;
  white-space: nowrap;
  position: relative;
}
.timeline-year::after {
  content: '';
  position: absolute;
  right: -11px;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #b8965a;
  z-index: 1;
}
.timeline-item:not(:has(.timeline-year))::before,
.timeline-body:only-child::before {
  display: none;
}

.timeline-body {
  padding-left: 8px;
}
.timeline-primary {
  font-size: 0.96rem;
  font-weight: 600;
  color: #0F1B2D;
  line-height: 1.4;
  letter-spacing: -0.005em;
}
.timeline-sub {
  font-size: 0.85rem;
  color: rgba(15, 27, 45, 0.65);
  margin-top: 4px;
  line-height: 1.5;
}

/* Membership list (소속 학회) */
.membership-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.membership-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(184, 150, 90, 0.06);
  border: 1px solid rgba(184, 150, 90, 0.15);
  border-radius: 10px;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.membership-item:hover {
  background: rgba(184, 150, 90, 0.1);
  border-color: rgba(184, 150, 90, 0.3);
}
.membership-org {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0F1B2D;
  flex: 1;
}
.membership-role {
  font-size: 0.78rem;
  color: #8a6e3f;
  font-weight: 500;
  padding: 3px 10px;
  background: rgba(184, 150, 90, 0.12);
  border-radius: 999px;
  white-space: nowrap;
}

/* Mobile timeline */
@media (max-width: 480px) {
  .timeline-item {
    grid-template-columns: 60px 1fr;
    gap: 12px;
  }
  .timeline-item::before { left: 55px; }
  .timeline-year::after { right: -9px; }
  .timeline-year { font-size: 0.78rem; }
  .timeline-primary { font-size: 0.9rem; }
  .timeline-sub { font-size: 0.8rem; }

  .membership-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px;
  }
}

/* ================================================
   Doctor Book Section (저서 섹션) — v22
   최효영 원장 "치과가 두렵지 않으면 좋겠습니다"
   ================================================ */
.doctor-book-section {
  padding: clamp(64px, 9vw, 120px) 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 100%);
  border-top: 1px solid var(--white-ghost);
}

.doctor-book-wrap {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}

.doctor-book-cover {
  position: relative;
  aspect-ratio: 420 / 594;
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(15, 27, 45, 0.08),
    0 20px 40px rgba(15, 27, 45, 0.12),
    0 40px 80px rgba(15, 27, 45, 0.08);
  transform: rotate(-1.5deg);
  transition: transform 0.6s var(--ease-expo), box-shadow 0.6s var(--ease-expo);
}
.doctor-book-cover:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow:
    0 2px 4px rgba(15, 27, 45, 0.1),
    0 30px 60px rgba(15, 27, 45, 0.18),
    0 60px 100px rgba(15, 27, 45, 0.12);
}
.doctor-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* 책등 느낌 — 왼쪽 모서리 얇은 그림자 */
.doctor-book-cover::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  background: linear-gradient(90deg,
    rgba(15, 27, 45, 0.12) 0%,
    rgba(15, 27, 45, 0.04) 50%,
    transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.doctor-book-meta .section-label {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}

.doctor-book-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.doctor-book-subtitle {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: var(--white-dim);
  margin: 0 0 6px;
  font-weight: 500;
}

.doctor-book-author {
  font-size: 0.9rem;
  color: var(--white-muted);
  margin: 0 0 24px;
  letter-spacing: 0.01em;
}

.doctor-book-desc {
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--white-dim);
  margin-bottom: 24px;
}
.doctor-book-desc p {
  margin: 0 0 14px;
}
.doctor-book-desc em {
  font-style: normal;
  color: var(--navy);
  font-weight: 500;
  padding: 2px 8px;
  background: var(--gold-dim);
  border-radius: 4px;
  display: inline-block;
  margin: 2px 0;
}
.doctor-book-desc strong {
  color: var(--cta);
  font-weight: 700;
}

.doctor-book-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.book-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cta);
  background: var(--cta-dim);
  border: 1px solid var(--cta-dim);
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.doctor-book-note {
  font-size: 0.82rem;
  color: var(--white-muted);
  margin: 0;
  line-height: 1.6;
  padding-top: 16px;
  border-top: 1px dashed var(--white-ghost);
}

/* Tablet & mobile */
@media (max-width: 900px) {
  .doctor-book-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: left;
  }
  .doctor-book-cover {
    max-width: 320px;
    margin: 0 auto;
    transform: rotate(0deg);
  }
}

@media (max-width: 480px) {
  .doctor-book-section {
    padding: 48px 0 64px;
  }
  .doctor-book-cover {
    max-width: 260px;
  }
  .doctor-book-title {
    font-size: 1.4rem;
  }
  .doctor-book-desc {
    font-size: 0.92rem;
    line-height: 1.75;
  }
}

/* ================================================
   Main Page — Director's Book Section (v23)
   04 — PUBLISHED WORK
   진료 카드 끝나고 등장하는 시네마틱 책 소개
   ================================================ */
.director-book {
  padding: clamp(80px, 13vw, 180px) 0;
  background:
    radial-gradient(ellipse at top right, rgba(126, 168, 190, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 100%);
  position: relative;
  overflow: hidden;
}
.director-book::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(168, 196, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(27, 58, 92, 0.04) 0%, transparent 40%);
  pointer-events: none;
}

.director-book-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(48px, 7vw, 88px);
  position: relative;
  z-index: 1;
}
.director-book-header .section-label {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  margin-bottom: 24px;
  display: inline-block;
}
.director-book-heading {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.director-book-heading em {
  font-style: normal;
  font-family: var(--font-en);
  color: var(--cta);
  font-weight: 400;
  padding: 0 6px;
}
.director-book-lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--white-dim);
  line-height: 1.75;
  margin: 0;
}

.director-book-card {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.director-book-link {
  display: grid;
  grid-template-columns: minmax(280px, 440px) 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  padding: clamp(36px, 5vw, 72px) clamp(32px, 5vw, 72px);
  background: var(--bg);
  border-radius: 16px;
  box-shadow:
    0 1px 3px rgba(15, 27, 45, 0.04),
    0 20px 60px rgba(15, 27, 45, 0.08);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.6s var(--ease-expo),
    box-shadow 0.6s var(--ease-expo);
  border: 1px solid rgba(15, 27, 45, 0.04);
}
.director-book-link:hover {
  transform: translateY(-4px);
  box-shadow:
    0 2px 4px rgba(15, 27, 45, 0.06),
    0 40px 80px rgba(15, 27, 45, 0.14);
}
.director-book-link:hover .director-book-cover-img {
  transform: rotate(0deg) translateY(-4px);
}
.director-book-link:hover .director-book-more svg {
  transform: translateX(6px);
}

.director-book-cover-wrap {
  position: relative;
  aspect-ratio: 420 / 594;
}
.director-book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  transform: rotate(-2deg);
  transition: transform 0.8s var(--ease-expo);
  box-shadow:
    0 1px 2px rgba(15, 27, 45, 0.1),
    0 24px 48px rgba(15, 27, 45, 0.14),
    0 48px 96px rgba(15, 27, 45, 0.08);
}

.director-book-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.director-book-kicker {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin: 0;
}
.director-book-bigtitle {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.director-book-tagline {
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  color: var(--white-dim);
  line-height: 1.5;
  margin: 0 0 8px;
  font-weight: 500;
}
.director-book-excerpt {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 20px;
  margin: 8px 0;
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--white-dim);
  font-style: normal;
  quotes: none;
}

.director-book-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--white-ghost);
}
.director-book-badges-mini {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.book-badge-mini {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cta);
  background: var(--cta-dim);
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.director-book-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cta);
  letter-spacing: 0.02em;
}
.director-book-more svg {
  transition: transform 0.4s var(--ease-expo);
}

/* Tablet */
@media (max-width: 900px) {
  .director-book-link {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 28px;
  }
  .director-book-cover-wrap {
    max-width: 300px;
    margin: 0 auto;
  }
  .director-book-cover-img {
    transform: rotate(0deg);
  }
  .director-book-text {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .director-book {
    padding: 64px 0 80px;
  }
  .director-book-link {
    padding: 28px 20px;
    border-radius: 12px;
  }
  .director-book-cover-wrap {
    max-width: 240px;
  }
  .director-book-bigtitle {
    font-size: 1.6rem;
  }
  .director-book-excerpt {
    font-size: 0.9rem;
    padding-left: 16px;
  }
  .director-book-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==============================================================
   CASE & BLOG DETAIL — Editorial / Cinematic Redesign (v24)
   ============================================================== */

/* --- Page wrapper & hero --- */
.page-case-detail,
.page-blog-detail {
  background: var(--surface);
  min-height: 100vh;
  padding-top: 90px;
}

.page-case-detail .page-hero-mini,
.page-blog-detail .page-hero-mini {
  padding: 28px 0 16px;
  background: linear-gradient(180deg, rgba(126,168,190,0.05) 0%, transparent 100%);
  border-bottom: 1px solid var(--white-ghost);
}
.page-case-detail .back-link,
.page-blog-detail .back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-en);
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--navy); opacity: 0.55;
  text-decoration: none; transition: all 0.3s var(--ease);
  padding: 6px 0;
}
.page-case-detail .back-link:hover,
.page-blog-detail .back-link:hover { opacity: 1; color: var(--gold); letter-spacing: 0.22em; }

.case-detail-section,
.blog-detail-section {
  padding: 48px 0 96px;
}

/* ==============================================================
   CASE DETAIL — Editorial Layout
   ============================================================== */
.case-article {
  max-width: 1080px;
  margin: 0 auto;
}

/* --- Article Header --- */
.case-article-header {
  text-align: center;
  padding: 32px 0 56px;
  border-bottom: 1px solid var(--white-ghost);
  margin-bottom: 56px;
  position: relative;
}
.case-article-header::after {
  content: ''; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.case-article-category {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
  padding: 6px 16px;
  border: 1px solid var(--gold);
  border-radius: 100px;
  margin-bottom: 24px;
  background: rgba(126,168,190,0.05);
}
.case-article-title {
  font-family: var(--font-kr);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.3;
  color: var(--navy);
  margin: 0 auto 24px;
  max-width: 800px;
  letter-spacing: -0.02em;
  word-break: keep-all;
}
.case-article-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-top: 20px;
}
.case-article-meta .meta-chip {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  background: var(--surface-2);
  color: var(--navy);
  font-size: 0.8rem; font-weight: 500;
  border-radius: 100px;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
}
.case-article-meta .meta-chip.consent {
  background: rgba(46, 160, 67, 0.08);
  color: #2EA043;
  border-color: rgba(46, 160, 67, 0.2);
  font-weight: 600;
}

/* --- Before/After Compare Grid --- */
.case-compare-grid {
  display: flex; flex-direction: column; gap: 56px;
  margin-bottom: 64px;
}
.compare-set { position: relative; }
.compare-title {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-kr);
  font-size: 1.25rem; font-weight: 600; color: var(--navy);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--white-ghost);
}
.compare-title::before {
  content: ''; display: inline-block;
  width: 4px; height: 20px; border-radius: 2px;
  background: linear-gradient(180deg, var(--gold), var(--navy));
}
.compare-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.compare-item {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--white-ghost);
  box-shadow: 0 4px 24px rgba(15, 27, 45, 0.06);
  transition: all 0.5s var(--ease);
  aspect-ratio: 4/3;
}
.compare-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15, 27, 45, 0.12);
  border-color: rgba(126, 168, 190, 0.4);
}
.compare-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.6s var(--ease);
}
.compare-item:hover img { transform: scale(1.03); }

.compare-label {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: rgba(15, 27, 45, 0.85);
  color: #FFFFFF;
  font-family: var(--font-en);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(15, 27, 45, 0.2);
}
.compare-label::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #FF6B6B;
}
.compare-label.after {
  background: linear-gradient(135deg, var(--gold), var(--navy-light));
}
.compare-label.after::before { background: #4ADE80; }

.compare-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white-muted);
  font-family: var(--font-en); letter-spacing: 0.2em;
  font-size: 0.8rem;
  background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 10px, rgba(126,168,190,0.05) 10px, rgba(126,168,190,0.05) 20px);
}

/* --- Article Body — Treatment description --- */
.case-article-body {
  max-width: 760px;
  margin: 0 auto 64px;
  padding: 40px 0;
  border-top: 1px solid var(--white-ghost);
  border-bottom: 1px solid var(--white-ghost);
}
.case-article-body .section-heading,
.case-doctor-card .section-heading {
  font-family: var(--font-kr);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  text-align: center;
  position: relative;
  padding-bottom: 16px;
}
.case-article-body .section-heading::after,
.case-doctor-card .section-heading::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 32px; height: 1px; background: var(--gold);
}

.case-article-body .rich-content {
  font-family: var(--font-kr);
  font-size: 1.05rem; line-height: 1.85;
  color: var(--navy);
  letter-spacing: -0.01em;
  word-break: keep-all;
}
.case-article-body .rich-content > *:first-child { margin-top: 0; }
.case-article-body .rich-content > *:last-child { margin-bottom: 0; }
.case-article-body .rich-content p { margin: 0 0 1.2em; }
.case-article-body .rich-content h2,
.case-article-body .rich-content h3 {
  font-weight: 700; color: var(--navy);
  margin: 2em 0 0.8em;
  line-height: 1.4;
}
.case-article-body .rich-content h2 { font-size: 1.35rem; }
.case-article-body .rich-content h3 { font-size: 1.15rem; }
.case-article-body .rich-content ul,
.case-article-body .rich-content ol {
  margin: 0 0 1.2em; padding-left: 1.5em;
}
.case-article-body .rich-content li { margin-bottom: 0.5em; }
.case-article-body .rich-content strong { color: var(--navy); font-weight: 700; }
.case-article-body .rich-content a.term-link,
.blog-article-body a.term-link {
  color: var(--gold); text-decoration: none;
  border-bottom: 1px dashed var(--gold);
  transition: all 0.2s var(--ease);
}
.case-article-body .rich-content a.term-link:hover,
.blog-article-body a.term-link:hover {
  color: var(--navy); border-bottom-color: var(--navy); border-bottom-style: solid;
}

/* --- Doctor card (shared) --- */
.case-doctor-card {
  max-width: 760px;
  margin: 0 auto 48px;
}
.case-doctor-card .doctor-card {
  display: flex; align-items: center; gap: 24px;
  padding: 28px;
  background: linear-gradient(135deg, var(--surface-2) 0%, rgba(126,168,190,0.05) 100%);
  border: 1px solid var(--white-ghost);
  border-radius: 20px;
  transition: all 0.4s var(--ease);
}
.case-doctor-card .doctor-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(15, 27, 45, 0.08);
  transform: translateY(-2px);
}
.case-doctor-card .doctor-card-photo {
  flex-shrink: 0;
  width: 88px; height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  background: var(--surface);
}
.case-doctor-card .doctor-card-photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.case-doctor-card .doctor-card-info { flex: 1; min-width: 0; }
.case-doctor-card .doctor-card-name {
  display: flex; align-items: baseline; gap: 10px;
  margin: 0 0 8px;
  font-family: var(--font-kr);
  font-size: 1.25rem; font-weight: 700; color: var(--navy);
}
.case-doctor-card .doctor-card-name a {
  color: var(--navy); text-decoration: none;
  transition: color 0.3s var(--ease);
}
.case-doctor-card .doctor-card-name a:hover { color: var(--gold); }
.case-doctor-card .doctor-card-title {
  font-size: 0.85rem; font-weight: 400; color: var(--gold);
}
.case-doctor-card .doctor-card-greeting {
  margin: 0 0 10px;
  font-size: 0.9rem; line-height: 1.6;
  color: var(--navy); opacity: 0.75;
  word-break: keep-all;
}
.case-doctor-card .doctor-card-more {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-en);
  font-size: 0.75rem; letter-spacing: 0.1em;
  color: var(--gold); text-decoration: none; font-weight: 600;
  transition: all 0.3s var(--ease);
}
.case-doctor-card .doctor-card-more:hover {
  gap: 10px; color: var(--navy);
}

/* --- Article footer / disclaimer --- */
.case-article-footer {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid var(--white-ghost);
  text-align: center;
}
.case-disclaimer {
  font-size: 0.82rem; line-height: 1.7;
  color: var(--navy); opacity: 0.55;
  background: var(--surface-2);
  padding: 16px 20px;
  border-radius: 10px;
  margin: 0 0 32px;
  word-break: keep-all;
  border-left: 3px solid var(--gold);
  text-align: left;
}
.back-to-list {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-en);
  font-size: 0.78rem; letter-spacing: 0.2em;
  color: var(--navy);
  background: transparent;
  border: 1px solid var(--navy);
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.4s var(--ease);
}
.back-to-list:hover {
  background: var(--navy); color: #FFFFFF;
  gap: 14px;
}

/* ==============================================================
   BLOG DETAIL — Magazine Layout
   ============================================================== */
.blog-article {
  max-width: 760px;
  margin: 0 auto;
}

/* --- Blog header --- */
.blog-article-header {
  padding: 24px 0 40px;
  border-bottom: 1px solid var(--white-ghost);
  margin-bottom: 40px;
}
.blog-article-title {
  font-family: var(--font-kr);
  font-size: clamp(1.8rem, 4.2vw, 2.8rem);
  font-weight: 800; line-height: 1.3;
  color: var(--navy);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  word-break: keep-all;
}
.blog-article-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 0.88rem;
  color: var(--navy); opacity: 0.6;
}
.blog-article-meta .meta-author {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--navy); opacity: 0.85;
}
.blog-article-meta .meta-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--navy-light) 100%);
  color: #FFFFFF;
  border-radius: 50%;
  font-size: 0.8rem; font-style: normal;
}
.blog-article-meta .meta-dot {
  display: inline-block; width: 3px; height: 3px; border-radius: 50%;
  background: var(--navy); opacity: 0.3;
  margin: 0 4px;
}
.blog-article-meta .meta-date,
.blog-article-meta .meta-views {
  font-family: var(--font-en);
  font-size: 0.8rem; letter-spacing: 0.05em;
}

/* --- Blog hero image --- */
.blog-article-hero {
  margin: 0 0 40px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 48px rgba(15, 27, 45, 0.1);
  aspect-ratio: 16/9;
  background: var(--surface-2);
}
.blog-article-hero img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.blog-article-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(15,27,45,0.1) 100%);
  pointer-events: none;
}

/* --- Blog body --- */
.blog-article-body {
  font-family: var(--font-kr);
  font-size: 1.08rem; line-height: 1.9;
  color: var(--navy);
  letter-spacing: -0.005em;
  word-break: keep-all;
  margin-bottom: 48px;
}
.blog-article-body > *:first-child { margin-top: 0; }
.blog-article-body > *:last-child { margin-bottom: 0; }

.blog-article-body p { margin: 0 0 1.4em; }

.blog-article-body h1,
.blog-article-body h2,
.blog-article-body h3,
.blog-article-body h4 {
  font-weight: 800; color: var(--navy);
  line-height: 1.35; letter-spacing: -0.02em;
  margin: 2.2em 0 0.8em;
  position: relative; padding-bottom: 12px;
}
.blog-article-body h1 { font-size: 1.75rem; }
.blog-article-body h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid var(--white-ghost);
}
.blog-article-body h2::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 48px; height: 2px; background: var(--gold);
}
.blog-article-body h3 { font-size: 1.2rem; padding-bottom: 0; }
.blog-article-body h3::before {
  content: '';
  display: inline-block;
  width: 4px; height: 18px;
  background: var(--gold);
  margin-right: 10px;
  vertical-align: -3px;
  border-radius: 2px;
}

.blog-article-body ul,
.blog-article-body ol {
  margin: 0 0 1.4em; padding-left: 0; list-style: none;
}
.blog-article-body ul li,
.blog-article-body ol li {
  position: relative;
  padding-left: 1.75em;
  margin-bottom: 0.6em;
  line-height: 1.75;
}
.blog-article-body ul li::before {
  content: '';
  position: absolute; left: 0.3em; top: 0.75em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}
.blog-article-body ol {
  counter-reset: bloglist;
}
.blog-article-body ol li {
  counter-increment: bloglist;
}
.blog-article-body ol li::before {
  content: counter(bloglist);
  position: absolute; left: 0; top: 0.1em;
  font-family: var(--font-en);
  font-size: 0.78rem; font-weight: 700;
  color: var(--gold);
  width: 22px; height: 22px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

.blog-article-body strong {
  color: var(--navy); font-weight: 700;
  background: linear-gradient(180deg, transparent 60%, rgba(126,168,190,0.25) 60%);
  padding: 0 2px;
}
.blog-article-body em {
  color: var(--gold); font-style: normal; font-weight: 600;
}
.blog-article-body blockquote {
  margin: 2em 0;
  padding: 20px 24px;
  background: var(--surface-2);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  font-size: 1rem; color: var(--navy); opacity: 0.85;
  font-style: italic;
  position: relative;
}
.blog-article-body blockquote::before {
  content: '"';
  position: absolute; top: -8px; left: 12px;
  font-family: Georgia, serif;
  font-size: 3rem; color: var(--gold); opacity: 0.4;
  line-height: 1;
}
.blog-article-body blockquote p { margin: 0; }
.blog-article-body img {
  max-width: 100%; height: auto; display: block;
  border-radius: 12px;
  margin: 1.5em auto;
  box-shadow: 0 8px 24px rgba(15, 27, 45, 0.08);
}
.blog-article-body code {
  background: var(--surface-2);
  padding: 2px 8px; border-radius: 4px;
  font-size: 0.9em;
  color: var(--navy-light);
}
.blog-article-body hr {
  border: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--white-ghost), transparent);
  margin: 2.5em 0;
}
.blog-article-body a:not(.term-link) {
  color: var(--navy-light);
  text-decoration: underline; text-decoration-color: rgba(27, 58, 92, 0.3);
  text-underline-offset: 3px;
  transition: all 0.2s var(--ease);
}
.blog-article-body a:not(.term-link):hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

/* --- Blog gallery --- */
.blog-article-gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
  margin: 40px 0;
}
.blog-article-gallery figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 4/3;
  transition: all 0.4s var(--ease);
  box-shadow: 0 4px 16px rgba(15,27,45,0.06);
}
.blog-article-gallery figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(15,27,45,0.12);
}
.blog-article-gallery img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.6s var(--ease);
}
.blog-article-gallery figure:hover img { transform: scale(1.05); }

/* --- Blog footer --- */
.blog-article-footer {
  padding-top: 32px;
  border-top: 1px solid var(--white-ghost);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.share-box {
  display: flex; align-items: center; gap: 8px;
}
.share-label {
  font-family: var(--font-en);
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--navy); opacity: 0.5; font-weight: 600;
  margin-right: 4px;
}
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: var(--surface);
  border: 1px solid var(--white-ghost);
  border-radius: 50%;
  color: var(--navy);
  text-decoration: none;
  transition: all 0.3s var(--ease);
}
.share-btn svg { width: 14px; height: 14px; }
.share-btn:hover {
  background: var(--navy); color: #FFFFFF;
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15,27,45,0.15);
}

/* ==============================================================
   Responsive — Mobile
   ============================================================== */
@media (max-width: 768px) {
  .page-case-detail,
  .page-blog-detail { padding-top: 72px; }

  .case-detail-section,
  .blog-detail-section { padding: 24px 0 64px; }

  .case-article-header {
    padding: 16px 0 32px;
    margin-bottom: 32px;
  }
  .case-article-meta { gap: 6px; }
  .case-article-meta .meta-chip {
    padding: 4px 12px; font-size: 0.75rem;
  }

  .compare-pair {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .compare-item { aspect-ratio: 4/3; }
  .compare-label {
    top: 12px; left: 12px;
    padding: 6px 12px; font-size: 0.65rem;
  }
  .case-compare-grid { gap: 40px; margin-bottom: 40px; }
  .compare-title { font-size: 1.1rem; margin-bottom: 16px; }

  .case-article-body {
    padding: 28px 0;
    margin-bottom: 40px;
  }
  .case-article-body .rich-content { font-size: 1rem; line-height: 1.8; }

  .case-doctor-card .doctor-card {
    flex-direction: column; text-align: center;
    padding: 24px 20px; gap: 16px;
  }
  .case-doctor-card .doctor-card-photo { width: 72px; height: 72px; }
  .case-doctor-card .doctor-card-name { justify-content: center; }

  .blog-article-header { padding: 16px 0 28px; margin-bottom: 28px; }
  .blog-article-hero { margin-bottom: 28px; border-radius: 14px; }
  .blog-article-body { font-size: 1rem; line-height: 1.85; margin-bottom: 32px; }
  .blog-article-body h1 { font-size: 1.45rem; }
  .blog-article-body h2 { font-size: 1.25rem; }
  .blog-article-body h3 { font-size: 1.08rem; }
  .blog-article-body blockquote { padding: 16px 18px; font-size: 0.95rem; }

  .blog-article-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .share-box { justify-content: center; }
  .back-to-list { text-align: center; justify-content: center; }

  .case-disclaimer { font-size: 0.78rem; padding: 14px 16px; }
}

@media (max-width: 480px) {
  .case-article-title { font-size: 1.55rem; }
  .blog-article-title { font-size: 1.55rem; }
  .blog-article-meta { font-size: 0.8rem; gap: 6px; }
}

/* ============================================
   v24 — 이음치과 로고 시스템 적용
   - 헤더 nav-brand: 심볼 + 텍스트 가로 정렬
   - 푸터 footer-brand-logo: 심볼 + 텍스트 가로 정렬
   - 색상: 로고 네이비/민트 매칭
   ============================================ */

/* === 헤더 네비 — 심볼 로고 === */
.nav-brand--logo,
.nav-brand--premium {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  padding: 0.25rem 0 !important;
  text-decoration: none !important;
  line-height: 1 !important;
}

.nav-brand-symbol {
  display: block;
  height: 38px;
  width: auto;
  object-fit: contain;
  /* 호버시 살짝 회전하면서 강조 */
  transition: transform 0.6s var(--ease-cinematic, cubic-bezier(0.22, 0.61, 0.36, 1));
  flex-shrink: 0;
}

.nav-brand:hover .nav-brand-symbol {
  transform: scale(1.05) rotate(-3deg);
}

.nav-brand-text,
.nav-brand-mark {
  font-family: var(--font-kr, 'Noto Sans KR'), sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  letter-spacing: -0.01em !important;
  color: var(--white) !important;
  line-height: 1 !important;
  display: inline-block;
}

#nav.scrolled .nav-brand-text,
#nav.scrolled .nav-brand-mark {
  color: var(--white) !important;
}

/* 다크 존(hero 위)에서는 흰색 텍스트 */
#nav:not(.scrolled) .nav-brand-text,
#nav:not(.scrolled) .nav-brand-mark,
#nav.nav-dark-zone .nav-brand-text,
#nav.nav-dark-zone .nav-brand-mark {
  color: #ffffff !important;
}

/* premium 버전: 추가 EUM · EST.2025 서브 텍스트 */
.nav-brand--premium .nav-brand-sub {
  font-family: var(--font-ui, 'Inter'), sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--gold, #4ABCBD);
  font-weight: 500;
  text-transform: uppercase;
  margin-left: 0.4rem;
  padding-left: 0.6rem;
  border-left: 1px solid rgba(74, 188, 189, 0.4);
  line-height: 1;
  align-self: center;
}

#nav:not(.scrolled) .nav-brand--premium .nav-brand-sub {
  color: rgba(255, 255, 255, 0.7);
  border-left-color: rgba(255, 255, 255, 0.25);
}

/* 모바일에서 sub 텍스트 숨기기 */
@media (max-width: 640px) {
  .nav-brand-symbol {
    height: 32px;
  }
  .nav-brand-text,
  .nav-brand-mark {
    font-size: 0.95rem !important;
  }
  .nav-brand--premium .nav-brand-sub {
    display: none;
  }
}

@media (max-width: 380px) {
  .nav-brand-text,
  .nav-brand-mark {
    font-size: 0.9rem !important;
  }
}

/* === 푸터 — 심볼 + 브랜드 로고 === */
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.footer-brand-symbol {
  display: block;
  height: 56px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  /* 살짝 글로우 효과 (네이비 배경에서 빛나는 느낌) */
  filter: drop-shadow(0 2px 8px rgba(74, 188, 189, 0.15));
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-brand-col .footer-brand-text .footer-brand-big {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1;
  font-family: var(--font-kr, 'Noto Sans KR'), sans-serif;
}

/* 기존 ::after dot 제거 (새 디자인에 맞지 않음) */
.footer-brand-col .footer-brand-text .footer-brand-big::after {
  display: none;
}

.footer-brand-en {
  font-family: var(--font-ui, 'Inter'), sans-serif;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--gold, #4ABCBD);
  text-transform: uppercase;
  line-height: 1;
}

/* footer-minimal (홈페이지) 버전 */
.footer-minimal .footer-brand-logo {
  margin-bottom: 0.5rem;
}

.footer-minimal .footer-brand-symbol {
  height: 44px;
}

.footer-minimal .footer-brand-text .footer-brand-big {
  font-size: 1.4rem;
  color: #ffffff;
}

.footer-minimal .footer-brand-en {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
}

@media (max-width: 640px) {
  .footer-brand-logo {
    gap: 0.7rem;
    margin-bottom: 0.85rem;
  }
  .footer-brand-symbol {
    height: 46px;
  }
  .footer-brand-col .footer-brand-text .footer-brand-big,
  .footer-minimal .footer-brand-text .footer-brand-big {
    font-size: 1.4rem;
  }
  .footer-brand-en {
    font-size: 0.6rem;
  }
}

/* === 로고 컬러 매칭 — 액센트 강화 === */
/* 골드 도트(기존) 제거되었지만, 다른 곳에 아직 ::after dot이 있을 수 있어 안전하게 처리 */
.footer-brand-logo + .footer-tagline {
  margin-top: 0;
}


/* ─────────────────────────────────────────────
   Footer z-index fix — blackout-overlay(z-900)이 푸터를 덮지 않도록 보장
   (GSAP이 scroll 바닥에서 opacity를 못 돌려놓는 엣지케이스 방어)
───────────────────────────────────────────── */
.footer-full,
.footer-minimal {
  position: relative;
  z-index: 950;
  isolation: isolate;
}

/* ═══════════════════════════════════════════════════════════════
   [v2 튜닝] 원장 사진 / 히어로 시그니처 / 푸터 로고 심볼
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   1. 원장 사진 프레임 — 원본 비율(1143×1600 ≈ 5:7)에 맞춤
   - 기존 3:4(0.75), 4:5(0.8) 모두 상/하 잘림 또는 여백 발생
   - 원본은 0.714 (세로로 더 김) → 프레임도 5:7로 통일해서 사진이 프레임에 꽉 차게
   - object-fit: cover, object-position 상단 고정으로 얼굴·어깨 모두 보이게
───────────────────────────────────────────── */
.director-frame {
  aspect-ratio: 5 / 7 !important;         /* 원본 이미지 비율과 일치 */
  border-radius: 20px;
  background: #F5F8FB;                    /* 사진 배경 흰색과 조화 (네이비 프레임 대신 연청백) */
  border: 1px solid rgba(74, 188, 189, 0.22);
  box-shadow:
    0 20px 50px rgba(0, 48, 106, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.08);
}
.director-photo {
  object-fit: cover !important;
  object-position: center 18% !important;  /* 얼굴 중심선을 프레임 상단 1/4에 */
  filter: saturate(1.02) contrast(1.04) brightness(1.01) !important;
  width: 100% !important;
  height: 100% !important;
}
/* corner accent — 프레임 바깥쪽으로 이동해서 사진 영역과 겹치지 않게
   (기존: bottom:-1px/left:-1px로 프레임 테두리 위에 L자가 겹쳐 보임 → 사진 하단에 얇은 줄처럼 보이는 원인)
   (개선: 좌상단은 외부로, 우하단 L자는 제거하여 여백을 깔끔하게) */
.director-frame::before {
  top: -8px !important;
  left: -8px !important;
  right: auto !important;
  bottom: auto !important;
  width: 42px !important;
  height: 42px !important;
  border: 2px solid var(--gold) !important;
  border-right: none !important;
  border-bottom: none !important;
  border-radius: 4px 0 0 0;
  opacity: 0.9;
}
/* 우하단 L자는 완전히 숨김 (사진 하단에 줄처럼 보이던 요소) */
.director-frame::after {
  display: none !important;
}
.director-frame:hover::before {
  width: 60px !important;
  height: 60px !important;
  opacity: 1;
}

/* 모바일에서는 가로폭이 좁아서 5:7 유지 시 너무 커짐 → 4:5로 살짝 짧게 */
@media (max-width: 768px) {
  .director-frame {
    aspect-ratio: 4 / 5 !important;
    max-width: 360px;
    margin: 0 auto;
  }
  .director-photo {
    object-position: center 15% !important;
  }
}

/* ─────────────────────────────────────────────
   2. 히어로 "이음치과" 시그니처 — 더 크고 존재감 있게
───────────────────────────────────────────── */
.hero-signature {
  padding: 1.1rem 2.1rem;                       /* 1.1 → 1.1 / 1.75 → 2.1 */
  gap: 1.6rem;                                  /* 1.25 → 1.6 */
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(74, 188, 189, 0.18);   /* 민트 틴트 */
  box-shadow: 0 2px 18px rgba(0, 48, 106, 0.25);
  margin-top: 2.5rem;
}
.hero-signature-ko {
  font-size: 1.65rem !important;                /* 1.15 → 1.65 (확 키움) */
  font-weight: 600;
  letter-spacing: 0.01em;
  /* 아주 살짝 민트 글로우 */
  text-shadow: 0 0 24px rgba(74, 188, 189, 0.25);
}
.hero-signature-divider {
  height: 20px !important;                      /* 14 → 20 */
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(74, 188, 189, 0.7) 50%,
    transparent 100%) !important;
}
.hero-signature-en {
  font-size: 0.88rem !important;                /* 0.72 → 0.88 */
  letter-spacing: 0.25em !important;
  color: rgba(255, 255, 255, 0.72) !important;
}

@media (max-width: 768px) {
  .hero-signature {
    padding: 0.85rem 1.5rem;
    gap: 1.1rem;
    margin-top: 1.75rem;
  }
  .hero-signature-ko { font-size: 1.3rem !important; }
  .hero-signature-en { font-size: 0.7rem !important; letter-spacing: 0.2em !important; }
  .hero-signature-divider { height: 16px !important; }
}
@media (max-width: 480px) {
  .hero-signature-ko { font-size: 1.15rem !important; }
  .hero-signature-en { font-size: 0.6rem !important; }
}

/* ─────────────────────────────────────────────
   3. 푸터 로고 심볼 — 헤더 로고와 완전 동일한 룩 (원본 컬러 symbol.png, 투명 배경)
   ※ 기존 흰색 변환본 + 민트 카드 배경 → 헤더와 톤이 달라 보여서 리셋
───────────────────────────────────────────── */
.footer-brand-symbol {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  height: 56px !important;
  width: auto !important;
  box-sizing: content-box;
  transition: opacity 0.35s var(--ease, cubic-bezier(.2,.8,.2,1));
}
.footer-brand-logo:hover .footer-brand-symbol,
.footer-brand-col:hover .footer-brand-symbol {
  opacity: 0.85;
}

.footer-minimal .footer-brand-symbol {
  height: 44px !important;
}

@media (max-width: 640px) {
  .footer-brand-symbol {
    height: 46px !important;
  }
}

/* ============================================
   NAV MENU BTN — Mobile polish
   ============================================ */
@media (max-width: 768px) {
  .nav-menu-btn {
    padding: 0.5rem 0.9rem 0.5rem 0.75rem;
    gap: 0.5rem;
    font-size: 0.62rem;
    letter-spacing: 0.22em;
  }
  .nav-menu-icon { width: 18px; height: 12px; }
  .nav-menu-line:nth-child(1) { width: 18px; margin-bottom: 4px; }
  .nav-menu-line:nth-child(2) { width: 12px; margin-bottom: 4px; }
  .nav-menu-line:nth-child(3) { width: 16px; }
  .nav-menu-btn.is-open .nav-menu-line:nth-child(1) { transform: translateY(5px) rotate(45deg); width: 18px; }
  .nav-menu-btn.is-open .nav-menu-line:nth-child(3) { transform: translateY(-5px) rotate(-45deg); width: 18px; }
}
@media (max-width: 420px) {
  /* 초소형 화면: 라벨 숨기고 아이콘만 */
  .nav-menu-btn {
    padding: 0.55rem 0.65rem;
    gap: 0;
    min-width: 40px;
    justify-content: center;
  }
  .nav-menu-label { display: none; }
}
