/* ==========================================================================
   Project Arcanet — Shared, Main Stage, Process & Subpage Stylesheet
   ========================================================================== */

:root {
  --bg-primary: #0b0d10;
  --bg-secondary: #12161c;
  --bg-card: rgba(20, 25, 33, 0.82);
  --text-primary: #f3f5f8;
  --text-secondary: #9aa4b2;
  --text-muted: #687382;
  --accent: #3b82f6;
  --accent-soft: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.35);
  --border-color: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(255, 255, 255, 0.22);
  --nav-height: 64px;
  --max-width: 1120px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition: 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Inter", "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Top Navigation Bar */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(11, 13, 16, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
}

.nav-inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-logo svg {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 11px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.16);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.35);
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 4px 8px;
  flex-shrink: 0;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 5px;
  transition: color var(--transition), background var(--transition);
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.25);
}

.lang-switcher .divider {
  color: var(--text-muted);
  font-size: 0.75rem;
  user-select: none;
}

/* Shared Buttons & Eyebrow */
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 8px;
}

.cta-btn,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 24px var(--accent-glow);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.cta-btn:hover,
.primary-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.45);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: background var(--transition), border-color var(--transition);
  cursor: pointer;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ==========================================================================
   MAIN PAGE — 휠 연동형 프레젠테이션 스테이지 (#hero-stage)
   ========================================================================== */

.scroll-stage {
  position: relative;
  width: 100%;
  height: 900vh;
  padding-top: var(--nav-height);
  background: var(--bg-primary);
}

.sticky-viewport {
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 배경 레이어 */
.bg-media-slot {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-showcase-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.65s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.bg-showcase-image.is-visible {
  opacity: 0.24;
  transform: scale(1);
}

.bg-vignette-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(59, 130, 246, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(11, 13, 16, 0.65) 0%, rgba(11, 13, 16, 0.88) 100%);
}

.bg-grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* 슬라이드 레이어 */
.stage-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 32px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.5s ease;
}

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

/* Step 0: ARCADE NETWORK -> ARCANET & A/B/R/O */
.intro-sequence {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 860px;
}

.arcanet-combine {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  font-size: clamp(2.1rem, 5.4vw, 4.1rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.word-group {
  display: inline-flex;
  align-items: baseline;
}

.keep {
  color: var(--text-primary);
}

.drop {
  display: inline-block;
  max-width: 8ch;
  overflow: hidden;
  vertical-align: bottom;
  color: var(--text-secondary);
  transition: max-width 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}

.word-gap {
  display: inline-block;
  width: 0.42em;
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.intro-sequence.is-combined .word-gap {
  width: 0;
}

.intro-sequence.is-combined .drop {
  max-width: 0;
  opacity: 0;
}

.intro-sequence.is-combined .arcanet-combine {
  transform: translateY(-6px);
  letter-spacing: 0.04em;
}

.intro-sequence.is-combined .keep {
  color: #ffffff;
  text-shadow: 0 0 28px rgba(59, 130, 246, 0.4);
}

.abro-matrix {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 26px;
  border-radius: 16px;
  background: rgba(18, 22, 28, 0.72);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.abro-row {
  display: flex;
  align-items: baseline;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  opacity: 0.25;
  transform: translateX(-8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.abro-row.is-shown {
  opacity: 1;
  transform: translateX(0);
}

.abro-row .initial {
  color: var(--accent-soft);
  font-weight: 900;
  min-width: 1.2em;
  text-align: left;
}

.abro-row .word-expand {
  color: var(--text-primary);
}

.scroll-hint {
  margin-top: 20px;
  font-size: 0.86rem;
  color: var(--text-muted);
  animation: hintFloat 2.2s ease-in-out infinite;
}

@keyframes hintFloat {
  0%, 100% { transform: translateY(0); opacity: 0.75; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* Pillar & Goal Slides */
.pillar-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-soft);
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.32);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.slide-main-title,
.pillar-title {
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin-bottom: 14px;
  max-width: 820px;
}

.slide-en-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.18rem);
  font-weight: 600;
  color: var(--accent-soft);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.pillar-desc {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.68;
}

/* 우측 슬라이드 도트 인디케이터 */
.stage-progress {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.stage-progress.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.stage-progress .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--text-muted);
  background: rgba(18, 22, 28, 0.8);
  cursor: pointer;
  padding: 0;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.stage-progress .dot:hover {
  border-color: var(--text-primary);
}

.stage-progress .dot.active {
  background: var(--accent);
  border-color: var(--accent-soft);
  transform: scale(1.35);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
}

/* 메인 하단 릴리즈 섹션 */
.release-section {
  position: relative;
  z-index: 2;
  padding: 96px 24px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.release-section h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.release-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  max-width: 640px;
  margin: 0 auto 24px;
  line-height: 1.72;
}

/* ==========================================================================
   SUBPAGES — 공통 카드, 타이포그래피, 그리드 및 애니메이션
   ========================================================================== */

.subpage-main {
  flex: 1;
  width: 100%;
  padding: calc(var(--nav-height) + 48px) 24px 80px;
}

.subpage-main .section-eyebrow {
  margin-bottom: 8px;
}

.subpage-main h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.22;
  margin-bottom: 12px;
}

.subpage-lead {
  color: var(--text-secondary);
  font-size: 1.02rem;
  max-width: 740px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.subpage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), border-color var(--transition);
}

.subpage-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.subpage-card:hover {
  border-color: var(--border-hover);
}

.section-heading {
  font-size: 1.25rem;
  font-weight: 750;
  margin-bottom: 14px;
  color: var(--text-primary);
}

/* Intro Prose */
.prose-block p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.82;
  margin-bottom: 16px;
}

.prose-block strong {
  color: var(--text-primary);
}

.inline-note {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.inline-note a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.highlight-quote {
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: rgba(59, 130, 246, 0.08);
  color: var(--text-primary);
  font-size: 0.98rem;
  line-height: 1.78;
}

.signature-block {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.signature-date {
  font-size: 0.85rem;
  color: var(--accent-soft);
  font-weight: 600;
}

.signature-author {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Special Thanks Grid */
.thanks-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.thanks-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
}

.thanks-box h4 {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--accent-soft);
  margin-bottom: 10px;
}

.thanks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Overview Architecture Grid */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.arch-tier {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.arch-tier-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-soft);
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 3px 9px;
  border-radius: 999px;
}

.arch-tier h3 {
  font-size: 1.08rem;
  font-weight: 700;
}

.arch-tier p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

/* Component & Project Lists */
.component-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.component-list li {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.68;
}

.component-list li strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.98rem;
  margin-bottom: 4px;
}

/* Developer Social Grid */
.dev-header {
  margin-bottom: 20px;
}

.dev-aka {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-soft);
  margin-bottom: 6px;
}

.dev-name {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.social-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  transition: border-color var(--transition), background var(--transition);
}

.social-item:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.06);
}

