/* =========================================================
   B안 — 다크 우선, 유리 질감, 움직이는 포트폴리오
   ========================================================= */

/* ---------- 색상 토큰 (다크 기본) ---------- */
:root {
  --bg: #07090f;
  --bg-2: #0b0e17;
  --surface: rgba(255, 255, 255, .035);
  --surface-strong: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #eef1f7;
  --muted: #929cb0;
  --faint: #7a8496; /* 배경 대비 4.5:1 이상 */
  --a1: #8b7bff;
  --a2: #38d0f5;
  --a3: #ff7ab8;
  --grad: linear-gradient(100deg, var(--a1), var(--a2) 55%, var(--a3));
  --on-accent: #07090f;
  --focus: #ffb44d;
  --modal-bg: #0e1220;
  --code-bg: #05070c;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);

  --c-lab: #7d8aa3;
  --c-research: #7b8cff;
  --c-industry: #2fd6a3;
  --c-data: #b58bff;
  --c-dev: #ff9d5c;
  --c-award: #ff6fa8;
  --c-plan: #4b5366;

  --r-lg: 22px;
  --r-md: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* 라이트 테마 (시스템 설정 또는 직접 선택) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f6fb; --bg-2: #eceef6;
    --surface: rgba(255, 255, 255, .7); --surface-strong: #ffffff;
    --border: rgba(15, 20, 40, .08); --border-strong: rgba(15, 20, 40, .16);
    --text: #0d1222; --muted: #566077; --faint: #667085;
    --a1: #5a48f0; --a2: #0a9fc4; --a3: #e0407f;
    --on-accent: #ffffff; --focus: #e07b00;
    --modal-bg: #ffffff; --code-bg: #0f1424;
    --shadow: 0 20px 50px -24px rgba(20, 30, 70, .25);
    --c-lab: #64708a; --c-research: #4f63f0; --c-industry: #0e9f76; --c-data: #8a55e6;
    --c-dev: #e2672a; --c-award: #d8336f; --c-plan: #b6bccb;
  }
}
:root[data-theme="light"] {
  --bg: #f5f6fb; --bg-2: #eceef6;
  --surface: rgba(255, 255, 255, .7); --surface-strong: #ffffff;
  --border: rgba(15, 20, 40, .08); --border-strong: rgba(15, 20, 40, .16);
  --text: #0d1222; --muted: #566077; --faint: #667085;
  --a1: #5a48f0; --a2: #0a9fc4; --a3: #e0407f;
  --on-accent: #ffffff; --focus: #e07b00;
  --modal-bg: #ffffff; --code-bg: #0f1424;
  --shadow: 0 20px 50px -24px rgba(20, 30, 70, .25);
  --c-lab: #64708a; --c-research: #4f63f0; --c-industry: #0e9f76; --c-data: #8a55e6;
  --c-dev: #e2672a; --c-award: #d8336f; --c-plan: #b6bccb;
}

/* ---------- 기본 ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
html.modal-open { overflow: hidden; }
body {
  margin: 0; min-height: 100vh;
  color: var(--text); background: var(--bg);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16.5px; line-height: 1.7; letter-spacing: -0.005em;
  word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
}
/* 은은한 배경 격자 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: .5;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--a2); text-underline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.3; letter-spacing: -0.025em; }
code { font-family: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace; font-size: .88em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--a1) 40%, transparent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }

.skip-link {
  position: fixed; top: -80px; left: 16px; z-index: 200;
  padding: 10px 16px; border-radius: 12px; background: var(--a1); color: #fff; font-weight: 700;
}
.skip-link:focus { top: 14px; }

/* 스크롤 진행 막대 */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--grad); }

/* ---------- 상단 바 ---------- */
.topbar {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 100;
  width: min(1160px, 100% - 24px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: box-shadow .3s, background .3s;
}
.topbar.is-scrolled { box-shadow: var(--shadow); background: color-mix(in srgb, var(--bg) 80%, transparent); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; }
.brand-mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: var(--grad); color: #fff; font-size: 12.5px; letter-spacing: .02em;
}
.brand-name { font-size: 16.5px; }

.pill-nav { position: relative; display: flex; gap: 2px; }
.pill-nav a {
  position: relative; z-index: 1; padding: 7px 14px; border-radius: 999px;
  color: var(--muted); font-size: 14.5px; font-weight: 600; text-decoration: none;
  transition: color .25s;
}
.pill-nav a:hover, .pill-nav a.is-current { color: var(--text); }
.pill-indicator {
  position: absolute; top: 0; left: 0; height: 100%; width: 0; border-radius: 999px;
  background: var(--surface-strong); border: 1px solid var(--border);
  opacity: 0; transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s;
}

