/* ============================================
   Lee Minung — Portfolio Dashboard v2
   4 tabs: Overview / Projects / About / Contact
   ============================================ */

/* ===== Tokens ===== */
:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --surface-2: #F4F4F0;
  --surface-3: #ECECE6;
  --ink: #0F0F0F;
  --ink-2: #2A2A2A;
  --muted: #6B6B6B;
  --muted-2: #9A9A9A;
  --line: #E6E6E0;
  --line-2: #D4D4CE;
  --accent: #FF5A36;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(255, 90, 54, 0.08);

  --shadow-1: 0 1px 2px rgba(15,15,15,0.04);
  --shadow-2: 0 4px 16px rgba(15,15,15,0.06);
  --shadow-3: 0 12px 40px rgba(15,15,15,0.12);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --sidebar-w: 280px;
  --max-w: 1440px;

  --font-display: 'Space Grotesk', 'Pretendard', sans-serif;
  --font-body: 'Pretendard', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="dark"] {
  --bg: #0B0C0E;
  --surface: #131418;
  --surface-2: #191A1F;
  --surface-3: #22232A;
  --ink: #F5F5F0;
  --ink-2: #D4D4CE;
  --muted: #8A8A85;
  --muted-2: #6B6B66;
  --line: #22232A;
  --line-2: #2C2D34;
  --accent: #FF7A5C;
  --accent-ink: #0B0C0E;
  --accent-soft: rgba(255, 122, 92, 0.10);

  --shadow-1: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-2: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-3: 0 12px 40px rgba(0,0,0,0.6);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .25s ease, color .25s ease;
}
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ===== App shell ===== */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
  height: 100vh;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  border-right: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.sidebar-mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.sidebar-brand .name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.sidebar-brand .role {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.sidebar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 28px;
}
.sidebar-status .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
  animation: pulse 2s infinite;
}
.sidebar-status .text { font-size: 12px; font-weight: 500; }
.sidebar-status .sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  margin-left: auto;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.sidebar-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  padding: 0 10px;
  margin-bottom: 8px;
  margin-top: 4px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 24px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 11px 12px;
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition: background .15s ease, color .15s ease;
  position: relative;
}
.nav-item:hover { background: var(--surface-2); }
.nav-item.on {
  background: var(--ink);
  color: var(--bg);
}
.nav-item .nav-icon {
  width: 18px; height: 18px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  opacity: 0.85;
}
.nav-item .nav-icon svg { width: 100%; height: 100%; }
.nav-item .nav-count,
.nav-item .kbd {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.nav-item.on .nav-count { color: var(--bg); opacity: 0.6; }
.nav-item .kbd {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-2);
  opacity: 0;
  transition: opacity .15s ease;
}
.nav-item:hover .kbd { opacity: 1; }
.nav-item.on .kbd { opacity: 0; }

.sidebar-spacer { flex: 1; }

.sidebar-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.sidebar-foot-row { display: flex; gap: 6px; }
.toggle-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: all .15s ease;
}
.toggle-btn:hover { color: var(--ink); border-color: var(--line-2); }
.toggle-btn.on {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.toggle-btn svg { width: 12px; height: 12px; }
.sidebar-foot .copyright {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
  text-align: center;
  padding-top: 4px;
}

/* ============================================
   MAIN
   ============================================ */
.main {
  position: relative;
  overflow-y: auto;
  height: 100vh;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.main::-webkit-scrollbar { width: 6px; }
.main::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.main-inner {
  padding: 28px clamp(20px, 3vw, 40px);
  max-width: var(--max-w);
}

.view-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.view-head .crumb {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.view-head h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
}
.view-head .sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
  max-width: 600px;
  text-wrap: pretty;
}
.view-head .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}
.view-head .meta .v { color: var(--ink); font-weight: 500; }

/* ============================================
   OVERVIEW
   ============================================ */
.overview {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}

