* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: #172536;
  background: #fff;
  line-height: 1.65;
}

/* =========================
   HEADER & NAVIGATION
========================= */

header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e7edf2;
  z-index: 5;
}

.nav {
  max-width: 1180px;
  margin: auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #132c46;
  text-decoration: none;
  white-space: nowrap;
}

nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

nav a {
  font-size: 0.9rem;
  color: #536576;
  text-decoration: none;
}

nav a.active,
nav a:hover {
  color: #183f61;
  font-weight: 700;
}

.menu {
  display: none;
  margin-left: auto;
  border: 0;
  background: none;
  font-size: 1.4rem;
}


/* =========================
   MAIN CONTENT
========================= */

main {
  max-width: 1100px;
  margin: auto;
  padding: 58px 28px 80px;
}


/* =========================
   HERO / HOME
========================= */

.hero {
  min-height: 62vh;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 60px;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: #52708a;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.7rem);
  line-height: 1.02;
  margin: 12px 0;
  color: #102d49;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  color: #566776;
}


/* =========================
   PROFILE PHOTO
========================= */

.portrait {
  width: 270px;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 auto;
  background: #f7fafc;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}


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

.button {
  display: inline-block;
  background: #173f61;
  color: white;
  padding: 12px 18px;
  border-radius: 7px;
  text-decoration: none;
  margin: 8px 8px 0 0;
}

.button.light {
  background: #eef3f6;
  color: #173f61;
}


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

.section {
  margin: 30px 0 56px;
}

.section h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  color: #102d49;
}

.section h2 {
  color: #183f61;
  margin-top: 38px;
}


/* =========================
   GRID & CARDS
========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.card {
  border: 1px solid #e1e9ef;
  border-radius: 12px;
  padding: 20px;
  background: #fff;
}

.card h3 {
  margin: 0 0 6px;
  color: #183f61;
  line-height: 1.3;
}

.muted {
  color: #71808d;
}


/* =========================
   TEAM AVATAR
========================= */

.avatar {
  height: 190px;
  background: #edf3f6;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #789;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 15px;
}

/* =========================
   ACADEMIC PROFILE LINKS
========================= */

.profile-links {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  align-items: center;
}

.profile-links a {
  width: 42px;
  height: 42px;

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

  border: 1px solid #d9e4eb;
  border-radius: 8px;

  background: #ffffff;
  color: #183f61;

  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;

  transition: all 0.2s ease;
}

.profile-links a:hover {
  background: #183f61;
  color: white;
  border-color: #183f61;
}

/* =========================
   GRANTS PAGE
========================= */

.grants-section {
  max-width: 1050px;
}

.section-intro {
  max-width: 760px;
  color: #647482;
  margin-bottom: 38px;
  font-size: 1.05rem;
}


/* Grants container */

.grants-list {
  margin-top: 28px;
  border-top: 1px solid #dfe7ed;
}


/* Individual grant */

.grant-item {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 38px;

  padding: 26px 28px;

  border-bottom: 1px solid #dfe7ed;

  transition: background 0.2s ease;
}

.grant-item:hover {
  background: #f8fafb;
}


/* Year badge */

.grant-year {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: fit-content;
  min-width: 112px;

  padding: 6px 16px;

  background: #183f61;

  color: #ffffff;

  border-radius: 5px;

  font-size: 0.9rem;
  font-weight: 700;

  letter-spacing: 0.02em;

  box-shadow: 0 3px 8px rgba(23, 63, 97, 0.18);
}


/* Grant content */

.grant-content {
  min-width: 0;
}

.grant-content h2 {
  margin: 0 0 14px;

  color: #172536;

  font-size: 1.28rem;
  line-height: 1.35;

  font-weight: 750;
}


/* Grant information */

.grant-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.grant-details p {
  margin: 0;
}


/* Funding organisation */

.grant-funder {
  color: #526576;

  font-size: 1.05rem;
}

.grant-icon {
  display: inline-block;

  width: 24px;

  color: #527a98;

  font-size: 1.1rem;
}


/* Role */

.grant-role {
  color: #71808d;

  font-size: 0.95rem;

  padding-left: 28px;
}


/* Amount */

.grant-amount {
  color: #183f61;

  font-weight: 700;

  font-size: 1rem;

  padding-left: 28px;
}


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

@media (max-width: 780px) {

  .grant-item {
    grid-template-columns: 1fr;

    gap: 16px;

    padding: 24px 0;
  }

  .grant-year {
    min-width: 105px;
  }

  .grant-content h2 {
    font-size: 1.1rem;
  }

  .grant-funder {
    font-size: 1rem;
  }

}

/* =========================
   PUBLICATIONS
========================= */

.pub {
  padding: 22px 0;
  border-bottom: 1px solid #e5ebef;
}

.pub h3 {
  margin: 0 0 5px;
  color: #183f61;
  font-size: 1.12rem;
  line-height: 1.35;
}