.topbar-actions { display: flex; align-items: center; gap: 6px; }
.contact-link {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 12px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background .2s, border-color .2s;
}
.contact-link:hover { color: var(--text); background: var(--surface-strong); border-color: var(--border-strong); }
.contact-link svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--a2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-label { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer; transition: background .2s, transform .2s;
}
.icon-btn:hover { background: var(--surface-strong); transform: rotate(-8deg); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-moon { display: none; }
:root[data-theme="light"] .i-sun { display: none; }
:root[data-theme="light"] .i-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .i-sun { display: none; }
  :root:not([data-theme="dark"]) .i-moon { display: block; }
}
.nav-toggle { display: none; }
.bars, .bars::before, .bars::after { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; position: relative; transition: transform .25s, background .25s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -5px; } .bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 버튼 ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-size: 15.5px; font-weight: 700; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--grad); background-size: 160% 100%; box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--a1) 70%, transparent); }
.btn-primary:hover { color: #fff; background-position: 100% 0; box-shadow: 0 14px 36px -10px color-mix(in srgb, var(--a2) 70%, transparent); }
.btn-glass { color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); backdrop-filter: blur(10px); }
.btn-glass:hover { color: var(--text); background: var(--surface-strong); }
.gh { width: 17px; height: 17px; fill: currentColor; }

/* ---------- 유리 카드 공통 ---------- */
.glass, .card, .pcard {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
/* 마우스를 따라다니는 빛 */
.spot { position: relative; isolation: isolate; overflow: hidden; transition: border-color .3s, transform .35s var(--ease); }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--a1) 16%, transparent), transparent 60%);
  opacity: 0; transition: opacity .35s;
}
.spot:hover::before { opacity: 1; }
.spot:hover { border-color: var(--border-strong); }

