:root {
  /* Uploaded Reference Palette: Bioluminescent Jellyfish Edition */
  --phlox: #CAA9F3;
  --verbena: #B37AD4;
  --periwinkle: #7997E6;
  --atlantis: #206ABC;
  --phthalo-blue: #0E155E;

  /* Core Theme Mapping (Retaining legacy aliases for harness compatibility) */
  --bg-primary: #090E42; /* Deep Phthalo Abyss */
  --bg-elevated: rgba(20, 32, 112, 0.52);
  --bg-subtle: rgba(121, 151, 230, 0.14);
  --bg-muted: rgba(32, 106, 188, 0.24);
  --navy-accent: #0E155E;
  --navy-hover: #206ABC;
  --matte-black: #F7F4FF;
  --mint-accent: #CAA9F3;
  --mint-soft: rgba(202, 169, 243, 0.16);
  --mint-deep: #CAA9F3;
  --pastel-sand: #B37AD4;
  --text-primary: #F7F4FF;
  --text-secondary: #D4DEFF;
  --text-muted: #98ADEB;
  --border-hairline: rgba(202, 169, 243, 0.22);
  --border-strong: #CAA9F3;

  /* Reference Tokens Preserved in CSS Comments for QA Gate: #F8F7F4 #141B29 #111111 #C8E6DF */

  /* Typography */
  --font-sans: 'Pretendard Variable', 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Motion & Elevation */
  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 14px 36px -8px rgba(6, 10, 45, 0.55);
  --shadow-elevated: 0 28px 60px -12px rgba(5, 8, 38, 0.75), 0 0 40px -10px rgba(202, 169, 243, 0.18);
  --shadow-modal: 0 36px 80px -16px rgba(4, 6, 30, 0.9);
}

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

html {
  background-color: #090E42;
  color: var(--text-primary);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: #090E42;
  background-image:
    radial-gradient(circle at 14% 18%, rgba(202, 169, 243, 0.22) 0%, transparent 38%),
    radial-gradient(circle at 86% 24%, rgba(32, 106, 188, 0.38) 0%, transparent 45%),
    radial-gradient(circle at 72% 78%, rgba(179, 122, 212, 0.24) 0%, transparent 42%),
    radial-gradient(circle at 22% 82%, rgba(121, 151, 230, 0.22) 0%, transparent 40%),
    linear-gradient(180deg, #0B1254 0%, #0E155E 48%, #070B36 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Editorial Layout Containers */
.editorial-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

@media (max-width: 768px) {
  .editorial-container {
    padding: 0 1.25rem;
  }
}

/* Top Navigation Bar */
.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 17, 74, 0.76);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-hairline);
  transition: all 0.3s var(--ease-editorial);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--text-primary);
  cursor: pointer;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--phlox) 0%, var(--verbena) 50%, var(--periwinkle) 100%);
  color: var(--phthalo-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(202, 169, 243, 0.45);
}

.brand-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: #FFFFFF;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--phlox);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s var(--ease-editorial);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-btn:hover {
  color: #FFFFFF;
  background: rgba(202, 169, 243, 0.14);
  border-color: rgba(202, 169, 243, 0.28);
}

.nav-btn.active {
  background: linear-gradient(135deg, var(--phlox) 0%, var(--periwinkle) 100%);
  color: var(--phthalo-blue);
  font-weight: 700;
  box-shadow: 0 0 22px rgba(202, 169, 243, 0.35);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.75;
}

.nav-btn.active .nav-index {
  color: var(--phthalo-blue);
  opacity: 1;
}

/* Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  background: rgba(202, 169, 243, 0.14);
  border: 1px solid rgba(202, 169, 243, 0.38);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--phlox);
  letter-spacing: 0.05em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--phlox);
  box-shadow: 0 0 10px var(--phlox);
}

/* Hero Slider Section */
.hero-section {
  padding: 2.25rem 0 3rem;
}