.pub p {
  margin: 2px 0;
  color: #657583;
}

.pub .meta {
  font-size: 0.9rem;
}

.tag {
  display: inline-block;
  background: #edf3f6;
  color: #315a78;
  border-radius: 99px;
  padding: 3px 9px;
  font-size: 0.76rem;
  font-weight: 700;
  margin-right: 6px;
}

.search {
  width: 100%;
  padding: 15px 17px;
  border: 1px solid #ccd9e2;
  border-radius: 8px;
  font-size: 1rem;
  margin: 16px 0;
}

/* =========================
   TEAM PAGE
========================= */

.team-section {
  max-width: 1000px;
}

.team-group {
  margin-top: 45px;
}

.alumni-group {
  margin-top: 70px;
}


/* Section badge */

.team-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 115px;

  padding: 7px 18px;

  background: #183f61;
  color: #ffffff;

  border-radius: 5px;

  font-size: 0.85rem;
  font-weight: 700;

  letter-spacing: 0.08em;

  box-shadow: 0 3px 8px rgba(23, 63, 97, 0.18);

  margin-bottom: 18px;
}


/* Team list */

.team-list {
  border-top: 1px solid #dfe7ed;
}


/* Individual member */

.team-member {
  padding: 20px 10px;

  border-bottom: 1px solid #dfe7ed;

  transition: background 0.2s ease;
}

.team-member:hover {
  background: #f8fafb;
}


/* Member info */

.team-member-content h2 {
  margin: 0 0 3px;

  color: #183f61;

  font-size: 1.2rem;

  line-height: 1.3;
}

.team-member-content p {
  margin: 0;

  color: #6b7b87;

  font-size: 0.98rem;
}


/* Mobile */

@media (max-width: 780px) {

  .team-member {
    padding: 17px 5px;
  }

  .team-member-content h2 {
    font-size: 1.05rem;
  }

  .team-member-content p {
    font-size: 0.9rem;
  }

}

/* =========================
   TALKS & TEACHING PAGE
========================= */

.talks-section,
.teaching-section,
.guest-lectures-section {
  max-width: 1000px;
}


/* =========================
   MAIN SECTION BLOCK
   Navy category header
========================= */

.tt-section-block {
  margin-top: 48px;
}

.tt-section-title {
  display: inline-flex;
  align-items: center;

  background: #183f61;
  color: #ffffff;

  padding: 9px 20px;

  border-radius: 5px;

  font-size: 0.82rem;
  font-weight: 700;

  letter-spacing: 0.09em;

  margin-bottom: 18px;

  box-shadow: 0 3px 8px rgba(23, 63, 97, 0.16);
}


/* =========================
   INTRO TEXT
========================= */

.tt-intro,
.section-intro {
  max-width: 760px;

  margin: 0 0 22px;

  color: #71808d;

  font-size: 0.95rem;

  line-height: 1.65;
}


/* =========================
   YEAR GROUP
========================= */

.talk-year-group {
  margin-top: 28px;
}

.talk-year-group:first-of-type {
  margin-top: 0;
}


/* Small soft-blue year badge */

.talk-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 68px;

  padding: 5px 13px;

  background: #edf3f6;

  color: #315a78;

  border-radius: 4px;

  font-size: 0.76rem;
  font-weight: 700;

  letter-spacing: 0.06em;

  margin-bottom: 9px;
}


/* =========================
   LIST
========================= */

.talk-list {
  border-top: 1px solid #e1e8ed;
}


/* Individual talk / teaching item */

.talk-item {
  padding: 13px 8px;

  border-bottom: 1px solid #e1e8ed;

  transition: background 0.2s ease;
}

.talk-item:hover {
  background: #f8fafb;
}


/* =========================
   TITLE
========================= */

.talk-item h2 {
  margin: 0 0 2px;

  color: #183f61;

  font-size: 1rem;
  font-weight: 650;

  line-height: 1.4;
}

.talk-item h2 a {
  color: inherit;

  text-decoration: none;
}

.talk-item h2 a:hover {
  color: #527a98;

  text-decoration: underline;
}


/* =========================
   EVENT / INSTITUTION / DATE
========================= */

.talk-item p {
  margin: 0;

  color: #71808d;

  font-size: 0.88rem;

  line-height: 1.5;
}


/* =========================
   SECTION SEPARATION
========================= */

.teaching-section,
.guest-lectures-section {
  margin-top: 85px;

  padding-top: 60px;

  border-top: 1px solid #dfe7ed;
}


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

@media (max-width: 780px) {

  .tt-section-block {
    margin-top: 35px;
  }

  .tt-section-title {
    padding: 8px 16px;

    font-size: 0.75rem;
  }

  .talk-year-group {
    margin-top: 24px;
  }

  .talk-item {
    padding: 12px 4px;
  }

  .talk-item h2 {
    font-size: 0.94rem;
  }

  .talk-item p {
    font-size: 0.83rem;
  }

  .teaching-section,
  .guest-lectures-section {
    margin-top: 65px;

    padding-top: 45px;
  }

}