/* ---------- 등장 애니메이션 ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: min(100vh, 960px); display: flex; align-items: center; padding: 130px 0 90px; overflow: hidden; }
#top { position: absolute; top: 0; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-glow {
  position: absolute; z-index: -2; inset: -20% -10% auto; height: 90%;
  background:
    radial-gradient(40% 50% at 20% 30%, color-mix(in srgb, var(--a1) 28%, transparent), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, color-mix(in srgb, var(--a2) 22%, transparent), transparent 70%),
    radial-gradient(30% 40% at 60% 70%, color-mix(in srgb, var(--a3) 14%, transparent), transparent 70%);
  filter: blur(20px);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(3%, 4%, 0) scale(1.08); } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 56px; align-items: center; }

.status-chip {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 13.5px; font-weight: 600;
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #34d399; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #34d399; animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.hero h1 { font-size: clamp(38px, 6.4vw, 76px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.1; margin-bottom: 26px; }
.h1-line { display: block; }
.grad { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.typing { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 22px; font-size: 18px; font-weight: 700; }
.typing-label { padding: 3px 10px; border-radius: 8px; background: var(--surface-strong); border: 1px solid var(--border); color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.typing-text { color: var(--text); font-family: "SF Mono", "JetBrains Mono", Menlo, monospace; font-size: 17px; }
.caret { width: 2px; height: 1.2em; margin-left: -10px; background: var(--a2); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-lead { max-width: 620px; color: var(--muted); font-size: 17.5px; }
.hero-lead strong { color: var(--text); }
.pcard .card-kicker { color: var(--faint); font-size: 12.5px; font-weight: 700; line-height: 1.5; }
.modal .goal + .goal { margin-top: 6px; }
.hero-purpose { margin-top: 14px; padding-left: 12px; border-left: 2px solid var(--a2); color: var(--text); font-size: 15.5px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 22px; color: var(--faint); font-size: 14px; }

.profile { padding: 26px; box-shadow: var(--shadow); }
.profile-top { padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.profile-name { font-size: 20px; font-weight: 800; }
.profile-name span { margin-left: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.profile-role { color: var(--muted); font-size: 13.5px; }
.profile-dl { margin: 16px 0 0; display: grid; gap: 10px; }
.profile-dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.profile-dl dt { color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.profile-dl dd { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.55; }
.certs { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.certs + .certs { margin-top: 6px; }
.certs li { padding: 4px 10px; border-radius: 8px; background: var(--surface-strong); border: 1px solid var(--border); font-size: 13.5px; font-weight: 600; }
.certs em { margin-left: 4px; color: var(--muted); font-size: 12.5px; font-style: normal; font-weight: 500; }
.profile-sub { margin: 20px 0 10px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.langs { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.langs li { display: grid; grid-template-columns: 1fr auto; row-gap: 6px; font-size: 14.5px; }
.langs span { font-weight: 700; }
.langs em { color: var(--muted); font-size: 13px; font-style: normal; }
.langs .bar { grid-column: 1 / -1; height: 5px; border-radius: 9px; background: var(--surface-strong); overflow: hidden; }
.langs .bar::after { content: ""; display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--v)); transition: transform 1.4s var(--ease) .4s; }
.js .profile:not(.in) .langs .bar::after { transform: scaleX(0); }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 20px; border: 2px solid var(--border-strong); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--muted); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- 숫자 ---------- */
.stats { padding: 10px 0 40px; }
.stat-grid { margin-top: 0; margin-bottom: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.stat { padding: 28px 26px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }

/* ---------- 섹션 공통 ---------- */
.section { padding: 110px 0; }
.section-first { padding-top: 40px; }
.sec-head { max-width: 760px; margin-bottom: 44px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--a2); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.sec-head h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.04em; }
.sec-desc { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* 일하는 방식 */
.how-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.how-grid .card { padding: 28px; }
.how-num { display: inline-block; margin-bottom: 18px; font-family: "SF Mono", Menlo, monospace; font-size: 13px; font-weight: 700; color: var(--a1); }
.how-grid h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.how-grid p { color: var(--muted); font-size: 15.5px; }

/* ---------- 타임라인 ---------- */
.gantt { --lw: 250px; --pad: 26px; position: relative; padding: var(--pad) var(--pad) 14px; }
.g-scale, .g-row { display: grid; grid-template-columns: var(--lw) repeat(11, minmax(0, 1fr)); align-items: center; }
.g-scale { padding-bottom: 12px; border-bottom: 1px solid var(--border); color: var(--faint); font-size: 12.5px; font-weight: 700; }
.g-scale span:first-child { grid-column: 2; }
.g-row { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.g-row:last-child { border-bottom: 0; }
.g-label { grid-column: 1; padding-right: 18px; font-size: 14.5px; font-weight: 600; }
.g-when { display: none; margin-left: 6px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.g-bar {
  grid-column: calc(var(--s) + 1) / calc(var(--e) + 1); grid-row: 1;
  position: relative; display: flex; align-items: center; min-height: 32px; padding: 0 12px;
  border-radius: 10px; background: var(--c); color: var(--on-accent);
  font-size: 12.5px; font-weight: 800; text-decoration: none; white-space: nowrap; overflow: hidden;
  box-shadow: 0 8px 22px -10px var(--c);
  transform-origin: 0 50%; transition: transform .9s var(--ease), filter .2s;
}
.g-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: translateX(-100%); }
.g-bar:hover { color: var(--on-accent); filter: brightness(1.12); }
.g-bar:hover::after { transform: translateX(100%); transition: transform .8s var(--ease); }
.g-bar.point { justify-content: center; }
.js .gantt:not(.in) .g-bar { transform: scaleX(0); }
.gantt.in .g-row:nth-of-type(2) .g-bar { transition-delay: .05s; }
.gantt.in .g-row:nth-of-type(3) .g-bar { transition-delay: .12s; }
.gantt.in .g-row:nth-of-type(4) .g-bar { transition-delay: .19s; }
.gantt.in .g-row:nth-of-type(5) .g-bar { transition-delay: .26s; }
.gantt.in .g-row:nth-of-type(6) .g-bar { transition-delay: .33s; }
.gantt.in .g-row:nth-of-type(7) .g-bar { transition-delay: .40s; }
.gantt.in .g-row:nth-of-type(8) .g-bar { transition-delay: .47s; }
.gantt.in .g-row:nth-of-type(9) .g-bar { transition-delay: .54s; }
.c-lab { --c: var(--c-lab); } .c-research { --c: var(--c-research); } .c-industry { --c: var(--c-industry); }
.c-data { --c: var(--c-data); } .c-dev { --c: var(--c-dev); } .c-award { --c: var(--c-award); }
.c-plan { --c: var(--c-plan); color: var(--text); background: repeating-linear-gradient(135deg, var(--c-plan) 0 8px, transparent 8px 16px); border: 1px dashed var(--border-strong); box-shadow: none; }
.c-plan:hover { color: var(--text); }
.g-now {
  position: absolute; z-index: 2; top: var(--pad); bottom: 14px; width: 0; pointer-events: none;
  left: calc(var(--pad) + var(--lw) + (100% - 2 * var(--pad) - var(--lw)) * (var(--m) - 1) / 11);
  border-left: 2px dashed var(--a3);
}
.g-now span { position: absolute; top: -26px; left: -18px; white-space: nowrap; padding: 1px 7px; border-radius: 6px; background: var(--a3); color: #fff; font-size: 11px; font-weight: 800; }

/* ---------- 관심 분야 ---------- */
.interest-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.interest { display: flex; flex-direction: column; gap: 12px; padding: 28px; }
.interest:hover { transform: translateY(-4px); }
.i-badge {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: color-mix(in srgb, var(--a1) 16%, transparent); border: 1px solid color-mix(in srgb, var(--a1) 35%, transparent); color: var(--a1);
}
.i-badge svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.interest h3 { font-size: 19px; font-weight: 800; }
.interest p { flex: 1; color: var(--muted); font-size: 15px; }
.interest a { font-size: 14px; font-weight: 700; text-decoration: none; }
.interest a:hover { text-decoration: underline; }

/* ---------- 프로젝트 ---------- */
.tabs { position: relative; display: inline-flex; flex-wrap: wrap; gap: 2px; margin-bottom: 26px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.tab { position: relative; z-index: 1; padding: 8px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; transition: color .25s; }
.tab:hover, .tab.is-active { color: var(--text); }
.tab-indicator { position: absolute; top: 5px; left: 0; height: calc(100% - 10px); width: 0; border-radius: 999px; background: var(--surface-strong); border: 1px solid var(--border-strong); transition: transform .45s var(--ease), width .45s var(--ease); }

.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pcard { display: flex; flex-direction: column; box-shadow: var(--shadow); }
.pcard.span-2 { grid-column: span 2; }
.pcard.span-full { grid-column: 1 / -1; }
.pcard:hover { transform: translateY(-5px); }
.pcard.is-hidden { display: none; }
.pcard.flash { animation: flash 1.4s var(--ease); }
@keyframes flash { 0%, 100% { border-color: var(--border); } 30% { border-color: var(--a2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a2) 25%, transparent); } }
.pcard-media { margin: 10px 10px 0; aspect-ratio: 16 / 8.5; border-radius: 16px; overflow: hidden; background: #0b0e13; border: 1px solid var(--border); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .8s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 22px 24px 24px; }
.pcard h3 { font-size: 19px; font-weight: 800; }
.pcard.span-2 h3 { font-size: 21px; }
.pcard-body > p { flex: 1; color: var(--muted); font-size: 15px; }
.pcard-plan { border-style: dashed; box-shadow: none; }

.pmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; }
.when { font-weight: 800; font-variant-numeric: tabular-nums; }
.org { color: var(--muted); }
.tag { padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; }
.t-done { color: var(--c-industry); background: color-mix(in srgb, var(--c-industry) 15%, transparent); }
.t-progress { color: var(--c-research); background: color-mix(in srgb, var(--c-research) 16%, transparent); }
.t-progress::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: 1px; animation: blink 1.4s steps(1) infinite; }
.t-award { color: var(--c-award); background: color-mix(in srgb, var(--c-award) 15%, transparent); }
.t-plan { color: var(--muted); border: 1px dashed var(--border-strong); }

.chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 2px 10px; border-radius: 8px; background: var(--surface-strong); border: 1px solid var(--border); color: var(--muted); font-size: 12.5px; font-weight: 600; }
.more {
  align-self: flex-start; margin-top: 6px; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent;
  color: var(--text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background .2s, gap .25s var(--ease);
}
.more:hover { background: var(--surface-strong); gap: 10px; }

/* ---------- 경력·학력 ---------- */
.xp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.xp-grid > div { padding: 30px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.col-title { margin-bottom: 22px; color: var(--faint); font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.vline { margin: 0; padding: 0; list-style: none; }
.vline > li { position: relative; padding: 0 0 28px 30px; }
.vline > li::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: -4px; width: 2px; background: linear-gradient(var(--a1), transparent); }
.vline > li:last-child { padding-bottom: 0; }
.vline > li:last-child::before { display: none; }
.vline > li::after { content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--a1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a1) 18%, transparent); }
.v-when { color: var(--a2); font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.vline h4 { margin: 2px 0 4px; font-size: 18px; font-weight: 800; }
.v-sub { color: var(--muted); font-size: 14.5px; }
.vline ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.vline ul li { margin-bottom: 4px; }

/* ---------- 발표·수상 ---------- */
.award-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.award { padding: 28px; }
.aw-when { font-size: 13.5px; font-weight: 800; color: var(--a2); font-variant-numeric: tabular-nums; }
.aw-type { margin-top: 12px; color: var(--c-award); font-size: 13px; font-weight: 800; }
.award h3 { margin: 4px 0 8px; font-size: 20px; font-weight: 800; }
.aw-desc { color: var(--muted); font-size: 15px; }

/* ---------- CTA ---------- */
.cta {
  position: relative; padding: 56px; border-radius: 28px; text-align: center; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
}
.cta::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px;
  background: var(--grad); opacity: .5;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.cta .kicker { justify-content: center; }
.cta h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.04em; }
.cta > p { margin-top: 12px; color: var(--muted); }
.cta .cta-purpose { margin-top: 14px; color: var(--muted); font-size: 16.5px; line-height: 1.75; }
.cta-mail {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 26px;
  padding: 14px 24px; border-radius: 999px; background: var(--grad); background-size: 160% 100%;
  color: #fff; font-size: 17px; font-weight: 800; text-decoration: none; overflow-wrap: anywhere;
  box-shadow: 0 12px 32px -12px color-mix(in srgb, var(--a1) 70%, transparent);
  transition: transform .25s var(--ease), background-position .4s;
}
.cta-mail:hover { color: #fff; transform: translateY(-2px); background-position: 100% 0; }
.cta-mail-label { padding: 2px 9px; border-radius: 6px; background: rgba(255, 255, 255, .2); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 640px) { .cta-mail { padding: 12px 18px; font-size: 15px; gap: 8px; } .cta .cta-purpose br { display: none; } }
.cta-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }

.footer { padding: 30px 0 40px; border-top: 1px solid var(--border); color: var(--faint); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer a { color: var(--muted); }

/* ---------- 블로그 연결 ---------- */
/* 페이지 이동(홈 ↔ 블로그)을 부드럽게 바꾼다 (지원 브라우저) */
@view-transition { navigation: auto; }
.nav-blog::after { content: " ↗"; font-size: .85em; opacity: .6; }
/* 블로그 분류 = 관심 분야 세 가지 */
.cat-reasoning { color: var(--c-research); background: color-mix(in srgb, var(--c-research) 16%, transparent); }
.cat-llm-eval { color: var(--c-dev); background: color-mix(in srgb, var(--c-dev) 15%, transparent); }
.cat-vla { color: var(--c-industry); background: color-mix(in srgb, var(--c-industry) 15%, transparent); }
.sec-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.sec-head-row > div { max-width: 760px; }
.teaser-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.teaser a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px; color: var(--text); text-decoration: none; border-radius: inherit; }
.teaser:hover { transform: translateY(-4px); }
.teaser time { font-weight: 800; font-variant-numeric: tabular-nums; }
.teaser h3 { font-size: 18px; font-weight: 800; line-height: 1.4; }
.teaser p { color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.teaser-empty { grid-column: 1 / -1; padding: 36px; border: 1px dashed var(--border-strong); border-radius: var(--r-lg); text-align: center; color: var(--muted); }
@media (max-width: 960px) { .teaser-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 모달 ---------- */
.modal {
  width: min(920px, 100% - 24px); max-height: min(90vh, 100% - 24px); padding: 0;
  border: 1px solid var(--border-strong); border-radius: 24px;
  background: var(--modal-bg); color: var(--text); box-shadow: 0 40px 120px -20px rgba(0,0,0,.7);
  overscroll-behavior: contain;
}
.modal[open] { animation: pop .45s var(--ease); }
.modal::backdrop { background: rgba(3, 5, 10, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open]::backdrop { animation: fade .3s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes fade { from { opacity: 0; } }
.modal-inner { position: relative; padding: 36px 38px 34px; }
.modal-close {
  position: sticky; top: 0; float: right; margin: -14px -16px 0 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: var(--surface-strong); color: var(--text); font-size: 16px; cursor: pointer;
  transition: transform .25s var(--ease), background .2s;
}
.modal-close:hover { transform: rotate(90deg); }
.modal h3 { margin: 14px 0 12px; font-size: clamp(21px, 2.8vw, 27px); font-weight: 800; }
.modal h4 { margin: 24px 0 10px; font-size: 16px; font-weight: 800; }
.modal .goal { color: var(--muted); }
.modal .goal b { margin-right: 6px; color: var(--text); }
.role { margin-left: 6px; padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--a1) 18%, transparent); color: var(--a1); font-size: 12px; font-weight: 800; vertical-align: 2px; }
.kpis { margin: 22px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kpis li { padding: 16px 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); }
.kpis strong { display: block; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpis span { color: var(--muted); font-size: 13px; }
.ticks, .steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 24px; font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 9px; height: 9px; border-radius: 3px; background: var(--grad); transform: rotate(45deg); }
.steps { counter-reset: s; }
.steps li { position: relative; padding-left: 40px; font-size: 15.5px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; background: color-mix(in srgb, var(--a1) 18%, transparent); color: var(--a1); font-size: 13px; font-weight: 800; }
.steps b { margin-right: 6px; }
.m-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.m-media { margin-top: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.m-media figure { margin: 0; }
.m-media .full { grid-column: 1 / -1; }
.m-media img, .m-media video { width: 100%; border-radius: var(--r-md); border: 1px solid var(--border); background: #0b0e13; }
.m-media figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.code { margin: 0; padding: 16px 18px; border-radius: var(--r-md); background: var(--code-bg); color: #cfd8ea; font-size: 13px; line-height: 1.6; overflow-x: auto; border: 1px solid var(--border); }
.foot { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }

/* ---------- 반응형 ---------- */
@media (max-width: 1180px) {
  .pill-nav a { padding: 7px 10px; font-size: 14px; }
  .contact-label { display: none; }
}
@media (max-width: 1000px) and (min-width: 901px) {
  .contact-mail { display: none; }
  .contact-label { display: inline; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .how-grid, .interest-grid { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xp-grid, .award-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .gantt { --lw: 190px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .pill-nav {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    display: none; flex-direction: column; gap: 2px; padding: 10px;
    border-radius: 22px; background: var(--modal-bg); border: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .pill-nav.is-open { display: flex; animation: pop .35s var(--ease); }
  .pill-nav a { padding: 12px 16px; font-size: 16px; border-radius: 14px; }
  .pill-nav a.is-current { background: var(--surface-strong); }
  .pill-indicator { display: none; }
  .no-js .pill-nav { position: static; display: flex; flex-direction: row; flex-wrap: wrap; box-shadow: none; border: 0; padding: 0; background: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .topbar { top: 10px; }
  .contact-link { width: 38px; padding: 0; justify-content: center; }
  .contact-mail, .contact-label { display: none; }
  .hero { min-height: auto; padding: 116px 0 80px; }
  .hero-lead { font-size: 16px; }
  .scroll-cue { display: none; }
  .section { padding: 76px 0; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .pcard.span-2 { grid-column: auto; }
  .stat { padding: 20px 18px; }
  .how-grid .card, .interest, .award, .xp-grid > div, .profile { padding: 22px 20px; }
  .cta { padding: 40px 22px; }
  .tabs { display: flex; }
  .tab { flex: 1; padding: 8px 10px; font-size: 13.5px; }

  .gantt { --lw: 0px; --pad: 14px; }
  .g-scale, .g-row { grid-template-columns: repeat(11, minmax(0, 1fr)); }
  .g-scale { font-size: 10.5px; letter-spacing: -0.05em; }
  .g-scale span:first-child { grid-column: 1; }
  .g-row { row-gap: 6px; }
  .g-label { grid-column: 1 / -1; grid-row: 1; padding-right: 0; font-size: 14px; }
  .g-when { display: inline; }
  .g-bar { grid-column: var(--s) / var(--e); grid-row: 2; min-height: 12px; padding: 0; border-radius: 6px; }
  .g-bar span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .g-now span { display: none; }

  .modal { width: 100%; max-width: 100%; max-height: 100%; height: 100%; margin: 0; border-radius: 0; }
  .modal-inner { padding: 22px 18px 28px; }
  .modal-close { margin: -4px -4px 0 10px; }
  .kpis, .m-cols, .m-media { grid-template-columns: minmax(0, 1fr); }
}

/* 움직임 줄이기 설정 존중 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .js .gantt:not(.in) .g-bar, .js .profile:not(.in) .langs .bar::after { transform: none; }
}
