/* ==========================================================================
   Fonts (self-hosted, Latin subset; only the weights in use)
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/inter-800.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/roboto-300.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/roboto-400.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/roboto-500.woff2") format("woff2");
}

/* ==========================================================================
   Global
   ========================================================================== */

:root {
  --font-body: "Roboto", sans-serif;
  --font-heading: "Inter", sans-serif;

  --white: #fff;
  --white-50: color-mix(in srgb, var(--white) 50%, transparent);
  --ink: #061f37;
  --blue-dark: #003162;
  --blue-primary: #0f487b;
  --blue-mid: #004d9b;
  --blue: #0053a6;
  --blue-light: #158efa;
  --turquoise: #1cbeca;
  --turquoise-dark: #158e97;
  --green: #89c769;
  --yellow: #ffd100;
  --gray: #adb5bd;
  --gray-50: color-mix(in srgb, var(--gray) 50%, transparent);
  --gray-light: #f5f7f9;
  --gray-pale: #dae2e7;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Any value other than visible keeps body's overflow from being propagated to the viewport */
  overflow: auto;
  font-size: 10px;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  overflow: clip; /* clips the footer mark where it extends past the right and bottom page edges */
  font-family: var(--font-body);
  font-size: 2.6rem;
  font-weight: 300;
  line-height: 1.4;
  color: var(--ink);
}

.main {
  flex-grow: 1;
}

.container {
  width: 100%;
  max-width: 136rem; /* 132rem content + 2 × 2rem padding */
  margin-inline: auto;
  padding-inline: 2rem;
}

@media (min-width: 768px) {
  .container {
    max-width: 142rem; /* 132rem content + 2 × 5rem padding */
    padding-inline: 5rem;
  }
}

h2 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  h2 {
    font-size: 3.5rem;
  }
}

ol ol {
  margin-top: 2rem;
}

ol li {
  margin-bottom: 3rem;
}

ol li ol li {
  margin-bottom: 2rem;
}

/* level 1 */
ol:not(li ol) {
  counter-reset: top;
}

ol:not(li ol) > li {
  counter-increment: top;
  counter-reset: sub;
}

/* level 2 & 3 */
ol ol {
  list-style: none;
  padding-left: 4.5rem;
}

ol ol > li {
  position: relative;
}

ol ol > li::before {
  position: absolute;
  right: 100%;
  padding-right: 0.5em;
}

/* level 2 */
ol ol:not(li li ol) > li {
  counter-increment: sub;
  counter-reset: subsub;
}

ol ol:not(li li ol) > li::before {
  content: counter(top) "." counter(sub) " ";
}

/* level 3 */
ol ol ol > li {
  counter-increment: subsub;
}

ol ol ol > li::before {
  content: counter(top) "." counter(sub) "." counter(subsub) " ";
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
}

.header--scrolled {
  background: var(--ink);
}

.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-block: 2.7rem 2rem;
}

.header--scrolled .header__inner {
  padding-block: 1rem;
}

.header__logo-link {
  display: block;
}

.header__logo {
  display: block;
  width: 17.7rem;
  height: 7rem;
}

.header--scrolled .header__logo {
  width: 8.85rem;
  height: 3.5rem;
}

.header__toggle {
  position: relative;
  width: 4.1rem;
  height: 2.2rem;
  margin: 0 0.1rem 0 0;
  padding: 0;
  border: 0;
  background: none;
}

.header--scrolled .header__toggle {
  width: 2.7333rem;
  height: 1.4667rem;
}

.header__toggle-open {
  display: block;
  width: 100%;
  height: 100%;
}

.header__toggle-close {
  position: absolute;
  top: 0.2rem;
  left: 2.8rem;
  display: none;
  width: 3.15685rem;
  height: 2.97843rem;
}

/* Nav */

.nav {
  display: none;
  flex-basis: 100%;
  margin-top: 7.7rem;
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  margin: 0;
  padding: 0 0 0 3.6rem;
  list-style: none;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
}

.nav__item {
  height: 3.6rem;
}

.nav__link {
  color: var(--white);
  text-decoration: none;
}

/* Open mobile menu */
@media (max-width: 767.98px) {
  html:has(.header--menu-open) {
    overflow: hidden;
  }

  .header--menu-open {
    bottom: 0;
    overflow-y: auto;
    background: linear-gradient(90deg, var(--blue-dark), var(--blue));
  }

  .header--menu-open .header__inner {
    padding-block: 2rem;
  }

  .header--menu-open .header__logo {
    width: 19.6rem;
    height: 7.7rem;
  }

  .header--menu-open .header__toggle {
    top: 0.05rem;
    width: 6.4rem;
    height: 3.4rem;
    margin-right: 0.2rem;
  }

  .header--menu-open .header__toggle-open {
    visibility: hidden;
  }

  .header--menu-open .header__toggle-close,
  .header--menu-open .nav {
    display: block;
  }
}

