:root {
  --bg: #e6edf7;
  --surface: rgba(249, 251, 255, 0.80);
  --surface-strong: #f7faff;
  --surface-alt: #dce7f8;
  --text: #0f182a;
  --muted: #4c5970;
  --line: rgba(17, 26, 44, 0.12);
  --primary: #1539d1;
  --primary-strong: #102a99;
  --accent: #4ca8eb;
  --success-bg: #def4e7;
  --success-text: #16653a;
  --pending-bg: #ffefd7;
  --pending-text: #7b4a0e;
  --shadow: 0 22px 54px rgba(9, 25, 52, 0.14);
  --radius: 24px;
  --radius-sm: 16px;
  --container: min(1160px, calc(100vw - 2rem));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(76, 168, 235, 0.18), transparent 30%),
    radial-gradient(circle at top left, rgba(21, 57, 209, 0.18), transparent 34%),
    radial-gradient(circle at bottom center, rgba(15, 24, 42, 0.07), transparent 42%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; display: block; }
main { padding-bottom: 4rem; }
.container { width: var(--container); margin: 0 auto; }
.page-frame {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.24), transparent 160px);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(230, 237, 247, 0.84);
  border-bottom: 1px solid rgba(17, 26, 44, 0.09);
}
.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  color: var(--text);
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #335ff3);
  color: white;
  font-size: 0.95rem;
  box-shadow: 0 12px 28px rgba(21, 57, 209, 0.22);
}
.brand-name { letter-spacing: -0.02em; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-link {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease;
}
.nav-link:hover,
.nav-link.active {
  background: rgba(21, 57, 209, 0.08);
  color: var(--primary);
}
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  border-radius: 999px;
}
.hero-section,
.page-hero { padding: 4.75rem 0 1rem; }
.compact-hero { padding-top: 3.8rem; }
.hero-grid,
.cv-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.95fr;
  gap: 2rem;
  align-items: center;
}
.hero-copy h1,
.page-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 6vw, 4.7rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.eyebrow,
.section-kicker,
.mini-label,
.bar-label {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}
.hero-lead {
  margin: 0 0 1rem;
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  color: var(--text);
  max-width: 44rem;
}
.hero-summary,
.section-intro,
.footer-copy,
.timeline-summary,
.pub-authors,
.pub-venue,
.info-muted,
.contact-panel p,
.project-card p,
.info-card p,
.cv-entry p,
.cv-card p {
  color: var(--muted);
}
.hero-summary + .hero-summary {
  margin-top: 0.9rem;
  max-width: 45rem;
}
.hero-facts,
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  margin-top: 1rem;
}
.hero-facts span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(248, 251, 255, 0.82);
  border: 1px solid rgba(17, 26, 44, 0.08);
  box-shadow: var(--shadow);
  box-shadow: 0 12px 24px rgba(12, 31, 68, 0.06);
  color: var(--text);
  font-weight: 600;
  font-size: 0.94rem;
}
.hero-actions,
.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.88rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  background: linear-gradient(135deg, var(--primary), #335ff3);
  color: white;
  box-shadow: 0 16px 30px rgba(21, 57, 209, 0.22);
}
.button-secondary {
  background: rgba(248, 251, 255, 0.92);
  color: var(--text);
  border: 1px solid rgba(17, 26, 44, 0.09);
}
.button-tertiary {
  background: rgba(21, 57, 209, 0.08);
  color: var(--primary);
}
.hero-links a,
.text-link,
.footer-link,
.small-link,
.section-link {
  font-weight: 700;
}
.hero-card,
.info-card,
.project-card,
.info-panel,
.skill-card,
.contact-panel,
.cv-card,
.stat-box,
.timeline-panel,
.pub-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
}
.hero-card { overflow: hidden; }
.portrait-wrap {
  background: linear-gradient(180deg, rgba(21,57,209,0.16), rgba(76,168,235,0.08));
  padding: 1.2rem 1.2rem 0;
}
.portrait-wrap img {
  border-radius: 22px 22px 0 0;
  width: 100%;
  object-fit: cover;
}
.hero-card-body { padding: 1.25rem 1.35rem 1.45rem; }
.hero-card-body h2 {
  margin: 0 0 0.9rem;
  font-size: 1.38rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.section { padding: 2.3rem 0; }
.section-tight { padding-top: 1.1rem; }
.alt-section { background: rgba(220, 231, 248, 0.40); }
.section-heading {
  margin-bottom: 1.4rem;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}
.section-heading.split {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}
.section-intro { max-width: 50rem; margin: 0.6rem 0 0; }
.narrow { max-width: 42rem; }
.narrow-center { text-align: center; }
.highlight-stack {
  display: grid;
  gap: 0.9rem;
}
.highlight-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(21, 57, 209, 0.08), rgba(82, 183, 255, 0.08));
  border: 1px solid rgba(21, 57, 209, 0.10);
  box-shadow: 0 14px 28px rgba(12, 31, 68, 0.06);
}
.highlight-bar h3,
.info-card h3,
.project-card h3,
.skill-card h3,
.timeline-panel h3,
.info-panel h3,
.pub-card h3,
.cv-card h2,
.cv-entry h3 {
  margin: 0;
  letter-spacing: -0.03em;
}
.bar-meta {
  margin: 0;
  text-align: right;
  color: var(--muted);
  font-weight: 700;
}
.card-grid {
  display: grid;
  gap: 1rem;
}
.four-up { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-card,
.project-card,
.info-panel,
.skill-card,
.contact-panel,
.cv-card,
.pub-card,
.stat-box {
  padding: 1.3rem 1.35rem;
}
.project-topline,
.pub-topline,
.cv-topline,
.timeline-topline,
.education-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: start;
}
.project-topline span,
.pub-date,
.cv-topline span,
.timeline-date,
.timeline-topline span,
.info-muted,
.filter-button,
.stat-box span {
  color: var(--muted);
}
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  background: rgba(21, 57, 209, 0.08);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.84rem;
}
.timeline {
  display: grid;
  gap: 1rem;
}
.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  align-items: start;
}
.timeline-date {
  padding-top: 1rem;
  font-weight: 700;
}
.timeline-panel { padding: 1.25rem 1.3rem; }
.timeline-org,
.cv-org { margin: 0.2rem 0 0.65rem; font-weight: 700; color: var(--primary); }
.detail-list {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
}
.detail-list.compact { margin-top: 0.7rem; }
.detail-list li + li { margin-top: 0.55rem; }
.split-layout,
.awards-layout,
.cv-grid,
.cv-columns,
.footer-grid {
  display: grid;
  gap: 1rem;
}
.split-layout { grid-template-columns: 1fr 1fr; }
.skill-stack { display: grid; gap: 1rem; }
.ku-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 48px;
}
.contact-list {
  margin-top: 1rem;
  gap: 0.7rem;
}
.contact-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(21, 57, 209, 0.08);
  font-weight: 700;
}
.stats-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2rem;
}
.stat-box strong {
  display: block;
  font-size: 1.8rem;
  letter-spacing: -0.05em;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.filter-button {
  border: 1px solid rgba(17, 26, 44, 0.08);
  background: rgba(248, 251, 255, 0.92);
  padding: 0.72rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}
.filter-button.active {
  background: rgba(21, 57, 209, 0.10);
  color: var(--primary);
  border-color: rgba(21, 57, 209, 0.18);
}
.publication-list {
  display: grid;
  gap: 1rem;
}
.pub-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.pub-card.compact { height: 100%; }
.pub-card h3 { font-size: 1.12rem; line-height: 1.3; margin-top: 0.55rem; }
.pub-links { margin-top: 0.8rem; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.66rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge.accepted {
  background: var(--success-bg);
  color: var(--success-text);
}
.badge.under-review {
  background: var(--pending-bg);
  color: var(--pending-text);
}
.badge.neutral {
  background: rgba(17, 26, 44, 0.08);
  color: var(--text);
}
.cv-grid {
  grid-template-columns: 1fr 1.2fr;
  align-items: start;
}
.cv-card.span-2 { grid-column: span 2; }
.cv-entry + .cv-entry { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.cv-subsection + .cv-subsection {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.cv-columns { grid-template-columns: 1fr 1fr; }
.compact-contact-panel p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.45rem 0;
}
.compact-contact-panel p + p { border-top: 1px solid var(--line); }
.compact-contact-panel strong { color: var(--text); }
.site-footer {
  padding: 1.8rem 0 3rem;
  border-top: 1px solid rgba(17, 26, 44, 0.09);
  background: rgba(239, 244, 252, 0.72);
}
.footer-grid {
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
}
.footer-title {
  margin: 0 0 0.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.footer-links {
  display: flex;
  justify-content: end;
  gap: 1rem;
  flex-wrap: wrap;
}
.hidden-card { display: none; }
@media (max-width: 1080px) {
  .four-up,
  .three-up,
  .two-up,
  .stats-row,
  .cv-grid,
  .split-layout,
  .footer-grid,
  .hero-grid,
  .cv-hero-grid,
  .cv-columns {
    grid-template-columns: 1fr 1fr;
  }
  .timeline-item {
    grid-template-columns: 1fr;
  }
  .timeline-date { padding-top: 0; }
}
@media (max-width: 760px) {
  .container { width: min(100vw - 1.25rem, 100%); }
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0.75rem;
    left: 0.75rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem;
    border-radius: 18px;
    background: rgba(243, 247, 253, 0.96);
    border: 1px solid rgba(17, 26, 44, 0.08);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .nav-link { border-radius: 14px; }
  .hero-grid,
  .cv-hero-grid,
  .four-up,
  .three-up,
  .two-up,
  .split-layout,
  .stats-row,
  .footer-grid,
  .cv-grid,
  .cv-columns {
    grid-template-columns: 1fr;
  }
  .highlight-bar,
  .project-topline,
  .pub-topline,
  .cv-topline,
  .timeline-topline,
  .education-row,
  .section-heading.split,
  .compact-contact-panel p {
    flex-direction: column;
    align-items: start;
  }
  .bar-meta { text-align: left; }
  .hero-section,
  .page-hero { padding-top: 3rem; }
  .hero-copy h1,
  .page-hero h1 { font-size: clamp(2.2rem, 10vw, 3.4rem); }
  .cv-card.span-2 { grid-column: auto; }
}
