/* ==========================================================================
   EUNJO.AI Official Brand Website - Main Stylesheet
   Theme: Multi-Theme Engine (Midnight / Sunshine Light / Fairytale Pastel)
   ========================================================================== */

/* 1. Midnight Deep Navy (Default Cinematic Dark) */
:root, [data-theme="midnight"] {
  --bg-dark: #07090e;
  --bg-deep-navy: #0b1120;
  --bg-surface: rgba(15, 23, 42, 0.72);
  --bg-surface-hover: rgba(30, 41, 59, 0.85);
  --card-bg: rgba(15, 23, 42, 0.65);
  
  --primary-orange: #ff9e2c;
  --primary-orange-light: #ffb86c;
  --primary-orange-dark: #e67e22;
  --primary-orange-glow: rgba(255, 158, 44, 0.28);
  
  --secondary-yellow: #fcd34d;
  --soft-gold: #fbbf24;
  --accent-amber: #f59e0b;
  --accent-blue: #38bdf8;
  --accent-emerald: #34d399;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-orange: rgba(255, 158, 44, 0.32);
  --border-glow: rgba(255, 158, 44, 0.6);
  
  --glass-bg: rgba(15, 23, 42, 0.65);
  --glass-border: 1px solid rgba(255, 255, 255, 0.09);
  --glass-blur: blur(16px);
  
  --header-bg-scrolled: rgba(7, 9, 14, 0.85);
  --footer-bg: #05070b;
  --thumb-wrap-bg: #090e1a;
  --modal-bg: #0b1120;
  --theme-toggle-bg: rgba(255, 255, 255, 0.05);
  --theme-btn-active-bg: var(--primary-orange);
  --theme-btn-active-color: #0b1120;
  
  --text-gradient-val: linear-gradient(135deg, #ffffff 20%, var(--primary-orange) 80%, var(--secondary-yellow) 100%);
  --hero-card-bg: rgba(11, 17, 32, 0.7);
  --studio-card-bg: linear-gradient(180deg, rgba(15, 23, 42, 0.25) 0%, rgba(7, 9, 14, 0.94) 80%);
  --shadow-card: 0 16px 36px -10px rgba(0, 0, 0, 0.5);
  --shadow-card-hover: 0 20px 48px -10px rgba(255, 158, 44, 0.18);

  /* Ambient stage (hero / story) */
  --aurora-1: rgba(255, 158, 44, 0.22);
  --aurora-2: rgba(252, 211, 77, 0.14);
  --aurora-3: rgba(244, 114, 182, 0.10);
  --grain-opacity: 0.09;
  --grain-blend: overlay;
  --story-band: #0c1428;
  
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;
  --container-max: 1240px;
  --header-height: 76px;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Sunshine Cream (Warm Luxury Light Theme) */
[data-theme="sunshine"] {
  --bg-dark: #fbf9f4;
  --bg-deep-navy: #f3ece0;
  --bg-surface: rgba(255, 255, 255, 0.88);
  --bg-surface-hover: rgba(255, 255, 255, 0.98);
  --card-bg: rgba(255, 255, 255, 0.82);
  
  --primary-orange: #ea580c;
  --primary-orange-light: #f97316;
  --primary-orange-dark: #c2410c;
  --primary-orange-glow: rgba(234, 88, 12, 0.22);
  
  --secondary-yellow: #d97706;
  --soft-gold: #b45309;
  --accent-amber: #d97706;
  --accent-blue: #0284c7;
  --accent-emerald: #059669;
  
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --border-subtle: rgba(203, 213, 225, 0.8);
  --border-orange: rgba(234, 88, 12, 0.4);
  --border-glow: rgba(234, 88, 12, 0.5);
  
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: 1px solid rgba(226, 232, 240, 0.95);
  --glass-blur: blur(16px);
  
  --header-bg-scrolled: rgba(251, 249, 244, 0.92);
  --footer-bg: #efe6d8;
  --thumb-wrap-bg: #f8fafc;
  --modal-bg: #ffffff;
  --theme-toggle-bg: rgba(0, 0, 0, 0.05);
  --theme-btn-active-bg: var(--primary-orange);
  --theme-btn-active-color: #ffffff;
  
  --text-gradient-val: linear-gradient(135deg, #1e293b 20%, var(--primary-orange) 80%, #b45309 100%);
  --hero-card-bg: rgba(255, 255, 255, 0.85);
  --studio-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(248, 243, 233, 0.95) 80%);
  --shadow-card: 0 16px 36px -10px rgba(180, 160, 140, 0.2);
  --shadow-card-hover: 0 20px 48px -10px rgba(234, 88, 12, 0.18);

  --aurora-1: rgba(249, 115, 22, 0.16);
  --aurora-2: rgba(251, 191, 36, 0.18);
  --aurora-3: rgba(244, 63, 94, 0.08);
  --grain-opacity: 0.07;
  --grain-blend: multiply;
  --story-band: #f3ead9;
}

/* 3. Fairytale Pastel (Dreamy Peach, Mint, Lavender & Butter) */
[data-theme="fairytale"] {
  --bg-dark: #fdf6f7;
  --bg-deep-navy: #f8e8ed;
  --bg-surface: rgba(255, 255, 255, 0.88);
  --bg-surface-hover: rgba(255, 255, 255, 0.98);
  --card-bg: rgba(255, 255, 255, 0.84);
  
  --primary-orange: #f97352;
  --primary-orange-light: #fda48b;
  --primary-orange-dark: #e15532;
  --primary-orange-glow: rgba(249, 115, 82, 0.25);
  
  --secondary-yellow: #f59e0b;
  --soft-gold: #ec4899;
  --accent-amber: #fb7185;
  --accent-blue: #818cf8;
  --accent-emerald: #34d399;
  
  --text-primary: #2d2638;
  --text-secondary: #605270;
  --text-muted: #857499;
  
  --border-subtle: rgba(244, 219, 232, 0.85);
  --border-orange: rgba(249, 115, 82, 0.38);
  --border-glow: rgba(249, 115, 82, 0.55);
  
  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-border: 1px solid rgba(243, 222, 233, 0.95);
  --glass-blur: blur(16px);
  
  --header-bg-scrolled: rgba(253, 246, 247, 0.94);
  --footer-bg: #f5e4ec;
  --thumb-wrap-bg: #fffbfd;
  --modal-bg: #ffffff;
  --theme-toggle-bg: rgba(236, 72, 153, 0.08);
  --theme-btn-active-bg: var(--primary-orange);
  --theme-btn-active-color: #ffffff;
  
  --text-gradient-val: linear-gradient(135deg, #2d2638 15%, var(--primary-orange) 70%, #ec4899 100%);
  --hero-card-bg: rgba(255, 255, 255, 0.85);
  --studio-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(253, 240, 246, 0.95) 80%);
  --shadow-card: 0 16px 36px -10px rgba(220, 180, 200, 0.25);
  --shadow-card-hover: 0 20px 48px -10px rgba(249, 115, 82, 0.22);

  --aurora-1: rgba(249, 115, 82, 0.18);
  --aurora-2: rgba(129, 140, 248, 0.16);
  --aurora-3: rgba(52, 211, 153, 0.12);
  --grain-opacity: 0.06;
  --grain-blend: multiply;
  --story-band: #f9e6ee;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body {
  overflow-x: hidden;
  line-height: 1.65;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  position: relative;
  min-height: 100vh;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Background Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

.text-gradient {
  background: var(--text-gradient-val);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Premium SVG Icon Utilities */
.inline-icon {
  display: inline-block;
  vertical-align: middle;
  width: 14px;
  height: 14px;
  color: currentColor;
  margin-left: 4px;
  margin-right: 2px;
}

.pillar-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 158, 44, 0.08);
  border: 1px solid rgba(255, 158, 44, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-orange);
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(255, 158, 44, 0.1);
  transition: var(--transition-smooth);
}

.about-feature-box:hover .pillar-icon-box {
  background: rgba(255, 158, 44, 0.18);
  border-color: var(--primary-orange);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px var(--primary-orange-glow);
  color: var(--secondary-yellow);
}

.pillar-icon-box svg {
  width: 26px;
  height: 26px;
}

.icon-orange-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-left: 4px;
}

.icon-orange-emblem svg {
  width: 100%;
  height: 100%;
}

.banner-highlight {
  color: var(--secondary-yellow);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Glass Panels */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--border-orange);
  box-shadow: var(--shadow-card-hover);
}