@media (min-width: 768px) {
  .header__inner {
    flex-wrap: nowrap;
    padding-block: 2rem;
  }

  /* Lets the logo shrink where it would not fit next to the nav (768–785px) */
  .header__logo-link {
    min-width: 0;
    margin-left: -0.5rem;
  }

  .header__logo {
    width: 26.8rem;
    max-width: 100%;
    height: auto;
  }

  .header--scrolled .header__logo {
    width: 15rem;
    height: auto;
  }

  .header__toggle {
    display: none;
  }

  .nav {
    display: block;
    flex-basis: auto;
    margin-top: 0;
  }

  .nav__list {
    flex-direction: row;
    gap: 2rem;
    padding-left: 0;
    font-size: 1.8rem;
  }

  .nav__item {
    height: auto;
  }

  .nav__item + .nav__item::before {
    content: "|" / "";
    margin-right: 2rem;
    color: var(--turquoise);
  }

  .nav__link {
    transition: color 0.3s ease;
  }

  .nav__link:hover,
  .nav__link--active {
    color: var(--turquoise);
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

/* The page-hero (inner pages) reuses the hero's banner image and overlays */
.hero,
.page-hero {
  position: relative;
  isolation: isolate;
}

.hero {
  height: 68.8rem;
  padding-top: 17.2rem;
  color: var(--white);
}

.page-hero {
  height: 19.2rem;
}

.hero__image,
.page-hero__image {
  position: absolute;
  top: -0.2rem;
  left: -90.7rem;
  z-index: -2;
  width: 195rem;
  height: 84.2rem;
  object-fit: cover;
}

.hero::before,
.hero::after,
.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  top: -2.8rem;
  z-index: -1;
  height: 83.7rem;
}

.hero::before,
.page-hero::before {
  left: -12rem;
  width: 46.5rem;
  background: linear-gradient(90deg, var(--blue-dark) 15.929%, rgba(0, 65, 129, 0.54) 53.848%, rgba(0, 83, 166, 0) 86.54%);
  mix-blend-mode: hard-light;
}

.hero::after,
.page-hero::after {
  left: 0;
  width: 40.5rem;
  background: linear-gradient(87.39581269697764deg, rgba(0, 49, 98, 0.9) 32.068%, rgba(0, 65, 129, 0.484) 67.147%, rgba(0, 83, 166, 0) 92.579%);
}

.hero__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
}

.hero__title-intro {
  display: block;
  font-size: 3rem;
  line-height: 1.4;
}

.hero__title-main {
  display: block;
  margin-top: 0.9rem;
  font-size: 8rem;
  line-height: 8rem;
}

/* Below the 498px mobile reference the hero scales as one piece, so the composition
   (image crop, overlays, headline) stays as in Figma: 1 Figma px = 100vw / 498 */
@media (max-width: 497.98px) {
  .hero {
    height: 138.1526vw;
    padding-top: 34.5382vw;
  }

  .hero__image,
  .page-hero__image {
    top: -0.4016vw;
    left: -182.1285vw;
    width: 391.5663vw;
    height: 169.0763vw;
  }

  .hero::before,
  .hero::after,
  .page-hero::before,
  .page-hero::after {
    top: -5.6225vw;
    height: 168.0723vw;
  }

  .hero::before,
  .page-hero::before {
    left: -24.0964vw;
    width: 93.3735vw;
  }

  .hero::after,
  .page-hero::after {
    width: 81.3253vw;
  }

  .hero__title-intro {
    font-size: 6.0241vw;
  }

  .hero__title-main {
    margin-top: 1.8072vw;
    font-size: 16.0643vw;
    line-height: 16.0643vw;
  }
}

@media (min-width: 768px) {
  .hero {
    padding-top: 27.8rem;
  }

  .hero__image,
  .page-hero__image {
    top: -0.3rem;
    left: -1.5rem;
    width: 193.5rem;
    min-width: calc(100% + 1.5rem);
    height: 83.5rem;
  }

  .hero::before,
  .hero::after,
  .page-hero::before,
  .page-hero::after {
    height: 82.8rem;
  }

  .hero::before,
  .page-hero::before {
    left: -0.1rem;
    width: 121.3rem;
  }

  .hero::after,
  .page-hero::after {
    left: -0.1rem;
    width: 121.3rem;
    background: linear-gradient(54.76783308322385deg, rgba(0, 49, 98, 0.9) 31.179%, rgba(0, 65, 129, 0.484) 55.501%, rgba(0, 83, 166, 0) 68.5%);
  }

  .hero__title-main {
    margin-top: -1.2rem;
    font-size: 10.8rem;
    line-height: normal;
  }
}

/* ==========================================================================
   Intro
   ========================================================================== */

/* Positioned so it covers the hero image, which continues under the rounded corner */
.intro {
  position: relative;
  padding: 9.4rem 0 10.6rem;
  border-top-left-radius: 5rem;
  background: var(--white);
}

.intro__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 400;
  line-height: normal;
  color: var(--turquoise);
}

.intro__text {
  margin: 2.9rem 0 0;
}

.intro__graphic {
  display: block;
  width: 35.2rem;
  max-width: 100%;
  height: auto;
  aspect-ratio: 352 / 351;
  margin: 3.14rem auto 0;
}

@media (min-width: 768px) {
  .intro {
    padding: 16.9rem 0 0;
    border-top-left-radius: 11rem;
  }

  .intro__inner {
    display: flex;
    align-items: flex-start;
  }

  .intro__content {
    flex: 0 1 97.7rem;
    margin-bottom: 11.8rem;
  }

  .intro__title {
    font-size: 4.5rem;
  }

  .intro__text {
    margin: 3.2rem -0.7rem 0 0;
  }

  /* Overhangs the grid by up to 11rem, but never into the container side padding */
  .intro__graphic {
    flex: 0 1 44rem;
    min-width: 0;
    aspect-ratio: auto;
    margin: 0 clamp(-11rem, (132rem - 100vw) / 2 + 5rem, 0rem) 0 1.3rem;
  }
}

/* ==========================================================================
   Pipeline
   ========================================================================== */

.pipeline {
  padding: 6.3rem 0 11.875rem;
  border-top-right-radius: 5rem;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue));
  color: var(--white);
}

