:root {
  --ink: #0f172a;
  --ink-2: #1e293b;
  --blue: #1e3a8a;
  --teal: #0ea5a6;
  --coral: #f97366;
  --muted: #64748b;
  --line: #e5e9f2;
  --bg: #f7f8fb;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(1120px, 100% - 48px); margin: 0 auto; }
.wrap.narrow { width: min(820px, 100% - 48px); }

/* ---------------- nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 251, .86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand {
  font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: .02em;
}
.brand .dot { color: var(--teal); margin: 0 6px; }
.brand-sub { font-weight: 500; font-size: 13px; color: var(--muted); }
.nav nav { display: flex; gap: 26px; }
.nav nav a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color .15s;
}
.nav nav a:hover { color: var(--blue); }

/* ---------------- hero ---------------- */
.hero { padding: 84px 0 56px; background:
  radial-gradient(900px 380px at 12% -10%, rgba(14, 165, 166, .10), transparent 60%),
  radial-gradient(700px 340px at 90% 0%, rgba(30, 58, 138, .09), transparent 60%);
}
.hero-inner { display: flex; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 auto; }
.eyebrow {
  margin: 0 0 14px; font-size: 13px; letter-spacing: .12em; color: var(--teal);
  text-transform: uppercase; font-weight: 600;
}
.hero h1 {
  margin: 0 0 10px; font-size: clamp(40px, 6vw, 64px); line-height: 1.08;
  letter-spacing: -.02em; color: var(--ink);
}
.tagline {
  margin: 0 0 12px; font-size: clamp(17px, 2.1vw, 21px); color: var(--ink-2); font-weight: 500;
}
.subjects { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chips li {
  font-size: 13px; padding: 5px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
}
.chips.small li { font-size: 12px; padding: 3px 10px; background: #f1f5f9; border-color: transparent; color: var(--muted); }
.contact { margin-top: 20px; font-size: 14px; color: var(--muted); }

.hero-media { flex: 0 0 232px; }
.hero-media img, .avatar-ph {
  width: 232px; height: 290px; border-radius: 20px; object-fit: cover;
  box-shadow: var(--shadow); background: #fff; display: block;
}
.avatar-ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 92px; font-weight: 700; color: #fff;
  background: linear-gradient(150deg, var(--blue), #2563eb 45%, var(--teal));
}

/* ---------------- sections ---------------- */
.section { padding: 72px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 34px; }
.section-head h2 {
  margin: 0 0 8px; font-size: clamp(24px, 3vw, 31px); letter-spacing: -.01em; color: var(--ink);
}
.section-head h2::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); margin-right: 12px; vertical-align: 6px;
}
.section-sub { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------------- stats ---------------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 26px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-value { font-size: 25px; font-weight: 700; color: var(--blue); letter-spacing: -.01em; }
.stat-label { font-size: 14px; color: var(--ink-2); margin-top: 4px; font-weight: 500; }
.stat-note { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---------------- honors ---------------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filter {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  padding: 7px 15px; border-radius: 999px; font-size: 13.5px; cursor: pointer;
  font-family: inherit; transition: .15s;
}
.filter:hover { border-color: #cbd5e1; color: var(--ink-2); }
.filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(15,23,42,.05), 0 16px 36px rgba(15,23,42,.09); }
.honor-media {
  height: 160px; background: linear-gradient(140deg, #eef2f9, #e6f4f4);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.honor-media img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.media-ph {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
}
.media-ph .seal {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--teal); font-size: 22px; box-shadow: 0 2px 10px rgba(15,23,42,.08);
}
.ph-cat { font-size: 12.5px; color: var(--muted); letter-spacing: .06em; }
.honor-body { padding: 20px 22px 24px; }
.honor-body h3 { margin: 0 0 6px; font-size: 17.5px; color: var(--ink); line-height: 1.45; }
.meta { margin: 0 0 6px; font-size: 13.5px; color: var(--teal); font-weight: 500; }
.date { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); }
.desc { margin: 0 0 10px; font-size: 14.5px; color: #475569; line-height: 1.7; }

.pdf-box {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 10px;
  font-size: 13.5px;
}
.pdf-icon { background: var(--coral); padding: 2px 7px; border-radius: 5px; font-size: 11px; font-weight: 700; }

/* ---------------- projects ---------------- */
.projects { display: flex; flex-direction: column; gap: 20px; }
.project {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 34px; box-shadow: var(--shadow);
  display: flex; gap: 28px; align-items: flex-start;
}
.project-body { flex: 1 1 auto; }
.project-top { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.project h3 { margin: 0; font-size: 21px; color: var(--ink); letter-spacing: -.01em; }
.year { font-size: 12.5px; color: var(--muted); background: #f1f5f9; padding: 2px 9px; border-radius: 6px; }
.project .chips { margin-top: 14px; }
.project-media { flex: 0 0 260px; }
.project-media img { width: 100%; border-radius: 12px; border: 1px solid var(--line); cursor: zoom-in; }
.link-row { margin: 14px 0 0; }
.link-row a { color: var(--blue); font-weight: 600; text-decoration: none; font-size: 14.5px; }
.link-row a:hover { text-decoration: underline; }

/* ---------------- prose ---------------- */
.prose p { font-size: 16.5px; line-height: 1.95; color: #334155; margin: 0 0 22px; }

.custom-block { margin-bottom: 54px; }
.custom-block:last-child { margin-bottom: 0; }
.custom-block h2 { margin: 0 0 8px; font-size: 25px; color: var(--ink); }
.custom-block p { font-size: 16px; line-height: 1.9; color: #334155; }
.custom-img { width: 100%; border-radius: 14px; margin: 16px 0 22px; cursor: zoom-in; }

/* ---------------- timeline ---------------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--teal), rgba(14,165,166,.15));
}
.timeline li { position: relative; padding: 0 0 34px 0; }
.timeline li::before {
  content: ""; position: absolute; left: -25px; top: 9px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; border: 3px solid var(--teal);
}
.timeline li:last-child { padding-bottom: 0; }
.tl-date { font-size: 12.5px; color: var(--teal); font-weight: 700; letter-spacing: .06em; }
.tl-body h3 { margin: 4px 0 6px; font-size: 18px; color: var(--ink); }
.tl-body p { margin: 0; font-size: 15px; color: #475569; }

/* ---------------- foot ---------------- */
.foot { padding: 46px 0; border-top: 1px solid var(--line); background: #fff; }
.foot p { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.foot .tiny { font-size: 12.5px; color: #94a3b8; }

/* ---------------- lightbox ---------------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .88); display: none;
  align-items: center; justify-content: center; z-index: 100; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.lb-close {
  position: absolute; top: 22px; right: 26px; background: transparent; border: 0;
  color: #fff; font-size: 34px; cursor: pointer; line-height: 1;
}

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .honor-media { height: 132px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .grid { grid-template-columns: 1fr; }
  .hero-inner { flex-direction: column-reverse; gap: 32px; align-items: flex-start; }
  .hero-media img, .avatar-ph { width: 150px; height: 188px; font-size: 60px; }
  .project { flex-direction: column; padding: 24px; }
  .project-media { flex: 1 1 auto; width: 100%; }
  .nav nav { gap: 16px; }
  .nav nav a { font-size: 13px; }
}
@media (max-width: 560px) {
  .wrap, .wrap.narrow { width: calc(100% - 32px); }
  .hero { padding: 56px 0 40px; }
  .section { padding: 52px 0; }
  .nav nav a:nth-child(n+4) { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
}