/* ==========================================================================
   EMPATHIE ATELIER — MAUHAUS WORK STYLE CONTEMPORARY ART DESIGN SYSTEM
   Faithful to mauhaus.kr/work layout (Pure White Canvas, Vertical Art Landscape,
   Handmade Art Typography, Uppercase Editorial Navigation, Light Neutral Tones)
   ========================================================================== */

/* ── GOOGLE WEB FONTS ── */
/* 글꼴은 empathie-design.css에서 직접 호스팅합니다(Paperlogy·Lexend Exa, SIL OFL 1.1) */

/* ── ROOT DESIGN TOKENS (CONTEMPORARY ATELIER PALETTE) ── */
:root {
  /* Canvas & Neutral System (White, Light Gray, Warm Light Beige) */
  --c-white:          #ffffff;
  --c-bg-canvas:      #ffffff;      /* Pure White Gallery Canvas */
  --c-bg-soft:        #faf9f6;      /* Ultra Soft Warm Gallery Tint */
  --c-bg-gray:        #f4f5f2;      /* Gentle Sculptural Gray */
  --c-bg-beige:       #f7f3ec;      /* Warm Light Studio Beige */
  --c-bg-beige-light: #fbf9f5;      /* Soft Light Sand Cream */
  --c-card-bg:        #ffffff;
  
  /* Ink & Refined Editorial Typography */
  --c-ink:            #1a1a1a;      /* Deep Modern Charcoal */
  --c-body:           #3a3a3a;      /* Elegant Body Charcoal */
  --c-mute:           #787878;      /* Neutral Gray */
  --c-stone:          #e5e3dc;      /* Sculptural Line Accent */
  --c-hr:             #ece9e2;      /* Fine Separator */
  
  /* Empathie Atelier Signature Accent Palette */
  --c-sage:           #4a6b53;      /* Deep Organic Sage Green */
  --c-sage-soft:      #ebf2ec;      /* Soft Sage Tint */
  --c-ochre:          #b57c38;      /* Warm Terracotta Ochre */
  --c-ochre-soft:     #faf3e8;      /* Soft Ochre Tint */
  --c-slate:          #3d5a80;      /* Gentle Slate Blue */
  --c-slate-soft:     #edf2f7;      /* Soft Slate Tint */
  
  /* SNS & External Channel Brand Colors */
  --c-sns-insta:      linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  --c-sns-naver:      #03cf5d;
  --c-sns-kakao:      #fee500;
  --c-sns-kakao-text: #191919;
  --c-smartstore:     #03cf5d;
  
  --c-dark:           #1a1a1a;
  --c-dark-soft:      #262626;
  --c-dark-text:      #ffffff;
  --c-dark-sub:       #a3a3a3;
  
  /* Font Families */
  --f-art:     'Gaegu', 'Caveat', 'Nanum Pen Script', cursive;  /* Contemporary Hand-drawn Art Typography */
  --f-art-eng: 'Caveat', 'Gaegu', cursive;
  --f-serif:   'Gowun Batang', serif;
  --f-sans:    'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Inter', 'Apple SD Gothic Neo', sans-serif;
  --f-mono:    'Inter', -apple-system, sans-serif;
  
  /* Geometry & Radii */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   24px;
  --r-full: 9999px;
  
  /* 🎨 ARTISTIC BRUSH & ORGANIC ATELIER TOKENS */
  --r-brush-btn:     255px 18px 225px 18px/18px 225px 18px 255px;   /* 자연스러운 붓질 버튼 외곽선 */
  --r-brush-btn-alt: 18px 245px 16px 235px/235px 18px 245px 18px;   /* 반대 방향 유기적 붓질 */
  --r-brush-badge:   255px 25px 225px 25px/25px 225px 25px 255px;   /* 배지/태그용 붓터치 외곽선 */
  --r-brush-blob:    62% 38% 58% 42% / 44% 56% 44% 56%;             /* 물감 방울 유기적 실루엣 */
  --r-brush-card:    255px 25px 225px 25px/25px 225px 25px 255px;   /* 카드용 부드러운 스케치 곡률 */
  
  /* Shadows & Transitions */
  --sh-subtle: 0 4px 20px rgba(0, 0, 0, 0.04);
  --sh-hover:  0 14px 36px rgba(0, 0, 0, 0.07);
  --sh-float:  0 20px 50px rgba(0, 0, 0, 0.10);
  
  --tr-base: 280ms cubic-bezier(0.16, 1, 0.3, 1);
  --sp-sec: 100px;

  /* ── 추가 색상 변수 (에러/브랜드/액션/모달) ── */
  --c-sale:    #e53e3e;   /* 에러 메시지 · 할인 강조 레드 */
  --c-sale-bg: #fef2f2;  /* 삭제 버튼 배경 연분홍 */
  --c-mau-red: #c94040;  /* 브랜드 포인트 레드 (약관 링크 등) */
  --c-coral:   #eb5e55;  /* 따뜻한 Coral 액션 버튼 색상 */
  --c-sand:    #faf8f5;  /* 모달/카드 배경 샌드 베이지 */
  --c-border:  #e5e3dc;  /* 공통 테두리 색상 (--c-stone 별칭) */

  /* ── 2025-2026 업그레이드 추가 변수 ── */
  --f-display: 'Cormorant Garamond', 'Gowun Batang', serif; /* 고급 디스플레이 세리프 */
  --c-overlay: rgba(26, 26, 26, 0.42);  /* 갤러리 이미지 오버레이 */
}

/* ── GLOBAL RESET & KOREAN WORD-BREAK SYSTEM (한글 단어 쪼개짐 완벽 방지) ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  word-break: keep-all;       /* 한글 단어 단위 줄바꿈 (조사/글자 분리 방지) */
  overflow-wrap: break-word;  /* 긴 영문/숫자 넘침 방어 */
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}
body {
  font-family: var(--f-sans);
  color: var(--c-body);
  background-color: var(--c-bg-canvas);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  word-break: keep-all;
  overflow-wrap: break-word;
}
h1, h2, h3, h4, h5, h6, p, span, a, button, label, li, strong, div {
  word-break: keep-all;
  overflow-wrap: break-word;
}
h1, h2, h3, h4, .art-title, .sec-head h2, .director-copy h2 {
  text-wrap: balance; /* 모던 브라우저에서 제목 줄바꿈 균형 유지 */
}
a, a:hover, a:focus, a:active, a:visited {
  text-decoration: none !important;
  outline: none;
}
button, button:hover, button:focus, button:active {
  text-decoration: none !important;
  outline: none;
  font-family: inherit;
}


/* ── RESPONSIVE LINE-BREAK & DISPLAY HELPERS ── */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .hide-pc { display: none !important; }
}