/* Top Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-orange), var(--secondary-yellow));
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* Domain Launch Announcement Top Bar */
.domain-banner {
  background: linear-gradient(90deg, rgba(255, 158, 44, 0.15), rgba(252, 211, 77, 0.2), rgba(255, 158, 44, 0.15));
  border-bottom: 1px solid rgba(255, 158, 44, 0.35);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 110;
  padding: 10px 0;
  font-size: 0.88rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.domain-banner.hidden {
  display: none;
}

.domain-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.banner-badge {
  background: var(--primary-orange);
  color: #0b1120;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.banner-link {
  color: var(--secondary-yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.banner-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  margin-left: 12px;
  transition: color 0.2s;
}

.banner-close-btn:hover {
  color: #fff;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.header.scrolled {
  background: var(--header-bg-scrolled);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  flex-wrap: nowrap;
}

/* Brand Logo */
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-symbol {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 158, 44, 0.15);
  border: 1.5px solid var(--primary-orange);
  box-shadow: 0 0 14px var(--primary-orange-glow);
  overflow: hidden;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.brand-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.brand-link:hover .brand-symbol {
  transform: rotate(6deg) scale(1.08);
  border-color: var(--secondary-yellow);
  box-shadow: 0 0 20px rgba(255, 158, 44, 0.6);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand-dot {
  color: var(--primary-orange);
}

.brand-tag {
  font-size: 0.65rem;
  background: rgba(255, 158, 44, 0.12);
  color: var(--primary-orange);
  padding: 2px 7px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-left: 6px;
  border: 1px solid rgba(255, 158, 44, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-orange);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--primary-orange);
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Switcher Component */
.theme-switcher {
  display: flex;
  align-items: center;
  background: var(--theme-toggle-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 3px;
  gap: 2px;
  transition: var(--transition-smooth);
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 5px 9px;
  border-radius: 18px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.theme-btn.active {
  background: var(--theme-btn-active-bg);
  color: var(--theme-btn-active-color);
  box-shadow: 0 2px 8px var(--primary-orange-glow);
}

.theme-icon {
  width: 13px;
  height: 13px;
  display: block;
}

/* Audio Ambient Toggle Button */
.btn-audio-toggle {
  background: var(--theme-toggle-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.78rem;
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition-smooth);
}

.btn-audio-toggle:hover {
  border-color: var(--primary-orange);
  color: var(--text-primary);
}

.btn-audio-toggle.playing {
  background: rgba(255, 158, 44, 0.15);
  border-color: var(--primary-orange);
  color: var(--primary-orange);
  box-shadow: 0 0 12px var(--primary-orange-glow);
}

.audio-sound-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 12px;
}

.audio-sound-wave span {
  width: 2px;
  height: 4px;
  background: currentColor;
  border-radius: 1px;
}

.btn-audio-toggle.playing .audio-sound-wave span:nth-child(1) {
  animation: soundBounce 0.8s ease-in-out infinite alternate;
}
.btn-audio-toggle.playing .audio-sound-wave span:nth-child(2) {
  animation: soundBounce 0.6s ease-in-out 0.2s infinite alternate;
}
.btn-audio-toggle.playing .audio-sound-wave span:nth-child(3) {
  animation: soundBounce 0.9s ease-in-out 0.4s infinite alternate;
}

@keyframes soundBounce {
  0% { height: 3px; }
  100% { height: 12px; }
}

/* Mobile Nav Toggle */
.nav-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.nav-toggle-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle-btn.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Buttons & Links
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-orange), #ea580c);
  color: #080d1a;
  box-shadow: 0 4px 18px rgba(255, 158, 44, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 158, 44, 0.5);
  color: #000;
}

.btn-secondary {
  background: var(--theme-toggle-bg);
  border-color: var(--border-subtle);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 158, 44, 0.12);
  border-color: var(--primary-orange);
  color: var(--primary-orange);
  transform: translateY(-2px);
}

/* Section Header Typography */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px auto;
}

