@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --navy: #12394a;
  --terracotta: #a9472c;
  --ochre: #c99532;
  --green: #596743;
  --cream: #f7f2e8;
  --ink: #172a32;
  --white: #ffffff;
  --line: rgba(18,57,74,.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.6;
}


/* =====================================================
   HEADER
   ===================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 5vw;
  background: rgba(247,242,232,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.home-page .site-header {
  background: rgba(246, 241, 231, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(255,255,255,0.25);
}
body:has(.hero-cover) .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}
body:has(.hero-cover) .site-header.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(247, 242, 232, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
body:has(.hero-cover) .site-header.scrolled + main {
  padding-top: 5rem;
}
.brand {
  color: var(--navy);
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .12em;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
}

nav a:hover {
  color: var(--terracotta);
}


/* =====================================================
   GENERAL TYPOGRAPHY
   ===================================================== */

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.05;
  color: var(--navy);
}

h1 {
  font-size: clamp(3rem, 7vw, 6.4rem);
  margin: .3rem 0 1rem;
}

h2 {
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  margin: .5rem 0 1.2rem;
}

h3 {
  color: var(--navy);
  font-size: 1.35rem;
  margin: .4rem 0 .7rem;
}

.lead {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  max-width: 560px;
}

.eyebrow,
.section-label {
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 700;
}


/* =====================================================
   HOMEPAGE
   ===================================================== */

/* =====================================================
   LARGE COVER
===================================================== */

.hero-cover {
  min-height: 100vh;
  margin-top: -80px;
  padding-top: 80px;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background: url('hero-landscape.png') center center / cover no-repeat;

  background-attachment: fixed;

  position: relative;
}

.hero-cover-content {
  max-width: 1000px;
  width: 100%;
  padding: 1rem 3rem 3rem;
  box-sizing: border-box;
}

.hero-cover-content img {
  display: block;
  width: min(900px, 90vw);
  max-width: 100%;
  height: auto;
  margin: 0 auto 1.5rem;
}

.hero-cover h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(4rem, 8vw, 8rem);
  letter-spacing: .06em;
  font-weight: 700;
}

.cover-food {
  color: #123f52;
}

.cover-power {
  color: #b84b2f;
}

.hero-cover p {
  margin: 0 auto;
  max-width: 850px;
 color: #f6f1e7;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.5;
}
.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 4vw;
  padding: 5vw;
  background: var(--cream);
}
.home-hero {
  background-image:
    linear-gradient(rgba(246, 241, 231, 0.72), rgba(246, 241, 231, 0.72)),
    url('hero-landscape.jpg');
  background-size: cover;
  background-position: center;
}

.hero-image-wrap {
  max-width: 874px;
  margin: auto;
}

.hero-image-wrap img {
  width: 100%;
  display: block;
}

.hero-copy {
  max-width: 620px;
}


/* =====================================================
   BUTTONS
   ===================================================== */

.button {
  display: inline-block;
  margin-top: 1.2rem;
  padding: .85rem 1.2rem;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
}

.button:hover {
  background: var(--terracotta);
}


/* =====================================================
   GENERAL SECTIONS
   ===================================================== */

.section {
  padding: 8vw 10vw;
}

.intro {
  background: var(--white);
}

.intro p:last-child {
  max-width: 850px;
  font-size: 1.15rem;
}


/* =====================================================
   CARDS
   ===================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  padding: 0;
  background: var(--line);
}

.cards article {
  padding: 5vw;
  min-height: 300px;
  background: var(--cream);
}

.card-number {
  color: var(--ochre);
  font-weight: 700;
  letter-spacing: .08em;
}


/* =====================================================
   FEATURE
   ===================================================== */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  align-items: end;
  background: var(--navy);
  color: var(--white);
}

.feature h2 {
  color: var(--white);
}

.feature .section-label {
  color: var(--ochre);
}


/* =====================================================
   CLOSING
   ===================================================== */

.closing {
  text-align: center;
  background: #e5e9df;
}

