/* SMS Peptides — shared styles
   Palette: navy ink, brand orange, neutrals, and four soft service tints. */
:root {
  --ink: #0F2B44;
  /* brand navy: headings, primary buttons, footer */
  --text: #3D4F60;
  /* body copy */
  --muted: #6B7A89;
  /* secondary text */
  --line: #E3E8EE;
  /* borders, dividers */
  --surface: #F6F8FA;
  /* alternate section background */
  --paper: #FFFFFF;
  --brand-orange: #D46A3A;
  /* large type and decoration only */
  --accent: #A9502A;
  /* deeper orange: readable for small text on white and tints */
  /* Service tints: Discovery, Synthesis, Development, Pre-clinical */
  --blue: #E6EEF7;
  --blue-line: #CFDDED;
  --peach: #FBEAE0;
  --peach-line: #F2D2BF;
  --green: #E4F1EA;
  --green-line: #C9E2D4;
  --lilac: #ECEAF6;
  --lilac-line: #D7D3EC;
  --sand: #F5EFDC;
  --sand-line: #E8DDBC;
  --radius: 14px;
  --max: 1160px;
  --head: "Manrope", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--head);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 64px 0;
}

.alt {
  background: var(--surface);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.lead {
  font-size: 1.2rem;
  color: var(--text);
  max-width: 640px;
}

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}

.section-head p {
  margin-top: 18px;
}

.muted {
  color: var(--muted);
}

.mt-s {
  margin-top: 18px;
}

.mt-m {
  margin-top: 32px;
}

.mt-l {
  margin-top: 56px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: #163B5C;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.arrow {
  transition: transform .2s;
}

.btn:hover .arrow,
.link:hover .arrow {
  transform: translateX(3px);
}

.link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.logo img {
  height: 70px;
  width: auto;
}

.menu {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.menu>li {
  position: relative;
}

.menu a,
.menu summary {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.menu a[aria-current="page"],
.menu details.current summary {
  color: var(--accent);
}

.menu summary {
  list-style: none;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu summary::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: -20px;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: 0 20px 40px -20px rgba(15, 43, 68, .25);
}

.dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
}

.dropdown a:hover {
  background: var(--surface);
}

.nav .btn {
  padding: 11px 20px;
}

.menu a.btn-primary {
  color: #fff;
}

.menu-toggle {
  display: none;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 860px;
}

.page-hero .lead {
  margin-top: 24px;
}

/* Service pages take their service's tint */
.page-hero.tint-blue {
  background: var(--blue);
  border-bottom-color: var(--blue-line);
}

.page-hero.tint-peach {
  background: var(--peach);
  border-bottom-color: var(--peach-line);
}

.page-hero.tint-green {
  background: var(--green);
  border-bottom-color: var(--green-line);
}

.page-hero.tint-lilac {
  background: var(--lilac);
  border-bottom-color: var(--lilac-line);
}

.page-hero.tint-sand {
  background: var(--sand);
  border-bottom-color: var(--sand-line);
}

.crumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--ink);
}

/* Home hero */
.hero {
  padding: 96px 0 0;
}

.hero h1 span {
  color: var(--brand-orange);
}

.hero .lead {
  margin-top: 26px;
}

.tool-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  min-height: 52px;
  margin-top: 28px;
  padding: 7px 14px 7px 7px;
  border: 1px solid #D9D0C3;
  border-radius: 999px;
  background: #FBEAE0;
  color: #48505A;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(67, 55, 42, .08);
  transition: background .2s, border-color .2s, box-shadow .2s;
}

.tool-pill:hover {
  background: #EEE8DF;
  border-color: #C9BDAE;
  box-shadow: 0 3px 10px rgba(67, 55, 42, .12);
}

.tool-pill b {
  flex: 0 0 auto;
  padding: 5px 11px;
  border-radius: 999px;
  background: #B97768;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
}

.tool-pill-text {
  min-width: 0;
}

.tool-pill .arrow {
  flex: 0 0 auto;
  margin-left: auto;
  color: #65707A;
}

.tool-pill:hover .arrow {
  transform: translateX(3px);
}

.hero-image {
  margin-top: 40px;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  background: var(--surface);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.calc-promo {
  padding: 48px 0;
  color: #fff;
  background: #102C4B;
}

.calc-promo .split {
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 88px);
  align-items: center;
}