.section-pretitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ==========================================================================
   01 Hero Section
   ========================================================================== */
.hero-section {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  position: relative;
  padding: 60px 0 100px 0;
}

.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 24px;
  background: rgba(255, 158, 44, 0.09);
  border: 1px solid rgba(255, 158, 44, 0.25);
  margin-bottom: 28px;
  font-size: 0.84rem;
  color: var(--secondary-yellow);
}

.hero-pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-orange);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-orange);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.25); }
}

.hero-title {
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-brandline {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-orange);
  letter-spacing: 0.08em;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.hero-desc {
  font-size: 1.35rem;
  color: var(--text-primary);
  max-width: 660px;
  margin: 0 auto 14px auto;
  font-weight: 600;
  line-height: 1.6;
}

/* The desc reads as one line on desktop; the break only applies on phones */
.hero-break {
  display: none;
}

.hero-sub {
  font-size: 1.02rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 36px auto;
  line-height: 1.75;
}

.hero-sub strong {
  color: var(--primary-orange);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

/* Hero Ambient Architecture Visual */
/* Fox Constellation stage (js/hero-constellation.js) */
.hero-constellation {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16 / 10;
  margin: -6px auto 28px auto;
}

#constellation-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.constellation-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hud-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--border-orange);
  border-style: solid;
  border-width: 0;
}

.hud-corner-tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hud-corner-tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hud-corner-bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hud-corner-br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

.hud-label {
  position: absolute;
  top: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hud-label i {
  font-style: normal;
  color: var(--primary-orange);
}

.hud-label b {
  color: var(--primary-orange);
  font-weight: 600;
}

.hud-label-tl { left: 24px; }
.hud-label-tr { right: 24px; }

.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-orange);
  box-shadow: 0 0 8px var(--primary-orange);
  animation: hud-pulse 2s ease-in-out infinite;
}