.closing h2 {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.closing p:last-child {
  font-size: 1.15rem;
}


/* =====================================================
   FOOTER
   ===================================================== */

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 5vw;
  background: var(--navy);
  color: var(--white);
  font-size: .8rem;
}


/* =====================================================
   INTERIOR PAGES
   Collections · Laboratory · People · Publications · Videos
   ===================================================== */

.collections-page main,
.laboratory-page main,
.people-page main,
.publications-page main,
.videos-page main {
  max-width: 1180px;
  margin: 0 auto;
}


/* =====================================================
   INTERIOR HERO
   The key change: no artificial vertical height
   ===================================================== */

.collections-page .hero,
.laboratory-page .hero,
.people-page .hero,
.publications-page .hero,
.videos-page .hero {
  min-height: 0 !important;
  height: auto !important;
  display: block;
  padding: 3.5rem 5vw 0 !important;
  margin: 0 !important;
  background: transparent;
}


/* =====================================================
   INTERIOR H1
   10% smaller than original
   ===================================================== */

.collections-page .hero h1,
.laboratory-page .hero h1,
.people-page .hero h1,
.publications-page .hero h1,
.videos-page .hero h1 {
  font-size: clamp(2.34rem, 3.6vw, 3.78rem);
  max-width: 950px;
  margin: .3rem 0 1rem !important;
}


/* =====================================================
   INTERIOR LEAD
   ===================================================== */

.collections-page .hero .lead,
.laboratory-page .hero .lead,
.people-page .hero .lead,
.publications-page .hero .lead,
.videos-page .hero .lead {
  max-width: 800px;
  font-size: 1.2rem;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}


/* =====================================================
   FIRST SECTION
   Very small gap after the introductory text
   ===================================================== */

.collections-page .hero + .section,
.laboratory-page .hero + .section,
.people-page .hero + .section,
.publications-page .hero + .section,
.videos-page .hero + .section {
  padding-top: 0.5rem !important;
}


/* =====================================================
   OTHER INTERIOR SECTIONS
   ===================================================== */

.collections-page .section,
.laboratory-page .section,
.people-page .section,
.publications-page .section,
.videos-page .section {
  padding: 0.5rem 5vw 0.3rem !important;
}


/* =====================================================
   INTERIOR SECTION LABELS
   ===================================================== */

.collections-page .section .section-label,
.laboratory-page .section .section-label,
.people-page .section .section-label,
.publications-page .section .section-label,
.videos-page .section .section-label {
  margin-top: 0 !important;
  margin-bottom: .5rem !important;
}


/* =====================================================
   INTERIOR H2
   20% smaller
   ===================================================== */

.collections-page .section h2,
.laboratory-page .section h2,
.people-page .section h2,
.publications-page .section h2,
.videos-page .section h2 {
  font-size: clamp(1.44rem, 2.16vw, 2.24rem);
  max-width: 900px;
  margin-top: 0 !important;
  margin-bottom: .8rem !important;
}


/* =====================================================
   INTERIOR PARAGRAPHS
   ===================================================== */

.collections-page .section p,
.laboratory-page .section p,
.people-page .section p,
.publications-page .section p,
.videos-page .section p {
  max-width: 850px;
}


/* =====================================================
   FIELDWORK IMAGES
   ===================================================== */
.fieldwork-site-image {
  margin: 0 5vw 3rem;
}

.fieldwork-site-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.fieldwork-image-placeholder {
  margin-top: 0.5rem;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e9df;
  border: 1px solid var(--line);
}
.fieldwork-image-placeholder img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}
.fieldwork-image-placeholder p {
  color: var(--green);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}


/* =====================================================
   PEOPLE
   ===================================================== */
