/* ==========================================================================
   GENESIS BIOPHARMA - Mixed Demo 2 전용 프리미엄 CSS
   Theme C (심층 보고서) + Theme E (벤토 그리드) 혼합 레이아웃
   ========================================================================== */

/* 1. 디자인 시스템 변수 정의 */
:root {
  /* 프리미엄 사이언티픽 컬러 시스템 */
  --accent-primary: #00d4aa;      /* 바이오 그린 */
  --accent-primary-rgb: 0, 212, 170;
  --accent-secondary: #4a9eff;    /* 사이언스 블루 */
  --accent-secondary-rgb: 74, 158, 255;
  --accent-tertiary: #8b5cf6;     /* 데이터 퍼플 */
  --accent-warm: #f59e0b;         /* 앰버 골드 (경고/포인트) */
  --accent-danger: #ef4444;       /* 퀴즈 오답/위험 */
  
  /* 그라디언트 시스템 */
  --gradient-primary: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  --gradient-neon: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-tertiary) 100%);
  --gradient-hero: linear-gradient(180deg, rgba(10, 10, 15, 0) 0%, rgba(10, 10, 15, 0.95) 100%);
  
  /* 글래스모피즘 질감 */
  --glass-bg: rgba(13, 17, 23, 0.7);
  --glass-border: rgba(0, 212, 170, 0.15);
  --glass-border-hover: rgba(0, 212, 170, 0.35);
  
  /* 다크 테마 섹션 배경 */
  --bg-main: #0a0a0f;
  --bg-section-alt: #0d1117;
  --text-main: #e2e8f0;
  --text-muted: #8a99ad;
  
  /* 타이포그래피 */
  --text-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-title: 'Outfit', 'Pretendard', sans-serif;
  --font-body: 'Inter', 'Pretendard', sans-serif;
  
  /* 레이아웃 */
  --header-height: 80px;
}

/* 라이트 모드 컬러 오버라이드 */
[data-mode="light"] {
  --accent-primary: #059669;      /* 가독성 높은 딥 그린 */
  --accent-primary-rgb: 5, 150, 105;
  --accent-secondary: #2563eb;    /* 딥 블루 */
  --accent-secondary-rgb: 37, 99, 235;
  --accent-tertiary: #7c3aed;
  
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(5, 150, 105, 0.15);
  --glass-border-hover: rgba(5, 150, 105, 0.4);
  
  --bg-main: #f8fafc;
  --bg-section-alt: #f1f5f9;
  --text-main: #1e293b;
  --text-muted: #64748b;
  
  --gradient-hero: linear-gradient(180deg, rgba(10, 10, 15, 0) 0%, rgba(10, 10, 15, 0.95) 100%);
}

/* CSS 전용 애니메이션 프로퍼티 등록 (프로그레스 바 매끄러운 트랜지션 지원) */
@property --progress-percent {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}

/* ==========================================================================
   2. 공통 리셋 및 레이아웃 구조
   ========================================================================== */
body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

.mixed-main {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  container-type: inline-size;
}

/* 폰트 지정 및 줄바꿈 방지 */
.keep-all {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 공통 섹션 장식 및 타이틀 */
.section-container {
  padding: 100px 4% 100px 4%;
  position: relative;
}

.section-container:nth-of-type(even) {
  background-color: var(--bg-section-alt);
}

/* PC 와이드 스크린에서 에디토리얼 무드를 극대화하는 콘텐츠 최대 가로폭 가둠 및 중앙 정렬 */
.section-header,
.pipeline-grid,
.dept-sticky-layout,
.interview-flex-container,
.activities-grid,
.events-masonry-grid,
.quiz-glass-banner {
  max-width: 1400px;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 섹션 헤더 디자인 */
.section-header {
  margin-bottom: 60px;
  max-width: 1400px; /* 본문 콘텐츠와 정렬선(0점 축) 완벽 동기화 */
  width: 100%;
}

.section-header.center-align {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header.left-align {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

/* 섹션 태그 및 마커 */
.section-tag {
  display: inline-block;
  font-family: var(--text-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-primary);
  margin-bottom: 12px;
  position: relative;
  padding-left: 15px;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-primary);
}

/* 섹션 타이틀 */
.section-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 16px;
}

/* 섹션 설명 */
.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 헤더 내 텍스트 글줄 가독성 보호 (최적 가로폭 가둠) */
.section-title,
.section-desc {
  max-width: 800px;
  width: 100%;
}

.section-header.center-align .section-title,
.section-header.center-align .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.section-header.left-align .section-title,
.section-header.left-align .section-desc {
  margin-left: 0;
  margin-right: auto;
}

/* 이미지 없음 대체 플레이스홀더 */
.no-image, .no-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, rgba(13, 17, 23, 0.9) 0%, rgba(10, 10, 15, 0.95) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.no-image::before, .no-image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 212, 170, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 170, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}

.no-image-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 10px rgba(0, 212, 170, 0.3));
  position: relative;
  z-index: 1;
}

