/* ============================================
   이음치과의원 — 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 {
  /* === WHITE & NAVY PALETTE === */
  --bg: #FFFFFF;
  --bg-2: #F5F7FA;
  --surface: #FFFFFF;
  --surface-2: #F0F3F8;
  --white: #0F1B2D;
  --white-dim: rgba(15, 27, 45, 0.7);
  --white-muted: rgba(15, 27, 45, 0.4);
  --white-ghost: rgba(15, 27, 45, 0.08);

  /* Accent = Navy blue tones */
  --gold: #1B3A5C;
  --gold-bright: #2A5A8F;
  --gold-dim: rgba(27, 58, 92, 0.08);
  --navy: #0F1B2D;
  --navy-light: #1B3A5C;

  /* CTA = Navy accent */
  --cta: #1B3A5C;
  --cta-bright: #2A5A8F;
  --cta-dim: rgba(27, 58, 92, 0.06);

  /* === Dark section variables (Navy-based) === */
  --dark-bg: #0F1B2D;
  --dark-surface: #162744;
  --dark-text: #F5F7FA;
  --dark-text-dim: rgba(245, 247, 250, 0.75);
  --dark-text-muted: rgba(245, 247, 250, 0.4);
  --dark-border: rgba(245, 247, 250, 0.1);

  --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(15,27,45,0.04);
  --shadow-md: 0 4px 20px rgba(15,27,45,0.07);
  --shadow-lg: 0 12px 40px rgba(15,27,45,0.10);
  --shadow-xl: 0 20px 60px rgba(15,27,45,0.14);
}

*, *::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 only on capable devices */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
}

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.92);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(15, 27, 45, 0.06);
  box-shadow: 0 1px 8px rgba(15, 27, 45, 0.04);
}

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

#nav.scrolled .nav-menu-btn {
  border-color: rgba(15, 27, 45, 0.15);
}

.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.15);
}
#nav.scrolled .nav-booking:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.nav-menu-btn {
  background: none;
  border: 1px solid rgba(248,249,252,0.2);
  color: var(--white);
  font-family: var(--font-en);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  padding: 0.55rem 1.8rem;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
@media (hover: hover) and (pointer: fine) {
  .nav-menu-btn { cursor: none; }
}

.nav-menu-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
  z-index: 0;
}

.nav-menu-btn:hover::before {
  transform: translateY(0);
}

.nav-menu-btn span {
  position: relative;
  z-index: 1;
  transition: color 0.4s var(--ease);
}

.nav-menu-btn:hover span {
  color: var(--bg);
}

/* === 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;
}

/* ─── 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: 'EUM 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;
  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;
  /* 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: flex-end;
  justify-content: space-between;
  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;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.2rem;
  background: transparent;
  border: 1px solid rgba(245, 247, 250, 0.2);
  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);
}

.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 {
  border-color: rgba(42, 90, 143, 0.5);
  color: #fff;
}

.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;
}

/* 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: 800px;
  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;
}
.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);
}
.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: var(--bg-2);
  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(27,58,92,0.03) 0%, transparent 70%);
  pointer-events: none;
}
.story-stats-inner {
  display: flex; justify-content: center; align-items: center; gap: 4rem;
  position: relative; z-index: 1;
}

/* ═══ STORY PILLARS ═══ */
.story-pillars {
  padding: var(--section-rhythm) 0;
  background: var(--bg);
}
.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(--surface); border: 1px solid var(--white-ghost);
  border-radius: 16px;
  transition: all 0.6s cubic-bezier(0.16,1,0.3,1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.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 {
  border-color: rgba(27,58,92,0.15);
  box-shadow:
    0 20px 60px rgba(15,27,45,0.08),
    0 0 30px rgba(27,58,92,0.04),
    inset 0 1px 0 rgba(255,255,255,0.5);
  transform: translateY(-6px);
}
.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); 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-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-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: var(--bg);
  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(--surface);
  border: 1px solid var(--white-ghost);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease);
  transform-style: preserve-3d;
  box-shadow: var(--shadow-sm);
}

/* 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 {
  border-color: rgba(27,58,92,0.15);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.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;
  border: 1px solid var(--gold-dim);
  padding: 0.3rem 0.75rem;
  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;
  border: 1px solid var(--white-ghost);
  transition: all 0.3s var(--ease);
}

.h-card:hover .h-card-features span {
  border-color: var(--gold-dim);
  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(27,58,92,0.03);
  border-left: 2px solid var(--gold-dim);
  border-radius: 0 6px 6px 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: var(--dark-bg);
  color: var(--dark-text);
  position: relative;
  overflow: hidden;
}

/* Decorative circle */
.director-full::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  border: 1px solid var(--dark-border);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.5;
}

.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(--dark-border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--dark-surface);
  border-radius: 4px;
}

/* 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, rgba(15, 27, 45, 0.85));
}

.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-left: 1.5rem;
  border-left: 3px solid var(--cta-bright);
  font-style: italic;
  /* 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;
  /* opacity/transform handled by [data-reveal] system */
}

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

.cred-block {
  /* opacity/transform handled by [data-reveal] system */
  transition: all 0.6s var(--ease);
}

.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 var(--dark-border);
  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: var(--bg);
  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: var(--white-ghost);
  border-radius: 12px;
  overflow: hidden;
}

