/* V-CORE skin lab v2 — treatment head above the skin, light travelling downward. */
.skin-depth {
  grid-template-columns: minmax(230px,.82fr) minmax(420px,1.25fr) minmax(230px,.82fr);
}

.skin-lab {
  min-height: 545px;
  overflow: visible;
}

.skin-device-wrap,
.skin-depth.is-active .skin-device-wrap {
  top: -1px;
  left: 50%;
  width: 218px;
  height: 126px;
  overflow: hidden;
  transform: translateX(-50%);
  transform-origin: center;
  border-radius: 42% 42% 30% 30%;
  filter: drop-shadow(0 22px 25px rgba(0,0,0,.9));
}

.skin-device-wrap img {
  width: 218px;
  height: auto;
  transform: none;
  filter: grayscale(1) brightness(.78) contrast(1.2);
}

.skin-device-wrap::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 50%;
  width: 127px;
  height: 57px;
  border: 3px solid #f31532;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow:
    0 0 7px #ff1735,
    0 0 18px rgba(255,0,36,.82),
    inset 0 0 14px rgba(255,28,53,.72);
  opacity: .92;
  animation: vcoreHeadGlow 2.2s ease-in-out infinite;
}

.nir-emitter {
  z-index: 4;
  top: 29px;
  right: auto;
  bottom: auto;
  left: 50%;
  width: 112px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, #fff 0 2%, #ff7180 9%, #f20a31 30%, rgba(226,0,39,.28) 56%, transparent 72%);
}

.skin-depth.is-active .nir-emitter {
  transform: translateX(-50%);
}

.nir-path {
  z-index: 3;
  top: 96px;
  left: 50%;
  width: 43%;
  height: 295px;
  transform: translateX(-50%);
  transform-origin: center top;
  clip-path: polygon(37% 0,63% 0,89% 100%,11% 100%);
  background:
    linear-gradient(90deg, transparent 4%, rgba(180,0,32,.12) 24%, rgba(255,50,70,.5) 49%, rgba(161,0,30,.14) 76%, transparent 96%);
  filter: blur(2px);
  mix-blend-mode: screen;
}

.skin-depth.is-active .nir-path { opacity: .92; }

