:root {
  --bg: #f7f7fb;
  --card: #ffffff;
  --text: #16161d;
  --muted: #5b5b6b;
  --line: #e6e6ef;
  --accent: #4f46e5;
  --accent-soft: #eef0ff;
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f14;
    --card: #171821;
    --text: #ececf3;
    --muted: #a0a0b4;
    --line: #262838;
    --accent: #8b85ff;
    --accent-soft: #1f2040;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }

.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-weight: 800; letter-spacing: -0.02em; }
.nav nav { display: flex; gap: 20px; font-size: 14px; color: var(--muted); }
.nav nav a:hover { color: var(--accent); }

.hero { padding: 96px 24px 72px; }
.avatar {
  width: 84px; height: 84px; border-radius: 26px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  color: #fff; font-weight: 800; font-size: 24px; margin-bottom: 28px;
  box-shadow: 0 12px 30px -10px var(--accent);
}
.eyebrow { color: var(--accent); font-weight: 700; margin: 0 0 8px; }
h1 { font-size: clamp(32px, 5.5vw, 54px); line-height: 1.25; letter-spacing: -0.03em; margin: 0 0 20px; }
.hl { background: linear-gradient(transparent 60%, var(--accent-soft) 60%); color: var(--accent); }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 0 24px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chips span {
  font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}
.chips.sm { margin: 8px 0 10px; }
.chips.sm span { font-size: 12px; padding: 4px 10px; }

.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 15px;
  border: 1px solid var(--line); background: var(--card); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -12px rgba(0,0,0,.35); }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }

.section { padding: 56px 24px; }
h2 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 24px; }
h2 span { color: var(--accent); font-size: 16px; margin-right: 8px; vertical-align: middle; }
h3 { margin: 0 0 8px; font-size: 18px; }

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.card p { margin: 0 0 10px; color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.facts { list-style: none; padding: 0; margin: 14px 0 0; font-size: 14px; }
.facts li { padding: 6px 0; border-top: 1px dashed var(--line); color: var(--muted); }
.facts b { color: var(--text); margin-right: 8px; }

.cert .tag {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em;
  color: #fff; background: var(--accent); padding: 3px 10px; border-radius: 8px; margin-bottom: 12px;
}
.note { margin-top: 16px; border-left: 4px solid var(--accent); }

.timeline { position: relative; }
.t-item { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding-bottom: 28px; }
.t-when { font-weight: 800; color: var(--accent); padding-top: 22px; }
.t-body { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.t-body p { margin: 0; color: var(--muted); }

.list { list-style: none; padding: 0; margin: 4px 0 14px; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li span { color: var(--muted); font-size: 14px; text-align: right; }
.muted { font-size: 14px; }

.goals { list-style: none; counter-reset: g; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.goals li {
  counter-increment: g; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px 22px 72px; position: relative;
}
.goals li::before {
  content: counter(g); position: absolute; left: 22px; top: 22px; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800;
}
.goals p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.contact { text-align: center; padding: 48px 24px; background: linear-gradient(135deg, var(--accent-soft), var(--card)); }
.contact h2 { margin-bottom: 8px; }
.contact .cta { justify-content: center; margin-top: 20px; }

.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 32px 24px 48px; }

@media (max-width: 760px) {
  .nav nav { display: none; }
  .grid.two, .grid.three, .goals { grid-template-columns: 1fr; }
  .t-item { grid-template-columns: 1fr; gap: 6px; }
  .t-when { padding-top: 0; }
  .hero { padding-top: 64px; }
}

/* ---------- academics page ---------- */
.hero.small { padding: 72px 24px 24px; }
.section.tight { padding-top: 24px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat b { display: block; font-size: 34px; letter-spacing: -0.03em; color: var(--accent); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }
.bars { display: grid; gap: 10px; margin-top: 12px; }
.bar { display: grid; grid-template-columns: 80px 1fr 36px; align-items: center; gap: 12px; font-size: 14px; }
.bar span { color: var(--muted); }
.bar i { height: 12px; border-radius: 99px; background: var(--accent-soft); position: relative; overflow: hidden; }
.bar i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--accent); border-radius: 99px; }
.bar em { font-style: normal; font-weight: 800; text-align: right; }
.gpa { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: end; height: 170px; margin-top: 12px; }
.gpa div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.gpa i { width: 100%; max-width: 64px; height: calc(var(--h) * 0.75); border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, var(--accent), #06b6d4); order: 1; }
.gpa b { font-size: 15px; order: 0; }
.gpa span { font-size: 13px; color: var(--muted); order: 2; }
.tag.soft { display: inline-block; font-size: 12px; font-weight: 800; color: var(--accent); background: var(--accent-soft);
  padding: 3px 10px; border-radius: 8px; margin-bottom: 10px; }
.course { list-style: none; padding: 0; margin: 0; }
.course li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.course li:last-child { border-bottom: 0; }
.course em { font-style: normal; font-weight: 800; color: var(--accent); }
.course em.ing { font-weight: 600; font-size: 12px; color: var(--muted); background: var(--bg); padding: 2px 8px; border-radius: 99px; }
.sem { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.sem summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 18px 24px; }
.sem summary::-webkit-details-marker { display: none; }
.sem summary span { color: var(--muted); font-size: 14px; margin-left: auto; }
.sem summary::after { content: "+"; font-weight: 800; color: var(--accent); }
.sem[open] summary::after { content: "−"; }
.sem table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sem th, .sem td { text-align: left; padding: 10px 24px; border-top: 1px solid var(--line); }
.sem th { color: var(--muted); font-weight: 600; background: var(--bg); }
.sem td:nth-child(3), .sem td:nth-child(4), .sem th:nth-child(3), .sem th:nth-child(4) { text-align: center; white-space: nowrap; }
.sem td:nth-child(4) { font-weight: 800; color: var(--accent); }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .sem th, .sem td { padding: 8px 12px; }
  .sem summary { flex-wrap: wrap; }
}
