@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Outfit:wght@300;400;600;700&display=swap');

/* ==========================================================================
   KNEP ENERGY PULSE (Mixed 데모 5) - style.css
   ========================================================================== */

/* 1. 디자인 시스템 토큰 및 변수 선언 */
:root {
  /* HSL/HEX 혼합 고밀도 플라즈마 에너지 테마 */
  --accent-primary: #ff7043;
  /* 에너지 오렌지 */
  --accent-secondary: #7c4dff;
  /* 플라즈마 퍼플 */
  --accent-core: #ffd54f;
  /* 코어 앰버 (하이라이트 수치/배지) */
  --accent-eco: #00e676;
  /* 에코 그린 (친환경/ESG) */
  --accent-danger: #ff1744;
  /* 위험 레드 */
  --accent-cyan: #00e5ff;
  /* 시안 (차트/데이터) */

  --gradient-primary: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-core) 100%);
  --gradient-plasma: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-danger) 30%, var(--accent-secondary) 70%, var(--accent-cyan) 100%);
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(255, 112, 67, 0.15) 0%, transparent 70%);

  --bg-volcano: #0c0a12;
  /* 볼케이노 다크 (최심부 배경) */
  --bg-section-alt: #120e1e;
  /* 플라즈마 딥 퍼플 */
  --bg-card: rgba(25, 20, 38, 0.6);
  /* 반투명 딥 카드 */

  /* 텍스트 색상 */
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  /* 테두리 및 그림자 */
  --border-energy: rgba(255, 112, 67, 0.12);
  --border-energy-hover: rgba(255, 112, 67, 0.4);
  --border-glass: rgba(255, 255, 255, 0.08);

  --glow-orange: 0 0 20px rgba(255, 112, 67, 0.25);
  --glow-purple: 0 0 20px rgba(124, 77, 255, 0.25);
  --glow-cyan: 0 0 20px rgba(0, 229, 255, 0.25);
  --glow-green: 0 0 20px rgba(0, 230, 118, 0.25);
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.4);

  /* 타이포그래피 */
  --text-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --text-heading: 'Outfit', 'Pretendard', sans-serif;
  --text-body: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* 2. 라이트 모드 오버라이드 시스템 */
[data-mode="light"] {
  --bg-volcano: #fafafa;
  --bg-section-alt: #f5f4f8;
  --bg-card: rgba(255, 255, 255, 0.85);

  --accent-primary: #e64a19;
  /* 라이트 가독성을 위해 한층 더 진한 딥 오렌지 */
  --accent-secondary: #5e35b1;
  /* 딥 퍼플 */
  --accent-core: #ff8f00;
  /* 딥 앰버 */
  --accent-eco: #2e7d32;
  /* 딥 에코 그린 */

  --text-primary: #111827;
  /* 완벽한 폰트 가독성 보장 */
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;

  --border-energy: rgba(230, 74, 25, 0.15);
  --border-energy-hover: rgba(230, 74, 25, 0.6);
  --border-glass: rgba(0, 0, 0, 0.08);

  --glow-orange: 0 8px 24px rgba(230, 74, 25, 0.12);
  --glow-purple: 0 8px 24px rgba(94, 53, 177, 0.12);
  --glow-cyan: 0 8px 24px rgba(0, 172, 193, 0.12);
  --glow-green: 0 8px 24px rgba(46, 125, 50, 0.12);
  --shadow-premium: 0 15px 30px rgba(0, 0, 0, 0.06);
}

/* 2.1 라이트모드 하에서도 어두운 비주얼 배경이 강제 유지되는 영역 텍스트 가독성 확보 */
[data-mode="light"] .v5-hero,
[data-mode="light"] .v5-essay-slider-container {
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border-glass: rgba(255, 255, 255, 0.08);
}

/* 3. 기본 레이아웃 및 리셋 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-volcano);
  color: var(--text-primary);
  font-family: var(--text-body);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 메인 컨테이너 - 모바일 시뮬레이터 대응을 위해 컨테이너 등록 */
.mixed-main {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  container-type: inline-size;
  container-name: mixed-main;
  background-color: var(--bg-volcano);
}

/* 공통 섹션 스타일 */
.v5-section {
  position: relative;
  width: 100%;
  padding: 100px 0;
  overflow: hidden;
  background-color: var(--bg-volcano);
  content-visibility: auto;
  contain-intrinsic-size: 1px 1000px;
}

.v5-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.v5-container.max-width-small {
  max-width: 800px;
}

/* 4. 공통 섹션 타이틀 헤더 */
.v5-section-header {
  margin-bottom: 60px;
  text-align: center;
}

.v5-section-header.align-left {
  text-align: left;
}

.v5-section-tag {
  display: inline-block;
  font-family: var(--text-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-primary);
  text-transform: uppercase;
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(255, 112, 67, 0.15);
}