.calc-promo .eyebrow {
  margin-bottom: 14px;
  color: #F0B393;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.calc-promo h2 {
  color: #fff;
  font-size: clamp(2rem, 3.2vw, 2.7rem);
}

.calc-promo p {
  color: rgba(255, 255, 255, .9);
}

.calc-feats {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.calc-feats li {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 255, 255, .94);
  font-size: 0.92rem;
  line-height: 1.5;
}

.calc-feats li::before {
  content: "✓";
  position: absolute;
  top: 2px;
  left: 3px;
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-orange);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
}

.calc-jump {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 14px;
  background: #Fff;
  color: var(--text);
}

.calc-jump label {
  color: #5D6670;
  font-size: 0.86rem;
  font-weight: 600;
}

.calc-jump label span {
  color: #858B8E;
  font-weight: 400;
}

.calc-jump textarea {
  width: 100%;
  min-height: 92px;
  padding: 12px;
  resize: vertical;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.5;
}

.calc-jump textarea::placeholder {
  color: #858B8E;
  opacity: 1;
}

.calc-jump textarea:focus {
  border-color: #BBC7CD;
  /* outline: 2px solid rgba(89, 119, 133, .2); */
}

.calc-jump .btn {
  justify-self: start;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
}

.calc-jump .btn:hover {
  background: #4F6976;
}

.calc-sample {
  padding: 12px 14px;
  border: 1px solid #E1E3DE;
  border-radius: 9px;
  background: rgba(220, 226, 224, .55);
}

.calc-sample .small {
  margin-bottom: 8px;
  color: #758087;
}

.calc-sample dl {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 12px;
  margin: 0;
}

.calc-sample dl div {
  min-width: 0;
}

.calc-sample dt {
  color: #858B8E;
  font-size: 0.7rem;
}

.calc-sample dd {
  margin: 2px 0 0;
  color: #53636B;
  font-size: 0.9rem;
  font-weight: 700;
}

.calc-jump>.small {
  color: #7A8387;
  font-size: 0.78rem;
}

/* Facts strip */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts.facts-3 {
  grid-template-columns: repeat(3, 1fr);
}

.hero .facts {
  margin-top: 72px;
}

.facts-2 {
  grid-template-columns: 1fr 1fr;
}

.fact {
  padding: 32px 28px;
  border-left: 1px solid var(--line);
}

.fact:first-child {
  border-left: 0;
  padding-left: 0;
}

.fact strong {
  display: block;
  font-family: var(--head);
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.fact.big strong {
  font-size: 2.2rem;
  letter-spacing: -0.03em;
}

.gmp-hero-facts {
  max-width: 760px;
}

.gmp-hero-facts .fact strong {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  white-space: nowrap;
}

.fact span {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Home "About us": text beside a 2 x 2 grid of coloured value tiles */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-grid>* {
  min-width: 0;
}

.value-tiles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.value-tiles li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 8px 24px rgba(15, 43, 68, .06);
}

.value-tiles svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--brand-orange);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 16px;
}

.value-tiles h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.value-tiles p {
  font-size: 0.93rem;
}

/* Layout helpers */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.split-wide {
  grid-template-columns: 1fr 1.4fr;
}

.split-contact {
  grid-template-columns: 1fr 1.3fr;
}

.split>* {
  min-width: 0;
}

.prose p+p {
  margin-top: 18px;
}

.grid {
  display: grid;
  gap: 24px;
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.grid-5 .card {
  padding: 28px 22px;
}

.rows {
  row-gap: 48px;
}

/* Numbered list with rules */
.values {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.values li {
  display: grid;
  grid-template-columns: 48px 1fr;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
}

.values li>span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding-top: 1px;
}

#pipeline .values li {
  grid-template-columns: 64px 1fr;
}

#pipeline .values li>span {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: .1em;
  padding-top: 3px;
}

.values li p {
  color: var(--text);
  font-weight: 400;
  margin-top: 4px;
  font-size: 0.97rem;
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .2s, transform .2s;
  text-decoration: none;
}

a.card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.card p {
  font-size: 0.97rem;
  color: var(--text);
}

.card .grow {
  flex: 1;
}

/* Card colour has a meaning: each service owns one tint (blue Discovery, peach
   Synthesis, green Lead optimisation, lilac Development, sand GMP).
   - The home journey cycles all five, one per step.
   - A service page tints its cards in that service's colour.
   - Everywhere else cards stay white, so colour never becomes wallpaper. */
