/* Albatroz Therapeutics site stylesheet */

/* ------------------------------------------------------------------ fonts */
/* self-hosted, latin and latin-ext subsets; IBM Plex Sans is variable 400-700 */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/poppins-600-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/poppins-600-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy-rgb:    28 36 75;
  --navy:        rgb(var(--navy-rgb));
  --blue:        #17739f;
  --link:        #0024d5;
  --ink:         #54595f;
  --muted:       #666666;
  --rule:        #b3b3b3;
  --paper-rgb:   255 255 255;
  --paper:       rgb(var(--paper-rgb));
  --paper-alt:   #f3f5f8;
  --paper-grey:  #f2f2f2;
  --black:       #000000;
  --edge:        #e6e8ee;
  --field:       #d5d9e2;
  --nav-divider: #eceef3;
  --brand:       #094873;

  --font-head: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  /* type scale */
  --fs-display: 45px;
  --fs-h2:      34px;
  --fs-h3:      26px;
  --fs-h4:      20px;
  --fs-body:    16px;
  --fs-sm:      15px;
  --fs-meta:    13px;

  --wrap: 1360px;
  --gutter: 5vw;
  --header-h: 96px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 .6em;
}
h1, h2 { font-size: var(--fs-display); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }
main a { color: var(--link); }
main a:hover { text-decoration: none; }

/* outbound / new-tab marker */
main a[target="_blank"]::after { content: "\00a0\2197"; font-size: .85em; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--paper);
  padding: .75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--edge); }

.site-header .wrap {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .75rem;
}

.brand img { height: 70px; width: auto; object-fit: contain; }

.nav-toggle {
  display: none;
  background: var(--paper);
  border: 0;
  color: var(--navy);
  font-size: 24px; /* hamburger glyph, not type scale */
  line-height: 1;
  padding: .5rem .65rem;
  cursor: pointer;
}

.nav ul { list-style: none; margin: 0; padding: 0; }

.nav > ul {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav a {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--navy);
  display: block;
  padding: .5rem 0;
}
.nav a:hover, .nav a:focus { color: var(--brand); }
.nav > ul > li > [aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--brand);
}

.has-sub { position: relative; }
.has-sub > a::after { content: " \25be"; font-size: .9em; }

.sub-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--black);
  font-size: 12px; /* chevron glyph, not type scale */
  line-height: 1;
  cursor: pointer;
}
.sub-toggle::before { content: "\25be"; transition: transform .18s ease; }
.sub-toggle[aria-expanded="true"]::before { transform: rotate(180deg); }

.has-sub > ul {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgb(var(--navy-rgb) / .14);
  padding: .5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease;
}
.has-sub > ul[data-open="true"] { opacity: 1; visibility: visible; }
/* no-JS fallback */
html:not(.js) .has-sub:hover > ul,
html:not(.js) .has-sub:focus-within > ul { opacity: 1; visibility: visible; }
.has-sub > ul a { padding: .55rem 1.25rem; white-space: nowrap; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--paper-grey);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  padding: .85rem 1.6rem;
  border: 1px solid var(--navy);
  border-radius: 0;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover, .btn:focus {
  background: rgb(var(--navy-rgb) / .85);
  border-color: transparent;
  color: var(--paper-grey);
}
main a.btn, main a.btn:hover, main a.btn:focus { color: var(--paper-grey); }
/* ghost overrides main a.btn */
.btn + .btn { margin-left: .75rem; }
main a.btn-ghost { color: var(--navy); }
main a.btn-ghost:hover, main a.btn-ghost:focus { color: var(--paper-grey); }

.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover, .btn-ghost:focus { background: var(--navy); color: var(--paper-grey); }

.back { font-size: var(--fs-sm); }

/* ---------------------------------------------------------------- sections */

.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--alt { background: var(--paper-alt); }
.section--tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
main > .section:last-child { padding-bottom: clamp(1rem, 2vw, 1.5rem); }

.eyebrow {
  font-family: var(--font-head);
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 .75rem;
}

