/* ==========================================================
   RESEARCH PROJECT PAGE
   ========================================================== */


/* ==========================================================
   REMOVE STANDARD SUBPAGE HERO
   ========================================================== */

body.page-node-type-research-project .subpage-hero {
  display: none !important;
}

body.page-node-type-research-project .block-page-title-block {
  display: none !important;
}

body.page-node-type-research-project .subpage-content {
  padding: 0 !important;
}


/* ==========================================================
   FULL-WIDTH PAGE WRAPPER
   ========================================================== */

.research-project-page {
  position: relative;

  width: 100vw;
  max-width: none;

  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);

  background: var(--paper);
  color: var(--earth);
}

.research-project-page__inner {
  width: 100%;
  max-width: 1840px;

  margin: 0 auto;

  padding:
    clamp(28px, 3vw, 48px)
    clamp(72px, 10vw, 180px)
    clamp(80px, 9vw, 140px);

  box-sizing: border-box;
}


/* ==========================================================
   BACK LINK
   ========================================================== */

.research-project-page__back {
  width: fit-content;

  display: inline-flex;
  align-items: center;

  gap: 10px;

  margin-bottom: clamp(34px, 3.5vw, 56px);

  color: var(--earth);

  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;

  font-size: 14px;
  line-height: 1;
  font-weight: 850;
}

.research-project-page__back > span:first-child {
  font-size: 20px;
  line-height: 1;

  transition: transform 180ms ease;
}

.research-project-page__back:hover {
  color: var(--earth);
}

.research-project-page__back:hover > span:first-child {
  transform: translateX(-4px);
}


/* ==========================================================
   MAIN TWO-COLUMN LAYOUT
   ========================================================== */

.research-project-layout {
  width: 100%;

  display: grid;

  grid-template-columns:
    minmax(0, 2fr)
    minmax(300px, 1fr);

  gap: clamp(60px, 6vw, 110px);

  align-items: start;
}


/* ==========================================================
   LEFT MAIN COLUMN
   ========================================================== */

.research-project-main {
  width: 100%;
  min-width: 0;
}


/* ==========================================================
   CUSTOM PROJECT HERO
   ========================================================== */

.research-project-hero {
  width: 100%;
  max-width: none;

  margin-bottom: clamp(72px, 7vw, 116px);
}

.research-project-hero__area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: 8px;

  margin:
    0
    0
    24px;

  color: rgba(0, 0, 0, 0.58);

  font-size: 12px;
  line-height: 1.3;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.research-project-hero__area-name {
  color: var(--earth);
}