.journey>.card:nth-child(1) {
  --tint: var(--blue);
  --tint-line: var(--blue-line);
}

.journey>.card:nth-child(2) {
  --tint: var(--peach);
  --tint-line: var(--peach-line);
}

.journey>.card:nth-child(3) {
  --tint: var(--green);
  --tint-line: var(--green-line);
}

.journey>.card:nth-child(4) {
  --tint: var(--lilac);
  --tint-line: var(--lilac-line);
}

.journey>.card:nth-child(5) {
  --tint: var(--sand);
  --tint-line: var(--sand-line);
}

main:has(.page-hero.tint-blue) {
  --tint: var(--blue);
  --tint-line: var(--blue-line);
}

main:has(.page-hero.tint-peach) {
  --tint: var(--peach);
  --tint-line: var(--peach-line);
}

main:has(.page-hero.tint-green) {
  --tint: var(--green);
  --tint-line: var(--green-line);
}

main:has(.page-hero.tint-lilac) {
  --tint: var(--lilac);
  --tint-line: var(--lilac-line);
}

main:has(.page-hero.tint-sand) {
  --tint: var(--sand);
  --tint-line: var(--sand-line);
}

.card {
  background: var(--tint, var(--paper));
  border-color: var(--tint-line, var(--line));
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

a.card:hover {
  box-shadow: 0 10px 28px rgba(15, 43, 68, .08);
  transform: translateY(-2px);
}

.card .tags li {
  background: rgba(255, 255, 255, .7);
  border-color: var(--tint-line, var(--line));
}

a.card:hover {
  border-color: var(--ink);
}

.num {
  font-family: var(--head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

/* Journey label on the home service cards: "01  Target → first binder" */
.stage {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--tint-line, var(--line));
}

.stage b {
  font-family: var(--head);
  font-size: 0.85rem;
  color: var(--accent);
}

.stage span {
  font-family: var(--head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

/* "How we work": icon rows beside a rising scale chart, so it reads differently
   from the journey cards while the bars keep the five step colours */
.how {
  align-items: center;
}

.how .actions {
  flex-wrap: nowrap;
}

.how .actions .btn {
  white-space: nowrap;
}

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
  padding: 0;
  margin: 36px 0 0;
}

.principles li {
  list-style: none;
}

.principles .ico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.principles svg {
  width: 20px;
  height: 20px;
}

.principles h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
}

.principles p {
  font-size: 0.92rem;
  margin: 0;
}

.ladder {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.alt .ladder {
  background: var(--paper);
}

.ladder figcaption {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.ladder ol {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  align-items: end;
  height: 300px;
  padding: 0;
  margin: 24px 0 0;
}

.ladder li {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-width: 0;
}

.ladder li:nth-child(1) {
  --tint: var(--blue);
  --tint-line: var(--blue-line);
}

.ladder li:nth-child(2) {
  --tint: var(--peach);
  --tint-line: var(--peach-line);
}

.ladder li:nth-child(3) {
  --tint: var(--green);
  --tint-line: var(--green-line);
}

.ladder li:nth-child(4) {
  --tint: var(--lilac);
  --tint-line: var(--lilac-line);
}

.ladder li:nth-child(5) {
  --tint: var(--sand);
  --tint-line: var(--sand-line);
}

.ladder .bar {
  height: var(--h);
  min-height: 44px;
  background: linear-gradient(180deg, var(--tint-line), var(--tint) 70%);
  border: 1px solid var(--tint-line);
  border-radius: 10px 10px 4px 4px;
  display: flex;
  justify-content: center;
  padding: 10px 4px 0;
}

.ladder .bar b {
  font-family: var(--head);
  font-size: 0.85rem;
  color: var(--ink);
  text-align: center;
  line-height: 1.2;
}

.ladder li>span {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

@media (max-width: 640px) {
  .principles {
    grid-template-columns: 1fr;
  }

  .ladder {
    padding: 20px 16px;
  }

  .ladder ol {
    height: 240px;
    gap: 6px;
  }

  .ladder .bar b {
    font-size: 0.72rem;
  }

  .ladder li>span {
    font-size: 0.7rem;
  }
}

/* Arrows between the journey cards, only while they sit in one row */
@media (min-width: 1025px) {
  .journey>.card {
    position: relative;
    overflow: visible;
  }

  .journey>.card:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 46px;
    right: -20px;
    z-index: 1;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    line-height: 1;
    background: #fff;
    color: var(--accent);
    border: 1px solid var(--line);
  }
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.tags li {
  list-style: none;
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  background: #fff;
}

.tags.lg li {
  font-size: 0.9rem;
  color: var(--ink);
  padding: 7px 14px;
}

.journey .tags {
  display: grid;
  gap: 0;
  padding-top: 12px;
  border-top: 1px solid var(--tint-line, var(--line));
}

.journey .tags li {
  display: flex;
  align-items: center;
  padding: 5px 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 0.78rem;
  font-weight: 500;
}

.journey .tags li + li {
  border-top: 1px solid rgba(15, 43, 68, .08);
}

/* Plain feature (rule on top) */
.plain {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.plain h3 {
  margin-bottom: 10px;
}

.plain p {
  font-size: 0.97rem;
}

/* Check list */
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.checks li {
  position: relative;
  padding-left: 26px;
  font-size: 0.97rem;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 10px;
  height: 6px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* Status pill */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  margin-top: 24px;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Step cycle */
.cycle {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  counter-reset: step;
}

.cycle.five {
  grid-template-columns: repeat(5, 1fr);
}

.cycle li {
  position: relative;
  padding: 30px 26px 0 0;
  border-top: 2px solid var(--line);
}

.cycle li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -13px;
  left: 0;
  background: var(--bg, var(--paper));
  padding-right: 10px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
}

.alt .cycle li::before {
  background: var(--surface);
}

.cycle h3 {
  margin-bottom: 8px;
}

/* Unit 7: aerial photo with a "coming up here" pin. Move the pin with --x / --y. */
.site-photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(15, 43, 68, .14);
}

.site-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.site-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 22px 14px;
  color: #fff;
  font-size: 0.9rem;
  background: linear-gradient(transparent, rgba(15, 43, 68, .75));
}

.pin {
  --pin-connector-height: clamp(16px, 3vw, 6px);
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--brand-orange);
  border: 3px solid #fff;
  box-shadow: 0 0 0 0 rgba(212, 106, 58, .6);
  animation: pulse 2s infinite;
}

.pin::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 2px;
  height: var(--pin-connector-height);
  margin-left: -1px;
  background: #fff;
}

.pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: #fff;
  border-bottom: 0;
}

.pin-label {
  position: absolute;
  right: -62%;
  bottom: calc(100% + var(--pin-connector-height));
  box-sizing: border-box;
  width: max-content;
  max-width: min(260px, calc(100vw - 80px));
  white-space: normal;
  line-height: 1.25;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 6px 18px rgba(15, 43, 68, .18);
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 16px rgba(212, 106, 58, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(212, 106, 58, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pin {
    animation: none;
  }
}

.photo-card {
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  height: auto;
  object-fit: cover;
}

.photo-card>div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 24px 26px 26px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery figure {
  margin: 0;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 37 / 20;
  height: auto;
  object-fit: cover;
  transition: transform .4s;
}

.gallery figure:hover img {
  transform: scale(1.04);
}

.gallery figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
}

.video {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  box-shadow: 0 18px 50px rgba(15, 43, 68, .18);
}

.video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .85;
  transition: opacity .2s;
}

.video:hover img {
  opacity: 1;
}

.video .play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  background: var(--brand-orange);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.video .play::after {
  content: "";
  position: absolute;
  left: 31px;
  top: 24px;
  border: 14px solid transparent;
  border-left: 22px solid #fff;
  border-right: 0;
}

.video-label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 43, 68, .75);
  color: #fff;
  font-size: 0.82rem;
}