.pipeline__title {
  margin-left: 0.2rem;
}

.pipeline__text {
  margin: 4rem 0.4rem 0 0.2rem;
  font-weight: 400;
}

.pipeline__chart {
  display: none;
}

/* Mobile program list */

.pipeline__items {
  margin: 8.435rem 0 0;
  padding: 0;
  list-style: none;
}

.pipeline__item {
  position: relative;
  padding-bottom: 3.475rem;
}

.pipeline__item::before,
.pipeline__items::after {
  content: "";
  display: block;
  height: 0.25rem;
  margin: 0 -0.125rem;
  border-radius: 0.125rem;
  background: var(--white);
}

.pipeline__item::before {
  margin-bottom: 3.875rem;
}

.pipeline__item-title {
  margin: 0;
  font: inherit;
}

.pipeline__item-link {
  display: block;
  padding-left: 0.3rem;
  font-size: 2.8rem;
  font-weight: 400;
  line-height: normal;
  color: inherit;
  text-decoration: none;
}

.pipeline__item-star {
  position: absolute;
  top: 4.125rem;
  left: 15.9rem;
  width: 3rem;
  height: 3.1rem;
}

.pipeline__item-molecule {
  margin: 0.2892rem 0 0 0.4rem;
  font-size: 2.2rem;
  font-weight: 400;
  line-height: normal;
}

.pipeline__item-stage {
  position: absolute;
  top: 4.125rem;
  right: 0.4rem;
  margin: 0;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: normal;
}

.pipeline__item-bar {
  display: block;
  height: 2.2rem;
  margin-top: 3.1108rem;
  border-radius: 1.265rem / 1.1rem;
}

.pipeline__item-details {
  margin: 0;
}

.pipeline__item-label {
  margin-top: 3.6rem;
  padding-left: 0.3rem;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: normal;
  color: var(--yellow);
}

.pipeline__item-label--indications {
  margin: 1.975rem -0.025rem 0;
  padding: 1.975rem 0 0 0.325rem;
  border-top: 0.05rem solid var(--white);
}

@media (max-resolution: 1.99dppx) {
  .pipeline__item-label--indications {
    border-color: var(--white-50);
  }
}

.pipeline__item-target {
  margin: 1.1rem 0 0;
  padding-left: 0.3rem;
  font-size: 2.8rem;
  font-weight: 400;
  line-height: normal;
}

.pipeline__item-indication {
  margin: 1.2rem 0 0;
  padding-left: 0.3rem;
  font-size: 2.2rem;
  font-weight: 400;
  line-height: normal;
}

.pipeline__item-label--indications + .pipeline__item-indication {
  margin-top: 1.1rem;
}

.pipeline__item-bar--phase-1a {
  background: var(--blue-light);
}

.pipeline__item-bar--discovery {
  background: var(--turquoise);
}