.experimental-image {
  margin-top: 1.5rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.experimental-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.people-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.person {
  padding-top: 0;
}

.person h2 {
  margin-top: 0;
}

.person h2 a {
  color: var(--navy);
  text-decoration: none;
}

.person h2 a:hover {
  color: var(--terracotta);
}

.person-role {
  font-weight: 600;
  color: var(--terracotta);
}

.person-affiliation {
  font-size: .95rem;
  font-weight: 500;
}

.person img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  display: block;
  margin-bottom: 1rem;
}
/* =====================================================
   PUBLICATIONS
   ===================================================== */

.publication {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
}


/* Paper titles — 25% smaller */

.publication h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.0rem;
  line-height: 1.3;
  max-width: 900px;
  margin-top: .3rem;
  margin-bottom: .6rem;
}

.publication a {
  color: var(--terracotta);
  text-decoration: none;
  font-weight: 600;
}

.publication a:hover {
  text-decoration: underline;
}

.funding {
  padding: 2.5rem 10vw 3rem !important;
}
.funding-logo img {
  width: 110px !important;
  max-width: 110px !important;
  height: auto;
  display: block;
}
.funding .section-label {
  margin-bottom: .8rem;
}

.funding p {
  margin-bottom: .5rem;
}

.funding a {
  color: var(--terracotta);
  text-decoration: none;
  font-weight: 600;
}

.funding a:hover {
  text-decoration: underline;
}
/* =====================================================
   VIDEOS
   ===================================================== */

.video-placeholder {
  margin-top: 1.5rem;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e9df;
  border: 1px solid var(--line);
}

.video-placeholder p {
  color: var(--green);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 900px) {

  .site-header {
    align-items: center;
    flex-direction: row;
  }

  .brand {
  font-size: 1.15rem;
  letter-spacing: .09em;
}

.brand img {
  width: 30px;
  height: 30px;
}

  nav {
  gap: .45rem;
  flex-wrap: wrap;
  overflow: visible;
  white-space: normal;
  width: auto;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
}
nav a {
  font-size: .78rem;
}
  .hero,
  .feature {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }
.hero-image-wrap {
  width: 110%;
  max-width: none;
  margin-left: -5%;
}
  .cards {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
  }


  /* Research mobile */

  .research-page main {
    padding: 3rem 6vw 5rem;
  }

  .research-page h1 {
    font-size: 3rem;
  }

  .research-page h2 {
    font-size: 2.4rem;
  }


  /* Interior hero */

  .fieldwork-page .hero,
  .laboratory-page .hero,
  .people-page .hero,
  .publications-page .hero,
  .videos-page .hero {
    min-height: 0 !important;
    height: auto !important;
    padding: 3rem 6vw 0 !important;
  }


  /* Interior H1 */

  .fieldwork-page .hero h1,
  .laboratory-page .hero h1,
  .people-page .hero h1,
  .publications-page .hero h1,
  .videos-page .hero h1 {
    font-size: 2.43rem;
    margin-bottom: .8rem !important;
  }


  /* Interior lead */

  .fieldwork-page .hero .lead,
  .laboratory-page .hero .lead,
  .people-page .hero .lead,
  .publications-page .hero .lead,
  .videos-page .hero .lead {
    margin-bottom: 0 !important;
  }


  /* First section */

  .fieldwork-page .hero + .section,
  .laboratory-page .hero + .section,
  .people-page .hero + .section,
  .publications-page .hero + .section,
  .videos-page .hero + .section {
    padding-top: 1.5rem !important;
  }


  /* Other sections */

  .fieldwork-page .section,
  .laboratory-page .section,
  .people-page .section,
  .publications-page .section,
  .videos-page .section {
    padding: 1.5rem 6vw 2.5rem !important;
  }


  /* H2 */

  .fieldwork-page .section h2,
  .laboratory-page .section h2,
  .people-page .section h2,
  .publications-page .section h2,
  .videos-page .section h2 {
    font-size: 1.92rem;
    margin-top: 0 !important;
    margin-bottom: .7rem !important;
  }


  .people-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

}
@media (max-width: 700px) {
  .fieldwork-image-placeholder img {
    height: auto;
    object-fit: contain;
  }
}
/* Research support */
.funding h2 {
  max-width: 950px;
  font-size: clamp(1.8rem, 2.4vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: .8rem;
}

.funding-subtitle {
  margin-top: 0;
  margin-bottom: 1.8rem;
  font-style: italic;
}

.funding-supported {
  margin-bottom: 1rem;
  font-weight: 600;
}

.support-logos {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.support-logos img {
  width: 150px;
  height: 55px;
  object-fit: contain;
  object-position: center;
}
.logo-aps {
  width: 270px !important;
  height: 55px !important;
}
.logo-natgeo {
  width: 190px !important;
  height: 55px !important;
}

.support-text {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

.eu-support {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.eu-support h3 {
  max-width: 950px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.35;
  margin-bottom: 1.5rem;
}

.funding .funding-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

@media (max-width: 700px) {
  .support-logos {
    gap: 2rem;
  }

  .support-logos img {
    width: 130px;
  }

  .eu-support .funding-content {
    align-items: flex-start;
  }
}
/* =====================================================
   RESEARCH AUTHORIZATIONS
===================================================== */

.authorizations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.authorization-document {
  text-align: center;
}

.authorization-document a {
  display: block;
}

.authorization-document img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;
  background: #ffffff;
  border: 1px solid var(--line);
}

.authorization-document p {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--navy);
}

@media (max-width: 700px) {
  .authorizations-grid {
    grid-template-columns: 1fr;
  }

  .authorization-document img {
    max-height: none;
  }
}
.video-embed {
  width: 100%;
  max-width: 900px;
  margin: 1.5rem 0 .5rem;
}

.video-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  border: 0;
}
@media (max-width: 900px) {
  .hero-cover {
    background-attachment: scroll;
  }

  .site-header {
    background: transparent;
    position: absolute;
    width: 100%;
    z-index: 10;
  }

  nav a {
    color: white;
  }

  .brand {
    color: white;
  }
}
/* =====================================================
   HOST INSTITUTION
===================================================== */

.host-institution {
  text-align: center;
  padding: 4rem 1.5rem 4.5rem;
  background: var(--paper);
}

.host-institution .section-label {
  margin-bottom: 1.5rem;
}

.host-institution img {
  display: block;
  width: 270px;
  max-width: 70%;
  height: auto;
  margin: 0 auto 1.2rem;
}

.host-institution p:last-child {
  margin: 0;
  font-size: .95rem;
  color: var(--muted);
}

/* =====================================================
   RESEARCH SUPPORT + HOST INSTITUTION
===================================================== */

.support-section {
  padding: 4rem 1.5rem 4.5rem;
  background: var(--paper);
}

.support-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 5rem;
  align-items: center;
}

