:root {
  --bg: #f6f8fb;
  --bg-soft: #eaf3ef;
  --surface: #ffffff;
  --surface-soft: #fbfcfd;
  --text: #17211f;
  --muted: #5f6f6b;
  --line: #dce5e2;
  --accent: #087a72;
  --accent-dark: #075c56;
  --accent-warm: #bd4b39;
  --shadow: 0 18px 45px rgba(31, 45, 42, 0.08);
  --max-width: 1040px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, var(--bg-soft) 0, var(--bg) 23rem),
    var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  min-height: 100vh;
}

.site-header,
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-header {
  padding: 1.5rem 0 1.25rem;
}

.site-header-home {
  justify-content: flex-end;
}

.site-footer {
  padding: 1.4rem 0 2.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.brand,
.site-nav a,
.button,
.text-link {
  text-decoration: none;
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  gap: 0.35rem;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(220, 229, 226, 0.8);
  border-radius: var(--radius);
}

.menu-toggle {
  display: none;
  min-height: 2.35rem;
  padding: 0.5rem 0.8rem;
  color: white;
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle:hover {
  background: var(--accent-warm);
}

.site-nav a {
  color: var(--muted);
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  background: var(--accent);
  color: white;
}

.text-link:hover {
  color: var(--accent-warm);
}

main {
  padding: 0.75rem 0 3.5rem;
}

.hero,
.section-grid,
.cards,
.content-grid,
.bio-section,
.research-interests,
.research-feature {
  display: grid;
  gap: 1rem;
}

.hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  min-height: 31rem;
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2.4rem, 6vw, 4rem);
  border-bottom: 1px solid rgba(23, 33, 31, 0.1);
}

.panel,
.card,
.article,
.portrait-card,
.bio-section,
.research-interests,
.research-feature,
.contact-email-panel,
.contact-panel,
.presentation-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel,
.card {
  overflow: hidden;
}

.panel,
.article,
.bio-section,
.research-interests,
.research-feature,
.contact-email-panel,
.contact-panel,
.presentation-item {
  padding: clamp(1.25rem, 3vw, 1.7rem);
}

h1,
h2 {
  margin: 0 0 0.8rem;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.hero h1,
.page-header h1,
.article h1 {
  font-size: 4.25rem;
  max-width: 13ch;
}

.panel h2,
.card h2 {
  font-size: 1.35rem;
  line-height: 1.18;
}

.article .article-header h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  max-width: 18ch;
}

.article .project-title {
  font-size: 20pt;
  line-height: 1.3;
  max-width: 44ch;
}

.eyebrow,
.section-label,
.meta {
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 800;
}

.lead {
  max-width: 42rem;
  font-size: 1.22rem;
  color: #31403d;
}

.mini-list,
.post-list {
  margin: 0.8rem 0 1rem;
  padding-left: 1.2rem;
}

.button-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.profile-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.5rem 0.8rem;
  color: var(--accent-dark);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.profile-links a:hover {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  padding: 0.72rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button-primary {
  color: white;
  background: var(--accent);
  box-shadow: 0 10px 22px rgba(8, 122, 114, 0.18);
}

.button-primary:hover {
  background: var(--accent-warm);
  box-shadow: 0 12px 24px rgba(189, 75, 57, 0.2);
}

.button-red {
  color: white;
  background: var(--accent-warm);
  box-shadow: 0 10px 22px rgba(189, 75, 57, 0.2);
}

.button-red:hover {
  background: #9f3828;
  box-shadow: 0 12px 24px rgba(159, 56, 40, 0.24);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.button-secondary:hover {
  color: white;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button:hover {
  transform: translateY(-1px);
}

.focus-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 1.25rem 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.focus-strip p {
  margin: 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.78);
  color: #344440;
  font-size: 0.95rem;
  font-weight: 700;
}

.portrait-card {
  margin: 0;
  overflow: hidden;
}

.portrait-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--surface-soft);
}

.portrait-card figcaption {
  padding: 0.85rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.bio-section {
  grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 2.5rem);
  margin-top: 1.25rem;
}

.bio-copy {
  max-width: 42rem;
}

