/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --white: #ffffff;
  --black: #0a0a0a;
  --lite: #f4f4f4;
  --border: #d7d7d7;

  --gradient-stops: #f9af0b 0%, #ed4525 32.927%, #320000 100%;
  --gradient-1: linear-gradient(-33.8deg, var(--gradient-stops));
  /* Solid colour that text links and header menu items change to on hover */
  --hover-color: #ed4525;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --gradient-2: linear-gradient(-48.6deg, #320000 12.503%, #ed4525 71.19%, #f9af0b 100%);

  --font-heading: "Bricolage Grotesque", sans-serif;
  --font-body: "Google Sans Flex", sans-serif;

  /* Desktop type: exact at 1920px, scales down with the viewport */
  --fs-h1: clamp(40px, 4.167vw, 80px);
  --fs-h2: clamp(32px, 3.125vw, 60px);
  --fs-h4: clamp(24px, 1.667vw, 32px);
  --fs-s1: clamp(16px, 1.25vw, 24px);
  --fs-p1: clamp(16px, 1.042vw, 20px);
  --fs-p2: clamp(16px, 0.9375vw, 18px);
  --fs-p3: 16px;

  /* Header height at the top of the page, and once it is stuck while scrolling */
  --header-h: 100px;
  --header-stuck-h: 72px;

  --gutter: clamp(32px, 3.125vw, 60px);
  --section: clamp(72px, 6.25vw, 120px);
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  /* -2% tracking, relative to each element's own font size */
  letter-spacing: -0.02em;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: var(--fs-p3);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 14;
  line-height: 1;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h4); }

/* The design measures spacing from cap height to baseline */
h1,
h2,
h3,
p,
.nav a,
.footer__links a,
.btn span,
.nav-toggle span,
.interstitial__btn,
.section-label span,
.pipeline-tabs button {
  text-box: trim-both cap alphabetic;
}

.page {
  max-width: 1920px;
  margin: 0 auto;
  /* clip, not hidden: hidden would stop the sticky header from sticking */
  overflow: clip;
}

.container {
  padding: 0 var(--gutter);
}

.is-muted { color: rgba(10, 10, 10, 0.72); }

.w-560 { max-width: 560px; }
.w-580 { max-width: 580px; }
.w-715 { max-width: 715px; }
.w-730 { max-width: 730px; }
.w-760 { max-width: 760px; }
.w-779 { max-width: 779px; }

/* Text is transparent over the gradient; on hover the solid colour fades in */
.text-gradient {
  background-image: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  text-underline-position: from-font;
  transition: color 0.3s ease;
}

a.text-gradient:hover,
a.text-gradient:focus-visible {
  color: var(--hover-color);
}

.text-gradient--bold { font-weight: 700; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 6px 0 24px;
  border-radius: 12px;
  font-size: var(--fs-p3);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.4s ease;
}

/* The square behind the arrow. On hover it grows right-to-left, staying inset
   so the button keeps its 6px frame. It is one element, so one gradient. */
.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 6px;
  right: 6px;
  bottom: 6px;
  left: calc(100% - 54px);
  border-radius: 10px;
  transition: left 0.45s var(--ease);
}

.btn__icon {
  flex: none;
  width: 48px;
  height: 48px;
}

.btn--white {
  background: var(--white);
  color: var(--black);
}

/* Same gradient as the Figma arrow square */
.btn--white::before {
  background: linear-gradient(-72.4deg, var(--gradient-stops));
}

.btn--gradient {
  border-radius: 8px;
  background: var(--gradient-1);
  color: var(--white);
}

.btn--gradient::before {
  background: var(--white);
}

.btn:focus-visible::before {
  left: 6px;
}

.btn--white:focus-visible {
  color: var(--white);
}

.btn--gradient:focus-visible {
  color: var(--black);
}

@media (hover: hover) {
  .btn:hover::before {
    left: 6px;
  }

  .btn--white:hover {
    color: var(--white);
  }

  .btn--gradient:hover {
    color: var(--black);
  }
}