@media (min-width: 768px) {
  .pipeline {
    padding: 8.2rem 0 17.2rem;
    border-top-right-radius: 11rem;
  }

  .pipeline__inner {
    padding-left: 5.2rem;
  }

  .pipeline__title {
    margin-left: 0;
  }

  .pipeline__text {
    margin: 4rem -0.2rem 0 0;
  }

  .pipeline__items {
    display: none;
  }

  /* Scrolls horizontally only when the viewport is narrower than the 1320px chart */
  .pipeline__chart {
    display: block;
    margin: 3.92rem -0.2rem 0 0;
    overflow-x: auto;
  }

  .pipeline__graphic {
    width: 132rem;
    height: 34.3rem;
    padding-left: 5.5198rem;
  }

  /* Grid lines are collapsed cell borders, centred on the cell boundaries like Figma's strokes */
  .pipeline__table {
    width: 126.4802rem;
    table-layout: fixed;
    border-collapse: collapse;
  }

  .pipeline__table thead,
  .pipeline__table tbody {
    border-bottom: 0.06667rem solid var(--white);
  }

  .pipeline__table tbody td {
    border-left: 0.06667rem solid var(--white);
  }

  @media (max-resolution: 1.99dppx) {
    .pipeline__table thead,
    .pipeline__table tbody,
    .pipeline__table tbody td {
      border-color: var(--white-50);
    }
  }

  /* Line between the two indications of a program (starts at the Indications column) */
  .pipeline__table tbody tr + tr td {
    border-top: 0.06726rem solid var(--white);
  }

  @media (max-resolution: 1.99dppx) {
    .pipeline__table tbody tr + tr td {
      border-color: var(--white-50);
    }
  }

  .pipeline__col--program { width: 16.5304rem; }
  .pipeline__col--target { width: 16.553rem; }
  .pipeline__col--indications { width: 20.3498rem; }
  .pipeline__col--discovery { width: 13.0576rem; }
  .pipeline__col--ind-enabling { width: 14.3652rem; }
  .pipeline__col--phase-1a { width: 14.7465rem; }
  .pipeline__col--phase-1b2 { width: 14.3652rem; }
  .pipeline__col--phase-3 { width: 16.5125rem; }

  .pipeline__row--head { height: 4.032rem; }
  .pipeline__row--cmt2c { height: 7.968rem; }
  .pipeline__row--oab { height: 6.732rem; }
  .pipeline__row--epilepsy { height: 6.668rem; }
  .pipeline__row--cns { height: 7.632rem; }

  .pipeline__table th,
  .pipeline__table td {
    padding: 0;
    font-weight: 400;
    line-height: normal;
    text-align: left;
    vertical-align: top;
  }

  .pipeline__table .pipeline__head {
    padding-top: 0.8rem;
    font-size: 1.6rem;
    font-weight: 500;
    text-align: center;
  }

  .pipeline__table .pipeline__head--program {
    padding-left: 0.1802rem;
    text-align: left;
  }

  /* Centre each label on its Figma text box, which is offset slightly from the column */
  .pipeline__table .pipeline__head--target { padding-left: 0.0466rem; }
  .pipeline__table .pipeline__head--indications { padding-left: 0.0438rem; }
  .pipeline__table .pipeline__head--discovery { padding: 0.9rem 0 0 0.0364rem; }
  .pipeline__table .pipeline__head--ind-enabling { padding-left: 0.0136rem; }
  .pipeline__table .pipeline__head--phase-1a { padding-left: 0.0019rem; }
  .pipeline__table .pipeline__head--phase-1b2 { padding-right: 0.0098rem; }
  .pipeline__table .pipeline__head--phase-3 { padding-right: 1.0875rem; }

  .pipeline__table .pipeline__program {
    padding-left: 0.1313rem;
  }

  .pipeline__row--cmt2c .pipeline__program { padding-top: 3.1887rem; }
  .pipeline__row--epilepsy .pipeline__program { padding-top: 3.568rem; }

  .pipeline__program-link {
    position: relative;
    display: block;
    font-size: 2.4rem;
    color: inherit;
    text-decoration: none;
  }

  .pipeline__program-link:hover {
    opacity: .6;
  }

  .pipeline__star {
    position: absolute;
    left: -5.6511rem;
    width: 3.03167rem;
    height: 3.0249rem;
  }

  .pipeline__row--cmt2c .pipeline__star { top: -0.0486rem; }
  .pipeline__row--epilepsy .pipeline__star { top: -0.9427rem; }

  .pipeline__molecule {
    display: block;
    margin: 0.3793rem 0 0 0.0489rem;
    font-size: 2.2rem;
  }

  .pipeline__table .pipeline__target {
    padding-left: 1.5498rem;
    font-size: 2.2rem;
  }

  .pipeline__row--cmt2c .pipeline__target { padding-top: 6.368rem; }
  .pipeline__row--epilepsy .pipeline__target { padding-top: 5.168rem; }

  /* Right padding reproduces each Figma text box width (17.4rem / 18.6rem) */
  .pipeline__table .pipeline__indication {
    padding: 0 1.853rem 0 1.0968rem;
    font-size: 2rem;
  }

  .pipeline__row--cmt2c .pipeline__indication { padding-top: 2.168rem; }
  .pipeline__row--oab .pipeline__indication { padding-top: 2.6rem; }
  .pipeline__row--epilepsy .pipeline__indication { padding-top: 2.068rem; }
  .pipeline__table .pipeline__row--cns .pipeline__indication { padding: 2.6rem 0.653rem 0 1.0968rem; }

  /* Spans the stage columns from the Discovery cell, above their borders */
  .pipeline__bar {
    position: relative;
    display: block;
    height: 2.1563rem;
    margin-left: 1.1441rem;
    border-radius: 1.08057rem / 1.07816rem;
  }

  .pipeline__row--cmt2c .pipeline__bar { margin-top: 2.8876rem; }
  .pipeline__row--oab .pipeline__bar { margin-top: 2.2rem; }
  .pipeline__row--epilepsy .pipeline__bar { margin-top: 2.1403rem; }
  .pipeline__row--cns .pipeline__bar { margin-top: 2.6388rem; }

  .pipeline__bar--phase-1a {
    width: 39.1183rem;
    background: var(--blue-light);
  }

  .pipeline__bar--discovery {
    width: 10.6422rem;
    background: var(--turquoise);
  }
}

/* Progress lines grow once their content is in view (classes added by main.js) */
@keyframes pipeline-bar {
  from {
    width: 0;
  }
}

.pipeline--animate .pipeline__bar,
.pipeline--animate .pipeline__item-bar {
  animation: pipeline-bar 1s ease-out both paused;
}

.pipeline__chart--visible .pipeline__bar,
.pipeline__item--visible .pipeline__item-bar {
  animation-play-state: running;
}

@media (prefers-reduced-motion: reduce) {
  .pipeline--animate .pipeline__bar,
  .pipeline--animate .pipeline__item-bar {
    animation: none;
  }
}

/* Expanded access policy: native <details>, the height animates where supported */
.pipeline__policy {
  margin-top: 4rem;
  interpolate-size: allow-keywords;
}

.pipeline__policy-toggle {
  display: inline-block;
  font-size: 2rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.pipeline__policy-toggle::-webkit-details-marker {
  display: none;
}

.pipeline__policy-toggle::after {
  content: " +" / "";
}

.pipeline__policy-toggle:hover,
.pipeline__policy[open] .pipeline__policy-toggle {
  color: var(--yellow);
}

.pipeline__policy[open] .pipeline__policy-toggle::after {
  content: " –" / "";
}

.pipeline__policy::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.4s ease, content-visibility 0.4s allow-discrete;
}

.pipeline__policy[open]::details-content {
  block-size: auto;
}

.pipeline__policy-text {
  padding-top: 3rem;
  font-size: 2.2rem;
  font-weight: 400;
}

.pipeline__policy-text p {
  margin: 0;
}

.pipeline__policy-text p + p {
  margin-top: 1.4em;
}

.pipeline__policy-text strong {
  font-weight: 500;
}

/* ==========================================================================
   Divider (line + triangle on a section boundary)
   ========================================================================== */

.divider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.divider::before {
  content: "";
  position: absolute;
  top: -0.025rem;
  left: 2.2rem;
  right: 0;
  height: 1px;
  background: var(--gray);
}