.lede { font-size: var(--fs-h4); line-height: 1.6; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split--top { align-items: start; }

.split__media img,
.split__media video { width: 100%; }

/* inline publication citation */
.cite {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.figure-note {
  margin-top: 1rem;
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.video-frame {
  position: relative;
  padding-top: 56.25%;
  background: var(--black);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.1);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: rgb(var(--paper-rgb) / .45);
}
.hero .wrap { position: relative; }
.hero__inner { max-width: 820px; }
.hero h1 { margin-bottom: .5em; }
.hero p { font-size: var(--fs-h4); font-weight: 500; line-height: 1.6; margin-bottom: 2rem; color: var(--ink); }

.page-head {
  padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
  text-align: center;
}
.page-head h1 {
  max-width: 90%;
  margin-inline: auto;
  text-wrap: balance;
}
.page-head .lede {
  margin-top: 1rem;
  text-wrap: balance;
}

/* ---------------------------------------------------------------- cards */

.grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(3, 1fr);
}

/* two-up variant */
.grid--two { grid-template-columns: repeat(2, 1fr); }

.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  height: 100%;
}
.card__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--paper-grey);
  transition: box-shadow .2s ease;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.card__body { padding: 1.25rem 0 0; }
.card__date {
  font-size: var(--fs-meta);
  letter-spacing: .04em;
  color: var(--muted);
  margin: 0 0 .5rem;
}
.card__title {
  font-family: var(--font-head);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
  margin: 0;
  text-wrap: balance;
}
a.card:hover .card__title,
a.card:focus-visible .card__title { color: var(--link); }
a.card:hover .card__media,
a.card:focus-visible .card__media { box-shadow: 0 10px 24px rgb(var(--navy-rgb) / .14); }
a.card:hover .card__media img,
a.card:focus-visible .card__media img { transform: scale(1.04); }

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section__head h2 { font-size: var(--fs-h2); margin: 0; }
.section__head a { font-size: var(--fs-sm); white-space: nowrap; }

/* ---------------------------------------------------------------- team */

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

.person { text-align: center; text-decoration: none; color: inherit; display: block; }
.person img {
  width: 100%;
  max-width: 293px;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: box-shadow .2s ease;
}
.person h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-h3);
  margin: 1rem 0 0;
  color: var(--navy);
}
.person p { font-size: var(--fs-body); margin: 0; color: var(--muted); }
.person:hover h3,
.person:focus-visible h3 { color: var(--link); }
.person:hover img,
.person:focus-visible img { box-shadow: 0 10px 24px rgb(var(--navy-rgb) / .14); }

.bio { max-width: 780px; margin-inline: auto; }
.bio__photo {
  width: 293px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0 auto 1.5rem;
}
.bio h1 { text-align: center; font-size: var(--fs-h2); }
.bio__role {
  text-align: center;
  font-size: var(--fs-h4);
  color: var(--muted);
  margin: -0.4em 0 2rem;
}
.bio__nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-sm);
}
.bio__nav a { text-decoration: none; }

/* ---------------------------------------------------------------- article */

.article { max-width: 820px; margin-inline: auto; }
.article__meta {
  font-size: var(--fs-meta);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 .75rem;
}
.article h1 { font-size: var(--fs-h2); text-wrap: balance; }
.article__hero { max-width: min(420px, 100%); margin: 2rem auto; }
.article__body ul, .article__body ol { padding-left: 1.25rem; }
.article__body li { margin-bottom: .6em; }
.article__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.5rem;
}

.legal { max-width: 900px; margin-inline: auto; }
.legal h2 { font-size: var(--fs-h3); margin-top: 1.8em; }
.legal p, .legal ul { margin-bottom: 1.5em; }

/* ---------------------------------------------------------------- news list */

.news-list { display: grid; }
.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem 0;
  text-decoration: none;
  color: inherit;
}
.news-item__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.news-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.news-item__meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .25rem .75rem;
  font-size: var(--fs-meta);
  letter-spacing: .04em;
  color: var(--muted);
  margin: 0 0 .5rem;
}
.news-item__type {
  color: var(--blue);
  font-weight: 500;
  text-transform: uppercase;
}
.news-item__title {
  font-family: var(--font-head);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
  margin: 0;
}
a.news-item:hover .news-item__title,
a.news-item:focus-visible .news-item__title { color: var(--link); }
a.news-item:hover .news-item__media,
a.news-item:focus-visible .news-item__media { box-shadow: 0 10px 24px rgb(var(--navy-rgb) / .14); }
a.news-item:hover .news-item__media img,
a.news-item:focus-visible .news-item__media img { transform: scale(1.04); }

/* ---------------------------------------------------------------- refs */