.video.playing iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 860px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pin {
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-width: 2px;
  }

  .pin-label {
    border-radius: 10px;
    font-size: clamp(0.52rem, 2.2vw, 0.62rem);
    padding: 2px 5px;
  }

  .site-photo figcaption {
    font-size: 0.78rem;
    padding: 18px 12px 10px;
  }

  .video .play {
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
  }

  .video .play::after {
    left: 24px;
    top: 18px;
    border-width: 12px 0 12px 18px;
  }
}

@media (max-width: 340px) {
  .pin {
    --pin-connector-height: clamp(8px, 2.5vw, 10px);
  }

  .pin-label {
    font-size: 0.5rem;
    padding: 2px 4px;
  }
}

@media (min-width: 341px) and (max-width: 380px) {
  .pin {
    --pin-connector-height: 12px;
  }
}

/* Peptide science: incretin generations, one dot per receptor targeted */
.gens {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: gen;
}

.gens li {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(15, 43, 68, .05);
}

.gens .dots {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.gens .dots i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
}

.gens .dots i.alt-dot {
  background: var(--brand-orange);
}

.gens b {
  font-family: var(--head);
  font-size: 1.1rem;
  color: var(--ink);
}

.gens span:not(.dots) {
  font-size: 0.9rem;
  color: var(--muted);
}