/* Solid buttons: the background fades to the solid hover colour */
.btn-solid {
  position: relative;
  isolation: isolate;
}

.btn-solid::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: inherit;
  background: var(--hover-color);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.btn-solid:hover::before,
.btn-solid:focus-visible::before {
  opacity: 1;
}

/* ==========================================================================
   Header
   ========================================================================== */
/* The header keeps its full height in the page flow so nothing jumps when the
   visible bar inside it shrinks; the leftover strip is see-through and click-through. */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-h);
  pointer-events: none;
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--gutter);
  background: var(--white);
  pointer-events: auto;
  transition: height 0.3s ease, box-shadow 0.3s ease;
}

.header.is-stuck .header__inner {
  height: var(--header-stuck-h);
  box-shadow: 0 8px 24px rgba(10, 10, 10, 0.08);
}

.header .logo {
  transform-origin: left center;
  transition: scale 0.3s ease;
}

.header.is-stuck .logo {
  scale: 0.7;
}

/* Jump links stop below the stuck header instead of underneath it */
main,
section[id] {
  scroll-margin-top: var(--header-stuck-h);
}

#clinical-trial {
  scroll-margin-top: calc(var(--header-stuck-h) + 24px);
}

.logo {
  position: relative;
  display: block;
  flex: none;
  width: 140.339px;
  height: 80px;
}

.logo img {
  position: absolute;
  max-width: none;
}

.logo__full {
  inset: 0;
  width: 100%;
  height: 100%;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  display: block;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--hover-color);
}

.nav__contact,
.nav-toggle {
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav__contact {
  display: flex;
  background: linear-gradient(-45.9deg, var(--gradient-stops));
}

.nav-toggle {
  display: none;
  gap: 8px;
  background: linear-gradient(-51.9deg, var(--gradient-stops));
  cursor: pointer;
}

/* Two bars drawn to match the Figma menu icon; they cross when the menu is open */
.nav-toggle__icon {
  position: relative;
  flex: none;
  width: 16px;
  height: 8px;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: -0.75px;
  width: 17.5px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: top 0.3s var(--ease), rotate 0.3s var(--ease);
}

.nav-toggle__icon::before {
  top: -0.75px;
}

.nav-toggle__icon::after {
  top: 7.25px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  top: 3.25px;
  rotate: 45deg;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  top: 3.25px;
  rotate: -45deg;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: min(980px, 51.042vw);
  overflow: hidden;
}

.hero__photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 66.667%;
  height: 100%;
  overflow: hidden;
}

.hero__photo img {
  position: absolute;
  top: -0.02%;
  left: -28.58%;
  width: 149.51%;
  height: 130.22%;
  max-width: none;
}

.hero__shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 56.667%;
  height: 100%;
}

.hero__shape img {
  width: 100%;
  height: 100%;
  max-width: none;
  scale: 1 -1;
}

.hero__shape--mobile {
  display: none;
}

.hero__pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 56.667%;
  height: 100%;
  -webkit-mask: url("assets/pattern-mask.svg") 0 0 / 100% 100% no-repeat;
  mask: url("assets/pattern-mask.svg") 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}

.hero__pattern img {
  position: absolute;
  left: -10.138%;
  width: 117.487%;
  height: 10.128%;
  max-width: none;
}

.hero__pattern img:nth-child(1)  { top: 0; }
.hero__pattern img:nth-child(2)  { top: 9.986%; }
.hero__pattern img:nth-child(3)  { top: 19.972%; }
.hero__pattern img:nth-child(4)  { top: 29.957%; }
.hero__pattern img:nth-child(5)  { top: 39.943%; }
.hero__pattern img:nth-child(6)  { top: 49.929%; }
.hero__pattern img:nth-child(7)  { top: 59.915%; }
.hero__pattern img:nth-child(8)  { top: 69.9%; }
.hero__pattern img:nth-child(9)  { top: 79.886%; }
.hero__pattern img:nth-child(10) { top: 89.872%; }

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: calc(var(--gutter) + 34.375%);
  height: 100%;
  padding-left: var(--gutter);
  color: var(--white);
}

