:root{
  --bg:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --line:#e5e7eb;
  --card:#f8fafc;
  --brand:#2563eb;
  --brand2:#0ea5e9;
  --shadow: 0 10px 30px rgba(2, 6, 23, .08);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  background:
    radial-gradient(900px 600px at 10% 0%, rgba(37,99,235,.10), transparent 55%),
    radial-gradient(900px 600px at 90% 5%, rgba(14,165,233,.10), transparent 50%),
    var(--bg);
  color:var(--text);
  line-height:1.75;
}

.wrap{max-width:1080px;margin:0 auto;padding:0 20px}
.muted{color:var(--muted)}

/* top bar */
.topbar{
  position:sticky;top:0;z-index:10;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 0;
}
.brand{color:var(--text);text-decoration:none;font-weight:800;letter-spacing:.2px}
.nav a{
  color:var(--muted);text-decoration:none;margin-left:16px;font-size:14px
}
.nav a:hover{color:var(--brand)}

/* header: avatar + text alignment */
.header{
  display:grid;
  grid-template-columns: 200px 1fr;
  gap:24px;
  padding:28px 0 8px;
  align-items:center;
}

/* keep photo aspect ratio (1181×1654) and DO NOT crop */
.avatar{
  width: 180px;
  aspect-ratio: 1181 / 1654;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius:16px;
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  padding:6px;
}

h1{margin:0;font-size:36px;letter-spacing:-.4px}
.sub{
  font-size: 20px;
  font-weight: 600;
  color: #334155;
  margin-left: 6px;
}

.headline{margin:6px 0 8px;color:var(--muted)}
.intro{margin:0 0 12px}

/* linkbar buttons enhanced */
.linkbar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 4px;
}
.linkbtn{
  color: var(--text);
  text-decoration:none;
  border:1px solid var(--line);
  background: #fff;
  padding:8px 12px;
  border-radius:999px;
  font-size:13px;
  box-shadow: 0 1px 0 rgba(2,6,23,.03);
  transition: transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease, box-shadow .12s ease;
}
.linkbtn:hover{
  border-color: rgba(37,99,235,.35);
  background: rgba(37,99,235,.06);
  color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(2, 6, 23, .08);
}
.linkbtn.primary{
  border-color: rgba(14,165,233,.35);
  background: rgba(14,165,233,.10);
}
.linkbtn.primary:hover{
  background: rgba(14,165,233,.14);
  color: var(--brand2);
}

/* sections */
.section{
  padding:18px 0 22px;
  border-top:1px solid var(--line);
}
h2{margin:0 0 10px;font-size:22px}

/* bullets */
.bullets{
  margin:0;
  padding-left:18px;
}
.bullets li{margin:6px 0}

/* Education: fully aligned */
.edu{
  margin-top: 10px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.edu-item{
  display:grid;
  grid-template-columns: 290px 1fr;
  column-gap: 18px;
  align-items:start;
}
.edu-time{
  color: var(--text);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: .1px;
  white-space: nowrap;
}
.edu-main{min-width:0}
.edu-degree{
  font-weight: 850;
  line-height: 1.35;
}
.edu-line2{
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

/* Publications: readable + figures fully shown */
.pub-year{
  margin-top:14px;
  font-weight:900;
  color:var(--text);
}

.pub-item{
  margin-top:10px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:16px;
  padding:12px;
  display:grid;
  grid-template-columns: 220px 1fr;
  gap:16px;
  align-items:start;
}

.pub-fig{
  border:1px solid var(--line);
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  height: 170px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.pub-fig img{
  width:100%;
  height:100%;
  display:block;
  object-fit: contain; /* show full image */
}

.pub-title{font-weight:900}
.pub-authors{margin-top:6px;color:var(--text)}
.pub-venue{margin-top:6px;color:var(--muted)}
.pub-links{margin-top:10px;display:flex;gap:12px;flex-wrap:wrap}
.pub-links a{color:var(--brand);text-decoration:none;font-weight:600}
.pub-links a:hover{text-decoration:underline}

/* Coauthors: one-line with separators */
.coauthors-line{
  margin: 6px 0 0;
  color: var(--text);
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.coauthors-label{
  font-weight: 700;
  color: var(--muted);
}
.coauthors-line a{
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}
.coauthors-line a:hover{
  text-decoration: underline;
}
.dot{
  color: #94a3b8;
  padding: 0 2px;
}

/* footer: split main info and legal notice */
.footer{
  padding:26px 0 40px;
  text-align:center;
  color: var(--muted);
}

/* main copyright line */
.footer{
  padding:26px 0 40px;
  text-align:center;
  color: var(--muted);
  font-size: 14px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

@media (max-width: 900px){
  .header{grid-template-columns:1fr; padding:24px 0 8px}
  .avatar{width:170px}

  .edu-item{
    grid-template-columns: 1fr;
    row-gap: 6px;
  }
  .edu-time{
    white-space: normal;
  }

  .pub-item{grid-template-columns:1fr}
  .pub-fig{height: 190px}
}
