/* ============================================
   Rongzhe Wei — Personal Website v3
   Brand-forward academic design
   ============================================ */

:root {
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Fraunces', Georgia, serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-w: 1180px;
  --nav-h: 64px;
  --r: 24px;
  --r-sm: 12px;
  --r-xs: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Light ---- */
[data-theme="light"] {
  --bg: #f3f5f8;
  --bg2: #ffffff;
  --bg3: #e8eef5;
  --bg-nav: rgba(243,245,248,0.76);
  --tx: #102033;
  --tx2: #506176;
  --tx3: #7d8ba0;
  --accent: #0f766e;
  --accent-soft: rgba(15,118,110,0.1);
  --accent-border: rgba(15,118,110,0.2);
  --accent2: #d97706;
  --border: rgba(120, 142, 166, 0.24);
  --border2: rgba(120, 142, 166, 0.14);
  --card-shadow: 0 10px 30px rgba(16, 32, 51, 0.06);
  --card-shadow-hover: 0 22px 60px rgba(16, 32, 51, 0.12);
  --hl-bg: linear-gradient(180deg, rgba(15,118,110,0.08), rgba(15,118,110,0.03));
  --hl-border: rgba(15,118,110,0.16);
}

/* ---- Dark ---- */
[data-theme="dark"] {
  --bg: #07131f;
  --bg2: #0d1b2a;
  --bg3: #122235;
  --bg-nav: rgba(7,19,31,0.74);
  --tx: #e6eef8;
  --tx2: #9caec5;
  --tx3: #6b7f97;
  --accent: #5eead4;
  --accent-soft: rgba(94,234,212,0.12);
  --accent-border: rgba(94,234,212,0.22);
  --accent2: #fbbf24;
  --border: rgba(148, 163, 184, 0.2);
  --border2: rgba(148, 163, 184, 0.12);
  --card-shadow: 0 16px 36px rgba(2, 8, 18, 0.35);
  --card-shadow-hover: 0 30px 70px rgba(2, 8, 18, 0.55);
  --hl-bg: linear-gradient(180deg, rgba(94,234,212,0.1), rgba(94,234,212,0.04));
  --hl-border: rgba(94,234,212,0.16);
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--tx);
  background:
    radial-gradient(circle at top left, rgba(15,118,110,0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(217,119,6,0.12), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg3) 100%);
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent2); }
img { max-width: 100%; display: block; }
strong { font-weight: 600; }
::selection { background: var(--accent); color: #fff; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bg-nav);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 28px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--mono); font-weight: 700; font-size: 1rem;
  color: var(--tx); letter-spacing: -0.04em;
}
.nav-logo:hover { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 1px; }
.nav-links a {
  color: var(--tx2); font-size: 0.82rem; font-weight: 500;
  padding: 5px 11px; border-radius: var(--r-sm);
  transition: all 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--tx); background: var(--accent-soft); }

.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: transparent; color: var(--tx3); cursor: pointer;
  margin-left: 6px; transition: all 0.15s;
}
.theme-toggle:hover { color: var(--tx); border-color: var(--tx3); }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }

.nav-hamburger {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-hamburger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--tx2); border-radius: 1px;
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg-nav); backdrop-filter: blur(14px);
    flex-direction: column; padding: 10px 28px 18px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: all 0.25s var(--ease);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-links a { width: 100%; padding: 8px 11px; }
  .nav-hamburger { display: flex; }
  .theme-toggle { margin-left: 0; margin-top: 6px; }
}

/* ============ HERO ============ */
.hero {
  padding: calc(var(--nav-h) + 48px) 0 56px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}

.hero-avatar-col { text-align: left; }

.avatar {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: var(--r);
  object-fit: cover;
  margin-bottom: 24px;
  border: none;
  transition: transform 0.3s var(--ease);
}
.avatar:hover { transform: scale(1.01); }

.hero-name {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 4px;
}

.hero-cn {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--tx2);
  margin-bottom: 10px;
}

.hero-email {
  font-size: 0.9rem;
  color: var(--tx2);
  margin-bottom: 6px;
}