/* ── BASE CONTAINER & LUXURIOUS EDITORIAL MARGINS (좌우 쾌적한 여백) ── */
.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ── TYPOGRAPHY HELPERS (UNIFIED TONE & CHARCOAL FINISH) ── */
.art-title {
  font-family: var(--f-art);
  font-size: clamp(44px, 5.5vw, 72px);
  color: var(--c-ink);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.art-title--sage {
  color: var(--c-sage);
}
.art-sub-guide {
  font-size: 14.5px;
  color: var(--c-mute);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 8px;
}
/* ══════════════════════════════════════════════
   ✨ 스크롤 진입 애니메이션 시스템 (Scroll Reveal)
   2025~2026 프리미엄 브랜드 필수 표준 기법
   ══════════════════════════════════════════════ */

/* 초기 상태: 숨겨진 아래 위치 */
.reveal-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-fade {
  opacity: 0;
  transition: opacity 0.7s ease;
}
/* 진입 완료 상태 */
.reveal-up.is-visible,
.reveal-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* 딜레이 변형 클래스 */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── ADMIN CONTROL BAR ── */

.admin-bar {
  background: #191716 !important;
  color: #ffffff !important;
  padding: 5px 0 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  font-size: 13px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.admin-bar__inner.wrap,
.admin-bar__inner {
  max-width: 1140px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.admin-bar__title {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-weight: 800 !important;
  font-size: 12.5px !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  padding-right: 4px !important;
}
.admin-bar__btns {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 5px !important;
  flex: 1 !important;
  min-width: 0 !important;
  width: auto !important;
}
.admin-bar .btn,
.admin-bar-item {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  height: 26px !important;
  padding: 0 2px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  color: #ffffff !important;
  background: rgba(255,255,255,0.08) !important;
  border-radius: 9999px !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.18s ease;
}
.admin-bar .btn:hover,
.admin-bar-item:hover {
  background: #ffffff !important;
  color: #111111 !important;
}

/* 모바일 전용 원클릭 관리자 런처 버튼 (기본 PC는 숨김) */
.admin-bar__mobile-trigger {
  display: none !important;
}

@media (max-width: 992px) {
  .admin-bar {
    padding: 8px 0 !important;
  }
  .admin-bar__inner {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 12px 0 16px !important;
  }
  .admin-bar__title {
    font-size: 12px !important;
  }
  /* PC용 긴 버튼 목록은 모바일에서 숨김 */
  .admin-bar__btns {
    display: none !important;
  }
  /* PC용 토글 버튼도 모바일에서 숨김 */
  .admin-bar__toggle {
    display: none !important;
  }
  /* 모바일용 스마트 런처 버튼 활성화 */
  .admin-bar__mobile-trigger {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    height: 32px !important;
    padding: 0 14px !important;
    margin-right: 10px !important;
    background: var(--c-ochre) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 9999px !important;
    box-shadow: 0 2px 8px rgba(181, 124, 56, 0.4) !important;
  }
}



/* ══════════════════════════════════════════════
   📱 모바일 원스톱 관리자 허브 모달 (2열 카드 그리드)
   ══════════════════════════════════════════════ */
.admin-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0 16px;
  box-sizing: border-box;
}
.admin-hub-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  background: var(--c-bg-beige, #fbf9f5);
  border: 1.5px solid var(--c-stone, #e3ded5);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}
.admin-hub-card:hover, .admin-hub-card:active {
  background: #ffffff;
  border-color: var(--c-ink, #1a1a1a);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.admin-hub-card--primary {
  background: #faf3e8;
  border-color: #b57c38;
}
.admin-hub-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}
.admin-hub-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.admin-hub-info strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-hub-info span {
  font-size: 11px;
  color: var(--c-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── BUTTONS (ARTISTIC ATELIER & BRUSH TOUCH) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-brush-btn);
  padding: 10px 22px;
  min-height: 42px;
  height: auto;
  line-height: 1.35;
  white-space: nowrap;
  text-decoration: none !important;
  border: 1.5px solid transparent;
  transition: all var(--tr-base), border-radius 0.3s ease;
  cursor: pointer;
  overflow: visible;
  flex-shrink: 0;
  box-sizing: border-box;
  vertical-align: middle;
  position: relative;
}
.btn:active { transform: scale(0.97); }

/* ══ CTA Button Ripple 클릭 효과 ══ */
@keyframes btn-ripple {
  to { transform: scale(4); opacity: 0; }
}
.btn-ripple-effect {
  position: absolute;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.4);
  transform: scale(0);
  animation: btn-ripple 0.55s linear;
  pointer-events: none;
  margin-left: -5px;
  margin-top: -5px;
}
.btn-primary, a.btn-primary, button.btn-primary {
  background-color: var(--c-ink) !important;
  color: #ffffff !important;
  border: 1.5px solid var(--c-ink) !important;
  border-radius: var(--r-brush-btn) !important;
}
.btn-primary:hover, a.btn-primary:hover, button.btn-primary:hover {
  background-color: var(--c-sage) !important;
  box-shadow: 0 6px 20px rgba(74, 107, 83, 0.32);
  color: #ffffff !important;
  border-color: var(--c-sage) !important;
  border-radius: var(--r-brush-btn-alt) !important;
  transform: translateY(-2px);
}
.btn-outline, a.btn-outline, button.btn-outline {
  background-color: #ffffff !important;
  color: var(--c-ink) !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: var(--r-brush-btn) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.btn-outline:hover, a.btn-outline:hover, button.btn-outline:hover {
  border-color: var(--c-ink) !important;
  background-color: #fbf9f6 !important;
  color: var(--c-ink) !important;
  border-radius: var(--r-brush-btn-alt) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--c-body) !important;
  border: 1.5px solid transparent !important;
  border-radius: var(--r-brush-btn) !important;
}
.btn-ghost:hover {
  color: var(--c-sage) !important;
  background: var(--c-bg-gray);
  border-radius: var(--r-brush-btn-alt) !important;
}

/* 🎨 시그니처 붓터치 하이라이트 버튼 (.btn-brush) */
.btn-brush {
  border-radius: var(--r-brush-btn) !important;
  position: relative;
  box-shadow: 0 4px 14px rgba(181, 124, 56, 0.18);
}
.btn-brush::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--r-brush-btn-alt);
  border: 1px dashed rgba(181, 124, 56, 0.4);
  pointer-events: none;
  opacity: 0.7;
}
.btn-lg { font-size: 15px; min-height: 48px; height: auto; padding: 12px 28px; line-height: 1.35; }
.btn-sm {
  font-size: 12.5px;
  min-height: 36px;
  height: 36px;
  padding: 0 16px;
  line-height: 33px;
  box-sizing: border-box;
}
.w-full { width: 100%; }

/* GNB 로그인 회원 전용 버튼/뱃지 (테두리 100% 선명 보장) */
.btn-nav-user {
  background: #ffffff !important;
  color: var(--c-ink) !important;
  border: 1.5px solid #b4bec8 !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08) !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}
.btn-nav-user:hover {
  border-color: var(--c-ink) !important;
  background: #f4f5f2 !important;
  color: var(--c-ink) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
}
.btn-nav-admin {
  border-color: #7C5CBF !important;
  color: #7C5CBF !important;
  background: #fbf9ff !important;
  box-shadow: 0 3px 10px rgba(124, 92, 191, 0.15) !important;
}
.btn-nav-admin:hover {
  background: #7C5CBF !important;
  color: #ffffff !important;
  border-color: #7C5CBF !important;
}

.btn-nav-logout {
  background: var(--c-ink) !important;
  color: #ffffff !important;
  border: 1.5px solid var(--c-ink) !important;
  font-weight: 600 !important;
}
.btn-nav-logout:hover {
  background: var(--c-sage) !important;
  border-color: var(--c-sage) !important;
  color: #ffffff !important;
}


/* ── SNS CHANNEL BRAND BADGES (CLEAN OUTLINE / NO BACKGROUND) ── */
.sns-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  text-decoration: none;
  background: transparent !important;
  border: 1.5px solid var(--c-stone, #dcd7cf);
  color: var(--c-ink, #1d1d1b) !important;
  box-shadow: none !important;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.sns-badge:hover {
  transform: translateY(-2px);
  border-color: var(--c-ink, #1d1d1b);
  background: rgba(29, 29, 27, 0.05) !important;
  color: var(--c-ink, #1d1d1b) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06) !important;
}
.sns-badge--insta {
  background: transparent !important;
  color: var(--c-ink, #1d1d1b) !important;
  box-shadow: none !important;
}
.sns-badge--insta:hover {
  border-color: #e1306c;
  color: #e1306c !important;
}
.sns-badge--naver {
  background: transparent !important;
  color: var(--c-ink, #1d1d1b) !important;
  font-family: var(--f-sans);
  font-weight: 800;
  font-size: 13px;
  box-shadow: none !important;
}
.sns-badge--naver:hover {
  border-color: #03cf5d;
  color: #03cf5d !important;
}
.sns-badge--kakao {
  background: transparent !important;
  color: var(--c-ink, #1d1d1b) !important;
  box-shadow: none !important;
}
.sns-badge--kakao:hover {
  border-color: #e5a800;
  color: #b38400 !important;
}
.sns-badge--call {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.sns-badge-lg {
  width: 40px;
  height: 40px;
  font-size: 15px;
}
/* 📸 인스타그램 시그니처 버튼 & 뱃지 */
.btn-insta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
  color: #ffffff !important;
  border: none;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 22px;
  border-radius: var(--r-brush-btn);
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.35);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, filter 0.2s ease, border-radius 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}
.btn-insta:hover {
  transform: translateY(-2px) scale(1.02);
  border-radius: var(--r-brush-btn-alt);
  box-shadow: 0 6px 22px rgba(220, 39, 67, 0.5);
  filter: brightness(1.08);
  color: #ffffff !important;
}
.btn-insta svg {
  stroke: #ffffff;
  flex-shrink: 0;
}
.tag-badge.insta {
  background: var(--c-sns-insta) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(225, 48, 108, 0.25);
  border: none !important;
}
.tag-badge.yt {
  background: #e11d48 !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.25);
  border: none !important;
}

/* ── HEADER & GLOBAL NAVIGATION (EDITORIAL GNB) ── */
.nav {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-hr);
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
  transition: background var(--tr-base), box-shadow var(--tr-base);
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 68px;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Brand Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.logo:hover {
  transform: scale(1.02);
}
.logo__brand-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.logo__brand-art {
  font-family: var(--f-art);
  font-size: 24px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo__brand-sub {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--c-ochre);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 2px;
}
.logo__img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
  border: none;
  border-radius: 0;
}

/* Uppercase Nav Links — 항상 한 줄 유지 */
.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.nav__link {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--c-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  border-bottom: none !important;
  padding: 4px 7px;
  border-radius: 999px;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 7px;
  right: 7px;
  height: 1.5px;
  background: var(--c-ink);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav__link:hover {
  color: var(--c-ink);
  transform: translateY(-1px);
}
.nav__link:hover::after {
  transform: scaleX(1);
}
.nav__link.active {
  color: var(--c-ink);
  font-weight: 700;
}
.nav__link.active::after {
  transform: scaleX(1);
  background: var(--c-sage);
}

/* Nav Social & Actions */
.nav__right-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav__social-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 6px;
  border-left: 1px solid var(--c-hr);
}

/* Hamburger for Mobile */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 8px; cursor: pointer;
}
.hamburger span {
  height: 2px; width: 100%;
  background: var(--c-ink);
  transition: transform 0.25s ease;
}

/* ── MOBILE MENU DRAWER ── */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  height: 100dvh;
  width: min(340px, 86vw);
  background: #ffffff;
  z-index: 1000;
  padding: 28px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform var(--tr-base);
  box-shadow: -10px 0 40px rgba(0,0,0,0.1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-hr);
}
.mobile-menu__close {
  font-size: 20px;
  color: var(--c-ink);
  cursor: pointer;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: var(--c-bg-gray);
}
.mobile-menu__link {
  font-family: var(--f-mono);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink);
  padding: 13px 6px;
  border-bottom: 1px solid var(--c-hr);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu__link:hover, .mobile-menu__link:active {
  color: var(--c-sage);
}
.mobile-menu__social {
  display: flex;
  gap: 12px;
  padding: 20px 6px;
}
.dim {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 900; opacity: 0; pointer-events: none;
  transition: opacity var(--tr-base);
}
.dim.open { opacity: 1; pointer-events: all; }

/* ── 🌟 BESPOKE ATELIER ART LANDSCAPE (독창적인 현대미술 조형 아틀라스) ── */
.atelier-work-hero {
  background: var(--c-bg-canvas);
  padding: 50px 0 90px;
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.atelier-work-hero__header {
  text-align: center;
  margin-bottom: 50px;
}
.atelier-work-hero__title {
  font-family: var(--f-art);
  font-size: clamp(52px, 7.5vw, 92px);
  color: var(--c-ink);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.atelier-work-hero__guide {
  font-size: 15px;
  color: var(--c-mute);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 12px;
}

/* Vertical Sculptural Atlas Cards */
.atelier-art-landscape {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

/* 1) Form 01: The Atelier Studio Arch (About & Philosophy) */
.atelier-form-arch {
  width: 100%;
  max-width: 580px;
  background: var(--c-bg-beige);
  border: 1px solid var(--c-stone);
  border-radius: 120px 120px 36px 36px;
  padding: 56px 40px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  box-shadow: var(--sh-subtle);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}
.atelier-form-arch:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--sh-hover);
  border-color: var(--c-sage);
}
.atelier-arch-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-sage);
  background: var(--c-sage-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.atelier-arch-link-main {
  font-family: var(--f-art);
  font-size: clamp(48px, 6vw, 68px);
  color: var(--c-ink);
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}
.atelier-arch-link-main:hover {
  transform: scale(1.06);
  color: var(--c-sage);
}
.atelier-arch-sub {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.atelier-arch-link-sub {
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-body);
  padding: 6px 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--c-stone);
  transition: all 0.2s ease;
}
.atelier-arch-link-sub:hover {
  background: var(--c-ink);
  color: #ffffff;
  border-color: var(--c-ink);
}

/* 2) Form 02: Thinking Workshop Palette (Process & Program) */
.atelier-form-palette {
  width: 100%;
  max-width: 580px;
  background: var(--c-bg-gray);
  border: 1px solid var(--c-stone);
  border-radius: 40px;
  padding: 46px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
  box-shadow: var(--sh-subtle);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}
.atelier-form-palette:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--sh-hover);
  border-color: var(--c-ochre);
}
.atelier-palette-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ochre);
  background: var(--c-ochre-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.atelier-palette-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.atelier-palette-link {
  font-family: var(--f-art);
  font-size: clamp(42px, 5.2vw, 58px);
  color: var(--c-ink);
  font-weight: 700;
  transition: transform 0.2s ease, color 0.2s ease;
}
.atelier-palette-link:hover {
  transform: scale(1.08);
  color: var(--c-ochre);
}

/* 3) Form 03: Story Canvas & Materials (Story & Worksheet) */
.atelier-form-story {
  width: 100%;
  max-width: 580px;
  background: var(--c-bg-beige-light);
  border: 1px solid var(--c-stone);
  border-radius: 36px;
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
  box-shadow: var(--sh-subtle);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}
.atelier-form-story:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--sh-hover);
  border-color: var(--c-slate);
}
.atelier-story-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-slate);
  background: var(--c-slate-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.atelier-story-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.atelier-story-link {
  font-family: var(--f-art);
  font-size: clamp(40px, 5vw, 54px);
  color: var(--c-ink);
  font-weight: 700;
  transition: transform 0.2s ease, color 0.2s ease;
}
.atelier-story-link:hover {
  transform: scale(1.08);
  color: var(--c-slate);
}

/* 4) Form 04: Kids Archive, Store & Contact Grid Cards */
.atelier-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 580px;
}
.atelier-card-nav {
  background: #ffffff;
  border: 1px solid var(--c-stone);
  border-radius: var(--r-md);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--sh-subtle);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.atelier-card-nav:hover {
  transform: translateY(-4px);
  border-color: var(--c-ink);
  box-shadow: var(--sh-hover);
}
.atelier-card-nav__art {
  font-family: var(--f-art);
  font-size: 26px;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.1;
}

/* ── 🌟 SPA VIEW SECTION ISOLATION ── */
.view-section {
  display: none !important;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.view-section.active {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

/* ── 🌟 NAÏVE / RAW ART DRAWING LANDSCAPE (앙파티 감성 랜드스케이프) ── */
.raw-art-work-hero {
  padding: 48px 0 16px;
  background: var(--c-bg-canvas);
  text-align: center;
  position: relative;
}

.raw-art-work-hero__header {
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* ══ HERO BADGE SHIMMER 애니메이션 ══ */
@keyframes badge-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(74, 107, 83, 0.08); }
  50%       { box-shadow: 0 4px 18px rgba(74, 107, 83, 0.20); }
}
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  border-radius: var(--r-brush-badge);
  background: linear-gradient(
    120deg,
    rgba(74,107,83,0.07) 0%,
    rgba(74,107,83,0.14) 30%,
    rgba(255,255,255,0.55) 50%,
    rgba(74,107,83,0.14) 70%,
    rgba(74,107,83,0.07) 100%
  );
  background-size: 200% auto;
  color: var(--c-sage);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  border: 1px solid rgba(74, 107, 83, 0.28);
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(74, 107, 83, 0.08);
  animation: badge-shimmer 3.5s linear infinite, badge-pulse 3s ease-in-out infinite;
  transition: transform 0.25s ease, border-radius 0.25s ease;
}
.hero-badge-pill:hover {
  border-radius: var(--r-brush-btn-alt);
  transform: translateY(-1px) rotate(-0.5deg);
}
.badge-sparkle {
  font-size: 10px;
  color: var(--c-sage);
  animation: badge-pulse 2s ease-in-out infinite alternate;
}
.raw-art-work-hero__title {
  font-family: var(--f-serif);
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 12px;
}
.raw-art-work-hero__guide {
  font-family: var(--f-sans);
  font-size: 15px;
  color: var(--c-mute);
  letter-spacing: -0.01em;
  font-weight: 500;
}

/* Vertical Sculptural Canvas */
.raw-art-landscape {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  max-width: 620px;
  margin: 0 auto;
}

/* Form Category Subtle Tag */
.raw-form-category-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--c-mute);
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--c-stone);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

/* Form 01: Soft Beige Artist Palette (About & Philosophy) */
.raw-form-palette-beige {
  position: relative;
  width: 380px;
  height: 340px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}
.raw-form-palette-beige:hover {
  transform: translateY(-8px) scale(1.03) rotate(-1deg);
}
.raw-shape-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,0.04));
  transition: filter 0.3s ease;
}
.raw-form-palette-beige:hover .raw-shape-svg {
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.09));
}
.raw-form-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: all;
  margin-top: -10px;
}
.raw-link-main {
  font-family: var(--f-serif);
  font-size: 44px;
  font-weight: 700;
  color: var(--c-ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.2s ease, transform 0.2s ease;
}
.raw-link-main:hover {
  color: var(--c-sage);
  transform: scale(1.06);
}
.raw-link-sub {
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--c-body);
  text-decoration: none;
  background: rgba(255,255,255,0.9);
  padding: 6px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--c-stone);
  transition: all 0.2s ease;
}
.raw-link-sub:hover {
  background: var(--c-ink);
  color: #ffffff;
  border-color: var(--c-ink);
}