.hero__content p {
  margin-top: clamp(24px, 2.5vw, 48px);
  font-size: var(--fs-s1);
  font-weight: 500;
}

.hero__content .btn {
  margin-top: clamp(32px, 3.125vw, 60px);
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  padding: var(--section) 0 calc(var(--section) + 2.7px);
  text-align: center;
}

.about .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-p2);
  opacity: 0.6;
}

.about h2 {
  margin-top: 24px;
}

.about__lead {
  max-width: 1148px;
  margin-top: clamp(32px, 3.146vw, 60.4px);
  font-size: var(--fs-s1);
  font-weight: 500;
}

.about__text {
  max-width: 940px;
  margin-top: 32px;
  font-size: var(--fs-p1);
  opacity: 0.8;
}

/* ==========================================================================
   North Star
   ========================================================================== */
.north-star {
  padding: var(--section) 0;
  background: var(--lite);
}

.north-star .container {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 3.125vw, 60px);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.split__media {
  aspect-ratio: 888 / 640;
  border-radius: 16px;
  overflow: hidden;
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.split__body--inset {
  padding-left: clamp(0px, 8.125vw, 156px);
}

.split__body p {
  margin-top: 32px;
  font-size: var(--fs-p1);
}

.split__body h2 + p {
  margin-top: clamp(32px, 2.52vw, 48.4px);
}

.split__body--inset p {
  opacity: 0.8;
}

.split__body .btn {
  margin-top: 48px;
}

/* ==========================================================================
   Roles
   ========================================================================== */
.roles {
  padding: var(--section) 0;
}

.roles h2 {
  text-align: center;
}

.roles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: clamp(32px, 3.146vw, 60.4px);
}

.role-card {
  min-height: clamp(260px, 16.25vw, 312px);
  padding: clamp(32px, 3.125vw, 60px) clamp(24px, 2.5vw, 48px);
  border-radius: 16px;
  background: var(--lite);
}

.role-card__label {
  font-size: var(--fs-p2);
  font-weight: 500;
  opacity: 0.48;
}

.role-card h3 {
  margin-top: clamp(28px, 2.45vw, 47px);
}

.role-card__text {
  max-width: 476px;
  margin-top: 28px;
  font-size: var(--fs-p1);
  color: rgba(10, 10, 10, 0.72);
}

/* ==========================================================================
   Clinical Trial
   ========================================================================== */
.trial {
  position: relative;
  aspect-ratio: 1800 / 840;
  border-radius: 24px;
  overflow: hidden;
  background: var(--gradient-2);
}

.trial__photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 66.667%;
  height: 100%;
  overflow: hidden;
}

.trial__photo img {
  position: absolute;
  top: -3.44%;
  left: -16.88%;
  width: 127.25%;
  height: 121.19%;
  max-width: none;
}

.trial__shape {
  position: absolute;
  top: 0;
  right: 0;
  width: 56.667%;
  height: 100%;
}

.trial__shape img {
  width: 100%;
  height: 100%;
  max-width: none;
  rotate: 180deg;
}

.trial__shape--mobile {
  display: none;
}

.trial__content {
  position: absolute;
  top: 0;
  left: 64.444%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 28.667%;
  height: 100%;
  color: var(--white);
}

.trial__content p {
  max-width: 480px;
  margin-top: clamp(24px, 2.365vw, 45.4px);
  font-size: var(--fs-p1);
}

.trial__content .btn {
  margin-top: clamp(32px, 3.266vw, 62.7px);
}

/* ==========================================================================
   Pipeline
   ========================================================================== */
.pipeline {
  padding: var(--section) 0;
  text-align: center;
}

.pipeline__sub {
  margin-top: clamp(28px, 2.52vw, 48.4px);
  font-size: var(--fs-s1);
  font-weight: 500;
  opacity: 0.6;
}

