/* ============================================================
   Domina Therapeutics — stylesheet
   Palette & motifs derived from the investor deck.
   ============================================================ */

:root {
  /* Brand palette */
  --blue-900: #163a52;
  --blue-700: #1f577d;
  --blue-600: #2f6d95;
  --blue-400: #7fb0cb;
  --blue-200: #c4dbe8;
  --orange-600: #d5822f;
  --orange-400: #ec9d54;
  --orange-200: #f4c79b;
  --green-500: #4c9b57;
  --coral-500: #e46b57;

  /* Neutrals */
  --canvas: #f1eff4;      /* lavender-grey page bg from deck */
  --surface: #ffffff;
  --tint: #eae8f0;
  --ink: #21262e;
  --ink-soft: #55606c;
  --line: #e2dfe9;

  /* Type */
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Structure */
  --maxw: 1160px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -22px rgba(22, 58, 82, .35);
  --shadow-sm: 0 8px 24px -14px rgba(22, 58, 82, .4);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.12; margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- shared type ---------- */
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue-600); margin: 0 0 14px;
}
.section__title {
  font-family: var(--serif); font-weight: 700; color: var(--blue-700);
  font-size: clamp(1.8rem, 3.4vw, 2.9rem); max-width: 20ch; margin-bottom: .5em;
}
.section__lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft);
  max-width: 62ch; margin: 0 0 2.6rem;
}
.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; overflow: hidden; }
.section--tint { background: linear-gradient(180deg, #ecebf2, #f1eff4); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: .8em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease),
    background .25s var(--ease), color .25s var(--ease); white-space: nowrap;
}
.btn--primary { background: var(--blue-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--blue-900); transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.5); color: var(--blue-700); border-color: var(--blue-200); }
.btn--ghost:hover { background: #fff; border-color: var(--blue-400); transform: translateY(-2px); }
.btn--full { width: 100%; }

/* ---------- brand wordmark ---------- */
.brand { display: inline-flex; flex-direction: column; line-height: 1; }
.brand__word {
  font-family: var(--serif); font-weight: 700; font-size: 1.65rem; color: var(--blue-700);
  position: relative; letter-spacing: .2px;
}
.brand__word em { font-style: normal; position: relative; }
.brand__dot {
  position: absolute; width: .34em; height: .34em; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  top: -.02em; left: -.28em;
}
.brand__sub {
  font-family: var(--serif); font-weight: 600; font-size: .74rem; letter-spacing: .16em;
  color: var(--orange-600); margin-top: 2px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(241, 239, 244, .72); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s, box-shadow .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -20px rgba(22,58,82,.6); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-weight: 600; font-size: .98rem; color: var(--ink-soft); transition: color .2s; }
.nav__links a:hover { color: var(--blue-700); }
.nav__cta { color: var(--blue-700); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--blue-700); border-radius: 2px; transition: .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 120px 0 80px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 82% 12%, #e9f1f6 0%, rgba(233,241,246,0) 55%),
    var(--canvas);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: .9; }
.hero__inner { position: relative; z-index: 3; }