/* Form 02: Hand-drawn Studio Easel & Canvas (Process & Program) */
.raw-form-easel-gray {
  position: relative;
  width: 360px;
  height: 380px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}
.raw-form-easel-gray:hover {
  transform: translateY(-8px) scale(1.03) rotate(1deg);
}
.raw-shape-svg-easel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,0.04));
  transition: filter 0.3s ease;
}
.raw-form-easel-gray:hover .raw-shape-svg-easel {
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.09));
}
.raw-form-easel-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: -34px;
  pointer-events: all;
}
.raw-link-tower {
  font-family: var(--f-serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--c-ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.2s ease, transform 0.2s ease;
}
.raw-link-tower:hover {
  color: var(--c-sage);
  transform: scale(1.06);
}

/* Form 03: Open Artbook & Story (Story & Worksheet) */
.raw-form-artbook-sage {
  position: relative;
  width: 360px;
  height: 320px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}
.raw-form-artbook-sage:hover {
  transform: translateY(-8px) scale(1.03);
}
.raw-shape-svg-artbook {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,0.04));
  transition: filter 0.3s ease;
}
.raw-form-artbook-sage:hover .raw-shape-svg-artbook {
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.09));
}
.raw-form-artbook-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  pointer-events: all;
}
.raw-link-house {
  font-family: var(--f-serif);
  font-size: 40px;
  font-weight: 700;
  color: var(--c-ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.2s ease, transform 0.2s ease;
}
.raw-link-house:hover {
  color: var(--c-sage);
  transform: scale(1.06);
}
.raw-house-sub-wrap {
  display: flex;
  gap: 10px;
}
.raw-link-house-sub {
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--c-body);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--c-stone);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
}
.raw-link-house-sub:hover {
  background: var(--c-ink);
  color: #ffffff;
  border-color: var(--c-ink);
}

/* Form 04: Minimal Frame Grid Cards (Studio, Gallery, Store, Contact) */
.raw-form-grid-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.raw-nav-card {
  background: #ffffff;
  border: 1.5px solid var(--c-stone);
  border-radius: 18px;
  padding: 20px 12px 16px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
  position: relative;
}
.raw-nav-card:hover {
  transform: translateY(-5px);
  border-color: var(--c-ink);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}
.raw-card-icon {
  font-size: 24px;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-brush-blob);
  background: var(--c-bg-soft);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(229, 227, 220, 0.7);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, border-radius 0.3s ease, box-shadow 0.25s ease;
}
.raw-nav-card:hover .raw-card-icon {
  transform: scale(1.12) rotate(4deg) translateY(-2px);
  border-radius: 42% 58% 62% 38% / 54% 46% 54% 46%;
  background: var(--c-bg-beige);
  box-shadow: 0 4px 12px rgba(181, 124, 56, 0.12);
}
.raw-card-art {
  font-family: var(--f-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--c-ink);
  text-transform: capitalize;
  line-height: 1.2;
  margin-top: 2px;
}
.raw-card-sub {
  font-size: 11.5px;
  color: var(--c-mute);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

/* ── 🌟 SPA VIEW ARCHITECTURE (DETAIL PAGE VIEWS) ── */
.view-section {
  display: none !important;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.view-section.active {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
  min-height: calc(100vh - 280px);
  padding-bottom: 36px !important;
}

/* Sub-view Navigation Action Bar (Bottom CTAs with complete safe padding & no clipping) */
.view-nav-action-bar {
  margin-top: 48px;
  margin-bottom: 24px;
  padding: 16px 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  clear: both;
}

/* View Header & Back Navigation (Editorial Atelier Top Bar) */
.view-top-bar {
  padding: 18px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(29, 29, 27, 0.08);
  margin-bottom: 24px;
  gap: 12px;
}
.back-to-work {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: 0.05em;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--c-bg-gray);
  border: 1.5px solid var(--c-stone);
  cursor: pointer;
  transition: all var(--tr-base);
}
.back-to-work:hover {
  background: var(--c-ink);
  color: #ffffff;
  border-color: var(--c-ink);
  transform: translateX(-4px);
}
.view-archive-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #78716c;
  text-transform: uppercase;
  background: rgba(29, 29, 27, 0.04);
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid rgba(29, 29, 27, 0.1);
}
.view-archive-tag strong {
  color: var(--c-ink);
  font-weight: 800;
}
.view-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}
.view-stamp-img {
  width: 44px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.06));
}
.view-peek-girl-img {
  width: 42px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
  transition: transform 0.3s ease;
}
.view-peek-girl-img:hover {
  transform: translateY(-3px) scale(1.05);
}
.process-step-pill {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-sage);
  background: rgba(107, 131, 107, 0.08);
  border: 1px solid rgba(107, 131, 107, 0.24);
  padding: 5px 14px;
  border-radius: 6px;
  display: inline-block;
}
@media (max-width: 768px) {
  .view-top-bar {
    padding: 12px 0 10px;
    margin-bottom: 18px;
  }
  .view-archive-tag {
    font-size: 9.5px;
    padding: 4px 10px;
    letter-spacing: 0.04em;
  }
  .back-to-work {
    padding: 6px 14px;
    font-size: 11px;
  }
}

/* Video Card Frame (Atelier Live Sketch Showcase) */
.hero-video-card-wrap {
  width: 100%;
  max-width: 900px;
  margin: 48px auto 16px;
  background: var(--c-bg-beige-light);
  border: 1.5px solid var(--c-stone);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-video-card-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
}
.hero-video-box {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-bg-gray);
  border: 1px solid var(--c-stone);
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}
.hero-video-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 12px;
}
.hero-video-copy .tag-badge {
  margin-bottom: 12px;
}
.hero-video-copy h3 {
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 10px;
  line-height: 1.35;
}
.hero-video-copy p {
  font-size: 14.5px;
  color: var(--c-body);
  line-height: 1.65;
  margin-bottom: 20px;
  word-break: keep-all;
}
.hero-video-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  flex-wrap: wrap;
  padding: 4px 0 8px;
}

/* ── STATS BAR (연그레이 배색) ── */
.stats-bar {
  background: var(--c-bg-gray);
  border-top: 1px solid var(--c-hr);
  border-bottom: 1px solid var(--c-hr);
  padding: 36px 0;
}
.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.stat-item__val {
  font-family: var(--f-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-ink);
}
.stat-item__label {
  font-size: 13px;
  color: var(--c-mute);
}

/* ── SECTION BASE STYLES ── */
.section {
  padding: var(--sp-sec) 0;
  border-bottom: 1px solid var(--c-hr);
}
.section--gray {
  background: var(--c-bg-gray);
}
.section--beige {
  background: var(--c-bg-beige-light);
}
.sec-head {
  margin-bottom: 48px;
}
.sec-head.center {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.sec-head .art-title {
  margin-bottom: 4px;
}
.sec-head h2 {
  font-family: var(--f-serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 10px;
}
.sec-head p {
  font-size: 15px;
  color: var(--c-mute);
}

/* ── DIRECTOR PROFILE WRAP (ABOUT SECTION) ── */
.director-profile-wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: center;
  background: var(--c-white);
  border: 1px solid var(--c-stone);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  max-width: 960px;
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
}
.director-img-frame {
  width: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-bg-beige);
  border: 1px solid var(--c-stone);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.director-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.badge-wrap {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.director-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.director-copy h2, .director-quote {
  font-family: var(--f-serif);
  font-size: clamp(17.5px, 2.3vw, 22px);
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.director-copy p {
  font-size: 14px;
  color: var(--c-body);
  line-height: 1.7;
  word-break: keep-all;
}

.values {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.value-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--c-bg-gray);
  padding: 12px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-stone);
}
.value-box span {
  font-size: 20px;
  flex-shrink: 0;
}
.value-box strong {
  font-size: 14px;
  color: var(--c-ink);
  display: block;
}

/* ── ABOUT & PHILOSOPHY (감성 일러스트 3대 교육가치 카드) ── */
.about-philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.philo-card {
  background: var(--c-white);
  border: 1.5px solid var(--c-stone);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--tr-base), box-shadow var(--tr-base), border-color var(--tr-base);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}
.philo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-hover);
  border-color: var(--c-sage);
}
.philo-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--c-bg-gray);
  border-bottom: 1px solid var(--c-stone);
}
.philo-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.philo-card:hover .philo-card__img-wrap img {
  transform: scale(1.05);
}
.philo-img-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(18, 18, 20, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.philo-img-badge img {
  width: 15px !important;
  height: 15px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0;
}
.philo-card__body {
  padding: 24px 22px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.philo-num {
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--c-sage);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.philo-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 8px;
  line-height: 1.35;
}
.philo-card p {
  font-size: 13.5px;
  color: var(--c-body);
  line-height: 1.65;
  margin: 0;
}

/* ── PROCESS SECTION (4단계 생각 미술 워크플로우 카드) ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.process-card {
  background: var(--c-white);
  border: 1.5px solid var(--c-stone);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--tr-base);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}
.process-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-hover);
  border-color: var(--c-sage);
}
.process-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--c-bg-gray);
  border-bottom: 1px solid var(--c-stone);
}
.process-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.process-card:hover .process-card__img-wrap img {
  transform: scale(1.06);
}
.process-step-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--c-sage);
  color: #ffffff;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(74, 107, 83, 0.35);
  letter-spacing: 0.04em;
}
.process-card__body {
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.process-keyword {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-ochre);
  margin-bottom: 6px;
  display: inline-block;
}
.process-card h4 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 6px;
}
.process-card p {
  font-size: 13px;
  color: var(--c-body);
  line-height: 1.6;
  margin: 0;
}

/* ── 🎨 PROGRAM SECTION — MAUHAUS HANDMADE BOOKLET CARDS ── */
.program-booklet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.booklet-card {
  background: var(--c-white);
  border: 1.5px solid var(--c-stone);
  border-radius: var(--r-lg);
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  transition: transform var(--tr-base), box-shadow var(--tr-base), border-color var(--tr-base);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,0.03);
}
.booklet-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sh-hover);
  border-color: var(--c-ink);
}

.booklet-cover {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--c-bg-gray);
  border-radius: var(--r-md);
  border: 1px solid var(--c-stone);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.booklet-cover__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.booklet-card:hover .booklet-cover__img {
  transform: scale(1.05);
}
.booklet-cover__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.15) 55%, transparent 100%);
  pointer-events: none;
}
.booklet-cover__overlay {
  position: absolute;
  inset: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}
.booklet-cover__tag {
  align-self: flex-start;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--c-ink);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.booklet-cover__art-text {
  font-family: var(--f-art);
  font-size: clamp(24px, 2.5vw, 30px);
  font-weight: 700;
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
  line-height: 1.15;
}

.booklet-info {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.booklet-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 8px;
}
.booklet-info p {
  font-size: 13.5px;
  color: var(--c-body);
  line-height: 1.65;
  flex: 1;
  margin: 0;
}
.booklet-meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--c-stone);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c-mute);
}
.booklet-cta {
  margin-top: 16px;
}

/* ── CONTACT STUDIO BANNER ── */
.contact-studio-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1.5px solid var(--c-stone);
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}
.contact-studio-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.contact-studio-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}


/* ── LALLA STORY (프리미엄 투컬럼 & 체크리스트 카드) ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--c-white);
  border: 1.5px solid var(--c-stone);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.two-col__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* 랄라 캐릭터 & 헤더 레이아웃 */
.story-lalla-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  position: relative;
}
.story-copy-text {
  flex: 1;
}
.story-lalla-character {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  margin-top: 2px;
}
.lalla-avatar-img {
  width: 105px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.07));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: lallaFloat 4s ease-in-out infinite;
}
.story-lalla-character:hover .lalla-avatar-img {
  transform: scale(1.08) rotate(-3deg);
}
.lalla-speech-bubble {
  background: var(--c-bg-beige-light);
  border: 1.5px solid var(--c-stone);
  border-radius: var(--r-brush-badge);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  position: relative;
  margin-top: 4px;
  white-space: nowrap;
  transition: border-radius 0.3s ease, transform 0.25s ease;
}
.story-lalla-character:hover .lalla-speech-bubble {
  border-radius: var(--r-brush-btn-alt);
  transform: translateY(-2px) rotate(1deg);
}
.lalla-speech-bubble::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 6px 6px 6px;
  border-style: solid;
  border-color: transparent transparent var(--c-stone) transparent;
}
.lalla-speech-bubble::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 5px 5px 5px;
  border-style: solid;
  border-color: transparent transparent var(--c-bg-beige-light) transparent;
}

/* Worksheet 랄라 뱃지 */
.worksheet-lalla-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
  padding-top: 8px;
}
.lalla-waving-img {
  width: 95px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
  transition: transform 0.3s ease;
  animation: lallaWave 3.5s ease-in-out infinite;
}
.worksheet-lalla-badge:hover .lalla-waving-img {
  transform: scale(1.08) rotate(3deg);
}


@keyframes lallaWave {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(2deg); }
}


@keyframes lallaFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.two-col__copy h2 {
  font-family: var(--f-serif);
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 12px;
  line-height: 1.35;
  word-break: keep-all;
  text-wrap: balance;
}

