* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: #fff;
  color: #040404;
  font-family: 'Maven Pro', sans-serif;
  font-size: clamp(1rem, .4vw + .75rem, 1.25rem);
  line-height: 1.6;
}
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #9b82ec; outline-offset: 6px; }
.skip { position: absolute; top: -100px; left: 20px; z-index: 5; }
.skip:focus { top: 10px; background: white; color: black; padding: 12px; }

/* Keep the original Figma cover, with text and icons in one flexible flow. */
.hero {
  height: 56.25vw;
  min-height: 590px;
  max-height: 1080px;
  padding: 112px 24px 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  isolation: isolate;
  text-align: center;
  color: white;
}
.hero-background { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.6); z-index: -1; }
.hero nav { position: absolute; top: clamp(28px, 2.6vw, 50px); left: 20px; right: 20px; display: flex; justify-content: center; align-items: center; gap: clamp(16px, 4.1667vw, 80px); }
.hero nav a, nav button { text-decoration: none; border: 0; padding: 0; background: none; color: inherit; }
.nav-unset { cursor: default; opacity: 1; }
.hero-copy { width: 100%; }
.hero h1 { font-family: 'Frank Ruhl Libre', Georgia, serif; font-weight: 900; font-size: clamp(4rem, 7.8125vw, 9.375rem); line-height: 1.15; white-space: nowrap; margin: 0; }
.hero-copy p { max-width: 70ch; width: 75%; margin: 22px auto 0; line-height: 1.5; }
.hero-social { display: flex; justify-content: center; margin-top: 36px; }
.socials { display: block; object-fit: contain; }
.social-links { position: relative; aspect-ratio: 315 / 70; }
.social-links img { display: block; width: 100%; height: 100%; }
.social-links a { position: absolute; top: 50%; width: 22.222%; height: 100%; min-width: 44px; min-height: 44px; transform: translate(-50%, -50%); }
.social-email { left: 11.111%; }
.social-linkedin { left: 49.206%; }
.social-x { left: 88.095%; }
.hero-social .socials { width: clamp(205px, 16.40625vw, 315px); height: auto; }

/* Bounded columns keep the longer biography readable on wide displays. */
.bio-wrap { padding: clamp(45px, 6vw, 100px) 24px; }
.bio { max-width: 1280px; margin: auto; padding: clamp(32px, 4.7vw, 72px); border: 1px solid #040404; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(40px, 5.3vw, 80px); row-gap: 32px; }
.bio > h2 { grid-column: 1 / -1; }
.bio h2, .research h2 { font-family: 'Frank Ruhl Libre', Georgia, serif; font-size: clamp(2.5rem, 4.1667vw, 5rem); font-weight: 700; line-height: 1.1; margin: 0; }
.bio p { margin: 0 0 1.25em; }
.bio h3 { font-family: Poly, Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(1.25rem, 1.5625vw, 1.75rem); line-height: 1.3; margin: 0 0 18px; }
.bio-right > div + div { margin-top: 32px; }
.bio-right p:last-child { margin-bottom: 0; }
.contact { display: block; width: 220px; max-width: 100%; min-height: 52px; padding: 12px 24px; margin-top: 24px; background: #1d0071; color: white; border: 0; font-weight: 500; opacity: 1; cursor: default; }
.contact[href] { text-align: center; text-decoration: none; cursor: pointer; }
.portrait { display: block; width: 100%; height: 62.1748vw; max-height: 1195px; object-fit: cover; object-position: center; }

/* The same margins, image sizes and separators connect all four studies. */
.research { width: calc(100% - 48px); max-width: 1200px; margin: clamp(48px, 6vw, 100px) auto 0; }
.research h2 { text-align: center; margin-bottom: 40px; }
.research-intro { max-width: 70ch; margin: 0 0 40px; }
.research-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 72px); align-items: center; padding: 40px 0; border-top: 1px solid #d8d8d8; }
.research-text { min-width: 0; }
.research-row:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.research-row img { display: block; width: 100%; height: auto; min-width: 0; aspect-ratio: 4 / 3; object-fit: cover; }
.research-row h3, .side h3 { font-family: Poly, Georgia, serif; font-weight: 400; font-size: clamp(1.375rem, 1.7vw, 1.875rem); line-height: 1.3; margin: 0 0 20px; }
.research-row p, .side p { margin: 0 0 20px; }
.research-text > :last-child { margin-bottom: 0; }
.publication-status { font-style: italic; font-size: .9em; color: #494949; }
.research-text a { font-size: .95em; overflow-wrap: anywhere; }
.research-image { min-width: 0; margin: 0; }
.research-image img { aspect-ratio: auto; }

.side { width: calc(100% - 48px); max-width: 1280px; margin: 32px auto clamp(48px, 6vw, 100px); padding: clamp(32px, 4vw, 64px); border: 1px solid black; display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.side img { display: block; width: 100%; max-width: 320px; height: auto; min-width: 0; margin: auto; aspect-ratio: 1; object-fit: cover; }
.side p:last-child { margin-bottom: 0; }
footer { background: black; color: white; padding: clamp(40px, 5vw, 80px) 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 32px clamp(32px, 5vw, 80px); }
footer strong { font-family: 'Frank Ruhl Libre', Georgia, serif; font-weight: 900; font-size: clamp(1.6rem, 2.08333vw, 2.5rem); white-space: nowrap; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 24px; font-size: 1rem; }
footer nav a { text-decoration: none; }
footer .socials { width: 157.5px; height: 35px; }

@media (max-width: 900px) {
  .bio { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .bio > h2 { grid-column: auto; }
  .research-row, .research-row:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .research-row .research-text { grid-row: 1; }
  .research-row img { max-width: 560px; justify-self: center; }
  .research-image { width: 100%; max-width: 560px; justify-self: center; }
  .side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 650px) {
  .hero { display: block; height: auto; min-height: 620px; max-height: none; padding: 180px 20px 70px; }
  .hero nav { top: 28px; left: 12px; right: 12px; gap: 12px clamp(10px, 3vw, 20px); flex-wrap: wrap; font-size: .875rem; }
  .hero h1 { font-size: clamp(2rem, 10.5vw, 4.25rem); line-height: 1.1; }
  .hero-copy p { width: 100%; margin-top: 25px; font-size: 1.05rem; line-height: 1.5; }
  .hero-social .socials { width: 171px; height: 38px; }
  .bio-wrap { padding: 45px 18px; }
  .bio { padding: 32px 23px; gap: 28px; }
  .bio h3 { font-size: 1.4rem; }
  .contact { width: 100%; max-width: 260px; }
  .portrait { height: 80vw; max-height: none; }
  .research { width: calc(100% - 42px); margin-top: 45px; }
  .research h2 { margin-bottom: 28px; }
  .research-intro { margin-bottom: 28px; }
  .research-row { padding: 30px 0; }
  .research-row h3 { font-size: 1.45rem; }
  .side { width: calc(100% - 36px); padding: 25px; gap: 28px; margin: 15px auto 45px; }
  footer { padding: 35px 20px; flex-direction: column; gap: 25px; }
  footer .socials { width: 144px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