.research-interests {
  grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 2.5rem);
  margin-top: 1.25rem;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.keyword-list li {
  padding: 0.45rem 0.7rem;
  color: #31403d;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 700;
}

.research-feature {
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 2rem);
  margin-top: 1.25rem;
  overflow: hidden;
}

.research-feature-link {
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.research-feature-link:hover {
  border-color: rgba(8, 122, 114, 0.45);
  box-shadow: 0 20px 48px rgba(8, 122, 114, 0.14);
  transform: translateY(-1px);
}

.research-feature-link:hover .text-link {
  color: var(--accent-warm);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 4vw, 2rem);
  margin-top: 1.25rem;
}

.contact-email-panel {
  margin-top: 1.25rem;
}

.contact-email-panel h2 {
  font-size: 1.7rem;
}

.presentation-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.presentation-photo {
  max-width: 18rem;
  margin: 0 0 1.25rem;
}

.presentation-photo img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.presentation-item h2 {
  font-size: 1.55rem;
}

.presentation-item h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1rem;
}

.research-feature img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.section-grid,
.cards,
.content-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-header,
.wide-panel,
.article {
  margin-top: 1.25rem;
}

.page-header {
  padding: clamp(2.5rem, 7vw, 4rem) 0 clamp(1.25rem, 4vw, 2rem);
}

.page-header p {
  max-width: 42rem;
  color: var(--muted);
}

.card {
  padding: 0;
}

.card-link {
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card-link:hover {
  border-color: rgba(8, 122, 114, 0.45);
  box-shadow: 0 20px 48px rgba(8, 122, 114, 0.14);
  transform: translateY(-1px);
}

.card-link:hover .text-link {
  color: var(--accent-warm);
}

.card > :not(img) {
  margin-left: clamp(1.1rem, 3vw, 1.4rem);
  margin-right: clamp(1.1rem, 3vw, 1.4rem);
}

.card > :last-child {
  display: inline-block;
  margin-bottom: clamp(1.1rem, 3vw, 1.4rem);
}

.panel-image,
.card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface-soft);
}

.panel-image {
  margin: calc(clamp(1.25rem, 3vw, 1.7rem) * -1) calc(clamp(1.25rem, 3vw, 1.7rem) * -1) 1.1rem;
  width: calc(100% + (clamp(1.25rem, 3vw, 1.7rem) * 2));
}

.panel-image + .section-label,
.card-image + .meta {
  margin-top: 1rem;
}

.image-credit {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.65rem;
}

.card-image + .image-credit + .meta {
  margin-top: 0.75rem;
}

.article {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.article-header {
  margin-bottom: 1.2rem;
}

.article img {
  display: block;
  width: 100%;
  margin: 1.4rem 0 1.6rem;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.article p,
.article li {
  color: #344440;
}

.article h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.55rem;
}

.article-intro {
  max-width: 42rem;
  font-size: 1.12rem;
  color: #31403d;
}

.article-authors {
  color: var(--muted);
  font-weight: 700;
}

.article-affiliation {
  margin-top: -0.4rem;
  color: var(--muted);
}

.strategy-list,
.reference-list {
  padding-left: 1.25rem;
}

.strategy-list li,
.reference-list li {
  margin-bottom: 0.85rem;
}

.reference-list {
  font-size: 0.9rem;
  list-style: none;
  padding-left: 0;
}

.reference-list li {
  padding-left: 2rem;
  text-indent: -2rem;
}

.reference-list a {
  overflow-wrap: anywhere;
}

.back-link,
.text-link {
  color: var(--accent-dark);
  font-weight: 700;
}

.text-link {
  text-underline-offset: 0.2em;
}

@media (max-width: 820px) {
  .hero,
  .bio-section,
  .research-interests,
  .research-feature,
  .contact-panel,
  .section-grid,
  .cards,
  .content-grid,
  .focus-strip {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 0.65rem;
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: 2.2rem;
  }

  .hero h1,
  .page-header h1,
  .article h1 {
    font-size: 2.45rem;
    max-width: 100%;
  }

  .article .article-header h1 {
    font-size: 2rem;
  }

  .article .project-title {
    font-size: 1.25rem;
  }

  .lead {
    font-size: 1.08rem;
  }
}