@media (max-resolution: 1.99dppx) {
  .divider::before {
    background-color: var(--gray-50);
  }
}

.divider__triangle {
  position: absolute;
  top: -3.4rem;
  left: 0;
  width: 3.22396rem;
  height: 6.64135rem;
}

.divider--right::before {
  left: 0;
  right: 2.2rem;
}

.divider--right .divider__triangle {
  top: -3.3rem;
  left: auto;
  right: -0.024rem;
}

@media (min-width: 768px) {
  .divider::before {
    left: 3.4rem;
  }

  .divider__triangle {
    top: -5.2rem;
    width: 5rem;
    height: 10.3rem;
  }

  .divider--right {
    top: -0.1rem;
  }

  .divider--right::before {
    left: 0;
    right: 3.8rem;
  }

  .divider--right .divider__triangle {
    top: -5.2rem;
    right: 0;
  }
}

/* ==========================================================================
   About CMT2C
   ========================================================================== */

.about-cmt2c {
  position: relative;
  min-height: 119.4rem;
  padding: 11.4rem 0 10.1rem;
}

.about-cmt2c__title {
  margin-left: 0.2rem;
  color: var(--turquoise);
}

.about-cmt2c__text {
  margin: 3.3rem 0.2rem 0;
}

.about-cmt2c__text p,
.about-star__text p {
  margin: 0;
}

.about-cmt2c__text p + p,
.about-star__text p + p {
  margin-top: 3.64rem;
}

@media (min-width: 768px) {
  .about-cmt2c {
    min-height: 76.1rem;
    padding: 17.6rem 0 13.3rem;
  }

  .about-cmt2c__text {
    margin: 3.9rem -0.2rem 0 0.2rem;
  }
}

/* ==========================================================================
   About STAR-0871
   ========================================================================== */

.about-star {
  position: relative;
  min-height: 194.6rem;
  padding: 11.3rem 0 16.32rem;
  background: linear-gradient(85.6208deg, var(--turquoise-dark) 40.7659%, var(--turquoise) 93.0999%);
  color: var(--white);
}

.about-star__title {
  margin-left: 0.2rem;
  margin-right: -0.3rem;
}

.about-star__text {
  margin: 3.3rem 0.2rem 0;
  font-weight: 400;
}

@media (min-width: 768px) {
  .about-star {
    min-height: 113rem;
    padding: 17.5rem 0 32.1rem;
    background: linear-gradient(62.4844deg, var(--turquoise-dark) 41.5296%, var(--turquoise) 94.844%);
  }

  .about-star__title {
    margin-left: .2rem;
    margin-right: -0.3rem;
  }

  .about-star__text {
    margin: 3.9rem -0.2rem 0 0.2rem;
  }
}

/* ==========================================================================
   Discovery Programs
   ========================================================================== */

/* Overlaps the bottom of About STAR-0871, which shows through the rounded corner */
.discovery {
  position: relative;
  margin-top: -7rem;
  padding: 11.3rem 0 46.8rem;
  border-top-left-radius: 5rem;
  background: linear-gradient(148.5232deg, var(--blue-dark) 20.7873%, var(--blue-primary) 36.5188%, var(--turquoise) 52.1389%, var(--green) 59.3112%, var(--yellow) 66.3578%);
  color: var(--white);
}

.discovery__title {
  margin-left: 0.4rem;
}

.discovery__text {
  margin: 3.2rem 0 0 0.4rem;
  font-weight: 400;
}

@media (min-width: 768px) {
  .discovery {
    margin-top: -15.1rem;
    padding: 12rem 0 16.92rem;
    border-top-left-radius: 11rem;
    background: linear-gradient(90deg, var(--blue-dark) 12.5%, var(--blue-primary) 38.3333%, var(--turquoise) 67.6042%, var(--green) 85.8333%, var(--yellow) 99.0625%);
  }

  .discovery__title {
    margin-left: 0.2rem;
  }

  .discovery__text {
    max-width: 111.4rem;
    margin: 3.9rem 0 0 0.2rem;
  }
}

/* ==========================================================================
   Team
   ========================================================================== */

/* Overlaps the bottom of Discovery Programs, which shows through the rounded corner */
.team {
  position: relative;
  min-height: 209.1rem;
  margin-top: -35.9rem;
  padding: 12rem 0 9.6rem;
  border-top-right-radius: 5rem;
  background: var(--white);
}

.team__title {
  margin-left: 0.4rem;
  color: var(--turquoise);
}

.team__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  margin: 4rem 0 0 0.4rem;
  padding: 0;
  list-style: none;
}

.team__item {
  width: 31.5rem;
  max-width: 100%;
}

.team__card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: center;
  cursor: pointer;
}

.team__portrait {
  position: relative;
  display: block;
  border-radius: 15.5rem;
  box-shadow: 0.3rem 0.3rem 0.4rem 0.4rem var(--gray-pale);
}

.team__portrait--cayce-denton {
  border-radius: 15.55rem;
  box-shadow: 0.3rem 0.3rem 0.4rem 0.3rem var(--gray-pale);
}

.team__portrait--pete-condon {
  border-radius: 15.55rem;
}

.team__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
  outline: 0.1rem solid var(--white);
  outline-offset: -0.1rem;
}

.team__bio-link {
  position: absolute;
  top: 14.4rem;
  left: 0;
  z-index: 1;
  width: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--white);
}

/* Hover state overlay (Figma "Hover State") */
.team__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--turquoise-dark), var(--turquoise));
  box-shadow: inherit;
  outline: 0.1rem solid var(--white);
  outline-offset: -0.1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team__card:hover .team__portrait::after,