.no-image-text {
  font-family: var(--text-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
}

/* 유려한 글래디언트 배경 베리에이션 */
.bento-gradient-1 { background: linear-gradient(135deg, rgba(0,212,170,0.12) 0%, rgba(10,10,15,0.95) 100%); }
.bento-gradient-2 { background: linear-gradient(135deg, rgba(74,158,255,0.12) 0%, rgba(10,10,15,0.95) 100%); }
.bento-gradient-3 { background: linear-gradient(135deg, rgba(139,92,246,0.12) 0%, rgba(10,10,15,0.95) 100%); }
.bento-gradient-4 { background: linear-gradient(135deg, rgba(245,158,11,0.12) 0%, rgba(10,10,15,0.95) 100%); }

/* ==========================================================================
   3. 섹션별 상세 스타일링
   ========================================================================== */

/* 🎬 [Section 1] HERO AREA */
.hero-section {
  width: 100%;
  height: 100vh;
  min-height: 600px;
  position: relative;
  background-color: #050508;
  overflow: hidden;
  /* 흐릿한 흰색 그라데이션 대신, 프리미엄 네온 보더 브릿지로 경계선 획정 */
  border-bottom: 1px solid rgba(0, 212, 170, 0.25);
  box-shadow: 0 10px 40px rgba(0, 212, 170, 0.08);
}

/* 아래 콘텐츠로 가기 전 정교한 모노스페이스 데이터 데코레이션 삽입 */
.hero-section::after {
  content: "SYS_REF: GENESIS-GRID-V2 // RESOLUTION: 180X180_MORPHING_PARTICLES // GLOW_STATE: ACTIVE";
  position: absolute;
  bottom: 15px;
  right: 8%;
  font-family: var(--text-mono);
  font-size: 0.65rem;
  color: rgba(0, 212, 170, 0.4);
  letter-spacing: 0.05em;
  pointer-events: none;
  z-index: 3;
}

/* 라이트 모드일지라도 히어로 영역의 텍스트와 보더는 언제나 선명한 다크 테마 톤으로 고정 */
[data-mode="light"] .visual-title {
  color: #ffffff !important;
}
[data-mode="light"] .visual-desc {
  color: rgba(226, 232, 240, 0.85) !important;
}
[data-mode="light"] .visual-brand-tag {
  color: #00d4aa !important;
}
[data-mode="light"] .visual-nav-btn {
  color: #ffffff !important;
}
[data-mode="light"] .visual-dot {
  background: rgba(255, 255, 255, 0.3) !important;
}
[data-mode="light"] .visual-dot.active {
  background: var(--accent-primary) !important;
}
[data-mode="light"] .visual-slide-dots button {
  background: rgba(255, 255, 255, 0.3);
}
[data-mode="light"] .visual-slide-dots button.active {
  background: var(--accent-primary) !important;
}


.hero-canvas-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-canvas-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.visual-overlay-container {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--gradient-hero);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 8% 80px 8%;
  pointer-events: none; /* WebGL 마우스 반응성을 위해 오버레이 레이어는 이벤트를 보냄 */
}

.visual-header-meta {
  margin-bottom: 20px;
}