.two-col__copy p {
  font-size: 14.5px;
  color: var(--c-body);
  line-height: 1.7;
  word-break: keep-all;
}
.checklist {
  margin: 18px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--c-bg-beige-light);
  border: 1px solid var(--c-stone);
  border-radius: var(--r-md);
  padding: 16px 18px 16px 20px;
  width: 100%;
  box-sizing: border-box;
}
.checklist li {
  font-size: 13.5px;
  color: var(--c-ink);
  font-weight: 600;
  padding-left: 22px;
  position: relative;
  word-break: keep-all;
  line-height: 1.55;
  list-style: none;
}
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c-sage);
  font-weight: 800;
  font-size: 14px;
}
.story-action-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  width: 100%;
}

/* ── VIEW NAV ACTION BAR (모든 뷰 하단 공통 네비게이션 액션 바) ── */
.view-nav-action-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--c-hr);
  flex-wrap: wrap;
  width: 100%;
}
.view-nav-action-bar .btn {
  min-width: 200px;
  text-align: center;
  justify-content: center;
}


.reel-card {
  background: var(--c-white);
  border-radius: var(--r-md);
  border: 1px solid var(--c-stone);
  overflow: hidden;
  box-shadow: var(--sh-subtle);
}
.reel-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
  transition: all 0.3s ease;
}
/* 📸 인스타그램 릴스/게시물 전용 반응형 뷰어 (상하 잘림 방지 & 캐러셀 슬라이드 완벽 지원) */
.reel-card__thumb.is-instagram {
  aspect-ratio: unset !important;
  height: 600px !important;
  max-height: 85vh !important;
  background: #ffffff !important;
  overflow: visible !important;
  border-bottom: 1px solid var(--c-stone);
}
.reel-card__thumb.is-instagram iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 580px !important;
  border: none !important;
  background: #ffffff !important;
}
.reel-card__info {
  padding: 18px 20px;
}
.ep-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ep-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: var(--c-white);
  border: 1px solid var(--c-stone);
  cursor: pointer;
  transition: all var(--tr-base);
}
.ep-item:hover, .ep-item.active {
  border-color: var(--c-sage);
  background: var(--c-bg-beige-light);
}
.ep-num {
  font-weight: 700;
  color: var(--c-sage);
  font-size: 12.5px;
}

/* ══════════════════════════════════════════════
   🎬 갤러리형 스토리 영상관 (카테고리 필터 & 반응형 카드 그리드)
   ══════════════════════════════════════════════ */
.story-cat-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 36px 0 24px;
}
.story-cat-btn {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--c-white);
  border: 1.5px solid var(--c-stone);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-ink);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.story-cat-btn:hover {
  background: var(--c-bg-beige);
  border-color: var(--c-ochre);
}
.story-cat-btn.active {
  background: var(--c-ochre);
  color: #ffffff;
  border-color: var(--c-ochre);
  box-shadow: 0 4px 14px rgba(181, 124, 56, 0.28);
}

.story-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 10px;
}
.story-video-card {
  background: var(--c-white);
  border-radius: var(--r-md);
  border: 1.5px solid var(--c-stone);
  overflow: hidden;
  box-shadow: var(--sh-subtle);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}
.story-video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-hover);
  border-color: var(--c-ochre);
}
.story-video-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #18181b;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-video-card__media.is-ig {
  background: #faf8f5;
  aspect-ratio: 4/3;
}
.story-video-card__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.story-video-card:hover .story-video-card__thumb-img {
  transform: scale(1.06);
}
.story-video-card__play-badge {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}
.story-video-card:hover .story-video-card__play-badge {
  background: rgba(0, 0, 0, 0.12);
}
.story-video-card__play-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--c-ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
  transition: transform 0.25s ease;
}
.story-video-card:hover .story-video-card__play-icon {
  transform: scale(1.15);
}
.story-video-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.story-video-card__tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.story-video-card__title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.42;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story-video-card__meta {
  font-size: 12px;
  color: var(--c-mute);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--c-hr);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── WORKSHEET (화이트 캔버스 & 3단 아카이브 카드) ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.res-card {
  background: var(--c-white);
  border-radius: var(--r-md);
  border: 1px solid var(--c-stone);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--tr-base);
}
.res-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-hover);
  border-color: var(--c-ink);
}
.res-card__img {
  aspect-ratio: 16/11;
  overflow: hidden;
  position: relative;
  background: var(--c-bg-beige-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.res-card__img img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.res-card:hover .res-card__img img { transform: scale(1.04); }
.res-card__body {
  padding: 22px 20px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.res-card__foot {
  padding: 0 20px 22px;
  display: flex;
  flex-direction: column;
}
.res-card__foot .btn-primary,
.res-card__foot a.btn-primary {
  background-color: var(--c-ink) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
.res-card__foot .btn-primary:hover,
.res-card__foot a.btn-primary:hover {
  background-color: var(--c-sage) !important;
  color: #ffffff !important;
}
.res-card__foot .btn-outline {
  color: var(--c-ink) !important;
  background-color: #ffffff !important;
  border: 1.5px solid var(--c-stone) !important;
}
.res-card__foot .btn-outline:hover {
  border-color: var(--c-ink) !important;
  background-color: var(--c-bg-gray) !important;
  color: var(--c-ink) !important;
}
.tags-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.tag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 13px;
  line-height: 1.35;
  border-radius: var(--r-brush-badge);
  background: var(--c-bg-gray);
  color: var(--c-body);
  border: 1px solid var(--c-stone);
  box-sizing: border-box;
  vertical-align: middle;
  white-space: nowrap;
  box-shadow: 0 1.5px 5px rgba(0, 0, 0, 0.03);
  transition: all 0.22s ease, border-radius 0.3s ease;
  user-select: none;
}
.tag-badge:hover {
  border-radius: var(--r-brush-btn-alt);
  transform: translateY(-1px) rotate(0.8deg);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}
.tag-badge.coral, .tag-badge.red {
  background: linear-gradient(135deg, #fdf4f2 0%, #faeae6 100%);
  color: #c94a29;
  border-color: rgba(245, 196, 184, 0.8);
  box-shadow: 0 2px 8px rgba(201, 74, 41, 0.08);
}
.tag-badge.sage {
  background: linear-gradient(135deg, #f1f7f2 0%, #e5f0e7 100%);
  color: #3b5a43;
  border-color: rgba(190, 213, 195, 0.85);
  box-shadow: 0 2px 8px rgba(59, 90, 67, 0.08);
}
.tag-badge.blue {
  background: linear-gradient(135deg, #f2f7fc 0%, #e5f0fa 100%);
  color: #2b5672;
  border-color: rgba(196, 216, 231, 0.85);
  box-shadow: 0 2px 8px rgba(43, 86, 114, 0.08);
}
.tag-badge.mustard, .tag-badge.ochre {
  background: linear-gradient(135deg, #fcf7ec 0%, #faefd9 100%);
  color: #9c6c15;
  border-color: rgba(236, 218, 176, 0.85);
  box-shadow: 0 2px 8px rgba(156, 108, 21, 0.08);
}


/* Price Box */
.price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
}
.price-current {
  font-size: 19px;
  font-weight: 700;
  color: var(--c-ink);
}
.price-original {
  font-size: 13px;
  color: var(--c-mute);
  text-decoration: line-through;
}
.badge-sale {
  font-size: 11px;
  font-weight: 700;
  color: var(--c-mau-red);
  background: var(--c-sale-bg);
  padding: 2px 8px;
  border-radius: var(--r-full);
}

/* ── 🛍️ SMARTSTORE PRODUCT GRID ── */
.store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}
.store-item-card {
  background: #ffffff;
  border: 1.5px solid var(--c-stone);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.store-item-card:hover {
  transform: translateY(-6px);
  border-color: var(--c-smartstore);
  box-shadow: 0 12px 32px rgba(3, 199, 90, 0.12);
}
.store-item-card__img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--c-bg-gray);
  overflow: hidden;
  border-bottom: 1px solid var(--c-stone);
}
.store-item-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.store-item-card:hover .store-item-card__img-wrap img {
  transform: scale(1.05);
}
.store-item-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: var(--c-ink);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.store-item-card__body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.store-item-card__title {
  font-family: var(--f-sans);
  font-size: 17.5px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 8px;
  line-height: 1.4;
}
.store-item-card__desc {
  font-size: 13.5px;
  color: var(--c-body);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}
.store-item-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--c-stone);
}
.smartstore-card-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--c-smartstore);
  color: #ffffff;
  font-family: var(--f-sans);
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: all 0.2s ease;
}
.smartstore-card-btn:hover {
  background: #02b350;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(3, 199, 90, 0.25);
}
.gallery-featured-hero {
  max-width: 920px;
  margin: 0 auto 44px;
  text-align: center;
}
.gallery-featured-label {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-mau-red);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}
.gallery-featured-img-wrap {
  width: 100%;
  aspect-ratio: 1.35/1;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--c-white);
  border: 1px solid var(--c-stone);
  box-shadow: var(--sh-subtle);
  margin-bottom: 20px;
}
.gallery-featured-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gal-item {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--c-stone);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: transform var(--tr-base), box-shadow var(--tr-base);
  cursor: pointer;
  position: relative;
}
.gal-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-hover);
}
.gal-item__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--c-bg-gray);
  position: relative;
}
/* 📸 갤러리 인스타그램 임베드 전용 스타일 */
.gal-item__img.is-embed {
  aspect-ratio: unset !important;
  height: 480px !important;
  background: #ffffff !important;
  overflow: visible !important;
}
.gal-item__img.is-embed iframe {
  width: 100% !important;
  height: 480px !important;
  border: none !important;
  border-radius: 8px 8px 0 0;
}
.gal-item__img.is-embed::after {
  display: none !important;
}
.gal-item__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
/* 갤러리 hover 이미지 overlay + 돋보기 아이콘 */
.gal-item__img::after {
  content: '🔍';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(74,107,83,0.0) 40%, rgba(26,26,26,0.38) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 12px;
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.gal-item:hover .gal-item__img::after {
  opacity: 1;
}
.gal-item:hover .gal-item__img img {
  transform: scale(1.06);
}
.gal-caption {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--c-white);
}
.gal-caption h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--c-ink);
}
.gal-caption p {
  font-size: 13px;
  color: var(--c-mute);
  line-height: 1.5;
}

.gallery-insta-cta {
  text-align: center;
  margin-top: 44px;
}
.gallery-insta-cta .guide-txt {
  font-size: 13.5px;
  color: var(--c-mau-red);
  font-weight: 600;
  margin-bottom: 10px;
}

/* ── SMARTSTORE SECTION ── */
.smartstore-main-btn {
  background: var(--c-smartstore);
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-size: 14.5px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(3, 207, 93, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--tr-base);
}
.smartstore-main-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(3, 207, 93, 0.35);
}

/* ── DIRECTOR PROFILE ── */
.director-profile-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 44px;
  align-items: center;
}
.director-img-frame {
  aspect-ratio: 3/4;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--c-stone);
  background: var(--c-bg-gray);
  box-shadow: var(--sh-subtle);
}
.director-img-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
}
.director-copy h2 {
  font-family: var(--f-serif);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.35;
  margin-bottom: 16px;
}
.values {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.value-box {
  background: var(--c-white);
  padding: 16px 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-stone);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.value-box span { font-size: 20px; line-height: 1; }

/* ── CONTACT & CONSULTING ── */
.contact-section-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  background: var(--c-bg-beige-light);
  border: 1px solid var(--c-stone);
  border-radius: var(--r-md);
  padding: 38px;
  box-shadow: var(--sh-subtle);
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--c-white);
  padding: 12px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-stone);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.contact-item:hover {
  transform: translateY(-2px);
  border-color: rgba(181, 124, 56, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.contact-item-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-brush-blob);
  background: linear-gradient(135deg, var(--c-bg-beige) 0%, #f3eee5 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  border: 1px solid rgba(229, 227, 220, 0.8);
  transition: transform 0.25s ease, border-radius 0.25s ease, background-color 0.25s ease;
}
.contact-item:hover .contact-item-icon {
  transform: scale(1.1) rotate(-3deg);
  border-radius: 40% 60% 50% 50% / 55% 45% 55% 45%;
  background: var(--c-ochre-soft);
}
.contact-item-text strong {
  display: block;
  font-size: 13.5px;
  color: var(--c-ink);
  margin-bottom: 2px;
}
.contact-item-text span {
  font-size: 13px;
  color: var(--c-body);
}

.contact-action-panel {
  background: var(--c-dark);
  color: #ffffff;
  border-radius: var(--r-md);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.contact-action-panel h4 {
  color: #ffffff;
  font-size: 19px;
}
.contact-action-panel p {
  color: var(--c-dark-sub);
  font-size: 13px;
  line-height: 1.6;
}

/* Contact Action Buttons inside Panel */
.contact-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--r-full);
  font-family: var(--f-sans);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all var(--tr-base);
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
}
.contact-btn-action--call {
  background: #ffffff !important;
  color: #1a1a1a !important;
  border: 1.5px solid #ffffff !important;
}
.contact-btn-action--call:hover {
  background: #f4f5f2 !important;
  color: #1a1a1a !important;
  transform: translateY(-2px);
}
.contact-btn-action--kakao {
  background: #fee500 !important;
  color: #191919 !important;
  border: 1.5px solid #fee500 !important;
}
.contact-btn-action--kakao:hover {
  background: #fada0a !important;
  color: #191919 !important;
  transform: translateY(-2px);
}

