:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #152033;
  --muted: #607086;
  --line: #dfe5ec;
  --accent: #2457d6;
  --accent-2: #173f9f;
  --soft: #eaf0ff;
  --shadow: 0 14px 34px rgba(24, 39, 75, 0.08);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(247, 248, 251, 0.9);
  border-bottom: 1px solid rgba(223,229,236,.9);
}
.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 24px; font-weight: 600; font-size: .95rem; }
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.menu-btn { display: none; border: 0; background: transparent; font-size: 1.35rem; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 92px 0 70px;
  background:
    radial-gradient(circle at 82% 18%, rgba(36,87,214,.19), transparent 34%),
    radial-gradient(circle at 64% 78%, rgba(50,155,205,.12), transparent 32%),
    linear-gradient(180deg, #fbfcff, var(--bg));
}
.hero-motion { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 1; }
.hero-motion::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(36,87,214,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(36,87,214,.075) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(90deg, transparent, black 15%, black 90%, transparent); }
.hero-motion::after { content: ""; position: absolute; width: 380px; height: 380px; right: 7%; top: 8%; border-radius: 50%; background: rgba(74,134,233,.16); filter: blur(70px); animation: glow-drift 10s ease-in-out infinite alternate; }
.motion-orbit { position: absolute; display: block; border: 2px solid rgba(36,87,214,.32); border-radius: 50%; transform: rotate(-18deg); }
.motion-orbit-one { width: min(72vw, 920px); height: min(26vw, 320px); right: -8vw; top: 18%; animation: orbit-drift 18s ease-in-out infinite alternate; }
.motion-orbit-two { width: min(58vw, 720px); height: min(21vw, 250px); right: 3vw; top: 34%; border-color: rgba(64,132,239,.24); transform: rotate(22deg); animation: orbit-drift-two 24s ease-in-out infinite alternate; }
.motion-line { position: absolute; display: block; height: 2px; transform-origin: left center; background: linear-gradient(90deg, transparent, rgba(36,87,214,.55), transparent); }
.motion-line-one { width: min(48vw, 620px); right: 1%; top: 38%; transform: rotate(-19deg); }
.motion-line-two { width: min(42vw, 520px); right: 8%; top: 62%; transform: rotate(15deg); background: linear-gradient(90deg, transparent, rgba(50,155,205,.42), transparent); }
.motion-node { position: absolute; display: block; width: 10px; height: 10px; border-radius: 50%; background: #3978e3; box-shadow: 0 0 0 7px rgba(110,157,241,.18), 0 0 28px rgba(36,87,214,.72); animation: node-breathe 4.5s ease-in-out infinite; }
.motion-node-one { right: 26%; top: 23%; }
.motion-node-two { right: 13%; top: 42%; animation-delay: -1.2s; }
.motion-node-three { right: 34%; top: 59%; animation-delay: -2.6s; }
.motion-node-four { right: 8%; top: 72%; animation-delay: -3.5s; }
.motion-pulse { position: absolute; display: block; width: 9px; height: 9px; border-radius: 50%; background: #2457d6; box-shadow: 0 0 0 7px rgba(74,134,233,.18), 0 0 24px rgba(36,87,214,.8); animation: pulse-travel 7s linear infinite; }
.motion-pulse-one { left: 76%; top: 35%; }
.motion-pulse-two { left: 67%; top: 65%; animation-delay: -3.5s; }
@keyframes orbit-drift { from { transform: rotate(-18deg) translate3d(-10px, 3px, 0); } to { transform: rotate(-14deg) translate3d(16px, -8px, 0); } }
@keyframes orbit-drift-two { from { transform: rotate(22deg) translate3d(12px, 0, 0); } to { transform: rotate(17deg) translate3d(-16px, 9px, 0); } }
@keyframes glow-drift { from { transform: translate3d(-20px, -8px, 0) scale(.9); } to { transform: translate3d(28px, 18px, 0) scale(1.12); } }
@keyframes node-breathe { 0%, 100% { opacity: .55; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.25); } }
@keyframes pulse-travel { 0% { opacity: 0; transform: translateX(-90px) scale(.7); } 18%, 78% { opacity: .8; } 100% { opacity: 0; transform: translateX(170px) scale(1); } }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.45fr .75fr; gap: 70px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .13em; font-size: .78rem; font-weight: 800; color: var(--accent); }
h1 { font-size: clamp(2.7rem, 7vw, 5.6rem); line-height: .98; letter-spacing: -.055em; margin: 14px 0 20px; }
.hero h2 { margin: 0 0 18px; font-size: clamp(1.15rem, 2.5vw, 1.55rem); font-weight: 650; color: var(--muted); }
.hero p { font-size: 1.08rem; max-width: 760px; color: #4e5d72; }
.hero .collaboration-note { margin: 16px 0 0; padding-left: 14px; border-left: 3px solid var(--accent); color: var(--accent-2); font-size: 1rem; line-height: 1.55; }
.collaboration-note strong { font-weight: 800; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 17px; border-radius: 10px; font-weight: 700; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.btn.primary { background: var(--text); color: #fff; border-color: var(--text); }
.btn:hover { transform: translateY(-1px); }
.profile-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); }
.academic-profile { padding: 28px; }
.profile-heading { display: flex; align-items: center; gap: 18px; padding-bottom: 8px; }
.profile-headshot { width: 96px; height: auto; flex: 0 0 96px; border-radius: 12px; }
.profile-heading .profile-kicker { margin: 0; }
.profile-kicker { text-transform: uppercase; letter-spacing: .13em; font-size: .72rem; font-weight: 850; color: var(--accent); margin-bottom: 8px; }
.profile-row { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 3px; }
.profile-label { color: var(--muted); font-size: .79rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.profile-row strong { font-size: .98rem; line-height: 1.4; }
.profile-links { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 20px; }
.profile-links a { display: inline-flex; padding: 9px 12px; border-radius: 9px; background: var(--soft); font-weight: 750; font-size: .9rem; }

section { padding: 72px 0; }
.section-head { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 30px; }
.section-head h2 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.035em; }
.section-head p { max-width: 620px; color: var(--muted); margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: 0 8px 24px rgba(24,39,75,.04); }
.card h3 { margin: 8px 0 8px; font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); }
.number { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--soft); color: var(--accent); font-weight: 850; }

