:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #191919;
  --muted: #66645f;
  --line: #dedbd3;
  --accent: #173b57;
  --accent-soft: #edf2f5;
  --max: 1120px;
  --content: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--text); color: white; padding: .6rem .8rem; z-index: 100; }
.skip-link:focus { left: .75rem; top: .75rem; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251,250,247,.96);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 28px;
}
.brand {
  color: var(--text);
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  letter-spacing: .01em;
  font-weight: 700;
}
.brand img {
  display: block;
  height: 42px;
  width: auto;
}
.nav { display: flex; gap: 1.45rem; align-items: center; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .92rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.menu-button { display: none; border: 1px solid var(--line); background: transparent; padding: .48rem .65rem; font: inherit; }

main { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 5rem;
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
}
.eyebrow { margin: 0 0 .8rem; color: var(--muted); font-size: .88rem; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.14; }
h1 { margin: 0; font-size: clamp(3rem, 7vw, 5.9rem); font-weight: 500; letter-spacing: -.035em; }
.hero-copy { max-width: 720px; }
.hero-copy .lead { margin: 1.65rem 0 0; font-size: 1.23rem; color: #363532; max-width: 680px; }
.hero-meta { align-self: end; border-top: 1px solid var(--line); padding-top: 1rem; font-size: .93rem; color: var(--muted); }
.hero-meta p { margin: .28rem 0; }


.photo-strip {
  display: grid;
  grid-template-columns: 1.35fr .8fr 1.35fr;
  gap: 14px;
  padding: 22px 0 0;
}
.photo-card {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-card-wide { aspect-ratio: 1.42 / 1; }
.photo-card-tall { aspect-ratio: .72 / 1; }
.photo-card-wide img { object-position: center center; }
.photo-card-tall img { object-position: center 42%; }

.section { padding: 68px 0; border-bottom: 1px solid var(--line); }
.section-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 4.25rem; }
.section-title { margin: 0; font-size: 1.6rem; font-weight: 500; }
.section-kicker { color: var(--muted); font-size: .9rem; margin-top: .7rem; max-width: 185px; }
.content { max-width: var(--content); }
.content > :first-child { margin-top: 0; }
.content p { margin: 0 0 1rem; }

.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.topic { background: var(--surface); border: 1px solid var(--line); padding: 1.2rem 1.25rem; }
.topic h3 { margin: 0 0 .45rem; font-size: 1.12rem; }
.topic p { color: var(--muted); margin: 0; font-size: .94rem; }

.pub-list { list-style: none; margin: 0; padding: 0; }
.pub-item { padding: 1.15rem 0 1.35rem; border-top: 1px solid var(--line); }
.pub-item:first-child { border-top: 0; padding-top: 0; }
.pub-year { font-size: .84rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .25rem; }
.pub-title { font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; line-height: 1.35; margin-bottom: .18rem; }
.pub-meta { color: var(--muted); font-size: .94rem; }
.pub-links { margin-top: .35rem; font-size: .89rem; }
.pub-links a { margin-right: .9rem; }

.page-hero { padding: 82px 0 50px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 4.7rem); }
.page-hero p { max-width: 720px; color: var(--muted); font-size: 1.06rem; margin: 1.25rem 0 0; }
.category { padding: 54px 0 18px; }
.category h2 { font-size: 1.7rem; font-weight: 500; margin: 0 0 1.4rem; }
.year-group { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 2rem; padding: 1.1rem 0 1.8rem; border-top: 1px solid var(--line); }
.year-group:first-of-type { border-top: 0; }
.year-label { color: var(--muted); font-size: .9rem; padding-top: .18rem; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 155px minmax(0,1fr); gap: 1.7rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; padding-top: 0; }
.date { color: var(--muted); font-size: .9rem; }
.timeline strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; font-weight: 600; }

.button-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.35rem; }
.button { display: inline-block; border: 1px solid var(--text); color: var(--text); text-decoration: none; padding: .64rem .9rem; font-size: .9rem; }
.button:hover { background: var(--text); color: white; }
.button.secondary { border-color: var(--line); color: var(--muted); }
.button.secondary:hover { border-color: var(--text); color: var(--text); background: transparent; }

footer { max-width: var(--max); margin: 0 auto; padding: 38px 28px 55px; display: flex; justify-content: space-between; gap: 2rem; color: var(--muted); font-size: .88rem; }
footer a { color: inherit; }

@media (max-width: 820px) {
  .header-inner { min-height: 66px; }
  .menu-button { display: block; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 1rem 28px 1.2rem; flex-direction: column; align-items: flex-start; gap: .75rem; }
  .nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding: 64px 0 50px; }
  .hero-meta { max-width: 420px; }
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .photo-card-wide:last-child { grid-column: 1 / -1; aspect-ratio: 1.8 / 1; }
  .section-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section-kicker { max-width: 520px; }
  .topic-grid { grid-template-columns: 1fr; }
  .year-group { grid-template-columns: 1fr; gap: .5rem; }
  .timeline li { grid-template-columns: 1fr; gap: .25rem; }
  footer { flex-direction: column; }
}

