/* science.css: the hand-written parts of /science. Positions and text styles of every block are in
   science-layout.css (generated from the live page); this file holds what a measurement cannot give:
   the Download buttons, the research cards, the sign-up form, and the scroll-in effect of headings. */

.science { background: var(--white); }
.science video { display: block; }
.science img { max-width: none; }

/* Download buttons (live: Framer "Download" component, black pill) */
.science .dl { display: flex; align-items: center; justify-content: center; width: max-content; padding: 10px; border-radius: 50px;
  background-color: rgb(17, 17, 17); color: var(--white); font: 500 16px/1 var(--ui); white-space: nowrap; }
.science .card .dl { align-self: center; flex: none; }
.science .card h3, .science .card p { margin: 0; }

/* Sign-up form over the finale photo */
.science .signup-form { padding: 20px; }
.science .signup-form .consent { width: auto; }
@media (min-width: 1200px) {
  /* live keeps the consent line outside the form, wider than it and centred under it */
  .science .signup-form .consent { position: absolute; }
}

/* Headings appear as on live: fade up from a 10px blur when scrolled into view (about 0.4s).
   Only when JavaScript runs (science.js adds .js-reveal), so the words are always there without it. */
.js-reveal .science .reveal { transition: opacity .45s cubic-bezier(.2, .7, .2, 1), filter .45s cubic-bezier(.2, .7, .2, 1), translate .45s cubic-bezier(.2, .7, .2, 1); }
.js-reveal .science .reveal:not(.in) { opacity: 0; filter: blur(10px); translate: 0 10px; }
@media (prefers-reduced-motion: reduce) { .js-reveal .science .reveal { transition: none; } .js-reveal .science .reveal:not(.in) { opacity: 1; filter: none; translate: none; } }