@keyframes hud-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hud-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 46px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.hud-caption.is-in {
  animation: caption-in 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes caption-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.scene-steps {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.scene-step {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.scene-step:hover {
  color: var(--text-primary);
  border-color: var(--border-orange);
}

.scene-step.is-active {
  color: var(--primary-orange);
  border-color: var(--border-orange);
  background: var(--theme-toggle-bg);
}

@media (prefers-reduced-motion: reduce) {
  .hud-dot,
  .hud-caption.is-in {
    animation: none;
  }
}

.hero-visual-card {
  margin-top: 20px;
  padding: 24px;
  background: var(--hero-card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: var(--shadow-card);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-orange);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-subtle);
}

/* ==========================================================================
   Ambient Stage (Hero & Story backgrounds)
   ========================================================================== */
.section-ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}

.aurora-1 {
  width: 820px;
  height: 820px;
  top: -260px;
  right: -12%;
  background: radial-gradient(circle, var(--aurora-1) 0%, transparent 65%);
  animation: aurora-drift-1 26s ease-in-out infinite alternate;
}

.aurora-2 {
  width: 620px;
  height: 620px;
  bottom: -220px;
  left: -10%;
  background: radial-gradient(circle, var(--aurora-2) 0%, transparent 65%);
  animation: aurora-drift-2 32s ease-in-out infinite alternate;
}

.aurora-3 {
  width: 460px;
  height: 460px;
  top: 30%;
  left: 38%;
  background: radial-gradient(circle, var(--aurora-3) 0%, transparent 65%);
  animation: aurora-breathe 18s ease-in-out infinite alternate;
}

@keyframes aurora-drift-1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-90px, 70px) scale(1.12); }
}

