/* ---------- HOME-SPECIFIC ---------- */

/* Hero */
.hero {
  min-height: 100vh;
  padding: 9rem 0 4rem;
  position: relative;
  overflow: hidden;
  background: var(--cream);
  display: flex;
  align-items: center;
}

/* Full-bleed hero video. The poster is the LCP element, not the video. */
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center; /* keeps the runners in frame when cropped */
  display: block;
}
/* Scrim: opaque cream on the left for headline legibility, clearing to the right
   so the runners and the sun stay visible. */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(250, 248, 243, 0.95) 0%,
      rgba(250, 248, 243, 0.86) 30%,
      rgba(250, 248, 243, 0.42) 56%,
      rgba(250, 248, 243, 0.06) 82%,
      rgba(250, 248, 243, 0) 100%),
    linear-gradient(to top,
      rgba(250, 248, 243, 0.55) 0%,
      rgba(250, 248, 243, 0) 28%);
  pointer-events: none;
}
@media (max-width: 980px) {
  /* Portrait-ish viewports: subject sits lower, so weight the scrim vertically */
  .hero-video { object-position: 62% center; }
  .hero-media::after {
    background: linear-gradient(to bottom,
      rgba(250, 248, 243, 0.93) 0%,
      rgba(250, 248, 243, 0.80) 38%,
      rgba(250, 248, 243, 0.42) 68%,
      rgba(250, 248, 243, 0.20) 100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-media { background: url("../video/hero-poster.webp") 68% center / cover no-repeat; }
}

.hero-inner { position: relative; z-index: 2; width: 100%; }

/* The hero is above the fold and must NEVER depend on JavaScript to become
   visible. `.reveal` starts at opacity 0 and waits for site.js to add `.in`;
   if that observer is slow, blocked, or fails, the headline simply never
   appears — which is what was happening. Here the entrance is a pure CSS
   animation instead, so the text is painted whatever JS does. */
.hero .reveal {
  opacity: 1;
  transform: none;
  animation: hero-enter var(--t-slow) var(--ease) both;
}
@keyframes hero-enter {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .reveal { animation: none; }
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 62ch);
  gap: 4rem;
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 3rem; } }

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 1.5rem 0 1.8rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-deep);
  font-weight: 300;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-top: 2.4rem;
}
.hero-meta {
  display: flex; gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--grey-line);
  flex-wrap: wrap;
}
.hero-meta div .stat-num { font-size: 2.4rem; }
.hero-meta div .stat-label { font-size: 0.72rem; }

/* Hero visual */
/* Marquee logo bar */
.marquee {
  padding: 2.5rem 0;
  border-top: 1px solid var(--grey-line);
  border-bottom: 1px solid var(--grey-line);
  background: var(--bone);
}
.marquee-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.marquee-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}
.marquee-logos {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--slate);
  font-size: 1.15rem;
  opacity: 0.7;
}
.marquee-logos span { white-space: nowrap; }

/* Section intro */
.section-intro {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: end;
}
@media (max-width: 800px) { .section-intro { grid-template-columns: 1fr; gap: 1.5rem; } }
.section-intro h2 { letter-spacing: -0.015em; }

/* Test grid (bento) */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } }

.bento-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  min-height: 240px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  transition: all var(--t) var(--ease);
}
.bento-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow); }
.bento-card.large { grid-column: span 2; min-height: 320px; background: var(--ink); color: var(--bone); }
.bento-card.large h3 { color: var(--cream); }
.bento-card.large p { color: var(--grey-soft); }
.bento-card.large::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-soft), transparent 70%);
}
@media (max-width: 900px) { .bento-card.large { grid-column: span 2; } }
@media (max-width: 600px) { .bento-card.large { grid-column: span 1; } }

.bento-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--gold-deep);
  margin-bottom: 1.6rem;
}
.bento-card.large .bento-num { color: var(--gold-light); }
.bento-card h3 {
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
}
.bento-card p { font-size: 0.95rem; color: var(--grey); line-height: 1.55; }
.bento-card .arrow {
  margin-top: 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.bento-card .arrow::after { content: "→"; transition: transform var(--t-fast) var(--ease); }
.bento-card:hover .arrow::after { transform: translateX(4px); }
.bento-card.large .arrow { color: var(--gold-light); }

/* Process */
.process {
  background: var(--bone);
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  position: relative;
}
.process-steps::before {
  content: "";
  position: absolute;
  top: 38px; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
  z-index: 0;
}
@media (max-width: 900px) { .process-steps { grid-template-columns: 1fr 1fr; } .process-steps::before { display: none; } }
@media (max-width: 500px) { .process-steps { grid-template-columns: 1fr; } }

.step { position: relative; z-index: 1; text-align: left; }
.step-num {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--gold-deep);
  margin-bottom: 1.5rem;
  font-style: italic;
  position: relative;
}
.step-num::after {
  content: "";
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1px dashed var(--gold);
  opacity: 0.4;
}
.step h4 { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; margin-bottom: 0.7rem; }
.step p { font-size: 0.92rem; color: var(--grey); line-height: 1.6; }

/* Featured biomarkers preview */
.biomarker-strip {
  background: var(--ink);
  color: var(--bone);
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}
.biomarker-strip::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,97,0.08), transparent 70%);
  pointer-events: none;
}
.biomarker-strip .section-intro h2 { color: var(--cream); }
.biomarker-strip .section-intro p { color: var(--grey-soft); }