.visual-brand-tag {
  font-family: var(--text-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.25em;
  text-shadow: 0 0 10px rgba(0, 212, 170, 0.4);
}

.visual-main-content {
  max-width: 650px;
  pointer-events: auto; /* 컨트롤러 영역 등은 클릭 이벤트를 받아야 함 */
}

.visual-badge {
  display: inline-block;
  background: rgba(0, 212, 170, 0.15);
  border: 1px solid rgba(0, 212, 170, 0.3);
  padding: 6px 14px;
  border-radius: 30px;
  font-family: var(--text-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 18px;
  box-shadow: 0 0 15px rgba(0, 212, 170, 0.1);
  text-transform: uppercase;
}

.visual-title-wrapper {
  overflow: hidden;
  margin-bottom: 16px;
}

.visual-title {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.visual-desc {
  font-size: 1.1rem;
  color: rgba(226, 232, 240, 0.85);
  line-height: 1.6;
  margin-bottom: 35px;
  word-break: keep-all;
}

/* 히어로 슬라이드 제어기 */
.visual-controllers {
  display: flex;
  align-items: center;
  gap: 30px;
}

.visual-slide-dots {
  display: flex;
  gap: 10px;
}

.visual-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.visual-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.visual-dot.active {
  background: var(--accent-primary);
  width: 28px;
  border-radius: 5px;
  box-shadow: 0 0 10px var(--accent-primary);
}

.visual-navigation {
  display: flex;
  gap: 12px;
}

.visual-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.visual-nav-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.visual-nav-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #050508;
  box-shadow: 0 0 15px rgba(0, 212, 170, 0.4);
}

/* 📊 [Section 2] R&D PIPELINE */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 30px 24px;
  text-align: center;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.stat-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 10px 30px rgba(0, 212, 170, 0.08);
  transform: translateY(-5px);
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
}

.stat-num {
  font-family: var(--text-mono);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  text-shadow: 0 0 15px rgba(0, 212, 170, 0.25);
}

.stat-card:nth-child(2) .stat-num {
  color: var(--accent-secondary);
  text-shadow: 0 0 15px rgba(74, 158, 255, 0.25);
}

.stat-card:nth-child(3) .stat-num {
  color: var(--accent-tertiary);
  text-shadow: 0 0 15px rgba(139, 92, 246, 0.25);
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* 벤토 그리드 */
.pipeline-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pipeline-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: grid;
  grid-template-rows: auto auto 1fr auto auto; /* subgrid 지원용 뼈대 */
  gap: 15px;
}

.pipeline-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(0, 212, 170, 0.4);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.3),
    0 0 25px rgba(0, 212, 170, 0.15);
}

.card-glow-bg {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.12) 0%, rgba(0, 212, 170, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.6s ease;
}

.pipeline-card:hover .card-glow-bg {
  transform: scale(2.2);
}

.pipeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pipeline-id {
  font-family: var(--text-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pipeline-phase {
  font-family: var(--text-mono);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

.active-3 { background: rgba(0, 212, 170, 0.12); color: var(--accent-primary); border: 1px solid rgba(0, 212, 170, 0.2); }
.active-2 { background: rgba(74, 158, 255, 0.12); color: var(--accent-secondary); border: 1px solid rgba(74, 158, 255, 0.2); }
.active-1 { background: rgba(139, 92, 246, 0.12); color: var(--accent-tertiary); border: 1px solid rgba(139, 92, 246, 0.2); }
.active-pre { background: rgba(245, 158, 11, 0.12); color: var(--accent-warm); border: 1px solid rgba(245, 158, 11, 0.2); }

.pipeline-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
}

.pipeline-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* 프로그레스 영역 */
.progress-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.progress-bar-wrapper {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: var(--gradient-primary);
  width: 0%; /* JS에서 동적 세팅 */
  transition: width 2s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #ffffff, 0 0 20px var(--accent-primary);
}

.progress-metrics {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.progress-percent {
  font-family: var(--text-mono);
  font-weight: 700;
  color: var(--accent-primary);
}

.progress-target {
  color: var(--text-muted);
}

/* 미니 스텝 인디케이터 */
.pipeline-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.step-dot {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.25);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.step-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.3s, box-shadow 0.3s;
}

.step-dot.active {
  color: var(--text-main);
}

.step-dot.active::before {
  background: var(--accent-primary);
  box-shadow: 0 0 6px var(--accent-primary);
}

/* 3상 임상 깜빡임 효과 */
.step-dot.blink::before {
  animation: step-blink 1.5s infinite alternate;
}

@keyframes step-blink {
  0% { opacity: 0.4; box-shadow: 0 0 2px var(--accent-primary); }
  100% { opacity: 1; box-shadow: 0 0 12px var(--accent-primary), 0 0 20px var(--accent-primary); }
}

/* 🔬 [Section 3] DEPT TOUR (Sticky Sidebar + Flow Scroll) */
.dept-sticky-layout {
  display: flex;
  gap: 6%;
  position: relative;
  align-items: flex-start;
}

.dept-sidebar {
  width: 38%;
  position: sticky;
  top: calc(var(--header-height) + 40px);
  align-self: start;
  display: flex;
  flex-direction: column;
}

.dept-main-title {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin: 10px 0 25px 0;
}

.dept-hero-image-wrapper {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  margin-bottom: 25px;
}

.dept-hero-image {
  width: 100%;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.5s;
}

.dept-hero-image-wrapper:hover .dept-hero-image {
  transform: scale(1.03);
}

.dept-leader-info {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--accent-primary);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 30px;
}

.leader-role {
  display: block;
  font-size: 0.78rem;
  font-family: var(--text-mono);
  color: var(--accent-primary);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.leader-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.leader-degree {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}

.leader-quote {
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

/* 스크롤스파이 내비 */
.dept-scroll-spy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  padding-left: 10px;
}

.dept-scroll-spy::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.05);
}

.spy-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 4px 0;
  transition: all 0.3s;
  position: relative;
}

