/* ============ Base ============ */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --ink: #191f28;
  --ink-soft: #4e5968;
  --ink-faint: #8b95a1;
  --line: #e5e8eb;
  --accent: #1b64da;
  --accent-soft: #eef4ff;
  --radius: 14px;
  --maxw: 720px;
  --maxw-wide: 1040px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

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

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

/* ============ Layout ============ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: var(--maxw-wide); margin: 0 auto; padding: 0 24px; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: var(--maxw-wide); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.site-header .logo { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.site-header nav { display: flex; gap: 20px; font-size: 15px; color: var(--ink-soft); }
.site-header nav a:hover { color: var(--ink); }

/* ============ Hero (landing) ============ */
.hero { padding: 64px 0 96px; }
.hero .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.35; margin-bottom: 24px;
}
.hero p { font-size: 17px; color: var(--ink-soft); }

/* ============ Project cards ============ */
.section-label {
  font-size: 14px; font-weight: 700; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 28px;
}
.project-card {
  display: block; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow 0.2s ease, transform 0.2s ease;
  margin-bottom: 28px; background: var(--bg);
}
.project-card:hover { box-shadow: 0 12px 32px rgba(25, 31, 40, 0.1); transform: translateY(-2px); }
.project-card .thumb { aspect-ratio: 16 / 8.4; overflow: hidden; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.project-card .body { padding: 28px 32px 32px; }
.project-card h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.project-card p { font-size: 15px; color: var(--ink-soft); margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 999px;
}
.tag.blue { color: var(--accent); background: var(--accent-soft); border-color: transparent; }

/* ============ Case study ============ */
.case-hero { padding: 48px 0 44px; border-bottom: 1px solid var(--line); }
.case-hero .wrap, article.case .wrap { max-width: var(--maxw-wide); }
.case-hero .eyebrow { font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.case-hero h1 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.35; margin-bottom: 16px; }
.case-hero .lede { font-size: 17px; color: var(--ink-soft); margin-bottom: 32px; }
.meta-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px; padding: 24px 28px; background: var(--bg-soft);
  border-radius: var(--radius);
}
.meta-grid dt { font-size: 13px; font-weight: 700; color: var(--ink-faint); margin-bottom: 4px; }
.meta-grid dd { font-size: 15px; font-weight: 600; }

article.case { padding: 24px 0 96px; }

.case section { margin-top: 64px; }
.case h2 {
  font-size: 23px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.4;
  margin-bottom: 8px;
}
.case h2 .num { color: var(--accent); margin-right: 10px; font-variant-numeric: tabular-nums; }
.case h3 { font-size: 18px; font-weight: 700; margin: 40px 0 10px; letter-spacing: -0.01em; }
.case p { color: var(--ink-soft); margin-bottom: 16px; line-height: 1.8; }
.case ul li { line-height: 1.8; }
.case p strong, .case li strong { color: var(--ink); font-weight: 700; }
.case ul { margin: 0 0 16px 4px; list-style: none; }
.case ul li { position: relative; padding-left: 18px; color: var(--ink-soft); margin-bottom: 8px; }
.case ul li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.callout {
  background: var(--accent-soft); border-radius: var(--radius);
  padding: 20px 24px; margin: 24px 0; font-size: 16px; color: var(--ink);
}
.callout .title { font-weight: 800; margin-bottom: 6px; color: var(--accent); font-size: 15px; }

/* figures */
figure { margin: 28px 0 36px; }
figure.breakout { width: min(var(--maxw-wide) - 48px, 100%); margin-left: 50%; transform: translateX(-50%); }
figure a { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
figure a:hover { box-shadow: 0 8px 24px rgba(25, 31, 40, 0.08); }
figcaption { font-size: 14px; color: var(--ink-faint); margin-top: 10px; text-align: center; }
.fig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0 36px; }
.fig-grid figure { margin: 0; }
.fig-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0 36px; }
.fig-grid-3 figure { margin: 0; }
@media (max-width: 720px) {
  .fig-grid { grid-template-columns: 1fr; }
  .fig-grid-3 { grid-template-columns: 1fr; }
}

/* highlights (한눈에 보기) */
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kpi-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .kpi-grid, .kpi-grid.cols-3 { grid-template-columns: 1fr; } }
.kpi-card {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 18px 22px; background: var(--bg);
}
.kpi-card h3 { font-size: 16.5px; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.01em; }
.kpi-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; line-height: 1.65; }
.case section.highlights { margin-top: 44px; }

/* stack chips */
.stack-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.stack-list .tag { font-size: 14px; padding: 6px 14px; }

/* experience / education */
.exp-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 16px; background: var(--bg);
}
.exp-head {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: baseline; gap: 8px; margin-bottom: 12px;
}
.exp-head h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.exp-head h3 .role { font-size: 15px; font-weight: 600; color: var(--ink-soft); margin-left: 10px; }
.exp-head .period { font-size: 14px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.exp-item ul { list-style: none; margin: 0 0 14px; }
.exp-item li { position: relative; padding-left: 16px; color: var(--ink-soft); font-size: 16px; margin-bottom: 6px; }
.exp-item li::before { content: ""; position: absolute; left: 0; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.edu-line {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 28px;
}
.edu-line .school { font-size: 17px; font-weight: 700; }
.edu-line .school span { font-size: 15px; font-weight: 600; color: var(--ink-soft); margin-left: 10px; }
.edu-line .period { font-size: 14px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.cert-list { display: grid; gap: 10px; }
.cert-list .cert {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 22px; font-size: 16px; font-weight: 700;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px;
}
.cert-list .cert span { font-size: 14px; font-weight: 500; color: var(--ink-faint); }
.exp-item .case-link { display: inline-block; margin-top: 4px; font-size: 15px; font-weight: 700; color: var(--accent); }
.exp-item .case-link:hover { text-decoration: underline; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 64px; color: var(--ink-faint); font-size: 14px; }
.site-footer .contact-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; font-size: 15px; color: var(--ink-soft); }
.site-footer .contact-row a { font-weight: 600; color: var(--ink); }
.site-footer .contact-row a:hover { color: var(--accent); }
.back-link { display: inline-block; margin-bottom: 8px; color: var(--accent); font-weight: 600; font-size: 15px; }
