/* Car Care — © 2026 Car Care. Toate drepturile rezervate. */
/* Three composed entrances; every scene settles into its original full size. */
.scene-heading-visual { display: inline; }
.scene-word-mask {
  display: inline-block;
  vertical-align: top;
  overflow: hidden;
  padding: 0 .015em .18em;
  margin: 0 -.015em -.18em;
}
.scene-word { display: inline-block; }
.scene-heading-waiting .scene-word { opacity: 0; transform: translate3d(0, 108%, 0); }
.scene-anchored-copy.scroll-layer { scale: none; translate: none; }

.scene-results-frame {
  --scene-arrival: 1;
  transform-origin: 50% 100%;
  transform: perspective(1400px) rotateX(calc((1 - var(--scene-arrival)) * 3.6deg)) translate3d(0, calc((1 - var(--scene-arrival)) * 30px), 0) scale(calc(.975 + var(--scene-arrival) * .025));
  clip-path: inset(calc((1 - var(--scene-arrival)) * 4%) calc((1 - var(--scene-arrival)) * 2%));
}
.scene-location-frame {
  --scene-arrival: 1;
  box-shadow: none;
  will-change: auto;
  transform-origin: 50% 50%;
  transform: perspective(1400px) rotateY(calc((1 - var(--scene-arrival)) * -7deg)) rotateX(calc((1 - var(--scene-arrival)) * 2deg)) translate3d(0, calc((1 - var(--scene-arrival)) * 22px), 0);
}
.scene-location-frame .location-photo {
  clip-path: inset(0 calc((1 - var(--scene-arrival)) * 8%) 0 0);
}
.scene-location-frame img {
  transform: scale(calc(1.065 - var(--scene-arrival) * .065));
  transform-origin: 50% 50%;
}
.scene-in-range { will-change: transform, clip-path; }
.scene-location-frame.scene-in-range img { will-change: transform; }
.scene-results-frame.scene-complete,
.scene-location-frame.scene-complete,
.scene-location-frame.scene-complete .location-photo,
.scene-location-frame.scene-complete img {
  transform: none;
  clip-path: none;
  will-change: auto;
}

@media (max-width: 700px) {
  .scene-results-frame {
    transform: translate3d(0, calc((1 - var(--scene-arrival)) * 14px), 0) scale(calc(.99 + var(--scene-arrival) * .01));
    clip-path: inset(calc((1 - var(--scene-arrival)) * 2%) 0);
  }
  .scene-location-frame { margin: 0; transform: perspective(1000px) rotateX(calc((1 - var(--scene-arrival)) * 3deg)) translate3d(0, calc((1 - var(--scene-arrival)) * 12px), 0); }
  .scene-location-frame .location-photo { clip-path: inset(0 calc((1 - var(--scene-arrival)) * 4%) 0 0); }
  .scene-location-frame img { transform: scale(calc(1.035 - var(--scene-arrival) * .035)); }
}
@media (max-width:0px) {
  .scene-heading-waiting .scene-word { opacity: 1; transform: none; }
  .scene-results-frame, .scene-location-frame, .scene-location-frame .location-photo, .scene-location-frame img {
    transform: none !important;
    clip-path: none !important;
    will-change: auto;
  }
}