@keyframes aurora-drift-2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(110px, -60px) scale(1.08); }
}

@keyframes aurora-breathe {
  from { transform: scale(0.9); opacity: 0.6; }
  to   { transform: scale(1.15); opacity: 1; }
}

/* Film grain: turns flat color into a soft, paper-like texture */
.film-grain {
  position: absolute;
  inset: 0;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* Story: a deeper night-sky band that fades in and out at the edges */
.story-ambient {
  background: linear-gradient(180deg, transparent 0%, var(--story-band) 14%, var(--story-band) 86%, transparent 100%);
}

.story-ambient .aurora-1 {
  top: 8%;
  right: -18%;
}

.story-ambient .aurora-2 {
  bottom: 6%;
  left: -16%;
}

@media (prefers-reduced-motion: reduce) {
  .aurora {
    animation: none;
  }
}

/* ==========================================================================
   01.5 Origin Story Section (Why → Need → How)
   ========================================================================== */
.story-timeline {
  list-style: none;
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Golden thread connecting the chapters: a faint track, plus a fill that
   grows with scroll (--thread is set by initStoryThread in main.js) */
.story-timeline::before,
.story-timeline::after {
  content: '';
  position: absolute;
  top: 28px;
  left: 27px;
  width: 2px;
  border-radius: 2px;
}

.story-timeline::before {
  bottom: 28px;
  background: var(--border-subtle);
}

.story-timeline::after {
  height: calc((100% - 56px) * var(--thread, 0));
  background: linear-gradient(180deg, var(--primary-orange) 0%, var(--secondary-yellow) 100%);
  box-shadow: 0 0 12px var(--primary-orange-glow);
  transition: height 0.15s linear;
}

.story-chapter {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 28px;
  align-items: start;
  position: relative;
}

.story-marker {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--story-band);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 0 0 6px var(--story-band);
  position: relative;
  z-index: 1;
  transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.story-marker-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.5s ease;
}

/* A chapter lights up once the thread reaches it */
.story-chapter.is-lit .story-marker {
  background: var(--primary-orange);
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 6px var(--story-band), 0 0 28px var(--primary-orange-glow);
}

.story-chapter.is-lit .story-marker-num {
  color: var(--theme-btn-active-color);
}

.story-card {
  padding: 32px 34px;
}

.story-card:hover {
  transform: translateY(-3px);
}

.story-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-orange);
  margin-bottom: 10px;
}

.story-title {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}

.story-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.story-body + .story-body {
  margin-top: 12px;
}

.story-body strong {
  color: var(--text-primary);
  font-weight: 700;
}

.story-body em {
  font-style: normal;
  color: var(--primary-orange);
  font-weight: 600;
}

/* Closing signature line of a chapter */
.story-signature {
  margin-top: 22px;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--primary-orange);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--text-primary);
}

.story-shift-list {
  list-style: none;
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.story-shift-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  font-size: 0.88rem;
}

.shift-from {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--border-orange);
}

.shift-arrow {
  color: var(--primary-orange);
  font-size: 0.8rem;
}

.shift-to {
  color: var(--text-primary);
  font-weight: 700;
}

.story-steps {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.story-step {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.story-step:hover {
  border-color: var(--border-orange);
}

.story-step-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-orange);
  margin-bottom: 6px;
}

.story-step p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.story-epilogue {
  text-align: center;
  margin-top: 64px;
}

.story-epilogue-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.story-highlight {
  color: var(--primary-orange);
}

/* ==========================================================================
   02 About EUNJO Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.about-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.about-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.about-card-mesh {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.about-feature-box {
  padding: 24px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.about-feature-box:hover {
  border-color: var(--border-orange);
  transform: translateY(-4px);
  background: var(--bg-surface-hover);
  box-shadow: var(--shadow-card-hover);
}

.about-feature-box h4 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.about-feature-box p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   03 EUNJO Universe Section
   ========================================================================== */