/* ── CTA STRIP ── */
.cta-strip {
  background: var(--c-dark);
  color: #ffffff;
  padding: 56px 0;
}
.cta-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-strip__copy h2 {
  color: #ffffff;
  font-size: 23px;
  margin-bottom: 6px;
}
.cta-strip__copy p {
  color: var(--c-dark-sub);
  font-size: 13.5px;
}

/* ── MINIMAL ATELIER FOOTER ── */
.footer {
  background: var(--c-bg-canvas);
  border-top: 1px solid var(--c-hr);
  padding: 40px 24px 32px;
  color: var(--c-body);
}

.footer__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.footer__meta-line {
  font-size: 13px;
  color: var(--c-mute);
  letter-spacing: -0.01em;
}
.footer__social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 2px 0;
}
.footer__contact-direct {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  width: 100%;
}
.footer__email-text {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-mute);
  letter-spacing: 0.02em;
}
.footer__pill-buttons {
  display: none; /* PC에서는 우측 하단 플로팅 퀵바가 상시 노출되므로 푸터 중복 제거, 모바일에서만 노출 */
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--r-brush-btn);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
.footer-pill-btn:hover {
  border-radius: var(--r-brush-btn-alt);
}
.footer-pill-btn--call {
  background: #ffffff;
  color: var(--c-ink) !important;
  border: 1px solid var(--c-stone);
}
.footer-pill-btn--call:hover {
  background: var(--c-bg-beige-light);
  border-color: var(--c-ochre);
  color: var(--c-ochre) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(181, 124, 56, 0.12);
}
.footer-pill-btn--kakao {
  background: #FEE500;
  color: #191919 !important;
  border: 1px solid #ebd300;
}
.footer-pill-btn--kakao:hover {
  background: #fdd800;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(254, 229, 0, 0.35);
}
.footer-pill-btn .pill-icon {
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer__bottom-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  color: var(--c-mute);
  margin-top: 2px;
  line-height: 1.4;
  text-align: center;
  word-break: keep-all;
}
.footer__copy-row {
  font-weight: 600;
  color: var(--c-body);
  letter-spacing: -0.01em;
}
.footer__addr-row {
  font-size: 11.5px;
  color: #777066;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ── 🔺 CONTEMPORARY SCROLL-TOP BUTTON ── */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 28px;
  z-index: 400;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-family: var(--f-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-ink) !important;
  background: #ffffff !important;
  border: 1px solid var(--c-stone) !important;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s ease;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.scroll-top.show {
  opacity: 1;
  pointer-events: all;
}
.scroll-top:hover {
  transform: translateY(-4px);
  border-color: var(--c-ink) !important;
  background: var(--c-bg-gray) !important;
}

/* Floating Quick Bar - 화면 가림 방지 및 푸터 영역으로 완전 통합 */
.floating-quick-bar {
  display: none !important;
}
.float-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: #ffffff !important;
  color: #1a1a1a !important;
  border: 1.5px solid var(--c-stone) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: all var(--tr-base);
  text-decoration: none !important;
  white-space: nowrap;
}
.float-btn:hover {
  transform: translateY(-2px);
  border-color: var(--c-ink) !important;
  background: #f4f5f2 !important;
  color: #1a1a1a !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.float-btn--kakao {
  background: #fee500 !important;
  color: #191919 !important;
  border-color: #f0d800 !important;
}
.float-btn--kakao:hover {
  background: #fada0a !important;
  border-color: #191919 !important;
  color: #191919 !important;
}

/* ── AUTH & DATA MODALS ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000 !important;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 20px;
}
.modal-backdrop.open {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: all !important;
}
.modal {
  background: #ffffff;
  border-radius: var(--r-lg);
  padding: 24px 24px 20px;
  width: min(440px, 94vw);
  max-height: min(90vh, 680px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  border: 1px solid var(--c-stone);
  box-sizing: border-box;
}
.modal::-webkit-scrollbar {
  width: 9px;
}
.modal::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 999px;
  margin: 6px 0;
}
.modal::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.22);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background 0.2s ease;
}
.modal::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.4);
}
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--c-mute);
  cursor: pointer;
  border-radius: 50%;
  border: none;
  background: transparent;
  transition: all 0.2s ease;
}
.modal__close:hover { background: var(--c-bg-gray); color: var(--c-ink); }

/* ── Auth Modal (단정한 이메일 단일 가입/로그인 모달) ── */
#auth-modal {
  max-width: 430px;
  width: 92vw;
  padding: 30px 26px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
  border: 1px solid var(--c-stone);
}
#auth-modal h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 4px;
}
#auth-modal p#auth-sub {
  font-size: 13px;
  color: var(--c-mute);
  margin-bottom: 6px;
  line-height: 1.4;
  word-break: keep-all;
}

.auth-form { display: flex; flex-direction: column; gap: 11px; }

.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: 12.5px; font-weight: 600; color: var(--c-ink); }
.form-input {
  height: 40px;
  border: 1.5px solid var(--c-stone);
  border-radius: var(--r-sm);
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  background: var(--c-bg-beige-light);
  transition: border-color var(--tr-base), background var(--tr-base);
  box-sizing: border-box;
  width: 100%;
}

.form-input:focus {
  border-color: var(--c-ink);
  background: #ffffff;
}

/* 비밀번호 인풋 인라인 토글 박스 (줄바꿈 없이 우측 끝에 일러스트 아이콘 밀착) */
.input-with-toggle {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}
.input-with-toggle .form-input {
  width: 100% !important;
  padding-right: 44px !important;
}
.pw-toggle-btn {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  color: var(--c-mute) !important;
  border-radius: 50% !important;
  transition: color 0.2s ease, background 0.2s ease !important;
  z-index: 5 !important;
}
.pw-toggle-btn:hover {
  color: var(--c-ink) !important;
  background: rgba(0, 0, 0, 0.05) !important;
}
.pw-toggle-btn svg {
  display: block;
  pointer-events: none;
}

/* 회원가입 약관 동의 행 최적화 */
.auth-terms-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}
.auth-terms-label {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--c-ink);
  margin: 0;
  user-select: none;
}
.auth-terms-label span {
  word-break: keep-all;
  line-height: 1.35;
}
.auth-terms-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap !important;
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--c-body);
  background: var(--c-bg-beige-light);
  border: 1px solid var(--c-stone);
  padding: 3px 8px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}
.auth-terms-link:hover {
  border-color: var(--c-ochre);
  color: var(--c-ochre);
  background: #ffffff;
}


/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox-modal.open { opacity: 1; visibility: visible; }
.lightbox-content {
  background: #ffffff;
  border-radius: 12px;
  max-width: 680px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
  position: relative;
}
.lightbox-img-wrap {
  position: relative;
  background: var(--c-bg-beige-light);
  max-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 100%; max-height: 60vh; object-fit: contain;
}
.lightbox-info { padding: 20px 24px; }
.lightbox-close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,0.65); color: #fff; border: none;
  font-size: 20px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10;
}

/* Toast */
#toast {
  position: fixed !important;
  bottom: 32px !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(20px) !important;
  background: var(--c-dark) !important;
  color: #ffffff !important;
  padding: 12px 24px !important;
  border-radius: 9999px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 10000 !important;
}
#toast.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) translateY(0) !important;
}

/* ══ RESPONSIVE BREAKPOINTS ══════════════════════════════════ */
@media (max-width: 1200px) {
  .nav__social-icons { display: none !important; }
  .nav__links { gap: 4px; }
  .nav__link { font-size: 10.5px; padding: 4px 6px; }
}