/* signature gradient arcs (from deck) */
.hero__arc { position: absolute; border-radius: 50%; z-index: 2; pointer-events: none; filter: blur(.3px); }
.hero__arc--blue {
  width: 780px; height: 780px; top: -300px; left: -260px;
  border: 60px solid transparent;
  background:
    linear-gradient(var(--canvas), var(--canvas)) padding-box,
    conic-gradient(from 200deg, var(--blue-600), var(--blue-200) 40%, transparent 62%) border-box;
  mask: radial-gradient(circle, transparent 58%, #000 58.5%);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 58.5%);
  opacity: .8;
}
.hero__arc--orange {
  width: 620px; height: 620px; bottom: -280px; right: -200px;
  border: 54px solid transparent;
  background:
    linear-gradient(var(--canvas), var(--canvas)) padding-box,
    conic-gradient(from 20deg, var(--orange-600), var(--orange-200) 42%, transparent 60%) border-box;
  mask: radial-gradient(circle, transparent 58%, #000 58.5%);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 58.5%);
  opacity: .75;
}
.eyebrow { position: relative; }
.hero__title {
  font-family: var(--serif); font-weight: 700; color: var(--blue-700);
  font-size: clamp(2.8rem, 7vw, 5.6rem); letter-spacing: -.5px; margin-bottom: .3em;
}
.hero__lede { font-size: clamp(1.15rem, 1.7vw, 1.4rem); color: var(--ink-soft); max-width: 46ch; margin: 0 0 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 3.4rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 40px; margin: 0; }
.hero__stats div { border-left: 3px solid var(--blue-200); padding-left: 16px; }
.hero__stats dt { font-family: var(--serif); font-weight: 700; font-size: 2rem; color: var(--blue-700); }
.hero__stats dd { margin: 2px 0 0; font-size: .92rem; color: var(--ink-soft); max-width: 18ch; }

/* ============================================================
   OPPORTUNITY
   ============================================================ */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 40px; }
.stat-card {
  background: var(--surface); border-radius: var(--radius); padding: 32px 30px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.stat-card__num { font-family: var(--serif); font-weight: 700; font-size: 3rem; color: var(--ink); line-height: 1; }
.stat-card__label { font-weight: 600; color: var(--ink); }
.stat-card__cost { color: var(--blue-600); font-weight: 600; font-size: .95rem; margin-top: 4px; }

.callout {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px; box-shadow: var(--shadow-sm); max-width: 78ch;
}
.callout__mark { flex: 0 0 6px; align-self: stretch; border-radius: 6px; background: linear-gradient(180deg, var(--blue-600), var(--orange-400)); }
.callout p { margin: 0; font-size: 1.08rem; color: var(--ink-soft); }
.callout strong { color: var(--blue-700); }
.callout--solid {
  background: var(--blue-700); border: 0; color: #fff; align-items: center; gap: 22px; margin-top: 30px;
}
.callout--solid p { color: #eaf1f6; font-size: 1.1rem; }

/* ============================================================
   SCIENCE
   ============================================================ */
.two-col { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.two-col__text p { font-size: 1.08rem; color: var(--ink-soft); margin: 0 0 1.2em; }
.two-col__text strong { color: var(--blue-700); }
.science__arc { top: -300px; bottom: auto; left: auto; right: -280px; opacity: .7; }
.pipeline__arc { top: auto; bottom: -320px; left: -280px; right: auto; opacity: .65; }

.neuron-figure { margin: 0; }
.neuron-figure__panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.neuron-panel {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #0d1420; box-shadow: var(--shadow); aspect-ratio: 3 / 4;
}
.neuron-panel .mini-net { position: absolute; inset: 0; width: 100%; height: 100%; }
.neuron-panel figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: #fff; text-align: center;
  padding: 10px; background: linear-gradient(0deg, rgba(0,0,0,.6), transparent);
}
.neuron-panel--patient { outline: 2px solid var(--blue-400); outline-offset: -2px; }

/* ============================================================
   PLATFORM
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-card__no { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--blue-400); }
.step-card h3 { font-size: 1.16rem; color: var(--blue-700); margin: 14px 0 8px; }
.step-card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

.chip {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: .34em .8em; border-radius: 999px; margin-top: 12px;
}
.chip--accent { background: var(--orange-600); color: #fff; position: absolute; top: 22px; right: 22px; margin: 0; }
.chip--check { background: rgba(255,255,255,.16); color: #fff; }

/* ============================================================
   PIPELINE
   ============================================================ */
.pipeline { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px clamp(20px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.pipeline__legend { display: none; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-left: 200px; margin-bottom: 14px; }
.pipeline__legend span { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); text-align: center; }
.pipeline__row { display: grid; grid-template-columns: 190px 1fr 130px; align-items: center; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.pipeline__row:first-of-type { border-top: 0; }
.pipeline__name { font-weight: 700; color: var(--ink); }
.pipeline__track { position: relative; height: 14px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.pipeline__bar { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
  transition: width 1.1s var(--ease); }
.pipeline__bar.is-filled { width: var(--p); }
.pipeline__tag { justify-self: start; font-size: .8rem; font-weight: 700; color: var(--blue-700);
  background: var(--blue-200); padding: .35em .9em; border-radius: 999px; }

.pipeline__more { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 28px; }
.pipeline__more-label { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-900); margin: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.tag-list li { background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  font-weight: 600; font-size: .9rem; padding: .5em 1em; border-radius: 999px; }

/* ============================================================
   TEAM
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease); }
.person:hover { transform: translateY(-5px); }
.person__avatar {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400)); color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 1.4rem; margin-bottom: 18px;
}
.person__avatar::before { content: attr(data-initials); }
.person:nth-child(even) .person__avatar { background: linear-gradient(135deg, var(--orange-600), var(--orange-400)); }
.person__photo {
  width: 92px; height: 92px; border-radius: 50%; object-fit: cover; margin-bottom: 18px;
  background: var(--tint); box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--blue-200);
}
.person:nth-child(even) .person__photo { box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--orange-200); }
.person h3 { font-size: 1.2rem; color: var(--blue-700); }
.person__role { margin: 4px 0 12px; font-weight: 600; color: var(--orange-600); font-size: .95rem; }
.person__bio { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.section--contact { background: linear-gradient(180deg, #ecebf2, #e7eaf0); }
.contact__arc { top: -320px; right: -280px; left: auto; opacity: .55; }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact__email { display: inline-block; margin-top: 18px; font-family: var(--serif); font-weight: 600;
  font-size: 1.3rem; color: var(--blue-700); border-bottom: 2px solid var(--blue-200); padding-bottom: 3px; }
.contact__email:hover { border-color: var(--orange-400); }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.field__opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: .7em .85em; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fbfafd; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(127,176,203,.3); }
.field input.invalid, .field textarea.invalid { border-color: var(--coral-500); }
.form-status { margin: 14px 0 0; font-weight: 600; font-size: .95rem; min-height: 1.2em; }
.form-status.ok { color: var(--green-500); }
.form-status.err { color: var(--coral-500); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--blue-900); color: #cfdce6; padding: 56px 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.brand--footer .brand__word, .brand--footer .brand__sub { color: #fff; }
.brand--footer .brand__sub { color: var(--orange-400); }
.footer__tag { margin: 0; color: #9fb6c6; font-family: var(--serif); font-style: italic; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { font-weight: 600; color: #cfdce6; transition: color .2s; }
.footer__links a:hover { color: #fff; }
.footer__copy { margin: 6px 0 0; font-size: .85rem; color: #7c93a5; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 720px) { .pipeline__legend { display: grid; } }

@media (max-width: 900px) {
  .stat-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .two-col, .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .callout--solid { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(241,239,244,.98); backdrop-filter: blur(12px);
    padding: 8px 24px 20px; border-bottom: 1px solid var(--line);
    transform: translateY(-140%); transition: transform .35s var(--ease); box-shadow: var(--shadow);
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__cta { border: 0 !important; padding: 14px 0; }
  .nav__toggle { display: flex; }
  .stat-grid, .steps, .team-grid { grid-template-columns: 1fr; }
  .neuron-figure__panels { grid-template-columns: 1fr 1fr; }
  .pipeline__row { grid-template-columns: 1fr; gap: 8px; }
  .pipeline__track { order: 3; }
  .hero__stats { gap: 22px; }
  .chip--accent { position: static; display: inline-block; margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pipeline__bar { transition: none; }
}