.universe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.universe-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.universe-card:hover {
  transform: translateY(-6px);
}

.card-ambient-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--accent, var(--primary-orange)) 0%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
  transition: opacity 0.3s;
}

.universe-card:hover .card-ambient-glow {
  opacity: 0.35;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.universe-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent, var(--primary-orange));
}

.universe-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.universe-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.universe-sub {
  font-size: 0.8rem;
  color: var(--primary-orange);
  font-weight: 600;
  margin-bottom: 12px;
}

.universe-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 24px;
}

.universe-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
}

.universe-link-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  transition: color 0.2s;
}

.universe-card:hover .universe-link-text {
  color: var(--primary-orange);
}

.count-tag {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--text-muted);
}

/* ==========================================================================
   04 Featured Projects Section
   ========================================================================== */
.projects-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-pill {
  background: var(--theme-toggle-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--theme-btn-active-bg);
  border-color: var(--primary-orange);
  color: var(--theme-btn-active-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.project-card {
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-thumb-wrap {
  width: 100%;
  height: 200px;
  position: relative;
  background: var(--thumb-wrap-bg);
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-thumb {
  transform: scale(1.04);
}

.project-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
}

.status-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-prototype { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.status-alpha { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
.status-in-progress { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }
.status-core-spec { background: rgba(234, 179, 8, 0.2); color: #fde047; border: 1px solid rgba(234, 179, 8, 0.4); }
.status-active { background: rgba(52, 211, 153, 0.2); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.4); }
.status-concept { background: rgba(244, 114, 182, 0.2); color: #f472b6; border: 1px solid rgba(244, 114, 182, 0.4); }

.project-info {
  padding: 24px;
}

.project-category {
  font-size: 0.78rem;
  color: var(--primary-orange);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.project-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  font-size: 0.74rem;
  background: var(--theme-toggle-bg);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--text-muted);
}

.project-action {
  padding: 16px 24px 20px 24px;
  border-top: 1px solid var(--border-subtle);
}

.btn-project-view {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 158, 44, 0.08);
  border: 1px solid rgba(255, 158, 44, 0.2);
  color: var(--primary-orange);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-project-view:hover {
  background: var(--theme-btn-active-bg);
  color: var(--theme-btn-active-color);
  border-color: var(--primary-orange);
  box-shadow: 0 4px 16px var(--primary-orange-glow);
}

/* ==========================================================================
   05 AI / Architecture Lab Section (Interactive Diagram)
   ========================================================================== */
.lab-diagram-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lab-flow-wrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}

.lab-node-card {
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-card);
}

.lab-node-card:hover,
.lab-node-card.active {
  border-color: var(--primary-orange);
  background: var(--bg-surface-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px -6px var(--primary-orange-glow);
}

.node-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary-orange);
  font-weight: 700;
  margin-bottom: 8px;
}

.node-type {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.node-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.node-connector {
  position: absolute;
  top: 50%;
  right: -16px;
  width: 16px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-50%);
}

.connector-flow {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--primary-orange), transparent);
  animation: flowLight 2s linear infinite;
}

@keyframes flowLight {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.lab-detail-panel {
  padding: 32px;
  border-radius: 20px;
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1.5px solid var(--border-orange);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.node-detail-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--primary-orange);
  margin-bottom: 8px;
  font-weight: 600;
}

.node-detail-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.node-detail-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 800px;
}

.node-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   06 Creative Studio Section
   ========================================================================== */
.studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.studio-card {
  height: 320px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: var(--transition-smooth);
}

.studio-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-orange);
  box-shadow: var(--shadow-card-hover);
}

.studio-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: var(--studio-card-bg);
  transition: background 0.4s ease;
}

.studio-ambient-circle {
  position: absolute;
  top: 20%;
  left: 20%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
  transition: opacity 0.3s;
}

.studio-card:hover .studio-ambient-circle {
  opacity: 0.65;
}

.studio-content {
  position: relative;
  z-index: 2;
}

.studio-category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-orange);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.studio-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.studio-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   07 Golden Orange Fox Squad
   ========================================================================== */
