:root {
  --forest: #163b2a;
  --leaf: #2f6b45;
  --moss: #7aa36f;
  --fern: #dbe9d5;
  --mist: #f6f8f3;
  --ink: #17211c;
  --muted: #5d6b61;
  --line: rgba(22, 59, 42, 0.16);
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(22, 59, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--mist);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--leaf);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 64px);
  background: rgba(246, 248, 243, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--forest);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--forest);
  border-radius: 50%;
  font-size: 0.9rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  color: var(--forest);
}

.section-band {
  border-bottom: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.74fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  min-height: calc(78vh - 79px);
  padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 80px);
  background:
    radial-gradient(circle at 12% 18%, rgba(122, 163, 111, 0.28), transparent 34%),
    linear-gradient(135deg, #f7faf3 0%, #e7f0df 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--forest);
  font-family: Lora, Georgia, serif;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(3rem, 6.4vw, 5.6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: 1.25rem;
}

.hero-lede {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--forest);
  border-radius: 6px;
  font-weight: 800;
}

.button.primary {
  color: var(--white);
  background: var(--forest);
}

.button.secondary {
  color: var(--forest);
  background: transparent;
}

.photo-carousel {
  overflow: hidden;
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: carousel-pan 28s linear infinite;
}

.carousel-track img {
  display: block;
  width: clamp(260px, 26vw, 380px);
  height: 520px;
  object-fit: cover;
  border-right: 8px solid var(--mist);
}

@keyframes carousel-pan {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    animation: none;
  }
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 0.65fr);
  gap: clamp(26px, 5vw, 76px);
  padding: clamp(58px, 8vw, 104px) clamp(20px, 5vw, 80px);
}

.section-label {
  position: sticky;
  top: 104px;
  align-self: start;
}

.section-body {
  min-width: 0;
}

.lead-text p {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
}

.muted {
  background: var(--fern);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline article,
.publication-list article,
.taxon-card,
.profile-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline span,
.publication-list span {
  color: var(--leaf);
  font-weight: 800;
}

.timeline h3 {
  margin-top: 6px;
}

.timeline p,
.publication-list p,
.compact-list p,
.recognition-list p,
.taxon-card p,
.profile-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.research-section,
.taxa-section,
.recognition-section,
.contact {
  padding: clamp(58px, 8vw, 104px) clamp(20px, 5vw, 80px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 32px;
}

.section-note {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.research-cards,
.taxa-grid,
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.research-cards article {
  min-height: 260px;
  padding: 26px;
  color: var(--white);
  background: var(--forest);
  border-radius: 8px;
}

.research-cards article:nth-child(2) {
  background: var(--leaf);
}

.research-cards article:nth-child(3) {
  background: #31513d;
}

.research-cards h3 {
  margin-top: 68px;
  color: var(--white);
}

.research-cards p {
  color: rgba(255, 255, 255, 0.82);
}

.card-index {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
}

.publication-list {
  display: grid;
  gap: 12px;
}

.publication-list article {
  padding: 18px 20px;
}

.taxon-figure {
  overflow: hidden;
  display: grid;
  min-height: 170px;
  margin: -8px -8px 18px;
  place-items: center;
  color: rgba(22, 59, 42, 0.62);
  background:
    linear-gradient(135deg, rgba(22, 59, 42, 0.1), rgba(122, 163, 111, 0.24)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.35) 0 10px, transparent 10px 20px);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.taxon-figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.genus-card {
  border-color: rgba(47, 107, 69, 0.36);
  background: rgba(219, 233, 213, 0.7);
}

.compact-list,
.event-list,
.recognition-list {
  display: grid;
  gap: 12px;
}

.event-list article {
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.event-list h3 {
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--forest);
}

.event-list ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.event-list li + li {
  margin-top: 8px;
}

.recognition-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.recognition-list p {
  margin: 0;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.affiliations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
  padding: clamp(58px, 8vw, 104px) clamp(20px, 5vw, 80px);
}

.affiliations ul {
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.profiles-grid {
  margin-top: 28px;
}

.profile-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
}

.profile-card a {
  width: fit-content;
  margin-top: 20px;
  font-weight: 800;
}

.contact {
  text-align: center;
  background: var(--forest);
}

.contact h2,
.contact .eyebrow {
  color: var(--white);
}

.contact p {
  max-width: 620px;
  margin: 18px auto;
  color: rgba(255, 255, 255, 0.82);
}

.email-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--white);
  font-size: clamp(1.25rem, 4vw, 2.2rem);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 80px);
  color: var(--muted);
  background: #eef4e9;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero,
  .content-grid,
  .affiliations {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .section-label {
    position: static;
  }

  .research-cards,
  .taxa-grid,
  .profiles-grid,
  .recognition-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand {
    align-items: flex-start;
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  h1 {
    font-size: 2.55rem;
  }

  .hero {
    gap: 22px;
    padding-top: 24px;
    padding-bottom: 28px;
  }

  .hero-lede {
    font-size: 1rem;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 20px;
  }

  .carousel-track img {
    width: 260px;
    max-height: 220px;
    height: 220px;
    aspect-ratio: 16 / 9;
  }
}