.gens em {
  font-style: normal;
  margin-top: 10px;
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--peach);
  border-radius: 999px;
  padding: 3px 10px;
}

@media (min-width: 1025px) {
  .gens li:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 24px;
    right: -20px;
    z-index: 1;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    line-height: 1;
    background: var(--paper);
    color: var(--accent);
    border: 1px solid var(--line);
  }
}

/* "New in 2026" milestone callout: navy panel so the news stands out */
.hl {
  color: var(--ink);
  background: linear-gradient(transparent 60%, var(--peach) 60%);
  font-weight: 600;
}

.milestone {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px;
}

.milestone h3 {
  color: #fff;
  font-size: 1.6rem;
  margin: 14px 0 8px;
}

.milestone-head p {
  color: #C9D6E3;
}

.badge-new {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-orange);
  color: #fff;
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.milestone-drugs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.milestone-drugs article {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  padding: 22px;
}

.milestone .who {
  font-size: 0.8rem;
  color: #F2B99C;
  font-weight: 600;
}

.milestone h4 {
  color: #fff;
  font-family: var(--head);
  font-size: 1.2rem;
  margin: 8px 0 6px;
}

.milestone h4 span {
  font-weight: 500;
  color: #C9D6E3;
  font-size: 1rem;
}

.milestone-drugs p {
  color: #C9D6E3;
  font-size: 0.92rem;
}

@media (max-width: 860px) {

  .milestone,
  .milestone-drugs {
    grid-template-columns: 1fr;
  }

  .milestone {
    padding: 24px 20px;
    gap: 20px;
  }
}

/* Why SMS: reason cards with a proof chip, comparison table and mission statement */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

section.numbers {
  padding-top: 0;
}

.reasons .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
}

.reasons .ico svg {
  width: 22px;
  height: 22px;
}

.reasons .card {
  box-shadow: 0 8px 24px rgba(15, 43, 68, .05);
}

.proof {
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--peach);
  border-radius: 8px;
  padding: 6px 10px;
  line-height: 1.4;
}

.compare {
  width: 100%;
  min-width: 620px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
}

