/* Ethovoa Sciences
   Static brochure site. No build step, no third party requests. */

:root {
  --paper:      #fafaf8;
  --paper-sunk: #efefec;
  --paper-card: #ffffff;
  --ink:        #16201a;
  --ink-soft:   #38463c;
  --muted:      #5c6660;
  --forest:     #17352a;
  --forest-mid: #2f5745;
  --sage:       #7f9487;
  --sage-ink:   #4f6c56;
  --clay:       #a75435;
  --line:       rgba(23, 53, 42, 0.16);
  --line-soft:  rgba(23, 53, 42, 0.09);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, ui-serif, serif;
  --sans:  ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
           Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:  ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 3px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

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

a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay); }

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--forest);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 200;
  font-size: 14px;
}
.skip:focus { left: 12px; top: 12px; }

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

/* ---------- type ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-ink);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--sage);
  flex: none;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--forest);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.05rem);
  line-height: 1.06;
  margin: 0 0 28px;
}
h2 {
  font-size: clamp(1.95rem, 4.2vw, 3.15rem);
  line-height: 1.1;
  margin: 0 0 24px;
}
h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.25;
  margin: 0 0 12px;
}
em, .em { font-style: italic; color: var(--clay); }

.lede {
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 40ch;
  margin: 0 0 32px;
}
.prose { max-width: 62ch; color: var(--ink-soft); }
.prose p { margin: 0 0 1.15em; }
.small { font-size: 14px; line-height: 1.6; color: var(--muted); }
.tabular { font-variant-numeric: tabular-nums; }

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

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.masthead.is-stuck {
  border-bottom-color: var(--line-soft);
  background: color-mix(in srgb, var(--paper) 96%, transparent);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  text-decoration: none;
  color: var(--forest);
  flex: none;
}
.wordmark__a {
  font-family: var(--serif);
  font-size: 1.42rem;
  letter-spacing: -0.02em;
}
.wordmark__b {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sage-ink);
  transform: translateY(-1px);
}
.wordmark:hover { color: var(--forest); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--clay);
  transition: width 0.25s ease;
}
.nav a:hover::after, .nav a[aria-current="true"]::after { width: 100%; }
.nav a[aria-current="true"] { color: var(--forest); }

.nav__cta {
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px !important;
  color: var(--forest) !important;
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--forest); color: var(--paper) !important; border-color: var(--forest); }

.burger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  color: var(--forest);
  cursor: pointer;
}

@media (max-width: 920px) {
  .nav {
    position: fixed;
    inset: 74px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 17px; }
  .nav a::after { display: none; }
  .nav__cta {
    border: 1px solid var(--forest) !important;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 18px;
    padding: 14px !important;
  }
  .burger { display: block; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 16px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--forest);
  background: var(--forest);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { background: #1a2d1e; color: var(--paper); transform: translateY(-1px); }
.btn--ghost { background: none; color: var(--forest); border-color: var(--line); }
.btn--ghost:hover { background: rgba(36, 59, 41, 0.05); color: var(--forest); border-color: var(--forest); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

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

.hero { padding: clamp(56px, 9vw, 108px) 0 clamp(48px, 7vw, 84px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
}
.hero__note {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
  color: var(--muted);
  max-width: 46ch;
}

.hero__art {
  position: relative;
  background: var(--paper-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px;
  display: grid;
  gap: 22px;
}
.hero__art figure { margin: 0; }
.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-ink);
  font-weight: 600;
}
.hero__species {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.22rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--forest);
  font-weight: 400;
}

/* ---------- chain strip ---------- */

.chain {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper-sunk);
  padding: 26px 0;
}
.chain__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
}
.chain__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-ink);
  margin-right: auto;
}
.chain__step {
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--forest);
}
.chain__step em { font-style: italic; color: var(--forest); }
.chain__arrow { color: var(--sage-ink); flex: none; }

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

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section--sunk { background: var(--paper-sunk); }

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section__count {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--sage-ink);
  flex: none;
  font-variant-numeric: tabular-nums;
}
.section__head > div { max-width: 62ch; }

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--paper-card);
  padding: clamp(26px, 3.4vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step__n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--clay);
  letter-spacing: 0.08em;
}
.step__tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-ink);
}
.step p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.step p em { font-style: italic; color: var(--ink-soft); }
.step__foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- split ---------- */

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }

.origin-card {
  background: var(--paper-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 40px);
  position: sticky;
  top: 110px;
}
@media (max-width: 920px) { .origin-card { position: static; } }
.origin-card__kicker {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-ink);
  margin-bottom: 14px;
}
.origin-card h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 18px; }

.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  font-size: 15.5px;
  color: var(--ink-soft);
  align-items: start;
}
.ticks li::before {
  content: "";
  width: 7px; height: 7px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--sage);
}

/* ---------- person ---------- */

.person {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(22px, 3vw, 34px);
  background: var(--paper-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 40px);
  align-items: start;
}
@media (max-width: 680px) { .person { grid-template-columns: 1fr; } }
.person__sigil {
  width: 76px; height: 76px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--forest);
  background: var(--paper-sunk);
  flex: none;
}
.person__name { font-family: var(--serif); font-size: 1.85rem; color: var(--forest); margin: 0 0 6px; line-height: 1.15; }
.person__role {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-ink);
  margin: 0 0 18px;
}
.person p { margin: 0 0 1em; color: var(--ink-soft); font-size: 15.5px; }
.person p:last-child { margin-bottom: 0; }

.bench {
  margin-top: 28px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.bench h3 { font-size: 1.1rem; margin-bottom: 10px; }
.bench ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.bench li {
  font-size: 15px;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
}
.bench li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 8px; height: 1px;
  background: var(--sage);
}

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

.pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}
@media (max-width: 760px) { .pipeline { grid-template-columns: 1fr; } }
.pill {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--paper-card);
  padding: 20px 22px;
  display: grid;
  gap: 6px;
}
.pill--lead { border-color: var(--forest-mid); background: var(--forest); }
.pill--lead .pill__n { color: rgba(245, 244, 237, 0.55); }
.pill--lead .pill__t { color: var(--paper); }
.pill__n { font-family: var(--mono); font-size: 11.5px; color: var(--clay); letter-spacing: 0.08em; }
.pill__t { font-family: var(--serif); font-size: 1.1rem; color: var(--forest); }

.panel {
  background: var(--paper-card);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--forest-mid);
  border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 40px);
}
.panel__kicker {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-ink);
  margin-bottom: 14px;
}
.panel .stage {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--muted);
}

.disclaimer {
  margin-top: 28px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 78ch;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-direct { display: grid; gap: 18px; }
.contact-direct dl { margin: 0; display: grid; gap: 16px; }
.contact-direct dt {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-ink);
  margin-bottom: 2px;
}
.contact-direct dd { margin: 0; font-size: 16px; }
.contact-direct dd a { font-family: var(--mono); font-size: 14.5px; }

.form {
  background: var(--paper-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(24px, 3.4vw, 36px);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 15.5px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 118px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--forest-mid);
  box-shadow: 0 0 0 3px rgba(60, 90, 66, 0.12);
}
.form .btn-row { margin-top: 6px; }
.form__note { margin: 20px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.form__status {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--forest-mid);
  min-height: 1.4em;
}

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

.foot {
  border-top: 1px solid var(--line);
  background: var(--paper-sunk);
  padding: clamp(44px, 6vw, 72px) 0 32px;
}
.foot__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-soft);
}
.foot__tag { font-family: var(--serif); font-size: 1.05rem; color: var(--ink-soft); margin: 10px 0 0; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot__links a { font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.foot__links a:hover { color: var(--clay); }
.foot__notice {
  margin-top: 30px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 82ch;
}
.foot__bar {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- interior pages ---------- */

.page-head { padding: clamp(52px, 8vw, 96px) 0 clamp(28px, 4vw, 44px); }
.page-body { padding-bottom: clamp(56px, 8vw, 104px); }
.page-body h3 { margin-top: 2.2em; }
.page-body h3:first-child { margin-top: 0; }
.page-body ul { padding-left: 20px; color: var(--ink-soft); }
.page-body li { margin-bottom: 0.5em; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.back:hover { color: var(--clay); }

/* ---------- reveal ---------- */

/* Only hide for animation when JavaScript is actually running. Without the
   .js class the content renders normally, so a blocked script never hides it. */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.is-in { opacity: 1; transform: none; transition: none; }
}

@media print {
  .masthead, .nav, .form, .burger, .skip { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .section { padding: 18px 0; border: none; }
}
