:root {
  --navy: #072f4f;
  --duke: #00539b;
  --ink: #152735;
  --paper: #f6f4ee;
  --white: #fff;
  --line: rgba(21, 39, 53, .2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 400; letter-spacing: -.008em; }
a { color: inherit; }

.site-header {
  min-height: 88px; padding: 0 clamp(24px, 5vw, 80px); display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--paper);
}
.nameplate { font-size: 1.18rem; font-weight: 600; letter-spacing: -.02em; text-decoration: none; }
nav { display: flex; gap: clamp(18px, 3vw, 40px); }
nav a { text-decoration: none; font-size: .9rem; color: #52616b; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; }

.hero { min-height: 650px; padding: clamp(60px, 7vw, 100px) clamp(24px, 8vw, 130px); display: grid; grid-template-columns: minmax(260px, 390px) minmax(420px, 680px); justify-content: center; align-items: center; gap: clamp(55px, 8vw, 130px); background: var(--navy); }
.portrait { position: relative; overflow: hidden; width: 100%; aspect-ratio: 4 / 5; background: #102f46; border: 1px solid rgba(255,255,255,.3); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 34%; }
.hero-copy { color: var(--white); text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.eyebrow, .section-label { margin: 0 0 22px; text-transform: uppercase; letter-spacing: .15em; font-weight: 600; font-size: .72rem; }
.hero-copy .eyebrow, .page-heading .eyebrow { color: #73b7e5; }
h1, h2 { font-family: inherit; font-weight: 600; }
.hero h1 { margin: 0; font-size: clamp(2.6rem, 4.2vw, 4.1rem); line-height: 1.05; letter-spacing: -.04em; }
.affiliation { margin: 24px 0 0; color: var(--white); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 2.4vw, 2.2rem); font-weight: 400; letter-spacing: .015em; }
.affiliation a { color: inherit; text-decoration: none; }
.affiliation a:hover { text-decoration: underline; text-underline-offset: 5px; }
.role { margin: 18px 0 18px; color: #d7e6ef; font-size: clamp(1.35rem, 1.8vw, 1.65rem); }
.intro { max-width: 640px; margin: 0; color: #eaf1f5; font-size: clamp(1.12rem, 1.45vw, 1.28rem); line-height: 1.65; }
.actions { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.button { display: inline-block; padding: 13px 20px; text-decoration: none; font-size: .9rem; font-weight: 600; border: 1px solid rgba(255,255,255,.35); }
.button.primary { background: var(--white); color: var(--navy); }
.button.secondary { color: var(--white); }
.button:hover { transform: translateY(-1px); }

.focus { padding: clamp(72px, 10vw, 140px) clamp(24px, 12vw, 190px); }
.focus h2 { max-width: 950px; margin: 0 0 50px; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.12; letter-spacing: -.035em; }
.text-link { text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 5px; }

.page-shell { max-width: 1220px; margin: 0 auto; padding: clamp(70px, 10vw, 140px) clamp(24px, 6vw, 80px); }
.page-heading { max-width: 850px; margin-bottom: 110px; }
.page-heading h1 { margin: 0 0 30px; font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1; letter-spacing: -.05em; }
.research-page .page-heading { margin-bottom: 75px; }
.research-page .page-heading h1 { max-width: 720px; font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: -.035em; }
.page-heading > p:last-child, .page-heading > p:nth-last-child(2) { max-width: 700px; font-size: 1.15rem; line-height: 1.7; color: #52616b; }
.page-heading .eyebrow { color: var(--duke); }
.research-group { border-top: 1px solid var(--line); padding: 32px 0 80px; }
.paper { max-width: 930px; }
.paper + .paper { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.paper h2 { margin: 0 0 10px; font-size: clamp(1.7rem, 2.8vw, 2.35rem); line-height: 1.18; }
.paper p { max-width: 720px; color: #52616b; line-height: 1.65; }
.paper .venue { color: var(--duke); font-size: 1.08rem; font-weight: 600; }
.paper .venue.journal { margin-bottom: 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 2vw, 1.55rem); font-style: italic; font-weight: 400; }
.paper .venue.status { margin-bottom: 8px; font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 600; }
.paper .coauthors { margin-top: 0; color: var(--ink); font-size: 1.08rem; font-weight: 500; }
.paper .coauthors a { color: var(--duke); font-weight: 600; text-decoration: none; }
.paper .coauthors a:hover { text-decoration: underline; text-underline-offset: 4px; }
.paper .abstract { margin-top: 22px; }
.paper .abstract span { color: var(--ink); font-weight: 600; }
.paper-link { display: inline-block; margin-top: 8px; padding-bottom: 3px; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--ink); }
.compact-page { min-height: calc(100vh - 173px); }
.compact-page .page-heading { margin-bottom: 80px; }
.compact-page .button.primary { margin-top: 22px; background: var(--navy); color: white; }
.cv-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; border-top: 1px solid var(--line); padding-top: 34px; }
.cv-summary h2 { font-size: 1.8rem; margin-bottom: 6px; }
.contact-heading { max-width: 950px; }
.contact-email { display: inline-block; font-size: clamp(1.15rem, 2.4vw, 2rem); text-decoration: none; border-bottom: 1px solid var(--ink); margin: 12px 0 40px; padding-bottom: 7px; }
footer { min-height: 85px; padding: 0 clamp(24px, 5vw, 80px); background: var(--navy); color: #bad0df; display: flex; align-items: center; justify-content: space-between; font-size: .8rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-button { padding: 9px 16px; border: 1px solid rgba(255,255,255,.35); color: var(--white); font-weight: 600; text-decoration: none; }
.footer-button:hover { background: rgba(255,255,255,.1); }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; gap: 22px; padding-top: 24px; padding-bottom: 24px; flex-direction: column; }
  nav { width: 100%; justify-content: space-between; gap: 10px; }
  .hero { grid-template-columns: 1fr; padding: 48px 24px 68px; gap: 46px; }
  .portrait { width: min(100%, 340px); justify-self: center; }
  .page-heading { margin-bottom: 70px; }
  .cv-summary { grid-template-columns: 1fr; }
  footer { gap: 15px; padding-top: 20px; padding-bottom: 20px; flex-direction: column; justify-content: center; align-items: flex-start; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .65s ease both; }
  .hero-copy > *:nth-child(2) { animation-delay: .06s; }
  .hero-copy > *:nth-child(3) { animation-delay: .12s; }
  .hero-copy > *:nth-child(4) { animation-delay: .18s; }
  .hero-copy > *:nth-child(5) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } }
}