.compare th,
.compare td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.compare thead th {
  font-family: var(--head);
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.compare tbody th {
  font-weight: 600;
  color: var(--ink);
}

.compare .us {
  background: var(--blue);
}

.compare thead .us {
  color: var(--ink);
  border-radius: 12px 12px 0 0;
}

.compare tbody tr:last-child .us {
  border-radius: 0 0 12px 12px;
}

.compare .yes,
.compare .part,
.compare .no {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.compare .yes::before,
.compare .part::before,
.compare .no::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.compare .yes::before {
  background: #2E8B57;
}

.compare .part::before {
  background: #E0A43A;
}

.compare .no::before {
  background: #C9D2DB;
}

.compare .us .yes {
  font-weight: 700;
  color: var(--ink);
}

.mission {
  margin: 0 auto;
  max-width: 860px;
  text-align: center;
}

.mission p {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.3;
  color: var(--ink);
  margin: 14px 0 22px;
}

.mission p::before {
  content: "“";
  color: var(--brand-orange);
}

.mission p::after {
  content: "”";
  color: var(--brand-orange);
}

/* Linear vs cyclic peptide sketch */
.ring-figure {
  margin: 32px 0 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ring-figure svg {
  display: block;
  width: 100%;
  height: auto;
}

.ring-figure circle {
  fill: var(--blue);
  stroke: var(--ink);
  stroke-width: 1.5;
}

.ring-figure .ring circle {
  fill: var(--peach);
}

.ring-figure .ring>circle:first-child {
  fill: none;
  stroke: var(--brand-orange);
  stroke-width: 2;
  stroke-dasharray: 4 4;
}

.ring-figure path {
  stroke: var(--ink);
  stroke-width: 1.5;
}

.ring-figure .to {
  stroke: var(--brand-orange);
  stroke-width: 2.5;
}

.ring-figure text {
  font-family: var(--body);
  font-size: 12px;
  fill: var(--muted);
}

/* Home discovery band: the Discovery blue, with the cycle as linked white cards */
.band-blue {
  background: var(--blue);
  border-block: 1px solid var(--blue-line);
}

.cycle.cards {
  gap: 18px;
}

.cycle.cards li {
  background: var(--paper);
  border: 1px solid var(--blue-line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: 0 8px 24px rgba(15, 43, 68, .05);
}

.cycle.cards li::before {
  position: static;
  display: block;
  background: none;
  padding: 0;
  margin-bottom: 14px;
}

.note.loop {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--blue-line);
  border-radius: 999px;
}

.note.loop::before {
  content: "↻";
  font-size: 1.1rem;
  color: var(--accent);
}

@media (min-width: 1025px) {
  .cycle.cards li:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 24px;
    right: -20px;
    z-index: 1;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    line-height: 1;
    background: var(--paper);
    color: var(--accent);
    border: 1px solid var(--blue-line);
  }
}

.cycle p {
  font-size: 0.95rem;
}

.note {
  margin-top: 40px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Roadmap horizons: today → building now → next */
.horizons {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.horizons>li {
  position: relative;
  background: var(--tint);
  border: 1px solid var(--tint-line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.horizons>li:nth-child(1) {
  --tint: var(--green);
  --tint-line: var(--green-line);
}

.horizons>li:nth-child(2) {
  --tint: var(--peach);
  --tint-line: var(--peach-line);
  border: 2px solid var(--brand-orange);
  box-shadow: 0 18px 40px rgba(212, 106, 58, .16);
}

.horizons>li:nth-child(3) {
  --tint: var(--lilac);
  --tint-line: var(--lilac-line);
}

.horizons>li+li::before {
  content: "→";
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--muted);
}

.horizons .status {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--tint-line);
  border-radius: 999px;
  padding: 5px 12px;
}

.horizons .status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.horizons>li:nth-child(1) .status::before {
  background: #2E8B57;
}

.horizons>li:nth-child(2) .status::before {
  background: var(--brand-orange);
  animation: pulse 2s infinite;
}

.horizons h3 {
  margin: 0;
}

.horizons .checks {
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .horizons {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .horizons>li+li::before {
    content: "↓";
    left: 50%;
    top: -30px;
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .horizons .status::before {
    animation: none;
  }
}

/* People */
.person {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.person:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.person img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  padding: 8px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.person .avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.person .avatar {
  display: grid;
  place-items: center;
  font-family: var(--head);
  font-weight: 800;
  font-size: 2.6rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.person .role {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.person h2 {
  font-size: 1.9rem;
  margin: 8px 0 20px;
}

.person .prose {
  max-width: 640px;
}

/* Pipeline */
.stage {
  margin-top: 72px;
}

.stage:first-of-type {
  margin-top: 0;
}

.stage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  padding-bottom: 20px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--ink);
}

.stage-head h2 {
  font-size: 1.6rem;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 12px;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.badge.solid {
  background: var(--ink);
  color: #fff;
}

.badge.dashed {
  border-style: dashed;
  color: var(--muted);
  border-color: var(--muted);
}

.pipe {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.pipe th {
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--line);
}

.pipe td {
  padding: 20px 16px 20px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.pipe td:first-child {
  font-family: var(--head);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.pipe td:nth-child(2) {
  color: var(--ink);
}

.table-scroll {
  overflow-x: auto;
}

.notice {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  background: var(--surface);
  max-width: 860px;
}

.notice h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.notice p {
  font-size: 0.93rem;
}

/* Long-form text (privacy policy) */
.legal-text {
  max-width: 760px;
}

.legal-text h2 {
  font-size: 1.4rem;
  margin: 48px 0 14px;
}

.legal-text h2:first-child {
  margin-top: 0;
}

.legal-text p+p,
.legal-text ul {
  margin-top: 14px;
}

.legal-text ul {
  padding-left: 20px;
}

.legal-text li+li {
  margin-top: 6px;
}

/* Skip link */
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

/* Forms */
.form {
  display: grid;
  gap: 20px;
}

.form .two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.field label .opt {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  width: 100%;
  transition: border-color .2s;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #C9D3DD;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  outline: none;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.form .small {
  font-size: 0.85rem;
  color: var(--muted);
}

.form .hp {
  position: absolute;
  left: -9999px;
}

.form-status {
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
}

.form-status.err {
  border-left-color: var(--accent);
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
}

/* Jobs */
.job {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.job:first-child {
  border-top: 1px solid var(--line);
}

.job .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 6px 0 14px;
}

.job p {
  font-size: 0.97rem;
  max-width: 720px;
}

.job p+p {
  margin-top: 8px;
}

/* Media */
.media {
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
}

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

/* CTA band */
.cta {
  background: var(--ink);
  color: #C9D5E1;
  border-radius: 24px;
  padding: 80px 64px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
  margin-top:20px
}

.cta h2 {
  color: #fff;
}

.cta p {
  margin-top: 18px;
  max-width: 520px;
}

.cta .btn-primary {
  background: #fff;
  color: var(--ink);
}

.cta .btn-primary:hover {
  background: #E9EEF3;
}

.cta-contact {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

.cta-contact a {
  color: #fff;
  text-decoration: none;
}

.cta-contact a:hover {
  text-decoration: underline;
}

.cta-section {
  padding: 0 0 64px;
}

.alt+.cta-section {
  padding-top: 64px;
}

/* Footer */
.site-footer {
  padding: 80px 0 40px;
  background: var(--ink);
  color: #C9D5E1;
  font-size: 0.93rem;
}

.site-footer img {
  filter: brightness(0) invert(1);
}

/* white logo on navy */
.foot {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}

.foot h4 {
  font-size: 0.8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: #fff;
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-footer a {
  text-decoration: none;
  color: #C9D5E1;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer a:focus-visible {
  outline-color: #F0A57F;
}

.foot address {
  font-style: normal;
  color: #9FB2C5;
  margin-top: 18px;
  line-height: 1.7;
}

.legal {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: #9FB2C5;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1024px) {

  .grid-4,
  .cycle,
  .cycle.five {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }

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

  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .facts-2 {
    grid-template-columns: 1fr 1fr;
  }

  .facts-2 .fact:nth-child(2) {
    border-top: 0;
  }

  .fact:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .fact:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }

  .split,
  .split-wide,
  .split-contact,
  .cta {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* in @media (max-width: 1024px) */
  .person {
    grid-template-columns: 260px 1fr;
    gap: 36px;
  }

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

@media (max-width: 860px) {
  .nav {
    height: 76px;
  }

  .logo img {
    height: 56px;
  }

  .menu-toggle {
    display: inline-flex;
    background: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 16px;
    font: inherit;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
  }

  .menu {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 24px;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }

  .menu.open {
    display: flex;
  }

  .menu>li {
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
  }

  .menu>li:last-child {
    border: 0;
    padding-top: 20px;
  }

  .dropdown {
    position: static;
    border: 0;
    box-shadow: none;
    padding: 8px 0 0 8px;
  }

  .pipe thead {
    display: none;
  }

  .pipe tr {
    display: grid;
    grid-template-columns: 1fr;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }

  .pipe td {
    border: 0;
    padding: 2px 0;
  }

  .pipe td:nth-child(3) {
    color: var(--muted);
    font-size: 0.88rem;
  }

  .pipe td:last-child {
    margin-top: 6px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .how .actions {
    flex-wrap: wrap;
  }

  .wrap {
    padding: 0 16px;
  }

  section {
    padding: 48px 0;
  }

  .cta-section {
    padding-bottom: 48px;
  }

  .alt+.cta-section {
    padding-top: 48px;
  }

  .hero,
  .page-hero {
    padding-top: 48px;
  }

  .page-hero {
    padding-bottom: 40px;
  }

  .hero-image {
    aspect-ratio: 2 / 1;
    margin-top: 48px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .cycle,
  .cycle.five,
  .facts,
  .facts.facts-3,
  .foot,
  .form .two,
  .gens {
    grid-template-columns: 1fr;
  }

  .fact {
    border-left: 0;
    padding-left: 0;
  }

  .fact+.fact {
    border-top: 1px solid var(--line);
  }

  .cta {
    padding: 48px 24px;
    border-radius: 18px;
  }

  .person {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .person img {
    width: 220px;
  }

  .person .avatar {
    width: 220px;
  }

  .value-tiles {
    gap: 12px;
  }

  .value-tiles li {
    padding: 20px 16px;
  }

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

  .panel {
    padding: 24px;
  }
}

/* Peptide calculator */
.calc-section {
  padding-top: 0;
}

.calc {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 40px;
  align-items: start;
}

.calc-in {
  background: var(--blue);
  border: 1px solid var(--blue-line);
  border-radius: var(--radius);
  padding: 28px;
}

.calc-in textarea {
  min-height: 150px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .06em;
  word-break: break-all;
}

.form-status:empty {
  display: none;
}

.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--blue-line);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.chip:hover {
  border-color: var(--ink);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.stat>span {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.stat strong {
  font-family: var(--head);
  font-size: 1.35rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.stat em {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--muted);
}

.stat .formula {
  font-size: 1.1rem;
}

.stat.hero-stat {
  background: var(--ink);
  border-color: var(--ink);
}

.stat.hero-stat>span,
.stat.hero-stat em {
  color: #C9D6E3;
}

.stat.hero-stat strong {
  color: #fff;
  font-size: 1.6rem;
}

.stat.pi-stat {
  background: var(--peach);
  border-color: var(--peach-line);
}

.stat.pi-stat strong {
  color: var(--accent);
  font-size: 1.6rem;
}

.complexity {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.score {
  --c: #2E8B57;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 16px 0;
  display: grid;
  place-content: center;
  text-align: center;
  background: radial-gradient(closest-side, #fff 78%, transparent 79%), conic-gradient(var(--c) calc(var(--p) * 1%), var(--line) 0);
}

.score b {
  font-family: var(--head);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--ink);
}

.score span {
  font-size: 0.85rem;
  color: var(--muted);
}

.score.mod {
  --c: #D9A21B;
}

.score.high {
  --c: var(--brand-orange);
}

.score.vhigh {
  --c: #B3261E;
}

.score-panel h3 {
  margin: 0 0 6px;
}

.factors {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.factors li {
  display: grid;
  grid-template-columns: 1fr 1.1fr 56px;
  gap: 14px;
  align-items: center;
}

.factors li div {
  display: flex;
  flex-direction: column;
}

.factors b {
  font-size: 0.95rem;
  color: var(--ink);
}

.factors li div span {
  font-size: 0.82rem;
  color: var(--muted);
}

.factors .bar {
  height: 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.factors .bar i {
  display: block;
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--brand-orange), var(--accent));
  border-radius: 999px;
}

.factors em {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: right;
}

.tool-card {
  background: var(--paper);
}

.tool-card h3 {
  margin: 0;
}

.seqmap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.seqmap .aa {
  width: 26px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

.seqmap .aa.agg,
.key.agg {
  background: var(--peach);
  border-color: var(--brand-orange);
}

.seqmap .aa.flag,
.key.flag {
  box-shadow: inset 0 -3px 0 #B3261E;
}

.seqmap .tick {
  align-self: center;
  font-size: 0.7rem;
  color: var(--muted);
  padding: 0 2px;
}

.key {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  margin-right: 6px;
}

.curve-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

.curve-wrap text {
  font-size: 12px;
  fill: var(--muted);
  font-family: inherit;
}

.curve-wrap .axis {
  stroke: var(--line);
  stroke-width: 1.5;
}

.curve-wrap .ph7 {
  stroke: var(--muted);
  stroke-dasharray: 4 4;
}

.curve-wrap .curve {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
}

.curve-wrap .pi {
  fill: var(--brand-orange);
  stroke: #fff;
  stroke-width: 2;
}

.curve-wrap .pi-label {
  fill: var(--accent);
  font-weight: 700;
  font-size: 13px;
}

.tips {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  font-size: 0.93rem;
}

.tips b {
  color: var(--ink);
}

.mz {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.mz th,
.mz td {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.mz th {
  font-weight: 600;
  color: var(--muted);
}

.mz td {
  text-align: right;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  color: var(--ink);
}

.methods {
  font-size: 0.95rem;
}

@media (max-width: 1024px) {

  .calc,
  .complexity {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {

  .calc-in,
  .complexity {
    padding: 20px;
  }

  .factors li {
    grid-template-columns: 1fr 48px;
  }

  .factors .bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .stat strong,
  .stat.hero-stat strong,
  .stat.pi-stat strong {
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}