:root {
  --bg: #faf9f6;
  --text: #263638;
  --muted: #647171;
  --border: #dce2dd;
  --accent: #286e66;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(250,249,246,.96); border-bottom: 1px solid var(--border); }
.nav { max-width: 1120px; padding: 23px 40px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-family: Georgia, serif; font-size: 23px; color: var(--text); letter-spacing: -.6px; }
.nav-links { display: flex; gap: 29px; font-size: 13px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--accent); }
main { max-width: 1120px; margin: auto; padding: 0 40px 70px; }
.intro { display: grid; grid-template-columns: 265px minmax(0, 1fr); gap: 76px; padding: 76px 0 70px; align-items: start; }
.profile-photo { width: 100%; overflow: hidden; border-radius: 5px; background: #e4e8e1; }
.profile-photo img { width: 100%; height: 315px; object-fit: cover; display: block; }
.profile h1 { font-family: Georgia, serif; font-size: 31px; line-height: 1.3; font-weight: normal; letter-spacing: -.9px; margin: 23px 0 5px; }
.affiliation { color: var(--muted); font-size: 14px; margin: 0; }
.profile-links { display: flex; gap: 18px; font-size: 12px; margin-top: 17px; }
.section { padding: 42px 0; border-top: 1px solid var(--border); }
#about { padding: 3px 0 0; border: 0; }
.eyebrow { text-transform: uppercase; color: var(--accent); letter-spacing: 2.2px; font-size: 11px; font-weight: 600; margin: 0 0 17px; }
#about p:not(.eyebrow) { margin: 0 0 19px; font-size: 16px; line-height: 1.9; }
.section-heading { display: flex; align-items: baseline; gap: 17px; margin-bottom: 25px; }
h2 { font-family: Georgia, serif; font-weight: normal; font-size: 30px; letter-spacing: -.6px; margin: 0; line-height: 1.3; }
.pub-table { width: 100%; border-collapse: collapse; }
.pub-entry { padding: 23px 0 25px 32px; border-bottom: 1px solid var(--border); vertical-align: top; font-size: 14px; color: var(--muted); line-height: 1.85; }
.pub-table tr:first-child .pub-entry { padding-top: 0; }
.pub-table tr:last-child .pub-entry { border-bottom: 0; padding-bottom: 0; }
.pub-details > strong:first-child { display: inline-block; font-size: 17px; color: var(--text); font-weight: 600; line-height: 1.5; margin-bottom: 5px; }
.pub-entry strong { color: var(--text); font-weight: 600; }
.pub-entry a { display: inline-block; margin-top: 5px; font-size: 12px; font-weight: 600; }
.pub-entry span { color: var(--accent); font-size: 13px; }
.section ul { list-style: none; padding: 0 0 0 32px; margin: 0; }
.section li { padding: 15px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.section li:first-child { padding-top: 0; }
.section li:last-child { border-bottom: 0; padding-bottom: 0; }
#talks li > span, #teaching li > span { display: inline; color: var(--text); font-weight: 500; }
#talks li > span em, #teaching li > span em { font-style: normal; }
#talks li > em, #teaching li > em { color: var(--muted); font-size: 13px; font-style: normal; }
#contact p { margin: 0 0 0 32px; font-size: 14px; line-height: 2.1; }
.footer { border-top: 1px solid var(--border); padding: 23px 24px; text-align: center; color: var(--muted); font-size: 11px; }
.footer p { margin: 0; }
.skip-link { position: absolute; left: 20px; top: -100px; z-index: 20; background: var(--bg); padding: 10px 18px; }
.skip-link:focus { top: 12px; }
@media (max-width: 800px) {
  .intro { grid-template-columns: 210px minmax(0, 1fr); gap: 36px; padding: 48px 0; }
  .profile-photo img { height: 260px; }
  .nav, main { padding-left: 28px; padding-right: 28px; }
  .nav-links { gap: 17px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 120px; }
  .nav { align-items: flex-start; flex-direction: column; gap: 10px; padding-top: 15px; padding-bottom: 15px; }
  .nav-links { width: 100%; justify-content: space-between; gap: 10px; font-size: 12px; }
  .intro { grid-template-columns: 1fr; gap: 35px; padding: 35px 0 40px; }
  .profile-photo { width: 210px; }
  .profile-photo img { height: 245px; }
  .profile h1 { margin-top: 18px; }
    .section { padding: 32px 0; }
  .pub-entry { padding-left: 0; }
  .section ul { padding-left: 0; }
  #contact p { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Research thumbnails stay beside the publication on desktop and stack on phones. */
.pub-entry { display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: 27px; align-items: center; padding-left: 0; }
.pub-figure { margin: 0; width: 100%; aspect-ratio: 16 / 9; background: transparent; border: 0; border-radius: 5px; overflow: hidden; }
.pub-figure img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 0; }
.pub-details { min-width: 0; }
#about .eyebrow { margin-bottom: 24px; }
@media (max-width: 800px) {
  .pub-entry { grid-template-columns: 165px minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 600px) {
  .pub-entry { grid-template-columns: 1fr; gap: 17px; }
  .pub-figure { width: min(100%, 280px); }
}

.pub-figure figcaption { padding: 0 8px 7px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.pub-figure figcaption a { margin: 0; font-size: inherit; font-weight: normal; }

/* Images and animations share the FuseBot demo’s 16:9 frame. */
.pub-animation { border: 0; background: transparent; }
.pub-animation picture { display: block; width: 100%; height: 100%; }
.pub-animation img { width: 100%; height: 100%; padding: 0; object-fit: contain; }

#talks ul, #teaching ul { list-style: disc; padding-left: 1.4rem; }
#talks li, #teaching li { padding-left: 4px; }
#talks li::marker, #teaching li::marker { color: var(--accent); }

#awards .awards-list { list-style: disc; padding-left: 1.4rem; }
#awards li { padding-left: 4px; }
#awards li > .award-entry { display: inline; }
#awards .award-entry > span:first-child { color: var(--text); font-weight: 500; }
.award-year::before { content: " — "; }
#awards li::marker { color: var(--accent); }
#awards li, #talks li, #teaching li { border-bottom: 0; }
.award-year { flex-shrink: 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .nav-links { flex-wrap: wrap; justify-content: flex-start; column-gap: 18px; row-gap: 6px; }
}

#awards li, #talks li, #teaching li { margin-bottom: 0; padding-top: 5px; padding-bottom: 5px; }
#awards li:first-child, #talks li:first-child, #teaching li:first-child { padding-top: 0; }
#awards li:last-child, #talks li:last-child, #teaching li:last-child { padding-bottom: 0; }

#talks li, #teaching li { padding-top: 3px; padding-bottom: 3px; line-height: 1.5; }

@media (min-width: 601px) and (max-width: 900px) {
  .nav { flex-wrap: wrap; }
  .nav-links { flex-wrap: wrap; gap: 12px 20px; }
}

/* Fill the shared publication frame with the SeaScan result. */
.pub-figure img[src="assets/publications/seascan-result.png"] { object-fit: cover; object-position: center; }

/* Fill the shared publication frame with the SatExt demonstration. */
.pub-figure img[src="assets/publications/satext-demo-v2.gif"] { object-fit: cover; object-position: center; }

/* Fill the shared frame with the thesis and RFID publication images. */
.pub-figure img[src="assets/publications/thesis-underwater-camera.png"],
.pub-figure img[src="assets/publications/rf-boost.png"] { object-fit: cover; object-position: center; }

/* Show the full PDM-Synthesis figure with white space inside the shared frame. */
.pub-figure img[src="assets/publications/pdm-synthesis-figure.png"] { object-fit: contain; object-position: center; background: #fff; }

/* Mobile layout: readable content, comfortable links, and no table overflow. */
@media (max-width: 600px) {
  html { scroll-padding-top: 20px; }
  .site-header { position: static; background: var(--bg); }
  .nav { padding: 16px 20px 10px; gap: 8px; }
  .brand { font-size: 22px; }
  .nav-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 8px; font-size: 13px; }
  .nav-links a { display: flex; align-items: center; min-height: 44px; }
  main { padding: 0 20px 44px; }
  .intro { gap: 28px; padding: 28px 0 32px; }
  .profile { display: block; }
  .profile-photo { width: min(240px, 100%); }
  .profile-photo img { height: auto; aspect-ratio: 265 / 315; object-fit: cover; }
  .profile h1 { margin: 20px 0 4px; font-size: 28px; letter-spacing: -.6px; }
  .affiliation { grid-column: 2; font-size: 14px; }
  .profile-links { grid-column: 1 / -1; gap: 24px; margin-top: 12px; font-size: 14px; flex-wrap: wrap; }
  .profile-links a { display: inline-flex; align-items: center; min-height: 44px; }
  #about .eyebrow { margin-bottom: 14px; }
  #about p:not(.eyebrow) { line-height: 1.75; }
  h2 { font-size: 28px; }
  .section-heading { margin-bottom: 24px; }
  .pub-table, .pub-table tbody, .pub-table tr { display: block; width: 100%; }
  .pub-entry { width: 100%; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 26px 0; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
  .pub-figure { width: 100%; max-width: 360px; }
  .pub-details > strong:first-child { font-size: 18px; line-height: 1.45; }
  .pub-entry a { min-height: 44px; padding: 10px 0; font-size: 14px; }
  #awards li, #talks li, #teaching li { padding-top: 10px; padding-bottom: 10px; line-height: 1.65; }
  #contact p { font-size: 15px; overflow-wrap: anywhere; line-height: 2.5; }
}
@media (max-width: 360px) {
  .profile h1 { font-size: 25px; }
}

/* Keep titles and event details together in compact, naturally wrapping bullets. */
#talks li > em::before, #teaching li > em::before { content: "— "; }
#talks li, #teaching li { padding-top: 3px; padding-bottom: 3px; line-height: 1.5; }

#awards li { padding-top: 3px; padding-bottom: 3px; line-height: 1.5; }

/* Outlined resource links for publications, talks, and lectures. */
a.resource-link, .pub-entry a.resource-link {
  display: inline-block;
  min-height: 0;
  border: 1px solid var(--text);
  border-radius: 2px;
  padding: 3px 12px;
  margin: 5px 6px 0 0;
  color: var(--text);
  background: transparent;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .3px;
  text-decoration: none;
  vertical-align: baseline;
}
a.resource-link:hover { background: var(--text); color: var(--bg); }

#service ul { list-style: disc; padding-left: 1.4rem; }
#service li { border: 0; margin-bottom: 0; padding: 3px 0 3px 4px; line-height: 1.5; }
#service li::marker { color: var(--accent); }
#service li:first-child { padding-top: 0; }
#service li:last-child { padding-bottom: 0; }
.nav-links { flex-wrap: wrap; }
@media (min-width: 901px) { .nav-links { gap: 20px; } }

.contact-icons { display: flex; align-items: center; gap: 16px; }
.contact-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; color: #fff; background: #737b7c; }
.contact-scholar { background: #263638; }
.contact-linkedin { background: #626c70; }
.contact-email { background: #707d78; }
.contact-icon svg { display: block; width: 27px; height: 27px; }
.contact-icon:hover { background: var(--accent); color: #fff; text-decoration: none; }
.contact-icon:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.award-institution::before { content: " — "; }
