/* ABBA Therapeutics – static site styles */
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #3f4560;          /* headings, dark buttons */
  --text: #565b72;         /* body copy */
  --muted: #7d8196;
  --teal: #2f9c9e;         /* links, active nav */
  --teal-dark: #23787a;
  --red: #d8392b;          /* accent rule, from logo */
  --amber: #f4b400;        /* pipeline bars */
  --line: #e3e6ee;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --header-h: 84px;
  --wrap: 1180px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
p { margin: 0 0 1.1em; }
strong { color: var(--ink); font-weight: 600; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 40px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 3vw, 44px); }
.nav a {
  color: var(--ink); text-decoration: none; font-size: 1.05rem; letter-spacing: .04em;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.nav a:hover { color: var(--teal); }
.nav a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--teal); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .brand img { height: 32px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff; color: var(--ink); cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(30,35,60,.08);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 16px 16px; }
  .nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; text-align: center;
  background: #3a4a8a url("../img/hero.webp") center / cover no-repeat;
  min-height: min(78vh, 760px);
  display: grid; place-items: center;
  padding: 96px 0;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40,48,100,.10), rgba(40,48,100,.28)); }
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 {
  margin: 0 0 .25em; font-weight: 700; line-height: 1;
  font-size: clamp(3.2rem, 11vw, 8.5rem); letter-spacing: .01em;
  text-shadow: 0 2px 30px rgba(20,25,60,.25);
}
.hero p { font-size: clamp(1.1rem, 2.2vw, 1.6rem); font-weight: 300; letter-spacing: .03em; line-height: 1.7; max-width: 920px; margin: 0 auto 2em; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

.btn {
  display: inline-block; padding: 14px 32px; border-radius: 2px;
  background: var(--ink); color: #fff; text-decoration: none;
  text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; font-weight: 600;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--teal); color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Page header band ---------- */
.page-head {
  color: #fff;
  background: #3a4a8a url("../img/hero.webp") center 40% / cover no-repeat;
  padding: clamp(56px, 9vw, 96px) 0;
}
.page-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.page-head h1 { margin: 0; font-weight: 400; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: .03em; line-height: 1.15; }
.crumbs { font-size: .95rem; opacity: .9; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Sections & typography ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.soft { background: var(--bg-soft); }
.section + .section:not(.soft) { padding-top: 0; }
.soft + .section:not(.soft) { padding-top: clamp(56px, 8vw, 104px); }

h2, h3 { color: var(--ink); line-height: 1.25; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: .04em; margin: 0 0 .5em; }
h2.rule::after { content: ""; display: block; width: 90px; height: 2px; background: var(--red); margin-top: .55em; }
h3 { font-size: 1.3rem; font-weight: 700; margin: 1.6em 0 .5em; }
.lead { font-size: 1.15rem; }
.prose { max-width: 760px; }

/* Split block: image + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.top { align-items: start; }
.split img { width: 100%; border-radius: var(--radius); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Flask list */
.flask-list { list-style: none; padding: 0; margin: 1em 0 0; }
.flask-list li { display: flex; align-items: center; gap: 16px; padding: 6px 0; font-weight: 600; color: var(--ink); font-size: 1.1rem; }
.flask-list svg { flex: none; width: 22px; height: 22px; color: var(--teal); }

/* Sub navigation (in-page) */
.subnav { border-bottom: 1px solid var(--line); background: #fff; }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 28px; flex-wrap: wrap; }
.subnav a { display: inline-block; padding: 16px 0; color: var(--muted); text-decoration: none; font-size: .95rem; letter-spacing: .03em; }
.subnav a:hover { color: var(--teal); }

/* ---------- Home cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px; display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 18px 40px rgba(30,35,60,.08); transform: translateY(-2px); }
.card .icon { width: 48px; height: 48px; color: var(--teal); margin-bottom: 18px; }
.card h2 { font-size: 1.5rem; }
.card p { flex: 1; }
.card .more { font-weight: 600; text-decoration: none; letter-spacing: .04em; }
.card .more::after { content: " →"; }

/* ---------- Pipeline ---------- */
.pipeline-scroll { overflow-x: auto; margin: 1.5em 0 .5em; -webkit-overflow-scrolling: touch; }
.pipeline { min-width: 760px; display: grid; grid-template-columns: 160px repeat(5, 1fr); font-size: .95rem; }
.pipeline .stage {
  background: #fff; color: var(--ink); font-weight: 700; text-align: center; line-height: 1.3;
  padding: 14px 18px 14px 26px; min-height: 64px; display: grid; place-items: center;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%);
  background: #e9edf5; margin-right: -12px;
}
.pipeline .stage:first-of-type { clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); padding-left: 18px; }
.pipeline .corner { }
.pipeline .row-label { padding: 18px 12px 18px 16px; font-weight: 700; color: var(--ink); line-height: 1.3; display: flex; flex-direction: column; justify-content: center; }
.pipeline .row-label small { font-weight: 400; font-size: .9em; }
.pipeline .track {
  grid-column: 2 / span 5; position: relative; display: flex; align-items: center; padding: 14px 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(20% - 2px), #fff calc(20% - 2px) 20%);
}
.pipeline .row-label, .pipeline .track { background-color: #dfe6f1; border-top: 3px solid #fff; }
.pipeline .row-alt { background-color: #cfd9ea; }
.pipeline .bar {
  height: 46px; width: var(--w); background: var(--amber); color: #2b2b2b; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 30px 0 10px; text-align: center; line-height: 1.2;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%);
  white-space: nowrap;
}
.scroll-hint { display: none; font-size: .85rem; color: var(--muted); }
@media (max-width: 820px) { .scroll-hint { display: block; } }

figure { margin: 2em 0; }
figcaption { font-size: .95rem; color: var(--muted); margin-top: 1em; line-height: 1.7; }
.figure-frame { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }

/* ---------- Mission / Vision ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 1em; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }
.duo > div { background: #fff; border-left: 3px solid var(--teal); padding: 24px 28px; border-radius: 0 var(--radius) var(--radius) 0; }
.section.soft .duo > div { background: #fff; }

/* ---------- Supporters ---------- */
.logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 1.5em; }
@media (max-width: 760px) { .logos { grid-template-columns: 1fr; } }
.logos a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 24px;
  text-decoration: none; color: var(--muted); font-size: .9rem; letter-spacing: .05em;
  transition: box-shadow .2s;
}
.logos a:hover { box-shadow: 0 12px 30px rgba(30,35,60,.08); }
.logos img { max-height: 90px; width: auto; }

/* ---------- News ---------- */
.news-list { display: grid; gap: 32px; }
.article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.article h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); letter-spacing: .01em; }
.article .date { display: inline-block; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-bottom: .6em; }
.article details { border-top: 1px solid var(--line); }
.article details:last-of-type { border-bottom: 1px solid var(--line); }
.article summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.article summary::-webkit-details-marker { display: none; }
.article summary::after { content: "+"; color: var(--teal); font-size: 1.3rem; line-height: 1; }
.article details[open] summary::after { content: "–"; }
.article details > div { padding: 0 0 16px; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 1.5em 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { flex: none; width: 22px; height: 22px; color: var(--teal); margin-top: 4px; }
.contact-list a, .contact-list button { color: var(--ink); text-decoration: none; }
.contact-list a:hover, .contact-list button:hover { color: var(--teal); }
.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.address { font-style: normal; }

.cta { text-align: center; }
.cta h2 { margin-bottom: .3em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9cddb; font-size: .95rem; padding: 56px 0 28px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #9fe0e0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h2 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer .sub { padding-left: 14px; opacity: .85; }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-brand img { width: 44px; height: 44px; border-radius: 4px; background: #fff; padding: 3px; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .85rem; opacity: .75; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .nav-toggle, .subnav, .site-footer { display: none; }
  .hero, .page-head { background: none; color: var(--ink); }
}
.prose a, figcaption a, .article a { overflow-wrap: anywhere; }
.site-footer .btn { background: var(--teal); color: #fff; }
.site-footer .btn:hover { background: #fff; color: var(--ink); }
.pipeline .stage { margin-right: 0; }
.logos img { max-height: 110px; }
