/* LaserFlow (React Bits) — full-bleed host */
.laser-flow-container {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.laser-flow-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/*
  Portfolio bg fades to transparent under the CTA —
  no hard horizontal seam left/right of «Все работы».
*/
#portfolio.section {
  position: relative;
  z-index: 2;
  padding-bottom: 0;
  overflow: visible;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#portfolio.section::before {
  content: none;
}

#portfolio.section::after {
  /* kill any residual hairline at the section edge */
  content: none;
}

#portfolio .section-inner {
  position: relative;
  z-index: 1;
}

#portfolio .portfolio-actions {
  margin-bottom: 0;
  padding-bottom: 0.5rem;
}

#about.about-section {
  position: relative;
  z-index: 1;
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
  margin-top: 0;
  overflow: visible;
  border: none !important;
  box-shadow: none !important;
}

.about-laser-stage {
  position: relative;
  width: 100%;
  max-width: none;
  margin-top: -2.5rem;
  padding-top: clamp(200px, 28vw, 380px);
  padding-bottom: 0;
  overflow: visible;
}

.about-laser-stage__beam {
  position: absolute;
  left: 0;
  right: 0;
  top: -260px;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
  /* Soft origin — no opaque mask band that reads as a line */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 100%);
}

.about-laser-stage__content {
  position: relative;
  z-index: 2;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-sizing: border-box;
}

.about-laser-stage .about-panel {
  position: relative;
  z-index: 2;
}

.page-main .about-laser-stage {
  margin-top: 0;
  padding-top: 0;
}

.page-main .about-laser-stage__beam {
  top: 0;
}

.page-main #about.about-section {
  padding-top: 0;
  padding-bottom: 2.5rem;
}

@media (prefers-reduced-motion: reduce) {
  #portfolio.section {
    padding-bottom: 4rem;
    background: transparent !important;
  }

  #portfolio.section::before {
    display: none;
  }

  #about.about-section {
    padding: 4rem 1.25rem;
  }

  .page-main #about.about-section {
    padding: 0 0 2.5rem;
  }

  .about-laser-stage {
    margin-top: 0;
    padding-top: 0;
  }

  .about-laser-stage__beam {
    display: none;
  }
}