.ref-list { display: grid; gap: 1.75rem; }
.ref {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  align-items: center;
}
.ref img {
  width: 100%;
  height: 72px;
  object-fit: contain;
  object-position: left center;
}
.ref h4 { margin: 0 0 .35rem; }
.ref h4 a { text-decoration: none; color: var(--navy); }
.ref h4 a[target="_blank"]::after { content: ""; }
.ref h4 a:hover, .ref h4 a:focus-visible { color: var(--link); text-decoration: underline; }
.ref p { font-size: var(--fs-sm); margin: 0; }

/* ---------------------------------------------------------------- pipeline */

.pipeline-scroll { overflow-x: auto; margin-top: 2rem; }
.pipeline {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  text-align: left;
}
.pipeline th, .pipeline td {
  padding: .9rem 1rem .9rem 0;
  border-bottom: 1px solid var(--edge);
  vertical-align: top;
}
.pipeline thead th {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid var(--navy);
}
.pipeline tbody th {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--navy);
}
.pipeline tbody td { color: var(--ink); }
.pipeline tbody td:first-child { color: var(--muted); }
.pipeline tbody tr:last-child th, .pipeline tbody tr:last-child td { border-bottom: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- contact */

.contact-details { margin: 1.5rem auto 0; max-width: 70ch; }

.contact-details address {
  font-style: normal;
  margin: 1rem 0 1.75rem;
}
.section--flush { padding-top: 0; }
.map-frame {
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* .form: unused */
.form label {
  display: block;
  font-size: var(--fs-meta);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: .35rem;
}
.form input, .form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: .7rem .85rem;
  border: 1px solid var(--field);
  border-radius: 0;
  background: var(--paper);
  margin-bottom: 1.25rem;
}
.form input:focus, .form textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .fine { font-size: var(--fs-meta); margin-top: 1rem; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  padding: 1rem var(--gutter) 1.75rem;
  text-align: center;
}
.footer-row {
  max-width: var(--wrap);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .35rem 1.5rem;
}
.social {
  display: inline-flex;
  gap: 2px;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .2s ease;
  width: 36px;
  height: 36px;
  color: var(--black);
}
.social svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer p { font-size: var(--fs-sm); margin: 0; }
.site-footer .terms {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 400;
  text-decoration: underline;
  color: var(--muted);
  transition: color .2s ease;
}

/* footer hover, matching the nav */
.social a:hover, .social a:focus-visible,
.site-footer .terms:hover, .site-footer .terms:focus-visible { color: var(--brand); }

/* ---------------------------------------------------------------- responsive */

/* tap disclosures where hover is unavailable */
@media (hover: none), (max-width: 1024px) {
  .has-sub { display: flex; flex-wrap: wrap; align-items: center; }
  .has-sub > a { flex: 1 1 auto; }
  .has-sub > a::after { content: ""; }
  .sub-toggle { display: inline-flex; }
}

@media (max-width: 1024px) {
  :root {
    --fs-display: 38px;
    --fs-h2:      30px;
    --fs-h3:      24px;
  }
  .grid, .team-grid { grid-template-columns: repeat(2, 1fr); }

  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    box-shadow: 0 16px 30px rgb(var(--navy-rgb) / .14);
    padding: 1rem var(--gutter) 1.5rem;
    display: none;
  }
  .nav[data-open="true"] {
    display: block;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--nav-divider); }
  .nav a { padding: .85rem 0; }
  .has-sub > ul {
    position: static;
    transform: none;
    flex: 1 0 100%;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding: 0 0 .5rem 1rem;
    display: none;
  }
  .has-sub > ul[data-open="true"] { display: block; }
  html:not(.js) .has-sub > ul { display: block; }

  .site-header .wrap { position: relative; }
}

@media (max-width: 767px) {
  :root {
    --header-h: 78px;
    --fs-display: 28px;
    --fs-h2:      24px;
    --fs-h3:      22px;
    --fs-h4:      18px;
  }
  h1, h2 { line-height: 1.1; }

  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .grid, .team-grid { grid-template-columns: 1fr; }
  .ref { grid-template-columns: 80px 1fr; gap: 1rem; align-items: start; }
  .news-item { grid-template-columns: 80px 1fr; gap: 1rem; padding: 1.25rem 0; align-items: start; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 70vh; }
  .brand img { height: 52px; }
}

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