.team__card:focus-visible .team__portrait::after {
  opacity: 0.9;
}

.team__card:hover .team__bio-link,
.team__card:focus-visible .team__bio-link {
  opacity: 1;
}

.team__label {
  display: block;
  min-height: 9.4rem;
  margin-top: 2rem;
  font-size: 2rem;
  line-height: 1.4;
}

.team__label--compact {
  min-height: 5.7rem;
}

.team__name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--turquoise);
}

.team__degree,
.bio__degree {
  text-transform: none;
}

.team__role {
  display: block;
}

@media (min-width: 768px) {
  .team {
    min-height: 85.7rem;
    margin-top: -6.6rem;
    padding: 17.6rem 0 14.1rem;
    border-top-right-radius: 11rem;
  }

  .team__inner {
    padding-left: 5.2rem;
  }

  .team__title {
    margin-left: 0;
  }

  .team__list {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    margin: 3.9rem -0.2rem 0 0;
  }

  .team__item {
    flex: 0 1 31.5rem;
  }

  .team__label {
    margin: 4.3rem 0.05rem 0 -0.05rem;
  }
}

/* ==========================================================================
   Bio popup
   ========================================================================== */

html:has(.bio[open]) {
  overflow: hidden;
}

.bio {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 5.1rem 0 5.74rem;
  border: 0;
  background: linear-gradient(90deg, var(--blue-dark) 0%, var(--blue-mid) 57.6945%, var(--blue) 83.1756%);
  color: var(--white);
  overflow-y: auto;
}

.bio::backdrop {
  background: rgb(0 0 0 / 0.5);
}

.bio__person {
  width: 31.5rem;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

.bio__portrait {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 15.5rem;
  outline: 0.1rem solid var(--white);
  outline-offset: -0.1rem;
  box-shadow: 0.3rem 0.3rem 0.4rem 0.4rem var(--gray-pale);
}

.bio__label {
  margin: 4rem 0 0;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.4;
}

.bio__name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--yellow);
}

.bio__role {
  display: block;
}

.bio__text {
  margin: 6.7rem 0 0 0.2rem;
  font-weight: 400;
  text-align: center;
}

.bio__close {
  position: absolute;
  top: 2.4rem;
  right: 2.5rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.bio__close img {
  display: block;
}

@media (min-width: 768px) {
  .bio {
    height: auto;
    min-height: min(80.4rem, 100%);
    margin: auto 0;
    padding: 19.2rem 0 19rem;
    background: linear-gradient(90deg, var(--blue-dark) 0%, #00458a 29.8088%, var(--blue) 76.9248%);
  }

  .bio__inner {
    display: flex;
    align-items: flex-start;
  }

  .bio__person {
    flex: none;
    margin: 0;
  }

  .bio__label {
    margin-top: 5.1rem;
  }

  .bio__text {
    flex: 0 1 90.8rem;
    margin: 0.3rem -1.1rem 0 10.8rem;
    text-align: left;
  }

  .bio__close {
    top: 5.9rem;
    right: 7.1rem;
  }
}

/* ==========================================================================
   Board of Directors
   ========================================================================== */

/* Overlaps the bottom of Team by 1px, as in Figma */
.board {
  position: relative;
  min-height: 129.9rem;
  padding: 11rem 0 11.4rem;
  background: var(--gray-light);
}

.board__title {
  margin-left: -0.2rem;
  color: var(--turquoise);
}

.board__list {
  display: flex;
  flex-direction: column;
  margin: 4rem 0.1rem 0 -0.2rem;
  padding: 0;
  list-style: none;
  font-size: 2rem;
  line-height: 1.4;
}



/* Spacing between line boxes that reproduces the 498px Figma positions
   (Figma's fixed text boxes are shorter than their text) */
.board__item + .board__item {
  margin-top: 3.3rem;
}

.board__item:nth-child(2) { margin-top: 3.5rem; }
.board__item:nth-child(6) { margin-top: 3.2rem; }
.board__item:nth-child(7) { margin-top: 3.4rem; }

.board__name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  text-transform: uppercase;
  text-wrap: balance;
}

.board__degree {
  text-transform: none;
}

.board__role {
  display: block;
}

@media (min-width: 768px) {
  .board {
    min-height: 96.5rem;
    margin-top: -0.1rem;
    padding: 17.3rem 0 15.9rem;
  }

  .board .divider {
    top: 0.1rem;
  }


  /* Overhangs the grid by up to 3.6rem, but never into the container side padding */
  .board__list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(min-content, 1fr));
    grid-template-rows: minmax(8.7rem, auto) minmax(11.3rem, auto) minmax(16.9rem, auto);
    gap: 8.5rem 1.6rem;
    margin: 4.5rem clamp(-3.6rem, (132rem - 100vw) / 2 + 5rem, 0rem) 0 1.4rem;
  }

  .board__list > .board__item {
    margin: 0;
  }

  .board__item:not(:nth-child(4n)) {
    padding-right: 1rem;
  }
  .board__item:not(:nth-child(4n)) > span {
    max-width: 28.4rem;
  }

  .board__item--narrow {
    max-width: 29.6rem;
  }

  /* Decorative column lines: drawn by the first-row items, spanning the whole grid.
     With no horizontal offset the line starts at its column; the margin sets Figma's offset. */
  .board__item:nth-child(-n + 4)::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    border-left: 0.05rem solid var(--gray);
  }

  @media (max-resolution: 1.99dppx) {
    .board__item:nth-child(-n + 4)::before {
      border-color: var(--gray-50);
    }
  }

  .board__item:nth-child(1)::before { margin-left: -1.325rem; }
  .board__item:nth-child(2)::before { margin-left: -1.575rem; }
  .board__item:nth-child(3)::before { margin-left: -1.575rem; }
  .board__item:nth-child(4)::before { margin-left: -1.575rem; }
}

