:root {
  --navy: #03131f;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: #ffffff;
  color: #111111;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  padding: 0 5vw;
  background: var(--navy);
}

.site-logo-link {
  display: flex;
  align-items: center;
}

.site-logo {
  display: block;
  width: auto;
  height: 64px;
}

.menu-toggle {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

nav {
  display: flex;
  gap: 2.2rem;
}

nav a {
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: #bfe9ef;
}

main {
  min-height: calc(100vh - 104px);
  padding: 2rem 5vw;
}

.home-hero {
  position: relative;
  display: flex;
  min-height: clamp(410px, 55vw, 620px);
  align-items: end;
  overflow: hidden;
  color: #ffffff;
  background: var(--navy);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center 46%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(3, 19, 31, 0.84) 0%, rgba(3, 19, 31, 0.46) 46%, rgba(3, 19, 31, 0.13) 100%),
    linear-gradient(0deg, rgba(3, 19, 31, 0.5) 0%, transparent 46%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: clamp(3.5rem, 8vw, 7rem) 5vw clamp(4.5rem, 9vw, 7.25rem);
}

.hero-label {
  margin: 0 0 0.9rem;
  color: #bfe9ef;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-content > p:last-child {
  max-width: 560px;
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.6;
}

.hero-credit {
  position: absolute;
  z-index: 1;
  right: 5vw;
  bottom: 1.15rem;
  max-width: min(720px, 85vw);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  line-height: 1.45;
  text-align: right;
  text-decoration: none;
}

.hero-credit:hover,
.hero-credit:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.research-section,
.people-section,
.contact-section {
  max-width: 1400px;
  margin-right: auto;
  margin-left: auto;
}

.research-section {
  margin-top: 5rem;
}

.section-label {
  margin: 0 0 0.55rem;
  color: #526d7a;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.research-section > h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.research-block {
  margin-top: 4.5rem;
}

.research-block h2 {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: 1.45rem;
}

.overview-placeholder {
  max-width: 760px;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.75;
}

.research-themes {
  max-width: 760px;
  margin: 0;
  padding-left: 1.35rem;
  color: #56626a;
  font-size: 1.05rem;
  line-height: 1.8;
}

.muted-copy,
.empty-surveys,
.empty-publications {
  margin: 0;
  color: #56626a;
}

.survey-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.survey-card {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  padding: 1.4rem;
  border: 1px solid #dce1e4;
  color: inherit;
  text-decoration: none;
}

.survey-card:hover,
.survey-card:focus-visible {
  border-color: var(--navy);
  box-shadow: 0 6px 20px rgba(3, 19, 31, 0.12);
}

.survey-name {
  margin: 0;
  color: var(--navy);
  font-size: 1.1rem;
}

.survey-logo {
  display: block;
  width: 100%;
  height: 90px;
  margin-bottom: 1.1rem;
  object-fit: contain;
  object-position: left center;
}

.survey-description {
  margin: 0.6rem 0 1.3rem;
  color: #56626a;
  font-size: 0.9rem;
}

.survey-action {
  margin-top: auto;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 700;
}

.publications-section {
  padding: 2rem;
  border: 1px solid #dce1e4;
  background: #f6f8f8;
}

.publications-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1.5rem;
}

.publications-heading h2 {
  margin-bottom: 0.45rem;
}

.publications-heading h1 {
  margin: 0 0 0.45rem;
  color: var(--navy);
  font-size: clamp(2.1rem, 4vw, 3.5rem);
}

.publications-archive-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 5vw;
}