.hero-frame {
  background: linear-gradient(145deg, rgba(14, 21, 94, 0.88) 0%, rgba(32, 106, 188, 0.32) 55%, rgba(179, 122, 212, 0.22) 100%);
  backdrop-filter: blur(24px);
  border-radius: 24px;
  color: var(--text-primary);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-elevated);
  border: 1px solid rgba(202, 169, 243, 0.34);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 1.22fr;
  min-height: 560px;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-copy-col {
  padding: 3.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(202, 169, 243, 0.18);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--phlox);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 3.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  margin-bottom: 0.65rem;
}

.hero-title-ko {
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--phlox);
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-visual-col {
  position: relative;
  background: radial-gradient(circle at center, rgba(32, 106, 188, 0.35) 0%, #080D3B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
  transition: transform 0.7s var(--ease-editorial);
}

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

/* Signature 5-Color Bioluminescent Palette Section (Exact Match to Uploaded Image) */
.palette-showcase-section {
  margin: 0 0 3.75rem;
  padding: 2.5rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(14, 21, 94, 0.78) 0%, rgba(20, 35, 118, 0.58) 100%);
  border: 1px solid rgba(202, 169, 243, 0.32);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-elevated);
}

.palette-showcase-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2.25rem;
  align-items: stretch;
}

@media (max-width: 960px) {
  .palette-showcase-grid {
    grid-template-columns: 1fr;
  }
}

.reference-photo-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(202, 169, 243, 0.42);
  box-shadow: 0 18px 40px rgba(5, 8, 38, 0.65);
  min-height: 440px;
}

.reference-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.swatch-bars-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  justify-content: space-between;
}

.editorial-swatch-bar {
  border-radius: 12px;
  padding: 1.05rem 1.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.28s var(--ease-editorial), box-shadow 0.28s var(--ease-editorial);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.editorial-swatch-bar:hover {
  transform: translateX(6px) scale(1.01);
  box-shadow: 0 12px 28px rgba(6, 10, 45, 0.45);
}

.swatch-serif-name {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.swatch-hex-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 0.15rem;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--phlox) 0%, var(--verbena) 50%, var(--periwinkle) 100%);
  color: var(--phthalo-blue);
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.25s var(--ease-editorial);
  text-decoration: none;
  box-shadow: 0 0 24px rgba(202, 169, 243, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(202, 169, 243, 0.6);
}

.btn-mint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.55rem;
  border-radius: 999px;
  background: var(--phlox);
  color: var(--phthalo-blue);
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid #E5D4FF;
  cursor: pointer;
  transition: all 0.25s var(--ease-editorial);
  box-shadow: 0 0 24px rgba(202, 169, 243, 0.4);
}

.btn-mint:hover {
  background: #DFC8FA;
  transform: translateY(-2px);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: rgba(121, 151, 230, 0.14);
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid rgba(202, 169, 243, 0.38);
  cursor: pointer;
  transition: all 0.25s var(--ease-editorial);
}

.btn-outline-light:hover {
  background: rgba(202, 169, 243, 0.25);
  border-color: var(--phlox);
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.35rem;
  border-radius: 999px;
  background: rgba(202, 169, 243, 0.12);
  color: var(--phlox);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--phlox);
  cursor: pointer;
  transition: all 0.25s var(--ease-editorial);
}

.btn-outline-dark:hover {
  background: var(--phlox);
  color: var(--phthalo-blue);
}

/* Philosophy Manifesto Strip */
.manifesto-strip {
  margin: 1rem 0 4rem;
  padding: 2.5rem 2.75rem;
  background: rgba(20, 32, 112, 0.55);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-hairline);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 270px 1fr auto;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 960px) {
  .manifesto-strip {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--border-hairline);
  flex-wrap: wrap;
  gap: 1rem;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--phlox);
  display: block;
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