.bm-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--graphite);
  position: relative;
}
@media (max-width: 700px) { .bm-list { grid-template-columns: 1fr; } }
.bm-item {
  padding: 1.6rem 0.5rem;
  border-bottom: 1px solid var(--graphite);
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  transition: all var(--t-fast) var(--ease);
}
.bm-item:nth-child(2n) { border-left: 1px solid var(--graphite); padding-left: 2rem; }
@media (max-width: 700px) { .bm-item:nth-child(2n) { border-left: none; padding-left: 0.5rem; } }
.bm-item:hover { background: rgba(201,169,97,0.05); padding-left: 1rem; padding-right: 1rem; }
.bm-item-info h4 { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; color: var(--cream); margin-bottom: 0.3rem; }
.bm-item-info p { font-size: 0.85rem; color: var(--grey-soft); line-height: 1.5; }
.bm-item-tag { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-light); white-space: nowrap; }

/* Stats panel */
.stats {
  padding: 6rem 0;
  background: var(--cream);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
@media (max-width: 800px) { .stats-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }

/* Science section */
.science {
  padding: 8rem 0;
  background: var(--white);
}
.science-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
@media (max-width: 900px) { .science-grid { grid-template-columns: 1fr; gap: 3rem; } }
.science h2 { margin: 1.2rem 0 1.4rem; }
.science-features {
  margin-top: 2.5rem;
  list-style: none;
}
.science-features li {
  display: flex; gap: 1rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--grey-line);
}
.science-features li:last-child { border-bottom: 1px solid var(--grey-line); }
.sf-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-deep);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  border: 1px solid var(--gold);
  border-radius: 50%;
}
.sf-text strong { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; color: var(--ink); display: block; margin-bottom: 0.2rem; }
.sf-text p { font-size: 0.92rem; color: var(--grey); }

.science-visual {
  position: relative;
  aspect-ratio: 1/1.1;
  background: linear-gradient(160deg, var(--bone), var(--cream));
  border-radius: 24px;
  border: 1px solid var(--grey-line);
  padding: 3rem;
  display: flex; flex-direction: column; justify-content: center;
}
.sv-circle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 70%; aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed var(--gold);
  opacity: 0.5;
}
.sv-circle::before, .sv-circle::after {
  content: "";
  position: absolute; inset: 12%;
  border-radius: 50%;
  border: 1px dashed var(--gold);
  opacity: 0.6;
}
.sv-circle::after { inset: 28%; }
.sv-content {
  position: relative; z-index: 1;
  text-align: center;
}
.sv-content .stat-num {
  font-size: clamp(3.5rem, 7vw, 5.5rem);
}
.sv-content p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--graphite);
  max-width: 22ch;
  margin: 0 auto;
}
.sv-orbits {
  position: absolute;
  top: 14%; left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-deep);
  font-size: 1rem;
}

/* Testimonial */
.testimonial {
  background: var(--bone);
  padding: 7rem 0;
}
.t-card {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem;
}
.t-quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.35;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-style: italic;
}
.t-quote::before { content: '"'; color: var(--gold); font-size: 3rem; vertical-align: -0.5rem; margin-right: 0.5rem; }
.t-quote::after { content: '"'; color: var(--gold); font-size: 3rem; vertical-align: -0.5rem; }
.t-author {
  margin-top: 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
}
.t-author strong { color: var(--ink); font-weight: 500; display: block; margin-bottom: 0.3rem; letter-spacing: 0.1em; }

/* CTA */
.cta {
  background: var(--ink);
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before, .cta::after {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,97,0.12), transparent 70%);
  pointer-events: none;
}
.cta::before { top: -200px; left: -100px; }
.cta::after { bottom: -200px; right: -100px; }
.cta .container { position: relative; z-index: 1; }
.cta h2 { color: var(--cream); margin: 1rem auto 1.5rem; max-width: 18ch; }
.cta p { color: var(--grey-soft); max-width: 50ch; margin: 0 auto 2.5rem; font-size: 1.1rem; }

.cta-form {
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  background: var(--charcoal);
  border: 1px solid var(--graphite);
  border-radius: 100px;
  padding: 0.4rem 0.4rem 0.4rem 1.4rem;
}
.cta-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--cream);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}
.cta-form input::placeholder { color: var(--grey); }
@media (max-width: 500px) {
  .cta-form { flex-direction: column; border-radius: 24px; padding: 1rem; }
  .cta-form input { padding: 0.5rem; }
}

/* --------------------------------------------------------------------------
   Member moments — three photographs under the process steps.
   Fixed aspect ratio so the grid doesn't reflow as images decode (avoids
   layout shift), and object-fit so any future image drops in cleanly.
   -------------------------------------------------------------------------- */
.moments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 5rem;
}
.moment { margin: 0; }
.moment img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  background: var(--bone);      /* placeholder tone while decoding */
}
.moment figcaption {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--grey);
  line-height: 1.5;
}
@media (max-width: 860px) {
  .moments { grid-template-columns: 1fr; gap: 2rem; margin-top: 3.5rem; }
  .moment img { aspect-ratio: 2 / 1; }
}

/* --------------------------------------------------------------------------
   Waitlist capture in the closing CTA. Was a single email pill; now collects
   enough to create a usable CRM contact rather than an anonymous address.
   -------------------------------------------------------------------------- */
.cta-form.cta-form-full {
  max-width: 620px;
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  text-align: left;
}
.cta-form-full .field-full { grid-column: 1 / -1; }
.cta-form-full input {
  width: 100%;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--graphite);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}
.cta-form-full input::placeholder { color: var(--grey); }
.cta-form-full input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,169,97,0.15);
}
.cta-form-full .btn { width: 100%; justify-content: center; }
.cta-form-full .consent-row {
  grid-column: 1 / -1;
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--grey-soft);
  line-height: 1.5;
  text-align: left;
}
.cta-form-full .consent-row input { width: auto; accent-color: var(--gold); margin-top: 0.25rem; }
.cta-form-full .form-error,
.cta-form-full .field-error { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .cta-form.cta-form-full { grid-template-columns: 1fr; }
}
