*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:       #1a1a1a;
  --ink-soft:  #4a4a4a;
  --ink-muted: #8a8a8a;
  --paper:     #faf8f5;
  --paper-2:   #f2efe9;
  --rule:      #d8d2c8;
  --accent:    #2b5e4e;
  --accent-lt: #e8f0ed;
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'DM Sans', system-ui, sans-serif;
  --max:       1100px;
  --gap:       clamp(1.5rem, 4vw, 3rem);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── LAYOUT ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 600;
  color: var(--ink); letter-spacing: 0.01em;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-soft);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }

/* ── HERO ── */
.hero-section {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 6rem);
  border-bottom: 1px solid var(--rule);
}
/* Headshot floats inside the text flow so the bio wraps around it */
.hero-grid { max-width: 860px; }
.hero-grid::after { content: ''; display: block; clear: both; }
.hero-eyebrow {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem;
}
.hero-name { margin-bottom: 0.3rem; }
.hero-title {
  font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic; color: var(--ink-soft); margin-bottom: 1.75rem;
}
.hero-bio {
  font-size: 1.05rem; color: var(--ink-soft);
  margin-bottom: 1.5rem; line-height: 1.8;
}
.hero-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.25rem; border-radius: 3px;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em;
  transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: #234d40; text-decoration: none; color: #fff; }
