/* The product photograph is shared by the physical part and the camera view.
   Only the phone's approach moves, driven by page scroll. */
.guided-feature--traceability .guided-feature__summary { max-width: 470px; }
.guided-feature__media--traceability { display: block; }
.guided-feature__media--traceability::before,
.guided-feature__media--traceability::after { display: none; }

.trace-demo {
  position: relative;
  width: 100%;
  max-width: 610px;
  aspect-ratio: 1.12;
  margin-inline: auto;
  container-type: inline-size;
  isolation: isolate;
  perspective: 1200px;
  outline: none;
}
.trace-demo__ground {
  position: absolute;
  inset: auto 1% 2% 3%;
  height: 9%;
  background: radial-gradient(ellipse, rgba(7, 26, 53, .12), transparent 69%);
  filter: blur(7px);
}
.trace-demo__part {
  position: absolute;
  z-index: 1;
  width: 64%;
  height: auto;
  left: -2%;
  bottom: 2%;
  filter: drop-shadow(0 1.8cqw 1.4cqw rgba(7, 26, 53, .09));
  pointer-events: none;
  user-select: none;
}
.trace-phone {
  position: absolute;
  z-index: 2;
  top: 1%;
  right: 3%;
  width: 43%;
  aspect-ratio: .485;
  padding: 1.05cqw;
  border: 1px solid #5e6470;
  border-radius: 6.5cqw;
  background: linear-gradient(115deg, #333942, #11141a 26%, #03080e 85%, #707782);
  box-shadow: .65cqw .15cqw 0 #444b54, .95cqw .3cqw 0 #a6a9ad,
    1.2cqw .4cqw 0 #343b43, 1.5cqw 4cqw 5cqw -2.5cqw rgba(7, 26, 53, .22);
  transform: translate3d(var(--trace-x, 0cqw), var(--trace-y, 0cqw), var(--trace-depth, 0px))
    rotateY(var(--trace-turn, -9deg)) rotateZ(var(--trace-roll, 3deg)) scale(var(--trace-scale, 1));
  transform-origin: 50% 85%;
}
.trace-phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 5.4cqw;
  background: white;
  color: var(--navy);
  text-align: left;
  font-size: 2cqw;
  line-height: 1.35;
}
.trace-phone__status {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 7%;
  padding-inline: 3.4cqw;
  font-size: 1.55cqw;
  font-weight: 700;
}
.trace-phone__status svg { width: 5.7cqw; height: 2.1cqw; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.trace-phone__camera { position: absolute; top: 1cqw; left: 50%; width: 12cqw; height: 3.1cqw; transform: translateX(-50%); border-radius: 3cqw; background: #10151c; }
.trace-phone__brand { height: 8%; display: flex; align-items: center; padding-inline: 3cqw; }
.trace-phone__brand img { display: block; width: 23cqw; height: auto; }
.trace-phone__viewfinder { position: absolute; top: 15%; width: 100%; height: 36%; overflow: hidden; background: #d9dce0; }
.trace-phone__camera-image {
  position: absolute;
  max-width: none;
  width: 285%;
  height: auto;
  left: -155%;
  top: -153%;
}
.trace-phone__focus { position: absolute; inset: 18% 14%; }
.trace-phone__focus i { position: absolute; width: 2.8cqw; height: 2.8cqw; border: 1.5px solid var(--orange); }
.trace-phone__focus i:nth-child(1) { inset: 0 auto auto 0; border-right: 0; border-bottom: 0; border-radius: 3px 0 0; }
.trace-phone__focus i:nth-child(2) { inset: 0 0 auto auto; border-left: 0; border-bottom: 0; border-radius: 0 3px 0 0; }
.trace-phone__focus i:nth-child(3) { inset: auto 0 0 auto; border-left: 0; border-top: 0; border-radius: 0 0 3px; }
.trace-phone__focus i:nth-child(4) { inset: auto auto 0 0; border-right: 0; border-top: 0; border-radius: 0 0 0 3px; }
.trace-phone__result { position: absolute; inset: 48% 0 0; padding: 3cqw 3cqw 4cqw; background: #fff; border-radius: 2.6cqw 2.6cqw 0 0; }
.trace-phone__success { display: flex; align-items: center; gap: 1cqw; color: #355e54; font-size: 1.8cqw; font-weight: 600; }
.trace-phone__success svg { width: 2.7cqw; height: 2.7cqw; fill: none; stroke: currentColor; stroke-width: 1.5; }
.trace-phone__product { display: grid; gap: .45cqw; margin-top: 2cqw; }
.trace-phone__product strong { font-size: 3cqw; font-weight: 600; letter-spacing: -.05em; }
.trace-phone__product span { font-size: 1.9cqw; color: #718093; letter-spacing: .015em; }
.trace-phone__data { margin: 2.2cqw 0 0; display: grid; gap: 1.7cqw; }
.trace-phone__data div { border-top: 1px solid #edf0f3; padding-top: 1.5cqw; }
.trace-phone__data dt { font-size: 1.65cqw; color: #7b8798; margin-bottom: .4cqw; }
.trace-phone__data dd { margin: 0; font-size: 2.1cqw; font-weight: 500; }
.trace-phone__home { position: absolute; bottom: 1.1cqw; width: 13cqw; height: .5cqw; left: 50%; transform: translateX(-50%); border-radius: 3px; background: #10151c; }

@media (max-width: 900px) {
  .guided-feature--traceability .guided-feature__inner { gap: 28px; }
  .guided-feature__media--traceability { width: min(100%, 520px); justify-self: center; }
}
@media (max-width: 540px) {
  .trace-demo { aspect-ratio: .98; }
  .trace-phone { width: 49%; }
  .trace-demo__part { width: 61%; bottom: 4%; left: -3%; }
  .trace-phone__camera-image { left: -155%; top: -153%; }
  .trace-phone__success { font-size: 2.1cqw; }
  .trace-phone__product strong { font-size: 3.5cqw; }
  .trace-phone__product span { font-size: 2.2cqw; }
  .trace-phone__data { gap: 2.4cqw; margin-top: 3cqw; }
  .trace-phone__data dt { font-size: 2cqw; }
  .trace-phone__data dd { font-size: 2.5cqw; }
}
@media (prefers-reduced-motion: reduce) {
  .trace-phone { transform: rotateY(-9deg) rotateZ(3deg); }
}