.research-project-hero__title {
  width: 100%;
  max-width: 1000px;

  margin: 0;

  color: var(--earth);

  font-size: clamp(48px, 5.2vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 950;
}

.research-project-hero__subtitle {
  max-width: 900px;

  margin:
    clamp(24px, 3vw, 38px)
    0
    0;

  color: var(--earth);

  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.14;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.research-project-hero__introduction {
  width: 100%;
  max-width: 940px;

  margin-top: clamp(32px, 3.5vw, 50px);

  color: rgba(0, 0, 0, 0.72);

  font-size: clamp(17px, 1.1vw, 20px);
  line-height: 1.64;
  font-weight: 500;
}

.research-project-hero__introduction > *:first-child {
  margin-top: 0;
}

.research-project-hero__introduction > *:last-child {
  margin-bottom: 0;
}

.research-project-hero__introduction p {
  margin:
    0
    0
    1.2em;
}


/* ==========================================================
   SCIENTIFIC CONTENT
   ========================================================== */

.research-project-content {
  width: 100%;
  min-width: 0;
}

.research-project-section {
  width: 100%;

  padding:
    clamp(46px, 5vw, 76px)
    0;

  border-top: 1.5px solid var(--earth);
}

.research-project-section:last-child {
  border-bottom: 1.5px solid var(--earth);
}

.research-project-section__eyebrow,
.research-project-sidebar__eyebrow {
  margin:
    0
    0
    18px;

  color: rgba(0, 0, 0, 0.58);

  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.research-project-section h2 {
  width: 100%;
  max-width: 950px;

  margin:
    0
    0
    clamp(26px, 3vw, 42px);

  color: var(--earth);

  font-size: clamp(34px, 3.1vw, 54px);
  line-height: 1;
  letter-spacing: -0.048em;
  font-weight: 930;
}

.research-project-section__body {
  width: 100%;
  max-width: 1050px;

  color: rgba(0, 0, 0, 0.72);

  font-size: clamp(17px, 1.08vw, 20px);
  line-height: 1.68;
  font-weight: 500;
}

.research-project-section__body > *:first-child {
  margin-top: 0;
}

.research-project-section__body > *:last-child {
  margin-bottom: 0;
}

.research-project-section__body p {
  margin:
    0
    0
    1.3em;
}

.research-project-section__body ul,
.research-project-section__body ol {
  margin:
    1.3em
    0;

  padding-left: 1.3em;
}

.research-project-section__body li + li {
  margin-top: 0.65em;
}


/* ==========================================================
   RIGHT SIDEBAR
   ========================================================== */

.research-project-sidebar {
  position: sticky;
  top: 110px;

  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 0;

  margin: 0;
  padding: 0;
}


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

.research-project-funding {
  width: 100%;

  margin: 0;
  padding: 0;

  border: 0;

  background: transparent;
}

.research-project-progress {
  width: 100%;

  margin:
    clamp(16px, 2vw, 28px)
    0
    0;

  padding:
    0
    0
    42px;

  border: 0;

  background: transparent;
}


/* ==========================================================
   FUNDING STATUS
   ========================================================== */

.research-project-funding {
  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}

.research-project-funding
.research-project-sidebar__eyebrow {
  width: 100%;

  margin-bottom: 0;

  text-align: center;
}

.research-project-funding__ring {
  width: min(100%, 200px);

  margin:
    16px
    auto
    20px;

  align-self: center;

  cursor: default;
}

.research-project-funding__illustration {
  width: min(100%, 190px);

  margin:
    16px
    auto
    20px;

  align-self: center;
}

.research-project-funding__illustration img {
  display: block;

  width: 100%;
  height: auto;
}

.research-project-funding__percentage {
  width: 100%;

  margin:
    0
    0
    9px;

  color: rgba(0, 0, 0, 0.58);

  text-align: center;

  font-size: 11px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.research-project-funding__amount {
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 5px;

  margin: 0;

  text-align: center;
}

.research-project-funding__amount strong {
  color: var(--earth);

  font-size: clamp(28px, 2.3vw, 40px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 940;
}

.research-project-funding__amount span {
  color: rgba(0, 0, 0, 0.58);

  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}

.research-project-funding__meta {
  width: 100%;

  margin-top: 15px;

  color: rgba(0, 0, 0, 0.48);

  text-align: center;

  font-size: 11px;
  line-height: 1.4;
  font-weight: 600;
}

.research-project-funding__unavailable {
  width: 100%;

  margin-top: 24px;
  padding: 18px 0;

  border-top: 1px solid rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);

  background: transparent;
  color: rgba(0, 0, 0, 0.62);

  font-size: 14px;
  line-height: 1.5;
  font-weight: 650;
}

/* ==========================================================
   SUPPORT BUTTON
   ========================================================== */
.research-project-funding__button,
.research-project-funding__button:hover,
.research-project-funding__button:focus,
.research-project-funding__button:focus-visible,
.research-project-funding__button:active {
  width: fit-content;
  max-width: 100%;
  min-height: 50px;

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

  gap: 16px;

  align-self: center;

  margin-top: 18px;

  padding:
    0
    8px
    0
    22px;

  border: 0;
  border-bottom: 0 !important;
  border-radius: 999px;

  appearance: none;
  -webkit-appearance: none;

  background: var(--brand-yellow);
  color: var(--earth) !important;

  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;

  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-color: transparent !important;

  box-shadow: none !important;

  white-space: nowrap;
  cursor: pointer;

  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.research-project-funding__button:hover {
  background: var(--brand-yellow);
  color: var(--earth) !important;

  transform: translateY(-2px);
}

.research-project-funding__button-arrow {
  width: 36px;
  height: 36px;

  display: grid;
  place-items: center;
  flex: 0 0 auto;

  border: 0 !important;
  border-bottom: 0 !important;
  border-radius: 50%;

  background: var(--yellow);
  color: var(--earth) !important;

  text-decoration: none !important;
  text-decoration-line: none !important;

  box-shadow: none !important;

  font-size: 20px;
  line-height: 1;

  transition: transform 180ms ease;
}

.research-project-funding__button-arrow::before,
.research-project-funding__button-arrow::after {
  text-decoration: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.research-project-funding__button:hover
.research-project-funding__button-arrow {
  transform: translateX(3px);
}

.research-project-funding__button[aria-disabled="true"] {
  opacity: 0.42;
  pointer-events: none;
}
/* ==========================================================
   PROJECT PROGRESS
   ========================================================== */

.research-project-progress {
  width: 100%;

  margin:
    0px
    0
    0;

  padding:
    0
    0
    42px;

  border: 0;
}

.research-project-progress
.research-project-sidebar__eyebrow {
  margin-bottom: 30px;
}


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

.research-project-timeline {
  width: 100%;

  display: grid;
  grid-template-columns:
    repeat(5, minmax(0, 1fr));

  margin: 0;
  padding: 0;

  list-style: none;
}

.research-project-timeline__item {
  position: relative;

  min-width: 0;

  display: grid;
  grid-template-rows:
    28px
    auto;

  justify-items: start;

  margin: 0;

  padding:
    0
    clamp(16px, 2vw, 30px)
    0
    0;
}


/* ==========================================================
   HORIZONTAL CONNECTING LINE
   ========================================================== */

.research-project-timeline__item::after {
  content: "";

  position: absolute;
  z-index: 1;

  top: 10px;
  right: 0;
  left: 11px;

  height: 2px;

  background: rgba(187, 189, 199, 0.42);
}

.research-project-timeline__item:last-child::after {
  display: none;
}

.research-project-timeline__item--complete::after {
  background: rgba(255, 217, 46, 0.75);
}


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

.research-project-timeline__marker {
  position: relative;
  z-index: 2;

  grid-row: 1;

  width: 22px;
  height: 22px;

  display: grid;
  place-items: center;

  border: 2px solid transparent;
  border-radius: 50%;

  background: rgba(187, 189, 199, 0.3);

  box-sizing: border-box;

  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.research-project-timeline__centre {
  width: 7px;
  height: 7px;

  display: block;

  border-radius: 50%;

  background: var(--paper);
}


/* Completed stage */

.research-project-timeline__item--complete
.research-project-timeline__marker {
  background: rgba(255, 217, 46, 0.72);
}


/* Current stage */

.research-project-timeline__item--current
.research-project-timeline__marker {
  border-color: var(--earth);

  background: var(--brand-yellow);

  box-shadow:
    0
    0
    0
    6px
    rgba(255, 217, 46, 0.2);

  transform: scale(1.08);
}

.research-project-timeline__item--current
.research-project-timeline__centre {
  width: 8px;
  height: 8px;

  background: var(--paper);
}


/* Future stage */

.research-project-timeline__item--future
.research-project-timeline__marker {
  background: rgba(187, 189, 199, 0.25);
}

.research-project-timeline__item--future
.research-project-timeline__centre {
  background: rgba(254, 253, 250, 0.86);
}


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

.research-project-timeline__content {
  grid-row: 2;

  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  padding-top: 13px;
}

.research-project-timeline__number {
  display: block;

  margin:
    0
    0
    6px;

  color: rgba(0, 0, 0, 0.42);

  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.research-project-timeline__label {
  display: block;

  color: var(--earth);

  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 760;
}

.research-project-timeline__status {
  display: block;

  margin-top: 7px;

  color: rgba(0, 0, 0, 0.48);

  font-size: 11px;
  line-height: 1;
  font-weight: 750;
}


/* Completed-stage text */

.research-project-timeline__item--complete
.research-project-timeline__label {
  color: rgba(0, 0, 0, 0.66);
}


/* Current-stage text */

.research-project-timeline__item--current
.research-project-timeline__number {
  color: rgba(0, 0, 0, 0.62);
}

.research-project-timeline__item--current
.research-project-timeline__label {
  font-weight: 950;
}

.research-project-timeline__item--current
.research-project-timeline__status {
  width: fit-content;

  margin-top: 9px;

  padding:
    6px
    9px;

  border-radius: 999px;

  background: var(--brand-yellow);
  color: var(--earth);

  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* Future-stage text */

.research-project-timeline__item--future
.research-project-timeline__number,
.research-project-timeline__item--future
.research-project-timeline__label {
  color: rgba(0, 0, 0, 0.3);
}


/* ==========================================================
   PULL TIMELINE UP TO CONTENT HEIGHT
   ========================================================== */

.research-project-layout,
.research-project-main,
.research-project-sidebar {
  min-height: 0 !important;
  height: auto !important;
}


/* ==========================================================
   MOBILE — RETURN TO VERTICAL TIMELINE
   ========================================================== */

@media (max-width: 720px) {
  .research-project-progress {
    margin-top: 48px;

    padding:
      0
      0
      42px;

    border: 0;
  }

  .research-project-progress
  .research-project-sidebar__eyebrow {
    margin-bottom: 26px;
  }

  .research-project-timeline {
    display: grid;
    grid-template-columns: 1fr;

    margin: 0;
  }

  .research-project-timeline__item {
    min-height: 78px;

    grid-template-columns:
      28px
      minmax(0, 1fr);

    grid-template-rows: auto;

    column-gap: 18px;

    padding:
      0
      0
      26px;
  }

  .research-project-timeline__item:last-child {
    min-height: 0;

    padding-bottom: 0;
  }

  .research-project-timeline__item::after {
    top: 21px;
    right: auto;
    bottom: -1px;
    left: 10px;

    width: 2px;
    height: auto;
  }

  .research-project-timeline__marker {
    grid-column: 1;
    grid-row: 1;

    margin-top: 1px;
  }

  .research-project-timeline__content {
    grid-column: 2;
    grid-row: 1;

    padding-top: 1px;
  }
}

/* ==========================================================
   LARGE TABLET
   ========================================================== */

@media (max-width: 1200px) {
  .research-project-page__inner {
    padding-right: 48px;
    padding-left: 48px;
  }

  .research-project-layout {
    grid-template-columns:
      minmax(0, 1.8fr)
      minmax(270px, 1fr);

    gap: clamp(42px, 5vw, 70px);
  }

  .research-project-sidebar {
    top: 90px;
  }

  .research-project-funding__ring {
    width: min(100%, 185px);
  }
}


/* ==========================================================
   STACKED LAYOUT
   ========================================================== */

@media (max-width: 900px) {
  .research-project-layout {
    grid-template-columns: minmax(0, 1fr);

    gap: 68px;
  }

  .research-project-sidebar {
    position: static;

    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap:
      42px
      44px;
  }

  .research-project-funding,
  .research-project-progress {
    margin: 0;
  }

  .research-project-funding {
    align-self: start;
  }

  .research-project-progress {
    border-bottom: 1.5px solid var(--earth);
  }
}


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

@media (max-width: 650px) {
  .research-project-page {
    width: 100%;
    max-width: 100%;

    margin-right: 0;
    margin-left: 0;
  }

  .research-project-page__inner {
    padding:
      26px
      22px
      76px;
  }

  .research-project-page__back {
    margin-bottom: 42px;
  }

  .research-project-hero {
    margin-bottom: 66px;
  }

  .research-project-hero__title {
    font-size: clamp(42px, 13vw, 64px);
  }

  .research-project-hero__subtitle {
    font-size: clamp(21px, 6.2vw, 29px);
  }

  .research-project-section h2 {
    font-size: clamp(31px, 9.5vw, 44px);
  }

  .research-project-sidebar {
    display: flex;
    flex-direction: column;

    gap: 0;
  }

  .research-project-funding,
  .research-project-progress {
    padding-bottom: 38px;
    margin-bottom: 38px;
  }

  .research-project-progress {
    margin-bottom: 0;
  }

  .research-project-funding__ring {
    width: min(100%, 190px);
  }

  .research-project-funding__button {
    min-height: 48px;

    padding-left: 20px;
  }

  .research-project-funding__button-arrow {
    width: 34px;
    height: 34px;
  }

  .research-project-timeline__item {
    min-height: 74px;

    grid-template-columns:
      26px
      minmax(0, 1fr);

    column-gap: 16px;
  }

  .research-project-timeline__label {
    font-size: 18px;
  }
}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  .research-project-page__back > span:first-child,
  .research-project-funding__button,
  .research-project-funding__button-arrow,
  .research-project-timeline__marker {
    transition: none;
  }
}

/* Center the project progress heading and timeline block */

.research-project-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.research-project-progress .research-project-sidebar__eyebrow {
  width: 100%;
  text-align: center;
}

.research-project-timeline {
  width: fit-content;
  min-width: 240px;
  max-width: 100%;

  margin-right: auto;
  margin-left: auto;
}

/* Project eyebrow above the title */

.research-project-hero__eyebrow {
  margin:
    0
    0
    20px;

  color: rgba(0, 0, 0, 0.58);

  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}


/* Research area metadata below the subtitle */

.research-project-hero__area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: 8px;

  margin:
    clamp(22px, 2.5vw, 32px)
    0
    0;

  font-size: 13px;
  line-height: 1.3;
}

.research-project-hero__area-label {
  color: rgba(0, 0, 0, 0.5);

  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.research-project-hero__area-name {
  color: var(--earth);
  font-weight: 750;
}
/* More space below the project title */

.research-project-hero__title {
  margin-bottom: clamp(24px, 2.5vw, 40px);
}

/* Keep the research-area line from adding its own top margin twice */

.research-project-hero__area {
  margin-top: 0;
}

/* ==========================================================
   RESEARCH AREA PAGES
   ========================================================== */


/* ==========================================================
   REMOVE STANDARD GREY SUBPAGE HERO
   ========================================================== */

body.page-research-area .subpage-hero,
body.page-research-area .block-page-title-block {
  display: none !important;
}

body.page-research-area .subpage-content {
  padding: 0 !important;
}

body.page-research-area .subpage-content-inner {
  width: 100%;
  max-width: none;

  margin: 0;
  padding: 0;
}


/* ==========================================================
   PAGE WRAPPER
   ========================================================== */

.research-area-page {
  position: relative;

  width: 100vw;
  max-width: none;

  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);

  background: var(--paper);
  color: var(--earth);
}

.research-area-page__inner {
  width: 100%;
  max-width: 1840px;

  margin: 0 auto;

  padding:
    clamp(28px, 3vw, 48px)
    clamp(72px, 10vw, 180px)
    clamp(80px, 9vw, 140px);

  box-sizing: border-box;
}


/* ==========================================================
   BACK LINK
   ========================================================== */

.research-area-page__back {
  width: fit-content;

  display: inline-flex;
  align-items: center;

  gap: 10px;

  margin-bottom: clamp(48px, 5vw, 76px);

  color: var(--earth);

  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;

  font-size: 14px;
  line-height: 1;
  font-weight: 850;
}

.research-area-page__back > span:first-child {
  font-size: 20px;
  line-height: 1;

  transition: transform 180ms ease;
}

.research-area-page__back:hover {
  color: var(--earth);
}

.research-area-page__back:hover > span:first-child {
  transform: translateX(-4px);
}


/* ==========================================================
   AREA HERO
   ========================================================== */

.research-area-page__hero {
  width: min(100%, 1120px);

  margin-bottom: clamp(80px, 9vw, 140px);
}

.research-area-page__eyebrow,
.research-area-projects__eyebrow {
  margin:
    0
    0
    20px;

  color: rgba(0, 0, 0, 0.52);

  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.research-area-page__title {
  width: 100%;
  max-width: 1150px;

  margin: 0;

  color: var(--earth);

  font-size: clamp(52px, 6.2vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.07em;
  font-weight: 950;
}

.research-area-page__description {
  width: min(100%, 920px);

  margin-top: clamp(34px, 4vw, 58px);

  color: rgba(0, 0, 0, 0.72);

  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.55;
  font-weight: 530;
}

.research-area-page__description > *:first-child {
  margin-top: 0;
}

.research-area-page__description > *:last-child {
  margin-bottom: 0;
}

.research-area-page__description p {
  margin:
    0
    0
    1.25em;
}


/* ==========================================================
   CURRENT PROJECTS
   ========================================================== */

.research-area-projects {
  width: 100%;

  border-top: 2px solid var(--earth);
  border-bottom: 2px solid var(--earth);
}

.research-area-projects__heading {
  width: 100%;

  padding:
    clamp(38px, 4.5vw, 64px)
    0
    clamp(34px, 4vw, 54px);
}

.research-area-projects__heading h2 {
  max-width: 1000px;

  margin: 0;

  color: var(--earth);

  font-size: clamp(38px, 4.4vw, 68px);
  line-height: 0.94;
  letter-spacing: -0.06em;
  font-weight: 950;
}


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

.research-area-projects__list {
  width: 100%;

  border-top: 1.5px solid rgba(0, 0, 0, 0.22);
}

.research-area-project-link {
  width: 100%;
  min-height: clamp(104px, 10vw, 146px);

  display: grid;

  grid-template-columns:
    54px
    minmax(0, 1fr)
    54px;

  align-items: center;

  gap: clamp(20px, 3vw, 48px);

  padding:
    clamp(25px, 3vw, 38px)
    0;

  border-bottom: 1.5px solid rgba(0, 0, 0, 0.22);

  background: transparent;
  color: var(--earth);

  text-decoration: none;

  transition:
    background-color 180ms ease,
    padding 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.research-area-project-link:last-child {
  border-bottom: 0;
}

.research-area-project-link:hover {
  padding-right: 24px;
  padding-left: 24px;

  background: rgba(255, 217, 46, 0.18);
  color: var(--earth);
}

.research-area-project-link__number {
  color: rgba(0, 0, 0, 0.4);

  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.research-area-project-link__title {
  min-width: 0;

  color: var(--earth);

  font-size: clamp(28px, 3vw, 48px);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 950;
}

.research-area-project-link__arrow {
  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;
  justify-self: end;

  border-radius: 50%;

  background: var(--brand-yellow);
  color: var(--earth);

  font-size: 23px;
  line-height: 1;

  transition: transform 220ms ease;
}

.research-area-project-link:hover
.research-area-project-link__arrow {
  transform: translateX(5px);
}


/* ==========================================================
   EMPTY STATE
   ========================================================== */

.research-area-projects__empty {
  width: 100%;

  padding:
    clamp(38px, 5vw, 70px)
    0;

  border-top: 1.5px solid rgba(0, 0, 0, 0.22);
}

.research-area-projects__empty p {
  max-width: 680px;

  margin: 0;

  color: rgba(0, 0, 0, 0.58);

  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.5;
  font-weight: 600;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1000px) {
  .research-area-page__inner {
    padding-right: 48px;
    padding-left: 48px;
  }

  .research-area-project-link {
    grid-template-columns:
      40px
      minmax(0, 1fr)
      48px;

    gap: 22px;
  }
}


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

@media (max-width: 650px) {
  .research-area-page {
    width: 100%;
    max-width: 100%;

    margin-right: 0;
    margin-left: 0;
  }

  .research-area-page__inner {
    padding:
      26px
      22px
      76px;
  }

  .research-area-page__back {
    margin-bottom: 48px;
  }

  .research-area-page__hero {
    margin-bottom: 72px;
  }

  .research-area-page__title {
    font-size: clamp(46px, 14vw, 68px);
  }

  .research-area-page__description {
    margin-top: 30px;

    font-size: 18px;
    line-height: 1.5;
  }

  .research-area-projects__heading h2 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .research-area-project-link {
    min-height: 94px;

    grid-template-columns:
      minmax(0, 1fr)
      42px;

    gap: 16px;

    padding:
      26px
      0;
  }

  .research-area-project-link:hover {
    padding-right: 0;
    padding-left: 0;
  }

  .research-area-project-link__number {
    display: none;
  }

  .research-area-project-link__title {
    font-size: clamp(26px, 8vw, 38px);
  }

  .research-area-project-link__arrow {
    width: 42px;
    height: 42px;

    font-size: 21px;
  }
}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  .research-area-page__back > span:first-child,
  .research-area-project-link,
  .research-area-project-link__arrow {
    transition: none;
  }
}

/* ==========================================================
   RESEARCH AREA DETAIL PAGES
   ========================================================== */


/* Hide standard Drupal/subpage hero */

body.page-research-area .subpage-hero,
body.page-research-area .block-page-title-block {
  display: none !important;
}

body.page-research-area .subpage-content {
  padding: 0 !important;
}

body.page-research-area .subpage-content-inner {
  width: 100%;
  max-width: none;

  margin: 0;
  padding: 0;
}


/* ==========================================================
   PAGE WRAPPER
   ========================================================== */

.research-area-page {
  position: relative;

  width: 100vw;
  max-width: none;

  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);

  background: var(--paper);
  color: var(--earth);
}

.research-area-page__inner {
  width: 100%;
  max-width: 1840px;

  margin: 0 auto;

  padding:
    clamp(28px, 3vw, 48px)
    clamp(72px, 10vw, 180px)
    clamp(80px, 9vw, 140px);

  box-sizing: border-box;
}


/* ==========================================================
   BACK LINK
   ========================================================== */

.research-area-page__back {
  width: fit-content;

  display: inline-flex;
  align-items: center;

  gap: 10px;

  margin-bottom: clamp(32px, 3.5vw, 54px);

  color: var(--earth);

  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;

  font-size: 14px;
  line-height: 1;
  font-weight: 850;

  opacity: 0;
  transform: translateY(12px);

  transition:
    opacity 420ms ease,
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.research-area-page__back > span:first-child {
  font-size: 20px;
  line-height: 1;

  transition: transform 180ms ease;
}

.research-area-page__back:hover {
  color: var(--earth);
}

.research-area-page__back:hover > span:first-child {
  transform: translateX(-4px);
}


/* ==========================================================
   AREA HERO
   ========================================================== */

.research-area-page__hero {
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;

  margin-bottom: clamp(70px, 7vw, 108px);

  text-align: center;
}


/* Exact destination of the flying image */

.research-area-page__image-wrap {
  width: clamp(220px, 22vw, 330px);
  aspect-ratio: 1 / 1;

  display: grid;
  place-items: center;

  margin:
    0
    auto
    clamp(28px, 3vw, 42px);
}

.research-area-page__image {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;
  object-position: center;
}


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

.research-area-page__intro {
  width: min(100%, 900px);

  opacity: 0;
  transform: translateY(24px);

  transition:
    opacity 560ms ease 100ms,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1) 100ms;
}

.research-area-page__eyebrow,
.research-area-projects__eyebrow {
  margin:
    0
    0
    16px;

  color: rgba(0, 0, 0, 0.52);

  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.research-area-page__title {
  width: 100%;
  max-width: 920px;

  margin: 0;

  color: var(--earth);

  font-size: clamp(38px, 4.2vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.research-area-page__description {
  width: min(100%, 760px);

  margin:
    clamp(24px, 2.8vw, 38px)
    auto
    0;

  color: rgba(0, 0, 0, 0.7);

  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.52;
  font-weight: 530;
}

.research-area-page__description > *:first-child {
  margin-top: 0;
}

.research-area-page__description > *:last-child {
  margin-bottom: 0;
}

.research-area-page__description p {
  margin:
    0
    0
    1.2em;
}


/* ==========================================================
   CURRENT PROJECTS
   ========================================================== */

.research-area-projects {
  width: min(100%, 1120px);

  margin-right: auto;
  margin-left: auto;

  border-top: 1.5px solid var(--earth);
  border-bottom: 1.5px solid var(--earth);

  opacity: 0;
  transform: translateY(28px);

  transition:
    opacity 560ms ease 220ms,
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1) 220ms;
}

.research-area-projects__heading {
  width: 100%;

  padding:
    clamp(30px, 3.5vw, 46px)
    0
    clamp(26px, 3vw, 40px);

  text-align: center;
}

.research-area-projects__heading h2 {
  margin: 0;

  color: var(--earth);

  font-size: clamp(28px, 3vw, 44px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 950;
}


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

.research-area-projects__list {
  width: 100%;

  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.research-area-project-link {
  width: 100%;
  min-height: 94px;

  display: grid;

  grid-template-columns:
    44px
    minmax(0, 1fr)
    46px;

  align-items: center;

  gap: clamp(18px, 2.5vw, 36px);

  padding:
    24px
    0;

  border-bottom: 1px solid rgba(0, 0, 0, 0.2);

  background: transparent;
  color: var(--earth);

  text-decoration: none;

  transition:
    background-color 180ms ease,
    padding 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.research-area-project-link:last-child {
  border-bottom: 0;
}

.research-area-project-link:hover {
  padding-right: 20px;
  padding-left: 20px;

  background: rgba(255, 217, 46, 0.15);
  color: var(--earth);
}

.research-area-project-link__number {
  color: rgba(0, 0, 0, 0.4);

  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.research-area-project-link__title {
  min-width: 0;

  color: var(--earth);

  font-size: clamp(22px, 2vw, 32px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.research-area-project-link__arrow {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;
  justify-self: end;

  border-radius: 50%;

  background: var(--brand-yellow);
  color: var(--earth);

  font-size: 21px;
  line-height: 1;

  transition: transform 200ms ease;
}

.research-area-project-link:hover
.research-area-project-link__arrow {
  transform: translateX(4px);
}


/* ==========================================================
   EMPTY STATE
   ========================================================== */

.research-area-projects__empty {
  padding:
    36px
    0;

  border-top: 1px solid rgba(0, 0, 0, 0.2);

  text-align: center;
}

.research-area-projects__empty p {
  margin: 0;

  color: rgba(0, 0, 0, 0.55);

  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
}


/* ==========================================================
   REVEAL STATES
   ========================================================== */

.research-area-page.is-revealed
.research-area-page__back,
.research-area-page.is-revealed
.research-area-page__intro,
.research-area-page.is-revealed
.research-area-projects {
  opacity: 1;
  transform: translateY(0);
}


/* Keep the real destination image hidden during the flight */

.research-area-page.is-transitioning
.research-area-page__image {
  opacity: 0;
}


/* ==========================================================
   FLYING IMAGE
   ========================================================== */

.research-area-flight-image {
  position: fixed;
  z-index: 999999;

  display: block;

  margin: 0;
  padding: 0;

  border: 0;

  object-fit: contain;
  object-position: center;

  pointer-events: none;

  will-change:
    top,
    left,
    width,
    height,
    opacity,
    transform;

  transition:
    top 820ms cubic-bezier(0.22, 1, 0.36, 1),
    left 820ms cubic-bezier(0.22, 1, 0.36, 1),
    width 820ms cubic-bezier(0.22, 1, 0.36, 1),
    height 820ms cubic-bezier(0.22, 1, 0.36, 1);
}




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

@media (max-width: 650px) {
  .research-area-page {
    width: 100%;
    max-width: 100%;

    margin-right: 0;
    margin-left: 0;
  }

  .research-area-page__inner {
    padding:
      26px
      22px
      76px;
  }

  .research-area-page__back {
    margin-bottom: 34px;
  }

  .research-area-page__image-wrap {
    width: min(72vw, 280px);

    margin-bottom: 30px;
  }

  .research-area-page__title {
    font-size: clamp(36px, 11vw, 52px);
  }

  .research-area-page__description {
    font-size: 17px;
  }

  .research-area-projects__heading h2 {
    font-size: clamp(28px, 8vw, 40px);
  }

  .research-area-project-link {
    grid-template-columns:
      minmax(0, 1fr)
      40px;

    gap: 14px;

    padding:
      23px
      0;
  }

  .research-area-project-link:hover {
    padding-right: 0;
    padding-left: 0;
  }

  .research-area-project-link__number {
    display: none;
  }

  .research-area-project-link__title {
    font-size: clamp(22px, 7vw, 31px);
  }

  .research-area-project-link__arrow {
    width: 40px;
    height: 40px;

    font-size: 20px;
  }
}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  .research-area-page__back,
  .research-area-page__intro,
  .research-area-projects,
  .research-area-project-link,
  .research-area-project-link__arrow,
  .research-area-flight-image 
  {
    transition: none;
  }
}

/* ==========================================================
   RESEARCH OVERVIEW — REMOVE ALL LINK DECORATION
   ========================================================== */

.research-visual-item .research-area-transition-link,
.research-visual-item .research-area-transition-link:link,
.research-visual-item .research-area-transition-link:visited,
.research-visual-item .research-area-transition-link:hover,
.research-visual-item .research-area-transition-link:focus,
.research-visual-item .research-area-transition-link:active {
  color: inherit !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.research-visual-item .research-area-transition-link *,
.research-visual-item .research-area-transition-link h2,
.research-visual-item .research-area-transition-link p,
.research-visual-item .research-area-transition-link span,
.research-visual-item .research-area-transition-link strong {
  color: inherit;
  text-decoration: none !important;
  text-decoration-line: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}
/* Shift both the permanent image and the animation target. */

.research-area-page__image-wrap {
  position: relative;
  left: -26px;
}

@media (max-width: 650px) {
  .research-area-page__image-wrap {
    left: -26px;
  }
}

/* ==========================================================
   INDIVIDUAL RESEARCH-AREA ILLUSTRATION SIZING
   ========================================================== */

/*
  Keep every permanent image filling its own animation target.
  Area-specific size differences are handled only through the
  wrapper, so the flying image and permanent image match.
*/

.research-area-page__image {
  display: block !important;

  width: 100% !important;
  height: 100% !important;

  object-fit: contain;
  object-position: center;
}


/* Default destination size */

.research-area-page__image-wrap--beyond-pms,
.research-area-page__image-wrap--hormonal-modulation,
.research-area-page__image-wrap--the-second-half {
  width: clamp(220px, 22vw, 330px);
}


/* Smaller destination for pregnancy/postpartum */

.research-area-page__image-wrap--managing-extremes {
  width: clamp(135px, 12vw, 190px);
}

/* Mobile sizing */

@media (max-width: 650px) {
  .research-area-page__image-wrap--beyond-pms,
  .research-area-page__image-wrap--hormonal-modulation,
  .research-area-page__image-wrap--the-second-half {
    width: min(72vw, 280px);
  }

  .research-area-page__image-wrap--managing-extremes {
    width: min(56vw, 215px);
  }
}

/* ==========================================================
   PREVENT RESEARCH-AREA PAGE FLASH BEFORE TRANSITION
   ========================================================== */

/*
  The pending class is already present in the HTML, so the page
  cannot briefly appear before JavaScript initializes.
*/

.research-area-page.is-pending
.research-area-page__back,
.research-area-page.is-pending
.research-area-page__image-wrap,
.research-area-page.is-pending
.research-area-page__intro,
.research-area-page.is-pending
.research-area-projects {
  opacity: 0 !important;
  visibility: hidden;
}


/*
  During the image flight, reveal the target area but keep the
  permanent image hidden behind the flying copy.
*/

.research-area-page.is-transitioning
.research-area-page__image-wrap {
  opacity: 1 !important;
  visibility: visible;
}

.research-area-page.is-transitioning
.research-area-page__image {
  opacity: 0 !important;
}


/*
  Normal final state.
*/

.research-area-page.is-ready
.research-area-page__image-wrap,
.research-area-page.is-revealed
.research-area-page__image-wrap {
  opacity: 1 !important;
  visibility: visible;
}

/* ==========================================================
   INDIVIDUAL RESEARCH-AREA IMAGE POSITIONS
   ========================================================== */

.research-area-page__image-wrap {
  --research-image-shift-x: 0px;

  transform: translateX(
    var(--research-image-shift-x)
  ) !important;
}

.research-area-page__image-wrap--beyond-pms {
  --research-image-shift-x: 10px;
}

.research-area-page__image-wrap--hormonal-modulation {
  --research-image-shift-x: 20px;
}

.research-area-page__image-wrap--managing-extremes {
  --research-image-shift-x: 25px;
}

.research-area-page__image-wrap--the-second-half {
  --research-image-shift-x: -6px;
}

@media (max-width: 650px) {
  .research-area-page__image-wrap--beyond-pms {
    --research-image-shift-x: 18px;
  }

  .research-area-page__image-wrap--hormonal-modulation {
    --research-image-shift-x: 20px;
  }

  .research-area-page__image-wrap--managing-extremes {
    --research-image-shift-x: 26px;
  }

  .research-area-page__image-wrap--the-second-half {
    --research-image-shift-x: 4px;
  }
}

/* ==========================================================
   RESEARCH OVERVIEW — INDIVIDUAL MOBILE IMAGE POSITIONS
   ========================================================== */

@media (max-width: 650px) {
  .research-visual-item--puberty {
    transform: translateX(0);
  }

  .research-visual-item--contraception {
    transform: translateX(0);
  }

  .research-visual-item--pregnancy {
    transform: translateX(0);
  }

  .research-visual-item--menopause {
    transform: translateX(-16);
  }
}