.identity-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  align-items: center;
}
.identity-avatar {
  width: 88px; height: 88px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), color-mix(in oklab, var(--accent) 60%, var(--ink)));
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  position: relative;
  overflow: hidden;
}
.identity-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(255,255,255,0.15));
}
.identity-info .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.identity-info h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 6px;
}
.identity-info h2 .en {
  color: var(--muted);
  font-weight: 400;
  margin-left: 8px;
  font-size: 0.7em;
}
.identity-info .tagline {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
  text-wrap: pretty;
}
.identity-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: all .15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); border-color: var(--line-2); }
.btn.primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.accent {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn.accent:hover { filter: brightness(1.05); }
.btn svg { width: 14px; height: 14px; }

/* KPI */
.kpi-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.kpi {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}
.kpi .k {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.kpi .v {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.kpi .v .unit {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}
.kpi .sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.kpi .accent { color: var(--accent); }
.kpi.feature {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.kpi.feature .k, .kpi.feature .sub { color: var(--bg); opacity: 0.7; }
.kpi.feature .v { color: var(--bg); }
.kpi.feature .accent { color: var(--accent); }

/* Featured */
.featured-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.card-head h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.card-head .link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 0;
}
.card-head .link:hover { color: var(--accent); }

.featured-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.featured-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid transparent;
  text-align: left;
  width: 100%;
  transition: all .15s ease;
}
.featured-item:hover {
  background: var(--surface);
  border-color: var(--line-2);
  transform: translateX(2px);
}
.featured-item .swatch {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}
.featured-item .ttl {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.featured-item .meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 3px;
}
.featured-item .arrow { color: var(--muted); transition: all .15s ease; }
.featured-item:hover .arrow { color: var(--accent); transform: translateX(2px); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.cat-tile {
  text-align: left;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: all .15s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cat-tile:hover { background: var(--surface); border-color: var(--line-2); }
.cat-tile .ck {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cat-tile .cv {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 2px;
}
.cat-tile .cv .unit { font-size: 12px; color: var(--muted); margin-left: 4px; font-weight: 400; }

/* Highlight + Skills */
.highlight-card {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s ease;
}
.highlight-card:hover { transform: translateY(-2px); }
.highlight-card::before {
  content: "";
  position: absolute;
  top: -40%; right: -20%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}
.highlight-card .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.highlight-card .label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot { 50% { opacity: 0.3; } }
.highlight-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
}
.highlight-card p {
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.8;
  margin: 0;
}
.highlight-card .progress-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.highlight-card .progress-bar {
  height: 5px;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  overflow: hidden;
}
.highlight-card .progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 1.5s cubic-bezier(.2,.8,.2,1);
}
.highlight-card .progress-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0.7;
  text-transform: uppercase;
}

/* Skill mini */
.skill-mini-list { display: flex; flex-direction: column; gap: 10px; }
.skill-mini {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.skill-mini:last-child { border-bottom: 0; padding-bottom: 0; }
.skill-mini:first-child { padding-top: 0; }
.skill-mini .nm { font-weight: 500; color: var(--ink); }
.skill-mini-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.skill-mini-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 7px;
}

/* ============================================
   PROJECTS VIEW
   ============================================ */
.projects-view { display: flex; flex-direction: column; gap: 16px; }

.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: fit-content;
}
.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  transition: all .15s ease;
}
.cat-tab:hover { color: var(--ink); }
.cat-tab.on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-1);
}
.cat-tab .ct-count {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--muted);
}
.cat-tab.on .ct-count { background: var(--accent); color: var(--accent-ink); }

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.proj-card {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  position: relative;
  overflow: visible;
  cursor: pointer;
}
.proj-card:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}
.proj-card.on {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.proj-card .pcv {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}
.proj-card .pcv canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.proj-card .pcv .pc-tag {
  position: absolute;
  top: 8px; left: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.proj-card .pcv .pc-status {
  position: absolute;
  top: 8px; right: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 3px 6px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pc-status.released { background: #DCFCE7; color: #166534; }
.pc-status.wip { background: #FEF3C7; color: #92400E; }
[data-theme="dark"] .pc-status.released { background: rgba(34,197,94,0.18); color: #4ADE80; }
[data-theme="dark"] .pc-status.wip { background: rgba(250,204,21,0.18); color: #FACC15; }

.proj-card .pc-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.2;
}
.proj-card .pc-tagline {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.proj-card .pc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.proj-card .pc-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.proj-card .tag {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--muted);
  letter-spacing: 0.04em;
}
.proj-card .pc-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

/* ============================================
   CARD HOVER PREVIEW PANEL
   ============================================ */
@media (hover: hover) {
  .preview-panel {
    position: absolute;
    top: 0;
    left: calc(100% + 8px);
    width: 220px;
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 200ms ease, transform 200ms ease;
  }
  .proj-card:hover .preview-panel {
    opacity: 1;
    transform: translateX(0);
  }
  /* 3열 그리드 마지막 열 — 프리뷰를 왼쪽으로 표시 */
  .proj-grid .proj-card:nth-child(3n) .preview-panel {
    left: auto;
    right: calc(100% + 8px);
    transform: translateX(6px);
  }
  .proj-grid .proj-card:nth-child(3n):hover .preview-panel {
    transform: translateX(0);
  }
  .preview-visual {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-2);
    position: relative;
  }
  .preview-visual canvas {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
  }
  .preview-tagline {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .preview-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
  }
}

@media (hover: none) {
  .preview-panel {
    display: none;
  }
}

/* ============================================
   PROJECT DRAWER
   ============================================ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(2px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.drawer-overlay.on { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(720px, 90vw);
  height: 100vh;
  background: var(--bg);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-3);
  z-index: 100;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.drawer.on { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background: var(--surface);
}
.drawer-head .title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.drawer-close {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .15s ease;
}
.drawer-close:hover { color: var(--ink); border-color: var(--line-2); }
.drawer-close svg { width: 12px; height: 12px; }

.drawer-body {
  overflow-y: auto;
  padding: 24px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.drawer-hero { display: flex; flex-direction: column; gap: 12px; }
.drawer-hero .row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.drawer-hero .role-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.drawer-hero h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
}
.drawer-hero .tagline {
  font-size: 16px;
  color: var(--ink-2);
  margin: 0;
  text-wrap: pretty;
}

.drawer-visual {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  width: 100%;
}
.drawer-visual canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.drawer-visual .badge {
  position: absolute;
  bottom: 10px; left: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
}
.drawer-visual .badge .rec {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 1.5s infinite;
}

.drawer-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.drawer-meta .cell {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.drawer-meta .cell:nth-child(2n) { border-right: 0; }
.drawer-meta .cell:nth-last-child(-n+2) { border-bottom: 0; }
.drawer-meta .k {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.drawer-meta .v { font-size: 13px; font-weight: 500; }

.drawer-section h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
  font-weight: 500;
}
.drawer-bullets { display: flex; flex-direction: column; gap: 10px; }
.drawer-bullets li {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  padding-left: 20px;
  position: relative;
}
.drawer-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 1px;
  background: var(--accent);
}

.drawer-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.drawer-tags .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.drawer-foot {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.drawer-progress {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drawer-progress .progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-progress .target { font-size: 13px; font-weight: 500; }
.drawer-progress .eta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.drawer-progress .bar {
  height: 6px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}
.drawer-progress .fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 1.4s cubic-bezier(.2,.8,.2,1);
}
.drawer-progress .pct {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}

/* ============================================
   ABOUT VIEW (now includes Skills)
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
}

.about-bio {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.about-bio p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 16px;
  color: var(--ink-2);
  text-wrap: pretty;
}
.about-bio p:last-child { margin: 0; }
.about-bio strong {
  color: var(--ink);
  font-weight: 600;
  background: linear-gradient(transparent 60%, var(--accent-soft) 60%);
  padding: 0 2px;
}

.about-side { display: flex; flex-direction: column; gap: 16px; }

.profile-card,
.timeline-card,
.skills-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.section-h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-h4 .sub {
  text-transform: none;
  letter-spacing: 0;
  font-size: 10px;
  color: var(--muted-2);
}

.profile-rows { display: flex; flex-direction: column; gap: 10px; }
.profile-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  font-size: 13px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.profile-row:last-child { border-bottom: 0; padding-bottom: 0; }
.profile-row .k {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.profile-row .v { font-weight: 500; }

.timeline-list { display: flex; flex-direction: column; gap: 14px; position: relative; padding-left: 16px; }
.timeline-list::before {
  content: "";
  position: absolute;
  left: 4px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--line);
}
.timeline-item { position: relative; padding-left: 4px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -16px; top: 6px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
}
.timeline-item .yr {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.timeline-item .ttl { font-size: 13px; font-weight: 500; }
.timeline-item .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Skills — 역할 단위 그룹 레이아웃 */
.skill-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.skill-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skill-group-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.skill-group-role {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.skill-group-desc {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.skill-group-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.skill-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.skill-item:last-child { border-bottom: 0; padding-bottom: 0; }
.skill-item:first-child { padding-top: 0; }
.skill-item-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}
.skill-item-link {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.skill-item-link:hover { border-bottom-color: var(--accent); }

.keywords {
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.keyword-list { display: flex; flex-wrap: wrap; gap: 6px; }
.keyword-list .kw {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

/* ============================================
   CONTACT VIEW
   ============================================ */
.contact-view {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
  text-wrap: pretty;
}
.channel-list { display: flex; flex-direction: column; gap: 4px; }
.channel {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 12px;
  border-radius: var(--radius);
  transition: all .15s ease;
  border: 1px solid transparent;
}
.channel:hover { border-color: var(--line); background: var(--surface-2); transform: translateX(2px); }
.channel .k {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.channel .v { font-size: 14px; font-weight: 500; word-break: break-all; }
.channel .arrow { color: var(--muted); transition: all .15s ease; }
.channel:hover .arrow { color: var(--accent); transform: translateX(3px); }

.cta-card {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: "";
  position: absolute;
  bottom: -40%; right: -20%;
  width: 240px; height: 240px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  opacity: 0.5;
}
.cta-card h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  position: relative;
}
.cta-card p {
  font-size: 13px;
  opacity: 0.75;
  margin: 0;
  position: relative;
  color: var(--bg);
}
.cta-card .btn { margin-top: auto; position: relative; }

/* ============================================
   MOBILE
   ============================================ */
.mobile-bar { display: none; }
.mobile-menu { display: none; }

@media (max-width: 1023px) {
  .app { grid-template-columns: 1fr; height: auto; }
  .sidebar { display: none; }

  .mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
  }
  .mobile-bar .brand { display: flex; align-items: center; gap: 10px; }
  .mobile-bar .sidebar-mark { width: 32px; height: 32px; font-size: 14px; border-radius: 8px; }
  .mobile-bar .nm { font-family: var(--font-display); font-size: 14px; font-weight: 600; }
  .mobile-bar .role { font-family: var(--font-mono); font-size: 9px; color: var(--muted); margin-top: 1px; }
  .mobile-bar .right { display: flex; gap: 6px; align-items: center; }
  .menu-btn {
    width: 36px; height: 36px;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
  }

  .main { height: auto; overflow: visible; }
  .main-inner { padding: 20px 16px 80px; }

  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 200;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.2,.8,.2,1);
  }
  .mobile-menu.on { transform: translateX(0); }
  .mobile-menu-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu .nav-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .overview, .about-grid, .contact-view { grid-template-columns: 1fr; }
  .skill-groups { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .drawer-meta { grid-template-columns: 1fr 1fr; }
  .identity-card { grid-template-columns: auto 1fr; }
  .identity-cta { grid-column: 1 / -1; flex-direction: row; }
  .identity-cta .btn { flex: 1; }
  .skills-block { grid-template-columns: 1fr; gap: 20px; }

  .view-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .view-head .meta { text-align: left; }
  .drawer { width: 100vw; }
}

@media (max-width: 600px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .identity-card { padding: 20px; gap: 16px; }
  .identity-avatar { width: 64px; height: 64px; font-size: 24px; }
  .identity-info h2 { font-size: 24px; }
  .identity-cta { flex-direction: column; }
  .drawer-body { padding: 18px 18px 24px; }
  .cat-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .cat-tab { white-space: nowrap; }
}

/* ===== Anim ===== */
@keyframes fadein {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.fadein { animation: fadein .35s cubic-bezier(.2,.8,.2,1) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============================================
   PROJECT DETAIL — FULL PAGE
   ============================================ */

/* 상세 진입 시 app 셸 단순화 */
.app-detail {
  grid-template-columns: 1fr;
}

.main-detail {
  grid-column: 1 / -1;
}

/* 풀 페이지 컨테이너 */
.proj-detail {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* 뒤로가기 네비게이션 바 */
.proj-detail-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.proj-detail-back {
  flex-shrink: 0;
}

.proj-detail-crumb {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* 헤더 */
.proj-detail-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.proj-detail-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* drawer-hero role-chip 재사용을 위한 보완 */
.proj-detail-chips .drawer-hero.role-chip,
.proj-detail-chips .role-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.proj-detail-chips .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--muted);
  letter-spacing: 0.04em;
}

.proj-detail-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

.proj-detail-tagline {
  font-size: 18px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.55;
  text-wrap: pretty;
}

/* 배너 비주얼 */
.proj-detail-banner {
  position: relative;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.proj-detail-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* 팔레트 스와치 */
.proj-detail-palette {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 6px;
}

.proj-detail-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: default;
}

/* 본문 */
.proj-detail-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.proj-detail-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.proj-detail-section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.proj-detail-summary {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0;
  text-wrap: pretty;
}

/* 찾을 수 없음 */
.proj-detail-not-found {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 64px 0;
  align-items: flex-start;
}

@media (max-width: 640px) {
  .proj-detail {
    padding: 20px 16px 48px;
    gap: 24px;
  }
  .proj-detail-title { font-size: 28px; }
  .proj-detail-tagline { font-size: 15px; }
  .proj-detail-banner { aspect-ratio: 4 / 3; }
}
