/* ==========================================================================
   FINN THERAPEUTICS — LIGHT THEME
   Clean, clinical, confident. Brand ink #061F29 · brand teal #2B7B77.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800&display=swap');

:root {
  --ink:          #061F29;   /* brand ink — headings */
  --ink-soft:     #3A4A52;   /* body text */
  --ink-mute:     #6B7C84;   /* captions */
  --teal:         #2B7B77;   /* brand teal */
  --teal-deep:    #1F5C59;
  --teal-tint:    #EAF2F1;   /* pale teal section band */
  --teal-tint-2:  #F4F8F7;
  --paper:        #FFFFFF;
  --paper-alt:    #F6F9F9;
  --line:         #E2E9E9;
  --line-soft:    #EDF1F1;
  --white:        #FFFFFF;

  --font:         'DM Sans', system-ui, -apple-system, sans-serif;
  --max:          1180px;
  --nav-h:        76px;
  --radius:       14px;
  --radius-sm:    9px;
  --shadow:       0 1px 2px rgba(6,31,41,0.04), 0 8px 30px rgba(6,31,41,0.06);
  --shadow-lg:    0 20px 50px rgba(6,31,41,0.10);
  --t:            0.25s cubic-bezier(0.4,0,0.2,1);
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; font-size: 16px; }
body { font-family: var(--font); background: var(--paper); color: var(--ink-soft); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--teal-deep); }
h1,h2,h3,h4 { color: var(--ink); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
::selection { background: var(--teal); color: #fff; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }
.section-sm { padding: 3.5rem 0; }
.band { background: var(--paper-alt); }
.band-teal { background: var(--teal-tint); }

.eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 28px; font-family: var(--font); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em; border-radius: 999px; cursor: pointer; transition: all var(--t); border: 1.5px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(43,123,119,0.28); }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 1000; background: rgba(255,255,255,0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: all var(--t); }
.nav.scrolled { background: rgba(255,255,255,0.96); border-bottom-color: var(--line); }
.nav-inner { max-width: var(--max); margin: 0 auto; height: 100%; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 11px; }
.nav-logo svg { width: 34px; height: 34px; flex-shrink: 0; }
.nav-logo .name { font-size: 1.18rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.nav-logo .name b { color: var(--teal); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 2.1rem; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.nav-links a:hover { color: var(--teal); }
.nav-links .btn { padding: 9px 20px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--ink); }
@media (max-width: 900px) { .nav-links { display: none; } .nav-toggle { display: block; } }

.mnav { display: none; position: fixed; top: var(--nav-h); inset-inline: 0; bottom: 0; background: #fff; z-index: 999; padding: 2rem; flex-direction: column; gap: 0.5rem; }
.mnav.open { display: flex; }
.mnav a { font-size: 1.4rem; font-weight: 600; color: var(--ink); padding: 0.85rem 0; border-bottom: 1px solid var(--line-soft); }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--nav-h) + 5rem) 0 5rem; position: relative; overflow: hidden; background:
  radial-gradient(ellipse 60% 50% at 85% 10%, rgba(43,123,119,0.08), transparent 60%),
  linear-gradient(180deg, #fff 0%, var(--teal-tint-2) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 15px; border: 1px solid var(--line); background: #fff; border-radius: 999px; margin-bottom: 1.6rem; box-shadow: var(--shadow); }
.hero-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.hero-kicker span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 1.4rem; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-soft); max-width: 560px; line-height: 1.7; margin-bottom: 2.1rem; }
.hero-cta { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.hero-art { position: relative; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; } .hero-art { display: none; } }