/* =========================
   RESEARCH & PROJECTS PAGE
========================= */

.research-page {
  max-width: 1000px;
}

.research-intro {
  max-width: 780px;
}


/* =========================
   PROJECT BLOCK
========================= */

.research-project {
  margin-top: 70px;
}

.research-project:first-of-type {
  margin-top: 45px;
}


/* Navy project title */

.research-project-title {
  display: inline-flex;

  background: #183f61;
  color: #ffffff;

  padding: 10px 20px;

  border-radius: 5px;

  font-size: 0.95rem;
  font-weight: 700;

  line-height: 1.45;

  letter-spacing: 0.02em;

  box-shadow: 0 3px 8px rgba(23, 63, 97, 0.16);

  margin-bottom: 28px;
}


/* =========================
   PROJECT CONTENT
========================= */

.research-project-content {
  display: grid;

  grid-template-columns: 1.25fr 0.75fr;

  gap: 55px;

  align-items: center;
}


/* Alternate layout */

.research-project-reverse {
  grid-template-columns: 0.75fr 1.25fr;
}

.research-project-reverse .research-project-text {
  order: 2;
}

.research-project-reverse .research-image-placeholder {
  order: 1;
}


/* =========================
   TEXT
========================= */

.research-project-text p {
  margin-top: 0;
  margin-bottom: 18px;

  color: #566776;

  font-size: 0.98rem;

  line-height: 1.75;
}


/* =========================
   IMAGE PLACEHOLDER
========================= */

.research-image-placeholder {
  width: 100%;

  min-height: 280px;

  border-radius: 12px;

  background:
    linear-gradient(
      145deg,
      #dfeaf1,
      #f7fafc
    );

  border: 1px solid #e1e9ef;

  display: flex;

  align-items: center;
  justify-content: center;

  text-align: center;
}

.research-image-placeholder div {
  display: flex;

  flex-direction: column;

  gap: 5px;
}

.research-image-placeholder strong {
  color: #315a78;

  font-size: 0.9rem;

  letter-spacing: 0.08em;
}

.research-image-placeholder span {
  color: #8a99a5;

  font-size: 0.72rem;

  letter-spacing: 0.12em;
}

/* =========================
   RESEARCH PROJECT IMAGE
========================= */

.research-image {
  width: 100%;
  height: 220px;

  border-radius: 12px;
  overflow: hidden;

  border: 1px solid #e1e9ef;

  background: #edf3f6;

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

.research-image img {
  max-width: 85%;
  max-height: 85%;

  width: auto;
  height: auto;

  object-fit: contain;

  display: block;
}
/* Mobile */

@media (max-width: 780px) {

  .research-image {
    height: 220px;
  }

}
/* =========================
   RESEARCH TAGS
========================= */

.research-tags {
  display: flex;

  flex-wrap: wrap;

  gap: 7px;

  margin-top: 25px;
}

.research-tags span {
  display: inline-flex;

  align-items: center;

  background: #edf3f6;

  color: #315a78;

  border-radius: 99px;

  padding: 4px 10px;

  font-size: 0.75rem;

  font-weight: 600;
}


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

@media (max-width: 780px) {

  .research-project {
    margin-top: 55px;
  }

  .research-project-title {
    display: block;

    font-size: 0.88rem;

    padding: 10px 16px;

    margin-bottom: 22px;
  }

  .research-project-content,
  .research-project-reverse {
    grid-template-columns: 1fr;

    gap: 28px;
  }

  .research-project-reverse .research-project-text,
  .research-project-reverse .research-image-placeholder {
    order: initial;
  }

  .research-project-text p {
    font-size: 0.93rem;
  }

  .research-image-placeholder {
    min-height: 220px;
  }

}

/* =========================
   NOTICE / HIGHLIGHT
========================= */

.notice {
  background: #f1f6f9;
  border-left: 4px solid #527a98;
  padding: 16px 18px;
  border-radius: 6px;
}


/* =========================
   TIMELINE
========================= */

.timeline {
  border-left: 2px solid #d7e2e9;
  padding-left: 22px;
}

.timeline .item {
  margin: 0 0 24px;
}


/* =========================
   LINKS
========================= */

.links a {
  color: #245879;
  text-decoration: none;
}


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

footer {
  border-top: 1px solid #e7edf2;
  padding: 28px;
  text-align: center;
  color: #75828d;
  font-size: 0.9rem;
}


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

@media (max-width: 780px) {

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .portrait {
    width: 180px;
    height: 225px;
    margin: 0 auto;
  }

  .menu {
    display: block;
  }

  nav {
    display: none;
    width: 100%;
    padding-top: 10px;
  }

  nav.open {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .nav {
    flex-wrap: wrap;
  }

  .brand {
    font-size: 0.85rem;
  }

  main {
    padding: 38px 20px 60px;
  }

}
