:root {
  --ink: #17202a;
  --muted: #5b6571;
  --paper: #ffffff;
  --soft: #f5f3f1;
  --line: #ded9d4;
  --accent: #981e32;
  --accent-dark: #641322;
  --accent-soft: #f7e9ec;
  --navy: #172638;
  --shadow: 0 22px 60px rgba(23, 32, 42, .10);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent-dark); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #e7a8b4; outline-offset: 4px; border-radius: 5px; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section-pad { padding: 112px 0; }
.section-light { background: var(--soft); }
.section-dark { background: var(--navy); color: #fff; }
.skip-link { position: fixed; left: 14px; top: -60px; background: var(--ink); color: white; padding: 10px 14px; z-index: 1000; }
.skip-link:focus { top: 14px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.90); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(222,217,212,.75); }
.nav-wrap { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 760; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: white; background: var(--accent); font-size: .76rem; letter-spacing: .08em; }
.site-nav { display: flex; gap: clamp(15px, 2vw, 28px); align-items: center; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 650; }
.site-nav a:hover { color: var(--accent); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--ink); border-radius: 3px; }

.hero { position: relative; overflow: hidden; padding-top: 90px; background: radial-gradient(circle at 85% 20%, rgba(152,30,50,.10), transparent 33%), linear-gradient(180deg, #fff, #fbfaf9); }
.hero::after { content: ""; position: absolute; inset: auto -8vw -18vw auto; width: 35vw; height: 35vw; border-radius: 50%; border: 1px solid rgba(152,30,50,.12); box-shadow: 0 0 0 5vw rgba(152,30,50,.025), 0 0 0 10vw rgba(152,30,50,.02); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(50px, 8vw, 110px); align-items: center; }
.eyebrow { margin: 0 0 13px; color: var(--accent); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
.hero h1 { margin: 0; max-width: 860px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 4rem); line-height: .98; letter-spacing: -.055em; font-weight: 700; }
.hero-lede { max-width: 760px; margin: 30px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 12px 20px; border-radius: 999px; font-weight: 760; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--accent); box-shadow: 0 12px 30px rgba(152,30,50,.22); }
.button-primary:hover { color: white; background: var(--accent-dark); }
.button-secondary { color: var(--ink); border: 1px solid var(--line); background: rgba(255,255,255,.75); }
.button-light { color: var(--navy); background: white; }
.social-row { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.social-row a { font-weight: 700; font-size: .92rem; }
.hero-visual { position: relative; max-width: 430px; justify-self: end; }
.portrait-frame { padding: 13px; border-radius: 42% 58% 52% 48% / 48% 43% 57% 52%; background: linear-gradient(145deg, var(--accent), #c57685); box-shadow: var(--shadow); transform: rotate(2deg); }
.portrait-frame img { aspect-ratio: 1; object-fit: cover; border: 8px solid white; border-radius: inherit; transform: rotate(-2deg); }
.hero-note { position: absolute; left: -35px; bottom: 20px; max-width: 275px; display: flex; gap: 10px; align-items: center; padding: 13px 16px; border-radius: 16px; background: rgba(255,255,255,.94); box-shadow: 0 16px 40px rgba(23,32,42,.14); font-size: .84rem; font-weight: 670; }
.status-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: #2ea66d; box-shadow: 0 0 0 4px rgba(46,166,109,.13); }
.expertise-strip { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin-top: 92px; padding: 28px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; font-weight: 740; letter-spacing: .03em; }

.split-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 8vw, 120px); align-items: start; }
.section-heading h2 { margin: 0; max-width: 780px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.3rem, 4.6vw, 4.2rem); line-height: 1.07; letter-spacing: -.04em; }
.section-heading > p:last-child { max-width: 700px; color: var(--muted); font-size: 1.08rem; }
.section-heading.centered { text-align: center; margin-bottom: 54px; }
.section-heading.centered h2, .section-heading.centered > p:last-child { margin-inline: auto; }
.about-copy { font-size: 1.08rem; color: var(--muted); }
.about-copy p:first-child { margin-top: 0; color: var(--ink); font-size: 1.18rem; }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 34px; }
.mini-grid div { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.64); }
.mini-grid strong, .mini-grid span { display: block; }
.mini-grid strong { color: var(--ink); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.mini-grid span { margin-top: 4px; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.project-card { overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-height: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 15px 50px rgba(23,32,42,.055); transition: transform .25s ease, box-shadow .25s ease; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.project-featured { grid-column: 1 / -1; grid-template-columns: 1.08fr .92fr; grid-template-rows: 1fr; }
.project-image { min-height: 260px; background: #e9e7e4; overflow: hidden; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .project-image img { transform: scale(1.025); }
.project-content { padding: 30px; }
.project-featured .project-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 5vw, 64px); }
.project-kicker { color: var(--accent); font-weight: 800; font-size: .76rem; text-transform: uppercase; letter-spacing: .13em; }
.project-card h3 { margin: 7px 0 12px; font-size: clamp(1.45rem, 2vw, 2rem); line-height: 1.16; letter-spacing: -.025em; }
.project-card p { color: var(--muted); }
.project-content-only { min-height: 290px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(135deg, var(--accent-soft), #fff); }
.impact-list { display: grid; gap: 8px; padding: 0; margin: 16px 0 22px; list-style: none; }
.impact-list li::before { content: "✓"; color: var(--accent); font-weight: 900; margin-right: 9px; }
.text-link { display: inline-block; width: fit-content; margin-top: auto; font-weight: 780; text-decoration: none; }
.paper-status { display: inline-flex; width: fit-content; margin-top: 12px; padding: 7px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: .8rem; font-weight: 800; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag-row span { padding: 6px 10px; border-radius: 999px; background: white; border: 1px solid rgba(152,30,50,.15); font-size: .78rem; font-weight: 730; }

.section-dark .eyebrow { color: #f4a9b8; }
.section-dark .section-heading > p:last-child { color: #bdc7d2; }
.publication-list { margin-top: 52px; border-top: 1px solid rgba(255,255,255,.16); }
.publication-item { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.pub-year { color: #9eabb9; font-size: .94rem; font-weight: 800; }
.venue { display: inline-block; margin-bottom: 7px; color: #f4a9b8; font-size: .76rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.publication-item h3 { margin: 0; max-width: 950px; font-size: clamp(1.2rem, 2vw, 1.65rem); line-height: 1.25; }
.publication-item p { margin: 9px 0; color: #bdc7d2; }
.publication-item a { color: white; font-weight: 750; }
.more-publications summary { padding: 24px 0; cursor: pointer; color: #fff; font-weight: 800; border-bottom: 1px solid rgba(255,255,255,.14); }
.more-publications .publication-item { padding-left: 18px; }
.publication-cta { margin-top: 34px; }

.experience-layout { margin-bottom: 70px; }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 104px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline article { position: relative; display: grid; grid-template-columns: 84px 1fr; gap: 40px; padding: 0 0 34px; }
.timeline article::before { content: ""; position: absolute; left: 99px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.timeline-date { color: var(--accent); font-size: .78rem; font-weight: 850; }
.timeline h3 { margin: 0; font-size: 1.14rem; line-height: 1.3; }
.timeline p { margin: 6px 0 0; color: var(--muted); }
.education-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.education-cards article { padding: 27px; border-radius: 20px; background: white; border: 1px solid var(--line); }
.education-cards span { color: var(--accent); font-size: .78rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.education-cards h3 { margin: 9px 0 5px; }
.education-cards p { margin: 0; color: var(--muted); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card { min-height: 240px; padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: white; }
.news-card time { color: var(--accent); font-weight: 820; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.news-card h3 { margin: 18px 0 10px; font-size: 1.3rem; line-height: 1.25; }
.news-card p { color: var(--muted); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 310px; gap: 18px; }
.gallery-grid figure { position: relative; overflow: hidden; margin: 0; border-radius: 22px; background: #ddd; }
.gallery-grid figure.gallery-wide { grid-column: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-grid figure:hover img { transform: scale(1.035); }
.gallery-grid figcaption { position: absolute; inset: auto 12px 12px 12px; padding: 11px 14px; border-radius: 14px; color: white; background: rgba(23,32,42,.72); backdrop-filter: blur(8px); font-size: .83rem; font-weight: 720; }

.contact-section { background: linear-gradient(135deg, #fff 10%, var(--accent-soft)); }
.contact-panel { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(45px, 7vw, 95px); align-items: center; padding: clamp(38px, 6vw, 72px); border: 1px solid rgba(152,30,50,.14); border-radius: 30px; background: rgba(255,255,255,.82); box-shadow: var(--shadow); }
.contact-panel h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: 1.05; letter-spacing: -.04em; }
.contact-panel p { color: var(--muted); }
.contact-actions > p { margin: 20px 0 0; }

.site-footer { padding: 27px 0; background: var(--navy); color: #bdc7d2; }
.site-footer .container { display: flex; justify-content: space-between; gap: 20px; }
.site-footer p { margin: 0; }
.site-footer a { color: white; font-weight: 720; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } .project-card, .project-image img, .gallery-grid img, .button { transition: none; } }

@media (max-width: 960px) {
  .section-pad { padding: 88px 0; }
  .hero-grid, .split-layout, .contact-panel { grid-template-columns: 1fr; }
  .hero-visual { justify-self: start; max-width: 360px; margin-left: 30px; }
  .hero-note { left: -25px; }
  .project-featured { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .education-cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid figure.gallery-wide { grid-column: span 1; }
}

@media (max-width: 780px) {
  .brand-name { display: none; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 76px; left: 20px; right: 20px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.98); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; border-radius: 10px; }
  .site-nav a:hover { background: var(--soft); }
  .expertise-strip { justify-content: flex-start; }
  .project-grid, .news-grid { grid-template-columns: 1fr; }
  .project-featured { grid-column: auto; }
  .publication-item { grid-template-columns: 62px 1fr; gap: 15px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 290px; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section-pad { padding: 72px 0; }
  .hero { padding-top: 66px; }
  .hero h1 { font-size: clamp(2rem, 4.5vw, 4.6rem); }
  .hero-actions .button { width: 100%; }
  .hero-visual { width: calc(100% - 20px); margin-left: 20px; }
  .hero-note { position: relative; left: -10px; bottom: auto; margin-top: -22px; }
  .expertise-strip { margin-top: 65px; }
  .mini-grid { grid-template-columns: 1fr; }
  .project-content { padding: 24px; }
  .timeline::before, .timeline article::before { display: none; }
  .timeline article { grid-template-columns: 1fr; gap: 8px; padding-bottom: 28px; }
  .contact-panel { padding: 28px; }
  .site-footer .container { flex-direction: column; }
}

/* Small circular profile picture */
.hero-visual {
  width: 240px;
  max-width: 240px;
  justify-self: end;
  margin-left: 0;
}

.portrait-frame {
  width: 240px;
  height: 240px;
  padding: 6px;
  border-radius: 50%;
  overflow: hidden;
  transform: none;
  background: linear-gradient(145deg, var(--accent), #c57685);
  box-shadow: var(--shadow);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 20%;
  border: 4px solid white;
  border-radius: 50%;
  transform: none;
}

/* Center the picture on tablets and phones */
@media (max-width: 960px) {
  .hero-visual {
    width: 220px;
    max-width: 220px;
    justify-self: center;
    margin: 20px auto 0;
  }

  .portrait-frame {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 560px) {
  .hero-visual {
    width: 190px;
    max-width: 190px;
    margin: 20px auto 0;
  }

  .portrait-frame {
    width: 190px;
    height: 190px;
  }
}
.hero h1 {
  font-size: clamp(1.9rem, 3.3vw, 3.2rem) !important;
  line-height: 1.08;
  max-width: 680px;
}


/* Home page: photo and bio left, introduction right */
.hero-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: clamp(45px, 7vw, 100px);
}

/* Move image, biography, and cards to the left */
.hero-right {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  max-width: 560px;
  justify-self: start;
  margin-top: 0;
}

/* Move heading, buttons, and links to the right */
.hero-copy {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  padding-top: 0;
}

/* Center the photo over the biography */
.hero-right .hero-visual {
  margin: 0 auto 28px;
}

/* Biography width */
.about-under-photo {
  width: 100%;
  max-width: 560px;
}

/* Reduce the top spacing of the entire Home section */
.hero {
  padding-top: 50px;
}



@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .hero-right {
    grid-column: 1;
    grid-row: 1;
    max-width: 650px;
    justify-self: center;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 2;
    padding-top: 0;
  }
}


/* =====================================
   Project order: heading, image, details
   ===================================== */

.research-slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  background: white;
}

/* Project heading above the image */
.project-heading {
  padding: 32px 45px 26px;
  text-align: center;
  background: white;
}

.project-heading .project-category {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.project-heading .project-title {
  max-width: 850px;
  margin: 0 auto;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

/* Image below the heading */
.carousel-image {
  width: 100%;
  height: 430px;
  overflow: hidden;
  background: #e9e7e4;
}

.carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.research-slide:hover .carousel-image img {
  transform: scale(1.025);
}

/* Description below the image */
.project-information {
  display: block;
  width: 100%;
  max-width: 900px;
  min-height: auto;
  margin: 0 auto;
  padding: 34px 45px 42px;
  text-align: left;
}

.project-description {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.project-tags {
  margin-top: 22px;
}

.project-link,
.project-status {
  display: inline-flex;
  margin-top: 26px;
}