/* ---------- Generic ---------- */
.lead { font-size: 1.15rem; color: var(--ink-soft); line-height: 1.75; }
.h-center { text-align: center; max-width: 760px; margin: 0 auto 3.5rem; }
.h-center h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 800; letter-spacing: -0.025em; margin: 0.9rem 0 1rem; }
.h-center p { font-size: 1.08rem; color: var(--ink-soft); }
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.7rem); font-weight: 800; letter-spacing: -0.025em; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; gap: 2rem; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.85rem; transition: all var(--t); }
.card:hover { border-color: rgba(43,123,119,0.4); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card .ic { width: 50px; height: 50px; border-radius: 13px; background: var(--teal-tint); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.card h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 0.6rem; }
.card p { font-size: 0.96rem; color: var(--ink-soft); line-height: 1.7; margin: 0; }

/* ---------- Stat row ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
@media (max-width: 700px){ .stat-row { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; } }
.stat .n { font-size: 2.7rem; font-weight: 800; color: var(--teal); letter-spacing: -0.03em; line-height: 1; }
.stat .l { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.5rem; }

/* ---------- Pipeline strip ---------- */
.pipe { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pipe-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 1rem; padding: 1.15rem 1.6rem; align-items: center; border-top: 1px solid var(--line-soft); font-size: 0.92rem; }
.pipe-row.head { background: var(--teal-tint); border-top: none; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-deep); }
.pipe-row .asset { font-weight: 700; color: var(--ink); }
.bar { height: 8px; border-radius: 5px; background: var(--line); position: relative; overflow: hidden; }
.bar > i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--teal), var(--teal-deep)); border-radius: 5px; }
@media (max-width: 760px){ .pipe-row { grid-template-columns: 1fr 1fr; gap: 0.6rem 1rem; } .pipe-row .hide-sm { display: none; } }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; background: var(--teal-tint); color: var(--teal-deep); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(135deg, var(--teal-deep), var(--teal)); border-radius: 22px; padding: 4rem 3rem; text-align: center; color: #fff; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 0.9rem; }
.cta p { color: rgba(255,255,255,0.9); max-width: 620px; margin: 0 auto 1.9rem; font-size: 1.05rem; }
.cta .btn-primary { background: #fff; color: var(--teal-deep); }
.cta .btn-primary:hover { background: var(--ink); color: #fff; }
.cta .btn-outline { color: #fff; border-color: rgba(255,255,255,0.6); }
.cta .btn-outline:hover { background: #fff; color: var(--teal-deep); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 4rem 0 2rem; }
.footer .name { color: #fff; font-weight: 800; font-size: 1.1rem; }
.footer .name b { color: var(--teal); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
@media (max-width: 860px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.footer h5 { color: #fff; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 700; }
.footer a { color: rgba(255,255,255,0.7); font-size: 0.9rem; display: block; margin-bottom: 0.6rem; }
.footer a:hover { color: var(--teal); }
.footer .desc { font-size: 0.9rem; max-width: 300px; margin-top: 0.9rem; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.5rem; font-size: 0.78rem; color: rgba(255,255,255,0.5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Animated antibody hero background ---------- */
.hero { position: relative; }
.hero .abx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero > .container { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .hero .abx { display: none; } }

/* ---------- Footer social icons ---------- */
.footer .social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer .social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.22); border-radius: 9px; color: rgba(255,255,255,0.82); transition: all var(--t); }
.footer .social a:hover { border-color: var(--teal); background: rgba(43,123,119,0.28); color: #fff; }

/* ---------- Partner logo wall ---------- */
.logo-wall { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.25rem 2.5rem; max-width: 920px; margin: 0 auto; }
.logo-wall .logo { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 0.5rem; }
.logo-wall .logo img { max-height: 52px; max-width: 200px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: all var(--t); }
.logo-wall .logo:hover img { filter: grayscale(0); opacity: 1; }
.logo-wall .logo .logo-name { font-weight: 600; color: var(--ink-soft); font-size: 0.98rem; text-align: center; line-height: 1.25; }
@media (max-width: 640px) { .logo-wall { gap: 1rem 1.5rem; } .logo-wall .logo { height: 46px; } .logo-wall .logo img { max-height: 42px; } }

/* ---------- Mobile refinements (phones ≤ 560px) ---------- */
h1, h2, h3, h4 { overflow-wrap: break-word; word-break: break-word; }
@media (max-width: 560px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 3.75rem 0; }
  .section-sm { padding: 2.5rem 0; }
  .hero { padding: calc(var(--nav-h) + 2.5rem) 0 3.25rem; }
  .hero h1 { font-size: clamp(2rem, 8.6vw, 2.7rem); }
  .hero-cta { display: flex; flex-direction: column; gap: 0.75rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .stat .n { font-size: 2.3rem; }
  .card { padding: 1.6rem 1.4rem; }
  .cta { padding: 2.5rem 1.5rem; border-radius: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .pipe-row { padding: 1rem 1.1rem; }
}
@media (max-width: 380px) {
  .pipe-row { grid-template-columns: 1fr; gap: 0.35rem; }
  .pipe-row.head { display: none; }
}