.spy-dot {
  position: absolute;
  left: -13px;
  top: 50%;
  transform: translateY(-50%) scale(0.5);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
}

.spy-link.active {
  color: var(--accent-primary);
  font-weight: 700;
}

.spy-link.active .spy-dot {
  background: var(--accent-primary);
  transform: translateY(-50%) scale(1.3);
  box-shadow: 0 0 8px var(--accent-primary);
}

/* 우측 콘텐츠 흐름 */
.dept-content-flow {
  width: 56%;
  display: grid;
  grid-template-areas: "dept-stack";
  height: clamp(760px, 86vh, 900px);
  padding-top: clamp(150px, 9.5vw, 170px);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.dept-flow-part {
  grid-area: dept-stack;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 10px;
  scroll-margin-top: calc(var(--header-height) + 60px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(28px) scale(0.985);
  transition:
    opacity 0.45s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.45s ease;
}

.dept-flow-part.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.dept-flow-part::-webkit-scrollbar {
  width: 6px;
}

.dept-flow-part::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.dept-flow-part::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 170, 0.45);
  border-radius: 999px;
}

.flow-image-wrapper {
  width: 100%;
  aspect-ratio: 2.358 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 170, 0.16);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.28),
    0 0 28px rgba(0, 212, 170, 0.06);
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.03);
}

.flow-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flow-text-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 4px 8px 4px;
}

.part-number {
  align-self: flex-start;
  font-family: var(--text-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border: 1px solid rgba(0, 212, 170, 0.18);
  border-radius: 999px;
  background: rgba(0, 212, 170, 0.08);
}

.part-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  line-height: 1.25;
}

.flow-text-content p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* 👨‍🔬 [Section 4] RESEARCHER INTERVIEW */
.interview-flex-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.interview-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(16px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.interviewee-profile {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-image-box {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 15px rgba(0, 212, 170, 0.2);
  flex-shrink: 0;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.interviewee-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.interviewee-dept {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* 아코디언 컴포넌트 */
.accordion-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
}

.accordion-header {
  list-style: none; /* 기본 삼각형 비활성화 */
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 12px 0;
  user-select: none;
}

.accordion-header::-webkit-details-marker {
  display: none; /* Safari 삼각형 비활성화 */
}

.accordion-q-prefix {
  font-family: var(--text-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(0, 212, 170, 0.1);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.accordion-question {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-right: 15px;
  flex-grow: 1;
  line-height: 1.4;
  transition: color 0.3s;
}

.accordion-header:hover .accordion-question {
  color: var(--accent-primary);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.accordion-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* 아코디언 열렸을 때 스타일 */
.accordion-item[open] .accordion-icon {
  transform: rotate(45deg);
  color: var(--accent-primary);
}

.accordion-content {
  padding: 8px 12px 16px 36px;
  animation: accordion-fadein 0.4s ease-out;
}

.accordion-answer {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

@keyframes accordion-fadein {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 🏥 [Section 5] CEO ACTIVITIES */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.activity-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, transform 0.3s;
}

.activity-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-5px);
}

.activity-image-wrapper {
  width: 100%;
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
}

.activity-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.activity-card:hover .activity-image {
  transform: scale(1.06);
}

/* 호버 오버레이 설명 박스 */
.activity-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.4) 100%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  transition: opacity 0.4s ease;
}

.activity-card:hover .activity-overlay {
  opacity: 1;
}

.activity-overlay-content {
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.activity-card:hover .activity-overlay-content {
  transform: translateY(0);
}

.activity-date {
  font-family: var(--text-mono);
  font-size: 0.82rem;
  color: var(--accent-primary);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.activity-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px 0;
}

.activity-desc {
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.85);
  line-height: 1.5;
  margin: 0;
}

/* 정적 정보 노출 (호버하지 않아도 타이틀 식별용) */
.activity-info-static {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.activity-date-badge {
  font-family: var(--text-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: 4px;
}

.activity-static-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  flex-grow: 1;
}

/* 🎊 [Section 6] COMPANY EVENTS (Masonry Grid) */
.events-masonry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(170px, 13vw, 240px);
  grid-auto-flow: dense;
  gap: 24px;
}

.event-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s;
}

/* 크기 배치 제어 */
.event-item.size-lg {
  grid-column: span 2;
  grid-row: span 2;
}

.event-item.size-tall {
  grid-column: span 1;
  grid-row: span 2;
}

.event-item.size-wide {
  grid-column: span 2;
  grid-row: span 1;
}

.event-item.size-sm {
  grid-column: span 1;
  grid-row: span 1;
}

.event-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
}

.event-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.event-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 15px 30px rgba(0, 212, 170, 0.15);
}