@media (max-width: 992px) {
  .nav__links, .nav__actions { display: none !important; }
  .hamburger { display: flex !important; }
  .about-philosophy-grid, .program-booklet-grid, .card-grid, .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col, .director-profile-wrap, .contact-section-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .stats-bar__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  :root { --sp-sec: 52px; }
  .wrap { padding: 0 20px !important; }
  .nav { padding: 0 16px; }
  .nav__inner { height: 60px; }
  
  .nav__links, .nav__actions { display: none !important; }
  .hamburger { display: flex !important; }
  
  /* 모바일 한글 타이포그래피 및 균형 최적화 */
  h1, h2, h3, h4, h5, h6, p, span, a, label, li {
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
  }
  .sec-head {
    margin-bottom: 32px;
  }
  .sec-head h2 {
    font-size: clamp(20px, 5.5vw, 26px) !important;
    line-height: 1.35 !important;
    word-break: keep-all !important;
  }
  .sec-head p {
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    word-break: keep-all !important;
  }
  
  /* Story 및 투컬럼 카드 모바일 최적화 */
  .two-col {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 26px 20px !important;
    box-sizing: border-box !important;
  }
  .two-col__copy {
    width: 100% !important;
    align-items: flex-start !important;
  }
  .story-lalla-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .story-copy-text {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  .story-lalla-character {
    flex-shrink: 0 !important;
    width: 72px !important;
    max-width: 72px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .lalla-avatar-img {
    width: 60px !important;
    height: auto !important;
  }
  .lalla-speech-bubble {
    font-size: 9px !important;
    padding: 3px 5px !important;
    white-space: normal !important;
    word-break: keep-all !important;
    max-width: 72px !important;
    box-sizing: border-box !important;
    line-height: 1.25 !important;
    text-align: center !important;
  }
  .lalla-speech-bubble br {
    display: block !important;
  }
  .two-col__copy h2 {
    font-size: clamp(18px, 5vw, 22px) !important;
    line-height: 1.35 !important;
  }
  .two-col__copy .art-title {
    font-size: 36px !important;
  }
  .checklist {
    padding: 16px 16px 16px 18px !important;
    margin: 16px 0 20px !important;
  }

  .story-action-btns {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
    margin-top: 10px !important;
  }
  .story-action-btns .btn,
  .story-action-btns .btn-insta {
    width: 100% !important;
    min-width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
  
  /* 디렉터 프로필 카드 모바일 최적화 */
  .director-profile-wrap {
    grid-template-columns: 1fr !important;
    padding: 24px 20px !important;
    gap: 22px !important;
    box-sizing: border-box !important;
  }
  .director-copy h2, .director-quote {
    font-size: clamp(16.5px, 4.4vw, 20px) !important;
    line-height: 1.4 !important;
    word-break: keep-all !important;
  }
  
  /* 하단 공통 액션 바 모바일 최적화 */
  .view-nav-action-bar {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
    margin-top: 36px !important;
    padding-top: 20px !important;
  }
  .view-nav-action-bar .btn {
    width: 100% !important;
    min-width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
  
  .raw-art-work-hero__title {
    font-size: clamp(34px, 8.5vw, 48px) !important;
  }
  .raw-art-work-hero__guide {
    font-size: 13.5px !important;
    word-break: keep-all !important;
    padding: 0 10px;
  }
  
  .about-philosophy-grid, .program-booklet-grid, .card-grid, .gallery-grid, .process-grid, .store-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .raw-form-palette-beige {
    width: 290px;
    height: 280px;
  }
  .raw-form-easel-gray {
    width: 270px;
    height: 300px;
  }
  .raw-form-artbook-sage {
    width: 280px;
    height: 250px;
  }
  .raw-form-grid-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 480px;
  }
  
  .hero-video-card-wrap {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    margin: 36px auto 20px;
  }
  
  .cta-strip__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .cta-strip__copy h2 { font-size: 20px; }
  
  .contact-section-inner {
    padding: 24px 20px;
    gap: 24px;
    grid-template-columns: 1fr;
  }
  
  /* ── 모바일 푸터: 플로팅바에 텍스트가 절대 가려지지 않도록 넉넉한 하단 패딩 확보 ── */
  .footer {
    padding: 36px 20px 115px !important;
  }
  
  .floating-quick-bar {
    right: 16px;
    bottom: 16px;
  }
  .scroll-top {
    right: 16px;
    bottom: 68px;
  }

  /* ── 모바일 서브 화면(메인 화면 제외)에서는 전화/카카오톡 플로팅 퀵바 숨김 ── */
  .floating-quick-bar.hide-on-subview {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px !important; }
  .btn { padding: 12px 18px; font-size: 13.5px; }
  .philo-card__body, .process-card__body, .booklet-info {
    padding: 18px 16px 20px;
  }
  .philo-card h3, .process-card h4, .booklet-info h3 {
    font-size: 17px !important;
    line-height: 1.35;
  }
  .director-profile-wrap, .two-col, .contact-section-inner {
    padding: 22px 16px !important;
  }
  .contact-item {
    padding: 12px 14px;
  }

  /* ── 워크시트 커스텀 스튜디오 배너 모바일 최적화 ── */
  .wrap > div[style*="linear-gradient(135deg, #f7f3ec"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    padding: 18px 16px !important;
  }

  /* ── 갤러리 CTA 텍스트 정렬 ── */
  .gallery-insta-cta {
    text-align: center;
    padding: 0 8px;
  }

  /* ── 히어로 영상 카드 ── */
  .hero-video-box {
    border-radius: 14px;
    overflow: hidden;
  }
  .hero-video-copy h3 {
    font-size: 18px !important;
  }
  .hero-video-copy p {
    font-size: 13px !important;
  }
  .hero-video-btns {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .hero-video-btns .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* ── Contact 액션 버튼 전체폭 ── */
  .contact-btn-action {
    width: 100% !important;
    justify-content: center !important;
    font-size: 15px !important;
    padding: 16px !important;
  }

  /* ── 스토어 카드 이미지 비율 조정 ── */
  .store-item-card__img-wrap {
    aspect-ratio: 4/3;
  }
  .store-item-card__img-wrap img {
    object-fit: cover;
  }

  /* ── 모달 내부 폰트/패딩 ── */
  .modal {
    padding: 22px 16px 18px !important;
    border-radius: 16px !important;
  }
  .modal h3 { font-size: 18px !important; }

  /* ── 플로팅 퀵바 크기 최적화 ── */
  .float-btn {
    font-size: 11px !important;
    padding: 9px 12px !important;
    gap: 4px !important;
  }
  .float-btn span:first-child {
    font-size: 16px !important;
  }
}

/* ══════════════════════════════════════════════
   📱 360px 초소형 화면 (갤럭시 S 시리즈 등) 최적화
   ══════════════════════════════════════════════ */
@media (max-width: 360px) {
  .wrap { padding: 0 12px !important; }

  /* 히어로 타이틀 */
  .raw-art-work-hero__title {
    font-size: 30px !important;
  }
  .hero-badge-pill {
    font-size: 10px !important;
    padding: 5px 12px !important;
  }

  /* 랜드스케이프 SVG 넘침 방지 */
  .raw-art-landscape {
    overflow-x: hidden !important;
  }
  .raw-form-palette-beige, .raw-form-easel-gray, .raw-form-artbook-sage {
    width: 260px !important;
    height: 240px !important;
  }
  .raw-form-grid-cards {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .raw-nav-card {
    padding: 12px 8px !important;
  }
  .raw-card-art {
    font-size: 14px !important;
  }
  .raw-card-sub {
    font-size: 10px !important;
  }

  /* 네비게이션 로고 영역 */
  .logo__brand-art { font-size: 13px !important; }
  .logo__brand-sub { font-size: 9px !important; }
  .logo__img { width: 30px !important; height: 30px !important; }

  /* 섹션 헤드 */
  .sec-head h2 {
    font-size: 18px !important;
  }
  .art-title {
    font-size: 32px !important;
  }

  /* 버튼 */
  .btn { padding: 11px 14px !important; font-size: 13px !important; }
  .btn-sm { padding: 8px 12px !important; font-size: 12px !important; }

  /* 모달 */
  .modal {
    padding: 18px 14px 16px !important;
    border-radius: 14px !important;
    width: calc(100vw - 24px) !important;
    max-width: 100% !important;
  }

  /* 에피소드 리스트 */
  .ep-item {
    padding: 10px 12px !important;
    gap: 8px !important;
  }
  .ep-num { font-size: 13px !important; }

  /* 갤러리 */
  .gal-caption h4 { font-size: 14px !important; }
  .gal-caption p { font-size: 12px !important; }

  /* 플로팅바 */
  .floating-quick-bar {
    right: 10px !important;
    bottom: 12px !important;
    gap: 6px !important;
  }
  .scroll-top {
    right: 10px !important;
    bottom: 62px !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 14px !important;
  }

  /* 푸터 모바일 최적화 */
  .footer__contact-direct {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }
  .footer__pill-buttons {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 320px !important;
    justify-content: center !important;
  }
  .footer-pill-btn {
    flex: 1 1 0 !important;
    padding: 9px 8px !important;
    font-size: 11.5px !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }
  .footer__bottom-copy {
    font-size: 10px !important;
    margin-top: 8px !important;
  }
  .footer__addr-row {
    font-size: 10px !important;
    letter-spacing: -0.02em !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

/* ══════════════════════════════════════════════
   📱 모바일 터치 UX 개선 — 탭 영역 확보
   ══════════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
  /* 터치 기기에서 버튼 탭 영역 최소 48px 확보 */
  .btn { min-height: 48px; }
  .btn-sm { min-height: 40px; }
  .nav__link { min-height: 44px; display: inline-flex; align-items: center; }
  .ep-item { min-height: 56px; }
  .back-to-work { min-height: 44px; }
  .contact-btn-action { min-height: 52px; }

  /* 터치 기기에서 hover 애니메이션 비활성화 (버벅임 방지) */
  .philo-card:hover, .process-card:hover, .booklet-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  .raw-nav-card:hover {
    transform: none !important;
  }
}

/* ══════════════════════════════════════════════
   🔘 모달 버튼 그룹 — 항상 세로 스택 (스크롤 없이 한 화면에 모두 표시)
   ══════════════════════════════════════════════ */
.modal-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.modal-btn-group .btn {
  width: 100%;
  height: 48px;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  border-radius: 12px;
}
/* 주 액션 버튼 (첫 번째) */
.modal-btn-group .btn:first-child {
  order: 1;
}
/* 보조/취소 버튼 (두 번째) */
.modal-btn-group .btn:last-child {
  order: 2;
  background: transparent;
  color: var(--c-mute);
  border-color: var(--c-hr);
  font-weight: 600;
}
.modal-btn-group .btn:last-child:hover {
  background: var(--c-bg-beige);
  color: var(--c-ink);
}

/* ── 위험 액션 버튼 (삭제/탈퇴 등) ── */
.modal-btn-danger {
  background: var(--c-sale) !important;
  border-color: var(--c-sale) !important;
  color: #ffffff !important;
}
.modal-btn-danger:hover {
  background: #c93030 !important;
  border-color: #c93030 !important;
}

/* ── 모달 자체가 뷰포트를 넘지 않도록 보장 ── */
.modal {
  max-height: calc(100vh - 48px) !important;
  overflow-y: auto;
}
/* 모달 내부 컨텐츠가 버튼 위에서 스크롤되도록 */
.modal-scroll-body {
  overflow-y: auto;
  max-height: calc(100vh - 220px);
  padding-right: 4px;
}







/* ── 🌟 FINAL ABSOLUTE SPA VIEW ISOLATION ── */
.view-section {
  display: none !important;
}
.view-section.active {
  display: block !important;
}

/* ── 🌟 FINAL ZERO UNDERLINE OVERRIDE (모든 링크/버튼 밑줄 절대 금지) ── */
a, button, span { text-decoration: none !important; }
/* 아래 테두리 제거는 예전부터 지정된 이 요소들에만 적용한다(일반 a/button/span까지 지우면 알약·버튼의 아래 선이 안 그려진다) */
.nav__link, .btn, .btn-outline, .btn-primary, .btn-ghost,
.raw-link-main, .raw-link-sub, .raw-link-tower, .raw-link-house, .raw-link-house-sub,
.smartstore-card-btn, .smartstore-main-btn, .back-to-work, .sns-badge, .mobile-menu__link {
  text-decoration: none !important;
  border-bottom: none !important;
}
a:hover, button:hover, .btn:hover, .nav__link:hover {
  text-decoration: none !important;
}

/* ── 🌟 GLOBAL CUSTOM SCROLLBAR (단정한 샌드베이지 스크롤바) ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--c-bg-beige, #f6f3ee);
}
::-webkit-scrollbar-thumb {
  background: var(--c-stone, #d9d2c7);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--c-mute, #888075);
}

/* ── 🌟 LUXURY MODAL DESIGN SYSTEM (글래스모피즘 & 팝인 애니메이션) ── */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(26, 24, 20, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9000;
}
.modal {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 24px 22px;
  box-shadow: 0 24px 64px rgba(26, 24, 20, 0.18), 0 4px 16px rgba(0, 0, 0, 0.04);
  border: 1.5px solid var(--c-stone, #e3ded5);
  animation: modalPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-height: 94vh;
  overflow-y: auto;
  overflow-x: hidden !important;
  box-sizing: border-box;
}
@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-bg-beige, #f6f3ee);
  border: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-mute, #888075);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.modal__close:hover {
  background: var(--c-ink, #1a1814);
  color: #ffffff;
  transform: rotate(90deg);
}

.form-group {
  margin-bottom: 12px;
  text-align: left;
}
.form-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--c-stone, #d9d2c7);
  border-radius: 10px;
  font-size: 14px;
  color: var(--c-ink, #1a1814);
  background: #ffffff;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  box-sizing: border-box;
}
.form-input:focus {
  border-color: var(--c-ink, #1a1814);
  box-shadow: 0 0 0 3px rgba(26, 24, 20, 0.08);
}
.input-with-toggle {
  position: relative;
  width: 100%;
}
.input-with-toggle .form-input {
  padding-right: 42px;
}
.pw-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--c-mute, #888075);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}
.pw-toggle-btn:hover {
  color: var(--c-ink, #1a1814);
}

/* ── 🌟 HIGH-END CARD MICRO-INTERACTIONS ── */
.philo-card, .process-card, .booklet-card, .gallery-item, .card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.philo-card:hover, .process-card:hover, .booklet-card:hover, .gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(26, 24, 20, 0.08) !important;
}

/* ==========================================================================
   🎬 EMPATHIE AI CONTENT & MEDIA CREATOR STUDIO DESIGN SYSTEM
   Editorial Minimal Studio Layout + Multi-Tab Management Engine
   ========================================================================== */

/* ── 1. STUDIO PRESET QUICK BAR ── */
.studio-preset-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1.5px solid var(--c-stone);
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  box-shadow: var(--sh-subtle);
}
.studio-preset-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-ochre);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.studio-preset-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.preset-chip {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-stone);
  color: var(--c-body);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all var(--tr-base);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.preset-chip:hover {
  background: var(--c-ochre-soft);
  border-color: var(--c-ochre);
  color: var(--c-ochre);
  transform: translateY(-1px);
}
.preset-chip.active {
  background: var(--c-ochre);
  border-color: var(--c-ochre);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(181, 124, 56, 0.3);
}
.preset-chip--reset {
  background: transparent;
  border-style: dashed;
  color: var(--c-mute);
}
.preset-chip--reset:hover {
  background: var(--c-bg-gray);
  color: var(--c-ink);
  border-color: var(--c-ink);
}

/* ── 2. STUDIO WORKSPACE GRID ── */
.studio-workspace-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1024px) {
  .studio-workspace-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 3. LEFT INPUT PANEL (스크롤바 없이 전체 내용 시원하게 표시) ── */
.studio-input-panel {
  background: #ffffff;
  border: 1.5px solid var(--c-stone);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  box-shadow: var(--sh-subtle);
  position: static;
  max-height: none;
  overflow: visible;
}
@media (max-width: 1024px) {
  .studio-input-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }
}
.panel-header {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--c-hr);
}
.panel-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--c-ochre);
  background: var(--c-ochre-soft);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.panel-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--c-ink);
  margin-bottom: 4px;
}
.panel-header p {
  font-size: 12.5px;
  color: var(--c-mute);
}

.studio-form-group {
  margin-bottom: 14px;
}
.studio-form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 6px;
}
.studio-form-group label .req {
  color: #e04f4f;
}
.studio-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) {
  .studio-form-row {
    grid-template-columns: 1fr;
  }
}

.studio-input, .studio-select, .studio-textarea {
  width: 100%;
  border: 1.5px solid var(--c-stone);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  font-size: 13.5px;
  color: var(--c-ink);
  background: var(--c-bg-soft);
  font-family: inherit;
  transition: all var(--tr-base);
  box-sizing: border-box;
}
.studio-input:focus, .studio-select:focus, .studio-textarea:focus {
  outline: none;
  border-color: var(--c-ochre);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(181, 124, 56, 0.12);
}
.studio-textarea {
  resize: vertical;
  line-height: 1.5;
}

.studio-btn-group {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1.5px solid var(--c-hr);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.studio-generate-btn {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, var(--c-ochre) 0%, #8c5b23 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  border: none;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--tr-base);
  box-shadow: 0 8px 20px rgba(181, 124, 56, 0.25);
}
.studio-generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(181, 124, 56, 0.35);
}
.btn-sparkle {
  font-size: 16px;
  animation: pulse-sparkle 1.8s infinite ease-in-out;
}
@keyframes pulse-sparkle {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.3) rotate(15deg); opacity: 1; }
}
.studio-sub-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

