.iphone-model {
  position: relative;
  z-index: 10;
  overflow: visible;
  background-color: #fff;
  padding: 0;
}

/* GSAP pin-spacer — cùng nền trắng, tránh vệt xám khi scroll pin */
.iphone-model > .pin-spacer {
  background-color: #fff;
}

.iphone-model__pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  background-color: #fff;
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: layout style;
}

.iphone-model__stage {
  position: relative;
  width: 100%;
  max-width: min(100vw, 1320px);
  height: min(92vh, 980px);
  min-height: 520px;
  padding: 0 clamp(12px, 3vw, 32px);
  background-color: #fff;
  transform: translateZ(0);
}

.iphone-model__reveal {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform-origin: center center;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.iphone-model__glow {
  display: none;
}

.iphone-model__canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  background-color: #fff;
}


@media (max-width: 767px) {
  .iphone-model__stage {
    height: min(78vh, 680px);
    min-height: 400px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iphone-model {
    min-height: auto;
    padding: 0 clamp(12px, 3vw, 32px) 96px;
  }

  .iphone-model__pin {
    height: auto;
  }

  .iphone-model__reveal {
    opacity: 1;
    filter: none;
    transform: none;
  }

}