.fox-squad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

.fox-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
}

.fox-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-orange);
}

.fox-card.bounce {
  animation: foxBounce 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes foxBounce {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-16px) scale(1.05); }
  60% { transform: translateY(-6px) scale(0.98); }
}

.fox-avatar-wrap {
  width: 110px;
  height: 110px;
  position: relative;
  margin-bottom: 16px;
}

.fox-avatar {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.fox-card:hover .fox-avatar {
  transform: scale(1.1);
}

.fox-role-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: var(--bg-dark);
  border: 1px solid var(--border-orange);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  color: var(--primary-orange);
}

.fox-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.fox-badge-pill {
  font-size: 0.72rem;
  color: var(--secondary-yellow);
  font-weight: 600;
  margin-bottom: 10px;
  display: inline-block;
}

.fox-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
}

.fox-speech-bubble {
  position: absolute;
  top: -65px;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  width: 200px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--primary-orange);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

.fox-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--bg-surface);
  border-right: 1px solid var(--primary-orange);
  border-bottom: 1px solid var(--primary-orange);
}

.fox-speech-bubble.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.speech-quote {
  font-size: 0.78rem;
  color: var(--secondary-yellow);
  font-weight: 600;
  line-height: 1.4;
  display: block;
}

.fox-say-btn {
  background: rgba(255, 158, 44, 0.1);
  border: 1px solid rgba(255, 158, 44, 0.25);
  color: var(--primary-orange);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.fox-say-btn:hover {
  background: var(--theme-btn-active-bg);
  color: var(--theme-btn-active-color);
}

/* Mascot Hero Showcase Card */
.fox-hero-showcase {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 36px 40px;
  border-radius: 28px;
  margin-bottom: 44px;
  background: var(--card-bg);
  border: 1.5px solid var(--border-orange);
  box-shadow: 0 20px 48px -12px rgba(255, 158, 44, 0.2);
  position: relative;
  overflow: hidden;
}

.fox-hero-img-wrap {
  position: relative;
  width: 170px;
  height: 170px;
  flex-shrink: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid var(--primary-orange);
  box-shadow: 0 12px 30px var(--primary-orange-glow);
}

.fox-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.fox-hero-showcase:hover .fox-hero-img {
  transform: scale(1.06);
}

.fox-hero-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 20px rgba(255, 158, 44, 0.4);
  pointer-events: none;
}

.fox-hero-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fox-hero-badge {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--primary-orange);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.fox-hero-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
}

.fox-hero-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   08 Philosophy Section (Cinematic Starlight & Nebula)
   ========================================================================== */
.philosophy-section {
  text-align: center;
  position: relative;
  padding: 160px 0;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.philosophy-bg-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.philosophy-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.1);
  transform: scale(1.03);
}

.philosophy-bg-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 50% 50%, rgba(7, 9, 14, 0.15) 0%, rgba(7, 9, 14, 0.75) 65%, var(--bg-dark) 100%),
    linear-gradient(180deg, var(--bg-dark) 0%, transparent 22%, transparent 78%, var(--bg-dark) 100%);
}

[data-theme="sunshine"] .philosophy-bg-vignette {
  background: 
    radial-gradient(circle at 50% 50%, rgba(251, 249, 244, 0.2) 0%, rgba(251, 249, 244, 0.8) 70%, var(--bg-dark) 100%),
    linear-gradient(180deg, var(--bg-dark) 0%, transparent 25%, transparent 75%, var(--bg-dark) 100%);
}

[data-theme="fairytale"] .philosophy-bg-vignette {
  background: 
    radial-gradient(circle at 50% 50%, rgba(253, 246, 247, 0.2) 0%, rgba(253, 246, 247, 0.8) 70%, var(--bg-dark) 100%),
    linear-gradient(180deg, var(--bg-dark) 0%, transparent 25%, transparent 75%, var(--bg-dark) 100%);
}

.philosophy-inner-container {
  position: relative;
  z-index: 3;
  width: 100%;
}