.back-to-research {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.back-to-research:hover,
.back-to-research:focus-visible {
  text-decoration: underline;
}

.filter-reset {
  padding: 0.65rem 0.8rem;
  border: 1px solid #9da9af;
  color: var(--navy);
  background: #ffffff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-reset:hover,
.filter-reset:focus-visible {
  border-color: var(--navy);
}

.publication-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.publication-filters label {
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
}

.publication-filters span,
.publication-filters select {
  display: block;
}

.publication-filters select {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid #b4bec3;
  border-radius: 0;
  color: #111111;
  background: #ffffff;
  font: inherit;
  font-size: 0.95rem;
}

.publication-results {
  border-top: 1px solid #dce1e4;
}

.publication-summary {
  margin: 1rem 0 0;
  color: #56626a;
  font-size: 0.85rem;
}

.publication-card {
  padding: 1.45rem 0;
  border-bottom: 1px solid #dce1e4;
}

.publication-meta,
.publication-authors {
  margin: 0;
  color: #56626a;
  font-size: 0.88rem;
}

.group-author {
  padding: 0 0.14em;
  color: var(--navy);
  font-weight: 700;
  background: #d8edf0;
  border-radius: 0.16rem;
}

.publication-title {
  margin: 0.5rem 0;
  color: var(--navy);
  font-size: 1.1rem;
}

.publication-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.85rem;
}

.publication-links a {
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 700;
}

.publication-links a:hover,
.publication-links a:focus-visible {
  text-decoration: underline;
}

.show-all-publications {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--navy);
  color: var(--navy);
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.show-all-publications:hover,
.show-all-publications:focus-visible {
  color: #ffffff;
  background: var(--navy);
}

.people-section {
  margin: 5rem auto 0;
}

.contact-section {
  margin: 5rem auto;
}

.contact-section h1 {
  margin: 0;
  color: var(--navy);
}

.contact-section p {
  margin: 1rem 0 0;
  color: #526d7a;
}

.people-section h1,
.people-group h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
}

.people-group {
  margin-top: 3.5rem;
}

.people-group h2 {
  margin-bottom: 1.25rem;
  color: var(--navy);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.person-card {
  display: block;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid #dce1e4;
  background: #ffffff;
}

a.person-card {
  color: inherit;
  text-decoration: none;
}

a.person-card:hover,
a.person-card:focus-visible {
  border-color: var(--navy);
  box-shadow: 0 6px 20px rgba(3, 19, 31, 0.12);
}

.person-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #eef1f2;
}

.person-details {
  padding: 1rem;
}

.person-name,
.person-role {
  margin: 0;
}

.person-name {
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 700;
}

.person-role {
  margin-top: 0.25rem;
  color: #56626a;
  font-size: 0.88rem;
}

.empty-roster {
  margin: 0;
  color: #56626a;
}

.profile-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4rem 5vw;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #eef1f2;
}

.back-link {
  display: inline-block;
  margin-bottom: 2.4rem;
  color: var(--navy);
  font-size: 0.9rem;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  text-decoration: underline;
}

.profile-name {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.1;
}

.profile-role {
  margin: 0.75rem 0 3.2rem;
  color: #56626a;
  font-size: 1.1rem;
}

.profile-heading {
  margin: 0 0 0.7rem;
  color: var(--navy);
  font-size: 1.15rem;
}

.profile-interests {
  max-width: 650px;
  margin: 0 0 2rem;
  line-height: 1.7;
}

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

.profile-external-link {
  display: inline-block;
  padding: 0.8rem 1rem;
  color: #ffffff;
  background: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.profile-external-link:hover,
.profile-external-link:focus-visible {
  background: #0c314a;
}

@media (max-width: 700px) {
  .site-header {
    position: relative;
    min-height: 82px;
    padding: 0 1.25rem;
  }

  .site-logo {
    height: 52px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #ffffff;
    font-size: 1.65rem;
    line-height: 1;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 0.3rem;
    cursor: pointer;
  }

  .site-header nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.35rem 1.25rem 1rem;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    z-index: 10;
  }

  .site-header.menu-open nav {
    display: flex;
  }

  .site-header nav a {
    padding: 0.8rem 0;
    font-size: 1rem;
  }
}

@media (max-width: 500px) {
  .site-logo {
    height: 44px;
  }

  .home-hero {
    min-height: 490px;
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(3, 19, 31, 0.78), rgba(3, 19, 31, 0.34)),
      linear-gradient(0deg, rgba(3, 19, 31, 0.66), transparent 60%);
  }

  .hero-content {
    padding: 3rem 1.3rem 6.5rem;
  }

  .hero-credit {
    right: 1.3rem;
    bottom: 1rem;
    font-size: 0.62rem;
  }
}

@media (max-width: 950px) {
  .survey-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 520px) {
  .research-block {
    margin-top: 3.5rem;
  }

  .survey-grid,
  .publication-filters {
    grid-template-columns: 1fr;
  }

  .publications-section {
    padding: 1.3rem;
  }

  .publications-heading {
    align-items: start;
    flex-direction: column;
  }

  .people-grid {
    grid-template-columns: 1fr;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    max-width: 260px;
  }
}
