.nb-motion-section {
  --nb-motion-section-edge: #ffffff;
  position: relative;
  overflow: visible;
  width: 100%;
  min-height: 100vh;
  background-color: #1d1e22;
  color: #ffffff;
}

.nb-motion-section > *:not(.nb-motion-section__edge) {
  position: relative;
  z-index: 1;
}

.nb-motion-section__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: inherit;
}

.nb-motion-section__edge {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 2;
  overflow: visible;
  width: 100%;
  height: 150px;
  pointer-events: none;
  fill: var(--nb-motion-section-edge);
}

.nb-motion-section__edge--top,
.nb-motion-section[data-position="top"] .nb-motion-section__edge:not(.nb-motion-section__edge--bottom) {
  bottom: auto;
  top: -1px;
  transform: scaleY(-1);
  transform-origin: center;
}

.nb-motion-section[data-position="bottom"] .nb-motion-section__edge--top,
.nb-motion-section[data-position="top"] .nb-motion-section__edge--bottom {
  display: none;
}

.nb-motion-section__path {
  fill: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .nb-motion-section__path {
    transition: none;
  }
}