/* ── 4. RIGHT OUTPUT PANEL & TAB SYSTEM ── */
.studio-output-panel {
  background: #ffffff;
  border: 1.5px solid var(--c-stone);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 640px;
}
.studio-tab-header {
  background: var(--c-bg-soft);
  border-bottom: 1.5px solid var(--c-stone);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.studio-tab-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 4px;
  max-width: 100%;
}
.studio-tab-buttons::-webkit-scrollbar {
  height: 4px;
}
.studio-tab-buttons::-webkit-scrollbar-thumb {
  background: var(--c-stone);
  border-radius: 4px;
}
.studio-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--c-body);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--tr-base);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.studio-tab-btn:hover {
  background: var(--c-bg-gray);
  color: var(--c-ink);
}
.studio-tab-btn.active {
  background: #ffffff;
  color: var(--c-ochre);
  border-color: var(--c-stone);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.studio-tab-btn .tab-icon {
  font-size: 15px;
}

/* ── 4. RIGHT OUTPUT PANEL & TAB SYSTEM (2단 스마트 툴바) ── */
.studio-tab-header {
  background: var(--c-bg-soft);
  border-bottom: 1.5px solid var(--c-stone);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.studio-tab-row {
  display: flex;
  align-items: center;
  width: 100%;
}
.studio-tab-row--tabs {
  border-bottom: 1px solid var(--c-hr);
  padding-bottom: 8px;
}
.studio-tab-row--actions {
  padding-top: 2px;
}
.studio-tab-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
}
.studio-tab-btn {
  background: #ffffff;
  border: 1.5px solid var(--c-stone);
  color: var(--c-body);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--tr-base);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.studio-tab-btn:hover {
  background: var(--c-bg-gray);
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.studio-tab-btn.active {
  background: #ffffff;
  color: var(--c-ochre);
  border-color: var(--c-ochre);
  box-shadow: 0 2px 8px rgba(181, 124, 56, 0.15);
}
.studio-tab-btn--featured {
  background: var(--c-ochre-soft) !important;
  color: var(--c-ochre) !important;
  border-color: rgba(181,124,56,0.3) !important;
  font-weight: 800 !important;
}
.studio-tab-btn--featured.active {
  background: var(--c-ochre) !important;
  color: #fff !important;
  border-color: var(--c-ochre) !important;
}

/* 2단 빠른 도구 바 */
.studio-action-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
}
.tool-group-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--c-mute);
  text-transform: uppercase;
  margin-right: 4px;
  white-space: nowrap;
}
.btn-tool {
  background: #ffffff;
  border: 1px solid var(--c-stone);
  color: var(--c-body);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--tr-base);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  white-space: nowrap;
}
.btn-tool:hover {
  background: var(--c-bg-gray);
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.btn-tool--accent {
  background: var(--c-ochre-soft);
  color: var(--c-ochre);
  border-color: rgba(181, 124, 56, 0.3);
}
.btn-tool--accent:hover {
  background: var(--c-ochre);
  color: #ffffff;
  border-color: var(--c-ochre);
}
.btn-tool--studio {
  background: var(--c-sage-soft);
  color: var(--c-sage);
  border-color: rgba(74, 107, 83, 0.3);
}
.btn-tool--studio:hover {
  background: var(--c-sage);
  color: #ffffff;
}
.tab-divider {
  color: var(--c-stone);
  font-size: 14px;
  padding: 0 2px;
  flex-shrink: 0;
  line-height: 1;
}

/* ── 5. 고도화된 올인원 씬 카드 (3단계 프롬프트 & 사운드 팩) ── */
.vidpack-scene-card {
  background: #ffffff;
  border: 1.5px solid var(--c-stone);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}
.vidpack-scene-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--c-bg-gray);
  border-bottom: 1.5px solid var(--c-stone);
  flex-wrap: wrap;
  gap: 10px;
}
.scene-step-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.scene-step-badge--img { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.scene-step-badge--vid { background: #ede9fe; color: #6d28d9; border: 1px solid #ddd6fe; }
.scene-step-badge--voice { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.scene-step-badge--sub { background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; }

.vidpack-scene-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
}

/* 씬 내부 섹션 블록 */
.scene-block {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-stone);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.scene-block--vid {
  background: #fcfbfe;
  border-color: #e9d5ff;
}
.scene-block--voice {
  background: #fffdfa;
  border-color: #fde68a;
}
.scene-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.scene-block-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--c-ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 카메라 모션 & 파라미터 뱃지 바 */
.param-badge-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 4px 0;
}
.param-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid var(--c-stone);
  color: var(--c-body);
  font-family: var(--f-mono);
}
.param-pill--camera {
  background: #ede9fe;
  color: #5b21b6;
  border-color: #ddd6fe;
}
.param-pill--voice {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}
  display: flex;
  align-items: center;
  gap: 6px;
}
.vidpack-col-label--video {
  color: #0f52ba;
}
.vidpack-col-label--script {
  color: var(--c-ochre);
}
.vidpack-narration-box {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-stone);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--c-ink);
  flex: 1;
}
.vidpack-subtitle-row {
  background: #1e1e1e;
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vidpack-subtitle-text {
  color: #ffeb3b;
  font-size: 13px;
  font-weight: 700;
  flex: 1;
}

.studio-tab-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.btn-tool {
  background: #ffffff;
  border: 1px solid var(--c-stone);
  color: var(--c-body);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--tr-base);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.btn-tool:hover {
  background: var(--c-bg-gray);
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.btn-tool--accent {
  background: var(--c-ochre-soft);
  color: var(--c-ochre);
  border-color: rgba(181, 124, 56, 0.3);
}
.btn-tool--accent:hover {
  background: var(--c-ochre);
  color: #ffffff;
  border-color: var(--c-ochre);
}
.btn-tool--studio {
  background: var(--c-sage-soft);
  color: var(--c-sage);
  border-color: rgba(74, 107, 83, 0.3);
}
.btn-tool--studio:hover {
  background: var(--c-sage);
  color: #ffffff;
}

/* ── 5. TAB BODY & STATES ── */
.studio-tab-body {
  padding: 24px;
  flex: 1;
  background: #ffffff;
  overflow-y: auto;
}
.studio-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--c-mute);
}
.studio-empty-state .empty-icon {
  font-size: 52px;
  margin-bottom: 12px;
  opacity: 0.8;
}
.studio-empty-state h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--c-ink);
  margin-bottom: 8px;
}
.studio-empty-state p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
}

/* ── 6. TAB 1: MASTER STORYBOARD STYLES ── */
.master-sheet-card {
  background: var(--c-bg-soft);
  border: 1.5px solid var(--c-stone);
  border-radius: var(--r-md);
  padding: 20px;
  margin-bottom: 20px;
}
.master-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--c-hr);
  flex-wrap: wrap;
}
.master-sheet-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--c-ink);
}
.master-meta-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.meta-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid var(--c-stone);
  color: var(--c-body);
}
.meta-pill--sage { background: var(--c-sage-soft); color: var(--c-sage); border-color: rgba(74, 107, 83, 0.2); }
.meta-pill--ochre { background: var(--c-ochre-soft); color: var(--c-ochre); border-color: rgba(181, 124, 56, 0.2); }
.meta-pill--slate { background: var(--c-slate-soft); color: var(--c-slate); border-color: rgba(61, 90, 128, 0.2); }

.master-concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.concept-item {
  background: #ffffff;
  border: 1px solid var(--c-stone);
  border-radius: var(--r-sm);
  padding: 12px 14px;
}
.concept-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--c-mute);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.concept-value {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.4;
}

.timeline-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-stone);
  border-radius: var(--r-sm);
  background: #ffffff;
}
.timeline-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.timeline-table th {
  background: var(--c-bg-gray);
  color: var(--c-ink);
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1.5px solid var(--c-stone);
  white-space: nowrap;
}
.timeline-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--c-hr);
  vertical-align: top;
  color: var(--c-body);
}
.timeline-table tr:last-child td {
  border-bottom: none;
}
.master-sheet-card .timeline-table-wrap {
  background: #09090b !important;
  border-color: #3f3f46 !important;
}
.master-sheet-card .timeline-table th {
  background: #27272a !important;
  color: #fde047 !important;
  border-bottom-color: #52525b !important;
}
.master-sheet-card .timeline-table td {
  background: #121215 !important;
  color: #e4e4e7 !important;
  border-bottom-color: #27272a !important;
}
.scene-num-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  background: var(--c-ink);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 4px;
}

/* ── 7. PROMPT CARDS (IMAGE & VIDEO) ── */
.prompt-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.prompt-card {
  background: #ffffff;
  border: 1.5px solid var(--c-stone);
  border-radius: var(--r-md);
  padding: 18px 20px;
  transition: all var(--tr-base);
  position: relative;
}
.prompt-card:hover {
  border-color: var(--c-ochre);
  box-shadow: var(--sh-subtle);
}
.prompt-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: nowrap;
}
.prompt-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-ink);
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.prompt-card-title > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prompt-engine-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: #2b2b2b;
  color: #ffffff;
  font-family: var(--f-mono);
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex;
  align-items: center;
}
.btn-copy-mini {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-stone);
  color: var(--c-body);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--tr-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  line-height: 1.2;
}
.btn-copy-mini:hover {
  background: var(--c-ochre);
  color: #ffffff;
  border-color: var(--c-ochre);
}
.scene-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: nowrap;
}
.scene-block-title {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
}
.scene-block-title > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prompt-kr-guide {
  font-size: 13px;
  color: var(--c-body);
  line-height: 1.5;
  margin-bottom: 10px;
  background: var(--c-bg-soft);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  border-left: 3px solid var(--c-ochre);
}
.prompt-codebox {
  background: #18181b !important;
  color: #f4f4f5 !important;
  border: 1px solid #3f3f46 !important;
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.6;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  overflow-x: auto;
  position: relative;
  word-break: break-all;
  white-space: pre-wrap;
}
.prompt-codebox:focus {
  outline: 2px solid var(--c-ochre) !important;
}
.editable-codebox--light {
  background: #ffffff !important;
  color: #18181b !important;
  border: 1.5px solid #cbd5e1 !important;
  font-family: inherit !important;
  font-size: 13.5px !important;
  line-height: 1.65 !important;
}
.prompt-params {
  color: #67e8f9;
  font-weight: 700;
}

/* ── 8. SCRIPT & NARRATION BOX ── */
.script-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.script-card {
  background: #ffffff;
  border: 1.5px solid var(--c-stone);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .script-card {
    grid-template-columns: 1fr;
  }
}
.script-meta-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.script-time {
  font-size: 12px;
  font-weight: 800;
  color: var(--c-sage);
  background: var(--c-sage-soft);
  padding: 4px 8px;
  border-radius: 4px;
  text-align: center;
  font-family: var(--f-mono);
}
.char-count-pill {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--c-mute);
  background: var(--c-bg-gray);
  padding: 3px 6px;
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
}
.script-content-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.script-dialogue-bubble {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-stone);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-ink);
  position: relative;
}
.editable-text-box {
  outline: none;
  border-radius: 4px;
  transition: all var(--tr-base);
  cursor: text;
}
.editable-text-box:focus {
  background: #ffffff;
  box-shadow: 0 0 0 2px var(--c-ochre);
  padding: 2px 4px;
}
.editable-codebox {
  outline: none;
  cursor: text;
  transition: all var(--tr-base);
}
.editable-codebox:focus {
  box-shadow: 0 0 0 2px #4ec9b0;
}
.script-subtitle-box {
  background: #2a2a2a;
  color: #ffeb3b;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.subtitle-badge {
  background: #444;
  color: #fff;
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 3px;
}

/* ── 9. MARKETING & WORKSHEET CARDS ── */
.marketing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 768px) {
  .marketing-grid {
    grid-template-columns: 1fr;
  }
}
.marketing-card {
  background: #ffffff;
  border: 1.5px solid var(--c-stone);
  border-radius: var(--r-md);
  padding: 18px;
}
.marketing-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--c-hr);
}
.hashtag-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.hashtag-pill {
  font-size: 12px;
  color: var(--c-slate);
  background: var(--c-slate-soft);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* ── 10. PROJECTS CMS MODAL ── */
.studio-projects-modal {
  max-width: 680px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px;
}
.studio-projects-toolbar {
  display: flex;
  gap: 8px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.studio-projects-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.project-row-item {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-stone);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all var(--tr-base);
}
.project-row-item:hover {
  background: #ffffff;
  border-color: var(--c-ochre);
  box-shadow: var(--sh-subtle);
}
.project-row-info h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--c-ink);
  margin-bottom: 4px;
}
.project-row-info p {
  font-size: 12px;
  color: var(--c-mute);
}
.project-row-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ── 11. PRINT MEDIA STYLES ── */
@media print {
  body * {
    visibility: hidden;
  }
  #view-studio, #view-studio * {
    visibility: visible;
  }
  #view-studio {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #ffffff !important;
    padding: 0 !important;
  }
  .no-print, .studio-preset-bar, .studio-input-panel, .studio-tab-header, .view-top-bar, .view-nav-action-bar, .nav, .footer, .floating-quick-bar, .scroll-top {
    display: none !important;
  }
  .studio-workspace-grid {
    display: block !important;
  }
  .studio-output-panel {
    border: none !important;
    box-shadow: none !important;
  }
  .studio-tab-body {
    padding: 0 !important;
  }
  .master-sheet-card, .prompt-card, .script-card, .marketing-card {
    page-break-inside: avoid;
    border: 1px solid #ddd !important;
    margin-bottom: 16px !important;
  }
  .prompt-codebox {
    background: #f5f5f5 !important;
    color: #111 !important;
    border: 1px solid #ccc !important;
  }
}