.event-item:hover .event-img {
  transform: scale(1.04);
}

/* 카드 기본 하단 캡션 오버레이 */
.event-card-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  z-index: 2;
}

.event-tag {
  font-family: var(--text-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.event-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.event-item.size-sm .event-title {
  font-size: 1.1rem;
}

/* 🎁 [Section 7] HEALTH QUIZ */
.quiz-section {
  display: flex;
  justify-content: center;
}

.quiz-glass-banner {
  width: 100%;
  max-width: 1000px;
  background: linear-gradient(135deg, rgba(20, 24, 33, 0.7) 0%, rgba(13, 17, 23, 0.8) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 50px 60px;
  backdrop-filter: blur(16px);
  box-shadow: 
    0 20px 50px rgba(0,0,0,0.3),
    inset 0 0 30px rgba(0, 212, 170, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.quiz-glass-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(0, 212, 170, 0.08) 0%, transparent 60%);
}

.quiz-decorations {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.quiz-dna-helix {
  font-size: 8rem;
  opacity: 0.12;
  filter: drop-shadow(0 0 20px var(--accent-primary));
  animation: dna-rotate 12s linear infinite;
}

.quiz-glowing-sphere {
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(74, 158, 255, 0.2) 0%, transparent 70%);
  filter: blur(10px);
  animation: sphere-float 6s ease-in-out infinite alternate;
}

@keyframes dna-rotate {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes sphere-float {
  0% { transform: translate(-20px, -20px); }
  100% { transform: translate(20px, 20px); }
}

.quiz-banner-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.quiz-banner-title {
  font-family: var(--font-title);
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  margin: 10px 0 18px 0;
  letter-spacing: -0.02em;
}

.quiz-banner-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

[data-mode="light"] .quiz-glass-banner {
  background:
    radial-gradient(circle at 82% 24%, rgba(var(--accent-secondary-rgb), 0.12) 0%, transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(241, 245, 249, 0.96) 100%);
  border-color: rgba(var(--accent-primary-rgb), 0.18);
  box-shadow:
    0 22px 55px rgba(15, 23, 42, 0.10),
    inset 0 0 30px rgba(var(--accent-primary-rgb), 0.05);
}

[data-mode="light"] .quiz-glass-banner::after {
  background: radial-gradient(circle at 80% 30%, rgba(var(--accent-primary-rgb), 0.10) 0%, transparent 62%);
}

[data-mode="light"] .quiz-banner-title {
  color: var(--text-main);
}

[data-mode="light"] .quiz-banner-desc {
  color: var(--text-muted);
}

.quiz-trigger-btn {
  background: var(--gradient-primary);
  border: none;
  padding: 16px 36px;
  border-radius: 50px;
  color: #050508;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 10px 25px rgba(0, 212, 170, 0.3);
}

.quiz-trigger-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.3s;
}

.quiz-trigger-btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 15px 30px rgba(0, 212, 170, 0.4),
    0 0 20px rgba(74, 158, 255, 0.2);
}

.quiz-trigger-btn:hover svg {
  transform: translateX(4px);
}

/* 📖 [Section 8] BACK NUMBER ARCHIVE (Horizontal Snap Timeline) */
.archive-scroll-container-wrapper {
  position: relative;
  width: 100%;
  margin-top: 20px;
}

/* 스크롤 가이드 그림자 */
.archive-scroll-container-wrapper::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--bg-main));
  pointer-events: none;
  z-index: 5;
}

.archive-scroll-timeline {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 40px 0 50px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) rgba(255,255,255,0.03);
  position: relative;
}

/* 타임라인 축선 */
.timeline-axis-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 1;
}

.archive-card-item {
  flex: 0 0 320px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: relative;
  z-index: 2;
}

.archive-card-inner {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: all 0.4s ease;
}

.archive-card-item:hover .archive-card-inner {
  border-color: var(--accent-primary);
  transform: translateY(-8px);
  box-shadow: 
    0 15px 35px rgba(0,0,0,0.3),
    0 0 15px rgba(0, 212, 170, 0.1);
}

.archive-cover-wrapper {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
  background-color: #0f131a;
}

.archive-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.archive-card-item:hover .archive-cover {
  transform: scale(1.05);
}

