/* ========================================================
   KORAIL VELOCITY - style.css
   철도·교통 웹진 데모 7 전용 스타일시트 (CSS Nesting, 평탄화 적용)
   ======================================================== */

:root {
  --accent-primary: #f59e0b;      /* 시그널 앰버 (주요 인터랙션) */
  --accent-secondary: #06b6d4;    /* 레일 시안 (보조 하이라이트) */
  --accent-eco: #10b981;          /* 에코 그린 (친환경/ESG) */
  --accent-signal: #ef4444;       /* 시그널 레드 (강조/경보) */
  --accent-neon: #fbbf24;         /* 네온 옐로우 (글로우용) */
  
  --bg-dark: #070a0f;             /* 철로 딥 블랙 */
  --bg-section-alt: #0d1520;      /* 딥 네이비 */
  --text-mono: 'JetBrains Mono', monospace;
  --text-heading: 'Outfit', sans-serif;
  
  --border-rail: rgba(245, 158, 11, 0.12);
  --border-glass: rgba(255, 255, 255, 0.05);
  --bg-glass: rgba(13, 21, 32, 0.7);
  --shadow-glow: 0 0 20px rgba(245, 158, 11, 0.2);
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-mode="light"] {
  --bg-dark: #f8fafc;
  --bg-section-alt: #f1f5f9;
  --border-rail: rgba(217, 119, 6, 0.12);
  --border-glass: rgba(0, 0, 0, 0.08);
  --bg-glass: rgba(255, 255, 255, 0.8);
  --shadow-glow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-color, #f3f4f6);
  font-family: 'Pretendard', sans-serif;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

[data-mode="light"] body {
  --text-color: #1e293b;
}

/* 스크롤바 디자인 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--border-rail);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

.mixed-main {
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
  position: relative;
}

.section-header {
  margin-bottom: 60px;
  max-width: 700px;
}

.section-header.center-align {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  font-family: var(--text-mono);
  color: var(--accent-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-left: 2px solid var(--accent-primary);
}

.section-title {
  font-family: var(--text-heading);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: #ffffff;
}

[data-mode="light"] .section-title {
  color: #0f172a;
}

.section-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #94a3b8;
}

[data-mode="light"] .section-desc {
  color: #64748b;
}

.keep-all {
  word-break: keep-all;
}

/* 1. HERO AREA */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #020406;
}

.hero-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.rail-frame-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.rail-frame-overlay .frame-line {
  position: absolute;
  left: 5%;
  width: 90%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-rail), transparent);
}

.rail-frame-overlay .frame-line.top { top: 12%; }
.rail-frame-overlay .frame-line.bottom { bottom: 12%; }

.visual-overlay-container {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 15%;
  bottom: 15%;
  z-index: 3;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.v7-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.v7-badge {
  font-family: var(--text-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: #ffffff;
  background: rgba(255,255,255,0.06);
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(5px);
}

.v7-counter {
  font-family: var(--text-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-primary);
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.v7-title-block {
  margin-top: auto;
  margin-bottom: auto;
  max-width: 70%;
}

.v7-title-line {
  font-family: var(--text-heading);
  font-size: 84px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -2px;
  color: #ffffff;
  text-transform: uppercase;
  overflow: hidden;
}

.v7-title-line.accent {
  color: var(--accent-primary);
  text-shadow: 0 0 30px rgba(245, 158, 11, 0.35);
}

.v7-char {
  display: inline-block;
}

.v7-catchphrase {
  margin-top: 24px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  word-break: keep-all;
}

.v7-vertical-tag {
  position: absolute;
  right: 0;
  top: 35%;
  transform: rotate(90deg) translateX(50%);
  transform-origin: right center;
  font-family: var(--text-mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}

.v7-speed-gauge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
}

.v7-speed-label {
  font-family: var(--text-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

.v7-speed-num-wrapper {
  display: flex;
  align-items: baseline;
}

.v7-speed-value {
  font-family: var(--text-mono);
  font-size: 56px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -2px;
  text-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.v7-speed-unit {
  font-family: var(--text-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-primary);
  margin-left: 8px;
}

.v7-nav-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}

.v7-divider-line {
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-rail), transparent);
  margin-right: 40px;
}

.v7-nav-dots {
  display: flex;
  gap: 12px;
}

.v7-nav-dot {
  width: 28px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.15);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.v7-nav-dot.active {
  background: var(--accent-primary);
  width: 48px;
  box-shadow: 0 0 10px var(--accent-primary);
}

/* 2. LINE NEWS */
.news-section {
  background-color: var(--bg-dark);
}

.filter-tab-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 60px;
}

.filter-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: #94a3b8;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

[data-mode="light"] .filter-btn {
  color: #475569;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.news-card {
  display: flex;
  gap: 48px;
  align-items: center;
  position: relative;
}

.news-card.reverse {
  flex-direction: row-reverse;
}

.news-image-area {
  width: 55%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

[data-mode="light"] .news-image-area {
  box-shadow: 0 15px 30px rgba(0,0,0,0.06);
}

.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.news-card:hover .news-image {
  transform: scale(1.03);
}

.news-cat-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(7, 10, 15, 0.85);
  border: 1px solid var(--border-glass);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  backdrop-filter: blur(5px);
}

.news-content {
  width: 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-num {
  font-family: var(--text-mono);
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.03);
  margin-bottom: -15px;
  transition: var(--transition-smooth);
}

[data-mode="light"] .news-num {
  color: rgba(0, 0, 0, 0.03);
}

.news-card:hover .news-num {
  color: rgba(245, 158, 11, 0.08);
}

.news-meta {
  display: flex;
  gap: 16px;
  font-family: var(--text-mono);
  font-size: 13px;
  color: var(--accent-secondary);
  margin-bottom: 12px;
}

.news-card-title {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.3;
}

[data-mode="light"] .news-card-title {
  color: #0f172a;
}

.news-card-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #94a3b8;
}

[data-mode="light"] .news-card-desc {
  color: #475569;
}

/* 3. ROUTE INFOGRAPHIC */
.infographic-section {
  background-color: var(--bg-section-alt);
  border-top: 1px solid var(--border-rail);
  border-bottom: 1px solid var(--border-rail);
}

.infographic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  margin-bottom: 60px;
}