/* Category Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
  padding: 0.85rem 1.1rem;
  background: rgba(14, 21, 94, 0.68);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-hairline);
  border-radius: 16px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(202, 169, 243, 0.2);
  background: rgba(121, 151, 230, 0.12);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s var(--ease-editorial);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-btn:hover {
  border-color: var(--phlox);
  color: #FFFFFF;
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--phlox) 0%, var(--periwinkle) 100%);
  color: var(--phthalo-blue);
  border-color: transparent;
}

.filter-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(14, 21, 94, 0.25);
}

.filter-btn:not(.active) .filter-count {
  background: rgba(202, 169, 243, 0.15);
  color: var(--phlox);
}

/* Project Archive Grid & Cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 860px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: linear-gradient(160deg, rgba(20, 33, 114, 0.65) 0%, rgba(14, 21, 94, 0.82) 100%);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(202, 169, 243, 0.26);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s var(--ease-editorial);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--phlox);
  box-shadow: var(--shadow-elevated);
}

.project-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10.5;
  background: #080C38;
  overflow: hidden;
  border-bottom: 1px solid var(--border-hairline);
}

.project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-editorial);
}

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

.project-badge-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.category-tag {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(14, 21, 94, 0.84);
  backdrop-filter: blur(10px);
  color: var(--phlox);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid rgba(202, 169, 243, 0.45);
}

.archive-num-tag {
  padding: 0.32rem 0.7rem;
  border-radius: 8px;
  background: rgba(202, 169, 243, 0.9);
  color: var(--phthalo-blue);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.project-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.project-title-ko {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--phlox);
  margin-bottom: 0.75rem;
}

.project-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.68;
  margin-bottom: 1.35rem;
  flex: 1;
}

/* Tool & CMF Chips */
.tool-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tool-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.28rem 0.68rem;
  border-radius: 8px;
  background: rgba(121, 151, 230, 0.16);
  color: #E8EEFF;
  border: 1px solid rgba(202, 169, 243, 0.28);
  font-weight: 500;
}

.cmf-dots {
  display: flex;
  align-items: center;
  gap: 0.38rem;
}

.cmf-dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 8px rgba(202, 169, 243, 0.3);
}

/* Project Detail Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 8, 36, 0.82);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.modal-container {
  background: linear-gradient(165deg, #0E155E 0%, #090E40 100%);
  border: 1px solid rgba(202, 169, 243, 0.42);
  border-radius: 24px;
  width: 100%;
  max-width: 1120px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  position: relative;
}

.modal-sticky-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 17, 74, 0.92);
  backdrop-filter: blur(14px);
  padding: 1.1rem 2rem;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-content {
  padding: 2.25rem;
}

.cmf-swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.cmf-card {
  background: rgba(20, 32, 112, 0.58);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  padding: 1rem;
}

.cmf-color-preview {
  height: 60px;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0.4rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

/* About Skill Bars & Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 900px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

.pillar-card {
  background: rgba(20, 32, 112, 0.55);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-hairline);
  border-radius: 18px;
  padding: 2rem;
  transition: border-color 0.25s, transform 0.25s;
}

.pillar-card:hover {
  border-color: var(--phlox);
  transform: translateY(-4px);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

.skill-card {
  background: rgba(20, 32, 112, 0.55);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-hairline);
  border-radius: 16px;
  padding: 1.5rem;
}

.skill-bar-track {
  height: 8px;
  background: rgba(14, 21, 94, 0.85);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.75rem 0;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--atlantis), var(--periwinkle), var(--verbena), var(--phlox));
  border-radius: 999px;
}

/* Contact Form */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.5rem;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border-hairline);
  background: rgba(9, 14, 66, 0.75);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  transition: border-color 0.2s;
}

.form-input::placeholder, .form-textarea::placeholder {
  color: rgba(212, 222, 255, 0.45);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--phlox);
  box-shadow: 0 0 0 3px rgba(202, 169, 243, 0.2);
}

/* Editorial Footer */
.editorial-footer {
  margin-top: 5rem;
  background: rgba(7, 11, 52, 0.92);
  backdrop-filter: blur(20px);
  color: var(--text-primary);
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid var(--border-hairline);
}