.archive-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.archive-vol {
  font-family: var(--text-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.05em;
}

.archive-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.archive-theme {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 2px 0 6px 0;
}

.archive-article {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* 타임라인 노드 */
.timeline-node {
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid var(--bg-main);
  transition: all 0.3s;
  z-index: 3;
}

.archive-card-item:hover .node-dot {
  background: var(--accent-primary);
  transform: scale(1.5);
  box-shadow: 0 0 10px var(--accent-primary);
}

/* 🦶 [Section 9] FOOTER (Monospace Report style) */
.mono-report-footer {
  background: #050508;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 6% 60px 6%;
  position: relative;
  font-family: var(--text-mono);
}

/* 배경 그리드 메쉬 효과 */
.footer-grid-decor {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.footer-main-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-branding {
  max-width: 400px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.footer-slogan {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin: 0;
}

.footer-links-group {
  display: flex;
  gap: 80px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.col-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.1em;
  margin: 0 0 6px 0;
}

.col-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.col-link:hover {
  color: #ffffff;
}

.footer-bottom-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 30px;
}

.footer-legal-panel {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
}

.legal-left {
  max-width: 800px;
}

.copyright {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 8px 0;
}

.warning-text {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  line-height: 1.4;
  margin: 0;
}

.scientific-seal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  opacity: 0.6;
}

.seal-id, .seal-hash {
  font-size: 0.65rem;
  color: var(--accent-primary);
  background: rgba(0, 212, 170, 0.05);
  border: 1px solid rgba(0, 212, 170, 0.15);
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

.seal-hash {
  color: var(--accent-secondary);
  background: rgba(74, 158, 255, 0.05);
  border-color: rgba(74, 158, 255, 0.15);
}

/* ==========================================================================
   4. 모달 / 다이얼로그 (DIALOG) 스타일링
   ========================================================================== */

/* 공통 다이얼로그 기초 */
dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-main);
  max-width: 90%;
  max-height: 92dvh;
  outline: none;
  overflow: visible;
}

dialog[open] {
  display: block;
}

dialog::backdrop {
  background: rgba(5, 5, 10, 0.85);
  backdrop-filter: blur(12px);
}

[data-mode="light"] dialog::backdrop {
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(14px);
}

.dialog-close-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
}

.dialog-close-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.dialog-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* A. 📷 MASONRY EVENT LIGHTBOX */
.event-lightbox-dialog .dialog-card {
  width: 960px;
  max-width: 100%;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  position: relative;
  pointer-events: auto;
}

.event-lightbox-dialog .dialog-close-btn {
  z-index: 30;
  background: rgba(5, 5, 10, 0.72);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  pointer-events: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

[data-mode="light"] .event-lightbox-dialog .dialog-close-btn {
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
}

.lightbox-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.lightbox-image-container {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background-color: #050508;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lightbox-full-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-content {
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lightbox-badge {
  font-family: var(--text-mono);
  font-size: 0.72rem;
  color: var(--accent-primary);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.lightbox-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px 0;
  line-height: 1.3;
}

.lightbox-divider {
  height: 2px;
  background: var(--gradient-primary);
  width: 60px;
  margin-bottom: 25px;
}

.lightbox-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* B. 🧬 INTERACTIVE QUIZ DIALOG */
.quiz-game-dialog .quiz-dialog-card {
  width: 600px;
  max-width: 100%;
  max-height: calc(92dvh - 24px);
  overflow-y: auto;
  background: linear-gradient(135deg, rgba(20, 24, 33, 0.95) 0%, rgba(13, 17, 23, 0.98) 100%);
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: 24px;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(0, 212, 170, 0.1);
  backdrop-filter: blur(20px);
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-mode="light"] .quiz-game-dialog .quiz-dialog-card {
  background:
    radial-gradient(circle at 80% 8%, rgba(var(--accent-secondary-rgb), 0.10) 0%, transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.99) 100%);
  border-color: rgba(var(--accent-primary-rgb), 0.24);
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.22),
    0 0 30px rgba(var(--accent-primary-rgb), 0.10);
}

[data-mode="light"] .quiz-game-dialog .dialog-close-btn {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.10);
  color: var(--text-muted);
}

[data-mode="light"] .quiz-game-dialog .dialog-close-btn:hover {
  background: rgba(var(--accent-primary-rgb), 0.10);
  color: var(--text-main);
}

/* 퀴즈 단계 전환 슬라이드 */
.quiz-step-pane {
  display: none;
  width: 100%;
  padding: 50px 40px;
  box-sizing: border-box;
}

.quiz-step-pane.active {
  display: block;
  animation: pane-slideup 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

/* 퀴즈 1단계: 환영 */
.quiz-welcome-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pane-dna-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: dna-bounce 3s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 10px rgba(0, 212, 170, 0.4));
}

@keyframes dna-bounce {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-15px) rotate(15deg); }
}

.pane-main-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 15px 0;
}

.pane-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 25px;
}

.welcome-award-info {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 30px;
  width: 100%;
  box-sizing: border-box;
}

.award-badge {
  display: block;
  font-family: var(--text-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-warm);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.award-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
}