.btn-outline {
  background: transparent; color: var(--ink);
  border: 1px solid var(--rule);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Headshot — floated right so the bio text wraps around it */
.headshot-wrap {
  float: right;
  width: 220px;
  margin: 0.4rem 0 1.25rem 2.25rem;
}
.headshot {
  width: 220px; height: 270px;
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: block;
}
/* ── SECTION HEADERS ── */
.section-label {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.section-label h2 { flex-shrink: 0; }
.section-label::after {
  content: ''; flex: 1; height: 1px;
  background: var(--rule);
}

/* ── PUBLICATIONS ── */
.pub-list { display: flex; flex-direction: column; gap: 1.5rem; }
.pub-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.pub-item:last-child { border-bottom: none; padding-bottom: 0; }
.pub-year {
  font-family: var(--serif); font-size: 0.9rem;
  color: var(--ink-muted); padding-top: 0.15rem;
  font-style: italic;
}
.pub-content {}
.pub-title {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
  margin-bottom: 0.25rem; line-height: 1.3;
}
.pub-authors {
  font-size: 0.875rem; color: var(--ink-soft); margin-bottom: 0.2rem;
}
.pub-journal {
  font-size: 0.875rem; font-style: italic; color: var(--ink-muted);
  margin-bottom: 0.5rem;
}
.pub-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.5rem; }
.pub-title a { color: inherit; }
.pub-title a:hover { color: var(--accent); text-decoration: none; }
.pub-dl {
  font-size: 0.78rem; font-weight: 500; color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.pub-dl:hover { text-decoration: underline; }
.tag {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 2px;
  background: var(--accent-lt); color: var(--accent);
}

.researchgate-link {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: flex; align-items: center; gap: 1rem;
}
.researchgate-link p {
  font-size: 0.9rem; color: var(--ink-soft);
}
.researchgate-link a { font-weight: 500; }
.profiles-block { align-items: flex-start; }
.profiles-block svg { flex-shrink: 0; margin-top: 0.15rem; color: var(--accent); }
.profile-links {
  list-style: none; padding: 0; margin: 0.5rem 0 0;
  display: flex; flex-direction: column; gap: 0.3rem;
  font-size: 0.9rem;
}

/* ── POSTERS ── */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}
.poster-card {
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  background: #fff;
}
.poster-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}
.poster-thumb {
  width: 100%; aspect-ratio: 4/3;
  background: var(--paper-2);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--ink-muted); font-size: 0.8rem; gap: 0.5rem;
  border-bottom: 1px solid var(--rule);
}
.poster-thumb svg { opacity: 0.3; }
.poster-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
}
.poster-card[data-pdf]:hover .poster-thumb img {
  transform: scale(1.02);
  transition: transform 0.4s ease;
}
.poster-thumb img + .thumb-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 18, 14, 0); color: #fff;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase; opacity: 0;
  transition: background 0.25s, opacity 0.25s;
}
.poster-card:hover .thumb-overlay {
  background: rgba(20, 18, 14, 0.55); opacity: 1;
}
.poster-thumb { position: relative; overflow: hidden; }
.deck-thumb {
  background: linear-gradient(135deg, var(--paper-2) 0%, var(--accent-lt) 100%);
  color: var(--accent);
  aspect-ratio: 16/9;
}
.deck-thumb svg { opacity: 0.4; }
.outreach-thumb {
  background: linear-gradient(135deg, var(--accent-lt) 0%, var(--paper-2) 100%);
  color: var(--accent);
  aspect-ratio: 16/9;
}
.outreach-thumb svg { opacity: 0.45; }
.section-lede {
  max-width: 60ch;
  margin-top: -1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--ink-soft);
  font-size: 0.98rem;
}
/* ── FEATURED LINK ── */
.featured-stack {
  display: flex; flex-direction: column; gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.featured-link {
  display: block;
  padding: 1.35rem 1.6rem;
  background: var(--accent-lt);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.featured-link:hover {
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}
.featured-eyebrow {
  display: block;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.45rem;
}
.featured-title {
  display: block;
  font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600; line-height: 1.3; color: var(--ink);
  margin-bottom: 0.35rem;
}
.featured-link:hover .featured-title { color: var(--accent); }
.featured-meta {
  display: block;
  font-size: 0.82rem; font-style: italic; color: var(--ink-muted);
  margin-bottom: 0.7rem;
}
.featured-cta {
  font-size: 0.8rem; font-weight: 500; color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.35rem;
}

.poster-info { padding: 1rem 1.25rem 1.25rem; }
.poster-title {
  font-family: var(--serif); font-size: 1rem; font-weight: 600;
  margin-bottom: 0.25rem; line-height: 1.35;
}
.poster-venue {
  font-size: 0.8rem; color: var(--ink-muted); margin-bottom: 0.75rem;
}
.badge-abstract {
  display: inline-block;
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.1rem 0.45rem; margin-left: 0.35rem;
  border-radius: 2px;
  background: var(--paper-2); color: var(--ink-soft);
  border: 1px solid var(--rule);
  vertical-align: 1px;
}
.poster-dl {
  font-size: 0.8rem; font-weight: 500; color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.poster-dl:hover { text-decoration: underline; }
.card-actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.4rem 0.9rem; margin-top: 0.6rem;
}
.card-actions .view-hint { margin-top: 0; }

/* ── CONTACT ── */
#contact { background: var(--paper-2); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.contact-intro h2 { margin-bottom: 1rem; }
.contact-intro p { color: var(--ink-soft); margin-bottom: 1.5rem; font-size: 0.95rem; }
.contact-detail {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0.6rem;
}
.contact-detail svg { flex-shrink: 0; color: var(--accent); }

/* form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label {
  display: block; font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 0.35rem;
}
input, textarea, select {
  width: 100%; padding: 0.65rem 0.9rem;
  border: 1px solid var(--rule); border-radius: 3px;
  background: #fff; font-family: var(--sans); font-size: 0.92rem;
  color: var(--ink); transition: border-color 0.2s;
  -webkit-appearance: none;
}
input:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43,94,78,0.1);
}
textarea { resize: vertical; min-height: 120px; }
.form-submit { align-self: flex-start; }

/* ── FOOTER ── */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.8rem; color: var(--ink-muted);
}
footer .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 0.78rem; letter-spacing: 0.02em; }
}
@media (max-width: 700px) {
  .headshot-wrap { width: 128px; margin: 0.2rem 0 0.75rem 1.1rem; }
  .headshot { width: 128px; height: 157px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  nav .container { overflow-x: auto; gap: 1rem; }
  .nav-logo { white-space: nowrap; }
  .nav-links { gap: 1rem; white-space: nowrap; }
  .nav-links a { font-size: 0.72rem; }
}

/* ── FADE-IN ── */
.fade-in {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

/* ── MODAL / LIGHTBOX ── */
.poster-card[data-pdf] { cursor: pointer; }
.poster-card[data-pdf]:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.view-hint {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.78rem; font-weight: 500; color: var(--accent);
  margin-top: 0.6rem;
}
.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: clamp(0.5rem, 2vw, 2rem);
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 18, 14, 0.78);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.18s ease;
}
.modal-panel {
  position: relative;
  width: min(1080px, 100%);
  height: min(92vh, 900px);
  background: var(--paper);
  border-radius: 6px;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 80px rgba(0,0,0,0.4);
  animation: modalIn 0.2s ease;
  overflow: hidden;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.modal-title-wrap { flex: 1; min-width: 0; }
.modal-title {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 600;
  line-height: 1.3; color: var(--ink);
}
.modal-subtitle {
  font-size: 0.8rem; color: var(--ink-muted);
  margin-top: 0.15rem;
}
.modal-close {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: transparent; border: 1px solid var(--rule);
  border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  transition: all 0.15s;
  font-family: var(--sans);
}
.modal-close:hover {
  border-color: var(--accent); color: var(--accent);
}
.modal-body {
  flex: 1; min-height: 0;
  background: #2b2a28;
}
.modal-iframe {
  width: 100%; height: 100%;
  border: 0; background: #2b2a28;
}
.modal-actions {
  display: flex; gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  font-size: 0.85rem;
}
.modal-actions a {
  display: inline-flex; align-items: center; gap: 0.3rem;
  color: var(--accent); font-weight: 500;
}
.modal-actions a + a { margin-left: 0.5rem; padding-left: 0.75rem; border-left: 1px solid var(--rule); }
body.modal-open { overflow: hidden; }
@media (max-width: 700px) {
  .modal { padding: 0; }
  .modal-panel { height: 100vh; border-radius: 0; max-height: 100vh; }
  .modal-title { font-size: 0.95rem; }
}

/* ── TOPIC PAGES ── */
.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 { margin-bottom: 0.4rem; }
.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.page-hero-image {
  width: 100%; height: auto; aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: block;
}
@media (max-width: 820px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .page-hero-image { max-width: 520px; }
}
.page-lede {
  font-family: var(--serif); font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-style: italic; color: var(--ink-soft);
}
.article-body { max-width: 66ch; }
.article-body p {
  font-size: 1.05rem; line-height: 1.85;
  color: var(--ink-soft); margin-bottom: 1.35rem;
}
.article-body a { font-weight: 500; }
.article-body .featured-stack { margin: 2rem 0 0; }
.back-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 2.5rem;
  font-size: 0.85rem; font-weight: 500; color: var(--accent);
}
