/* Homepage variation: scientific hero and testimonial carousel */
.index-new .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 100%;
  padding-inline: max(1.5rem, calc((100vw - 1240px) / 2 + 1.5rem));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-page) 88%, transparent), var(--bg-page) 92%),
    radial-gradient(circle at 50% 22%, var(--brand-accent-glow), transparent 48%);
}

.index-new .hero::before,
.index-new .hero::after {
  display: none;
}

.hero-science-bg {
  position: absolute;
  inset: 4.75rem 0 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  color: var(--brand-accent);
  opacity: .42;
  mask-image: linear-gradient(to bottom, #000 0 72%, transparent 100%);
}

.hero-science-bg svg {
  position: absolute;
  fill: none;
  stroke: currentColor;
}

.dna-helix {
  left: clamp(-5rem, 1vw, 2rem);
  top: 1rem;
  width: clamp(12rem, 22vw, 19rem);
  height: 34rem;
  opacity: .58;
}

.dna-strand > path {
  stroke-width: 2;
  stroke-linecap: round;
}

.dna-rungs {
  stroke-width: 1.2;
  stroke-dasharray: 5 6;
  opacity: .72;
}

.molecule-network {
  right: -5rem;
  top: 1rem;
  width: clamp(25rem, 51vw, 46rem);
  height: 31rem;
  opacity: .52;
}

.molecule-bonds {
  stroke-width: 1.4;
  stroke-dasharray: 8 8;
}

.molecule-atoms circle {
  fill: var(--bg-page);
  stroke-width: 2;
}

.science-orbit {
  position: absolute;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .24;
}

.science-orbit::before {
  content: "";
  position: absolute;
  width: .65rem;
  height: .65rem;
  top: 16%;
  left: 7%;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 1.1rem currentColor;
}

.science-orbit-one {
  width: 19rem;
  height: 7rem;
  right: 18%;
  top: 12%;
  transform: rotate(-18deg);
  animation: science-orbit 18s linear infinite;
}

.science-orbit-two {
  width: 12rem;
  height: 4rem;
  left: 24%;
  top: 49%;
  transform: rotate(22deg);
  animation: science-orbit 14s linear infinite reverse;
}

.dna-strand {
  transform-origin: center;
  animation: dna-drift 9s ease-in-out infinite;
}

.molecule-atoms circle:nth-child(3n + 1) {
  animation: atom-pulse 4.8s ease-in-out infinite;
}

.molecule-atoms circle:nth-child(3n + 2) {
  animation: atom-pulse 4.8s 1.2s ease-in-out infinite;
}

.index-new .hero > :not(.hero-science-bg) {
  position: relative;
  z-index: 1;
}

.index-new .hero h1,
.index-new .hero h2,
.index-new .hero-sub {
  text-shadow: 0 1px 18px var(--bg-page);
}

.testimonial-carousel {
  min-height: 19rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-style: normal;
  overflow: hidden;
}

.testimonial-stage {
  position: relative;
  display: grid;
  padding-left: 1rem;
}

.testimonial-measure {
  display: grid;
  visibility: hidden;
}

.quote-measure,
.testimonial-copy.is-live {
  grid-area: 1 / 1;
}

.author-measure,
.testimonial-author.is-live {
  grid-area: 2 / 1;
}

.testimonial-measure > .testimonial-copy,
.testimonial-measure > .testimonial-author {
  grid-area: 1 / 1;
}

.testimonial-quote-mark {
  position: absolute;
  top: -1.4rem;
  left: -.25rem;
  color: var(--brand-accent-glow);
  font: 800 6rem/1 var(--font-display);
  pointer-events: none;
}

.testimonial-copy {
  position: relative;
  color: var(--text-title);
  font-size: var(--text-lg);
  line-height: 1.75;
  margin-bottom: 1.35rem;
}

.testimonial-author {
  display: grid;
  gap: .2rem;
  color: var(--brand-accent);
  font-size: var(--text-sm);
}

.testimonial-author span {
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.testimonial-arrow,
.testimonial-dot {
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-title);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.testimonial-arrow {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1.1rem;
}

.testimonial-arrow:hover,
.testimonial-arrow:focus-visible {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
  transform: translateY(-2px);
}

.testimonial-dots {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.testimonial-dot {
  width: .65rem;
  height: .65rem;
  padding: 0;
  border-radius: 50%;
}

.testimonial-dot.is-active {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  transform: scale(1.25);
}

@keyframes dna-drift {
  0%, 100% { transform: translateY(-5px) rotate(-1deg); }
  50% { transform: translateY(12px) rotate(2deg); }
}

@keyframes atom-pulse {
  0%, 100% { opacity: .55; stroke-width: 2; }
  50% { opacity: 1; stroke-width: 3.5; }
}

@keyframes science-orbit {
  to { rotate: 360deg; }
}

@media (max-width: 720px) {
  .hero-science-bg { opacity: .28; }
  .dna-helix { left: -7rem; }
  .molecule-network { right: -17rem; }
  .science-orbit-two { display: none; }
  .testimonial-carousel { min-height: 23rem; }
}

@media (prefers-reduced-motion: reduce) {
  .dna-strand,
  .molecule-atoms circle,
  .science-orbit {
    animation: none !important;
  }
}