.nir-path i {
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.38), rgba(255,30,55,.25) 25%, rgba(210,0,40,.08) 74%, transparent);
  animation: vcoreBeamDown 2.4s ease-in-out infinite;
}
.nir-path i:nth-child(2) {
  left: 22%;
  right: 58%;
  background: linear-gradient(180deg,#ff7a87,rgba(255,14,49,.3),transparent);
  filter: blur(3px);
  animation-delay: -.8s;
}
.nir-path i:nth-child(3) {
  left: 58%;
  right: 22%;
  background: linear-gradient(180deg,#ff9aa3,rgba(225,0,38,.3),transparent);
  filter: blur(4px);
  animation-delay: -1.6s;
}

.beam-label {
  position: absolute;
  z-index: 8;
  top: 36%;
  padding: 5px 8px;
  border: 1px solid rgba(255,70,90,.2);
  color: #ff8c9a;
  background: rgba(5,2,4,.66);
  font: 500 6.5px/1 Manrope,sans-serif;
  letter-spacing: .12em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .6s .65s, transform .8s .65s;
}
.beam-red { left: -4%; transform: translateX(-8px); }
.beam-nir { right: -9%; top: 55%; transform: translateX(8px); }
.skin-depth.is-active .beam-label { opacity: 1; transform: translateX(0); }

.skin-cutaway {
  right: auto;
  bottom: 4%;
  left: 50%;
  width: 78%;
  height: 292px;
  overflow: hidden;
  border-radius: 18px 18px 34px 34px;
  transform: translateX(-50%) perspective(850px) rotateX(3deg);
  box-shadow:
    0 34px 62px rgba(0,0,0,.76),
    20px 18px 36px rgba(0,0,0,.42),
    inset 0 1px rgba(255,255,255,.22);
}

.skin-cutaway::before {
  content: "";
  position: absolute;
  z-index: 8;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 25% 30%,rgba(255,255,255,.16),transparent 32%),
    linear-gradient(90deg,#e5a098,#c96f73 50%,#a94f59);
  border-bottom: 1px solid rgba(112,18,27,.25);
  box-shadow: 0 4px 12px rgba(89,15,25,.18);
}

.skin-layer {
  justify-content: flex-start;
  gap: 13px;
  padding: 0 0 0 8%;
}

.skin-layer b {
  min-width: 22px;
  color: rgba(255,255,255,.67);
  font-size: 8px;
}

.skin-layer span {
  min-width: 130px;
  font-size: 9px;
}

.epidermis {
  height: 20%;
  padding-top: 12px;
  background:
    repeating-linear-gradient(175deg,transparent 0 11px,rgba(255,228,220,.1) 12px,transparent 13px),
    linear-gradient(180deg,#d68d87,#af565d);
}

.dermis {
  height: 50%;
  background:
    radial-gradient(circle at 75% 30%,rgba(255,148,132,.24),transparent 22%),
    linear-gradient(145deg,#a43f4d,#651c2c 66%,#4a1320);
}

.subcutaneous {
  height: 30%;
  background:
    radial-gradient(circle at 70% 45%,#8d5835 0 9%,transparent 10%),
    radial-gradient(circle at 52% 63%,#9a663d 0 11%,transparent 12%),
    radial-gradient(circle at 84% 75%,#774529 0 8%,transparent 9%),
    linear-gradient(145deg,#4e2c1e,#1b1110);
}

.collagen-fibers {
  inset: 15% 8% 8% 42%;
  opacity: .52;
}

.depth-marker {
  left: 73%;
  top: 6%;
  bottom: 9%;
}

.depth-marker span {
  left: 12px;
  width: 105px;
  color: #ff7b8d;
}

@keyframes vcoreHeadGlow {
  0%,100% { opacity:.72; filter:brightness(.9); }
  50% { opacity:1; filter:brightness(1.25); }
}

@keyframes vcoreBeamDown {
  0%,100% { opacity:.3; transform:translateY(-8%); }
  50% { opacity:.85; transform:translateY(8%); }
}

@media (max-width: 900px) {
  .skin-depth {
    grid-template-columns: 1fr 1.15fr;
  }
}

@media (max-width: 600px) {
  .skin-depth { grid-template-columns:1fr; }
  .skin-lab { min-height:455px; }
  .skin-device-wrap,
  .skin-depth.is-active .skin-device-wrap {
    top: 0;
    width: 168px;
    height: 103px;
  }
  .skin-device-wrap img { width:168px; }
  .skin-device-wrap::before { top:9px; width:98px; height:45px; border-width:2px; }
  .nir-emitter { top:22px; width:88px; }
  .nir-path { top:76px; width:50%; height:250px; }
  .skin-cutaway { bottom:2%; width:94%; height:255px; }
  .skin-layer span { min-width:112px; font-size:8px; }
  .beam-label { font-size:5.5px; }
  .beam-red { left:-19%; }
  .beam-nir { right:-25%; }
}

/* Make the downward treatment path unmistakable without turning it into a laser. */
.nir-path {
  background:
    linear-gradient(90deg, transparent 3%, rgba(171,0,29,.18) 22%, rgba(255,42,64,.68) 49%, rgba(174,0,30,.18) 77%, transparent 97%);
  filter: drop-shadow(0 0 12px rgba(255,16,46,.3));
}

.nir-path::before {
  content: "";
  position: absolute;
  z-index: 7;
  top: 0;
  bottom: 0;
  left: calc(50% - 1px);
  width: 2px;
  background: linear-gradient(180deg,#fff 0,#ff7384 8%,#f30d35 42%,rgba(224,0,40,.28) 82%,transparent);
  box-shadow: 0 0 7px #ff163c, 0 0 20px rgba(255,0,40,.55);
  animation: vcoreRayPulse 1.9s ease-in-out infinite;
}

.nir-path::after {
  content: "";
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 2px;
  width: 54%;
  height: 20px;
  border: 1px solid rgba(255,58,77,.7);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 14px rgba(255,20,50,.4), inset 0 0 12px rgba(255,20,50,.22);
  animation: vcoreSurfacePulse 2.1s ease-out infinite;
}

@keyframes vcoreRayPulse {
  0%,100% { opacity:.58; transform:scaleY(.94); transform-origin:top; }
  50% { opacity:1; transform:scaleY(1); }
}

@keyframes vcoreSurfacePulse {
  0% { opacity:.22; transform:translateX(-50%) scale(.72); }
  55% { opacity:.9; }
  100% { opacity:0; transform:translateX(-50%) scale(1.18); }
}
