:root {
  --paper: #f5f0e6;
  --ink: #172433;
  --muted: #68727c;
  --line: #d8d0c1;
  --navy: #143754;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.site-header { border-bottom: 1px solid var(--line); }
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
}
.nav-links { display: flex; gap: 28px; font-size: 14px; }
.nav-links a { color: var(--muted); text-decoration: none; padding-bottom: 3px; }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom: 1px solid var(--ink); }
main { min-height: calc(100vh - 140px); }
.container { max-width: var(--max); margin: 0 auto; padding: 54px 28px 78px; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.hero {
  min-height: calc(100vh - 142px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 0 86px;
  max-width: 670px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(40px, 4.2vw, 52px);
  line-height: 1.04;
  white-space: nowrap;
  letter-spacing: -0.025em;
}
.hero .affiliation {
  margin: 27px 0 0;
  color: var(--muted);
  font-size: 19px;
}
.hero .fields {
  width: 100%;
  margin: 48px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-size: 17px;
}
.publications { max-width: 980px; }
.page-head { padding: 20px 0 42px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.page-head h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.pub-list { }
.pub {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 26px;
  padding: 26px 0 27px;
  border-bottom: 1px solid var(--line);
}
.pub-year { color: var(--muted); font-size: 13px; padding-top: 5px; font-variant-numeric: tabular-nums; }
.pub-title { font-family: Georgia, "Times New Roman", serif; font-size: 21px; line-height: 1.27; }
.pub-authors, .pub-venue { margin-top: 6px; color: var(--muted); font-size: 14px; }
.pub-venue { max-width: 760px; }
.pub-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 9px; font-size: 13px; }
.pub-links a { color: var(--navy); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 21px 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}
.footer-inner a { color: var(--muted); }
@media (max-width: 720px) {
  .nav { padding: 17px 20px; }
  .brand { font-size: 17px; }
  .nav-links { gap: 17px; font-size: 13px; }
  .container { padding: 38px 20px 58px; }
  .hero { min-height: calc(100vh - 116px); padding-bottom: 64px; }
  .hero h1 { font-size: 40px; white-space: normal; }
  .hero .affiliation { font-size: 17px; margin-top: 23px; }
  .hero .fields { font-size: 16px; margin-top: 38px; }
  .page-head { padding: 12px 0 32px; }
  .pub { grid-template-columns: 1fr; gap: 5px; padding: 23px 0; }
  .pub-year { padding-top: 0; }
  .pub-title { font-size: 20px; }
  .footer-inner { padding: 18px 20px; }
}


/* Short CV and contact pages */
.simple-page { max-width: 900px; }
.cv-section { padding: 34px 0 8px; }
.cv-section + .cv-section { border-top: 1px solid var(--line); margin-top: 24px; }
.cv-section h2,
.contact-grid h2 {
  margin: 0 0 20px;
  font-size: 24px;
  line-height: 1.2;
}
.cv-entry {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  padding: 15px 0;
}
.cv-date { color: var(--muted); font-size: 13px; padding-top: 4px; font-variant-numeric: tabular-nums; }
.cv-role { font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.3; }
.cv-place { color: var(--muted); font-size: 14px; margin-top: 5px; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(300px, 1.2fr);
  gap: 80px;
  padding: 42px 0 16px;
}
.contact-grid section + section { border-left: 1px solid var(--line); padding-left: 48px; }
.contact-email { margin: 0; font-size: 18px; }
address { color: var(--muted); font-style: normal; font-size: 16px; line-height: 1.7; }

@media (max-width: 720px) {
  .cv-entry { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .cv-date { padding-top: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; padding-top: 34px; }
  .contact-grid section + section { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 30px; }
}

/* Outreach landing and posters */
.outreach-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 46px 0 10px;
}
.outreach-choice {
  min-height: 260px;
  border: 1px solid var(--line);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  color: var(--ink);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
}
.outreach-choice:hover { transform: translateY(-3px); border-color: #aaa18f; }
.choice-index { grid-column: 1 / -1; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.choice-title { align-self: end; font: 400 40px/1 Georgia, "Times New Roman", serif; letter-spacing: -.02em; }
.choice-copy { grid-column: 1; color: var(--muted); font-size: 14px; align-self: end; }
.choice-arrow { grid-column: 2; grid-row: 2 / 4; align-self: end; font-size: 30px; color: var(--navy); }
.back-link { color: var(--muted); font-size: 13px; text-decoration: none; display: inline-block; margin-bottom: 16px; }
.video-block { padding: 42px 0 52px; border-bottom: 1px solid var(--line); }
.video-shell { position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; background: #10161e; }
.video-shell video { width: 100%; height: 100%; display: block; object-fit: cover; position: relative; z-index: 2; background: #10161e; }
.video-fallback { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; color: #f4f1ea; background: linear-gradient(145deg,#10161e,#1a2d3d 60%,#283e4f); }
.video-fallback span { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; opacity: .65; }
.video-fallback strong { font: 400 clamp(24px,3vw,42px)/1.08 Georgia,"Times New Roman",serif; max-width: 650px; margin-top: 8px; }
.video-fallback small { margin-top: 12px; opacity: .72; }
.video-caption { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.poster-section { padding-top: 40px; }
.section-title { margin: 0 0 24px; font-size: 25px; }
.poster-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; align-items: start; }
.poster-card h3 { margin: 18px 0 6px; font-size: 21px; line-height: 1.24; }
.poster-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.poster-frame { display: block; aspect-ratio: .73; border: 1px solid var(--line); overflow: hidden; background: #ebe5d9; }
.poster-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pending-frame { display: flex; align-items: center; justify-content: center; color: var(--muted); text-decoration: none; text-align: center; font: 400 22px/1.3 Georgia,"Times New Roman",serif; background: repeating-linear-gradient(135deg,#f1ebdf,#f1ebdf 18px,#ece5d8 18px,#ece5d8 36px); }
.event-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 11px; font-size: 13px; }
@media (max-width: 760px) {
  .nav-links { gap: 13px; }
  .outreach-choices { grid-template-columns: 1fr; }
  .outreach-choice { min-height: 200px; }
  .poster-grid { grid-template-columns: 1fr; gap: 38px; }
  .poster-card { max-width: 470px; }
  .video-fallback { padding: 22px; }
}
@media (max-width: 620px) {
  .nav { align-items: flex-start; }
  .nav-links { flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; max-width: 270px; }
}

/* Dropdown navigation */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-trigger {
  appearance: none;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  line-height: inherit;
  padding: 0 0 3px;
  cursor: pointer;
}
.nav-trigger:hover,
.nav-trigger:focus-visible { color: var(--ink); outline: none; }
.nav-trigger[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.nav-caret { display: inline-block; margin-left: 2px; font-size: 12px; transform: translateY(-1px); }
.nav-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 9px);
  left: -16px;
  min-width: 126px;
  padding: 8px 0;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(23,36,51,.10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-menu a {
  display: block;
  padding: 8px 15px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a[aria-current="page"] { color: var(--ink); background: rgba(23,36,51,.035); outline: none; }
.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }

/* Posters — visual outreach page */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.posters-main { min-height: calc(100vh - 140px); }
.posters-video {
  position: relative;
  width: min(1240px, calc(100% - 56px));
  margin: 32px auto 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d1520;
}
.posters-video video { width: 100%; height: 100%; display: block; object-fit: cover; background: #0d1520; }
.video-actions {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 8px;
}
.video-actions button {
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(8,17,26,.64);
  color: #fff;
  padding: 8px 12px;
  font: 500 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}
.video-actions button:hover,
.video-actions button:focus-visible { background: rgba(8,17,26,.82); outline: 1px solid rgba(255,255,255,.65); outline-offset: 2px; }
.video-credit {
  width: min(1240px, calc(100% - 56px));
  margin: 9px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.poster-gallery { max-width: 1180px; margin: 0 auto; padding: 44px 28px 82px; }
.posters-note {
  margin: 0 0 32px;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.55;
  text-align: center;
}
.poster-grid-real { gap: 34px; }
.poster-grid-real .poster-card h2 { margin: 18px 0 6px; font-size: 20px; line-height: 1.25; }
.poster-grid-real .poster-frame { aspect-ratio: auto; background: transparent; border-color: var(--line); }
.poster-grid-real .poster-frame img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.poster-grid-real .poster-card p { font-size: 13px; }
.poster-grid-real .event-links { margin-top: 9px; }

@media (max-width: 760px) {
  .posters-video { width: 100%; margin-top: 0; }
  .video-credit { width: calc(100% - 40px); }
  .poster-gallery { padding: 34px 20px 58px; }
  .poster-grid-real { gap: 46px; }
  .video-actions { right: 10px; bottom: 10px; }
  .video-actions button { padding: 7px 10px; font-size: 11px; }
  .nav-menu { left: auto; right: 0; }
}