.route-media-container {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 16px;
  position: relative;
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(10px);
  overflow: hidden;
  height: 100%;
  min-height: 440px;
  display: flex;
  flex-direction: column;
}

.route-media-viewer {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px dashed rgba(245, 158, 11, 0.2);
  background: rgba(7, 10, 15, 0.3);
}

[data-mode="light"] .route-media-viewer {
  border-color: rgba(217, 119, 6, 0.25);
  background: rgba(255, 255, 255, 0.2);
}

.route-media-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1;
}

.route-media-item.active {
  opacity: 0.7;
  transform: scale(1);
  z-index: 2;
}

[data-mode="light"] .route-media-item.active {
  opacity: 0.95;
}

/* 플레이스홀더 */
.route-media-viewer .no-image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.route-media-viewer .no-image-placeholder.active {
  opacity: 1;
  z-index: 2;
}

/* 테크니컬 디자인 오버레이 */
.viewer-technical-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.tech-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent-primary);
}

.tech-corner.top-left { top: 24px; left: 24px; border-right: none; border-bottom: none; }
.tech-corner.top-right { top: 24px; right: 24px; border-left: none; border-bottom: none; }
.tech-corner.bottom-left { bottom: 24px; left: 24px; border-right: none; border-top: none; }
.tech-corner.bottom-right { bottom: 24px; right: 24px; border-left: none; border-top: none; }

.tech-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  );
  background-size: 100% 4px;
  opacity: 0.15;
}

.tech-status-badge {
  position: absolute;
  bottom: 28px;
  left: 28px;
  font-family: var(--text-mono);
  font-size: 10px;
  color: var(--accent-primary);
  background: rgba(7, 10, 15, 0.85);
  border: 1px solid var(--border-glass);
  padding: 4px 8px;
  border-radius: 3px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tech-status-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--accent-eco);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

.kpi-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.kpi-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  padding: 30px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.kpi-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.kpi-card.border-amber { border-bottom: 3px solid var(--accent-primary); }
.kpi-card.border-cyan { border-bottom: 3px solid var(--accent-secondary); }
.kpi-card.border-green { border-bottom: 3px solid var(--accent-eco); }
.kpi-card.border-neon { border-bottom: 3px solid var(--accent-neon); }

.kpi-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.kpi-num {
  font-family: var(--text-mono);
  font-size: 40px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -1px;
}

[data-mode="light"] .kpi-num {
  color: #0f172a;
}

.kpi-unit {
  font-size: 16px;
  font-weight: 600;
  color: #94a3b8;
  margin-left: 4px;
}

.kpi-label {
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
  margin-top: 10px;
  margin-bottom: 4px;
}

[data-mode="light"] .kpi-label {
  color: #334155;
}

.kpi-meta {
  font-size: 12px;
  color: #64748b;
}

.route-tab-info {
  width: 100%;
  margin-top: 60px;
}

.route-info-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #64748b;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-right: 12px;
  transition: var(--transition-smooth);
}

[data-mode="light"] .route-info-tab {
  color: #64748b;
}

.route-info-tab.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.route-info-content-box {
  margin-top: 24px;
  background: var(--bg-dark);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 30px;
}

.route-detail-pane {
  display: none;
}

.route-detail-pane.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

.route-detail-pane h4 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

[data-mode="light"] .route-detail-pane h4 {
  color: #0f172a;
}

.route-detail-pane p {
  font-size: 15px;
  line-height: 1.6;
  color: #94a3b8;
}

[data-mode="light"] .route-detail-pane p {
  color: #475569;
}

/* 4. OPERATIONS DASHBOARD */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 20px;
}

.bento-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  padding: 30px;
  display: flex;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.bento-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.col-span-2 { grid-column: span 2; }
.row-span-2 { grid-row: span 2; }

.bento-card.primary-card {
  flex-direction: column;
  justify-content: flex-end;
}

.bento-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.35;
}