.social-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-soft);
}

.social-value {
  font-size: 0.92rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Download CTA & Compatibility Table */
.dl-center-cta {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.compat-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0;
}

.compat-search-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: rgba(11, 13, 16, 0.75);
  color: var(--text-primary);
  font-size: 0.92rem;
}

.compat-search-input:focus {
  outline: none;
  border-color: var(--accent);
}

.compat-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.compat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.filter-chip:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.filter-chip.active {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(59, 130, 246, 0.5);
  color: var(--text-primary);
}

.compat-count {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.compat-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.compat-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.compat-table th,
.compat-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
}

.compat-table thead th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-weight: 700;
  white-space: nowrap;
}

.compat-table tbody tr:last-child td {
  border-bottom: none;
}

.board-badge,
.status-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.board-badge {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.status-badge.playable {
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
}

.status-badge.testing {
  background: rgba(250, 204, 21, 0.14);
  color: #facc15;
}

.compat-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.subpage-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  background: var(--bg-primary);
}

/* ==========================================================================
   PROCESS PAGE — 휠 스크롤 연동 가로 타임라인 (1000vh)
   ========================================================================== */

.process-stage {
  position: relative;
  width: 100%;
  height: 1000vh;
  padding-top: var(--nav-height);
  background: var(--bg-primary);
}

.process-sticky {
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 28px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  overflow: hidden;
}