@media (max-width: 520px) {
  .header-inner, main, footer { padding-left: 20px; padding-right: 20px; }
  h1 { font-size: 3.25rem; }
  .section { padding: 52px 0; }
  .photo-strip { grid-template-columns: 1fr; gap: 10px; padding-top: 16px; }
  .photo-card, .photo-card-wide, .photo-card-tall, .photo-card-wide:last-child { grid-column: auto; aspect-ratio: 4 / 3; }
}

.profile-links { display: flex; flex-wrap: wrap; gap: .55rem 1rem; margin-top: 1.1rem; font-size: .9rem; }
.profile-links a { color: var(--muted); }
.pub-title a { color: var(--text); text-decoration: none; }
.pub-title a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: .45rem .85rem; justify-content: flex-end; }
@media (max-width: 820px) { .footer-links { justify-content: flex-start; } }

/* Refined About page */
.photo-section .section-grid { align-items: start; }
.photo-strip-contained { padding-top: 0; }

/* Interactive research network */
.research-network-section {
  padding: 60px 0 80px;
  border-bottom: 1px solid var(--line);
}
.network-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.network-heading h2 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 500;
}
.network-heading p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}
.network-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 2rem;
  align-items: stretch;
}
.network-canvas {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.research-network {
  display: block;
  width: 100%;
  height: auto;
  min-height: 520px;
}
.network-edges line {
  stroke: #cfcac0;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.network-center circle {
  fill: var(--text);
  stroke: var(--text);
  stroke-width: 2;
}
.network-center text {
  fill: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  pointer-events: none;
}
.network-node {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .18s ease, filter .18s ease;
  outline: none;
}
.network-node circle {
  fill: #f7f9fa;
  stroke: var(--accent);
  stroke-width: 2;
  transition: fill .18s ease, stroke-width .18s ease;
}
.network-node text {
  fill: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 600;
  pointer-events: none;
}
.network-node:hover,
.network-node:focus,
.network-node.is-active {
  transform: scale(1.14);
  filter: drop-shadow(0 8px 12px rgba(23,59,87,.13));
}
.network-node:hover circle,
.network-node:focus circle,
.network-node.is-active circle {
  fill: var(--accent-soft);
  stroke-width: 3;
}
.network-detail {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.5rem;
  align-self: stretch;
}
.network-detail-label {
  margin: 0 0 .45rem;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.network-detail h3 {
  margin: 0 0 .8rem;
  font-size: 1.35rem;
  font-weight: 500;
}
.network-detail p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .network-layout { grid-template-columns: 1fr; }
  .network-detail { min-height: 160px; }
}

@media (max-width: 620px) {
  .network-heading { align-items: flex-start; flex-direction: column; gap: .4rem; }
  .research-network-section { padding: 46px 0 60px; }
  .research-network { min-height: 390px; }
  .network-node text { font-size: 15px; }
}

/* Hero photo cluster */
.hero-with-photos {
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 380px) 250px;
  gap: 2.75rem;
  align-items: center;
}
.hero-photo-cluster {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  grid-template-rows: 118px 118px;
  gap: 10px;
  align-self: center;
  position: relative;
  z-index: 2;
}
.hero-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  position: relative;
  transform-origin: center;
  transition: transform .2s ease, box-shadow .2s ease, z-index 0s linear .2s;
}
.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo-a { grid-column: 1; grid-row: 1 / span 2; }
.hero-photo-a img { object-position: center center; }
.hero-photo-b { grid-column: 2; grid-row: 1; }
.hero-photo-b img { object-position: center 38%; }
.hero-photo-c { grid-column: 2; grid-row: 2; }
.hero-photo-c img { object-position: center center; }
.hero-photo:hover,
.hero-photo:focus-within {
  transform: scale(1.32);
  box-shadow: 0 16px 36px rgba(0,0,0,.18);
  z-index: 10;
  transition: transform .2s ease, box-shadow .2s ease, z-index 0s;
}

@media (max-width: 1040px) {
  .hero-with-photos {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
  .hero-with-photos .hero-meta {
    grid-column: 1 / -1;
    max-width: 520px;
  }
}

@media (max-width: 820px) {
  .hero-with-photos { grid-template-columns: 1fr; gap: 2rem; }
  .hero-photo-cluster {
    width: min(100%, 520px);
    grid-template-rows: 140px 140px;
  }
  .hero-with-photos .hero-meta { grid-column: auto; }
  .hero-photo:hover,
  .hero-photo:focus-within { transform: scale(1.12); }
}

@media (max-width: 520px) {
  .hero-photo-cluster {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 135px 110px;
    gap: 8px;
  }
  .hero-photo-a { grid-column: 1 / -1; grid-row: 1; }
  .hero-photo-b { grid-column: 1; grid-row: 2; }
  .hero-photo-c { grid-column: 2; grid-row: 2; }
  .hero-photo:hover,
  .hero-photo:focus-within { transform: scale(1.06); }
}