.bento-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-card-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.bento-badge {
  font-family: var(--text-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.bento-card-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

[data-mode="light"] .bento-card-title {
  color: #0f172a;
}

.bento-big-num {
  font-family: var(--text-mono);
  font-size: 52px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -2px;
  margin: 10px 0;
}

[data-mode="light"] .bento-big-num {
  color: #0f172a;
}

.bento-card-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #94a3b8;
}

[data-mode="light"] .bento-card-desc {
  color: #475569;
}

/* Gauge styling */
.bento-card.gauge-card {
  justify-content: center;
}

.bento-card.gauge-card .bento-card-content {
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.gauge-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 20px 0;
}

.progress-gauge {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.gauge-bg {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 8;
}

[data-mode="light"] .gauge-bg {
  stroke: rgba(0,0,0,0.05);
}

.gauge-fill {
  fill: none;
  stroke: var(--accent-eco);
  stroke-width: 8;
  stroke-dasharray: 314.16;
  stroke-dashoffset: 314.16;
  stroke-linecap: round;
  transition: stroke-dashoffset 2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gauge-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: baseline;
}

.gauge-num {
  font-family: var(--text-mono);
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
}

[data-mode="light"] .gauge-num {
  color: #0f172a;
}

.gauge-unit {
  font-size: 12px;
  color: var(--accent-eco);
  margin-left: 2px;
  font-weight: 700;
}

/* Horizontal card */
.bento-card.horizontal-card .bento-card-content {
  flex-direction: column;
  justify-content: space-between;
}

.bento-flex-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
}

.bento-num-block {
  display: flex;
  align-items: baseline;
  flex-shrink: 0;
}

.bento-mid-num {
  font-family: var(--text-mono);
  font-size: 38px;
  font-weight: 800;
  color: var(--accent-eco);
  line-height: 1;
}

.bento-unit {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  margin-left: 6px;
}

.bento-card.mini-card {
  flex-direction: column;
  justify-content: space-between;
}

.bento-card.mini-card .bento-card-content {
  justify-content: space-between;
}

.bento-mini-num {
  font-family: var(--text-mono);
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-top: 10px;
}

[data-mode="light"] .bento-mini-num {
  color: #0f172a;
}

.bento-card.mini-card.border-red {
  border-top: 3px solid var(--accent-signal);
}

.bento-card.mini-card.border-neon {
  border-top: 3px solid var(--accent-primary);
}

/* Bento 2x2 대형 분할 게이지 카드용 스타일 */
.bento-split-layout {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  height: 100%;
  width: 100%;
}

.bento-gauge-wrapper {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gauge-container.large-gauge {
  width: 180px;
  height: 180px;
  margin: 0;
}

.gauge-container.large-gauge .gauge-num {
  font-size: 38px;
}

/* 게이지 액티브 필 채색 부분 글로우 추가 */
.progress-gauge .gauge-fill {
  stroke: var(--accent-eco);
  filter: drop-shadow(0 0 8px var(--accent-eco));
}

.gauge-sub-label {
  font-family: var(--text-mono);
  font-size: 10px;
  color: var(--accent-eco);
  letter-spacing: 2px;
  margin-top: 14px;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.bento-gauge-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  height: 100%;
  padding: 10px 0;
  text-align: left; /* 무조건 좌측 정렬하여 정보 가독성 및 완성도 획기적 개선 */
}

.bento-gauge-info .bento-card-title {
  margin-bottom: 8px;
  text-align: left; /* 좌측 정렬 */
}

.bento-gauge-info .bento-card-desc {
  text-align: left; /* 좌측 정렬 */
}

.gauge-sub-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
  border-top: 1px dashed var(--border-glass);
  padding-top: 16px;
}

[data-mode="light"] .gauge-sub-stats {
  border-top-color: rgba(0, 0, 0, 0.08);
}

/* 서브 통계 아이템 글래스모피즘 미니 컴포넌트화 */
.sub-stat-item {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 12px 16px;
  transition: var(--transition-smooth);
  text-align: left; /* 좌측 정렬 */
}

[data-mode="light"] .sub-stat-item {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.05);
}

.sub-stat-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.1);
}

.sub-stat-title {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 6px;
  font-weight: 500;
  letter-spacing: -0.2px;
}

[data-mode="light"] .sub-stat-title {
  color: #64748b;
}

.sub-stat-value {
  font-family: var(--text-mono);
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: baseline;
}

[data-mode="light"] .sub-stat-value {
  color: #0f172a;
}

.sub-stat-value .sub-num {
  font-size: 22px;
  line-height: 1;
}

.sub-stat-value .sub-unit {
  font-size: 13px;
  color: var(--accent-secondary);
  margin-left: 2px;
  font-weight: 700;
}