.process-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.process-header h1 {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.process-hint {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.h-timeline-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 6px 8px;
  flex-shrink: 0;
}

.h-timeline-track {
  position: absolute;
  top: 19px;
  left: 32px;
  right: 32px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 0;
}

.h-timeline-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
}

.h-node {
  position: relative;
  z-index: 1;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.h-node:hover,
.h-node.passed {
  color: var(--text-secondary);
}

.h-node.active {
  color: var(--text-primary);
}

.h-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--text-muted);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.h-node.passed .h-dot {
  border-color: var(--accent);
  background: var(--accent);
}

.h-node.active .h-dot {
  border-color: var(--accent-soft);
  background: var(--accent);
  transform: scale(1.35);
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.25);
}

.h-year {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.h-slides-viewport {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.h-slides-track {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.h-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: stretch;
  padding: 6px 2px;
  opacity: 0.35;
  transform: scale(0.97);
  transition: opacity 0.45s ease, transform 0.5s ease;
}

.h-slide.active {
  opacity: 1;
  transform: scale(1);
}

.h-media-box {
  height: 100%;
  min-height: 220px;
  max-height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.h-media-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #07090c;
}

.media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  background: radial-gradient(circle at 50% 35%, rgba(59, 130, 246, 0.14), transparent 65%);
}

.media-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-soft);
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
}

.media-placeholder p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.h-text-box {
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
}

.timeline-date {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-soft);
}

.h-slide-title {
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 8px;
}

.h-slide-point {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.h-slide-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

.timeline-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.timeline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-soft);
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  transition: background var(--transition), border-color var(--transition);
}

button.timeline-link {
  font-family: inherit;
  cursor: pointer;
}

.timeline-link:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.45);
}

.process-footer-bar {
  display: flex;
  justify-content: flex-start;
  flex-shrink: 0;
}

/* 유튜브 팝업 모달 */
.yt-modal-backdrop[hidden] {
  display: none;
}

.yt-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 6, 8, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.yt-modal-dialog {
  width: 100%;
  max-width: 880px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}

.yt-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
}

.yt-modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.yt-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.yt-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.yt-modal-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.yt-modal-player-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.yt-modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid var(--border-color);
}

.yt-modal-note {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 900px) {
  .thanks-group,
  .arch-grid,
  .social-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-inner {
    padding: 0 14px;
    gap: 10px;
  }

  .brand-name {
    display: none;
  }

  .nav-links a {
    font-size: 0.8rem;
    padding: 5px 8px;
  }

  .stage-layer {
    padding: 24px 20px 72px;
  }

  .stage-progress {
    right: 12px;
    gap: 8px;
  }

  .subpage-main {
    padding: calc(var(--nav-height) + 28px) 16px 64px;
  }

  .subpage-card {
    padding: 20px 18px;
  }

  .process-sticky {
    padding: 18px 14px 16px;
  }

  .process-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .process-header h1 {
    font-size: 1.45rem;
  }

  /* 모바일 상단 진행도 바: 가로 스크롤 허용 및 노드 간격 확보 */
  .h-timeline-bar {
    justify-content: flex-start;
    gap: 18px;
    padding: 10px 8px 12px;
    margin: 4px 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .h-timeline-bar::-webkit-scrollbar {
    display: none;
  }

  .h-timeline-track {
    left: 16px;
    right: 16px;
    top: 17px;
  }

  .h-node {
    flex: 0 0 auto;
    min-width: 44px;
    gap: 6px;
    padding: 0 2px;
  }

  .h-dot {
    width: 12px;
    height: 12px;
  }

  .h-node.active .h-dot {
    transform: scale(1.4);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
  }

  .h-year {
    font-size: 10.5px;
    white-space: nowrap;
  }

  .h-slide {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(150px, 0.85fr) minmax(0, 1.35fr);
    gap: 12px;
  }

  .h-text-box {
    padding: 16px 18px;
    overflow-y: auto;
    justify-content: flex-start;
  }

  .h-slide-title {
    font-size: 1.15rem;
  }

  .h-slide-point {
    font-size: 0.88rem;
  }

  .h-slide-desc {
    font-size: 0.88rem;
    line-height: 1.65;
  }
}