/* ── 복사 완료 버튼 피드백 애니메이션 ── */
.btn-copied-active {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
  transform: scale(1.04);
  transition: all 0.15s ease-in-out;
}

/* ── STUDIO TAB NAVIGATION (확실한 고대비 활성화 스타일) ── */
.studio-tab-header {
  border-bottom: 2px solid var(--c-stone, #e3ded5);
  margin-bottom: 16px;
  background: var(--c-sand, #faf8f5);
  padding: 10px 12px 0;
  border-radius: 12px 12px 0 0;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.studio-tab-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100% !important;
  box-sizing: border-box !important;
}
.studio-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #52525b;
  background: #ffffff;
  border: 1.5px solid #d4d4d8;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  top: 2px;
  white-space: nowrap;
  box-sizing: border-box;
}
.studio-tab-btn:hover {
  background: #f4f4f5;
  color: #18181b;
}
/* ★ 활성화(Active)된 탭: 진한 다크 배경 + 흰색 텍스트 + 볼드 + 확실한 하이라이트 그림자 ★ */
.studio-tab-btn.active {
  background: #18181b !important;
  color: #ffffff !important;
  border-color: #18181b !important;
  font-weight: 800 !important;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.2) !important;
  transform: translateY(-2px);
  z-index: 2;
}
.studio-tab-btn.active .tab-icon {
  transform: scale(1.15);
}
.studio-tab-btn.active .tab-text {
  color: #ffffff !important;
}

/* ══════════════════════════════════════════════
   📱 전역 모바일 뷰포트 & 스튜디오 완벽 오버플로우 방어 시스템
   - 좌우 여백 균등(16px), 오른쪽 잘림 0% 차단, 버튼 풀폭 정렬
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* 1. 전역 컨테이너 좌우 균등 여백 강제 */
  html, body, #main-content, .view-section {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .wrap {
    padding: 0 16px !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 2. 스튜디오 워크스페이스 & 패널 오버플로우 방어 */
  .studio-workspace-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .studio-input-panel, .studio-output-panel {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 14px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .studio-tab-body {
    padding: 14px 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* 3. 스튜디오 탭 버튼: 2열 2행 정갈한 카드 그리드 */
  .studio-tab-buttons {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }
  .studio-tab-btn {
    font-size: 12px !important;
    padding: 9px 6px !important;
    gap: 4px !important;
  }

  /* 4. 프롬프트 카드, 마스터시트, 스크립트 카드 모바일 핏 */
  .master-sheet-card, .prompt-card, .marketing-card, .script-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 12px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  
  /* 5. 카드 헤더 줄바꿈: 복사 버튼이 우측으로 넘치는 문제 완벽 해결 */
  .prompt-card-head, .marketing-card-head, .master-sheet-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .prompt-card-title {
    font-size: 14px !important;
    flex-wrap: wrap !important;
  }
  .btn-copy-mini, .btn-tool--studio {
    width: 100% !important;
    justify-content: center !important;
    height: 38px !important;
    font-size: 12.5px !important;
    box-sizing: border-box !important;
  }

  /* 6. 코드 박스 / 텍스트 에어리어 긴 문자열 줄바꿈 방어 */
  .prompt-codebox, .editable-codebox--light {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
    padding: 10px 12px !important;
    box-sizing: border-box !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
    white-space: pre-wrap !important;
  }

  /* 7. 마스터 시트 그리드 및 타임라인 */
  .master-concept-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .timeline-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .timeline-table th, .timeline-table td {
    padding: 8px 10px !important;
    font-size: 11.5px !important;
  }

  /* 8. 프리셋 칩 바 모바일 핏 */
  .studio-preset-bar {
    padding: 14px 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .preset-chip {
    font-size: 11.5px !important;
    padding: 5px 11px !important;
  }

  /* 9. 씬 카드 및 비디오팩 스텝 블록 모바일 핏 (오른쪽 잘림 100% 차단) */
  .vidpack-scene-card, .scene-block {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 10px !important;
    overflow-x: hidden !important;
  }
  .vidpack-scene-header, .scene-block-head {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .scene-block-title {
    font-size: 13px !important;
    flex-wrap: wrap !important;
  }
  .vidpack-scene-header .btn-copy-mini, .scene-block-head .btn-copy-mini {
    width: 100% !important;
    height: 38px !important;
    justify-content: center !important;
    margin-top: 4px !important;
    font-size: 12px !important;
  }
  .vidpack-scene-body div[style*="grid-template-columns:1fr 1fr"],
  .vidpack-scene-body div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .param-badge-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
  }
  .param-pill {
    font-size: 11px !important;
    padding: 4px 7px !important;
    white-space: normal !important;
    word-break: break-all !important;
  }

  /* 10. 스튜디오 입력 패널 하단 버튼 모바일 핏 (스크린샷 넘침 문제 완벽 해결) */
  .studio-generate-btn {
    width: 100% !important;
    height: 46px !important;
    font-size: 14px !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    justify-content: center !important;
  }
  .studio-sub-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 10px !important;
  }
  .studio-sub-actions .btn {
    width: 100% !important;
    height: 40px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* 11. 뷰 하단 네비 액션 바 모바일 풀폭 */
  .view-nav-action-bar {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
    box-sizing: border-box !important;
  }
  .view-nav-action-bar .btn {
    width: 100% !important;
    justify-content: center !important;
    height: 48px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
  }

  /* 12. 모바일 전용 풀폭 유틸리티 */
  .w-full-mobile {
    width: 100% !important;
    justify-content: center !important;
  }

  /* 13. 메인(Work) 화면 하단 — 플로팅바 겹침 완전 방지 safe padding */
  #view-work {
    padding-bottom: 130px !important;
  }

  /* 14. 회원 관리 테이블 모바일 이메일 컬럼 최적화 */
  #member-table td:nth-child(3) {
    font-size: 11.5px !important;
    word-break: break-all !important;
    max-width: 120px !important;
  }
  #member-table th:nth-child(3) {
    font-size: 12px !important;
  }
}

/* ── [PC 전용] 어드민 버튼 패딩 & 여백 개선 ── */
@media (min-width: 993px) {
  .admin-bar .btn {
    padding: 0 14px !important;
    font-size: 12px !important;
    height: 30px !important;
  }
  .admin-bar__btns {
    gap: 6px !important;
    flex-wrap: wrap !important;
  }
}

@media (max-width: 360px) {
  .wrap {
    padding: 0 12px !important;
  }
  .studio-tab-buttons {
    grid-template-columns: 1fr !important;
  }
  .studio-tab-btn {
    font-size: 11.5px !important;
  }
}

/* ==========================================================================
   ✨ 2025-2026 PREMIUM UPGRADE — 추가 마이크로 인터랙션 & 모바일 탭바
   ========================================================================== */

/* ── 1. Hero 타이틀 Clip-path 등장 애니메이션 ── */
@keyframes hero-title-reveal {
  from { clip-path: inset(0 100% 0 0); opacity: 0; }
  to   { clip-path: inset(0 0% 0 0);   opacity: 1; }
}
.raw-art-work-hero__title {
  animation: hero-title-reveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
.raw-art-work-hero__guide {
  animation: hero-title-reveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

/* ── 2. 섹션 카드 상단 accent bar hover 애니메이션 ── */
.philo-card, .process-card, .program-card {
  position: relative;
  overflow: hidden;
}
.philo-card::before, .process-card::before, .program-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-sage), var(--c-ochre));
  border-radius: 999px 999px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.philo-card:hover::before, .process-card:hover::before, .program-card:hover::before {
  transform: scaleX(1);
}

/* ── 3. 에피소드 번호 활성 색상 강화 ── */
.ep-item.active .ep-num {
  color: var(--c-sage);
  font-weight: 800;
  background: var(--c-sage-soft);
  border-radius: 6px;
  padding: 2px 6px;
}
.ep-item {
  transition: background 0.2s ease, border-left-color 0.2s ease;
  border-left: 3px solid transparent;
  padding-left: 8px;
}
.ep-item.active {
  border-left-color: var(--c-sage);
  background: rgba(74, 107, 83, 0.03);
  border-radius: 0 8px 8px 0;
}

/* ── 4. 갤러리 카드 캡션 hover 색상 강화 ── */
.gal-item:hover .gal-caption h4 {
  color: var(--c-sage);
  transition: color 0.25s ease;
}
.gal-item {
  transition: transform var(--tr-base), box-shadow var(--tr-base), border-color 0.25s ease;
}
.gal-item:hover {
  border-color: rgba(74, 107, 83, 0.3);
}

/* ── 5. 스크롤 다운 인디케이터 ── */
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%       { transform: translateY(6px); opacity: 1; }
}
.scroll-down-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  opacity: 0.55;
  animation: scroll-bounce 2s ease-in-out infinite;
  font-size: 11px;
  font-family: var(--f-mono);
  letter-spacing: 0.1em;
  color: var(--c-mute);
  cursor: pointer;
}
.scroll-down-indicator svg {
  width: 18px; height: 18px;
  stroke: var(--c-mute);
  stroke-width: 2;
  fill: none;
}

/* ── 6. 📱 모바일 하단 퀵 탭 바 ── */
.mobile-bottom-tab {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 490;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0,0,0,0.07);
  padding: 0 0 env(safe-area-inset-bottom, 0);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.mobile-bottom-tab__inner {
  display: flex;
  align-items: stretch;
  height: 56px;
}
.mobile-tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 6px 4px;
  position: relative;
  transition: transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.mobile-tab-btn:active {
  transform: scale(0.92);
}
.mobile-tab-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: #78716c;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}
.mobile-tab-btn__icon svg {
  stroke: #78716c;
  transition: stroke 0.2s ease, transform 0.2s ease;
}
.mobile-tab-btn.active .mobile-tab-btn__icon {
  transform: translateY(-2px);
  color: var(--c-sage);
}
.mobile-tab-btn.active .mobile-tab-btn__icon svg {
  stroke: var(--c-sage);
}
.mobile-tab-btn__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #78716c;
  transition: color 0.2s ease;
}
.mobile-tab-btn.active .mobile-tab-btn__label {
  color: var(--c-sage);
}
.mobile-tab-btn.active::before {
  content: '';
  position: absolute;
  top: 0; left: 24%; right: 24%;
  height: 2.5px;
  background: var(--c-sage);
  border-radius: 0 0 3px 3px;
}
@media (max-width: 768px) {
  .mobile-bottom-tab {
    display: block;
  }
  /* 모바일 탭바 높이만큼 본문 하단 패딩 추가 */
  #main-content {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* ── 7. 필로소피/프로세스 카드 이미지 줌 hover ── */
.philo-card__img-wrap, .process-card__img-wrap {
  overflow: hidden;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.philo-card__img-wrap img,
.process-card__img-wrap img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.philo-card:hover .philo-card__img-wrap img,
.process-card:hover .process-card__img-wrap img {
  transform: scale(1.04);
}

/* ── 8. 터치 피드백 강화 ── */
@media (hover: none) and (pointer: coarse) {
  .btn:active, .raw-nav-card:active, .gal-item:active {
    transform: scale(0.97) !important;
    opacity: 0.88;
  }
}

/* ── 9. STORE 메뉴 강조 배지 ── */
.nav__link--store {
  color: var(--c-smartstore) !important;
  font-weight: 700 !important;
}
.nav__link--store::before {
  content: 'NEW';
  font-size: 7px;
  font-weight: 800;
  background: var(--c-smartstore);
  color: #fff;
  border-radius: 3px;
  padding: 1px 3px;
  vertical-align: super;
  margin-right: 2px;
  letter-spacing: 0;
}


/* ── 인스타그램 감성 스토리 & 미디어 카드 스타일 ── */
.story-featured-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--c-hr);
  background: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  max-width: 500px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}
.story-featured-media-box {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: auto;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-featured-media-box iframe {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: clamp(680px, 160vw, 820px);
  min-height: 680px;
  border: none;
  display: block;
  background: #ffffff;
  box-sizing: border-box;
}
.story-featured-media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-card-insta-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(188, 24, 136, 0.3);
}
.story-card-modern {
  background: #ffffff;
  border: 1px solid var(--c-hr);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.story-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  border-color: var(--c-ochre);
}
.story-card-thumb-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  background: var(--c-sand, #faf8f5);
  overflow: hidden;
}
.story-card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.story-card-modern:hover .story-card-thumb-wrap img {
  transform: scale(1.05);
}
.story-card-overlay-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}
.story-card-lock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}
.story-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.story-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--c-mute);
  padding-top: 8px;
  border-top: 1px solid var(--c-hr);
}


/* ── 앙파티 씽크/오브젝트 카드 5개씩 2줄 그리드 (완벽 대칭 직사각형) ── */
.deck-cards-grid {
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 16px !important;
  width: 100% !important;
}
.deck-cards-grid[style*="display: none"],
.deck-cards-grid[style*="display:none"] {
  display: none !important;
}
.deck-cards-grid .card-item {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease !important;
}
.deck-cards-grid .card-item:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08) !important;
}

@media (max-width: 900px) {
  .deck-cards-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
  }
}
@media (max-width: 540px) {
  .deck-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}