/* 반응형 대응 */
@media (max-width: 768px),
(width > 0px) where (.mixed-main.view-mobile) {
  .bento-split-layout {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .bento-gauge-info {
    width: 100%;
  }
}
.mixed-main.view-mobile .bento-split-layout {
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.mixed-main.view-mobile .bento-gauge-info {
  width: 100%;
}

/* 5. CONSTRUCTION SITE */
.construction-section {
  position: relative;
  background-color: var(--bg-dark);
}

.split-scroll-container {
  display: flex;
  width: 100%;
  position: relative;
}

.split-left {
  width: 50%;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow: hidden;
  /* 기본(PC)에서는 z-index 불필요하므로 auto */
  z-index: auto;
}

.split-image-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.split-image-box.active {
  opacity: 1;
  z-index: 2;
}

.split-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-right {
  width: 50%;
  padding: 100px 8% 100px 6%;
  display: flex;
  flex-direction: column;
  gap: 150px;
}

.split-header {
  margin-bottom: -50px;
}

.project-block {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: 40px;
  border-top: 1px solid var(--border-glass);
}

.project-num {
  font-family: var(--text-mono);
  font-size: 64px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.02);
  position: absolute;
  top: 10px;
  right: 0;
  line-height: 1;
}

[data-mode="light"] .project-num {
  color: rgba(0, 0, 0, 0.02);
}

.project-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-badge.border-amber { border: 1px solid var(--accent-primary); color: var(--accent-primary); }
.project-badge.border-cyan { border: 1px solid var(--accent-secondary); color: var(--accent-secondary); }
.project-badge.border-green { border: 1px solid var(--accent-eco); color: var(--accent-eco); }

.project-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 24px;
}

[data-mode="light"] .project-title {
  color: #0f172a;
}

.progress-bar-wrapper {
  margin-bottom: 24px;
}

.progress-label {
  font-family: var(--text-mono);
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 8px;
  font-weight: 600;
}

.bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

[data-mode="light"] .bar-track {
  background: rgba(0,0,0,0.06);
}

.bar-fill {
  height: 100%;
  width: 0;
  transition: width 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bar-fill.bg-amber { background: var(--accent-primary); }
.bar-fill.bg-cyan { background: var(--accent-secondary); }
.bar-fill.bg-green { background: var(--accent-eco); }

.project-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #94a3b8;
}

[data-mode="light"] .project-desc {
  color: #475569;
}

/* 6. PHOTO DIARY */
.diary-section {
  background-color: var(--bg-dark);
  position: relative;
  width: 100%;
}

.diary-snap-container {
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.diary-snap-container::-webkit-scrollbar {
  display: none;
}

.diary-snap-page {
  width: 100%;
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10%;
  position: relative;
}

.diary-layout {
  display: flex;
  align-items: center;
  gap: 60px;
  width: 100%;
  max-width: 1100px;
}

.diary-window-frame {
  width: 50%;
  aspect-ratio: 4/5;
  background: var(--bg-glass);
  border-radius: 100px 100px 12px 12px;
  border: 8px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.6), 0 25px 50px rgba(0,0,0,0.4);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(10px);
}

[data-mode="light"] .diary-window-frame {
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.diary-window-content {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.diary-bg-img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  position: absolute;
  top: -15%;
  left: 0;
  transition: transform 0.1s linear;
}

.diary-text-pane {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.diary-page-num {
  font-family: var(--text-mono);
  font-size: 14px;
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 12px;
}

.diary-title {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
}

[data-mode="light"] .diary-title {
  color: #0f172a;
}

.diary-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #94a3b8;
}

[data-mode="light"] .diary-desc {
  color: #475569;
}

/* 세로 인디케이터 */
.diary-indicator-wrapper {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10;
}

.diary-idx-lbl {
  font-family: var(--text-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition-smooth);
}

[data-mode="light"] .diary-idx-lbl {
  color: #cbd5e1;
}

.diary-idx-lbl.active {
  color: var(--accent-primary);
  transform: scale(1.3);
}

/* 7. CEO CORNER */
.ceo-section {
  background-color: var(--bg-section-alt);
  border-top: 1px solid var(--border-rail);
  border-bottom: 1px solid var(--border-rail);
}

.ceo-fullbleed-wrapper {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ceo-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.ceo-full-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ceo-overlay-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(7, 10, 15, 0.4) 0%, rgba(7, 10, 15, 0.85) 100%);
}

[data-mode="light"] .ceo-overlay-glow {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.3) 0%, rgba(248, 250, 252, 0.85) 100%);
}

