/* React Bits Strands — Patents: cards-first layout + crisp wave below */
#patents .container.section-shell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

#patents .section-title-block--uniform {
  margin-bottom: clamp(0.4rem, 1.2vh, 0.75rem);
  flex-shrink: 0;
}

#patents .section-body-copy {
  max-width: min(46rem, 100%);
  margin-bottom: clamp(0.65rem, 1.8vh, 1.1rem);
  flex-shrink: 0;
}

#patents .patent-carousel-container.section-content-after {
  flex: 0 1 auto;
  width: 100%;
  min-height: 0;
  margin-top: 0;
}

#patents .patent-carousel-track-wrapper,
#patents .patent-carousel-track {
  min-height: 0;
  width: 100%;
}

#patents .patent-feature-card__media,
#patents .patent-feature-card__media img {
  min-height: 0;
  max-height: 10.5rem;
}

#patents .patent-feature-card__body {
  padding: 0.85rem 1.1rem 1rem;
}

#patents .patent-feature-card__copy {
  margin-bottom: 0.55rem;
  line-height: 1.45;
}

#patents .patents-strands {
  position: relative;
  width: min(560px, 100%);
  max-width: 560px;
  height: clamp(7rem, 14vh, 10rem);
  min-height: 7rem;
  max-height: 10rem;
  margin: clamp(0.5rem, 1.6vh, 0.9rem) auto 0;
  flex: 0 0 auto;
  align-self: center;
  pointer-events: none;
  z-index: 1;
  border: none;
  outline: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

#patents .patents-strands .strands-container,
#patents .patents-strands canvas {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent !important;
  box-shadow: none;
  image-rendering: auto;
}

@media (min-width: 769px) {
  #patents.section-fullscreen {
    height: 100dvh;
    max-height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  #patents.section-fullscreen .patents-strands {
    width: min(560px, 100%);
    max-width: 560px;
    height: clamp(7rem, 14vh, 10rem);
    min-height: 7rem;
    max-height: 10rem;
    margin: clamp(0.5rem, 1.6vh, 0.9rem) auto 0;
    flex: 0 0 auto;
  }
}

@media (max-width: 768px) {
  #patents .patents-strands {
    width: min(100%, 20rem);
    max-width: 20rem;
    height: 4.25rem;
    min-height: 4.25rem;
    max-height: 4.25rem;
    flex: 0 0 4.25rem;
    margin: 0.75rem auto 0;
    opacity: 0.85;
  }

  #patents .container.section-shell {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  #patents .patents-strands {
    display: none;
  }
}