.philosophy-quote-card {
  max-width: 880px;
  margin: 0 auto;
  padding: 68px 48px;
  border-radius: 36px;
  border: 1.5px solid var(--border-orange);
  background: var(--card-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.5), 0 0 45px var(--primary-orange-glow);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.philosophy-quote-card:hover {
  border-color: var(--secondary-yellow);
  box-shadow: 0 36px 80px -15px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 158, 44, 0.4);
}

.philosophy-aura-ring {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-orange-glow) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: auraPulse 6s ease-in-out infinite alternate;
}

@keyframes auraPulse {
  0% { opacity: 0.4; transform: translateX(-50%) scale(0.9); }
  100% { opacity: 0.85; transform: translateX(-50%) scale(1.15); }
}

.philosophy-badge-header {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px 6px 8px;
  border-radius: 30px;
  background: rgba(255, 158, 44, 0.12);
  border: 1px solid var(--border-orange);
  margin-bottom: 28px;
}

.philosophy-mascot-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--primary-orange);
  box-shadow: 0 0 10px var(--primary-orange-glow);
}

.philosophy-badge-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--secondary-yellow);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.philosophy-main-quote {
  font-size: 2.7rem;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  background: var(--text-gradient-val);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 16px rgba(255, 158, 44, 0.25));
}

.philosophy-divider-spark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 24px auto;
  max-width: 280px;
}

.philosophy-divider-spark span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-orange), transparent);
}

.philosophy-divider-spark svg {
  width: 20px;
  height: 20px;
  color: var(--primary-orange);
  animation: starTwinkle 3s ease-in-out infinite;
}

@keyframes starTwinkle {
  0%, 100% { transform: scale(0.9) rotate(0deg); opacity: 0.7; }
  50% { transform: scale(1.2) rotate(15deg); opacity: 1; filter: drop-shadow(0 0 8px var(--primary-orange)); }
}

.philosophy-en-quote {
  font-size: 1.18rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.65;
  max-width: 660px;
  margin: 0 auto 28px auto;
  font-weight: 400;
}

.philosophy-footer-tag {
  font-size: 0.84rem;
  color: var(--primary-orange);
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.9;
}

/* ==========================================================================
   09 Explore Section
   ========================================================================== */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.explore-subdomain-card {
  padding: 24px;
  border-radius: 16px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  transition: var(--transition-smooth);
}

.explore-subdomain-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-orange);
}

.explore-domain-title {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.explore-domain-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.explore-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--primary-orange);
  font-weight: 600;
  margin-top: 14px;
}

/* ==========================================================================
   10 Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--footer-bg);
  padding: 80px 0 40px 0;
  position: relative;
  z-index: 10;
  transition: background-color 0.4s ease;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.footer-brandline {
  color: var(--primary-orange);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-slogan {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 420px;
}

.footer-nav-col h4 {
  font-size: 0.9rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.footer-nav-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-nav-col a:hover {
  color: var(--primary-orange);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-copy-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Project Detail Modal
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  background: var(--modal-bg);
  border: 1px solid var(--border-orange);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: var(--theme-toggle-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: var(--theme-btn-active-bg);
  color: var(--theme-btn-active-color);
}

.modal-header-visual {
  position: relative;
  height: 240px;
  background: var(--thumb-wrap-bg);
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  background: linear-gradient(0deg, var(--modal-bg) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-title-overlay h2 {
  font-size: 1.8rem;
  color: var(--text-primary);
  font-weight: 800;
}

.modal-category {
  font-size: 0.84rem;
  color: var(--primary-orange);
  font-weight: 600;
}

.modal-body-content {
  padding: 28px;
}

.modal-body-content h4 {
  font-size: 0.92rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 16px;
  margin-bottom: 8px;
}

.modal-body-content h4:first-child {
  margin-top: 0;
}

.modal-desc {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.modal-details {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.modal-footer-action {
  padding: 20px 28px 24px 28px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* ==========================================================================
   Scroll Reveal Animation Classes
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