.publication-list { display: grid; gap: 14px; }
.pub { display: grid; grid-template-columns: 100px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.pub:first-child { border-top: 0; }
.pub-year { color: var(--accent); font-weight: 800; }
.pub h3 { margin: 0 0 6px; font-size: 1.06rem; line-height: 1.45; }
.pub p { margin: 0; color: var(--muted); font-size: .95rem; }
.pub .venue { margin-top: 5px; font-weight: 650; color: #45546a; }

.featured-research { background: var(--surface); border-block: 1px solid var(--line); }
.paper-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.paper-feature h2 { max-width: 1000px; margin: 22px 0 14px; font-size: clamp(1.65rem, 3.2vw, 2.65rem); line-height: 1.18; letter-spacing: -.035em; }
.paper-feature h2 a, .pub h3 a { color: var(--text); }
.paper-feature h2 a:hover, .pub h3 a:hover { color: var(--accent); }
.paper-authors { margin: 0; color: var(--muted); font-size: .96rem; }
.paper-authors strong, .pub p strong { color: var(--text); font-weight: 650; }
.paper-summary, .pub .paper-summary { margin: 16px 0 0; max-width: 850px; color: #45546a; font-size: 1.06rem; line-height: 1.65; }
.paper-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.paper-links a { display: inline-flex; align-items: center; gap: 14px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: .88rem; font-weight: 650; }
.paper-links a:first-child { background: var(--text); border-color: var(--text); color: white; }
.paper-links a:hover { border-color: var(--accent); }
.paper-links a:first-child:hover { background: var(--accent-2); }
.paper-figure { margin: 30px 0 0; }
.paper-figure-image { display: block; padding: clamp(10px, 2.4vw, 28px); border: 1px solid var(--line); border-radius: 14px; background: white; cursor: zoom-in; }
.paper-figure-image:hover { border-color: var(--accent); }
.paper-figure-image img { width: 100%; height: auto; }
.figure-expand { display: block; margin-top: 14px; text-align: right; font-size: .8rem; font-weight: 650; }
.paper-figure figcaption { margin: 12px 0 0; max-width: 950px; color: var(--muted); font-size: .85rem; line-height: 1.6; }
.pub-with-figure { padding-bottom: 36px; }
.pub-with-figure > div { min-width: 0; }
.figure-dialog { width: min(1500px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: white; color: var(--text); box-shadow: var(--shadow); }
.figure-dialog::backdrop { background: rgba(15, 25, 43, .72); }
.figure-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.figure-dialog-header h2 { margin: 0; font-size: 1rem; line-height: 1.4; }
.figure-dialog-header form { margin: 0; }
.figure-dialog-header button { padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); cursor: pointer; font: inherit; }
.figure-dialog img { width: 100%; height: auto; }
.figure-dialog > a { display: inline-block; margin-top: 16px; font-size: .9rem; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.page-hero { padding: 64px 0 34px; }
.dissertation-head { margin-bottom: 20px; }
.section-head .dissertation-title { max-width: 820px; margin-top: 7px; font-size: clamp(1.05rem, 1.55vw, 1.35rem); line-height: 1.38; letter-spacing: -.012em; }
.dissertation-link { margin-top: 16px; background: var(--accent); border-color: var(--accent); }
.dissertation-link:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); margin-bottom: 16px; }
.page-hero p { max-width: 760px; font-size: 1.1rem; color: var(--muted); }
.filter-note { background: var(--soft); border-radius: 14px; padding: 16px 18px; color: #41516c; margin-bottom: 28px; }

.footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: .93rem; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display:flex; gap:18px; flex-wrap:wrap; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .profile-card { max-width: 460px; }
  .grid-3 { grid-template-columns: 1fr; }
  .pub { grid-template-columns: 1fr; gap: 4px; }
  .section-head { align-items: start; flex-direction: column; }
}

@media (max-width: 720px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .menu-btn { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; padding: 18px 20px 22px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; }
  .nav-links.open { display: flex; }
  .hero { padding-top: 60px; }
  section { padding: 54px 0; }
  .hero-motion { opacity: .82; }
  .motion-orbit-one { width: 110vw; right: -45vw; }
  .motion-orbit-two { width: 92vw; right: -22vw; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-motion::after, .motion-orbit, .motion-node, .motion-pulse { animation: none; }
}