/* ==========================================================================
   Investors
   ========================================================================== */

.investors {
  position: relative;
  min-height: 143.1rem;
  padding: 12rem 0;
}

.investors .divider--right .divider__triangle {
  top: -3.4rem;
  right: 0;
}

.investors__title {
  margin-left: -0.2rem;
  color: var(--turquoise);
}

.investors__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10rem;
  margin: 4rem 0.1rem 0 -0.2rem;
  padding: 0;
  list-style: none;
}

.investors__logo {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* Mobile sizes from Figma (desktop overrides them in the media query) */
.investors__item--euclidean .investors__logo { width: 27.5rem; aspect-ratio: 275 / 74; }
.investors__item--canaan .investors__logo { width: 27.5rem; aspect-ratio: 275 / 74; }
.investors__item--deerfield .investors__logo { width: 27.3rem;}
.investors__item--droia .investors__logo { width: 27.5rem; aspect-ratio: 275 / 131; }
.investors__item--jazz .investors__logo { width: 33.9rem; aspect-ratio: 339 / 56; }
.investors__item--regeneron .investors__logo { width: 30.1rem; aspect-ratio: 301 / 145; }

/* Mobile Figma order (desktop keeps the DOM order) */
.investors__item--euclidean { order: 1; }
.investors__item--canaan { order: 2; }
.investors__item--deerfield { order: 3; }
.investors__item--droia { order: 4; }
.investors__item--jazz { order: 5; }
.investors__item--regeneron { order: 6; }


@media (min-width: 768px) {
  .investors {
    min-height: 78.1rem;
    padding: 11.5rem 0 17.5rem;
  }

  /* Three columns: the first left-aligned, the others centred on Figma's column axes (x 927.5 / 1412) */
  .investors__list {
    display: grid;
    grid-template-columns: minmax(0, 332.75fr) minmax(0, 587.5fr) minmax(0, 381fr);
    align-items: start;
    justify-items: center;
    gap: 7.2rem 0;
    margin: 7.3rem 1.775rem 0 0.1rem;
  }

  .investors__item--regeneron,
  .investors__item--droia {
    justify-self: start;
  }

  .investors__item--deerfield,
  .investors__item--ecor1-capital {
    align-self: center;
  }

  /* Sizes from Figma; Deerfield and Jazz sit 58px / 47px below the second row's top */
  .investors__item--regeneron .investors__logo { width: 29.8rem; aspect-ratio: 298 / 144; }
  .investors__item--euclidean .investors__logo { width: 30.3rem; aspect-ratio: 303 / 81; }
  .investors__item--canaan .investors__logo { width: 29.6rem; aspect-ratio: 296 / 79; }
  .investors__item--droia .investors__logo { width: 29.8rem; aspect-ratio: 298 / 142; }
  .investors__item--deerfield .investors__logo { width:30rem;}
  .investors__item--jazz .investors__logo { width: 38.1rem; aspect-ratio: 381 / 63; margin-top: 4.7rem; }

  .investors .divider--right {
    top: 0;
  }

  .investors .divider--right::before {
    left: -0.2rem;
    right: 0;
  }

  .investors .divider--right .divider__triangle {
    top: -5.2rem;
  }

  .investors__title {
    margin-left: 0.4rem;
  }


  .investors__item {
    order: 0;
  }
}

/* ==========================================================================
   Content page (e.g. Privacy Policy)
   ========================================================================== */

/* Positioned so it covers the page-hero image, which continues under the rounded corner */
.content {
  position: relative;
  padding: 10.9rem 0 14.35rem;
  border-top-left-radius: 5rem;
  background: var(--white);
}

.content__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
  color: var(--turquoise);
}

.content__h2,
body.privacy-policy .content__text h2 {
  font-size: 2.6rem;
  margin-bottom: 2rem;
}


.content__h2:not(:first-child),
body.privacy-policy .content__text h2:not(:first-child) {
  margin-top: 5rem;
}

body.privacy-policy .content__text h2 {
  scroll-margin-top: 80px;
}

.section__header {
  margin: 0 0 4rem;
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
  color: var(--turquoise);
}

.effective-date {
  margin-top: 5rem !important;
}

/* News date under the title of a news page */
.content__date {
  display: block;
  margin-top: 1.6rem;
  font-size: 2rem;
  line-height: normal;
}

.content__text {
  margin-top: 4rem;
}

.content__text p {
  margin: 0;
}

.content__text p + p {
  margin-top: 3.64rem;
}

body.privacy-policy {}

body.privacy-policy .content__text a {
  color: var(--turquoise);
  text-underline-offset: 0.15em;
}

body.privacy-policy .content__text a:hover,
body.privacy-policy .content__text a:focus {
  text-decoration: none;
}

body.privacy-policy .content__text > ul > li {
  margin-bottom: 4rem;
}

body.privacy-policy .content__text > ul.links-list > li {
  margin-bottom: 2rem;
}

body.privacy-policy .content__text ul ul,
body.privacy-policy .content__text ul ol {
  margin-top: 2rem;
}