.hero-role {
  font-size: 0.93rem;
  color: var(--tx2);
  font-weight: 400;
  margin-bottom: 0;
  line-height: 1.5;
}

.hero-affiliation {
  font-size: 0.93rem;
  color: var(--tx2);
  font-weight: 400;
  margin-bottom: 0;
}

.hero-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

.hero-social {
  display: flex; gap: 20px; align-items: center;
}
.hero-social a {
  color: var(--tx2); transition: color 0.15s;
  display: flex; align-items: center;
}
.hero-social a:hover { color: var(--accent); }

.hero-text-col { padding-top: 8px; }

.hero-bio {
  color: var(--tx);
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 18px;
}

.hero-interests {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 18px;
}

.hero-interests li {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--tx);
  margin-bottom: 8px;
}

.hero-interests li strong {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 720px) {
  .hero-layout { grid-template-columns: 1fr; gap: 28px; }
  .hero-avatar-col { order: 0; }
  .avatar { max-width: 280px; }
  .hero-name { font-size: 1.5rem; }
}

/* ============ SECTIONS ============ */
.section { padding: 56px 0; }
.section-alt { background: var(--bg2); }

.section-heading {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section-lead {
  font-size: 0.9rem;
  color: var(--tx3);
  margin-bottom: 36px;
  margin-top: 12px;
}

/* ============ SELECTED RESEARCH ============ */
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.research-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  box-shadow: var(--card-shadow);
  position: relative;
}
.research-card:hover {
  border-color: var(--accent-border);
  border-left-color: var(--accent2);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}

.research-card-inner {
  padding: 28px 28px 24px;
}

.rc-venue {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-block;
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 4px;
}

.rc-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 12px 0 8px;
  line-height: 1.35;
}

.rc-desc {
  font-size: 0.88rem;
  color: var(--tx2);
  line-height: 1.65;
  margin-bottom: 18px;
}

.rc-links {
  display: flex;
  gap: 8px;
}
.rc-links a {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  color: var(--tx2);
  transition: all 0.15s;
}
.rc-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

@media (max-width: 720px) {
  .research-grid { grid-template-columns: 1fr; }
}

/* ============ NEWS ============ */

/* Highlights */
.highlights-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}

.highlight-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--hl-bg);
  border: 1px solid var(--hl-border);
  border-radius: var(--r);
}

.hl-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.highlight-card strong {
  font-size: 0.88rem;
  display: block;
  margin-bottom: 4px;
  color: var(--tx);
}

.highlight-card p {
  font-size: 0.8rem;
  color: var(--tx2);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .highlights-row { grid-template-columns: 1fr; }
}

/* News timeline */
.news-subheading {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tx3);
  margin-bottom: 14px;
}

.news-list { display: flex; flex-direction: column; }

.news-item {
  display: flex;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border2);
}
.news-item:last-child { border-bottom: none; }

.news-date {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--tx3);
  min-width: 72px;
  flex-shrink: 0;
  padding-top: 2px;
}

.news-item p {
  font-size: 0.88rem;
  color: var(--tx2);
  line-height: 1.6;
}
.news-item p strong { color: var(--tx); }

@media (max-width: 720px) {
  .news-item { flex-direction: column; gap: 3px; }
}

/* ============ PUBLICATIONS ============ */
.pub-group {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tx3);
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border2);
}
.pub-group:first-of-type { margin-top: 0; }

.pub-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border2);
}
.pub-item:last-child { border-bottom: none; }

.pub-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 5px;
}

.pub-authors {
  font-size: 0.84rem;
  color: var(--tx2);
  line-height: 1.55;
  margin-bottom: 6px;
}
.pub-authors .me {
  color: var(--accent);
  font-weight: 600;
}

.pub-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pub-venue {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  letter-spacing: 0.02em;
}

[data-theme="dark"] .pub-venue {
  background: var(--accent);
  color: var(--bg);
}

.pub-links {
  display: flex;
  gap: 5px;
}
.pub-links a {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--tx2);
  transition: all 0.15s;
}
.pub-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============ TWO-COL LAYOUT ============ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
}

/* ============ TIMELINE ============ */
.timeline { display: flex; flex-direction: column; }

.tl-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border2);
}
.tl-item:last-child { border-bottom: none; }