.ceo-quote-box {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.quote-symbol {
  font-family: serif;
  font-size: 80px;
  line-height: 1;
  color: var(--accent-primary);
  display: block;
  margin-bottom: -20px;
}

.ceo-quote-text {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  color: #ffffff;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

[data-mode="light"] .ceo-quote-text {
  color: #0f172a;
  text-shadow: none;
}

.ceo-author {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-secondary);
  letter-spacing: 1px;
}

/* CEO activities Z-pattern */
.ceo-activity-list {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.activity-card {
  display: flex;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.activity-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.activity-card.reverse {
  flex-direction: row-reverse;
}

.activity-image {
  width: 40%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.activity-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.activity-card:hover .activity-image img {
  transform: scale(1.04);
}

.act-date {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(7, 10, 15, 0.8);
  color: #ffffff;
  font-family: var(--text-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border-glass);
}

.activity-info {
  width: 60%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.act-num {
  font-family: var(--text-mono);
  font-size: 40px;
  font-weight: 800;
  color: rgba(255,255,255,0.02);
  position: absolute;
  right: 20px;
  top: 15px;
}

[data-mode="light"] .act-num {
  color: rgba(0, 0, 0, 0.02);
}

.act-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

[data-mode="light"] .act-title {
  color: #0f172a;
}

.act-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #94a3b8;
}

[data-mode="light"] .act-desc {
  color: #475569;
}

/* 8. STAFF NEWS */
.staff-section {
  background-color: var(--bg-dark);
}

.ticker-container {
  width: 100%;
  background: var(--bg-section-alt);
  border: 1px solid var(--border-rail);
  border-radius: 8px;
  overflow: hidden;
  padding: 14px 0;
  margin-bottom: 60px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  padding: 0 40px;
  border-right: 1px solid var(--border-glass);
}

[data-mode="light"] .ticker-item {
  color: #334155;
}

@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Timeline */
.timeline-box {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--border-rail), var(--accent-primary), var(--border-rail));
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  width: 100%;
  margin-bottom: 50px;
  position: relative;
}

.timeline-item.left {
  justify-content: flex-start;
}

.timeline-item.right {
  justify-content: flex-end;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 15px;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-section-alt);
  border: 2px solid var(--accent-primary);
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 5;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.timeline-dot:hover {
  transform: translateX(-50%) scale(1.2);
  background: var(--accent-primary);
}

.timeline-card {
  width: 44%;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  backdrop-filter: blur(10px);
}

[data-mode="light"] .timeline-card {
  box-shadow: 0 8px 15px rgba(0,0,0,0.04);
}

.timeline-date {
  font-family: var(--text-mono);
  font-size: 12px;
  color: var(--accent-secondary);
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.timeline-badge {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  color: #ffffff;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
}

.timeline-badge.bg-amber { background: var(--accent-primary); }
.timeline-badge.bg-cyan { background: var(--accent-secondary); }
.timeline-badge.bg-green { background: var(--accent-eco); }
.timeline-badge.bg-red { background: var(--accent-signal); }

.timeline-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

[data-mode="light"] .timeline-title {
  color: #0f172a;
}

.timeline-card-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #94a3b8;
}

[data-mode="light"] .timeline-card-desc {
  color: #475569;
}

/* Anchor Positioning Timeline Popover */
.timeline-popover {
  position: absolute;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--accent-primary);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  color: #e2e8f0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9);
  transition: var(--transition-smooth);
  z-index: 10;
  max-width: 250px;
}

.timeline-popover.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.timeline-hidden-wrapper {
  display: none;
  width: 100%;
}

.timeline-hidden-wrapper.open {
  display: block;
}

/* starting-style 적용용 */
@starting-style {
  .timeline-hidden-wrapper.open .timeline-item {
    opacity: 0;
    transform: translateY(20px);
  }
}

.btn-timeline-more {
  background: transparent;
  border: 1px solid var(--border-rail);
  color: var(--accent-primary);
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-timeline-more:hover {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

/* 9. EVENT ENTRY */
.essay-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.essay-glass-container {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 12px 12px 50px 50px;
  padding: 40px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  backdrop-filter: blur(20px);
  position: relative;
}

[data-mode="light"] .essay-glass-container {
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.essay-train-window-deco {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 4px;
  background: var(--accent-primary);
  border-radius: 0 0 4px 4px;
  box-shadow: var(--shadow-glow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
  position: relative;
}

.form-input, .form-textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  padding: 16px;
  font-size: 15px;
  color: #ffffff;
  outline: none;
  transition: var(--transition-smooth);
}

[data-mode="light"] .form-input, [data-mode="light"] .form-textarea {
  background: rgba(0, 0, 0, 0.02);
  color: #0f172a;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 10px rgba(245,158,11,0.05), var(--shadow-glow);
}

[data-mode="light"] .form-input:focus, [data-mode="light"] .form-textarea:focus {
  background: rgba(255, 255, 255, 1);
}

/* Floating labels */
.floating-group {
  position: relative;
  padding-top: 10px;
}

.floating-group label {
  position: absolute;
  left: 16px;
  top: 26px;
  color: #64748b;
  font-size: 15px;
  pointer-events: none;
  transition: var(--transition-smooth);
  background: transparent;
}

/* Focus or not empty state */
.form-input:focus ~ label,
.form-input:not(:placeholder-shown) ~ label,
.form-textarea:focus ~ label,
.form-textarea:not(:placeholder-shown) ~ label {
  top: 0;
  left: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-primary);
  padding: 0 6px;
  background: var(--bg-dark);
}

[data-mode="light"] .form-input:focus ~ label,
[data-mode="light"] .form-input:not(:placeholder-shown) ~ label,
[data-mode="light"] .form-textarea:focus ~ label,
[data-mode="light"] .form-textarea:not(:placeholder-shown) ~ label {
  background: #ffffff;
}

.error-msg {
  font-size: 12px;
  color: var(--accent-signal);
  margin-top: 6px;
  font-weight: 600;
  display: none;
}

.form-group.has-error .form-input,
.form-group.has-error .form-textarea {
  border-color: var(--accent-signal);
  box-shadow: 0 0 10px rgba(239,68,68,0.15);
}

.form-group.has-error .error-msg {
  display: block;
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.checkbox-wrapper {
  margin-top: 12px;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #94a3b8;
  cursor: pointer;
}

[data-mode="light"] .check-label {
  color: #475569;
}

.check-label input {
  display: none;
}

.check-custom {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  position: relative;
  transition: var(--transition-smooth);
}

.check-label input:checked + .check-custom {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.check-label input:checked + .check-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.form-submit-box {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.btn-train-submit {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #ffffff;
  border: none;
  padding: 16px 50px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-glow);
  transition: var(--transition-smooth);
}

.btn-train-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: all 0.6s ease;
}

.btn-train-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-train-submit:hover::before {
  left: 100%;
}

/* Popover Success Modal */
.success-popover {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(13, 21, 32, 0.98);
  border: 2px solid var(--accent-primary);
  border-radius: 16px;
  padding: 40px;
  width: 90%;
  max-width: 550px;
  color: #ffffff;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 50px rgba(245,158,11,0.15);
  z-index: 9999;
  border-bottom: 8px solid var(--accent-primary);
}

.success-popover-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.popover-status-badge {
  font-family: var(--text-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.success-popover .popover-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

.success-popover .popover-text {
  font-size: 14px;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 24px;
}

.popover-prize-info {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  padding: 14px;
  font-size: 13px;
  color: #e2e8f0;
  margin-bottom: 30px;
  border-left: 3px solid var(--accent-secondary);
}

.btn-popover-close {
  background: var(--bg-dark);
  border: 1px solid var(--border-glass);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-popover-close:hover {
  background: #ffffff;
  color: #000000;
}

/* 10. ARCHIVE */
.archive-section {
  background-color: var(--bg-section-alt);
  border-top: 1px solid var(--border-rail);
  border-bottom: 1px solid var(--border-rail);
  padding: 50px 0; /* 기존 100px 0에서 축소 */
  overflow: hidden;
}

.archive-section .section-container {
  padding-top: 20px;
  padding-bottom: 20px;
}

.archive-section .section-header {
  margin-bottom: 24px;
}

/* 제목 아래 아카이브 호 범위 스타일 */
.archive-vol-range {
  font-family: var(--text-mono);
  color: var(--accent-secondary);
  font-size: 13px;
  font-weight: 700;
  margin-top: -8px;
  margin-bottom: 16px;
  letter-spacing: 2px;
  display: inline-block;
  padding: 3px 10px;
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 4px;
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.25);
}

[data-mode="light"] .archive-vol-range {
  background: rgba(8, 145, 178, 0.05);
  border-color: rgba(8, 145, 178, 0.12);
  color: #0891b2;
}

/* 1200px 본문 정렬용 뷰포트 (오버플로우 없음) */
.train-scroll-viewport {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* 실제 슬라이더 영역만 1200px 안에서 가두고 overflow: hidden 처리 */
.train-scroll-rolling-wrapper {
  width: 100%;
  overflow: hidden;
}

/* 아카이브 좌우 화살표 컨트롤러 */
.train-nav-btn {
  position: absolute;
  top: calc(50% - 15px); /* 프로그레스바 및 레이아웃을 감안하여 중심 세로보정 */
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(13, 21, 32, 0.7);
  border: 1px solid var(--border-glass);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.train-nav-btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-50%) scale(1.08);
}

.train-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* 1200px 본문 영역 바깥쪽 -60px에 여유있게 배치 */
.train-nav-btn.prev {
  left: -60px;
}

.train-nav-btn.next {
  right: -60px;
}

/* 화면 해상도가 1320px보다 작아질 때(화살표가 윈도우 밖으로 나갈 때) 안전 안쪽 배치 대응 */
@media (max-width: 1320px) {
  .train-scroll-viewport {
    padding: 0 16px;
  }
  .train-nav-btn.prev {
    left: 8px;
  }
  .train-nav-btn.next {
    right: 8px;
  }
}
/* 쇼룸 모바일 버튼 대응 */
.mixed-main.view-mobile .train-scroll-viewport {
  padding: 0 16px;
}
.mixed-main.view-mobile .train-nav-btn.prev {
  left: 8px;
}
.mixed-main.view-mobile .train-nav-btn.next {
  right: 8px;
}

.train-scroll-container {
  width: 100%;
  margin-top: 10px;
  padding: 15px 0;
  cursor: grab;
  overflow-x: auto;
  scrollbar-width: none;
}

.train-scroll-container::-webkit-scrollbar {
  display: none;
}

.train-scroll-container:active {
  cursor: grabbing;
}

.train-track {
  display: flex;
  width: max-content;
  padding: 15px 0;
  gap: 0;
}

.train-coach {
  display: flex;
  align-items: center;
  position: relative;
  width: 250px; /* 기존 320px에서 크기 대폭 축소 */
  transition: var(--transition-smooth);
}

/* 커플러(연결 고리) 장식 */
.coach-coupler-left, .coach-coupler-right {
  width: 12px;
  height: 10px;
  background: #475569;
  position: relative;
  z-index: 1;
}

.coach-coupler-right::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: #1e293b;
  border-radius: 50%;
}

.coach-body {
  flex-grow: 1;
  background: var(--bg-dark);
  border: 2px solid #334155;
  border-radius: 8px;
  padding: 16px; /* 패딩 축소 */
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
  z-index: 2;
}

.train-coach:hover .coach-body {
  border-color: var(--accent-primary);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

.train-coach.current .coach-body {
  border-color: var(--accent-primary);
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(245, 158, 11, 0.02) 100%);
}

/* 이미지 크기 제어 */
.cover-image-area {
  width: 100%;
  aspect-ratio: 3/4.2; /* 아카이브 표지 책 비율 */
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--bg-section-alt);
  position: relative;
  border: 1px solid var(--border-glass);
}

.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.train-coach:hover .cover-img {
  transform: scale(1.05);
}

.coach-vol {
  font-family: var(--text-mono);
  font-size: 10px; /* 기존 11px에서 축소 */
  color: var(--accent-secondary);
  font-weight: 700;
  margin-bottom: 4px;
}

.coach-title {
  font-size: 13.5px; /* 기존 15px에서 축소 */
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

[data-mode="light"] .coach-title {
  color: #0f172a;
}

.coach-desc {
  font-size: 11px; /* 기존 12px에서 축소 */
  line-height: 1.4;
  color: #64748b;
}

/* 철로 게이지 프로그레스 바 */
.train-rail-progress-wrapper {
  max-width: 800px;
  margin: 30px auto 0 auto;
  position: relative;
  padding: 0 24px;
}

.rail-ties {
  position: absolute;
  top: 50%;
  left: 24px;
  right: 24px;
  height: 10px;
  transform: translateY(-50%);
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 18px,
    rgba(255, 255, 255, 0.05) 18px,
    rgba(255, 255, 255, 0.05) 22px
  );
}

[data-mode="light"] .rail-ties {
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 18px,
    rgba(0, 0, 0, 0.04) 18px,
    rgba(0, 0, 0, 0.04) 22px
  );
}

.rail-progress-line {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.06);
  position: relative;
}

[data-mode="light"] .rail-progress-line {
  background: rgba(0,0,0,0.06);
}

.rail-progress-fill {
  height: 100%;
  width: 16%;
  background: var(--accent-primary);
  box-shadow: var(--shadow-glow);
  transition: width 0.2s ease-out;
}

/* 11. FOOTER */
.mixed-footer {
  background-color: #04060a;
  border-top: 1px solid var(--border-rail);
  padding: 60px 24px;
}

.footer-rail-decoration {
  max-width: 1200px;
  margin: 0 auto 40px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.deco-rail-line {
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--border-rail), transparent);
  margin-right: 40px;
}

.deco-dots {
  display: flex;
  gap: 8px;
}

.deco-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}