.pane-action-btn {
  background: var(--gradient-primary);
  color: #050508;
  border: none;
  border-radius: 30px;
  padding: 16px 48px;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 8px 20px rgba(0, 212, 170, 0.2);
}

.pane-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 212, 170, 0.4);
}

/* 퀴즈 2단계: 플레이 */
.quiz-play-header {
  margin-bottom: 25px;
}

.quiz-progress-text {
  font-family: var(--text-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  display: block;
  margin-bottom: 8px;
}

.quiz-progressbar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
}

.quiz-progressbar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 6px;
  transition: width 0.4s ease;
}

.quiz-question-container {
  margin-bottom: 25px;
  min-height: 64px;
}

.quiz-play-question {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.45;
  color: #ffffff;
  margin: 0;
}

.quiz-options-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.quiz-opt-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--text-main);
  text-align: left;
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.quiz-opt-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

/* 정답/오답 클릭 시 상태 스타일 */
.quiz-opt-btn.correct {
  background: rgba(0, 212, 170, 0.1) !important;
  border-color: var(--accent-primary) !important;
  color: var(--accent-primary) !important;
  box-shadow: 0 0 15px rgba(0, 212, 170, 0.15) !important;
  font-weight: 700;
}

.quiz-opt-btn.wrong {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: var(--accent-danger) !important;
  color: var(--accent-danger) !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.15) !important;
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* 피드백 컴포넌트 */
.quiz-feedback-box {
  background: rgba(0, 212, 170, 0.03);
  border: 1px solid rgba(0, 212, 170, 0.1);
  border-radius: 14px;
  padding: 20px 24px;
  animation: feedback-slide 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@keyframes feedback-slide {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.feedback-status-row {
  display: flex;
}

.feedback-indicator-badge {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.feedback-indicator-badge.correct {
  background: rgba(0, 212, 170, 0.15);
  color: var(--accent-primary);
  border: 1px solid rgba(0, 212, 170, 0.2);
}

.feedback-indicator-badge.wrong {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.feedback-explanation-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.quiz-next-question-btn {
  align-self: flex-end;
  background: var(--gradient-primary);
  border: none;
  border-radius: 30px;
  padding: 10px 24px;
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 700;
  color: #050508;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 6px;
}

.quiz-next-question-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 212, 170, 0.3);
}

/* 퀴즈 3단계: 결과 및 폼 */
.quiz-result-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.result-trophy-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.3));
}

.result-evaluation-title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 8px 0;
}

.result-score-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 24px 0;
}

.result-score-text strong {
  color: var(--accent-primary);
}

.result-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

/* 제출 폼 */
.event-submission-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.form-instruction-badge {
  font-family: var(--text-mono);
  font-size: 0.72rem;
  color: var(--accent-primary);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 16px;
  color: #ffffff;
  font-size: 0.92rem;
  outline: none;
  transition: all 0.3s;
}

.form-input:focus {
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(0, 212, 170, 0.15);
}

.privacy-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 12px 0;
}

.form-checkbox {
  margin-top: 3px;
  cursor: pointer;
  accent-color: var(--accent-primary);
}

.consent-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  cursor: pointer;
}

.submit-event-btn {
  background: var(--gradient-primary);
  color: #050508;
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 8px 16px rgba(0, 212, 170, 0.2);
}

.submit-event-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0, 212, 170, 0.35);
}

/* 퀴즈 4단계: 축하 완료 */
.quiz-success-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
}

.success-check-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(0, 212, 170, 0.1);
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(0, 212, 170, 0.2);
  animation: success-bounce 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes success-bounce {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-main-title {
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0 0 15px 0;
}

.success-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

[data-mode="light"] .quiz-game-dialog {
  color: var(--text-main);
}

[data-mode="light"] .pane-main-title,
[data-mode="light"] .quiz-play-question,
[data-mode="light"] .result-evaluation-title,
[data-mode="light"] .success-main-title {
  color: var(--text-main);
}

[data-mode="light"] .pane-subtitle,
[data-mode="light"] .result-score-text,
[data-mode="light"] .success-desc,
[data-mode="light"] .feedback-explanation-text {
  color: var(--text-muted);
}

[data-mode="light"] .welcome-award-info,
[data-mode="light"] .quiz-feedback-box {
  background: rgba(var(--accent-primary-rgb), 0.06);
  border-color: rgba(var(--accent-primary-rgb), 0.16);
}

[data-mode="light"] .award-text {
  color: var(--text-main);
}

[data-mode="light"] .quiz-progressbar-track {
  background: rgba(15, 23, 42, 0.08);
}

[data-mode="light"] .quiz-opt-btn {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(15, 23, 42, 0.10);
  color: var(--text-main);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

[data-mode="light"] .quiz-opt-btn:hover {
  background: rgba(var(--accent-primary-rgb), 0.08);
  border-color: rgba(var(--accent-primary-rgb), 0.24);
}

[data-mode="light"] .result-divider {
  background: rgba(15, 23, 42, 0.10);
}

[data-mode="light"] .form-input {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 23, 42, 0.14);
  color: var(--text-main);
}

[data-mode="light"] .form-input::placeholder {
  color: rgba(100, 116, 139, 0.82);
}

[data-mode="light"] .form-input:focus {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.12);
}