.support-grid .funding-section {
  padding: 0;
  margin: 0;
}

.support-grid .host-institution {
  padding: 0;
  margin: 0;
  text-align: center;
}

.support-grid .host-institution img {
  display: block;
  width: 240px;
  max-width: 80%;
  height: auto;
  margin: 1.5rem auto 1.2rem;
}

.support-grid .host-institution p:last-child {
  margin: 0;
  font-size: .95rem;
  color: var(--muted);
}

@media (max-width: 800px) {
  .support-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}
@media (max-width: 900px) {

  .site-header.scrolled nav a,
  .site-header.scrolled .brand,
  body:not(:has(.hero-cover)) .site-header nav a,
  body:not(:has(.hero-cover)) .site-header .brand {
    color: var(--ink);
  }

}
}
/* =====================================================
   RESEARCH INTRO
===================================================== */

.research-intro {
  display: flex !important;
  flex-direction: row !important;
  gap: 4rem !important;
  align-items: center !important;
}

.research-intro-text {
  min-width: 0;
}

.research-intro-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.research-intro-logo img {
  width: 100%;
  max-width: 550px;
  height: auto;
  display: block;
}

@media (max-width: 500px) {
  .research-intro {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .research-intro-logo img {
    max-width: 320px;
  }
}
.section p,
.hero p {
  text-align: justify;
}