.table-scroll {
  margin-top: clamp(32px, 3.125vw, 60px);
  overflow-x: auto;
}

.pipeline-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--fs-p1);
  text-align: left;
  white-space: nowrap;
}

.pipeline-table th,
.pipeline-table td {
  padding: 0 24px 0 0;
  vertical-align: middle;
}

.pipeline-table th:first-child,
.pipeline-table td:first-child {
  padding-left: 24px;
}

.pipeline-table th {
  height: 88px;
  background: var(--lite);
  font-weight: 500;
}

.pipeline-table th:first-child { border-radius: 8px 0 0 8px; }
.pipeline-table th:last-child  { border-radius: 0 8px 8px 0; }

.pipeline-table td {
  height: 104px;
  background: url("assets/divider-h.svg") left bottom / 100% 1px no-repeat;
}

.phases {
  --phase: clamp(44px, 2.917vw, 56px);
  display: flex;
  align-items: center;
}

.phase {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: var(--phase);
  height: var(--phase);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

.phase img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.phase span {
  position: relative;
}

.phase.is-active {
  color: var(--white);
}

/* Tabbed card view (built by script.js, shown on small screens) */
.pipeline-mobile {
  display: none;
  text-align: left;
}

.pipeline-tabs {
  display: flex;
  gap: 40px;
  padding-bottom: 20px;
  background: url("assets/divider-h.svg") left bottom / 100% 1px no-repeat;
  overflow-x: auto;
  scrollbar-width: none;
}

.pipeline-tabs button {
  position: relative;
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  line-height: 1.5;
  white-space: nowrap;
  opacity: 0.6;
  cursor: pointer;
}

.pipeline-tabs button[aria-selected="true"] {
  font-weight: 600;
  opacity: 1;
}

.pipeline-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -20.5px;
  left: 0;
  height: 2px;
  background: var(--black);
}

.pipeline-card {
  margin-top: 23.5px;
  padding: 0 24px 7px;
  border-radius: 8px;
  background: var(--lite);
}

.pipeline-card[hidden] {
  display: none;
}

.pipeline-card__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15.5px;
  padding: 23.75px 0;
}

.pipeline-card__row + .pipeline-card__row {
  background: url("assets/divider-h.svg") left top / 100% 1px no-repeat;
}

.pipeline-card__label {
  font-weight: 500;
  line-height: 1.4;
}

.pipeline-card__value {
  opacity: 0.8;
}

.pipeline__note {
  margin-top: clamp(32px, 3.125vw, 60px);
  font-weight: 600;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--black);
  color: var(--white);
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 60px var(--gutter) 80px;
}

.footer__legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 40px;
  font-weight: 500;
}

.footer__contact {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer__contact p {
  white-space: nowrap;
}

.footer__contact p:first-child {
  font-weight: 400;
}

.footer__contact img {
  flex: none;
}

.footer__legal strong {
  font-weight: 700;
}

.footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 48px;
  margin-top: 40px;
  font-weight: 500;
  line-height: 1;
  text-align: right;
  text-transform: uppercase;
}

.footer__links a {
  display: block;
}

.footer a:hover,
.footer a:focus-visible {
  color: #db5335;
}

/* ==========================================================================
   Small screens (mobile design, 430px frame)
   ========================================================================== */
