/* Phase 3 background-depth / glass-calibration experiment.
   Decorative motifs borrow from design + print production: crop marks,
   registration targets, modular layout grids and offset paper/frame outlines.
   They remain low-contrast and sit behind content so glass translucency can
   be judged without competing with portfolio artwork or copy. */

.home-experiment .studio-showcase,
.home-experiment .home-services,
.home-experiment .home-process,
.home-experiment .home-cta {
  position: relative;
  isolation: isolate;
}

.home-experiment .studio-showcase > .container,
.home-experiment .home-services > .container,
.home-experiment .home-process > .container,
.home-experiment .home-cta > .container {
  position: relative;
  z-index: 2;
}

.studio-depth-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.studio-depth-motif {
  position: absolute;
  display: block;
  pointer-events: none;
  will-change: transform;
}

/* Modular layout grid — reminiscent of editorial/design construction lines. */
.depth-grid {
  width: min(48rem, 72vw);
  height: min(34rem, 58vw);
  border: 1px solid rgba(171, 178, 205, .075);
  background-image:
    linear-gradient(rgba(171, 178, 205, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(171, 178, 205, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(135deg, rgba(0,0,0,.92), rgba(0,0,0,.16) 76%, transparent);
  -webkit-mask-image: linear-gradient(135deg, rgba(0,0,0,.92), rgba(0,0,0,.16) 76%, transparent);
  opacity: .82;
}

/* Registration target — concentric circles + crosshair. */
.depth-register {
  width: 11rem;
  height: 11rem;
  border: 1px solid rgba(92, 225, 230, .14);
  border-radius: 50%;
  box-shadow:
    0 0 0 2.2rem rgba(92, 225, 230, .028),
    0 0 0 4.3rem rgba(109, 93, 252, .018);
  opacity: .9;
}

.depth-register::before,
.depth-register::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(92, 225, 230, .12);
  transform: translate(-50%, -50%);
}

.depth-register::before {
  width: 150%;
  height: 1px;
}

.depth-register::after {
  width: 1px;
  height: 150%;
}

/* Paper/artboard outlines with crop-corner marks. */
.depth-crop-frame {
  width: 20rem;
  height: 27rem;
  border: 1px solid rgba(217, 255, 111, .105);
  border-radius: 4px;
  opacity: .86;
}

.depth-crop-frame::before,
.depth-crop-frame::after {
  content: "";
  position: absolute;
  width: 2rem;
  height: 2rem;
  border-color: rgba(217, 255, 111, .2);
  border-style: solid;
}

.depth-crop-frame::before {
  left: -1rem;
  top: -1rem;
  border-width: 1px 0 0 1px;
}

.depth-crop-frame::after {
  right: -1rem;
  bottom: -1rem;
  border-width: 0 1px 1px 0;
}

.depth-paper-stack {
  width: 17rem;
  height: 22rem;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 8px;
  box-shadow:
    18px 18px 0 -1px rgba(109, 93, 252, .025),
    18px 18px 0 0 rgba(109, 93, 252, .08),
    36px 36px 0 -1px rgba(92, 225, 230, .018),
    36px 36px 0 0 rgba(92, 225, 230, .055);
  opacity: .82;
}

/* Selected work: barely-there editorial grid and artboard cue. */
.studio-showcase .depth-grid {
  left: -10rem;
  top: 10%;
  opacity: .36;
}

.studio-showcase .depth-crop-frame {
  right: -5rem;
  bottom: 7%;
  transform: rotate(5deg);
  opacity: .34;
}

/* Services / Launch Scope: strongest calibration field. */
.home-services .depth-grid {
  right: -11rem;
  top: 17%;
  opacity: .72;
}

.home-services .depth-register {
  left: 4.5%;
  top: 43%;
}

.home-services .depth-crop-frame {
  right: 8%;
  top: 52%;
  transform: rotate(4deg);
}

.home-services .depth-paper-stack {
  left: -3.5rem;
  bottom: 5%;
  transform: rotate(-7deg);
}

/* Process: keep background quieter because the process cards already form a grid. */
.home-process .depth-register {
  right: 7%;
  top: 20%;
  opacity: .4;
}

.home-process .depth-grid {
  left: -18rem;
  bottom: -7rem;
  opacity: .28;
}

/* CTA: a single print/artboard outline gives depth without competing with action. */
.home-cta .depth-crop-frame {
  left: -6rem;
  top: 5%;
  transform: rotate(-5deg);
  opacity: .3;
}

.home-cta .depth-register {
  right: -2rem;
  bottom: 5%;
  opacity: .3;
}

@media screen and (max-width: 768px) {
  .depth-grid {
    width: 34rem;
    height: 28rem;
    background-size: 36px 36px;
  }

  .depth-register {
    width: 8rem;
    height: 8rem;
  }

  .depth-crop-frame {
    width: 13rem;
    height: 18rem;
  }

  .home-services .depth-grid {
    right: -18rem;
    top: 20%;
    opacity: .56;
  }

  .home-services .depth-register {
    left: -2rem;
    top: 48%;
    opacity: .72;
  }

  .home-services .depth-crop-frame {
    right: -4rem;
    top: 63%;
    opacity: .68;
  }

  .home-services .depth-paper-stack,
  .studio-showcase .depth-crop-frame,
  .home-process .depth-grid,
  .home-cta .depth-register {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio-depth-motif {
    will-change: auto;
  }
}

@media (forced-colors: active) {
  .studio-depth-layer {
    display: none;
  }
}