.v5-section-title {
  font-family: var(--text-heading);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.v5-section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

.v5-section-header.align-left .v5-section-subtitle {
  margin: 0;
}

/* ==========================================
   SECTION 1: Hero Area
   ========================================== */
.v5-hero {
  height: 100vh;
  min-height: 700px;
  padding: 0;
  content-visibility: visible;
  contain: none;
}

.v5-hero-webgl {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.v5-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 100px 60px 60px 60px;
  pointer-events: none;
}

/* 거대 세로 시네마틱 회전 타이포그래피 */
.v5-cinematic-title-container {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center right;
  z-index: 1;
}

.v5-cinematic-title {
  font-family: var(--text-heading);
  font-size: 8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
  user-select: none;
  white-space: nowrap;
  opacity: 0.7;
}

[data-mode="light"] .v5-cinematic-title {
  -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.08);
}

.v5-hero-info {
  margin-top: auto;
  max-width: 600px;
  pointer-events: auto;
}

.v5-hero-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.v5-brand-tag {
  background-color: var(--accent-primary);
  color: #fff;
  font-family: var(--text-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.1em;
}

.v5-brand-vol {
  font-family: var(--text-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.v5-hero-badge {
  display: inline-block;
  font-family: var(--text-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

.v5-hero-title {
  font-family: var(--text-heading);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.v5-hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.v5-hero-slogan {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: auto;
}

.v5-slogan-line {
  font-family: var(--text-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.v5-slogan-sub {
  font-size: 0.8rem;
  font-family: var(--text-mono);
  color: var(--accent-primary);
  letter-spacing: 0.1em;
}

/* 하단 네비게이터 */
.v5-scale-nav-container {
  display: flex;
  align-items: center;
  gap: 16px;
  pointer-events: auto;
}

.v5-scale-marker {
  width: 48px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: background-color 0.4s ease, width 0.4s ease;
  outline: none;
}

.v5-scale-marker.active {
  background-color: var(--accent-primary);
  width: 80px;
}

/* ==========================================
   SECTION 2: Bento Grid (핵심 사업)
   ========================================== */
.v5-bento-area {
  background-color: var(--bg-section-alt);
}

.v5-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 24px;
}

/* 벤토 그리드 명시적 사각형 배치 (100% 빈틈 없는 직사각형 레이아웃 기하학적 완성) */
.v5-bento-grid .v5-bento-card:nth-child(1) {
  /* 원자력 발전 (2x2) */
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}

.v5-bento-grid .v5-bento-card:nth-child(2) {
  /* 핵융합 연구 (1x1) */
  grid-column: 3 / span 1;
  grid-row: 1 / span 1;
}

.v5-bento-grid .v5-bento-card:nth-child(3) {
  /* 신재생에너지 (1x2) */
  grid-column: 3 / span 1;
  grid-row: 2 / span 2;
}

.v5-bento-grid .v5-bento-card:nth-child(4) {
  /* 안전 관리 (1x1) */
  grid-column: 1 / span 1;
  grid-row: 3 / span 1;
}

.v5-bento-grid .v5-bento-card:nth-child(5) {
  /* 폐기물 처리 (1x1) */
  grid-column: 2 / span 1;
  grid-row: 3 / span 1;
}

.v5-bento-card {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border-energy);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.5s ease,
    box-shadow 0.5s ease;
  backdrop-filter: blur(10px);
}

/* 신기술 1: CSS @starting-style 기반 호버 진입 트랜지션 실험 */
@starting-style {
  .v5-bento-card:hover {
    transform: scale(0.98);
  }
}

.v5-bento-card:hover {
  transform: scale(1.02) translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: var(--glow-orange), var(--shadow-premium);
  z-index: 10;
}

.v5-bento-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.15;
  transition: opacity 0.5s ease, transform 0.8s ease;
}

.v5-bento-card:hover .v5-bento-bg-img {
  opacity: 0.3;
  transform: scale(1.05);
}

.v5-bento-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v5-bento-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.v5-bento-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.v5-bento-icon {
  font-size: 2rem;
}

.v5-bento-badge {
  font-family: var(--text-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
}

.v5-bento-badge.core {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}

.v5-bento-badge.eco {
  border-color: var(--accent-eco);
  color: var(--accent-eco);
}

.v5-bento-body h3 {
  font-family: var(--text-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.v5-bento-body p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.v5-bento-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
}

.v5-bento-stat {
  display: flex;
  align-items: baseline;
  margin-top: 16px;
}

.v5-bento-stat .stat-value {
  font-family: var(--text-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1;
  text-shadow: 0 0 15px rgba(255, 112, 67, 0.3);
}

[data-mode="light"] .v5-bento-stat .stat-value {
  text-shadow: none;
}

.v5-bento-stat .stat-unit {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 4px;
}

.v5-bento-footer .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Bento 카드 격자 크기 */
.bento-2x2 {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-2x1 {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-1x2 {
  grid-column: span 1;
  grid-row: span 2;
}

.bento-1x1 {
  grid-column: span 1;
  grid-row: span 1;
}

/* Bento 1x1 소형 카드 레이아웃 전용 조밀도 최적화 (하단 잘림 및 삐져나옴 완전 제거) */
.bento-1x1 .v5-bento-content {
  padding: 22px;
}

.bento-1x1 .v5-bento-header {
  margin-bottom: 8px;
}

.bento-1x1 .v5-bento-body h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.bento-1x1 .v5-bento-body p {
  font-size: 0.85rem;
  line-height: 1.4;
}

.bento-1x1 .v5-bento-stat {
  margin-top: 10px;
}

.bento-1x1 .v5-bento-stat .stat-value {
  font-size: 1.8rem;
}

.bento-1x1 .v5-bento-stat .stat-unit {
  font-size: 0.85rem;
}

/* ==========================================
   SECTION 3: 에너지 믹스 인포그래픽
   ========================================== */
.v5-infographic-area {
  background-color: var(--bg-volcano);
}

.v5-infographic-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.4;
  pointer-events: none;
}

.v5-infographic-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v5-infographic-area .v5-container {
  position: relative;
  z-index: 2;
}

.v5-info-split {
  display: grid;
  grid-template-columns: 4.5fr 5.5fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

/* 신기술 2: conic-gradient + @property (CSS 도넛 차트) */
@property --chart-progress {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.v5-chart-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.v5-chart-container {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 20, 38, 0.4) 0%, rgba(12, 10, 18, 0.9) 100%);
  padding: 10px;
  box-shadow: var(--shadow-premium);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* conic-gradient 색상 조합에 CSS color-mix() 활용 */
.v5-donut-chart {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  /* 스크롤 시 JavaScript로 활성화하여 --chart-progress 각도를 0deg -> 360deg로 애니메이팅 */
  background: conic-gradient(var(--accent-primary) 0deg var(--chart-progress),
      var(--accent-secondary) var(--chart-progress) calc(var(--chart-progress) + 100deg),
      var(--text-muted) calc(var(--chart-progress) + 100deg) calc(var(--chart-progress) + 170deg),
      var(--accent-eco) calc(var(--chart-progress) + 170deg) calc(var(--chart-progress) + 225deg),
      var(--accent-core) calc(var(--chart-progress) + 225deg) 360deg);
  position: relative;
  transition: --chart-progress 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.v5-donut-hole {
  position: absolute;
  top: 30px;
  left: 30px;
  right: 30px;
  bottom: 30px;
  border-radius: 50%;
  background-color: var(--bg-volcano);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.v5-donut-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.donut-number {
  font-family: var(--text-mono);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1;
  text-shadow: 0 0 15px rgba(255, 112, 67, 0.3);
}

.donut-percent {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.donut-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
}

.v5-chart-legend {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot.orange {
  background-color: var(--accent-primary);
}

.legend-dot.purple {
  background-color: var(--accent-secondary);
}

.legend-dot.slate {
  background-color: var(--text-muted);
}

.legend-dot.green {
  background-color: var(--accent-eco);
}

.legend-dot.amber {
  background-color: var(--accent-core);
}

/* 우측 수평 막대 그래프 */
.v5-chart-right {
  background-color: var(--bg-card);
  border: 1px solid var(--border-energy);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-premium);
  backdrop-filter: blur(15px);
}

.chart-box-title {
  font-family: var(--text-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text-primary);
}

.v5-bar-graph {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bar-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.bar-year {
  font-weight: 600;
  color: var(--text-secondary);
}

.bar-val {
  font-family: var(--text-mono);
  font-weight: 700;
  color: var(--text-primary);
}

.bar-val.font-accent {
  color: var(--accent-primary);
}

.bar-track {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

[data-mode="light"] .bar-track {
  background-color: rgba(0, 0, 0, 0.08);
}

.bar-fill {
  height: 100%;
  width: 0;
  /* JS 또는 scroll reveal 시 --bar-w 크기로 확장 */
  background-color: var(--accent-secondary);
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: calc(var(--delay) * 150ms);
}

.bar-fill.accent {
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
  box-shadow: 0 0 10px rgba(255, 112, 67, 0.3);
}

/* KPI 미니 카드 */
.v5-mini-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.kpi-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-energy);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.kpi-card .kpi-num {
  font-family: var(--text-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.kpi-card .kpi-unit {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 2px;
}

.kpi-card .kpi-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ==========================================
   SECTION 4: 안전 문화 (Carousel)
   ========================================== */
.v5-safety-area {
  background-color: var(--bg-section-alt);
}

.v5-safety-carousel-container {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-energy);
  box-shadow: var(--shadow-premium);
}

.v5-safety-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.v5-safety-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  z-index: 1;
}

.v5-safety-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.v5-safety-img {
  width: 100%;
  height: 100%;
}

.v5-safety-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 6s ease;
}

.v5-safety-slide.active .v5-safety-img img {
  transform: scale(1.05);
}

/* 신기술 3: View Transitions API 기반 슬라이드 연출을 위한 CSS */
::view-transition-old(safety-slide),
::view-transition-new(safety-slide) {
  animation-duration: 0.6s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.v5-safety-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 80px 60px 60px 60px;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 10, 18, 0.95) 100%);
  z-index: 2;
}

[data-mode="light"] .v5-safety-overlay {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.95) 100%);
}

.v5-safety-content {
  max-width: 800px;
}

.v5-safety-content .slide-num {
  font-family: var(--text-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 12px;
  display: block;
}

.v5-safety-content h3 {
  font-family: var(--text-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.v5-safety-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 컨트롤러 */
.v5-safety-controls {
  position: absolute;
  bottom: 60px;
  right: 60px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
}

.v5-safety-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(25, 20, 38, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background-color 0.3s, border-color 0.3s, transform 0.3s;
  backdrop-filter: blur(5px);
}

.v5-safety-btn:hover {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: scale(1.1);
}

.v5-safety-btn::before {
  content: '';
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  display: block;
}

.btn-prev::before {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.btn-next::before {
  transform: rotate(45deg) translate(-1px, -1px);
}

.v5-safety-indicator {
  display: flex;
  gap: 8px;
}

.v5-safety-indicator .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: width 0.3s, background-color 0.3s;
}

.v5-safety-indicator .dot.active {
  width: 24px;
  border-radius: 4px;
  background-color: var(--accent-primary);
}

[data-mode="light"] .v5-safety-btn {
  border-color: rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.5);
  color: #000;
}

[data-mode="light"] .v5-safety-btn::before {
  border-color: #333;
}

[data-mode="light"] .v5-safety-btn:hover::before {
  border-color: #fff;
}

[data-mode="light"] .v5-safety-indicator .dot {
  background-color: rgba(0, 0, 0, 0.15);
}

[data-mode="light"] .v5-safety-indicator .dot.active {
  background-color: var(--accent-primary);
}

/* ==========================================
   SECTION 5: 포토 에세이 (Scroll SNAP)
   ========================================== */
.v5-essay-area {
  padding: 80px 0 0 0;
  background-color: var(--bg-volcano);
}

/* 슬라이더 가로 레이아웃 (이전/다음 이미지가 완전히 이어진 60fps GPU 가속 띠 구조) */
.v5-essay-slider-container {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 550px;
  overflow: hidden;
}

.v5-essay-slider-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  /* 세로 꺾임 절대 방지 */
  width: 400%;
  height: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  /* 3D 하드웨어 가속 */
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.v5-essay-page {
  position: relative;
  flex: 0 0 25%;
  /* 축소/팽창 차단, 가로폭 25% 완전 고정 */
  width: 25%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 80px;
  opacity: 1;
}

.v5-essay-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 각 에세이 페이지 배경 이미지가 활성화 시 은은하게 줌인되는 서사적 모션 */
.v5-essay-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 3.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.v5-essay-page.active .v5-essay-bg img {
  transform: scale(1.08);
}

.v5-essay-caption {
  position: relative;
  z-index: 2;
  background-color: rgba(12, 10, 18, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 40px;
  max-width: 600px;
  transform: none;
  opacity: 1;
  box-shadow: var(--shadow-premium);
}

.essay-tag {
  font-family: var(--text-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 8px;
  display: block;
  letter-spacing: 0.1em;
}

.v5-essay-caption h3 {
  font-family: var(--text-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.v5-essay-caption p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 우측 상단 수직 프로그레스 인디케이터 (2배 크기 확장 및 현재 위치 단독 주황색 램프 점등형) */
.v5-essay-progress-wrapper {
  position: absolute;
  top: 80px;
  right: 80px;
  z-index: 10;
  display: flex;
  align-items: center;
  pointer-events: none;
}

/* 기존 선형 프로그레스 트랙은 감추고 개별 램프 레일로 대체 */
.v5-essay-progress-wrapper .progress-track {
  display: none;
}

.v5-essay-progress-wrapper .progress-numbers {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 280px;
  /* 세로 공간 최적화 */
  position: relative;
  padding-left: 28px;
  font-family: 'Orbitron', 'Outfit', sans-serif;
  color: var(--text-muted);
}

/* 마그네틱 슬라이딩 네온 셔틀 바 */
.v5-essay-progress-wrapper .progress-numbers::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  width: 4px;
  height: 30px;
  /* span의 line-height 영역 높이와 완벽 동치 */
  border-radius: 2px;
  background-color: var(--accent-primary);
  box-shadow: 0 0 15px var(--accent-primary), 0 0 5px var(--accent-primary);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 3;
}

/* CSS :has() 기반 동적 마그네틱 Y축 셔틀 이동 제어 */
.v5-essay-progress-wrapper .progress-numbers:has(span:nth-child(1).active)::before {
  transform: translateY(0px);
}

.v5-essay-progress-wrapper .progress-numbers:has(span:nth-child(2).active)::before {
  transform: translateY(83.3px);
}

.v5-essay-progress-wrapper .progress-numbers:has(span:nth-child(3).active)::before {
  transform: translateY(166.6px);
}

.v5-essay-progress-wrapper .progress-numbers:has(span:nth-child(4).active)::before {
  transform: translateY(250px);
}

/* 세로 가이드 레일 베이스 회로 라인 */
.v5-essay-progress-wrapper .progress-numbers::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.05);
  z-index: 1;
  pointer-events: none;
}

.v5-essay-progress-wrapper .progress-numbers span {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  /* 슬릭하고 섬세한 텍스트 크기 */
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.4s, transform 0.4s, text-shadow 0.4s;
  z-index: 2;
}

/* 현재 활성화된 슬라이드 번호 스타일링 (주황색 글로우 및 마그네틱 팝아웃 효과) */
.v5-essay-progress-wrapper .progress-numbers span.active {
  color: var(--accent-primary);
  font-weight: 700;
  transform: translateX(8px);
  /* 셔틀 안착 시 부드럽게 마그네틱 팝업 */
  text-shadow: 0 0 10px rgba(255, 112, 67, 0.3);
}

/* ==========================================
   SECTION 6: 이사장 동정 (Z-pattern)
   ========================================== */
.v5-chairman-area {
  background-color: var(--bg-section-alt);
}

.v5-chairman-timeline {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 60px;
}

.v5-chairman-block {
  display: flex;
  align-items: center;
  gap: 60px;
}

.v5-chairman-block.reverse {
  flex-direction: row;
}

.block-image {
  flex: 0 0 60%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-energy);
  box-shadow: var(--shadow-premium);
}

.block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.v5-chairman-block:hover .block-image img {
  transform: scale(1.03);
}

.block-text {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
}

.block-num {
  font-family: var(--text-mono);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent-primary);
  margin-bottom: 12px;
  opacity: 0.4;
}

.block-date {
  font-family: var(--text-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.block-place {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.block-text h3 {
  font-family: var(--text-heading);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.block-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================
   SECTION 7: 직원 표창 (3D Flip Card)
   ========================================== */
.v5-awards-area {
  background-color: var(--bg-volcano);
}

.v5-awards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}

/* CSS 3D 플립 구조 */
.v5-flip-card {
  perspective: 1000px;
  height: 420px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  cursor: pointer;
}

.v5-flip-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
  border: 1px solid var(--border-energy);
  background-color: var(--bg-card);
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

/* 카드 종류별 네온 박스 섀도우 글로우 */
.v5-flip-card.style-orange:hover .card-front,
.v5-flip-card.style-orange:hover .card-back {
  border-color: var(--accent-primary);
  box-shadow: var(--glow-orange), var(--shadow-premium);
}

.v5-flip-card.style-purple:hover .card-front,
.v5-flip-card.style-purple:hover .card-back {
  border-color: var(--accent-secondary);
  box-shadow: var(--glow-purple), var(--shadow-premium);
}

.v5-flip-card.style-green:hover .card-front,
.v5-flip-card.style-green:hover .card-back {
  border-color: var(--accent-eco);
  box-shadow: var(--glow-green), var(--shadow-premium);
}

.v5-flip-card.style-cyan:hover .card-front,
.v5-flip-card.style-cyan:hover .card-back {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan), var(--shadow-premium);
}

/* 앞면 상세 */
.card-photo {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background-color: #1a1824;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.card-front .card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: rgba(12, 10, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  color: #fff;
  backdrop-filter: blur(5px);
}

.card-info {
  padding: 24px;
  text-align: left;
  margin-top: auto;
}

.card-info h3 {
  font-family: var(--text-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-dept {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* 뒷면 상세 */
.card-back {
  transform: rotateY(180deg);
  padding: 32px 24px;
  text-align: left;
  justify-content: space-between;
}

.back-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.back-icon {
  font-size: 1.5rem;
}

.back-header h4 {
  font-family: var(--text-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.back-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.back-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-glass);
  padding-top: 12px;
}

.award-date {
  font-family: var(--text-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================
   SECTION 8: 이벤트 응모 (Glassmorphism Form)
   ========================================== */
.v5-event-area {
  background-color: var(--bg-section-alt);
}

.v5-event-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3;
  pointer-events: none;
}

.v5-event-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v5-event-area .v5-container {
  position: relative;
  z-index: 2;
}

/* 글래스모피즘 단일 폼 카드 */
.v5-event-form-card {
  background-color: rgba(20, 16, 30, 0.4);
  border: 1px solid rgba(255, 112, 67, 0.15);
  border-radius: 24px;
  padding: 48px;
  backdrop-filter: blur(25px);
  box-shadow: var(--shadow-premium);
}

[data-mode="light"] .v5-event-form-card {
  background-color: rgba(255, 255, 255, 0.75);
  border-color: rgba(230, 74, 25, 0.2);
}

.form-card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 24px;
}

.form-icon {
  font-size: 2.2rem;
}

.form-title-group h3 {
  font-family: var(--text-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.form-title-group p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* 인풋 그룹 및 Floating label */
.v5-entry-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  position: relative;
  width: 100%;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background-color: rgba(12, 10, 18, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 18px 16px;
  color: #fff;
  font-family: var(--text-body);
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

[data-mode="light"] .form-group input,
[data-mode="light"] .form-group textarea {
  background-color: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
  color: #000;
}

.form-group textarea {
  resize: none;
}

/* Material Design floating label */
.form-group.floating-label label {
  position: absolute;
  top: 18px;
  left: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition: transform 0.3s ease, font-size 0.3s ease, color 0.3s ease;
  transform-origin: left top;
}

/* 포커스 되거나 플레이스홀더가 사라지면 위로 상향 이동 */
.form-group.floating-label input:focus~label,
.form-group.floating-label input:not(:placeholder-shown)~label,
.form-group.floating-label textarea:focus~label,
.form-group.floating-label textarea:not(:placeholder-shown)~label {
  transform: translateY(-34px) scale(0.85);
  color: var(--accent-primary);
  font-weight: 600;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(255, 112, 67, 0.2);
}

/* 실시간 유효성 에러 메시지 */
.error-msg {
  display: none;
  color: var(--accent-danger);
  font-size: 0.75rem;
  margin-top: 4px;
  margin-left: 4px;
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: var(--accent-danger);
}

.form-group.has-error .error-msg {
  display: block;
}

.text-counter {
  position: absolute;
  bottom: -22px;
  right: 4px;
  font-family: var(--text-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 동의 체크박스 */
.form-check-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0;
}

.form-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.check-mark {
  height: 18px;
  width: 18px;
  background-color: rgba(12, 10, 18, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  margin-right: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, border-color 0.3s;
}

[data-mode="light"] .check-mark {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
}

.form-checkbox:hover input~.check-mark {
  border-color: var(--accent-primary);
}

.form-checkbox input:checked~.check-mark {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.check-mark::after {
  content: "";
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  display: none;
  margin-bottom: 2px;
}

.form-checkbox input:checked~.check-mark::after {
  display: block;
}

.check-text {
  line-height: 1;
}

/* 제출 버튼 */
.form-submit-row {
  margin-top: 10px;
}

.v5-form-btn {
  position: relative;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
  border: none;
  border-radius: 12px;
  padding: 18px;
  color: #fff;
  font-family: var(--text-body);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(255, 112, 67, 0.2);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.v5-form-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(255, 112, 67, 0.35);
}

.v5-form-btn:active {
  transform: translateY(1px);
}

.btn-glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.form-card-prize {
  margin-top: 40px;
  border-top: 1px solid var(--border-glass);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.prize-item {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* 성공화면 렌더링용 스타일 */
.v5-form-success {
  text-align: center;
  padding: 40px 20px;
  animation: scale-up-success 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes scale-up-success {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-icon-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(0, 230, 118, 0.15);
  border: 2px solid var(--accent-eco);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  font-size: 2.5rem;
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.3);
}

.v5-form-success h3 {
  font-family: var(--text-heading);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--accent-eco);
}

.v5-form-success p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================
   SECTION 9: 오늘의 명언
   ========================================== */
.v5-quote-area {
  padding: 160px 0;
  background-color: var(--bg-volcano);
}

/* 플라즈마 애니메이션 동심원 백그라운드 */
.v5-plasma-background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  z-index: 1;
  pointer-events: none;
}

.plasma-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(255, 112, 67, 0.05);
  /* color-mix() 기반 유기적 보더 매칭 */
  border-color: color-mix(in oklch, var(--accent-primary), var(--accent-secondary) 50%);
  transform: scale(0);
  opacity: 0;
  animation: expand-ring 8s infinite linear;
}

.circle-1 {
  animation-delay: 0s;
}

.circle-2 {
  animation-delay: 2.6s;
}

.circle-3 {
  animation-delay: 5.3s;
}

@keyframes expand-ring {
  0% {
    transform: scale(0.1);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  80% {
    opacity: 0.2;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.v5-quote-carousel-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
}

.v5-quote-carousel-wrapper .quote-icon {
  font-size: 5rem;
  font-family: Georgia, serif;
  color: var(--accent-primary);
  line-height: 1;
  opacity: 0.15;
  margin-bottom: -15px;
}

.v5-quote-track {
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v5-quote-item {
  position: absolute;
  width: 100%;
  opacity: 0;
  transform: scale(0.95);
  visibility: hidden;
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
}

.v5-quote-item.active {
  position: relative;
  opacity: 1;
  transform: scale(1);
  visibility: visible;
}

/* 네온 글로우 타이포그래피 */
.v5-quote-text {
  font-family: var(--text-heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-primary);
  margin-bottom: 24px;
  /* 거대 오렌지 네온 텍스트 글로우 */
  text-shadow: 0 0 10px rgba(255, 112, 67, 0.4),
    0 0 30px rgba(255, 112, 67, 0.15);
}

[data-mode="light"] .v5-quote-text {
  text-shadow: none;
}

.v5-quote-cite {
  font-family: var(--text-mono);
  font-size: 0.9rem;
  color: var(--accent-core);
  letter-spacing: 0.1em;
  font-style: normal;
  text-transform: uppercase;
}

.v5-quote-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.v5-quote-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

[data-mode="light"] .v5-quote-dots .dot {
  background-color: rgba(0, 0, 0, 0.15);
}

.v5-quote-dots .dot.active {
  background-color: var(--accent-primary);
  transform: scale(1.3);
}

/* ==========================================
   SECTION 10: 지난 호 보기 (Horizontal Drag)
   ========================================== */
.v5-archive-area {
  background-color: var(--bg-section-alt);
}

.v5-archive-drag-wrapper {
  position: relative;
  width: 100%;
  overflow-x: hidden;
  cursor: grab;
  margin-top: 40px;
  padding: 20px 0;
  user-select: none;
}

.v5-archive-drag-wrapper:active {
  cursor: grabbing;
}

.v5-archive-strip {
  display: flex;
  gap: 32px;
  width: max-content;
  will-change: transform;
}

/* 백넘버 카드 */
.v5-archive-card {
  width: 280px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-energy);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  transition: border-color 0.5s ease, box-shadow 0.5s ease, transform 0.5s ease;
}

/* 신기술 5: @starting-style 기반 드래그 카드 호버 진입 트랜지션 실험 */
@starting-style {
  .v5-archive-card:hover {
    transform: scale(0.98);
  }
}

.v5-archive-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
}

.v5-archive-card.style-orange:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--glow-orange), var(--shadow-premium);
}

.v5-archive-card.style-purple:hover {
  border-color: var(--accent-secondary);
  box-shadow: var(--glow-purple), var(--shadow-premium);
}

.v5-archive-card.style-cyan:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan), var(--shadow-premium);
}

.v5-archive-card.style-green:hover {
  border-color: var(--accent-eco);
  box-shadow: var(--glow-green), var(--shadow-premium);
}

.v5-archive-card.style-amber:hover {
  border-color: var(--accent-core);
  box-shadow: var(--glow-orange), var(--shadow-premium);
}

.v5-archive-card.style-danger:hover {
  border-color: var(--accent-danger);
  box-shadow: 0 0 20px rgba(255, 23, 68, 0.25), var(--shadow-premium);
}

.archive-cover {
  position: relative;
  width: 100%;
  height: 340px;
  background-color: rgba(12, 10, 18, 0.8);
  overflow: hidden;
  border-bottom: 1px solid var(--border-glass);
}

.archive-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.v5-archive-card:hover .archive-cover img {
  transform: scale(1.04);
}

.archive-cover-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: var(--accent-primary);
  color: #fff;
  font-family: var(--text-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  box-shadow: 0 0 10px rgba(255, 112, 67, 0.3);
}

.archive-details {
  padding: 24px;
}

.issue-vol {
  font-family: var(--text-mono);
  font-size: 0.8rem;
  color: var(--accent-primary);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.v5-archive-card.style-purple .issue-vol {
  color: var(--accent-secondary);
}

.v5-archive-card.style-cyan .issue-vol {
  color: var(--accent-cyan);
}

.v5-archive-card.style-green .issue-vol {
  color: var(--accent-eco);
}

.v5-archive-card.style-amber .issue-vol {
  color: var(--accent-core);
}

.v5-archive-card.style-danger .issue-vol {
  color: var(--accent-danger);
}

.archive-details h4 {
  font-family: var(--text-heading);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.archive-details p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 수평 스크롤 프로그레스 바 */
.v5-archive-scroll-indicator {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.drag-guide {
  font-family: var(--text-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.indicator-track {
  width: 240px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  position: relative;
}

[data-mode="light"] .indicator-track {
  background-color: rgba(0, 0, 0, 0.08);
}

.indicator-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  /* 드래그 위치에 연동 */
  height: 100%;
  background-color: var(--accent-primary);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-primary);
}

/* ==========================================
   SECTION 11: Footer (Energy Wave Decor)
   ========================================== */
.v5-footer {
  position: relative;
  width: 100%;
  background-color: #06050a;
  border-top: 1px solid var(--border-energy);
  padding: 100px 0 40px 0;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 1px 400px;
}

/* 물결/파동 라인 데코레이션 */
.v5-footer-wave-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150px;
  pointer-events: none;
  opacity: 0.08;
}

.footer-wave-line {
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  border-radius: 40%;
  background-color: var(--accent-primary);
  animation: footer-wave 12s infinite linear;
}

.wave-1 {
  animation-duration: 12s;
  background-color: var(--accent-primary);
}

.wave-2 {
  animation-duration: 18s;
  background-color: var(--accent-secondary);
  opacity: 0.6;
  top: 10px;
}

.wave-3 {
  animation-duration: 25s;
  background-color: var(--accent-cyan);
  opacity: 0.3;
  top: 20px;
}

@keyframes footer-wave {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.v5-footer-top {
  display: grid;
  grid-template-columns: 4fr 3fr 5fr;
  gap: 60px;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 60px;
}

.footer-brand-box {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--text-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.footer-logo .logo-symbol {
  color: var(--accent-primary);
}

.brand-sub-title {
  font-size: 0.85rem;
  font-family: var(--text-mono);
  color: var(--text-secondary);
  margin-bottom: 16px;
  letter-spacing: 0.15em;
}

.brand-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-links-box h4,
.footer-contact-box h4 {
  font-family: var(--text-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}

[data-mode="light"] .footer-logo,
[data-mode="light"] .footer-links-box h4,
[data-mode="light"] .footer-contact-box h4 {
  color: #919191;
}

.footer-links-box ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.footer-links-box ul a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links-box ul a:hover {
  color: var(--accent-primary);
}

.footer-contact-box {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-box strong {
  color: var(--text-primary);
}

.footer-cert-badges {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.cert-badge {
  font-size: 0.75rem;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 4px 10px;
  border-radius: 4px;
}

[data-mode="light"] .cert-badge {
  background-color: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

.v5-footer-bottom {
  display: flex;
  flex-direction: column;
}

.copyright-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: var(--accent-primary);
}

/* ==========================================
   5. 반응형 미디어 쿼리 (CSS @container 활용)
   ========================================== */

/* 5.1 타겟 모바일 시뮬레이터 크기 (너비 768px 이하) */
@container mixed-main (max-width: 768px) {
  .v5-section {
    padding: 60px 0;
  }

  .v5-container {
    padding: 0 20px;
  }

  .v5-section-title {
    font-size: 2rem;
  }

  .v5-section-subtitle {
    font-size: 0.95rem;
  }

  /* 히어로 영역 */
  .v5-hero-title {
    font-size: 2.2rem;
  }

  .v5-hero-desc {
    font-size: 0.9rem;
  }

  .v5-cinematic-title-container {
    display: none;
    /* 모바일에서 거대 텍스트 숨김 */
  }

  /* 벤토 그리드 */
  .v5-bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 16px;
  }

  /* 데스크톱용 명시적 배치 초기화 (중요) */
  .v5-bento-grid .v5-bento-card:nth-child(1),
  .v5-bento-grid .v5-bento-card:nth-child(2),
  .v5-bento-grid .v5-bento-card:nth-child(3),
  .v5-bento-grid .v5-bento-card:nth-child(4),
  .v5-bento-grid .v5-bento-card:nth-child(5) {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .bento-2x2,
  .bento-2x1,
  .bento-1x2,
  .bento-1x1 {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    height: auto;
    min-height: 240px;
  }

  /* 인포그래픽 */
  .v5-info-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .v5-mini-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* 안전 문화 */
  .v5-safety-carousel-container {
    height: 50vh;
  }

  .v5-safety-overlay {
    padding: 40px 24px;
  }

  .v5-safety-content h3 {
    font-size: 1.4rem;
  }

  .v5-safety-content p {
    font-size: 0.9rem;
  }

  .v5-safety-controls {
    right: 20px;
    bottom: 30px;
    gap: 12px;
  }

  /* 포토 에세이 */
  .v5-essay-intro {
    padding-bottom: 20px;
  }

  .v5-essay-page {
    padding: 40px 24px;
  }

  .v5-essay-caption {
    padding: 24px;
  }

  .v5-essay-caption h3 {
    font-size: 1.3rem;
  }

  .v5-essay-caption p {
    font-size: 0.85rem;
  }

  .v5-essay-progress-wrapper {
    right: 20px;
  }

  /* 이사장 동정 */
  .v5-chairman-timeline {
    gap: 40px;
  }

  .v5-chairman-block,
  .v5-chairman-block.reverse {
    flex-direction: column;
    gap: 20px;
  }

  .block-image {
    flex: 0 0 100%;
    width: 100%;
    height: 250px;
  }

  .block-text {
    flex: 0 0 100%;
    width: 100%;
  }

  .block-text h3 {
    font-size: 1.3rem;
  }

  /* 직원 표창 */
  .v5-awards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .v5-flip-card {
    height: 380px;
  }

  .card-photo {
    height: 200px;
  }

  /* 이벤트 응모 */
  .v5-event-form-card {
    padding: 24px;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .form-card-prize {
    flex-direction: column;
    gap: 12px;
  }

  /* 명언 */
  .v5-quote-text {
    font-size: 1.5rem;
  }

  /* 푸터 */
  .v5-footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .copyright-group {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* 5.2 모바일 시뮬레이터 한정 390px 폭 (cqw 단위 폰트 크기 세팅) */
@container mixed-main (max-width: 390px) {
  .v5-section-title {
    font-size: 7.5cqw;
  }

  .v5-hero-title {
    font-size: 8.5cqw;
  }

  .v5-awards-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   6. prefers-reduced-motion 대응 (접근성)
   ========================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-delay: 0s !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }

  .v5-plasma-background,
  .v5-footer-wave-container {
    display: none !important;
  }

  .v5-bento-card:hover,
  .v5-archive-card:hover {
    transform: none !important;
  }
}