.deco-dot.signal-red.active { background: var(--accent-signal); box-shadow: 0 0 8px var(--accent-signal); }
.deco-dot.signal-amber.active { background: var(--accent-primary); box-shadow: 0 0 8px var(--accent-primary); }
.deco-dot.signal-green.active { background: var(--accent-eco); box-shadow: 0 0 8px var(--accent-eco); }

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand-info {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-family: var(--text-heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 16px;
}

.footer-addr, .footer-copy {
  font-size: 12px;
  color: #475569;
  line-height: 1.6;
}

.footer-links-group h5 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.footer-links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-group a {
  color: #64748b;
  font-size: 13px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-links-group a:hover {
  color: var(--accent-primary);
  padding-left: 4px;
}

/* Scroll reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* No image placeholder */
.no-image-placeholder {
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ffffff;
  font-family: var(--text-mono);
}

.no-image-placeholder.bg-amber { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.no-image-placeholder.bg-cyan { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }
.no-image-placeholder.bg-green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.no-image-placeholder.bg-orange { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }
.no-image-placeholder.bg-ocean { background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); }
.no-image-placeholder.bg-night { background: linear-gradient(135deg, #0f172a 0%, #020617 100%); }
.no-image-placeholder.bg-yellow { background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); }
.no-image-placeholder.bg-dark-blue { background: linear-gradient(135deg, #0d1520 0%, #020407 100%); }
.no-image-placeholder.bg-purple { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
.no-image-placeholder.bg-red { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }

.no-image-placeholder.const-grad-1 { background: linear-gradient(135deg, #f59e0b 0%, #0f172a 100%); }
.no-image-placeholder.const-grad-2 { background: linear-gradient(135deg, #06b6d4 0%, #0f172a 100%); }
.no-image-placeholder.const-grad-3 { background: linear-gradient(135deg, #10b981 0%, #0f172a 100%); }

.no-image-icon {
  font-size: 32px;
}

.no-image-text {
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* Fade in */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.coach-lbl {
  font-family: var(--text-mono);
  font-size: 9px;
  color: #475569;
  letter-spacing: 1px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  padding-bottom: 4px;
}

/* ========================================================
   REASONS TO FLATTEN MEDIA QUERIES OUTSIDE OF CONTAINER QUERIES
   ======================================================== */

@media (max-width: 1024px) {
  .v7-title-line { font-size: 64px; }
  .infographic-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .col-span-2 { grid-column: span 2; }
  .row-span-2 { grid-row: span 2; }
}
/* 쇼룸 모바일 버튼 대응 (1024px 이하 동등) */
.mixed-main.view-mobile .v7-title-line { font-size: 64px; }
.mixed-main.view-mobile .infographic-grid { grid-template-columns: 1fr; }
.mixed-main.view-mobile .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
.mixed-main.view-mobile .col-span-2 { grid-column: span 2; }
.mixed-main.view-mobile .row-span-2 { grid-row: span 2; }

@media (max-width: 768px) {
  .section-title { font-size: 30px; }
  .v7-title-line { font-size: 44px; }
  .v7-catchphrase { font-size: 15px; }
  .news-card, .news-card.reverse { flex-direction: column; gap: 24px; }
  .news-image-area, .news-content { width: 100%; }
  .kpi-dashboard-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: minmax(150px, auto); }
  .col-span-2, .row-span-2 { grid-column: span 1; grid-row: span 1; }
  .bento-card.horizontal-card .bento-flex-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  
  .split-scroll-container { flex-direction: column; }
  .split-left { width: 100%; height: 50vh; z-index: 10; }
  .split-right { width: 100%; padding: 40px 24px; gap: 80px; z-index: 1; position: relative; }
  
  .diary-layout { flex-direction: column; gap: 30px; }
  .diary-window-frame { width: 100%; aspect-ratio: 4/3; border-radius: 50px 50px 12px 12px; }
  .diary-text-pane { width: 100%; }
  .diary-indicator-wrapper { display: none; }
  
  .ceo-fullbleed-wrapper { height: 40vh; }
  .ceo-quote-text { font-size: 20px; }
  .activity-card, .activity-card.reverse { flex-direction: column; }
  .activity-image, .activity-info { width: 100%; }
  
  .timeline-line { left: 24px; }
  .timeline-dot { left: 24px; }
  .timeline-card { width: calc(100% - 48px); margin-left: auto; }
  .timeline-item.left, .timeline-item.right { justify-content: flex-end; }
  
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ========================================================
   쇼룸 모바일 뷰 버튼 대응 (.mixed-main.view-mobile 클래스)
   @media (max-width: 768px)와 동일한 스타일을 클래스 기반으로 적용
   ======================================================== */
.mixed-main.view-mobile .section-title { font-size: 30px; }
.mixed-main.view-mobile .v7-title-line { font-size: 44px; }
.mixed-main.view-mobile .v7-catchphrase { font-size: 15px; }
.mixed-main.view-mobile .news-card,
.mixed-main.view-mobile .news-card.reverse { flex-direction: column; gap: 24px; }
.mixed-main.view-mobile .news-image-area,
.mixed-main.view-mobile .news-content { width: 100%; }
.mixed-main.view-mobile .kpi-dashboard-grid { grid-template-columns: 1fr; }
.mixed-main.view-mobile .bento-grid { grid-template-columns: 1fr; grid-auto-rows: minmax(150px, auto); }
.mixed-main.view-mobile .col-span-2,
.mixed-main.view-mobile .row-span-2 { grid-column: span 1; grid-row: span 1; }
.mixed-main.view-mobile .bento-card.horizontal-card .bento-flex-row { flex-direction: column; align-items: flex-start; gap: 16px; }

.mixed-main.view-mobile .split-scroll-container { flex-direction: column; }
.mixed-main.view-mobile .split-left {
  width: 100%;
  height: 50vh;
  /* 텍스트가 이미지 뒤로 숨어 올라가도록 이미지 패널을 앞으로 올림 */
  z-index: 10;
}
.mixed-main.view-mobile .split-right {
  width: 100%;
  padding: 40px 24px;
  gap: 80px;
  /* 이미지 패널보다 낮은 레이어에서 스크롤 */
  z-index: 1;
  position: relative;
}

.mixed-main.view-mobile .diary-layout { flex-direction: column; gap: 30px; }
.mixed-main.view-mobile .diary-window-frame { width: 100%; aspect-ratio: 4/3; border-radius: 50px 50px 12px 12px; }
.mixed-main.view-mobile .diary-text-pane { width: 100%; }
.mixed-main.view-mobile .diary-indicator-wrapper { display: none; }

.mixed-main.view-mobile .ceo-fullbleed-wrapper { height: 40vh; }
.mixed-main.view-mobile .ceo-quote-text { font-size: 20px; }
.mixed-main.view-mobile .activity-card,
.mixed-main.view-mobile .activity-card.reverse { flex-direction: column; }
.mixed-main.view-mobile .activity-image,
.mixed-main.view-mobile .activity-info { width: 100%; }

.mixed-main.view-mobile .timeline-line { left: 24px; }
.mixed-main.view-mobile .timeline-dot { left: 24px; }
.mixed-main.view-mobile .timeline-card { width: calc(100% - 48px); margin-left: auto; }
.mixed-main.view-mobile .timeline-item.left,
.mixed-main.view-mobile .timeline-item.right { justify-content: flex-end; }

.mixed-main.view-mobile .form-row { grid-template-columns: 1fr; gap: 0; }
.mixed-main.view-mobile .footer-grid { grid-template-columns: 1fr; gap: 30px; }