/* ==========================================================================
   5. 반응형 미디어 및 모바일 시뮬레이터 호환 설계
   ========================================================================== */

/* 
   ⚠️ 중요: 모바일 시뮬레이터(쇼룸 그룹 탭) 내에서는 실제 창 가로폭이 아닌
   부모 컨테이너 `.mixed-main`의 인라인 너비 크기에 대응해야 정상 작동합니다.
   따라서 미디어 쿼리(`@media`) 대신 컨테이너 쿼리(`@container`)를 전적으로 활용합니다.
*/

/* 모바일 뷰 (컨테이너 가로가 768px 이하일 때 발동) */
@container (max-width: 768px) {
  
  .section-container {
    padding: 60px 5% 60px 5%;
  }

  .section-title {
    font-size: 1.8rem;
  }

  /* 🎬 Hero Area */
  .visual-title {
    font-size: 2.2rem;
  }
  .visual-overlay-container {
    padding: 0 6% 60px 6%;
  }
  .visual-desc {
    font-size: 0.98rem;
    margin-bottom: 25px;
  }
  .visual-controllers {
    gap: 15px;
  }

  /* 📊 R&D Pipeline */
  .dashboard-stats-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .stat-card {
    padding: 20px;
  }
  .stat-num {
    font-size: 2.5rem;
  }
  .pipeline-bento-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .pipeline-card {
    padding: 24px;
    gap: 12px;
  }

  /* 🔬 Dept Tour */
  .dept-sticky-layout {
    flex-direction: column;
    gap: 40px;
  }
  .dept-sidebar {
    width: 100%;
    position: relative;
    top: 0;
  }
  .dept-main-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  .dept-scroll-spy {
    display: none; /* 모바일에서는 세로 스크롤 스파이 불필요 */
  }
  .dept-content-flow {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 50px;
    height: auto;
    min-height: 0;
    padding-top: 0;
    overflow: visible;
  }
  .dept-flow-part {
    height: auto;
    overflow: visible;
    padding-right: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }
  .flow-image-wrapper {
    aspect-ratio: 16/10;
    margin-bottom: 26px;
  }
  .part-title {
    font-size: 1.35rem;
  }
  .flow-text-content p {
    font-size: 0.95rem;
  }

  /* 👨‍🔬 Interview */
  .interview-flex-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .interview-card {
    padding: 24px;
  }
  .accordion-question {
    font-size: 0.92rem;
  }

  /* 🏥 CEO Activities */
  .activities-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 🎊 Company Events */
  .events-masonry-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 16px;
  }
  .event-item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    height: 240px;
  }
  .event-card-info {
    padding: 20px;
  }
  .event-title {
    font-size: 1.15rem;
  }

  /* 🎁 Quiz Banner */
  .quiz-glass-banner {
    padding: 30px 24px;
  }
  .quiz-banner-title {
    font-size: 1.5rem;
  }
  .quiz-banner-desc {
    font-size: 0.92rem;
  }
  .quiz-dna-helix {
    display: none; /* 모바일 레이아웃 최적화 */
  }

  /* 📖 Archive Back Number */
  .archive-card-item {
    flex: 0 0 260px;
  }
  .archive-theme {
    font-size: 1.02rem;
  }

  /* 🦶 Footer */
  .footer-main-info {
    flex-direction: column;
    gap: 30px;
  }
  .footer-links-group {
    gap: 40px;
  }
  .footer-legal-panel {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .scientific-seal {
    align-items: flex-start;
  }

  /* 라이트박스 팝업 */
  .lightbox-grid {
    grid-template-columns: 1fr;
  }
  .lightbox-image-container {
    min-height: 250px;
  }
  .lightbox-content {
    padding: 24px;
  }
}

/* 초소형 모바일 기기 (480px 이하) 추가 마이크로 튜닝 */
@container (max-width: 480px) {
  .section-title {
    font-size: 1.6rem;
  }
  .visual-title {
    font-size: 1.8rem;
  }
  .quiz-banner-title {
    font-size: 1.3rem;
  }
  .mono-report-footer {
    padding: 40px 5% 30px 5%;
  }
  .quiz-dialog-card {
    min-height: auto;
  }
  .quiz-step-pane {
    padding: 30px 20px;
  }
}