@media (max-width: 1023px) {
  :root {
    --fs-h1: 40px;
    --fs-h2: 32px;
    --fs-s1: 18px;
    --fs-p1: 16px;
    --fs-p2: 16px;
    --gutter: 24px;
    --section: 60px;
  }

  /* Header */
  :root {
    --header-h: 92px;
    --header-stuck-h: 68px;
  }

  .header .logo {
    scale: 0.75;
  }

  .header.is-stuck .logo {
    scale: 0.6;
  }

  .nav-toggle {
    display: flex;
  }

  /* Dropdown: slides open from under the bar, links fade up one after another */
  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px var(--gutter) 32px;
    border-top: 1px solid var(--border);
    background: var(--white);
    box-shadow: 0 16px 32px rgba(10, 10, 10, 0.08);
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    visibility: hidden;
    /* delays apply while closing: the panel slides shut first, then fades and hides */
    transition: clip-path 0.45s var(--ease), opacity 0.25s ease 0.2s, visibility 0s linear 0.45s;
  }

  .nav.is-open {
    clip-path: inset(0 0 -48px 0);
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  .nav__links li,
  .nav__contact {
    opacity: 0;
    translate: 0 -8px;
    transition: opacity 0.3s ease, translate 0.3s ease;
  }

  .nav.is-open .nav__links li,
  .nav.is-open .nav__contact {
    opacity: 1;
    translate: 0 0;
  }

  .nav.is-open .nav__links li:nth-child(1) { transition-delay: 0.08s; }
  .nav.is-open .nav__links li:nth-child(2) { transition-delay: 0.13s; }
  .nav.is-open .nav__links li:nth-child(3) { transition-delay: 0.18s; }
  .nav.is-open .nav__links li:nth-child(4) { transition-delay: 0.23s; }
  .nav.is-open .nav__contact { transition-delay: 0.28s; }

  .nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  /* Hero */
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 840px;
    padding: 0 var(--gutter) 20px;
  }

  .hero__photo {
    width: 100%;
  }

  .hero__photo img {
    top: -76.5px;
    left: max(100% - 1259.6px, 50% - 750.5px);
    width: 1259.6px;
    height: 840px;
  }

  .hero__shape--desktop {
    display: none;
  }

  .hero__shape--mobile {
    display: block;
    top: auto;
    bottom: 0;
    width: calc(100% + 2px);
    height: 480px;
    container-type: size;
  }

  .hero__shape--mobile img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100cqh;
    height: 100cqw;
    translate: -50% -50%;
    rotate: -90deg;
    scale: none;
  }

  .hero__pattern {
    top: 373px;
    width: 100%;
    height: 467px;
    /* same fade as the design mask, which is rotated to run bottom to top */
    -webkit-mask-image: linear-gradient(to top, #000, transparent);
    mask-image: linear-gradient(to top, #000, transparent);
  }

  .hero__pattern img {
    left: -20.698%;
    width: 141.658%;
  }

  .hero__content {
    width: 100%;
    max-width: 620px;
    height: auto;
    padding-left: 0;
  }

  .hero__content h1 {
    max-width: 334px;
  }

  .hero__content p {
    margin-top: 31.6px;
    font-size: 16px;
    line-height: 1.4;
  }

  .hero__content .btn {
    justify-content: space-between;
    width: 100%;
    margin-top: 38px;
  }

  /* About */
  .about {
    padding-bottom: 59.5px;
  }

  .about h2 {
    margin-top: 16px;
  }

  .about__lead {
    margin-top: 33px;
  }

  .about__text {
    margin-top: 24px;
  }

  /* North Star */
  .north-star .container {
    gap: 59.5px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split + .split {
    gap: 48px;
  }

  .split + .split .split__media {
    order: -1;
  }

  .split__media {
    height: 280px;
    aspect-ratio: auto;
  }

  .split__body--inset {
    padding-left: 0;
  }

  .split__body p,
  .split__body h2 {
    max-width: none;
  }

  .split__body p {
    margin-top: 23.5px;
  }

  .split__body h2 + p {
    margin-top: 32px;
  }

  .split__body .btn {
    margin-top: 39.5px;
  }

  .north-star {
    padding-bottom: 63px;
  }

  .text-gradient--bold {
    font-weight: 600;
  }

  .text-gradient__plain {
    display: inline-block;
    background-image: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 400;
  }

  /* Roles */
  .roles__grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .role-card {
    min-height: 280px;
    padding: 40px 24px;
  }

  .role-card__label {
    line-height: 1.4;
  }

  .role-card h3 {
    margin-top: 47.5px;
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 500;
    font-variation-settings: normal;
    line-height: 1.5;
  }

  .role-card__text {
    max-width: none;
    margin-top: 23.8px;
    font-size: 18px;
  }

  /* Clinical Trial */
  .trial-wrap .container {
    padding: 0;
  }

  .trial {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 905px;
    aspect-ratio: auto;
    padding: 0 var(--gutter) 69px;
    border-radius: 0;
  }

  .trial__photo {
    width: 100%;
    height: 580px;
  }

  .trial__photo img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .trial__shape--desktop {
    display: none;
  }

  .trial__shape--mobile {
    display: block;
    top: auto;
    bottom: 0;
    width: 100%;
    height: 525px;
    container-type: size;
  }

  .trial__shape--mobile img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100cqh;
    height: 100cqw;
    translate: -50% -50%;
    rotate: -90deg;
    scale: 1 -1;
  }

  .trial__content {
    position: relative;
    left: auto;
    width: 100%;
    height: auto;
  }

  .trial__content h2 {
    max-width: 322px;
    font-size: 40px;
  }

  .trial__content p {
    max-width: 382px;
    margin-top: 31.6px;
  }

  .trial__content .btn {
    margin-top: 39.5px;
  }

  /* Pipeline */
  .pipeline {
    padding: 63px 0 59.5px;
  }

  .pipeline h2 {
    max-width: 302px;
    margin: 0 auto;
  }

  .pipeline__sub {
    margin-top: 24px;
  }

  .pipeline.has-tabs .table-scroll {
    display: none;
  }

  .pipeline.has-tabs .pipeline-mobile {
    display: block;
    margin-top: 48px;
  }

  .phases {
    --phase: 48px;
  }

  .phase {
    font-size: 12px;
  }

  .pipeline-card .phases {
    margin: 0.25px 0;
  }

  .pipeline__note {
    margin-top: 40px;
    line-height: 1.5;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    gap: 0;
    padding: 60px var(--gutter) 80px;
  }

  .footer__legal {
    gap: 24px;
  }

  .footer__contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer__contact img {
    display: none;
  }

  .footer__legal .m-w-374 { max-width: 100%; }
  .footer__legal .m-w-351 { max-width: 100%; }

  /* Links sit above the logo and legal text on mobile */
  .footer__links {
    order: -1;
    align-items: flex-start;
    gap: 24px;
    margin: 0 0 40px;
    text-align: left;
  }
}

/* ==========================================================================
   Leaving-site dialog
   ========================================================================== */
.interstitial {
  width: min(1100px, calc(100% - 48px));
  max-width: none;
  min-height: min(480px, calc(100% - 48px));
  padding: 50px 24px 48px;
  border: 0;
  border-radius: 24px;
  background: var(--white);
  color: var(--black);
  text-align: center;
}

/* The dialog box takes focus on open (see script.js) and needs no ring */
.interstitial:focus {
  outline: none;
}

.interstitial[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.interstitial::backdrop {
  background: rgba(10, 10, 10, 0.48);
}

.interstitial h2 {
  font-size: clamp(28px, 2.083vw, 40px);
}

.interstitial p {
  max-width: 712px;
  margin-top: 40px;
  font-size: var(--fs-p2);
  color: rgba(10, 10, 10, 0.72);
}

.interstitial__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 61px;
}

.interstitial__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: var(--lite);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.35s var(--ease);
}

.interstitial__btn:hover,
.interstitial__btn:focus-visible {
  background: #e6e6e6;
}

.interstitial__btn--dark,
.interstitial__btn--dark:hover,
.interstitial__btn--dark:focus-visible {
  background: var(--black);
  color: var(--white);
}

@media (max-width: 1023px) {
  .interstitial h2 {
    font-size: 32px;
  }

  .interstitial p {
    margin-top: 32px;
  }

  .interstitial__actions {
    margin-top: 40px;
  }
}

@media (max-width: 1023px) {
  .footer__inner {
    padding: 60px var(--gutter) 70px;
  }
}


/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