body.privacy-policy .content__text ol li {
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .content {
    border-top-left-radius: 11rem;
  }

  .content__title {
    font-size: 4rem;
  }

  .content__h2 {
    font-size: 3rem;
  }

  .section__header {
    font-size: 3.5rem;
  }

  .content__text {
    margin-top: 3.9rem;
  }
}

/* Only the Figma-defined state changes animate */
@media (prefers-reduced-motion: reduce) {
  .nav__link,
  .team__portrait::after,
  .team__bio-link,
  .footer__social-icon--hover,
  .pipeline__policy-toggle,
  .pipeline__policy::details-content {
    transition: none;
  }
}

/* ==========================================================================
   News
   ========================================================================== */

.news {
  padding-top: 11.2rem;
  border-top-left-radius: 5rem;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue));
  color: var(--white);
}

/* Above .footer__mark, which overlaps this section */
.news__inner {
  position: relative;
  z-index: 1;
}

.news__title {
}

.news__intro {
  margin: 0 0.1rem 0 0;
  font-weight: 400;
}

.news__list {
  margin: 6.995rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 0.05rem solid var(--white);
}

.news__item {
  border-bottom: 0.05rem solid var(--white);
}

@media (max-resolution: 1.99dppx) {
  .news__list,
  .news__item {
    border-color: var(--white-50);
  }
}

.news__link {
  display: block;
  padding: 3.975rem 0 4.575rem;
  font-size: 3rem;
  font-weight: 400;
  color: inherit;
  text-decoration: none;
}

.news__link:hover {
  color: var(--yellow);
}

.news__date {
  display: block;
  height: 3rem;
  font-family: var(--font-heading);
  line-height: normal;
  text-transform: uppercase;
}

.news__headline {
  margin: 2.5rem 0.58649rem 0 0;
  font: inherit;
}

@media (min-width: 768px) {
  .news {
    padding-top: 17.8rem;
    border-top-left-radius: 11rem;
    background: linear-gradient(90deg, var(--blue-dark) 0%, var(--blue-mid) 57.6945%, var(--blue) 83.1756%);
  }

  .news__title {
    margin-left: 0.2rem;
  }

  .news__intro {
    max-width: 76.2rem;
    margin: 4rem 0 0 0.4rem;
  }

  .news__list {
    margin: 8.3887rem 0 0 -0.2rem;
  }

  .news__link {
    display: flex;
    padding: 4.575rem 0 4.775rem 0.6rem;
  }

  .news__date {
    flex-shrink: 0;
    width: 16rem;
    height: auto;
    font-family: var(--font-body);
    line-height: 1.4;
  }

  .news__headline {
    margin: 0 1.2rem 0 3.3575rem;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top-left-radius: 5rem;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue));
  color: var(--white);
}

.home .footer {
  position: relative;
  border-top-left-radius: 0;
}

.home .footer__mark {
  position: absolute;
  right: 0.3158rem;
  bottom: 7.5rem;
  width: 49.1842rem;
  height: 49.3rem;
  mix-blend-mode: multiply;
}

/* Above .footer__mark */
.home .footer__inner,
.home .footer::after {
  position: relative;
  z-index: 1;
}

.footer::after {
  content: "";
  display: block;
  height: 2.5rem;
  background: linear-gradient(90deg, var(--blue-dark) 0%, var(--blue-primary) 25.002%, var(--turquoise) 50%, var(--green) 75%, var(--yellow) 100%);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-block: 12.3rem 9.5242rem;
}

.home .footer__inner {
  padding-top: 23.575rem;
}

.footer__social {
  display: flex;
  gap: 3.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__social-icon {
  display: block;
  width: 4.9483rem;
  height: auto;
}

.footer__social-link {
  position: relative;
  display: block;
}

/* Yellow hover version, stacked over the default icon */
.footer__social-icon--hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer__social-link:hover .footer__social-icon--hover,
.footer__social-link:focus-visible .footer__social-icon--hover {
  opacity: 1;
}

.footer__address {
  max-width: 34.1rem;
  margin-top: 5.8rem;
  font-style: normal;
  font-weight: 400;
}

.footer__company {
  display: block;
  font-weight: 500;
}

.footer__legal,
.footer__copyright {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

.footer__legal {
  margin-top: 5.68rem;
}

.footer__legal-link {
  color: inherit;
  text-decoration: none;
}

.footer__legal-link:hover {
  color: var(--yellow);
}

.footer__copyright {
  margin: 6.3208rem 0 0;
}

.footer__rights {
  display: block;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .footer {
    border-top-left-radius: 11rem;
  }

  .home .footer {
    border-top-left-radius: 0;
  }

  .footer {
    background: linear-gradient(90deg, var(--blue-dark) 0%, var(--blue-mid) 57.6945%, var(--blue) 83.1756%);
  }

  .home .footer__mark {
    right: -1.2479rem;
    bottom: -2.1498rem;
    width: 86.5957rem;
    height: 86.7997rem;
  }

  .footer::after {
    height: 3.5rem;
  }

  .footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 41.1rem;
    align-items: start;
    row-gap: 3.22rem;
    padding-block: 12.3rem 3.2rem;
  }

  .home .footer__inner {
    padding-top: 30.075rem;
  }

  .footer__social {
    grid-row: 1;
    grid-column: 2;
    justify-self: end;
  }

  .footer__social-icon {
    width: 5.3rem;
  }

  .footer__address {
    max-width: 67.3rem;
    margin-top: 0;
  }

  .footer__legal,
  .footer__copyright {
    margin-top: 0;
    line-height: 1.4;
  }

  .footer__copyright {
    width: 42.3rem;
  }

  .footer__rights {
    display: inline;
    margin-top: 0;
  }
}