.tl-date {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--tx3);
  margin-bottom: 4px;
}

.tl-body h4 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.tl-loc {
  font-weight: 400;
  color: var(--tx3);
  font-size: 0.85em;
}

.tl-body p {
  font-size: 0.84rem;
  color: var(--tx2);
  line-height: 1.5;
}

.tl-sub {
  color: var(--tx3) !important;
  font-size: 0.8rem !important;
}

/* ============ HONORS COMPACT ============ */
.honors-compact {
  list-style: none;
  padding: 0;
}
.honors-compact li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border2);
  font-size: 0.85rem;
  color: var(--tx2);
  line-height: 1.5;
}
.honors-compact li:last-child { border-bottom: none; }

.honor-yr {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--tx3);
  margin-right: 8px;
}

/* ============ COMPACT LIST ============ */
.compact-list { display: flex; flex-direction: column; }

.cl-row {
  display: flex;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border2);
  font-size: 0.86rem;
}
.cl-row:last-child { border-bottom: none; }

.cl-label {
  min-width: 100px;
  font-weight: 600;
  color: var(--tx);
  flex-shrink: 0;
  font-size: 0.84rem;
}
.cl-value {
  color: var(--tx2);
  font-size: 0.84rem;
}

@media (max-width: 720px) {
  .cl-row { flex-direction: column; gap: 1px; }
}

/* ============ FOOTER ============ */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer p { font-size: 0.75rem; color: var(--tx3); }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--tx3); }

/* ============ PRINT ============ */
@media print {
  .nav, .theme-toggle, .nav-hamburger { display: none !important; }
  .hero { padding-top: 20px; }
}

/* ============================================
   Visual Refresh
   ============================================ */

body::before,
body::after {
  content: '';
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
}

body::before {
  top: 92px;
  right: 5vw;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.12), transparent 70%);
  filter: blur(10px);
}

body::after {
  bottom: 8vh;
  left: 4vw;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.1), transparent 68%);
  filter: blur(14px);
}

.nav {
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  box-shadow: 0 10px 28px rgba(16, 32, 51, 0);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.nav.scrolled {
  border-color: var(--border);
  box-shadow: 0 12px 34px rgba(16, 32, 51, 0.08);
}

.nav-inner,
.container {
  width: min(100%, var(--max-w));
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  font-family: var(--mono);
  font-size: 0.78rem;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.18);
}

.nav-logo-text {
  color: var(--tx);
}

.nav-links {
  gap: 6px;
}

.nav-links a {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .theme-toggle {
  background: rgba(7, 19, 31, 0.52);
}

.hero {
  padding: calc(var(--nav-h) + 34px) 0 78px;
}

.hero-shell {
  position: relative;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--border);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.52)),
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(217, 119, 6, 0.06));
  backdrop-filter: blur(14px);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

[data-theme="dark"] .hero-shell {
  background:
    linear-gradient(180deg, rgba(13, 27, 42, 0.92), rgba(13, 27, 42, 0.78)),
    linear-gradient(135deg, rgba(94, 234, 212, 0.08), rgba(251, 191, 36, 0.06));
}

.hero-shell::before {
  content: '';
  position: absolute;
  inset: -30% auto auto -10%;
  width: 26rem;
  height: 26rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.14), transparent 72%);
  pointer-events: none;
}

.hero-shell::after {
  content: '';
  position: absolute;
  right: -12%;
  bottom: -20%;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.12), transparent 72%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 54px);
}

.hero-avatar-col {
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

[data-theme="dark"] .hero-avatar-col {
  background: rgba(7, 19, 31, 0.42);
}

.avatar {
  max-width: none;
  width: 100%;
  margin-bottom: 18px;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(16, 32, 51, 0.18);
}

.hero-profile-label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-name {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.02;
  margin-bottom: 6px;
}

.hero-cn {
  margin-bottom: 14px;
  color: var(--tx2);
  letter-spacing: 0.08em;
}

.hero-email {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--tx2);
}

.hero-role,
.hero-affiliation {
  font-size: 0.95rem;
}

.hero-divider {
  margin: 20px 0 18px;
}