/* 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(--bg-2);
  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(--surface);
  box-shadow: var(--shadow-md);
  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(--gold);
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--gold-dim);
  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 60% 50% at 20% 50%, rgba(27, 58, 92, 0.035) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(27, 58, 92, 0.02) 0%, transparent 70%),
    var(--bg-2);
}

.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: var(--white-ghost);
  border-radius: 16px;
  overflow: hidden;
}

/* 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(--surface);
  /* 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(--surface-2);
  box-shadow: var(--shadow-md);
  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 === */
.footer-minimal {
  padding: 6rem 0 3rem;
  background: var(--dark-bg);
  color: var(--dark-text);
  border-top: none;
}

.footer-top {
  margin-bottom: 4rem;
}

.footer-brand-big {
  font-family: var(--font-en);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--dark-text);
  margin-bottom: 1rem;
  transition: color 0.5s;
  font-style: italic;
  opacity: 0.85;
}

.footer-brand-big:hover {
  color: var(--cta-bright);
}

.footer-tagline {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--dark-text-dim);
  margin-top: 0.75rem;
  max-width: 360px;
  line-height: 1.7;
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--dark-border);
  font-size: 0.72rem;
  color: var(--dark-text-muted);
}

.footer-bottom-bar a {
  color: var(--dark-text-muted);
  transition: color 0.3s;
}

.footer-bottom-bar a:hover {
  color: var(--cta-bright);
}

/* === FOOTER FULL === */
.footer-full {
  padding: 5rem 0 2.5rem;
  background: var(--dark-bg);
  color: var(--dark-text);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-nav-col h4 {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dark-text-muted);
  margin-bottom: 1.2rem;
}

.footer-nav-col a {
  display: block;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--dark-text-dim);
  padding: 0.3rem 0;
  transition: color 0.3s, padding-left 0.3s;
}

.footer-nav-col a:hover {
  color: var(--cta-bright);
  padding-left: 0.3rem;
}

.footer-sns {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-sns a {
  color: var(--dark-text-muted);
  transition: color 0.3s;
}

.footer-sns a:hover {
  color: var(--cta-bright);
}

.footer-biz-info {
  padding: 2rem 0;
  border-top: 1px solid var(--dark-border);
  margin-bottom: 1rem;
}

.footer-biz-info p {
  font-size: 0.75rem;
  color: var(--dark-text-muted);
  line-height: 1.8;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--white-muted);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--gold);
}

/* === FLOATING CALL === */
.floating-call {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-bg);
  color: var(--dark-text);
  border-radius: 50%;
  z-index: 900;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.5s var(--ease);
  box-shadow: 0 6px 24px rgba(15, 27, 45, 0.2);
}

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

.floating-call:hover {
  background: var(--cta-bright);
  box-shadow: 0 4px 30px rgba(42, 90, 143, 0.4);
}

/* 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; }
}

/* === 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;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@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;
  }

  .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;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* === 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, .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 === */
.notice-detail-section { padding: 2rem 0 4rem; }
.notice-detail-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--white-ghost); }
.notice-detail-header h1 { font-size: 1.5rem; font-weight: 600; margin: 0.5rem 0; }
.notice-meta { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--white-muted); }
.notice-detail-content { color: var(--white-dim); line-height: 1.9; font-size: 0.95rem; }

/* === 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); }

/* 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; }

/* === FULL FOOTER === */
.footer-full {
  padding: 60px 0 24px; background: var(--dark-bg); color: var(--dark-text);
  border-top: 1px solid var(--dark-border);
}
.footer-top-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 32px; border-bottom: 1px solid var(--dark-border);
}
.footer-brand-col .footer-brand-big { font-family: var(--font-serif); font-size: 2rem; color: var(--cta-bright); margin-bottom: 8px; }
.footer-brand-col .footer-tagline { color: var(--dark-text-dim); font-size: 0.85rem; margin-bottom: 16px; }
.footer-sns { display: flex; gap: 12px; }
.footer-sns a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--dark-border);
  display: flex; align-items: center; justify-content: center; color: var(--dark-text-muted);
  transition: all 0.3s; text-decoration: none;
}
.footer-sns a:hover { border-color: var(--cta-bright); color: var(--cta-bright); }

.footer-nav-col h4 { font-size: 0.75rem; color: var(--dark-text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.footer-nav-col a { display: block; color: var(--dark-text-dim); text-decoration: none; font-size: 0.85rem; padding: 4px 0; transition: color 0.3s; }
.footer-nav-col a:hover { color: var(--dark-text); }

.footer-biz-info { padding: 16px 0; }
.footer-biz-info p { font-size: 0.75rem; color: var(--dark-text-muted); margin-bottom: 2px; }

.footer-bottom-bar { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; }
.footer-bottom-bar span { font-size: 0.75rem; color: var(--dark-text-muted); }
.footer-legal-links { display: flex; gap: 16px; }
.footer-legal-links a { font-size: 0.75rem; color: var(--dark-text-muted); text-decoration: none; }
.footer-legal-links a:hover { color: var(--dark-text-dim); }

/* === 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; }
  .footer-top-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .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; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom-bar { flex-direction: column; gap: 8px; }
}

/* ============================================
   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 === */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  z-index: 10000; transform-origin: left; transform: scaleX(0);
  pointer-events: none;
}

/* === 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; }
}
