/* The homepage continues through the same sculpted, circular material. */
.kinetic-depth-content {
  position: relative;
  isolation: isolate;
  display: flow-root;
  overflow: clip;
  background: #f4f1e9;
}

.kinetic-depth-layer {
  position: sticky;
  z-index: -1;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  margin-bottom: -100vh;
  margin-bottom: -100svh;
  overflow: hidden;
  pointer-events: none;
  background: #f4f1e9 url("kinetic-depth-poster.webp") center / cover no-repeat;
}

.kinetic-depth-layer canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 500ms ease;
}

.kinetic-depth-layer[data-depth-state="ready"] canvas {
  opacity: 1;
}

/* Text has a calm surface; the solid objects remain visible at its edges. */
.kinetic-depth-content .home-capabilities .service-rows {
  background: linear-gradient(90deg, #f4f1e900, #f4f1e9ad 17%, #f4f1e9cf 67%, #f4f1e933);
}

.kinetic-depth-content .home-about {
  background: #fc7b04f2;
}

.kinetic-depth-content .home-about .about-shape {
  opacity: .055;
}

@media (max-width: 700px) {
  .kinetic-depth-layer {
    background-image: url("kinetic-depth-mobile.webp");
  }
  .kinetic-depth-content .home-capabilities .service-rows {
    background: linear-gradient(90deg, #f4f1e9c7, #f4f1e9e8 67%, #f4f1e966);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kinetic-depth-layer canvas { transition: none; }
}
.motion-paused .kinetic-depth-layer canvas { transition: none; }