.hero-social {
  gap: 10px;
  flex-wrap: wrap;
}

.hero-social a {
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--tx2);
}

[data-theme="dark"] .hero-social a {
  background: rgba(7, 19, 31, 0.48);
}

.hero-social a:hover {
  transform: translateY(-2px);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.hero-text-col {
  padding-top: 14px;
}

.hero-kicker {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-display {
  max-width: 12ch;
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-bio {
  max-width: 62ch;
  font-size: 1.02rem;
  color: var(--tx2);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 28px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.86rem;
  font-weight: 700;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.hero-button:hover {
  transform: translateY(-2px);
}

.hero-button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.2);
}

.hero-button-primary:hover {
  color: white;
}

.hero-button-secondary,
.hero-button-ghost {
  border-color: var(--border);
  color: var(--tx);
  background: rgba(255, 255, 255, 0.62);
}

[data-theme="dark"] .hero-button-secondary,
[data-theme="dark"] .hero-button-ghost {
  background: rgba(7, 19, 31, 0.5);
}

.hero-button-secondary:hover,
.hero-button-ghost:hover,
.hero-email:hover {
  color: var(--tx);
  border-color: var(--accent-border);
}

.hero-interests {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-left: 0;
  list-style: none;
  margin: 18px 0 0;
}

.hero-interests li {
  margin-bottom: 0;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--border);
  box-shadow: 0 14px 32px rgba(16, 32, 51, 0.05);
}

[data-theme="dark"] .hero-interests li {
  background: rgba(7, 19, 31, 0.44);
}

.section {
  padding: 30px 0 42px;
}

#research > .container,
#news > .container,
#publications > .container,
#experience > .container,
#misc > .container {
  padding: clamp(26px, 4vw, 38px);
  border-radius: 30px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
}

[data-theme="dark"] #research > .container,
[data-theme="dark"] #news > .container,
[data-theme="dark"] #publications > .container,
[data-theme="dark"] #experience > .container,
[data-theme="dark"] #misc > .container {
  background: rgba(13, 27, 42, 0.72);
}

.section-alt {
  background: transparent;
}

.section-heading {
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 0;
}

.section-heading::after {
  bottom: -10px;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.section-lead {
  max-width: 60ch;
  margin-top: 16px;
  margin-bottom: 30px;
  font-size: 0.96rem;
  color: var(--tx2);
}

.research-grid {
  gap: 18px;
}

.research-card,
.highlight-card,
.pub-item,
#experience .col,
#misc .col {
  position: relative;
  overflow: hidden;
}

.research-card {
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.76), rgba(255,255,255,0.56)),
    linear-gradient(135deg, rgba(15,118,110,0.08), rgba(217,119,6,0.05));
}

[data-theme="dark"] .research-card {
  background:
    linear-gradient(180deg, rgba(13,27,42,0.88), rgba(13,27,42,0.72)),
    linear-gradient(135deg, rgba(94,234,212,0.07), rgba(251,191,36,0.04));
}

.research-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
}

.research-card:hover {
  transform: translateY(-6px);
}

.research-card-inner {
  padding: 28px;
}

.rc-venue {
  border-radius: 999px;
  padding: 5px 12px;
}

.rc-title {
  font-size: 1.26rem;
}

.rc-desc {
  font-size: 0.92rem;
}

.rc-links {
  flex-wrap: wrap;
}

.rc-links a {
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.48);
}

.highlights-row {
  gap: 16px;
}

.highlight-card {
  min-height: 138px;
  padding: 22px;
  border-radius: 24px;
  background: var(--hl-bg);
  box-shadow: 0 14px 30px rgba(16, 32, 51, 0.05);
  gap: 18px;
}

.hl-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 78px;
  padding: 0 14px;
  border-radius: 24px;
  background: rgba(255,255,255,0.72);
  color: var(--accent);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}

.highlight-card strong {
  font-size: 1rem;
}

.highlight-card p {
  font-size: 0.9rem;
  line-height: 1.62;
}

.news-subheading {
  margin-bottom: 18px;
  font-size: 0.76rem;
}

.news-list {
  gap: 10px;
}

.news-item {
  padding: 16px 18px;
  border: 1px solid var(--border2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
}

[data-theme="dark"] .news-item {
  background: rgba(7, 19, 31, 0.38);
}

.news-date {
  min-width: 88px;
  color: var(--accent);
}

.news-item p {
  color: var(--tx);
}

.pub-group {
  margin-top: 44px;
  margin-bottom: 18px;
  border-bottom: none;
}

.pub-item {
  padding: 18px 20px;
  margin-bottom: 12px;
  border: 1px solid var(--border2);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.52);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

[data-theme="dark"] .pub-item {
  background: rgba(7, 19, 31, 0.36);
}

.pub-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent-border);
  box-shadow: 0 16px 28px rgba(16, 32, 51, 0.08);
}

.pub-title {
  font-size: 1rem;
}

.pub-authors {
  font-size: 0.88rem;
}

.pub-venue {
  border-radius: 999px;
  padding: 5px 10px;
}

.pub-links a {
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255,255,255,0.42);
}

#experience .two-col,
#misc .two-col {
  gap: 22px;
}

#experience .col,
#misc .col {
  padding: 22px;
  border: 1px solid var(--border2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 12px 28px rgba(16, 32, 51, 0.05);
}

[data-theme="dark"] #experience .col,
[data-theme="dark"] #misc .col {
  background: rgba(7, 19, 31, 0.4);
}

#experience .section-heading,
#misc .section-heading {
  font-size: 1.8rem;
}

.timeline {
  gap: 12px;
}

.tl-item,
.cl-row,
.honors-compact li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border2);
}

.tl-date,
.honor-yr {
  color: var(--accent);
}

.tl-body p,
.cl-value,
.honors-compact li {
  color: var(--tx2);
}

.compact-list {
  gap: 2px;
}

.cl-row {
  gap: 18px;
}

.cl-label {
  min-width: 108px;
}

.footer {
  padding: 34px 0 42px;
  border-top: 1px solid transparent;
}

.footer p {
  font-size: 0.82rem;
  color: var(--tx2);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-display {
    max-width: 100%;
  }

  .hero-interests {
    grid-template-columns: 1fr;
  }

  .nav-logo-text {
    display: none;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 18px;
  }

  #research > .container,
  #news > .container,
  #publications > .container,
  #experience > .container,
  #misc > .container,
  .hero-shell {
    padding: 22px;
    border-radius: 24px;
  }

  .hero {
    padding: calc(var(--nav-h) + 18px) 0 46px;
  }

  .hero-button {
    width: 100%;
  }

  .hero-social a {
    width: 38px;
    height: 38px;
  }

  .research-card-inner,
  .highlight-card,
  .pub-item,
  #experience .col,
  #misc .col {
    padding: 18px;
  }
}

/* ============================================
   Hero Size Tuning
   ============================================ */

.hero-layout {
  grid-template-columns: minmax(250px, 290px) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 42px);
}

.hero-profile-label {
  white-space: nowrap;
  font-size: 0.68rem;
  padding: 6px 11px;
}

.hero-name {
  font-size: clamp(1.9rem, 2.5vw, 2.6rem);
  white-space: nowrap;
}

.hero-display {
  max-width: none;
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero-bio {
  font-size: 0.98rem;
  line-height: 1.8;
}

.hero-focus-statement {
  margin: 0 0 26px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--accent-border);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(217, 119, 6, 0.08));
  color: var(--tx);
  font-size: 1rem;
  line-height: 1.75;
  box-shadow: 0 16px 32px rgba(16, 32, 51, 0.08);
}

[data-theme="dark"] .hero-focus-statement {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.12), rgba(251, 191, 36, 0.08));
}

.hero-focus-statement strong {
  color: var(--accent);
  font-weight: 700;
}

@media (min-width: 1200px) {
  .hero-display {
    font-size: 2.75rem;
  }
}

@media (max-width: 900px) {
  .hero-name,
  .hero-profile-label {
    white-space: normal;
  }

  .hero-display {
    font-size: clamp(1.9rem, 6vw, 2.7rem);
  }
}

@media (max-width: 720px) {
  .hero-focus-statement {
    padding: 14px 15px;
    font-size: 0.94rem;
  }
}
